diff --git a/conn/node.go b/conn/node.go index 582cd16d0c1..6e57778a8aa 100644 --- a/conn/node.go +++ b/conn/node.go @@ -33,6 +33,7 @@ import ( "go.etcd.io/etcd/raft/v3" "go.etcd.io/etcd/raft/v3/raftpb" otrace "go.opencensus.io/trace" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4/y" "github.com/dgraph-io/dgo/v240/protos/api" @@ -598,7 +599,7 @@ func (n *Node) proposeConfChange(ctx context.Context, conf raftpb.ConfChange) er func (n *Node) addToCluster(ctx context.Context, rc *pb.RaftContext) error { pid := rc.Id rc.SnapshotTs = 0 - rcBytes, err := rc.Marshal() + rcBytes, err := proto.Marshal(rc) x.Check(err) cc := raftpb.ConfChange{ diff --git a/dgraph/cmd/alpha/http.go b/dgraph/cmd/alpha/http.go index 2b51282c727..e038be125bc 100644 --- a/dgraph/cmd/alpha/http.go +++ b/dgraph/cmd/alpha/http.go @@ -31,10 +31,10 @@ import ( "sync/atomic" "time" - "github.com/gogo/protobuf/jsonpb" "github.com/golang/glog" "github.com/pkg/errors" "google.golang.org/grpc/metadata" + jsonpb "google.golang.org/protobuf/encoding/protojson" "github.com/dgraph-io/dgo/v240/protos/api" "github.com/dgraph-io/dgraph/v24/dql" @@ -600,7 +600,7 @@ func alterHandler(w http.ResponseWriter, r *http.Request) { } op := &api.Operation{} - if err := jsonpb.UnmarshalString(string(b), op); err != nil { + if err := jsonpb.Unmarshal(b, op); err != nil { op.Schema = string(b) } diff --git a/dgraph/cmd/alpha/login_ee.go b/dgraph/cmd/alpha/login_ee.go index 8122714fe82..160907ff99a 100644 --- a/dgraph/cmd/alpha/login_ee.go +++ b/dgraph/cmd/alpha/login_ee.go @@ -19,6 +19,7 @@ import ( "net/http" "github.com/golang/glog" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/dgo/v240/protos/api" "github.com/dgraph-io/dgraph/v24/edgraph" @@ -48,7 +49,7 @@ func loginHandler(w http.ResponseWriter, r *http.Request) { } jwt := &api.Jwt{} - if err := jwt.Unmarshal(resp.Json); err != nil { + if err := proto.Unmarshal(resp.Json, jwt); err != nil { x.SetStatusWithData(w, x.Error, err.Error()) } diff --git a/dgraph/cmd/bulk/mapper.go b/dgraph/cmd/bulk/mapper.go index 563a256128a..46cf3aafd0e 100644 --- a/dgraph/cmd/bulk/mapper.go +++ b/dgraph/cmd/bulk/mapper.go @@ -32,6 +32,7 @@ import ( farm "github.com/dgryski/go-farm" "github.com/golang/glog" "github.com/golang/snappy" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/dgo/v240/protos/api" "github.com/dgraph-io/dgraph/v24/chunker" @@ -90,7 +91,7 @@ type MapEntry []byte // } func mapEntrySize(key []byte, p *pb.Posting) int { - return 8 + 4 + 4 + len(key) + p.Size() // UID + keySz + postingSz + len(key) + size(p) + return 8 + 4 + 4 + len(key) + proto.Size(p) // UID + keySz + postingSz + len(key) + size(p) } func marshalMapEntry(dst []byte, uid uint64, key []byte, p *pb.Posting) { @@ -100,14 +101,14 @@ func marshalMapEntry(dst []byte, uid uint64, key []byte, p *pb.Posting) { binary.BigEndian.PutUint64(dst[0:8], uid) binary.BigEndian.PutUint32(dst[8:12], uint32(len(key))) - psz := p.Size() + psz := proto.Size(p) binary.BigEndian.PutUint32(dst[12:16], uint32(psz)) n := copy(dst[16:], key) if psz > 0 { pbuf := dst[16+n:] - _, err := p.MarshalToSizedBuffer(pbuf[:psz]) + _, err := x.MarshalToSizedBuffer(pbuf, p) x.Check(err) } @@ -205,8 +206,8 @@ func (m *mapper) writeMapEntriesToFile(cbuf *z.Buffer, shardIdx int) { x.Check(err) } - // Write the header to the map file. - headerBuf, err := header.Marshal() + // Write the header to the map file.s + headerBuf, err := proto.Marshal(header) x.Check(err) lenBuf := make([]byte, 4) binary.BigEndian.PutUint32(lenBuf, uint32(len(headerBuf))) diff --git a/dgraph/cmd/bulk/reduce.go b/dgraph/cmd/bulk/reduce.go index 6495c163d2f..3bc0b92b2d5 100644 --- a/dgraph/cmd/bulk/reduce.go +++ b/dgraph/cmd/bulk/reduce.go @@ -36,6 +36,7 @@ import ( "github.com/dustin/go-humanize" "github.com/golang/glog" "github.com/golang/snappy" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" bo "github.com/dgraph-io/badger/v4/options" @@ -234,7 +235,7 @@ func newMapIterator(filename string) (*pb.MapHeader, *mapIterator) { x.Check2(io.ReadFull(reader, headerBuf)) header := &pb.MapHeader{} - err = header.Unmarshal(headerBuf) + err = proto.Unmarshal(headerBuf, header) x.Check(err) itr := &mapIterator{ @@ -351,7 +352,7 @@ func (r *reducer) startWriting(ci *countIndexer, writerCh chan *encodeRequest, c kv := &bpb.KV{} err := kvBuf.SliceIterate(func(s []byte) error { kv.Reset() - x.Check(kv.Unmarshal(s)) + x.Check(proto.Unmarshal(s, kv)) if lastStreamId == kv.StreamId { return nil } @@ -639,7 +640,7 @@ func (r *reducer) toList(req *encodeRequest) { enc.Add(uid) if pbuf := me.Plist(); len(pbuf) > 0 { p := getPosting() - x.Check(p.Unmarshal(pbuf)) + x.Check(proto.Unmarshal(pbuf, p)) pl.Postings = append(pl.Postings, p) } } @@ -678,7 +679,7 @@ func (r *reducer) toList(req *encodeRequest) { } } - shouldSplit := pl.Size() > (1<<20)/2 && len(pl.Pack.Blocks) > 1 + shouldSplit := proto.Size(pl) > (1<<20)/2 && len(pl.Pack.Blocks) > 1 if shouldSplit { // Give ownership of pl.Pack away to list. Rollup would deallocate the Pack. // We do rollup at math.MaxUint64 so that we don't change the allocated diff --git a/dgraph/cmd/bulk/run.go b/dgraph/cmd/bulk/run.go index 00066ea5ec3..e446f67a0dd 100644 --- a/dgraph/cmd/bulk/run.go +++ b/dgraph/cmd/bulk/run.go @@ -30,6 +30,7 @@ import ( "strings" "github.com/spf13/cobra" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" "github.com/dgraph-io/dgraph/v24/ee" @@ -325,7 +326,7 @@ func run() { } var bulkMeta pb.BulkMeta - if err = bulkMeta.Unmarshal(bulkMetaData); err != nil { + if err = proto.Unmarshal(bulkMetaData, &bulkMeta); err != nil { fmt.Fprintln(os.Stderr, "Error deserializing bulk meta file") os.Exit(1) } @@ -343,7 +344,7 @@ func run() { SchemaMap: loader.schema.schemaMap, Types: loader.schema.types, } - bulkMetaData, err := bulkMeta.Marshal() + bulkMetaData, err := proto.Marshal(&bulkMeta) if err != nil { fmt.Fprintln(os.Stderr, "Error serializing bulk meta file") os.Exit(1) diff --git a/dgraph/cmd/bulk/schema.go b/dgraph/cmd/bulk/schema.go index b4b2949dd80..2bbec7930e7 100644 --- a/dgraph/cmd/bulk/schema.go +++ b/dgraph/cmd/bulk/schema.go @@ -22,6 +22,8 @@ import ( "math" "sync" + "google.golang.org/protobuf/proto" + "github.com/dgraph-io/badger/v4" "github.com/dgraph-io/dgraph/v24/posting" "github.com/dgraph-io/dgraph/v24/protos/pb" @@ -173,7 +175,7 @@ func (s *schemaStore) write(db *badger.DB, preds []string) { continue } k := x.SchemaKey(pred) - v, err := sch.Marshal() + v, err := proto.Marshal(sch) x.Check(err) // Write schema and types always at timestamp 1, s.state.writeTs may not be equal to 1 // if bulk loader was restarted or other similar scenarios. @@ -183,7 +185,7 @@ func (s *schemaStore) write(db *badger.DB, preds []string) { // Write all the types as all groups should have access to all the types. for _, typ := range s.types { k := x.TypeKey(typ.TypeName) - v, err := typ.Marshal() + v, err := proto.Marshal(typ) x.Check(err) x.Check(w.SetAt(k, v, posting.BitSchemaPosting, 1)) } diff --git a/dgraph/cmd/debug/run.go b/dgraph/cmd/debug/run.go index 278760e211f..0dc8db2de95 100644 --- a/dgraph/cmd/debug/run.go +++ b/dgraph/cmd/debug/run.go @@ -35,6 +35,7 @@ import ( "github.com/dustin/go-humanize" "github.com/spf13/cobra" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" bpb "github.com/dgraph-io/badger/v4/pb" @@ -301,7 +302,7 @@ func showAllPostingsAt(db *badger.DB, readTs uint64) { val, err := item.ValueCopy(nil) x.Check(err) var plist pb.PostingList - x.Check(plist.Unmarshal(val)) + x.Check(proto.Unmarshal(val, &plist)) x.AssertTrue(len(plist.Postings) <= 1) var num int @@ -408,21 +409,21 @@ func history(lookup []byte, itr *badger.Iterator) { fmt.Fprintln(&buf) if meta&posting.BitDeltaPosting > 0 { plist := &pb.PostingList{} - x.Check(plist.Unmarshal(val)) + x.Check(proto.Unmarshal(val, plist)) for _, p := range plist.Postings { appendPosting(&buf, p) } } if meta&posting.BitCompletePosting > 0 { var plist pb.PostingList - x.Check(plist.Unmarshal(val)) + x.Check(proto.Unmarshal(val, &plist)) for _, p := range plist.Postings { appendPosting(&buf, p) } fmt.Fprintf(&buf, " Num uids = %d. Size = %d\n", - codec.ExactLen(plist.Pack), plist.Pack.Size()) + codec.ExactLen(plist.Pack), proto.Size(plist.Pack)) dec := codec.Decoder{Pack: plist.Pack} for uids := dec.Seek(0, codec.SeekStart); len(uids) > 0; uids = dec.Next() { for _, uid := range uids { @@ -525,7 +526,7 @@ func lookup(db *badger.DB) { x.Check(err) var s pb.SchemaUpdate - x.Check(s.Unmarshal(schemaBytes)) + x.Check(proto.Unmarshal(schemaBytes, &s)) fmt.Fprintf(&buf, "Value: %+v\n", s) } else { fmt.Fprintf(&buf, "Key: %x", item.Key()) @@ -671,7 +672,7 @@ func printKeys(db *badger.DB) { var count int err := buf.SliceIterate(func(s []byte) error { var kv bpb.KV - if err := kv.Unmarshal(s); err != nil { + if err := proto.Unmarshal(s, &kv); err != nil { return err } x.Check2(w.Write(kv.Value)) diff --git a/dgraph/cmd/debug/wal.go b/dgraph/cmd/debug/wal.go index 81021f7d689..b3aa42b367d 100644 --- a/dgraph/cmd/debug/wal.go +++ b/dgraph/cmd/debug/wal.go @@ -26,6 +26,7 @@ import ( humanize "github.com/dustin/go-humanize" "go.etcd.io/etcd/raft/v3" "go.etcd.io/etcd/raft/v3/raftpb" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/dgraph/v24/protos/pb" "github.com/dgraph-io/dgraph/v24/raftwal" @@ -53,13 +54,13 @@ func printEntry(es raftpb.Entry, pending map[uint64]bool, isZero bool) { var err error if isZero { var zpr pb.ZeroProposal - if err = zpr.Unmarshal(es.Data[8:]); err == nil { + if err = proto.Unmarshal(es.Data[8:], &zpr); err == nil { printZeroProposal(&buf, &zpr) return } } else { var pr pb.Proposal - if err = pr.Unmarshal(es.Data[8:]); err == nil { + if err = proto.Unmarshal(es.Data[8:], &pr); err == nil { printAlphaProposal(&buf, &pr, pending) return } @@ -82,9 +83,9 @@ func printBasic(store RaftStore) (uint64, uint64) { fmt.Printf("Snapshot Metadata: %+v\n", snap.Metadata) var ds pb.Snapshot var zs pb.ZeroSnapshot - if err := ds.Unmarshal(snap.Data); err == nil { + if err := proto.Unmarshal(snap.Data, &ds); err == nil { fmt.Printf("Snapshot Alpha: %+v\n", ds) - } else if err := zs.Unmarshal(snap.Data); err == nil { + } else if err := proto.Unmarshal(snap.Data, &zs); err == nil { for gid, group := range zs.State.GetGroups() { fmt.Printf("\nGROUP: %d\n", gid) for _, member := range group.GetMembers() { @@ -151,7 +152,7 @@ func overwriteSnapshot(store *raftwal.DiskStorage) error { var dsnap pb.Snapshot if len(snap.Data) > 0 { - x.Check(dsnap.Unmarshal(snap.Data)) + x.Check(proto.Unmarshal(snap.Data, &dsnap)) } fmt.Printf("Previous snapshot: %+v\n", dsnap) @@ -190,7 +191,7 @@ func overwriteSnapshot(store *raftwal.DiskStorage) error { dsnap.ReadTs = uint64(readTs) fmt.Printf("Setting snapshot to: %+v\n", dsnap) - data, err := dsnap.Marshal() + data, err := proto.Marshal(&dsnap) x.Check(err) if err = store.CreateSnapshot(dsnap.Index, &cs, data); err != nil { fmt.Printf("Created snapshot with error: %v\n", err) diff --git a/dgraph/cmd/zero/http.go b/dgraph/cmd/zero/http.go index c60ad6eeee6..784c3e090ed 100644 --- a/dgraph/cmd/zero/http.go +++ b/dgraph/cmd/zero/http.go @@ -25,9 +25,9 @@ import ( "strings" "time" - "github.com/gogo/protobuf/jsonpb" "github.com/golang/glog" "github.com/pkg/errors" + jsonpb "google.golang.org/protobuf/encoding/protojson" "github.com/dgraph-io/dgo/v240/protos/api" "github.com/dgraph-io/dgraph/v24/protos/pb" diff --git a/dgraph/cmd/zero/license_ee.go b/dgraph/cmd/zero/license_ee.go index bd113a17665..09473065d82 100644 --- a/dgraph/cmd/zero/license_ee.go +++ b/dgraph/cmd/zero/license_ee.go @@ -22,8 +22,8 @@ import ( "time" humanize "github.com/dustin/go-humanize" - "github.com/gogo/protobuf/proto" "github.com/golang/glog" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/dgraph/v24/ee/audit" "github.com/dgraph-io/dgraph/v24/protos/pb" diff --git a/dgraph/cmd/zero/zero.go b/dgraph/cmd/zero/zero.go index fc5f2a791f6..7acf74e6d42 100644 --- a/dgraph/cmd/zero/zero.go +++ b/dgraph/cmd/zero/zero.go @@ -25,10 +25,10 @@ import ( "sync" "time" - "github.com/gogo/protobuf/proto" "github.com/golang/glog" "github.com/pkg/errors" otrace "go.opencensus.io/trace" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/dgo/v240/protos/api" "github.com/dgraph-io/dgraph/v24/conn" diff --git a/edgraph/server.go b/edgraph/server.go index c7c6cb8fb90..91350e329cd 100644 --- a/edgraph/server.go +++ b/edgraph/server.go @@ -32,7 +32,6 @@ import ( "time" "unicode" - "github.com/gogo/protobuf/jsonpb" "github.com/golang/glog" "github.com/pkg/errors" ostats "go.opencensus.io/stats" @@ -42,6 +41,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" + jsonpb "google.golang.org/protobuf/encoding/protojson" "github.com/dgraph-io/dgo/v240" "github.com/dgraph-io/dgo/v240/protos/api" diff --git a/go.mod b/go.mod index 251713eaa95..be42f34f05b 100644 --- a/go.mod +++ b/go.mod @@ -11,14 +11,14 @@ require ( github.com/Masterminds/semver/v3 v3.3.0 github.com/bits-and-blooms/bitset v1.14.3 github.com/blevesearch/bleve/v2 v2.4.2 - github.com/dgraph-io/badger/v4 v4.3.0 - github.com/dgraph-io/dgo/v240 v240.0.0 + github.com/dgraph-io/badger/v4 v4.3.2-0.20241007124228-acd3d2600ad8 + github.com/dgraph-io/dgo/v240 v240.0.1-0.20240930061130-bd74854e7a01 github.com/dgraph-io/gqlgen v0.13.2 github.com/dgraph-io/gqlparser/v2 v2.2.2 github.com/dgraph-io/graphql-transport-ws v0.0.0-20210511143556-2cef522f1f15 - github.com/dgraph-io/ristretto v0.1.2-0.20240116140435-c67e07994f91 + github.com/dgraph-io/ristretto v1.0.0 github.com/dgraph-io/simdjson-go v0.3.0 - github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 + github.com/dgryski/go-farm v0.0.0-20240924180020-3414d57e47da github.com/dgryski/go-groupvarint v0.0.0-20230630160417-2bfb7969fb3c github.com/docker/docker v27.3.1+incompatible github.com/docker/go-connections v0.5.0 @@ -26,11 +26,9 @@ require ( github.com/getsentry/sentry-go v0.29.0 github.com/go-jose/go-jose/v4 v4.0.4 github.com/go-sql-driver/mysql v1.8.1 - github.com/gogo/protobuf v1.3.2 github.com/golang-jwt/jwt/v5 v5.2.1 github.com/golang/geo v0.0.0-20230421003525-6adc56603217 github.com/golang/glog v1.2.2 - github.com/golang/protobuf v1.5.4 github.com/golang/snappy v0.0.4 github.com/google/codesearch v1.2.0 github.com/google/go-cmp v0.6.0 @@ -45,10 +43,10 @@ require ( github.com/pkg/profile v1.7.0 github.com/prometheus/client_golang v1.20.4 github.com/soheilhy/cmux v0.1.5 - github.com/spf13/cast v1.3.1 + github.com/spf13/cast v1.7.0 github.com/spf13/cobra v1.8.1 github.com/spf13/pflag v1.0.5 - github.com/spf13/viper v1.7.1 + github.com/spf13/viper v1.19.0 github.com/stretchr/testify v1.9.0 github.com/twpayne/go-geom v1.5.7 github.com/viterin/vek v0.4.2 @@ -56,26 +54,27 @@ require ( go.etcd.io/etcd/raft/v3 v3.5.16 go.opencensus.io v0.24.0 go.uber.org/zap v1.27.0 - golang.org/x/crypto v0.27.0 - golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 + golang.org/x/crypto v0.28.0 + golang.org/x/exp v0.0.0-20241004190924-225e2abe05e6 golang.org/x/mod v0.21.0 - golang.org/x/net v0.29.0 + golang.org/x/net v0.30.0 golang.org/x/sync v0.8.0 - golang.org/x/sys v0.25.0 - golang.org/x/term v0.24.0 - golang.org/x/text v0.18.0 - golang.org/x/tools v0.25.0 - google.golang.org/grpc v1.66.2 + golang.org/x/sys v0.26.0 + golang.org/x/term v0.25.0 + golang.org/x/text v0.19.0 + golang.org/x/tools v0.26.0 + google.golang.org/grpc v1.67.1 + google.golang.org/protobuf v1.34.2 gopkg.in/yaml.v2 v2.4.0 ) require ( filippo.io/edwards25519 v1.1.0 // indirect - github.com/DataDog/datadog-go v4.8.3+incompatible // indirect - github.com/Microsoft/go-winio v0.6.2 // indirect - github.com/agnivade/levenshtein v1.1.1 // indirect + github.com/DataDog/datadog-go v3.5.0+incompatible // indirect + github.com/Microsoft/go-winio v0.6.1 // indirect + github.com/agnivade/levenshtein v1.0.3 // indirect github.com/beorn7/perks v1.0.1 // indirect - github.com/blevesearch/bleve_index_api v1.1.12 // indirect + github.com/blevesearch/bleve_index_api v1.1.10 // indirect github.com/blevesearch/geo v0.1.20 // indirect github.com/blevesearch/go-porterstemmer v1.0.3 // indirect github.com/blevesearch/segment v0.9.1 // indirect @@ -83,33 +82,35 @@ require ( github.com/blevesearch/upsidedown_store_api v1.0.2 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect - github.com/chewxy/math32 v1.11.0 // indirect + github.com/chewxy/math32 v1.10.1 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect - github.com/distribution/reference v0.6.0 // indirect + github.com/distribution/reference v0.5.0 // indirect github.com/docker/go-units v0.5.0 // indirect github.com/eapache/go-resiliency v1.7.0 // indirect github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 // indirect github.com/eapache/queue v1.1.0 // indirect - github.com/felixge/fgprof v0.9.5 // indirect + github.com/felixge/fgprof v0.9.3 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/go-kit/log v0.2.1 // indirect - github.com/go-logfmt/logfmt v0.6.0 // indirect + github.com/go-logfmt/logfmt v0.5.1 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect + github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/golang/protobuf v1.5.4 // indirect github.com/google/flatbuffers v24.3.25+incompatible // indirect - github.com/google/pprof v0.0.0-20240910150728-a0b0bb1d4134 // indirect + github.com/google/pprof v0.0.0-20211214055906-6f57359322fd // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/go-retryablehttp v0.7.7 // indirect github.com/hashicorp/go-rootcerts v1.0.2 // indirect - github.com/hashicorp/go-secure-stdlib/parseutil v0.1.8 // indirect + github.com/hashicorp/go-secure-stdlib/parseutil v0.1.6 // indirect github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect - github.com/hashicorp/go-sockaddr v1.0.6 // indirect + github.com/hashicorp/go-sockaddr v1.0.2 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect - github.com/hashicorp/hcl v1.0.1-vault-5 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jcmturner/aescts/v2 v2.0.0 // indirect github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect @@ -117,11 +118,12 @@ require ( github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect github.com/jcmturner/rpc/v2 v2.0.3 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/klauspost/compress v1.17.9 // indirect - github.com/klauspost/cpuid/v2 v2.2.8 // indirect + github.com/klauspost/compress v1.17.10 // indirect + github.com/klauspost/cpuid v1.2.3 // indirect + github.com/klauspost/cpuid/v2 v2.0.3 // indirect github.com/magiconair/properties v1.8.7 // indirect - github.com/minio/md5-simd v1.1.2 // indirect - github.com/minio/sha256-simd v1.0.1 // indirect + github.com/minio/md5-simd v1.1.0 // indirect + github.com/minio/sha256-simd v0.1.1 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/moby/docker-image-spec v1.3.1 // indirect @@ -130,37 +132,36 @@ require ( github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.0 // indirect - github.com/pelletier/go-toml v1.9.5 // indirect - github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect + github.com/pelletier/go-toml/v2 v2.2.2 // indirect + github.com/philhofer/fwd v1.0.0 // indirect github.com/pierrec/lz4/v4 v4.1.21 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/prometheus/client_model v0.6.1 // indirect - github.com/prometheus/common v0.59.1 // indirect + github.com/prometheus/common v0.55.0 // indirect github.com/prometheus/procfs v0.15.1 // indirect - github.com/prometheus/statsd_exporter v0.27.1 // indirect + github.com/prometheus/statsd_exporter v0.22.7 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect - github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect + github.com/sagikazarmark/locafero v0.4.0 // indirect + github.com/sagikazarmark/slog-shim v0.1.0 // indirect + github.com/sourcegraph/conc v0.3.0 // indirect github.com/spf13/afero v1.11.0 // indirect - github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/subosito/gotenv v1.6.0 // indirect - github.com/tinylib/msgp v1.2.1 // indirect - github.com/uber/jaeger-client-go v2.28.0+incompatible // indirect + github.com/tinylib/msgp v1.1.2 // indirect + github.com/uber/jaeger-client-go v2.25.0+incompatible // indirect github.com/viterin/partial v1.1.0 // indirect github.com/xdg/stringprep v1.0.3 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect - go.opentelemetry.io/otel v1.29.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.29.0 // indirect - go.opentelemetry.io/otel/metric v1.29.0 // indirect - go.opentelemetry.io/otel/sdk v1.29.0 // indirect - go.opentelemetry.io/otel/trace v1.29.0 // indirect - go.uber.org/multierr v1.11.0 // indirect - golang.org/x/time v0.6.0 // indirect - google.golang.org/api v0.196.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect + go.opentelemetry.io/otel v1.30.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.30.0 // indirect + go.opentelemetry.io/otel/metric v1.30.0 // indirect + go.opentelemetry.io/otel/sdk v1.30.0 // indirect + go.opentelemetry.io/otel/trace v1.30.0 // indirect + go.uber.org/multierr v1.10.0 // indirect + golang.org/x/time v0.5.0 // indirect + google.golang.org/api v0.171.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect - google.golang.org/protobuf v1.34.2 // indirect - gopkg.in/DataDog/dd-trace-go.v1 v1.67.1 // indirect + gopkg.in/DataDog/dd-trace-go.v1 v1.22.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect gotest.tools/v3 v3.5.1 // indirect diff --git a/go.sum b/go.sum index ae45a5043af..04a036ffd70 100644 --- a/go.sum +++ b/go.sum @@ -21,7 +21,6 @@ cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4g cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= 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/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= @@ -45,9 +44,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/DATA-DOG/go-sqlmock v1.5.2 h1:OcvFkGmslmlZibjAjaHm3L//6LiuBgolP7OputlJIzU= github.com/DATA-DOG/go-sqlmock v1.5.2/go.mod h1:88MAG/4G7SMwSE3CeA0ZKzrT5CiOU3OJ+JlNzwDqpNU= +github.com/DataDog/datadog-go v3.5.0+incompatible h1:AShr9cqkF+taHjyQgcBcQUt/ZNK+iPq4ROaZwSX5c/U= github.com/DataDog/datadog-go v3.5.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/DataDog/datadog-go v4.8.3+incompatible h1:fNGaYSuObuQb5nzeTQqowRAd9bpDIRRV4/gUtIBjh8Q= -github.com/DataDog/datadog-go v4.8.3+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/opencensus-go-exporter-datadog v0.0.0-20220622145613-731d59e8b567 h1:Z7zdcyzme2egv0lC43X1Q/+DxHjZflQCnJXX0mDp7+I= github.com/DataDog/opencensus-go-exporter-datadog v0.0.0-20220622145613-731d59e8b567/go.mod h1:/VV3EFO/hTNQZHAqaj+CPGy2+ioFrP4EX3iRwozubhQ= github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM= @@ -56,13 +54,11 @@ github.com/IBM/sarama v1.43.3 h1:Yj6L2IaNvb2mRBop39N7mmJAHBVY3dTPncr3qGVkxPA= github.com/IBM/sarama v1.43.3/go.mod h1:FVIRaLrhK3Cla/9FfRF5X9Zua2KpS3SYIXxhac1H+FQ= github.com/Masterminds/semver/v3 v3.3.0 h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+hmvYS0= github.com/Masterminds/semver/v3 v3.3.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= -github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= -github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= +github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= +github.com/agnivade/levenshtein v1.0.3 h1:M5ZnqLOoZR8ygVq0FfkXsNOKzMCk0xRiow0R5+5VkQ0= github.com/agnivade/levenshtein v1.0.3/go.mod h1:4SFRZbbXWLF4MU1T9Qg0pGgH3Pjs+t6ie5efyrwRJXs= -github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8= -github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo= github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= github.com/alecthomas/assert/v2 v2.10.0 h1:jjRCHsj6hBJhkmhznrCzoNpbA3zqy0fYiUcYZP/GkPY= github.com/alecthomas/assert/v2 v2.10.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k= @@ -78,8 +74,6 @@ github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNg github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 h1:jfIu9sQUG6Ig+0+Ap1h4unLjW6YQJpKZVmUzxsD4E/Q= github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -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/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= @@ -88,11 +82,10 @@ github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6r github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bits-and-blooms/bitset v1.14.3 h1:Gd2c8lSNf9pKXom5JtD7AaKO8o7fGQ2LtFj1436qilA= github.com/bits-and-blooms/bitset v1.14.3/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= -github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= github.com/blevesearch/bleve/v2 v2.4.2 h1:NooYP1mb3c0StkiY9/xviiq2LGSaE8BQBCc/pirMx0U= github.com/blevesearch/bleve/v2 v2.4.2/go.mod h1:ATNKj7Yl2oJv/lGuF4kx39bST2dveX6w0th2FFYLkc8= -github.com/blevesearch/bleve_index_api v1.1.12 h1:P4bw9/G/5rulOF7SJ9l4FsDoo7UFJ+5kexNy1RXfegY= -github.com/blevesearch/bleve_index_api v1.1.12/go.mod h1:PbcwjIcRmjhGbkS/lJCpfgVSMROV6TRubGGAODaK1W8= +github.com/blevesearch/bleve_index_api v1.1.10 h1:PDLFhVjrjQWr6jCuU7TwlmByQVCSEURADHdCqVS9+g0= +github.com/blevesearch/bleve_index_api v1.1.10/go.mod h1:PbcwjIcRmjhGbkS/lJCpfgVSMROV6TRubGGAODaK1W8= github.com/blevesearch/geo v0.1.20 h1:paaSpu2Ewh/tn5DKn/FB5SzvH0EWupxHEIwbCk/QPqM= github.com/blevesearch/geo v0.1.20/go.mod h1:DVG2QjwHNMFmjo+ZgzrIq2sfCh6rIHzy9d9d0B59I6w= github.com/blevesearch/go-porterstemmer v1.0.3 h1:GtmsqID0aZdCSNiY8SkuPJ12pD4jI+DdXTAn4YRcHCo= @@ -106,33 +99,21 @@ github.com/blevesearch/upsidedown_store_api v1.0.2/go.mod h1:M01mh3Gpfy56Ps/UXHj 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/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.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/chewxy/math32 v1.11.0 h1:8sek2JWqeaKkVnHa7bPVqCEOUPbARo4SGxs6toKyAOo= -github.com/chewxy/math32 v1.11.0/go.mod h1:dOB2rcuFrCn6UHrze36WSLVPKtzPMRAQvBvUwkSsLqs= -github.com/chromedp/cdproto v0.0.0-20230802225258-3cf4e6d46a89/go.mod h1:GKljq0VrfU4D5yc+2qA6OVr8pmO/MBbPEWqWQ/oqGEs= -github.com/chromedp/chromedp v0.9.2/go.mod h1:LkSXJKONWTCHAfQasKFUZI+mxqS4tZqhmtGzzhLsnLs= -github.com/chromedp/sysutil v1.0.0/go.mod h1:kgWmDdq8fTzXYcKIBqIYvRRTnYb9aNS9moAV0xufSww= +github.com/chewxy/math32 v1.10.1 h1:LFpeY0SLJXeaiej/eIp2L40VYfscTvKh/FSEZ68uMkU= +github.com/chewxy/math32 v1.10.1/go.mod h1:dOB2rcuFrCn6UHrze36WSLVPKtzPMRAQvBvUwkSsLqs= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= 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/cockroachdb/datadriven v1.0.2 h1:H9MtNqVoVhvd9nCBwOyDjUEdZCREqbIdCJD93PBm/jA= github.com/cockroachdb/datadriven v1.0.2/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo= -github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= -github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= 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.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= @@ -140,10 +121,10 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dgraph-io/badger/v4 v4.3.0 h1:lcsCE1/1qrRhqP+zYx6xDZb8n7U+QlwNicpc676Ub40= -github.com/dgraph-io/badger/v4 v4.3.0/go.mod h1:Sc0T595g8zqAQRDf44n+z3wG4BOqLwceaFntt8KPxUM= -github.com/dgraph-io/dgo/v240 v240.0.0 h1:LgpaQoQuM8YD3/oHjjqzCfORPlw34OnIcA/jMiKuDJc= -github.com/dgraph-io/dgo/v240 v240.0.0/go.mod h1:YrKW6k5cJpG6qP+MtNlXBogNMTupDmnnmiF6heC0Uao= +github.com/dgraph-io/badger/v4 v4.3.2-0.20241007124228-acd3d2600ad8 h1:jCnd1o7S5GGFhBAVFJx9Ws6qDvHwD/hH4gSaEzLaDIc= +github.com/dgraph-io/badger/v4 v4.3.2-0.20241007124228-acd3d2600ad8/go.mod h1:q/YtUOZOsthQi1EdVEkqW15gftkZEvQ3bsz/RdgmJkk= +github.com/dgraph-io/dgo/v240 v240.0.1-0.20240930061130-bd74854e7a01 h1:CpKGEp8dqHOFSgfKUWkzHXBz/mRd8p4xR+BeW+BwNQI= +github.com/dgraph-io/dgo/v240 v240.0.1-0.20240930061130-bd74854e7a01/go.mod h1:JDyzUrQ4Coj3j+7LkdH3NhJWOVj4r8ES8uVM7JDIZMY= github.com/dgraph-io/gqlgen v0.13.2 h1:TNhndk+eHKj5qE7BenKKSYdSIdOGhLqxR1rCiMso9KM= github.com/dgraph-io/gqlgen v0.13.2/go.mod h1:iCOrOv9lngN7KAo+jMgvUPVDlYHdf7qDwsTkQby2Sis= github.com/dgraph-io/gqlparser/v2 v2.1.1/go.mod h1:MYS4jppjyx8b9tuUtjV7jU1UFZK6P9fvO8TsIsQtRKU= @@ -151,21 +132,18 @@ github.com/dgraph-io/gqlparser/v2 v2.2.2 h1:CnxXOKL4EPguKqcGV/z4u4VoW5izUkOTIsNM github.com/dgraph-io/gqlparser/v2 v2.2.2/go.mod h1:MYS4jppjyx8b9tuUtjV7jU1UFZK6P9fvO8TsIsQtRKU= github.com/dgraph-io/graphql-transport-ws v0.0.0-20210511143556-2cef522f1f15 h1:X2NRsgAtVUAp2nmTPCq+x+wTcRRrj74CEpy7E0Unsl4= github.com/dgraph-io/graphql-transport-ws v0.0.0-20210511143556-2cef522f1f15/go.mod h1:7z3c/5w0sMYYZF5bHsrh8IH4fKwG5O5Y70cPH1ZLLRQ= -github.com/dgraph-io/ristretto v0.1.2-0.20240116140435-c67e07994f91 h1:Pux6+xANi0I7RRo5E1gflI4EZ2yx3BGZ75JkAIvGEOA= -github.com/dgraph-io/ristretto v0.1.2-0.20240116140435-c67e07994f91/go.mod h1:swkazRqnUf1N62d0Nutz7KIj2UKqsm/H8tD0nBJAXqM= +github.com/dgraph-io/ristretto v1.0.0 h1:SYG07bONKMlFDUYu5pEu3DGAh8c2OFNzKm6G9J4Si84= +github.com/dgraph-io/ristretto v1.0.0/go.mod h1:jTi2FiYEhQ1NsMmA7DeBykizjOuY88NhKBkepyu1jPc= github.com/dgraph-io/simdjson-go v0.3.0 h1:h71LO7vR4LHMPUhuoGN8bqGm1VNfGOlAG8BI6iDUKw0= github.com/dgraph-io/simdjson-go v0.3.0/go.mod h1:Otpysdjaxj9OGaJusn4pgQV7OFh2bELuHANq0I78uvY= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= -github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/dgryski/go-farm v0.0.0-20240924180020-3414d57e47da h1:aIftn67I1fkbMa512G+w+Pxci9hJPB8oMnkcP3iZF38= +github.com/dgryski/go-farm v0.0.0-20240924180020-3414d57e47da/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-groupvarint v0.0.0-20230630160417-2bfb7969fb3c h1:cHaw4wmusVzAZLEPWOCCGCfu6UvFXx9UboCHQCnjvxY= github.com/dgryski/go-groupvarint v0.0.0-20230630160417-2bfb7969fb3c/go.mod h1:MlkUQveSLEDbIgq2r1e++tSf0zfzU9mQpa9Qkczl+9Y= -github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= +github.com/dgryski/trifles v0.0.0-20190318185328-a8d75aae118c h1:TUuUh0Xgj97tLMNtWtNvI9mIV6isjEb9lBMNv+77IGM= github.com/dgryski/trifles v0.0.0-20190318185328-a8d75aae118c/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA= -github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48 h1:fRzb/w+pyskVMQ+UbP35JkH8yB7MYb4q/qhBarqZE6g= -github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA= -github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk= -github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= +github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0= +github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= github.com/docker/docker v27.3.1+incompatible h1:KttF0XoteNTicmUtBO0L2tP+J7FGRFTjaEF4k6WdhfI= github.com/docker/docker v27.3.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c= @@ -188,20 +166,19 @@ github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7 github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= +github.com/felixge/fgprof v0.9.3 h1:VvyZxILNuCiUCSXtPtYmmtGvb65nqXh2QFWc0Wpf2/g= github.com/felixge/fgprof v0.9.3/go.mod h1:RdbpDgzqYVh/T9fPELJyV7EYJuHB55UTEULNun8eiPw= -github.com/felixge/fgprof v0.9.5 h1:8+vR6yu2vvSKn08urWyEuxx75NWPEvybbkBirEpsbVY= -github.com/felixge/fgprof v0.9.5/go.mod h1:yKl+ERSa++RYOs32d8K6WEXCB4uXdLls4ZaZPpayhMM= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +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.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= github.com/getsentry/sentry-go v0.29.0 h1:YtWluuCFg9OfcqnaujpY918N/AhCCwarIDWOYSBAjCA= github.com/getsentry/sentry-go v0.29.0/go.mod h1:jhPesDAL0Q0W2+2YEuVOvdWmVtdsr1+jtBrlDEVWwLY= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/go-chi/chi v3.3.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ= github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= @@ -219,9 +196,8 @@ github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBj github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +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-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= -github.com/go-logfmt/logfmt v0.6.0/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/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= @@ -233,12 +209,8 @@ github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqw github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-test/deep v1.0.2 h1:onZX1rnHT3Wv6cqNgYyFOOlgVKJrksuCMCRvJStbMYw= github.com/go-test/deep v1.0.2/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= -github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM= -github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= -github.com/gobwas/ws v1.2.1/go.mod h1:hRKAFb8wOxFROYNsT1bqfWnhX+b5MFeJM9r2ZSwg/KY= github.com/gogo/protobuf v1.0.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.1.1/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.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= @@ -250,7 +222,6 @@ github.com/golang/geo v0.0.0-20230421003525-6adc56603217/go.mod h1:8wI0hitZ3a1Ix github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= -github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 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= @@ -313,10 +284,8 @@ 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-20211214055906-6f57359322fd h1:1FjCyPC+syAzJ5/2S8fqdZK1R22vvA0J7JZKcuOIQ7Y= github.com/google/pprof v0.0.0-20211214055906-6f57359322fd/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg= -github.com/google/pprof v0.0.0-20240227163752-401108e1b7e7/go.mod h1:czg5+yv1E0ZGTi6S6vVK1mke0fV+FaUhNGcd6VRS9Ik= -github.com/google/pprof v0.0.0-20240910150728-a0b0bb1d4134 h1:c5FlPPgxOn7kJz3VoPLkQYQXGBS3EklQ4Zfi57uOuqQ= -github.com/google/pprof v0.0.0-20240910150728-a0b0bb1d4134/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= @@ -334,62 +303,42 @@ github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aN github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/graph-gophers/graphql-go v1.5.0 h1:fDqblo50TEpD0LY7RXk/LFVYEVqo3+tXMNMPSVXA1yc= github.com/graph-gophers/graphql-go v1.5.0/go.mod h1:YtmJZDLbF1YYNrlNAuiO5zAStUWc3XZT07iGsVqe1Os= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.9.0 h1:bM6ZAFZmc/wPFaRDi0d5L7hGEZEx/2u+Tmr2evNHDiI= -github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 h1:asbCHRVmodnJTuQ3qamDwqVOIjwqUPTYmYuemVOx+Ys= github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0/go.mod h1:ggCgvZ2r7uOoQjOyu2Y1NhHmEPPzzuhWgcza5M1Ji1I= -github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= -github.com/hashicorp/consul/sdk v0.1.1/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-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= -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-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU= github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= -github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= -github.com/hashicorp/go-secure-stdlib/parseutil v0.1.8 h1:iBt4Ew4XEGLfh6/bPk4rSYmuZJGizr6/x/AEizP0CQc= -github.com/hashicorp/go-secure-stdlib/parseutil v0.1.8/go.mod h1:aiJI+PIApBRQG7FZTEBx5GiiX+HbOHilUdNxUZi4eV0= +github.com/hashicorp/go-secure-stdlib/parseutil v0.1.6 h1:om4Al8Oy7kCm/B86rLCLah4Dt5Aa0Fr5rYBG60OzwHQ= +github.com/hashicorp/go-secure-stdlib/parseutil v0.1.6/go.mod h1:QmrqtbKuxxSWTN3ETMPuB+VtEiBJ/A9XhoYGv8E1uD8= +github.com/hashicorp/go-secure-stdlib/strutil v0.1.1/go.mod h1:gKOamz3EwoIoJq7mlMIRBpVTAUn8qPCrEclOKKWhD3U= github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 h1:kes8mmyCpxJsI7FTwtzRqEy9CdjCtrXrXGuOpxEA7Ts= github.com/hashicorp/go-secure-stdlib/strutil v0.1.2/go.mod h1:Gou2R9+il93BqX25LAKCLuM+y9U2T4hlwvT1yprcna4= -github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-sockaddr v1.0.6 h1:RSG8rKU28VTUTvEKghe5gIhIQpv8evvNpnDEyqO4u9I= -github.com/hashicorp/go-sockaddr v1.0.6/go.mod h1:uoUUmtwU7n9Dv3O4SNLeFvg0SxQ3lyjsj6+CCykpaxI= -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-sockaddr v1.0.2 h1:ztczhD1jLxIRjVejw8gFomI1BQZOe2WoVOu0SyteCQc= +github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A= github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -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/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/hcl v1.0.1-vault-5 h1:kI3hhbbyzr4dldA8UdTb7ZlVVlI2DACdCfz31RPDgJM= -github.com/hashicorp/hcl v1.0.1-vault-5/go.mod h1:XYhtn6ijBSAj6n4YqAaf7RBPS4I06AItNorpy+MoQNM= -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/hashicorp/vault/api v1.15.0 h1:O24FYQCWwhwKnF7CuSqP30S51rTV7vz1iACXE/pj5DA= github.com/hashicorp/vault/api v1.15.0/go.mod h1:+5YTO09JGn0u+b6ySD/LLVf8WkJCPLAL2Vkmrn2+CM8= 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/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= -github.com/ianlancetaylor/demangle v0.0.0-20230524184225-eabc099b10ab/go.mod h1:gx7rwoVhcfuVKG5uya9Hs3Sxj7EIvldVofAWIUtGouw= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/jcmturner/aescts/v2 v2.0.0 h1:9YKLH6ey7H4eDBXW8khjYslgyqG2xZikXP0EQFKrle8= @@ -404,8 +353,6 @@ github.com/jcmturner/gokrb5/v8 v8.4.4 h1:x1Sv4HaTpepFkXbt2IkL29DXRf8sOfZXo8eRKh6 github.com/jcmturner/gokrb5/v8 v8.4.4/go.mod h1:1btQEpgT6k+unzCwX1KdWMEwPPkkgBtP+F6aCACiMrs= github.com/jcmturner/rpc/v2 v2.0.3 h1:7FXXj8Ti1IaVFpSAziCZWNzbNuZmnvw/i6CqLNdWfZY= github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= @@ -419,18 +366,16 @@ github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfV github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= -github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= 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/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= -github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= +github.com/klauspost/compress v1.17.10 h1:oXAz+Vh0PMUvJczoi+flxpnBEPxoER1IaAnU/NMPtT0= +github.com/klauspost/compress v1.17.10/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= +github.com/klauspost/cpuid v1.2.3 h1:CCtW0xUnWGVINKvE/WWOYKdsPV6mawAtvQuSl8guwQs= github.com/klauspost/cpuid v1.2.3/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= -github.com/klauspost/cpuid/v2 v2.0.1/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= +github.com/klauspost/cpuid/v2 v2.0.3 h1:DNljyrHyxlkk8139OXIAAauCwV8eQGDD6Z8YqnDXdZw= github.com/klauspost/cpuid/v2 v2.0.3/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.8 h1:+StwCXwm9PdpiEkPyzBXIy+M9KUb4ODm0Zarf1kS5BM= -github.com/klauspost/cpuid/v2 v2.2.8/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/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= @@ -443,12 +388,9 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/ledongthuc/pdf v0.0.0-20220302134840-0c2507a12d80/go.mod h1:imJHygn/1yfhB7XSJJKlFZKl/J+dCPAknuiaGOshXAs= github.com/logrusorgru/aurora v0.0.0-20200102142835-e9ef32dff381/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= -github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/matryer/moq v0.0.0-20200106131100-75d0ddfc0007/go.mod h1:9ELz6aaclSIGnZBoaSLZ3NAl1VTufbOrXBPvtcy6WiQ= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= @@ -460,25 +402,18 @@ github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Ky 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/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/minio/md5-simd v1.1.0 h1:QPfiOqlZH+Cj9teu0t9b1nTBfPbyTl16Of5MeuShdK4= github.com/minio/md5-simd v1.1.0/go.mod h1:XpBqgZULrMYD3R+M28PcmP0CkI7PEMzB3U77ZrKZ0Gw= -github.com/minio/md5-simd v1.1.2 h1:Gdi1DZK69+ZVMoNHRXJyNcxrMA4dSxoYHZSQbirFg34= -github.com/minio/md5-simd v1.1.2/go.mod h1:MzdKDxYpY2BT9XQFocsiZf/NKVtR7nkE4RoEpN+20RM= github.com/minio/minio-go/v6 v6.0.57 h1:ixPkbKkyD7IhnluRgQpGSpHdpvNVaW6OD5R9IAO/9Tw= github.com/minio/minio-go/v6 v6.0.57/go.mod h1:5+R/nM9Pwrh0vqF+HbYYDQ84wdUFPyXHkrdT4AIkifM= +github.com/minio/sha256-simd v0.1.1 h1:5QHSlgo3nt5yKOJrC7W8w7X+NFl8cMPZm96iu8kKUJU= github.com/minio/sha256-simd v0.1.1/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= -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/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -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/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= github.com/mitchellh/mapstructure v0.0.0-20180203102830-a4e142e9c047/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= 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/panicwrap v1.0.0 h1:67zIyVakCIvcs69A0FGfZjBdPleaonSgGlXRSRlb6fE= @@ -501,7 +436,6 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8m github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug= @@ -511,16 +445,12 @@ github.com/opentracing/basictracer-go v1.1.0/go.mod h1:V2HZueSJEp879yv285Aap1BS6 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/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= -github.com/orisano/pixelmatch v0.0.0-20220722002657-fb0b55479cde/go.mod h1:nZgzbfBr3hhjoZnS66nKrHmduYNpc34ny7RK4z5/HM0= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/paulmach/go.geojson v1.5.0 h1:7mhpMK89SQdHFcEGomT7/LuJhwhEgfmpWYVlVmLEdQw= github.com/paulmach/go.geojson v1.5.0/go.mod h1:DgdUy2rRVDDVgKqrjMe2vZAHMfhDTrjVKt3LmHIXGbU= -github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= -github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= +github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= +github.com/philhofer/fwd v1.0.0 h1:UbZqGr5Y38ApvM/V/jEljVxwocdweyH+vmYvRPBnbqQ= github.com/philhofer/fwd v1.0.0/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= -github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 h1:jYi87L8j62qkXzaYHAQAhEapgukhenIMZRBKTNRLHJ4= -github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986/go.mod h1:RqIHx9QI14HlwKwm98g9Re5prTQ6LdeRQn+gXJFxsJM= github.com/pierrec/lz4/v4 v4.1.21 h1:yOVMLb6qSIDP67pl/5F7RepeKYu/VmTyEXvuMI5d9mQ= github.com/pierrec/lz4/v4 v4.1.21/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= @@ -536,7 +466,6 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= @@ -551,18 +480,15 @@ github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1: github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 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-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= 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.59.1 h1:LXb1quJHWm1P6wq/U824uxYi4Sg0oGvNeUm1z5dJoX0= -github.com/prometheus/common v0.59.1/go.mod h1:GpWM7dewqmVYcd7SmRaiWVe9SSqjf0UrwnYnpEZNuT0= +github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc= +github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 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= @@ -570,23 +496,23 @@ github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1 github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= +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/prometheus/statsd_exporter v0.27.1 h1:tcRJOmwlA83HPfWzosAgr2+zEN5XDFv+M2mn/uYkn5Y= -github.com/prometheus/statsd_exporter v0.27.1/go.mod h1:vA6ryDfsN7py/3JApEst6nLTJboq66XsNcJGNmC88NQ= -github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= 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/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= -github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +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.6.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= 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/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/ryanuber/go-glob v1.0.0 h1:iQh3xXAumdQ+4Ufa5b25cRpC5TYKlno6hsv6Cb3pkBk= github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= +github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= +github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= +github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= @@ -600,27 +526,20 @@ github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= 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/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/soheilhy/cmux v0.1.5 h1:jjzc5WVemNEDTLwv9tlmemhC73tI08BNOIGwBOo10Js= github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= +github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= -github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.3.1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng= -github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w= +github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= -github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= -github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= -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= -github.com/spf13/viper v1.7.1 h1:pM5oEahlgWv/WnHXpgbKz7iLIxRf65tye2Ci+XFK5sk= -github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI= +github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg= 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= @@ -637,21 +556,18 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ 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.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/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= +github.com/tinylib/msgp v1.1.2 h1:gWmO7n0Ys2RBEb7GPYB9Ujq8Mk5p2U08lRnmMcGy6BQ= github.com/tinylib/msgp v1.1.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE= -github.com/tinylib/msgp v1.2.1 h1:6ypy2qcCznxpP4hpORzhtXyTqrBs7cfM9MCCWY8zsmU= -github.com/tinylib/msgp v1.2.1/go.mod h1:2vIGs3lcUo8izAATNobrCHevYZC/LMsJtw4JPiYPHro= -github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/twpayne/go-geom v1.5.7 h1:7fdceDUr03/MP7rAKOaTV6x9njMiQdxB/D0PDzMTCDc= github.com/twpayne/go-geom v1.5.7/go.mod h1:y4fTAQtLedXW8eG2Yo4tYrIGN1yIwwKkmA+K3iSHKBA= +github.com/uber/jaeger-client-go v2.25.0+incompatible h1:IxcNZ7WRY1Y3G4poYlx24szfsn/3LvK9QHCq9oQw8+U= github.com/uber/jaeger-client-go v2.25.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= -github.com/uber/jaeger-client-go v2.28.0+incompatible h1:G4QSBfvPKvg5ZM2j9MrJFdfI5iSljY/WnJqOGFao6HI= -github.com/uber/jaeger-client-go v2.28.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/urfave/cli/v2 v2.1.1/go.mod h1:SE9GqnLQmjVa0iPEY0f1w3ygNIYcIJ0OKPMoW2caLfQ= github.com/vektah/dataloaden v0.2.1-0.20190515034641-a19b9a6e7c9e/go.mod h1:/HUdMve7rvxZma+2ZELQeNh88+003LL7Pf/CZ089j8U= github.com/vektah/gqlparser/v2 v2.1.0/go.mod h1:SyUiHgLATUR8BiYURfTirrTcGpcE+4XkV2se04Px1Ms= @@ -663,13 +579,11 @@ github.com/xdg/scram v1.0.5 h1:TuS0RFmt5Is5qm9Tm2SoD89OPqe4IRiFtyFY4iwWXsw= github.com/xdg/scram v1.0.5/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v1.0.3 h1:cmL5Enob4W83ti/ZHuZLuKD/xqJfus4fVPwE+/BDm+4= github.com/xdg/stringprep v1.0.3/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= 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.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/etcd/client/pkg/v3 v3.5.16 h1:ZgY48uH6UvB+/7R9Yf4x574uCO3jIx0TRDyetSfId3Q= go.etcd.io/etcd/client/pkg/v3 v3.5.16/go.mod h1:V8acl8pcEK0Y2g19YlOV9m9ssUe6MgiDSobSoaBAM0E= go.etcd.io/etcd/raft/v3 v3.5.16 h1:zBXA3ZUpYs1AwiLGPafYAKKl/CORn/uaxYDwlNwndAk= @@ -682,35 +596,31 @@ 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.54.0 h1:TT4fX+nBOA/+LUkobKGW1ydGcn+G3vRw9+g5HwCphpk= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0/go.mod h1:L7UH0GbB0p47T4Rri3uHjbpCFYrVrwc1I25QhNPiGK8= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= go.opentelemetry.io/otel v1.6.3/go.mod h1:7BgNga5fNlF/iZjG06hM3yofffp0ofKCDwSXx1GC4dI= -go.opentelemetry.io/otel v1.29.0 h1:PdomN/Al4q/lN6iBJEN3AwPvUiHPMlt93c8bqTG5Llw= -go.opentelemetry.io/otel v1.29.0/go.mod h1:N/WtXPs1CNCUEx+Agz5uouwCba+i+bJGFicT8SR4NP8= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.29.0 h1:dIIDULZJpgdiHz5tXrTgKIMLkus6jEFa7x5SOKcyR7E= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.29.0/go.mod h1:jlRVBe7+Z1wyxFSUs48L6OBQZ5JwH2Hg/Vbl+t9rAgI= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.29.0 h1:JAv0Jwtl01UFiyWZEMiJZBiTlv5A50zNs8lsthXqIio= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.29.0/go.mod h1:QNKLmUEAq2QUbPQUfvw4fmv0bgbK7UlOSFCnXyfvSNc= -go.opentelemetry.io/otel/metric v1.29.0 h1:vPf/HFWTNkPu1aYeIsc98l4ktOQaL6LeSoeV2g+8YLc= -go.opentelemetry.io/otel/metric v1.29.0/go.mod h1:auu/QWieFVWx+DmQOUMgj0F8LHWdgalxXqvp7BII/W8= -go.opentelemetry.io/otel/sdk v1.29.0 h1:vkqKjk7gwhS8VaWb0POZKmIEDimRCMsopNYnriHyryo= -go.opentelemetry.io/otel/sdk v1.29.0/go.mod h1:pM8Dx5WKnvxLCb+8lG1PRNIDxu9g9b9g59Qr7hfAAok= +go.opentelemetry.io/otel v1.30.0 h1:F2t8sK4qf1fAmY9ua4ohFS/K+FUuOPemHUIXHtktrts= +go.opentelemetry.io/otel v1.30.0/go.mod h1:tFw4Br9b7fOS+uEao81PJjVMjW/5fvNCbpsDIXqP0pc= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.30.0 h1:lsInsfvhVIfOI6qHVyysXMNDnjO9Npvl7tlDPJFBVd4= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.30.0/go.mod h1:KQsVNh4OjgjTG0G6EiNi1jVpnaeeKsKMRwbLN+f1+8M= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.30.0 h1:umZgi92IyxfXd/l4kaDhnKgY8rnN/cZcF1LKc6I8OQ8= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.30.0/go.mod h1:4lVs6obhSVRb1EW5FhOuBTyiQhtRtAnnva9vD3yRfq8= +go.opentelemetry.io/otel/metric v1.30.0 h1:4xNulvn9gjzo4hjg+wzIKG7iNFEaBMX00Qd4QIZs7+w= +go.opentelemetry.io/otel/metric v1.30.0/go.mod h1:aXTfST94tswhWEb+5QjlSqG+cZlmyXy/u8jFpor3WqQ= +go.opentelemetry.io/otel/sdk v1.30.0 h1:cHdik6irO49R5IysVhdn8oaiR9m8XluDaJAs4DfOrYE= +go.opentelemetry.io/otel/sdk v1.30.0/go.mod h1:p14X4Ok8S+sygzblytT1nqG98QG2KYKv++HE0LY/mhg= go.opentelemetry.io/otel/trace v1.6.3/go.mod h1:GNJQusJlUgZl9/TQBPKU/Y/ty+0iVB5fjhKeJGZPGFs= -go.opentelemetry.io/otel/trace v1.29.0 h1:J/8ZNK4XgR7a21DZUAsbF8pZ5Jcw1VhACmnYt39JTi4= -go.opentelemetry.io/otel/trace v1.29.0/go.mod h1:eHl3w0sp3paPkYstJOmAimxhiFXPg+MMTlEh3nsQgWQ= +go.opentelemetry.io/otel/trace v1.30.0 h1:7UBkkYzeg3C7kQX8VAidWh2biiQbtAKjyIML8dQ9wmc= +go.opentelemetry.io/otel/trace v1.30.0/go.mod h1:5EyKqTzzmyqB9bwtCCq6pDLktPK6fmGf/Dph+8VI02o= go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeXrui0= go.opentelemetry.io/proto/otlp v1.3.1/go.mod h1:0X1WI4de4ZsLrrJNLAQbFeLCm3T7yBkR0XqQ7niQU+8= -go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= 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/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= -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/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ= +go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= 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-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 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= @@ -719,8 +629,8 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= -golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A= -golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70= +golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -734,8 +644,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-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk= -golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs1QcRcFwyucIwBGpK1p2f1YFFY= +golang.org/x/exp v0.0.0-20241004190924-225e2abe05e6 h1:1wqE9dj9NpSm04INVsJhhEUzhuDVjbcyKH91sVyPATw= +golang.org/x/exp v0.0.0-20241004190924-225e2abe05e6/go.mod h1:NQtJDoLvd6faHhE7m4T/1IY708gDefGGjR/iUW8yQQ8= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= 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= @@ -762,10 +672,7 @@ golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0= golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= 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-20181023162649-9b4f9f5ad519/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-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -803,8 +710,8 @@ golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su 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.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= -golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= +golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= +golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -829,8 +736,6 @@ golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= 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-20181026203630-95b1ffbd15a5/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-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -871,19 +776,17 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/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-20220310020820-b874c991c1a5/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-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.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= -golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= 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.24.0 h1:Mh5cbb+Zk2hqqXNO7S1iTjEphVL+jb8ZWaqh/g+JWkM= -golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8= +golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= +golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= 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= @@ -892,14 +795,13 @@ golang.org/x/text v0.3.3/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.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= -golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= 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.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U= -golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= -golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +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-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -921,7 +823,6 @@ golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgw golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -951,8 +852,8 @@ golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.25.0 h1:oFU9pkj/iJgs+0DT+VMHrx+oBKs/LJMV+Uvg78sl+fE= -golang.org/x/tools v0.25.0/go.mod h1:/vtpO8WL1N9cQC3FN5zPqb//fRXskFHbLKk4OW1Q7rg= +golang.org/x/tools v0.26.0 h1:v/60pFQmzmT9ExmjDv2gGIfi3OqfKoEP6I5+umXlbnQ= +golang.org/x/tools v0.26.0/go.mod h1:TPVVj70c7JJ3WCazhD8OdXcZg/og+b9+tH/KxylGwH0= 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= @@ -978,8 +879,8 @@ 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.196.0 h1:k/RafYqebaIJBO3+SMnfEGtFVlvp5vSgqTUF54UN/zg= -google.golang.org/api v0.196.0/go.mod h1:g9IL21uGkYgvQ5BZg6BAtoGJQIm8r6EgaAbpNey5wBE= +google.golang.org/api v0.171.0 h1:w174hnBPqut76FzW5Qaupt7zY8Kql6fiVjgys4f58sU= +google.golang.org/api v0.171.0/go.mod h1:Hnq5AHm4OTMt2BUVjael2CWZFD6vksJdWCWiUAmjC9o= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -1015,6 +916,7 @@ google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7Fc google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/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-20240213162025-012b6fc9bca9 h1:9+tzLLstTlPTRyJTh+ah5wIMsBW5c4tQwGTN3thOW9Y= google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 h1:hjSy6tcFQZ171igDaN5QHOw2n6vx40juYbC/x67CEhc= google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:qpvKtACPCQhAdu3PyQgV4l3LMXZEtft7y8QcarRsp9I= google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 h1:pPJltXNxVzT4pK9yD8vR9X75DaWYYmLGMsEvBfFQZzQ= @@ -1032,8 +934,8 @@ google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3Iji 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.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.66.2 h1:3QdXkuq3Bkh7w+ywLdLvM56cmGvQHUMZpiCzt6Rqaoo= -google.golang.org/grpc v1.66.2/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y= +google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= +google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -1050,9 +952,8 @@ google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +gopkg.in/DataDog/dd-trace-go.v1 v1.22.0 h1:gpWsqqkwUldNZXGJqT69NU9MdEDhLboK1C4nMgR0MWw= gopkg.in/DataDog/dd-trace-go.v1 v1.22.0/go.mod h1:DVp8HmDh8PuTu2Z0fVVlBsyWaC++fzwVCaGWylTe3tg= -gopkg.in/DataDog/dd-trace-go.v1 v1.67.1 h1:frgcpZ18wmpj+/TwyDJM8057M65aOdgaxLiZ8pb1PFU= -gopkg.in/DataDog/dd-trace-go.v1 v1.67.1/go.mod h1:6DdiJPKOeJfZyd/IUGCAd5elY8qPGkztK6wbYYsMjag= 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= @@ -1062,11 +963,8 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntN gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/ini.v1 v1.42.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= -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.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/graphql/admin/state.go b/graphql/admin/state.go index 461fb4ed266..91a9d581d2b 100644 --- a/graphql/admin/state.go +++ b/graphql/admin/state.go @@ -1,12 +1,11 @@ package admin import ( - "bytes" "context" "encoding/json" - "github.com/gogo/protobuf/jsonpb" "github.com/pkg/errors" + jsonpb "google.golang.org/protobuf/encoding/protojson" "github.com/dgraph-io/dgraph/v24/edgraph" "github.com/dgraph-io/dgraph/v24/graphql/resolve" @@ -44,9 +43,8 @@ func resolveState(ctx context.Context, q schema.Query) *resolve.Resolved { } // unmarshal it back to MembershipState proto in order to map to graphql response - u := jsonpb.Unmarshaler{} var ms pb.MembershipState - err = u.Unmarshal(bytes.NewReader(resp.GetJson()), &ms) + err = jsonpb.Unmarshal(resp.GetJson(), &ms) if err != nil { return resolve.EmptyResult(q, err) } diff --git a/graphql/e2e/common/admin.go b/graphql/e2e/common/admin.go index c81d72e323d..1c0a1cb1775 100644 --- a/graphql/e2e/common/admin.go +++ b/graphql/e2e/common/admin.go @@ -17,7 +17,6 @@ package common import ( - "bytes" "context" "encoding/json" "io" @@ -25,7 +24,6 @@ import ( "os" "testing" - "github.com/gogo/protobuf/jsonpb" "github.com/golang/glog" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" @@ -33,6 +31,7 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" + jsonpb "google.golang.org/protobuf/encoding/protojson" "github.com/dgraph-io/dgo/v240" "github.com/dgraph-io/dgo/v240/protos/api" @@ -485,7 +484,7 @@ func adminState(t *testing.T) { }() stateRes, err := io.ReadAll(resp.Body) require.NoError(t, err) - require.NoError(t, jsonpb.Unmarshal(bytes.NewReader(stateRes), &state)) + require.NoError(t, jsonpb.Unmarshal(stateRes, &state)) for _, group := range result.State.Groups { require.Contains(t, state.Groups, group.Id) diff --git a/posting/index.go b/posting/index.go index 123be08e66e..453cff43b97 100644 --- a/posting/index.go +++ b/posting/index.go @@ -34,6 +34,7 @@ import ( "github.com/pkg/errors" ostats "go.opencensus.io/stats" otrace "go.opencensus.io/trace" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" "github.com/dgraph-io/badger/v4/options" @@ -702,7 +703,7 @@ func (r *rebuilder) RunWithoutTemp(ctx context.Context) error { case BitDeltaPosting: err := item.Value(func(val []byte) error { pl := &pb.PostingList{} - if err := pl.Unmarshal(val); err != nil { + if err := proto.Unmarshal(val, pl); err != nil { return err } pl.CommitTs = item.Version() @@ -1022,7 +1023,7 @@ func (r *rebuilder) Run(ctx context.Context) error { tmpStream.Send = func(buf *z.Buffer) error { return buf.SliceIterate(func(slice []byte) error { kv := &bpb.KV{} - if err := kv.Unmarshal(slice); err != nil { + if err := proto.Unmarshal(slice, kv); err != nil { return err } if len(kv.Value) == 0 { diff --git a/posting/list.go b/posting/list.go index d6b873112e4..2efcf0ebb88 100644 --- a/posting/list.go +++ b/posting/list.go @@ -26,8 +26,8 @@ import ( "github.com/dgryski/go-farm" "github.com/golang/glog" - "github.com/golang/protobuf/proto" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" bpb "github.com/dgraph-io/badger/v4/pb" "github.com/dgraph-io/badger/v4/y" @@ -560,7 +560,7 @@ func (l *List) getMutation(startTs uint64) []byte { l.RLock() defer l.RUnlock() if pl, ok := l.mutationMap[startTs]; ok { - data, err := pl.Marshal() + data, err := proto.Marshal(pl) x.Check(err) return data } @@ -569,7 +569,7 @@ func (l *List) getMutation(startTs uint64) []byte { func (l *List) setMutationAfterCommit(startTs, commitTs uint64, data []byte) { pl := new(pb.PostingList) - x.Check(pl.Unmarshal(data)) + x.Check(proto.Unmarshal(data, pl)) pl.CommitTs = commitTs for _, p := range pl.Postings { p.CommitTs = commitTs @@ -590,7 +590,7 @@ func (l *List) setMutationAfterCommit(startTs, commitTs uint64, data []byte) { func (l *List) setMutation(startTs uint64, data []byte) { pl := new(pb.PostingList) - x.Check(pl.Unmarshal(data)) + x.Check(proto.Unmarshal(data, pl)) l.Lock() if l.mutationMap == nil { @@ -1030,8 +1030,7 @@ func (l *List) ToBackupPostingList( bl.CommitTs = ol.CommitTs bl.Splits = ol.Splits - val := alloc.Allocate(bl.Size()) - n, err := bl.MarshalToSizedBuffer(val) + val, err := x.MarshalToSizedBuffer(alloc.Allocate(proto.Size(bl)), bl) if err != nil { return nil, err } @@ -1039,7 +1038,7 @@ func (l *List) ToBackupPostingList( kv := y.NewKV(alloc) kv.Key = alloc.Copy(l.key) kv.Version = out.newMinTs - kv.Value = val[:n] + kv.Value = val if isPlistEmpty(ol) { kv.UserMeta = alloc.Copy([]byte{BitEmptyPosting}) } else { @@ -1078,13 +1077,12 @@ func MarshalPostingList(plist *pb.PostingList, alloc *z.Allocator) *bpb.KV { plist.Pack.AllocRef = 0 } - out := alloc.Allocate(plist.Size()) - n, err := plist.MarshalToSizedBuffer(out) + out, err := x.MarshalToSizedBuffer(alloc.Allocate(proto.Size(plist)), plist) x.Check(err) if plist.Pack != nil { plist.Pack.AllocRef = ref } - kv.Value = out[:n] + kv.Value = out kv.UserMeta = alloc.Copy([]byte{BitCompletePosting}) return kv } @@ -1673,7 +1671,7 @@ func (l *List) readListPart(startUid uint64) (*pb.PostingList, error) { // shouldSplit returns true if the given plist should be split in two. func shouldSplit(plist *pb.PostingList) bool { - return plist.Size() >= maxListSize && len(plist.Pack.Blocks) > 1 + return proto.Size(plist) >= maxListSize && len(plist.Pack.Blocks) > 1 } func (out *rollupOutput) updateSplits() { diff --git a/posting/list_test.go b/posting/list_test.go index e35632e47c6..fb86b715f79 100644 --- a/posting/list_test.go +++ b/posting/list_test.go @@ -27,6 +27,7 @@ import ( "github.com/google/uuid" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" bpb "github.com/dgraph-io/badger/v4/pb" @@ -1354,7 +1355,7 @@ func TestMultiPartListMarshal(t *testing.T) { require.Equal(t, partKey, kvs[i+1].Key) part, err := ol.readListPart(startUid) require.NoError(t, err) - data, err := part.Marshal() + data, err := proto.Marshal(part) require.NoError(t, err) require.Equal(t, data, kvs[i+1].Value) require.Equal(t, []byte{BitCompletePosting}, kvs[i+1].UserMeta) diff --git a/posting/lists.go b/posting/lists.go index 9a20a917900..0f4fd14cac6 100644 --- a/posting/lists.go +++ b/posting/lists.go @@ -31,6 +31,7 @@ import ( "github.com/dgraph-io/ristretto" "github.com/dgraph-io/ristretto/z" ostats "go.opencensus.io/stats" + "google.golang.org/protobuf/proto" ) const ( @@ -336,7 +337,7 @@ func (lc *LocalCache) GetSinglePosting(key []byte) (*pb.PostingList, error) { pl := &pb.PostingList{} if delta, ok := lc.deltas[string(key)]; ok && len(delta) > 0 { - err := pl.Unmarshal(delta) + err := proto.Unmarshal(delta, pl) lc.RUnlock() return pl, err } @@ -369,7 +370,7 @@ func (lc *LocalCache) GetSinglePosting(key []byte) (*pb.PostingList, error) { } err = item.Value(func(val []byte) error { - return pl.Unmarshal(val) + return proto.Unmarshal(val, pl) }) return pl, err diff --git a/posting/mvcc.go b/posting/mvcc.go index 4790753addb..12b8557c2ab 100644 --- a/posting/mvcc.go +++ b/posting/mvcc.go @@ -26,8 +26,8 @@ import ( "time" "github.com/golang/glog" - "github.com/golang/protobuf/proto" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" bpb "github.com/dgraph-io/badger/v4/pb" @@ -402,7 +402,7 @@ func (txn *Txn) UpdateCachedKeys(commitTs uint64) { if commitTs != 0 && val.list != nil { p := new(pb.PostingList) - x.Check(p.Unmarshal(delta)) + x.Check(proto.Unmarshal(delta, p)) val.list.setMutationAfterCommit(txn.StartTs, commitTs, delta) } globalCache.Unlock() @@ -420,7 +420,7 @@ func unmarshalOrCopy(plist *pb.PostingList, item *badger.Item) error { // empty pl return nil } - return plist.Unmarshal(val) + return proto.Unmarshal(val, plist) }) } @@ -491,7 +491,7 @@ func ReadPostingList(key []byte, it *badger.Iterator) (*List, error) { case BitDeltaPosting: err := item.Value(func(val []byte) error { pl := &pb.PostingList{} - if err := pl.Unmarshal(val); err != nil { + if err := proto.Unmarshal(val, pl); err != nil { return err } pl.CommitTs = item.Version() diff --git a/protos/Makefile b/protos/Makefile index 00aadbe2005..438e8388927 100644 --- a/protos/Makefile +++ b/protos/Makefile @@ -16,15 +16,12 @@ # Update BADGER_PB_VERSION when upgrading Badger major versions BADGER_PB_VERSION = 4 +DGO_PB_VERSION = 240 -DGO_PATH := github.com/dgraph-io/dgo/v240 +DGO_PATH := github.com/dgraph-io/dgo/v${DGO_PB_VERSION} BADGER_PATH := github.com/dgraph-io/badger/v${BADGER_PB_VERSION} -GOGO_PATH := github.com/gogo/protobuf - TMPDIR := $(shell mktemp -d) PROTO_PATH := ${TMPDIR}/src:. -PROTO_PATH := ${PROTO_PATH}:${TMPDIR}/src/${DGO_PATH}/protos -PROTO_PATH := ${PROTO_PATH}:${TMPDIR}/src/${BADGER_PATH}/pb .PHONY: help help: @@ -36,26 +33,23 @@ clean: .PHONY: tidy-deps tidy-deps: - @go mod tidy -v .PHONY: check check: @./depcheck.sh && \ (echo "Installing proto libraries to versions in go.mod." ; \ - go install github.com/golang/protobuf/protoc-gen-go ; \ - go install github.com/gogo/protobuf/protoc-gen-gogofaster) + go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.31.0 ; \ + go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0) .PHONY: copy-protos copy-protos: + echo ${TMPDIR} @mkdir -p ${TMPDIR}/src/${DGO_PATH}/protos @mkdir -p ${TMPDIR}/src/${BADGER_PATH}/pb - @mkdir -p ${TMPDIR}/src/${GOGO_PATH}/gogoproto @cp $(shell go list -m -f "{{.Dir}}" ${BADGER_PATH})/pb/badgerpb${BADGER_PB_VERSION}.proto \ ${TMPDIR}/src/${BADGER_PATH}/pb/pb.proto @cp $(shell go list -m -f "{{.Dir}}" ${DGO_PATH})/protos/api.proto \ ${TMPDIR}/src/${DGO_PATH}/protos/api.proto - @cp $(shell go list -m -f "{{.Dir}}" ${GOGO_PATH})/gogoproto/gogo.proto \ - ${TMPDIR}/src/${GOGO_PATH}/gogoproto/gogo.proto .PHONY: regenerate regenerate: tidy-deps copy-protos check clean @@ -63,7 +57,10 @@ regenerate: tidy-deps copy-protos check clean --proto_path=/usr/local/include \ --proto_path=/usr/include \ --proto_path=${PROTO_PATH} \ - --gogofaster_out=plugins=grpc,Mapi.proto=${DGO_PATH}/protos/api:pb \ + --go_out=pb --go-grpc_out=pb \ + --go_opt=paths=source_relative \ + --go-grpc_opt=paths=source_relative \ + --go_opt=Mgithub.com/dgraph-io/dgo/v240/protos/api.proto=github.com/dgraph-io/dgo/v240/protos/api \ pb.proto @rm -rf ${TMPDIR} @echo Done. diff --git a/protos/pb.proto b/protos/pb.proto index 77247788117..8f93fb31ef2 100644 --- a/protos/pb.proto +++ b/protos/pb.proto @@ -23,16 +23,10 @@ syntax = "proto3"; package pb; -import "api.proto"; +import "github.com/dgraph-io/dgo/v240/protos/api.proto"; import "github.com/dgraph-io/badger/v4/pb/pb.proto"; -import "github.com/gogo/protobuf/gogoproto/gogo.proto"; -/* import "gogoproto/gogo.proto"; */ - -/* option (gogoproto.marshaler_all) = true; */ -/* option (gogoproto.sizer_all) = true; */ -/* option (gogoproto.unmarshaler_all) = true; */ -/* option (gogoproto.goproto_getters_all) = true; */ +option go_package = "./pb"; message List { repeated fixed64 uids = 1; @@ -128,16 +122,15 @@ message RaftContext { // have one RAFT node per server serving that group. message Member { fixed64 id = 1; - uint32 group_id = 2 [(gogoproto.jsontag) = "groupId,omitempty"]; + uint32 group_id = 2 ; string addr = 3; bool leader = 4; - bool am_dead = 5 [(gogoproto.jsontag) = "amDead,omitempty"]; - uint64 last_update = 6 [(gogoproto.jsontag) = "lastUpdate,omitempty"]; + bool am_dead = 5 ; + uint64 last_update = 6 ; bool learner = 7; - bool cluster_info_only = 13 - [(gogoproto.jsontag) = "clusterInfoOnly,omitempty"]; - bool force_group_id = 14 [(gogoproto.jsontag) = "forceGroupId,omitempty"]; + bool cluster_info_only = 13; + bool force_group_id = 14 ; } message Group { @@ -212,16 +205,13 @@ message HealthInfo { } message Tablet { - uint32 group_id = 1 - [(gogoproto.jsontag) = "groupId,omitempty"]; // Served by which group. + uint32 group_id = 1; string predicate = 2; bool force = 3; // Used while moving predicate. int64 on_disk_bytes = 7; bool remove = 8; - bool read_only = 9 [ - (gogoproto.jsontag) = "readOnly,omitempty" - ]; // If true, do not ask zero to serve any tablets. - uint64 move_ts = 10 [(gogoproto.jsontag) = "moveTs,omitempty"]; + bool read_only = 9; + uint64 move_ts = 10 ; int64 uncompressed_bytes = 11; // Estimated uncompressed size of tablet in bytes } @@ -305,8 +295,8 @@ message RestoreRequest { // Credentials when using a minio or S3 bucket as the backup location. string access_key = 5; - string secret_key = 6 [(gogoproto.customtype) = "Sensitive", (gogoproto.nullable) = false]; - string session_token = 7 [(gogoproto.customtype) = "Sensitive", (gogoproto.nullable) = false]; + string secret_key = 6; + string session_token = 7; bool anonymous = 8; // Info needed to process encrypted backups. @@ -627,7 +617,7 @@ message TabletResponse { } message TabletRequest { repeated Tablet tablets = 1; - uint32 group_id = 2 [(gogoproto.jsontag) = "groupId,omitempty"]; // Served by which group. + uint32 group_id = 2; } message SubscriptionRequest { @@ -700,8 +690,8 @@ message BackupRequest { string unix_ts = 4; string destination = 5; string access_key = 6; - string secret_key = 7 [(gogoproto.customtype) = "Sensitive", (gogoproto.nullable) = false]; - string session_token = 8 [(gogoproto.customtype) = "Sensitive", (gogoproto.nullable) = false]; + string secret_key = 7; + string session_token = 8; // True if no credentials should be used to access the S3 or minio bucket. // For example, when using a bucket with a public policy. @@ -741,8 +731,8 @@ message ExportRequest { // These credentials are used to access the S3 or minio bucket. string access_key = 6; - string secret_key = 7 [(gogoproto.customtype) = "Sensitive", (gogoproto.nullable) = false]; - string session_token = 8 [(gogoproto.customtype) = "Sensitive", (gogoproto.nullable) = false]; + string secret_key = 7; + string session_token = 8; bool anonymous = 9; uint64 namespace = 10; diff --git a/protos/pb/pb.pb.go b/protos/pb/pb.pb.go index a00205520b3..42bcd4e9609 100644 --- a/protos/pb/pb.pb.go +++ b/protos/pb/pb.pb.go @@ -1,34 +1,46 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// +// Copyright (C) 2017 Dgraph Labs, Inc. and Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Style guide for Protocol Buffer 3. +// Use CamelCase (with an initial capital) for message names – for example, +// SongServerRequest. Use underscore_separated_names for field names – for +// example, song_name. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.32.0 +// protoc v3.21.12 // source: pb.proto package pb import ( - context "context" - encoding_binary "encoding/binary" - fmt "fmt" pb "github.com/dgraph-io/badger/v4/pb" api "github.com/dgraph-io/dgo/v240/protos/api" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - 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 DirectedEdge_Op int32 @@ -37,22 +49,43 @@ const ( DirectedEdge_DEL DirectedEdge_Op = 1 ) -var DirectedEdge_Op_name = map[int32]string{ - 0: "SET", - 1: "DEL", -} +// Enum value maps for DirectedEdge_Op. +var ( + DirectedEdge_Op_name = map[int32]string{ + 0: "SET", + 1: "DEL", + } + DirectedEdge_Op_value = map[string]int32{ + "SET": 0, + "DEL": 1, + } +) -var DirectedEdge_Op_value = map[string]int32{ - "SET": 0, - "DEL": 1, +func (x DirectedEdge_Op) Enum() *DirectedEdge_Op { + p := new(DirectedEdge_Op) + *p = x + return p } func (x DirectedEdge_Op) String() string { - return proto.EnumName(DirectedEdge_Op_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DirectedEdge_Op) Descriptor() protoreflect.EnumDescriptor { + return file_pb_proto_enumTypes[0].Descriptor() +} + +func (DirectedEdge_Op) Type() protoreflect.EnumType { + return &file_pb_proto_enumTypes[0] } +func (x DirectedEdge_Op) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DirectedEdge_Op.Descriptor instead. func (DirectedEdge_Op) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{19, 0} + return file_pb_proto_rawDescGZIP(), []int{19, 0} } type Mutations_DropOp int32 @@ -64,26 +97,47 @@ const ( Mutations_TYPE Mutations_DropOp = 3 ) -var Mutations_DropOp_name = map[int32]string{ - 0: "NONE", - 1: "ALL", - 2: "DATA", - 3: "TYPE", -} +// Enum value maps for Mutations_DropOp. +var ( + Mutations_DropOp_name = map[int32]string{ + 0: "NONE", + 1: "ALL", + 2: "DATA", + 3: "TYPE", + } + Mutations_DropOp_value = map[string]int32{ + "NONE": 0, + "ALL": 1, + "DATA": 2, + "TYPE": 3, + } +) -var Mutations_DropOp_value = map[string]int32{ - "NONE": 0, - "ALL": 1, - "DATA": 2, - "TYPE": 3, +func (x Mutations_DropOp) Enum() *Mutations_DropOp { + p := new(Mutations_DropOp) + *p = x + return p } func (x Mutations_DropOp) String() string { - return proto.EnumName(Mutations_DropOp_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Mutations_DropOp) Descriptor() protoreflect.EnumDescriptor { + return file_pb_proto_enumTypes[1].Descriptor() } +func (Mutations_DropOp) Type() protoreflect.EnumType { + return &file_pb_proto_enumTypes[1] +} + +func (x Mutations_DropOp) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Mutations_DropOp.Descriptor instead. func (Mutations_DropOp) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{20, 0} + return file_pb_proto_rawDescGZIP(), []int{20, 0} } // HintType represents a hint that will be passed along the mutation and used @@ -102,24 +156,45 @@ const ( Metadata_LIST Metadata_HintType = 2 ) -var Metadata_HintType_name = map[int32]string{ - 0: "DEFAULT", - 1: "SINGLE", - 2: "LIST", -} +// Enum value maps for Metadata_HintType. +var ( + Metadata_HintType_name = map[int32]string{ + 0: "DEFAULT", + 1: "SINGLE", + 2: "LIST", + } + Metadata_HintType_value = map[string]int32{ + "DEFAULT": 0, + "SINGLE": 1, + "LIST": 2, + } +) -var Metadata_HintType_value = map[string]int32{ - "DEFAULT": 0, - "SINGLE": 1, - "LIST": 2, +func (x Metadata_HintType) Enum() *Metadata_HintType { + p := new(Metadata_HintType) + *p = x + return p } func (x Metadata_HintType) String() string { - return proto.EnumName(Metadata_HintType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Metadata_HintType) Descriptor() protoreflect.EnumDescriptor { + return file_pb_proto_enumTypes[2].Descriptor() +} + +func (Metadata_HintType) Type() protoreflect.EnumType { + return &file_pb_proto_enumTypes[2] +} + +func (x Metadata_HintType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use Metadata_HintType.Descriptor instead. func (Metadata_HintType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{21, 0} + return file_pb_proto_rawDescGZIP(), []int{21, 0} } type Posting_ValType int32 @@ -127,7 +202,7 @@ type Posting_ValType int32 const ( Posting_DEFAULT Posting_ValType = 0 Posting_BINARY Posting_ValType = 1 - Posting_INT Posting_ValType = 2 + Posting_INT Posting_ValType = 2 // We treat it as int64. Posting_FLOAT Posting_ValType = 3 Posting_BOOL Posting_ValType = 4 Posting_DATETIME Posting_ValType = 5 @@ -137,75 +212,117 @@ const ( Posting_STRING Posting_ValType = 9 Posting_OBJECT Posting_ValType = 10 Posting_BIGFLOAT Posting_ValType = 11 - Posting_VFLOAT Posting_ValType = 12 + Posting_VFLOAT Posting_ValType = 12 // Float64 Vector +) + +// Enum value maps for Posting_ValType. +var ( + Posting_ValType_name = map[int32]string{ + 0: "DEFAULT", + 1: "BINARY", + 2: "INT", + 3: "FLOAT", + 4: "BOOL", + 5: "DATETIME", + 6: "GEO", + 7: "UID", + 8: "PASSWORD", + 9: "STRING", + 10: "OBJECT", + 11: "BIGFLOAT", + 12: "VFLOAT", + } + Posting_ValType_value = map[string]int32{ + "DEFAULT": 0, + "BINARY": 1, + "INT": 2, + "FLOAT": 3, + "BOOL": 4, + "DATETIME": 5, + "GEO": 6, + "UID": 7, + "PASSWORD": 8, + "STRING": 9, + "OBJECT": 10, + "BIGFLOAT": 11, + "VFLOAT": 12, + } ) -var Posting_ValType_name = map[int32]string{ - 0: "DEFAULT", - 1: "BINARY", - 2: "INT", - 3: "FLOAT", - 4: "BOOL", - 5: "DATETIME", - 6: "GEO", - 7: "UID", - 8: "PASSWORD", - 9: "STRING", - 10: "OBJECT", - 11: "BIGFLOAT", - 12: "VFLOAT", -} - -var Posting_ValType_value = map[string]int32{ - "DEFAULT": 0, - "BINARY": 1, - "INT": 2, - "FLOAT": 3, - "BOOL": 4, - "DATETIME": 5, - "GEO": 6, - "UID": 7, - "PASSWORD": 8, - "STRING": 9, - "OBJECT": 10, - "BIGFLOAT": 11, - "VFLOAT": 12, +func (x Posting_ValType) Enum() *Posting_ValType { + p := new(Posting_ValType) + *p = x + return p } func (x Posting_ValType) String() string { - return proto.EnumName(Posting_ValType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Posting_ValType) Descriptor() protoreflect.EnumDescriptor { + return file_pb_proto_enumTypes[3].Descriptor() +} + +func (Posting_ValType) Type() protoreflect.EnumType { + return &file_pb_proto_enumTypes[3] +} + +func (x Posting_ValType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use Posting_ValType.Descriptor instead. func (Posting_ValType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{28, 0} + return file_pb_proto_rawDescGZIP(), []int{28, 0} } type Posting_PostingType int32 const ( - Posting_REF Posting_PostingType = 0 - Posting_VALUE Posting_PostingType = 1 - Posting_VALUE_LANG Posting_PostingType = 2 + Posting_REF Posting_PostingType = 0 // UID + Posting_VALUE Posting_PostingType = 1 // simple, plain value + Posting_VALUE_LANG Posting_PostingType = 2 // value with specified language ) -var Posting_PostingType_name = map[int32]string{ - 0: "REF", - 1: "VALUE", - 2: "VALUE_LANG", -} +// Enum value maps for Posting_PostingType. +var ( + Posting_PostingType_name = map[int32]string{ + 0: "REF", + 1: "VALUE", + 2: "VALUE_LANG", + } + Posting_PostingType_value = map[string]int32{ + "REF": 0, + "VALUE": 1, + "VALUE_LANG": 2, + } +) -var Posting_PostingType_value = map[string]int32{ - "REF": 0, - "VALUE": 1, - "VALUE_LANG": 2, +func (x Posting_PostingType) Enum() *Posting_PostingType { + p := new(Posting_PostingType) + *p = x + return p } func (x Posting_PostingType) String() string { - return proto.EnumName(Posting_PostingType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Posting_PostingType) Descriptor() protoreflect.EnumDescriptor { + return file_pb_proto_enumTypes[4].Descriptor() } +func (Posting_PostingType) Type() protoreflect.EnumType { + return &file_pb_proto_enumTypes[4] +} + +func (x Posting_PostingType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Posting_PostingType.Descriptor instead. func (Posting_PostingType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{28, 1} + return file_pb_proto_rawDescGZIP(), []int{28, 1} } type SchemaUpdate_Directive int32 @@ -217,26 +334,47 @@ const ( SchemaUpdate_DELETE SchemaUpdate_Directive = 3 ) -var SchemaUpdate_Directive_name = map[int32]string{ - 0: "NONE", - 1: "INDEX", - 2: "REVERSE", - 3: "DELETE", -} +// Enum value maps for SchemaUpdate_Directive. +var ( + SchemaUpdate_Directive_name = map[int32]string{ + 0: "NONE", + 1: "INDEX", + 2: "REVERSE", + 3: "DELETE", + } + SchemaUpdate_Directive_value = map[string]int32{ + "NONE": 0, + "INDEX": 1, + "REVERSE": 2, + "DELETE": 3, + } +) -var SchemaUpdate_Directive_value = map[string]int32{ - "NONE": 0, - "INDEX": 1, - "REVERSE": 2, - "DELETE": 3, +func (x SchemaUpdate_Directive) Enum() *SchemaUpdate_Directive { + p := new(SchemaUpdate_Directive) + *p = x + return p } func (x SchemaUpdate_Directive) String() string { - return proto.EnumName(SchemaUpdate_Directive_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (SchemaUpdate_Directive) Descriptor() protoreflect.EnumDescriptor { + return file_pb_proto_enumTypes[5].Descriptor() +} + +func (SchemaUpdate_Directive) Type() protoreflect.EnumType { + return &file_pb_proto_enumTypes[5] +} + +func (x SchemaUpdate_Directive) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SchemaUpdate_Directive.Descriptor instead. func (SchemaUpdate_Directive) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{41, 0} + return file_pb_proto_rawDescGZIP(), []int{41, 0} } type NumLeaseType int32 @@ -247,24 +385,45 @@ const ( Num_TXN_TS NumLeaseType = 2 ) -var NumLeaseType_name = map[int32]string{ - 0: "NS_ID", - 1: "UID", - 2: "TXN_TS", -} +// Enum value maps for NumLeaseType. +var ( + NumLeaseType_name = map[int32]string{ + 0: "NS_ID", + 1: "UID", + 2: "TXN_TS", + } + NumLeaseType_value = map[string]int32{ + "NS_ID": 0, + "UID": 1, + "TXN_TS": 2, + } +) -var NumLeaseType_value = map[string]int32{ - "NS_ID": 0, - "UID": 1, - "TXN_TS": 2, +func (x NumLeaseType) Enum() *NumLeaseType { + p := new(NumLeaseType) + *p = x + return p } func (x NumLeaseType) String() string { - return proto.EnumName(NumLeaseType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NumLeaseType) Descriptor() protoreflect.EnumDescriptor { + return file_pb_proto_enumTypes[6].Descriptor() +} + +func (NumLeaseType) Type() protoreflect.EnumType { + return &file_pb_proto_enumTypes[6] +} + +func (x NumLeaseType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use NumLeaseType.Descriptor instead. func (NumLeaseType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{56, 0} + return file_pb_proto_rawDescGZIP(), []int{56, 0} } type DropOperation_DropOp int32 @@ -276,26 +435,47 @@ const ( DropOperation_NS DropOperation_DropOp = 3 ) -var DropOperation_DropOp_name = map[int32]string{ - 0: "ALL", - 1: "DATA", - 2: "ATTR", - 3: "NS", -} +// Enum value maps for DropOperation_DropOp. +var ( + DropOperation_DropOp_name = map[int32]string{ + 0: "ALL", + 1: "DATA", + 2: "ATTR", + 3: "NS", + } + DropOperation_DropOp_value = map[string]int32{ + "ALL": 0, + "DATA": 1, + "ATTR": 2, + "NS": 3, + } +) -var DropOperation_DropOp_value = map[string]int32{ - "ALL": 0, - "DATA": 1, - "ATTR": 2, - "NS": 3, +func (x DropOperation_DropOp) Enum() *DropOperation_DropOp { + p := new(DropOperation_DropOp) + *p = x + return p } func (x DropOperation_DropOp) String() string { - return proto.EnumName(DropOperation_DropOp_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DropOperation_DropOp) Descriptor() protoreflect.EnumDescriptor { + return file_pb_proto_enumTypes[7].Descriptor() +} + +func (DropOperation_DropOp) Type() protoreflect.EnumType { + return &file_pb_proto_enumTypes[7] +} + +func (x DropOperation_DropOp) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use DropOperation_DropOp.Descriptor instead. func (DropOperation_DropOp) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{65, 0} + return file_pb_proto_rawDescGZIP(), []int{65, 0} } type BackupKey_KeyType int32 @@ -311,432 +491,475 @@ const ( BackupKey_TYPE BackupKey_KeyType = 7 ) -var BackupKey_KeyType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "DATA", - 2: "INDEX", - 3: "REVERSE", - 4: "COUNT", - 5: "COUNT_REV", - 6: "SCHEMA", - 7: "TYPE", -} +// Enum value maps for BackupKey_KeyType. +var ( + BackupKey_KeyType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "DATA", + 2: "INDEX", + 3: "REVERSE", + 4: "COUNT", + 5: "COUNT_REV", + 6: "SCHEMA", + 7: "TYPE", + } + BackupKey_KeyType_value = map[string]int32{ + "UNKNOWN": 0, + "DATA": 1, + "INDEX": 2, + "REVERSE": 3, + "COUNT": 4, + "COUNT_REV": 5, + "SCHEMA": 6, + "TYPE": 7, + } +) -var BackupKey_KeyType_value = map[string]int32{ - "UNKNOWN": 0, - "DATA": 1, - "INDEX": 2, - "REVERSE": 3, - "COUNT": 4, - "COUNT_REV": 5, - "SCHEMA": 6, - "TYPE": 7, +func (x BackupKey_KeyType) Enum() *BackupKey_KeyType { + p := new(BackupKey_KeyType) + *p = x + return p } func (x BackupKey_KeyType) String() string { - return proto.EnumName(BackupKey_KeyType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BackupKey_KeyType) Descriptor() protoreflect.EnumDescriptor { + return file_pb_proto_enumTypes[8].Descriptor() +} + +func (BackupKey_KeyType) Type() protoreflect.EnumType { + return &file_pb_proto_enumTypes[8] +} + +func (x BackupKey_KeyType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use BackupKey_KeyType.Descriptor instead. func (BackupKey_KeyType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{68, 0} + return file_pb_proto_rawDescGZIP(), []int{68, 0} } type List struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Uids []uint64 `protobuf:"fixed64,1,rep,packed,name=uids,proto3" json:"uids,omitempty"` } -func (m *List) Reset() { *m = List{} } -func (m *List) String() string { return proto.CompactTextString(m) } -func (*List) ProtoMessage() {} -func (*List) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{0} -} -func (m *List) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_List.Marshal(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 *List) Reset() { + *x = List{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *List) XXX_Merge(src proto.Message) { - xxx_messageInfo_List.Merge(m, src) -} -func (m *List) XXX_Size() int { - return m.Size() + +func (x *List) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *List) XXX_DiscardUnknown() { - xxx_messageInfo_List.DiscardUnknown(m) + +func (*List) ProtoMessage() {} + +func (x *List) ProtoReflect() protoreflect.Message { + mi := &file_pb_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_List proto.InternalMessageInfo +// Deprecated: Use List.ProtoReflect.Descriptor instead. +func (*List) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{0} +} -func (m *List) GetUids() []uint64 { - if m != nil { - return m.Uids +func (x *List) GetUids() []uint64 { + if x != nil { + return x.Uids } return nil } type TaskValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Val []byte `protobuf:"bytes,1,opt,name=val,proto3" json:"val,omitempty"` ValType Posting_ValType `protobuf:"varint,2,opt,name=val_type,json=valType,proto3,enum=pb.Posting_ValType" json:"val_type,omitempty"` } -func (m *TaskValue) Reset() { *m = TaskValue{} } -func (m *TaskValue) String() string { return proto.CompactTextString(m) } -func (*TaskValue) ProtoMessage() {} -func (*TaskValue) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{1} -} -func (m *TaskValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TaskValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TaskValue.Marshal(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 *TaskValue) Reset() { + *x = TaskValue{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TaskValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskValue.Merge(m, src) -} -func (m *TaskValue) XXX_Size() int { - return m.Size() + +func (x *TaskValue) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TaskValue) XXX_DiscardUnknown() { - xxx_messageInfo_TaskValue.DiscardUnknown(m) + +func (*TaskValue) ProtoMessage() {} + +func (x *TaskValue) ProtoReflect() protoreflect.Message { + mi := &file_pb_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_TaskValue proto.InternalMessageInfo +// Deprecated: Use TaskValue.ProtoReflect.Descriptor instead. +func (*TaskValue) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{1} +} -func (m *TaskValue) GetVal() []byte { - if m != nil { - return m.Val +func (x *TaskValue) GetVal() []byte { + if x != nil { + return x.Val } return nil } -func (m *TaskValue) GetValType() Posting_ValType { - if m != nil { - return m.ValType +func (x *TaskValue) GetValType() Posting_ValType { + if x != nil { + return x.ValType } return Posting_DEFAULT } type SrcFunction struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` IsCount bool `protobuf:"varint,4,opt,name=isCount,proto3" json:"isCount,omitempty"` } -func (m *SrcFunction) Reset() { *m = SrcFunction{} } -func (m *SrcFunction) String() string { return proto.CompactTextString(m) } -func (*SrcFunction) ProtoMessage() {} -func (*SrcFunction) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{2} -} -func (m *SrcFunction) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SrcFunction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SrcFunction.Marshal(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 *SrcFunction) Reset() { + *x = SrcFunction{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SrcFunction) XXX_Merge(src proto.Message) { - xxx_messageInfo_SrcFunction.Merge(m, src) -} -func (m *SrcFunction) XXX_Size() int { - return m.Size() + +func (x *SrcFunction) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SrcFunction) XXX_DiscardUnknown() { - xxx_messageInfo_SrcFunction.DiscardUnknown(m) + +func (*SrcFunction) ProtoMessage() {} + +func (x *SrcFunction) ProtoReflect() protoreflect.Message { + mi := &file_pb_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 mi.MessageOf(x) } -var xxx_messageInfo_SrcFunction proto.InternalMessageInfo +// Deprecated: Use SrcFunction.ProtoReflect.Descriptor instead. +func (*SrcFunction) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{2} +} -func (m *SrcFunction) GetName() string { - if m != nil { - return m.Name +func (x *SrcFunction) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *SrcFunction) GetArgs() []string { - if m != nil { - return m.Args +func (x *SrcFunction) GetArgs() []string { + if x != nil { + return x.Args } return nil } -func (m *SrcFunction) GetIsCount() bool { - if m != nil { - return m.IsCount +func (x *SrcFunction) GetIsCount() bool { + if x != nil { + return x.IsCount } return false } type Query struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Attr string `protobuf:"bytes,1,opt,name=attr,proto3" json:"attr,omitempty"` - Langs []string `protobuf:"bytes,2,rep,name=langs,proto3" json:"langs,omitempty"` - AfterUid uint64 `protobuf:"fixed64,3,opt,name=after_uid,json=afterUid,proto3" json:"after_uid,omitempty"` - DoCount bool `protobuf:"varint,4,opt,name=do_count,json=doCount,proto3" json:"do_count,omitempty"` + Langs []string `protobuf:"bytes,2,rep,name=langs,proto3" json:"langs,omitempty"` // language list for attribute + AfterUid uint64 `protobuf:"fixed64,3,opt,name=after_uid,json=afterUid,proto3" json:"after_uid,omitempty"` // Only return UIDs greater than this. + DoCount bool `protobuf:"varint,4,opt,name=do_count,json=doCount,proto3" json:"do_count,omitempty"` // Are we just getting lengths? // Exactly one of uids and terms is populated. UidList *List `protobuf:"bytes,5,opt,name=uid_list,json=uidList,proto3" json:"uid_list,omitempty"` // Function to generate or filter UIDs. SrcFunc *SrcFunction `protobuf:"bytes,6,opt,name=src_func,json=srcFunc,proto3" json:"src_func,omitempty"` - Reverse bool `protobuf:"varint,7,opt,name=reverse,proto3" json:"reverse,omitempty"` - FacetParam *FacetParams `protobuf:"bytes,8,opt,name=facet_param,json=facetParam,proto3" json:"facet_param,omitempty"` - FacetsFilter *FilterTree `protobuf:"bytes,9,opt,name=facets_filter,json=facetsFilter,proto3" json:"facets_filter,omitempty"` - ExpandAll bool `protobuf:"varint,10,opt,name=expand_all,json=expandAll,proto3" json:"expand_all,omitempty"` + Reverse bool `protobuf:"varint,7,opt,name=reverse,proto3" json:"reverse,omitempty"` // Whether this is a reverse edge. + FacetParam *FacetParams `protobuf:"bytes,8,opt,name=facet_param,json=facetParam,proto3" json:"facet_param,omitempty"` // which facets to fetch + FacetsFilter *FilterTree `protobuf:"bytes,9,opt,name=facets_filter,json=facetsFilter,proto3" json:"facets_filter,omitempty"` // filtering on facets : has Op (and/or/not) tree + ExpandAll bool `protobuf:"varint,10,opt,name=expand_all,json=expandAll,proto3" json:"expand_all,omitempty"` // expand all language variants. ReadTs uint64 `protobuf:"varint,13,opt,name=read_ts,json=readTs,proto3" json:"read_ts,omitempty"` Cache int32 `protobuf:"varint,14,opt,name=cache,proto3" json:"cache,omitempty"` - First int32 `protobuf:"varint,15,opt,name=first,proto3" json:"first,omitempty"` + First int32 `protobuf:"varint,15,opt,name=first,proto3" json:"first,omitempty"` // used to limit the number of result. Typically, the count is value of first // field. Now, It's been used only for has query. - Offset int32 `protobuf:"varint,16,opt,name=offset,proto3" json:"offset,omitempty"` + Offset int32 `protobuf:"varint,16,opt,name=offset,proto3" json:"offset,omitempty"` // offset helps in fetching lesser results for the has query when there is } -func (m *Query) Reset() { *m = Query{} } -func (m *Query) String() string { return proto.CompactTextString(m) } -func (*Query) ProtoMessage() {} -func (*Query) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{3} -} -func (m *Query) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Query.Marshal(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 *Query) Reset() { + *x = Query{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Query) XXX_Merge(src proto.Message) { - xxx_messageInfo_Query.Merge(m, src) -} -func (m *Query) XXX_Size() int { - return m.Size() + +func (x *Query) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Query) XXX_DiscardUnknown() { - xxx_messageInfo_Query.DiscardUnknown(m) + +func (*Query) ProtoMessage() {} + +func (x *Query) ProtoReflect() protoreflect.Message { + mi := &file_pb_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 mi.MessageOf(x) } -var xxx_messageInfo_Query proto.InternalMessageInfo +// Deprecated: Use Query.ProtoReflect.Descriptor instead. +func (*Query) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{3} +} -func (m *Query) GetAttr() string { - if m != nil { - return m.Attr +func (x *Query) GetAttr() string { + if x != nil { + return x.Attr } return "" } -func (m *Query) GetLangs() []string { - if m != nil { - return m.Langs +func (x *Query) GetLangs() []string { + if x != nil { + return x.Langs } return nil } -func (m *Query) GetAfterUid() uint64 { - if m != nil { - return m.AfterUid +func (x *Query) GetAfterUid() uint64 { + if x != nil { + return x.AfterUid } return 0 } -func (m *Query) GetDoCount() bool { - if m != nil { - return m.DoCount +func (x *Query) GetDoCount() bool { + if x != nil { + return x.DoCount } return false } -func (m *Query) GetUidList() *List { - if m != nil { - return m.UidList +func (x *Query) GetUidList() *List { + if x != nil { + return x.UidList } return nil } -func (m *Query) GetSrcFunc() *SrcFunction { - if m != nil { - return m.SrcFunc +func (x *Query) GetSrcFunc() *SrcFunction { + if x != nil { + return x.SrcFunc } return nil } -func (m *Query) GetReverse() bool { - if m != nil { - return m.Reverse +func (x *Query) GetReverse() bool { + if x != nil { + return x.Reverse } return false } -func (m *Query) GetFacetParam() *FacetParams { - if m != nil { - return m.FacetParam +func (x *Query) GetFacetParam() *FacetParams { + if x != nil { + return x.FacetParam } return nil } -func (m *Query) GetFacetsFilter() *FilterTree { - if m != nil { - return m.FacetsFilter +func (x *Query) GetFacetsFilter() *FilterTree { + if x != nil { + return x.FacetsFilter } return nil } -func (m *Query) GetExpandAll() bool { - if m != nil { - return m.ExpandAll +func (x *Query) GetExpandAll() bool { + if x != nil { + return x.ExpandAll } return false } -func (m *Query) GetReadTs() uint64 { - if m != nil { - return m.ReadTs +func (x *Query) GetReadTs() uint64 { + if x != nil { + return x.ReadTs } return 0 } -func (m *Query) GetCache() int32 { - if m != nil { - return m.Cache +func (x *Query) GetCache() int32 { + if x != nil { + return x.Cache } return 0 } -func (m *Query) GetFirst() int32 { - if m != nil { - return m.First +func (x *Query) GetFirst() int32 { + if x != nil { + return x.First } return 0 } -func (m *Query) GetOffset() int32 { - if m != nil { - return m.Offset +func (x *Query) GetOffset() int32 { + if x != nil { + return x.Offset } return 0 } type ValueList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Values []*TaskValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` } -func (m *ValueList) Reset() { *m = ValueList{} } -func (m *ValueList) String() string { return proto.CompactTextString(m) } -func (*ValueList) ProtoMessage() {} -func (*ValueList) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{4} -} -func (m *ValueList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValueList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValueList.Marshal(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 *ValueList) Reset() { + *x = ValueList{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ValueList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValueList.Merge(m, src) -} -func (m *ValueList) XXX_Size() int { - return m.Size() + +func (x *ValueList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ValueList) XXX_DiscardUnknown() { - xxx_messageInfo_ValueList.DiscardUnknown(m) + +func (*ValueList) ProtoMessage() {} + +func (x *ValueList) ProtoReflect() protoreflect.Message { + mi := &file_pb_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 mi.MessageOf(x) } -var xxx_messageInfo_ValueList proto.InternalMessageInfo +// Deprecated: Use ValueList.ProtoReflect.Descriptor instead. +func (*ValueList) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{4} +} -func (m *ValueList) GetValues() []*TaskValue { - if m != nil { - return m.Values +func (x *ValueList) GetValues() []*TaskValue { + if x != nil { + return x.Values } return nil } type LangList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Lang []string `protobuf:"bytes,1,rep,name=lang,proto3" json:"lang,omitempty"` } -func (m *LangList) Reset() { *m = LangList{} } -func (m *LangList) String() string { return proto.CompactTextString(m) } -func (*LangList) ProtoMessage() {} -func (*LangList) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{5} -} -func (m *LangList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LangList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LangList.Marshal(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 *LangList) Reset() { + *x = LangList{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *LangList) XXX_Merge(src proto.Message) { - xxx_messageInfo_LangList.Merge(m, src) -} -func (m *LangList) XXX_Size() int { - return m.Size() + +func (x *LangList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LangList) XXX_DiscardUnknown() { - xxx_messageInfo_LangList.DiscardUnknown(m) + +func (*LangList) ProtoMessage() {} + +func (x *LangList) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[5] + 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_LangList proto.InternalMessageInfo +// Deprecated: Use LangList.ProtoReflect.Descriptor instead. +func (*LangList) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{5} +} -func (m *LangList) GetLang() []string { - if m != nil { - return m.Lang +func (x *LangList) GetLang() []string { + if x != nil { + return x.Lang } return nil } type Result struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + UidMatrix []*List `protobuf:"bytes,1,rep,name=uid_matrix,json=uidMatrix,proto3" json:"uid_matrix,omitempty"` ValueMatrix []*ValueList `protobuf:"bytes,2,rep,name=value_matrix,json=valueMatrix,proto3" json:"value_matrix,omitempty"` Counts []uint32 `protobuf:"varint,3,rep,packed,name=counts,proto3" json:"counts,omitempty"` @@ -747,276 +970,288 @@ type Result struct { VectorMetrics map[string]uint64 `protobuf:"bytes,8,rep,name=vector_metrics,json=vectorMetrics,proto3" json:"vector_metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` } -func (m *Result) Reset() { *m = Result{} } -func (m *Result) String() string { return proto.CompactTextString(m) } -func (*Result) ProtoMessage() {} -func (*Result) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{6} -} -func (m *Result) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Result.Marshal(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 *Result) Reset() { + *x = Result{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Result) XXX_Merge(src proto.Message) { - xxx_messageInfo_Result.Merge(m, src) -} -func (m *Result) XXX_Size() int { - return m.Size() + +func (x *Result) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Result) XXX_DiscardUnknown() { - xxx_messageInfo_Result.DiscardUnknown(m) + +func (*Result) ProtoMessage() {} + +func (x *Result) ProtoReflect() protoreflect.Message { + mi := &file_pb_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 mi.MessageOf(x) } -var xxx_messageInfo_Result proto.InternalMessageInfo +// Deprecated: Use Result.ProtoReflect.Descriptor instead. +func (*Result) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{6} +} -func (m *Result) GetUidMatrix() []*List { - if m != nil { - return m.UidMatrix +func (x *Result) GetUidMatrix() []*List { + if x != nil { + return x.UidMatrix } return nil } -func (m *Result) GetValueMatrix() []*ValueList { - if m != nil { - return m.ValueMatrix +func (x *Result) GetValueMatrix() []*ValueList { + if x != nil { + return x.ValueMatrix } return nil } -func (m *Result) GetCounts() []uint32 { - if m != nil { - return m.Counts +func (x *Result) GetCounts() []uint32 { + if x != nil { + return x.Counts } return nil } -func (m *Result) GetIntersectDest() bool { - if m != nil { - return m.IntersectDest +func (x *Result) GetIntersectDest() bool { + if x != nil { + return x.IntersectDest } return false } -func (m *Result) GetFacetMatrix() []*FacetsList { - if m != nil { - return m.FacetMatrix +func (x *Result) GetFacetMatrix() []*FacetsList { + if x != nil { + return x.FacetMatrix } return nil } -func (m *Result) GetLangMatrix() []*LangList { - if m != nil { - return m.LangMatrix +func (x *Result) GetLangMatrix() []*LangList { + if x != nil { + return x.LangMatrix } return nil } -func (m *Result) GetList() bool { - if m != nil { - return m.List +func (x *Result) GetList() bool { + if x != nil { + return x.List } return false } -func (m *Result) GetVectorMetrics() map[string]uint64 { - if m != nil { - return m.VectorMetrics +func (x *Result) GetVectorMetrics() map[string]uint64 { + if x != nil { + return x.VectorMetrics } return nil } type Order struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Attr string `protobuf:"bytes,1,opt,name=attr,proto3" json:"attr,omitempty"` Desc bool `protobuf:"varint,2,opt,name=desc,proto3" json:"desc,omitempty"` Langs []string `protobuf:"bytes,3,rep,name=langs,proto3" json:"langs,omitempty"` } -func (m *Order) Reset() { *m = Order{} } -func (m *Order) String() string { return proto.CompactTextString(m) } -func (*Order) ProtoMessage() {} -func (*Order) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{7} -} -func (m *Order) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Order.Marshal(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 *Order) Reset() { + *x = Order{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Order) XXX_Merge(src proto.Message) { - xxx_messageInfo_Order.Merge(m, src) -} -func (m *Order) XXX_Size() int { - return m.Size() + +func (x *Order) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Order) XXX_DiscardUnknown() { - xxx_messageInfo_Order.DiscardUnknown(m) + +func (*Order) ProtoMessage() {} + +func (x *Order) ProtoReflect() protoreflect.Message { + mi := &file_pb_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 mi.MessageOf(x) } -var xxx_messageInfo_Order proto.InternalMessageInfo +// Deprecated: Use Order.ProtoReflect.Descriptor instead. +func (*Order) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{7} +} -func (m *Order) GetAttr() string { - if m != nil { - return m.Attr +func (x *Order) GetAttr() string { + if x != nil { + return x.Attr } return "" } -func (m *Order) GetDesc() bool { - if m != nil { - return m.Desc +func (x *Order) GetDesc() bool { + if x != nil { + return x.Desc } return false } -func (m *Order) GetLangs() []string { - if m != nil { - return m.Langs +func (x *Order) GetLangs() []string { + if x != nil { + return x.Langs } return nil } type SortMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Order []*Order `protobuf:"bytes,1,rep,name=order,proto3" json:"order,omitempty"` UidMatrix []*List `protobuf:"bytes,2,rep,name=uid_matrix,json=uidMatrix,proto3" json:"uid_matrix,omitempty"` - Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` - Offset int32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` + Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // Return this many elements. + Offset int32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` // Skip this many elements. ReadTs uint64 `protobuf:"varint,13,opt,name=read_ts,json=readTs,proto3" json:"read_ts,omitempty"` } -func (m *SortMessage) Reset() { *m = SortMessage{} } -func (m *SortMessage) String() string { return proto.CompactTextString(m) } -func (*SortMessage) ProtoMessage() {} -func (*SortMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{8} -} -func (m *SortMessage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SortMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SortMessage.Marshal(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 *SortMessage) Reset() { + *x = SortMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SortMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_SortMessage.Merge(m, src) -} -func (m *SortMessage) XXX_Size() int { - return m.Size() + +func (x *SortMessage) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SortMessage) XXX_DiscardUnknown() { - xxx_messageInfo_SortMessage.DiscardUnknown(m) + +func (*SortMessage) ProtoMessage() {} + +func (x *SortMessage) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[8] + 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_SortMessage proto.InternalMessageInfo +// Deprecated: Use SortMessage.ProtoReflect.Descriptor instead. +func (*SortMessage) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{8} +} -func (m *SortMessage) GetOrder() []*Order { - if m != nil { - return m.Order +func (x *SortMessage) GetOrder() []*Order { + if x != nil { + return x.Order } return nil } -func (m *SortMessage) GetUidMatrix() []*List { - if m != nil { - return m.UidMatrix +func (x *SortMessage) GetUidMatrix() []*List { + if x != nil { + return x.UidMatrix } return nil } -func (m *SortMessage) GetCount() int32 { - if m != nil { - return m.Count +func (x *SortMessage) GetCount() int32 { + if x != nil { + return x.Count } return 0 } -func (m *SortMessage) GetOffset() int32 { - if m != nil { - return m.Offset +func (x *SortMessage) GetOffset() int32 { + if x != nil { + return x.Offset } return 0 } -func (m *SortMessage) GetReadTs() uint64 { - if m != nil { - return m.ReadTs +func (x *SortMessage) GetReadTs() uint64 { + if x != nil { + return x.ReadTs } return 0 } type SortResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + UidMatrix []*List `protobuf:"bytes,1,rep,name=uid_matrix,json=uidMatrix,proto3" json:"uid_matrix,omitempty"` } -func (m *SortResult) Reset() { *m = SortResult{} } -func (m *SortResult) String() string { return proto.CompactTextString(m) } -func (*SortResult) ProtoMessage() {} -func (*SortResult) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{9} -} -func (m *SortResult) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SortResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SortResult.Marshal(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 *SortResult) Reset() { + *x = SortResult{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SortResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_SortResult.Merge(m, src) -} -func (m *SortResult) XXX_Size() int { - return m.Size() + +func (x *SortResult) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SortResult) XXX_DiscardUnknown() { - xxx_messageInfo_SortResult.DiscardUnknown(m) + +func (*SortResult) ProtoMessage() {} + +func (x *SortResult) ProtoReflect() protoreflect.Message { + mi := &file_pb_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 mi.MessageOf(x) } -var xxx_messageInfo_SortResult proto.InternalMessageInfo +// Deprecated: Use SortResult.ProtoReflect.Descriptor instead. +func (*SortResult) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{9} +} -func (m *SortResult) GetUidMatrix() []*List { - if m != nil { - return m.UidMatrix +func (x *SortResult) GetUidMatrix() []*List { + if x != nil { + return x.UidMatrix } return nil } type RaftContext struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Id uint64 `protobuf:"fixed64,1,opt,name=id,proto3" json:"id,omitempty"` Group uint32 `protobuf:"varint,2,opt,name=group,proto3" json:"group,omitempty"` Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"` @@ -1024,70 +1259,69 @@ type RaftContext struct { IsLearner bool `protobuf:"varint,5,opt,name=is_learner,json=isLearner,proto3" json:"is_learner,omitempty"` } -func (m *RaftContext) Reset() { *m = RaftContext{} } -func (m *RaftContext) String() string { return proto.CompactTextString(m) } -func (*RaftContext) ProtoMessage() {} -func (*RaftContext) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{10} -} -func (m *RaftContext) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RaftContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RaftContext.Marshal(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 *RaftContext) Reset() { + *x = RaftContext{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RaftContext) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftContext.Merge(m, src) -} -func (m *RaftContext) XXX_Size() int { - return m.Size() + +func (x *RaftContext) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RaftContext) XXX_DiscardUnknown() { - xxx_messageInfo_RaftContext.DiscardUnknown(m) + +func (*RaftContext) ProtoMessage() {} + +func (x *RaftContext) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[10] + 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_RaftContext proto.InternalMessageInfo +// Deprecated: Use RaftContext.ProtoReflect.Descriptor instead. +func (*RaftContext) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{10} +} -func (m *RaftContext) GetId() uint64 { - if m != nil { - return m.Id +func (x *RaftContext) GetId() uint64 { + if x != nil { + return x.Id } return 0 } -func (m *RaftContext) GetGroup() uint32 { - if m != nil { - return m.Group +func (x *RaftContext) GetGroup() uint32 { + if x != nil { + return x.Group } return 0 } -func (m *RaftContext) GetAddr() string { - if m != nil { - return m.Addr +func (x *RaftContext) GetAddr() string { + if x != nil { + return x.Addr } return "" } -func (m *RaftContext) GetSnapshotTs() uint64 { - if m != nil { - return m.SnapshotTs +func (x *RaftContext) GetSnapshotTs() uint64 { + if x != nil { + return x.SnapshotTs } return 0 } -func (m *RaftContext) GetIsLearner() bool { - if m != nil { - return m.IsLearner +func (x *RaftContext) GetIsLearner() bool { + if x != nil { + return x.IsLearner } return false } @@ -1096,259 +1330,272 @@ func (m *RaftContext) GetIsLearner() bool { // Note that each server can be serving multiple RAFT groups. Each group would // have one RAFT node per server serving that group. type Member struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Id uint64 `protobuf:"fixed64,1,opt,name=id,proto3" json:"id,omitempty"` - GroupId uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"groupId,omitempty"` + GroupId uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"` Leader bool `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"` - AmDead bool `protobuf:"varint,5,opt,name=am_dead,json=amDead,proto3" json:"amDead,omitempty"` - LastUpdate uint64 `protobuf:"varint,6,opt,name=last_update,json=lastUpdate,proto3" json:"lastUpdate,omitempty"` + AmDead bool `protobuf:"varint,5,opt,name=am_dead,json=amDead,proto3" json:"am_dead,omitempty"` + LastUpdate uint64 `protobuf:"varint,6,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"` Learner bool `protobuf:"varint,7,opt,name=learner,proto3" json:"learner,omitempty"` - ClusterInfoOnly bool `protobuf:"varint,13,opt,name=cluster_info_only,json=clusterInfoOnly,proto3" json:"clusterInfoOnly,omitempty"` - ForceGroupId bool `protobuf:"varint,14,opt,name=force_group_id,json=forceGroupId,proto3" json:"forceGroupId,omitempty"` + ClusterInfoOnly bool `protobuf:"varint,13,opt,name=cluster_info_only,json=clusterInfoOnly,proto3" json:"cluster_info_only,omitempty"` + ForceGroupId bool `protobuf:"varint,14,opt,name=force_group_id,json=forceGroupId,proto3" json:"force_group_id,omitempty"` } -func (m *Member) Reset() { *m = Member{} } -func (m *Member) String() string { return proto.CompactTextString(m) } -func (*Member) ProtoMessage() {} -func (*Member) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{11} -} -func (m *Member) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Member.Marshal(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 *Member) Reset() { + *x = Member{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Member) XXX_Merge(src proto.Message) { - xxx_messageInfo_Member.Merge(m, src) -} -func (m *Member) XXX_Size() int { - return m.Size() + +func (x *Member) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Member) XXX_DiscardUnknown() { - xxx_messageInfo_Member.DiscardUnknown(m) + +func (*Member) ProtoMessage() {} + +func (x *Member) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[11] + 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_Member proto.InternalMessageInfo +// Deprecated: Use Member.ProtoReflect.Descriptor instead. +func (*Member) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{11} +} -func (m *Member) GetId() uint64 { - if m != nil { - return m.Id +func (x *Member) GetId() uint64 { + if x != nil { + return x.Id } return 0 } -func (m *Member) GetGroupId() uint32 { - if m != nil { - return m.GroupId +func (x *Member) GetGroupId() uint32 { + if x != nil { + return x.GroupId } return 0 } -func (m *Member) GetAddr() string { - if m != nil { - return m.Addr +func (x *Member) GetAddr() string { + if x != nil { + return x.Addr } return "" } -func (m *Member) GetLeader() bool { - if m != nil { - return m.Leader +func (x *Member) GetLeader() bool { + if x != nil { + return x.Leader } return false } -func (m *Member) GetAmDead() bool { - if m != nil { - return m.AmDead +func (x *Member) GetAmDead() bool { + if x != nil { + return x.AmDead } return false } -func (m *Member) GetLastUpdate() uint64 { - if m != nil { - return m.LastUpdate +func (x *Member) GetLastUpdate() uint64 { + if x != nil { + return x.LastUpdate } return 0 } -func (m *Member) GetLearner() bool { - if m != nil { - return m.Learner +func (x *Member) GetLearner() bool { + if x != nil { + return x.Learner } return false } -func (m *Member) GetClusterInfoOnly() bool { - if m != nil { - return m.ClusterInfoOnly +func (x *Member) GetClusterInfoOnly() bool { + if x != nil { + return x.ClusterInfoOnly } return false } -func (m *Member) GetForceGroupId() bool { - if m != nil { - return m.ForceGroupId +func (x *Member) GetForceGroupId() bool { + if x != nil { + return x.ForceGroupId } return false } type Group struct { - Members map[uint64]*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Tablets map[string]*Tablet `protobuf:"bytes,2,rep,name=tablets,proto3" json:"tablets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - SnapshotTs uint64 `protobuf:"varint,3,opt,name=snapshot_ts,json=snapshotTs,proto3" json:"snapshot_ts,omitempty"` - Checksum uint64 `protobuf:"varint,4,opt,name=checksum,proto3" json:"checksum,omitempty"` - CheckpointTs uint64 `protobuf:"varint,5,opt,name=checkpoint_ts,json=checkpointTs,proto3" json:"checkpoint_ts,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Members map[uint64]*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Raft ID is the key. + Tablets map[string]*Tablet `protobuf:"bytes,2,rep,name=tablets,proto3" json:"tablets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Predicate + others are key. + SnapshotTs uint64 `protobuf:"varint,3,opt,name=snapshot_ts,json=snapshotTs,proto3" json:"snapshot_ts,omitempty"` // Stores Snapshot transaction ts. + Checksum uint64 `protobuf:"varint,4,opt,name=checksum,proto3" json:"checksum,omitempty"` // Stores a checksum. + CheckpointTs uint64 `protobuf:"varint,5,opt,name=checkpoint_ts,json=checkpointTs,proto3" json:"checkpoint_ts,omitempty"` // Stores checkpoint ts as seen by leader. } -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_f80abaa17e25ccc8, []int{12} -} -func (m *Group) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -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 - } - return b[:n], nil +func (x *Group) Reset() { + *x = Group{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Group) XXX_Merge(src proto.Message) { - xxx_messageInfo_Group.Merge(m, src) -} -func (m *Group) XXX_Size() int { - return m.Size() + +func (x *Group) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Group) XXX_DiscardUnknown() { - xxx_messageInfo_Group.DiscardUnknown(m) + +func (*Group) ProtoMessage() {} + +func (x *Group) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[12] + 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_Group proto.InternalMessageInfo +// Deprecated: Use Group.ProtoReflect.Descriptor instead. +func (*Group) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{12} +} -func (m *Group) GetMembers() map[uint64]*Member { - if m != nil { - return m.Members +func (x *Group) GetMembers() map[uint64]*Member { + if x != nil { + return x.Members } return nil } -func (m *Group) GetTablets() map[string]*Tablet { - if m != nil { - return m.Tablets +func (x *Group) GetTablets() map[string]*Tablet { + if x != nil { + return x.Tablets } return nil } -func (m *Group) GetSnapshotTs() uint64 { - if m != nil { - return m.SnapshotTs +func (x *Group) GetSnapshotTs() uint64 { + if x != nil { + return x.SnapshotTs } return 0 } -func (m *Group) GetChecksum() uint64 { - if m != nil { - return m.Checksum +func (x *Group) GetChecksum() uint64 { + if x != nil { + return x.Checksum } return 0 } -func (m *Group) GetCheckpointTs() uint64 { - if m != nil { - return m.CheckpointTs +func (x *Group) GetCheckpointTs() uint64 { + if x != nil { + return x.CheckpointTs } return 0 } type License struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` MaxNodes uint64 `protobuf:"varint,2,opt,name=maxNodes,proto3" json:"maxNodes,omitempty"` ExpiryTs int64 `protobuf:"varint,3,opt,name=expiryTs,proto3" json:"expiryTs,omitempty"` Enabled bool `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"` } -func (m *License) Reset() { *m = License{} } -func (m *License) String() string { return proto.CompactTextString(m) } -func (*License) ProtoMessage() {} -func (*License) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{13} -} -func (m *License) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *License) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_License.Marshal(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 *License) Reset() { + *x = License{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *License) XXX_Merge(src proto.Message) { - xxx_messageInfo_License.Merge(m, src) -} -func (m *License) XXX_Size() int { - return m.Size() + +func (x *License) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *License) XXX_DiscardUnknown() { - xxx_messageInfo_License.DiscardUnknown(m) + +func (*License) ProtoMessage() {} + +func (x *License) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[13] + 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_License proto.InternalMessageInfo +// Deprecated: Use License.ProtoReflect.Descriptor instead. +func (*License) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{13} +} -func (m *License) GetUser() string { - if m != nil { - return m.User +func (x *License) GetUser() string { + if x != nil { + return x.User } return "" } -func (m *License) GetMaxNodes() uint64 { - if m != nil { - return m.MaxNodes +func (x *License) GetMaxNodes() uint64 { + if x != nil { + return x.MaxNodes } return 0 } -func (m *License) GetExpiryTs() int64 { - if m != nil { - return m.ExpiryTs +func (x *License) GetExpiryTs() int64 { + if x != nil { + return x.ExpiryTs } return 0 } -func (m *License) GetEnabled() bool { - if m != nil { - return m.Enabled +func (x *License) GetEnabled() bool { + if x != nil { + return x.Enabled } return false } type ZeroProposal struct { - SnapshotTs map[uint32]uint64 `protobuf:"bytes,1,rep,name=snapshot_ts,json=snapshotTs,proto3" json:"snapshot_ts,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SnapshotTs map[uint32]uint64 `protobuf:"bytes,1,rep,name=snapshot_ts,json=snapshotTs,proto3" json:"snapshot_ts,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // Group ID -> Snapshot Ts. Member *Member `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"` Tablet *Tablet `protobuf:"bytes,3,opt,name=tablet,proto3" json:"tablet,omitempty"` MaxUID uint64 `protobuf:"varint,4,opt,name=maxUID,proto3" json:"maxUID,omitempty"` @@ -1356,134 +1603,133 @@ type ZeroProposal struct { MaxNsID uint64 `protobuf:"varint,12,opt,name=maxNsID,proto3" json:"maxNsID,omitempty"` MaxRaftId uint64 `protobuf:"varint,6,opt,name=maxRaftId,proto3" json:"maxRaftId,omitempty"` Txn *api.TxnContext `protobuf:"bytes,7,opt,name=txn,proto3" json:"txn,omitempty"` - Cid string `protobuf:"bytes,9,opt,name=cid,proto3" json:"cid,omitempty"` + Cid string `protobuf:"bytes,9,opt,name=cid,proto3" json:"cid,omitempty"` // Used as unique identifier for the cluster. License *License `protobuf:"bytes,10,opt,name=license,proto3" json:"license,omitempty"` - Snapshot *ZeroSnapshot `protobuf:"bytes,11,opt,name=snapshot,proto3" json:"snapshot,omitempty"` + Snapshot *ZeroSnapshot `protobuf:"bytes,11,opt,name=snapshot,proto3" json:"snapshot,omitempty"` // Used to make Zeros take a snapshot. // 12 has already been used. - DeleteNs *DeleteNsRequest `protobuf:"bytes,13,opt,name=delete_ns,json=deleteNs,proto3" json:"delete_ns,omitempty"` + DeleteNs *DeleteNsRequest `protobuf:"bytes,13,opt,name=delete_ns,json=deleteNs,proto3" json:"delete_ns,omitempty"` // Used to delete namespace. Tablets []*Tablet `protobuf:"bytes,14,rep,name=tablets,proto3" json:"tablets,omitempty"` } -func (m *ZeroProposal) Reset() { *m = ZeroProposal{} } -func (m *ZeroProposal) String() string { return proto.CompactTextString(m) } -func (*ZeroProposal) ProtoMessage() {} -func (*ZeroProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{14} -} -func (m *ZeroProposal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ZeroProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ZeroProposal.Marshal(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 *ZeroProposal) Reset() { + *x = ZeroProposal{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ZeroProposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_ZeroProposal.Merge(m, src) -} -func (m *ZeroProposal) XXX_Size() int { - return m.Size() + +func (x *ZeroProposal) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ZeroProposal) XXX_DiscardUnknown() { - xxx_messageInfo_ZeroProposal.DiscardUnknown(m) + +func (*ZeroProposal) ProtoMessage() {} + +func (x *ZeroProposal) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[14] + 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_ZeroProposal proto.InternalMessageInfo +// Deprecated: Use ZeroProposal.ProtoReflect.Descriptor instead. +func (*ZeroProposal) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{14} +} -func (m *ZeroProposal) GetSnapshotTs() map[uint32]uint64 { - if m != nil { - return m.SnapshotTs +func (x *ZeroProposal) GetSnapshotTs() map[uint32]uint64 { + if x != nil { + return x.SnapshotTs } return nil } -func (m *ZeroProposal) GetMember() *Member { - if m != nil { - return m.Member +func (x *ZeroProposal) GetMember() *Member { + if x != nil { + return x.Member } return nil } -func (m *ZeroProposal) GetTablet() *Tablet { - if m != nil { - return m.Tablet +func (x *ZeroProposal) GetTablet() *Tablet { + if x != nil { + return x.Tablet } return nil } -func (m *ZeroProposal) GetMaxUID() uint64 { - if m != nil { - return m.MaxUID +func (x *ZeroProposal) GetMaxUID() uint64 { + if x != nil { + return x.MaxUID } return 0 } -func (m *ZeroProposal) GetMaxTxnTs() uint64 { - if m != nil { - return m.MaxTxnTs +func (x *ZeroProposal) GetMaxTxnTs() uint64 { + if x != nil { + return x.MaxTxnTs } return 0 } -func (m *ZeroProposal) GetMaxNsID() uint64 { - if m != nil { - return m.MaxNsID +func (x *ZeroProposal) GetMaxNsID() uint64 { + if x != nil { + return x.MaxNsID } return 0 } -func (m *ZeroProposal) GetMaxRaftId() uint64 { - if m != nil { - return m.MaxRaftId +func (x *ZeroProposal) GetMaxRaftId() uint64 { + if x != nil { + return x.MaxRaftId } return 0 } -func (m *ZeroProposal) GetTxn() *api.TxnContext { - if m != nil { - return m.Txn +func (x *ZeroProposal) GetTxn() *api.TxnContext { + if x != nil { + return x.Txn } return nil } -func (m *ZeroProposal) GetCid() string { - if m != nil { - return m.Cid +func (x *ZeroProposal) GetCid() string { + if x != nil { + return x.Cid } return "" } -func (m *ZeroProposal) GetLicense() *License { - if m != nil { - return m.License +func (x *ZeroProposal) GetLicense() *License { + if x != nil { + return x.License } return nil } -func (m *ZeroProposal) GetSnapshot() *ZeroSnapshot { - if m != nil { - return m.Snapshot +func (x *ZeroProposal) GetSnapshot() *ZeroSnapshot { + if x != nil { + return x.Snapshot } return nil } -func (m *ZeroProposal) GetDeleteNs() *DeleteNsRequest { - if m != nil { - return m.DeleteNs +func (x *ZeroProposal) GetDeleteNs() *DeleteNsRequest { + if x != nil { + return x.DeleteNs } return nil } -func (m *ZeroProposal) GetTablets() []*Tablet { - if m != nil { - return m.Tablets +func (x *ZeroProposal) GetTablets() []*Tablet { + if x != nil { + return x.Tablets } return nil } @@ -1492,7 +1738,11 @@ func (m *ZeroProposal) GetTablets() []*Tablet { // the nodes in the caller server; and the membership updates recorded by the // callee server since the provided lastUpdate. type MembershipState struct { - Counter uint64 `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Counter uint64 `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"` // used to find latest membershipState in case of race. Groups map[uint32]*Group `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` Zeros map[uint64]*Member `protobuf:"bytes,3,rep,name=zeros,proto3" json:"zeros,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` MaxUID uint64 `protobuf:"varint,4,opt,name=maxUID,proto3" json:"maxUID,omitempty"` @@ -1500,178 +1750,184 @@ type MembershipState struct { MaxNsID uint64 `protobuf:"varint,10,opt,name=maxNsID,proto3" json:"maxNsID,omitempty"` MaxRaftId uint64 `protobuf:"varint,6,opt,name=maxRaftId,proto3" json:"maxRaftId,omitempty"` Removed []*Member `protobuf:"bytes,7,rep,name=removed,proto3" json:"removed,omitempty"` - Cid string `protobuf:"bytes,8,opt,name=cid,proto3" json:"cid,omitempty"` - License *License `protobuf:"bytes,9,opt,name=license,proto3" json:"license,omitempty"` + Cid string `protobuf:"bytes,8,opt,name=cid,proto3" json:"cid,omitempty"` // Used to uniquely identify the Dgraph cluster. + License *License `protobuf:"bytes,9,opt,name=license,proto3" json:"license,omitempty"` // 10 has already been used. } -func (m *MembershipState) Reset() { *m = MembershipState{} } -func (m *MembershipState) String() string { return proto.CompactTextString(m) } -func (*MembershipState) ProtoMessage() {} -func (*MembershipState) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{15} -} -func (m *MembershipState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MembershipState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MembershipState.Marshal(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 *MembershipState) Reset() { + *x = MembershipState{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *MembershipState) XXX_Merge(src proto.Message) { - xxx_messageInfo_MembershipState.Merge(m, src) -} -func (m *MembershipState) XXX_Size() int { - return m.Size() + +func (x *MembershipState) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MembershipState) XXX_DiscardUnknown() { - xxx_messageInfo_MembershipState.DiscardUnknown(m) + +func (*MembershipState) ProtoMessage() {} + +func (x *MembershipState) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[15] + 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_MembershipState proto.InternalMessageInfo +// Deprecated: Use MembershipState.ProtoReflect.Descriptor instead. +func (*MembershipState) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{15} +} -func (m *MembershipState) GetCounter() uint64 { - if m != nil { - return m.Counter +func (x *MembershipState) GetCounter() uint64 { + if x != nil { + return x.Counter } return 0 } -func (m *MembershipState) GetGroups() map[uint32]*Group { - if m != nil { - return m.Groups +func (x *MembershipState) GetGroups() map[uint32]*Group { + if x != nil { + return x.Groups } return nil } -func (m *MembershipState) GetZeros() map[uint64]*Member { - if m != nil { - return m.Zeros +func (x *MembershipState) GetZeros() map[uint64]*Member { + if x != nil { + return x.Zeros } return nil } -func (m *MembershipState) GetMaxUID() uint64 { - if m != nil { - return m.MaxUID +func (x *MembershipState) GetMaxUID() uint64 { + if x != nil { + return x.MaxUID } return 0 } -func (m *MembershipState) GetMaxTxnTs() uint64 { - if m != nil { - return m.MaxTxnTs +func (x *MembershipState) GetMaxTxnTs() uint64 { + if x != nil { + return x.MaxTxnTs } return 0 } -func (m *MembershipState) GetMaxNsID() uint64 { - if m != nil { - return m.MaxNsID +func (x *MembershipState) GetMaxNsID() uint64 { + if x != nil { + return x.MaxNsID } return 0 } -func (m *MembershipState) GetMaxRaftId() uint64 { - if m != nil { - return m.MaxRaftId +func (x *MembershipState) GetMaxRaftId() uint64 { + if x != nil { + return x.MaxRaftId } return 0 } -func (m *MembershipState) GetRemoved() []*Member { - if m != nil { - return m.Removed +func (x *MembershipState) GetRemoved() []*Member { + if x != nil { + return x.Removed } return nil } -func (m *MembershipState) GetCid() string { - if m != nil { - return m.Cid +func (x *MembershipState) GetCid() string { + if x != nil { + return x.Cid } return "" } -func (m *MembershipState) GetLicense() *License { - if m != nil { - return m.License +func (x *MembershipState) GetLicense() *License { + if x != nil { + return x.License } return nil } type ConnectionState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Member *Member `protobuf:"bytes,1,opt,name=member,proto3" json:"member,omitempty"` State *MembershipState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` - MaxPending uint64 `protobuf:"varint,3,opt,name=max_pending,json=maxPending,proto3" json:"max_pending,omitempty"` + MaxPending uint64 `protobuf:"varint,3,opt,name=max_pending,json=maxPending,proto3" json:"max_pending,omitempty"` // Used to determine the timstamp for reading after bulk load } -func (m *ConnectionState) Reset() { *m = ConnectionState{} } -func (m *ConnectionState) String() string { return proto.CompactTextString(m) } -func (*ConnectionState) ProtoMessage() {} -func (*ConnectionState) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{16} -} -func (m *ConnectionState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConnectionState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ConnectionState.Marshal(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 *ConnectionState) Reset() { + *x = ConnectionState{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ConnectionState) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConnectionState.Merge(m, src) -} -func (m *ConnectionState) XXX_Size() int { - return m.Size() + +func (x *ConnectionState) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConnectionState) XXX_DiscardUnknown() { - xxx_messageInfo_ConnectionState.DiscardUnknown(m) + +func (*ConnectionState) ProtoMessage() {} + +func (x *ConnectionState) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[16] + 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_ConnectionState proto.InternalMessageInfo +// Deprecated: Use ConnectionState.ProtoReflect.Descriptor instead. +func (*ConnectionState) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{16} +} -func (m *ConnectionState) GetMember() *Member { - if m != nil { - return m.Member +func (x *ConnectionState) GetMember() *Member { + if x != nil { + return x.Member } return nil } -func (m *ConnectionState) GetState() *MembershipState { - if m != nil { - return m.State +func (x *ConnectionState) GetState() *MembershipState { + if x != nil { + return x.State } return nil } -func (m *ConnectionState) GetMaxPending() uint64 { - if m != nil { - return m.MaxPending +func (x *ConnectionState) GetMaxPending() uint64 { + if x != nil { + return x.MaxPending } return 0 } type HealthInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` - Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` + Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` // string so group = 0 can be printed in JSON. Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` Uptime int64 `protobuf:"varint,6,opt,name=uptime,proto3" json:"uptime,omitempty"` LastEcho int64 `protobuf:"varint,7,opt,name=lastEcho,proto3" json:"lastEcho,omitempty"` @@ -1681,222 +1937,228 @@ type HealthInfo struct { MaxAssigned uint64 `protobuf:"varint,11,opt,name=max_assigned,json=maxAssigned,proto3" json:"max_assigned,omitempty"` } -func (m *HealthInfo) Reset() { *m = HealthInfo{} } -func (m *HealthInfo) String() string { return proto.CompactTextString(m) } -func (*HealthInfo) ProtoMessage() {} -func (*HealthInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{17} -} -func (m *HealthInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HealthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HealthInfo.Marshal(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 *HealthInfo) Reset() { + *x = HealthInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *HealthInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_HealthInfo.Merge(m, src) -} -func (m *HealthInfo) XXX_Size() int { - return m.Size() + +func (x *HealthInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *HealthInfo) XXX_DiscardUnknown() { - xxx_messageInfo_HealthInfo.DiscardUnknown(m) + +func (*HealthInfo) ProtoMessage() {} + +func (x *HealthInfo) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[17] + 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_HealthInfo proto.InternalMessageInfo +// Deprecated: Use HealthInfo.ProtoReflect.Descriptor instead. +func (*HealthInfo) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{17} +} -func (m *HealthInfo) GetInstance() string { - if m != nil { - return m.Instance +func (x *HealthInfo) GetInstance() string { + if x != nil { + return x.Instance } return "" } -func (m *HealthInfo) GetAddress() string { - if m != nil { - return m.Address +func (x *HealthInfo) GetAddress() string { + if x != nil { + return x.Address } return "" } -func (m *HealthInfo) GetStatus() string { - if m != nil { - return m.Status +func (x *HealthInfo) GetStatus() string { + if x != nil { + return x.Status } return "" } -func (m *HealthInfo) GetGroup() string { - if m != nil { - return m.Group +func (x *HealthInfo) GetGroup() string { + if x != nil { + return x.Group } return "" } -func (m *HealthInfo) GetVersion() string { - if m != nil { - return m.Version +func (x *HealthInfo) GetVersion() string { + if x != nil { + return x.Version } return "" } -func (m *HealthInfo) GetUptime() int64 { - if m != nil { - return m.Uptime +func (x *HealthInfo) GetUptime() int64 { + if x != nil { + return x.Uptime } return 0 } -func (m *HealthInfo) GetLastEcho() int64 { - if m != nil { - return m.LastEcho +func (x *HealthInfo) GetLastEcho() int64 { + if x != nil { + return x.LastEcho } return 0 } -func (m *HealthInfo) GetOngoing() []string { - if m != nil { - return m.Ongoing +func (x *HealthInfo) GetOngoing() []string { + if x != nil { + return x.Ongoing } return nil } -func (m *HealthInfo) GetIndexing() []string { - if m != nil { - return m.Indexing +func (x *HealthInfo) GetIndexing() []string { + if x != nil { + return x.Indexing } return nil } -func (m *HealthInfo) GetEeFeatures() []string { - if m != nil { - return m.EeFeatures +func (x *HealthInfo) GetEeFeatures() []string { + if x != nil { + return x.EeFeatures } return nil } -func (m *HealthInfo) GetMaxAssigned() uint64 { - if m != nil { - return m.MaxAssigned +func (x *HealthInfo) GetMaxAssigned() uint64 { + if x != nil { + return x.MaxAssigned } return 0 } type Tablet struct { - GroupId uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"groupId,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GroupId uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` Predicate string `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` - Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"` + Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"` // Used while moving predicate. OnDiskBytes int64 `protobuf:"varint,7,opt,name=on_disk_bytes,json=onDiskBytes,proto3" json:"on_disk_bytes,omitempty"` Remove bool `protobuf:"varint,8,opt,name=remove,proto3" json:"remove,omitempty"` - ReadOnly bool `protobuf:"varint,9,opt,name=read_only,json=readOnly,proto3" json:"readOnly,omitempty"` - MoveTs uint64 `protobuf:"varint,10,opt,name=move_ts,json=moveTs,proto3" json:"moveTs,omitempty"` - UncompressedBytes int64 `protobuf:"varint,11,opt,name=uncompressed_bytes,json=uncompressedBytes,proto3" json:"uncompressed_bytes,omitempty"` + ReadOnly bool `protobuf:"varint,9,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` + MoveTs uint64 `protobuf:"varint,10,opt,name=move_ts,json=moveTs,proto3" json:"move_ts,omitempty"` + UncompressedBytes int64 `protobuf:"varint,11,opt,name=uncompressed_bytes,json=uncompressedBytes,proto3" json:"uncompressed_bytes,omitempty"` // Estimated uncompressed size of tablet in bytes } -func (m *Tablet) Reset() { *m = Tablet{} } -func (m *Tablet) String() string { return proto.CompactTextString(m) } -func (*Tablet) ProtoMessage() {} -func (*Tablet) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{18} -} -func (m *Tablet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Tablet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Tablet.Marshal(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 *Tablet) Reset() { + *x = Tablet{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Tablet) XXX_Merge(src proto.Message) { - xxx_messageInfo_Tablet.Merge(m, src) -} -func (m *Tablet) XXX_Size() int { - return m.Size() + +func (x *Tablet) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Tablet) XXX_DiscardUnknown() { - xxx_messageInfo_Tablet.DiscardUnknown(m) + +func (*Tablet) ProtoMessage() {} + +func (x *Tablet) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[18] + 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_Tablet proto.InternalMessageInfo +// Deprecated: Use Tablet.ProtoReflect.Descriptor instead. +func (*Tablet) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{18} +} -func (m *Tablet) GetGroupId() uint32 { - if m != nil { - return m.GroupId +func (x *Tablet) GetGroupId() uint32 { + if x != nil { + return x.GroupId } return 0 } -func (m *Tablet) GetPredicate() string { - if m != nil { - return m.Predicate +func (x *Tablet) GetPredicate() string { + if x != nil { + return x.Predicate } return "" } -func (m *Tablet) GetForce() bool { - if m != nil { - return m.Force +func (x *Tablet) GetForce() bool { + if x != nil { + return x.Force } return false } -func (m *Tablet) GetOnDiskBytes() int64 { - if m != nil { - return m.OnDiskBytes +func (x *Tablet) GetOnDiskBytes() int64 { + if x != nil { + return x.OnDiskBytes } return 0 } -func (m *Tablet) GetRemove() bool { - if m != nil { - return m.Remove +func (x *Tablet) GetRemove() bool { + if x != nil { + return x.Remove } return false } -func (m *Tablet) GetReadOnly() bool { - if m != nil { - return m.ReadOnly +func (x *Tablet) GetReadOnly() bool { + if x != nil { + return x.ReadOnly } return false } -func (m *Tablet) GetMoveTs() uint64 { - if m != nil { - return m.MoveTs +func (x *Tablet) GetMoveTs() uint64 { + if x != nil { + return x.MoveTs } return 0 } -func (m *Tablet) GetUncompressedBytes() int64 { - if m != nil { - return m.UncompressedBytes +func (x *Tablet) GetUncompressedBytes() int64 { + if x != nil { + return x.UncompressedBytes } return 0 } type DirectedEdge struct { - Entity uint64 `protobuf:"fixed64,1,opt,name=entity,proto3" json:"entity,omitempty"` - Attr string `protobuf:"bytes,2,opt,name=attr,proto3" json:"attr,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - ValueType Posting_ValType `protobuf:"varint,4,opt,name=value_type,json=valueType,proto3,enum=pb.Posting_ValType" json:"value_type,omitempty"` - ValueId uint64 `protobuf:"fixed64,5,opt,name=value_id,json=valueId,proto3" json:"value_id,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Entity uint64 `protobuf:"fixed64,1,opt,name=entity,proto3" json:"entity,omitempty"` // Subject or source node / UID. + Attr string `protobuf:"bytes,2,opt,name=attr,proto3" json:"attr,omitempty"` // Attribute or predicate. Labels the edge. + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // Edge points to a value. + ValueType Posting_ValType `protobuf:"varint,4,opt,name=value_type,json=valueType,proto3,enum=pb.Posting_ValType" json:"value_type,omitempty"` // The type of the value + ValueId uint64 `protobuf:"fixed64,5,opt,name=value_id,json=valueId,proto3" json:"value_id,omitempty"` // Object or destination node / UID. Lang string `protobuf:"bytes,7,opt,name=lang,proto3" json:"lang,omitempty"` Op DirectedEdge_Op `protobuf:"varint,8,opt,name=op,proto3,enum=pb.DirectedEdge_Op" json:"op,omitempty"` Facets []*api.Facet `protobuf:"bytes,9,rep,name=facets,proto3" json:"facets,omitempty"` @@ -1904,110 +2166,113 @@ type DirectedEdge struct { Namespace uint64 `protobuf:"varint,11,opt,name=namespace,proto3" json:"namespace,omitempty"` } -func (m *DirectedEdge) Reset() { *m = DirectedEdge{} } -func (m *DirectedEdge) String() string { return proto.CompactTextString(m) } -func (*DirectedEdge) ProtoMessage() {} -func (*DirectedEdge) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{19} -} -func (m *DirectedEdge) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DirectedEdge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DirectedEdge.Marshal(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 *DirectedEdge) Reset() { + *x = DirectedEdge{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DirectedEdge) XXX_Merge(src proto.Message) { - xxx_messageInfo_DirectedEdge.Merge(m, src) -} -func (m *DirectedEdge) XXX_Size() int { - return m.Size() + +func (x *DirectedEdge) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DirectedEdge) XXX_DiscardUnknown() { - xxx_messageInfo_DirectedEdge.DiscardUnknown(m) + +func (*DirectedEdge) ProtoMessage() {} + +func (x *DirectedEdge) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[19] + 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_DirectedEdge proto.InternalMessageInfo +// Deprecated: Use DirectedEdge.ProtoReflect.Descriptor instead. +func (*DirectedEdge) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{19} +} -func (m *DirectedEdge) GetEntity() uint64 { - if m != nil { - return m.Entity +func (x *DirectedEdge) GetEntity() uint64 { + if x != nil { + return x.Entity } return 0 } -func (m *DirectedEdge) GetAttr() string { - if m != nil { - return m.Attr +func (x *DirectedEdge) GetAttr() string { + if x != nil { + return x.Attr } return "" } -func (m *DirectedEdge) GetValue() []byte { - if m != nil { - return m.Value +func (x *DirectedEdge) GetValue() []byte { + if x != nil { + return x.Value } return nil } -func (m *DirectedEdge) GetValueType() Posting_ValType { - if m != nil { - return m.ValueType +func (x *DirectedEdge) GetValueType() Posting_ValType { + if x != nil { + return x.ValueType } return Posting_DEFAULT } -func (m *DirectedEdge) GetValueId() uint64 { - if m != nil { - return m.ValueId +func (x *DirectedEdge) GetValueId() uint64 { + if x != nil { + return x.ValueId } return 0 } -func (m *DirectedEdge) GetLang() string { - if m != nil { - return m.Lang +func (x *DirectedEdge) GetLang() string { + if x != nil { + return x.Lang } return "" } -func (m *DirectedEdge) GetOp() DirectedEdge_Op { - if m != nil { - return m.Op +func (x *DirectedEdge) GetOp() DirectedEdge_Op { + if x != nil { + return x.Op } return DirectedEdge_SET } -func (m *DirectedEdge) GetFacets() []*api.Facet { - if m != nil { - return m.Facets +func (x *DirectedEdge) GetFacets() []*api.Facet { + if x != nil { + return x.Facets } return nil } -func (m *DirectedEdge) GetAllowedPreds() []string { - if m != nil { - return m.AllowedPreds +func (x *DirectedEdge) GetAllowedPreds() []string { + if x != nil { + return x.AllowedPreds } return nil } -func (m *DirectedEdge) GetNamespace() uint64 { - if m != nil { - return m.Namespace +func (x *DirectedEdge) GetNamespace() uint64 { + if x != nil { + return x.Namespace } return 0 } type Mutations struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + GroupId uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` Edges []*DirectedEdge `protobuf:"bytes,3,rep,name=edges,proto3" json:"edges,omitempty"` @@ -2018,141 +2283,147 @@ type Mutations struct { Metadata *Metadata `protobuf:"bytes,9,opt,name=metadata,proto3" json:"metadata,omitempty"` } -func (m *Mutations) Reset() { *m = Mutations{} } -func (m *Mutations) String() string { return proto.CompactTextString(m) } -func (*Mutations) ProtoMessage() {} -func (*Mutations) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{20} -} -func (m *Mutations) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Mutations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Mutations.Marshal(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 *Mutations) Reset() { + *x = Mutations{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Mutations) XXX_Merge(src proto.Message) { - xxx_messageInfo_Mutations.Merge(m, src) -} -func (m *Mutations) XXX_Size() int { - return m.Size() + +func (x *Mutations) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Mutations) XXX_DiscardUnknown() { - xxx_messageInfo_Mutations.DiscardUnknown(m) + +func (*Mutations) ProtoMessage() {} + +func (x *Mutations) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[20] + 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_Mutations proto.InternalMessageInfo +// Deprecated: Use Mutations.ProtoReflect.Descriptor instead. +func (*Mutations) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{20} +} -func (m *Mutations) GetGroupId() uint32 { - if m != nil { - return m.GroupId +func (x *Mutations) GetGroupId() uint32 { + if x != nil { + return x.GroupId } return 0 } -func (m *Mutations) GetStartTs() uint64 { - if m != nil { - return m.StartTs +func (x *Mutations) GetStartTs() uint64 { + if x != nil { + return x.StartTs } return 0 } -func (m *Mutations) GetEdges() []*DirectedEdge { - if m != nil { - return m.Edges +func (x *Mutations) GetEdges() []*DirectedEdge { + if x != nil { + return x.Edges } return nil } -func (m *Mutations) GetSchema() []*SchemaUpdate { - if m != nil { - return m.Schema +func (x *Mutations) GetSchema() []*SchemaUpdate { + if x != nil { + return x.Schema } return nil } -func (m *Mutations) GetTypes() []*TypeUpdate { - if m != nil { - return m.Types +func (x *Mutations) GetTypes() []*TypeUpdate { + if x != nil { + return x.Types } return nil } -func (m *Mutations) GetDropOp() Mutations_DropOp { - if m != nil { - return m.DropOp +func (x *Mutations) GetDropOp() Mutations_DropOp { + if x != nil { + return x.DropOp } return Mutations_NONE } -func (m *Mutations) GetDropValue() string { - if m != nil { - return m.DropValue +func (x *Mutations) GetDropValue() string { + if x != nil { + return x.DropValue } return "" } -func (m *Mutations) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *Mutations) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } type Metadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Map of predicates to their hints. PredHints map[string]Metadata_HintType `protobuf:"bytes,1,rep,name=pred_hints,json=predHints,proto3" json:"pred_hints,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=pb.Metadata_HintType"` } -func (m *Metadata) Reset() { *m = Metadata{} } -func (m *Metadata) String() string { return proto.CompactTextString(m) } -func (*Metadata) ProtoMessage() {} -func (*Metadata) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{21} -} -func (m *Metadata) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Metadata.Marshal(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 *Metadata) Reset() { + *x = Metadata{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Metadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_Metadata.Merge(m, src) -} -func (m *Metadata) XXX_Size() int { - return m.Size() + +func (x *Metadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Metadata) XXX_DiscardUnknown() { - xxx_messageInfo_Metadata.DiscardUnknown(m) + +func (*Metadata) ProtoMessage() {} + +func (x *Metadata) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[21] + 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_Metadata proto.InternalMessageInfo +// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. +func (*Metadata) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{21} +} -func (m *Metadata) GetPredHints() map[string]Metadata_HintType { - if m != nil { - return m.PredHints +func (x *Metadata) GetPredHints() map[string]Metadata_HintType { + if x != nil { + return x.PredHints } return nil } type Snapshot struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Context *RaftContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` ReadTs uint64 `protobuf:"varint,3,opt,name=read_ts,json=readTs,proto3" json:"read_ts,omitempty"` @@ -2162,144 +2433,150 @@ type Snapshot struct { SinceTs uint64 `protobuf:"varint,5,opt,name=since_ts,json=sinceTs,proto3" json:"since_ts,omitempty"` } -func (m *Snapshot) Reset() { *m = Snapshot{} } -func (m *Snapshot) String() string { return proto.CompactTextString(m) } -func (*Snapshot) ProtoMessage() {} -func (*Snapshot) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{22} -} -func (m *Snapshot) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Snapshot.Marshal(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 *Snapshot) Reset() { + *x = Snapshot{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Snapshot) XXX_Merge(src proto.Message) { - xxx_messageInfo_Snapshot.Merge(m, src) -} -func (m *Snapshot) XXX_Size() int { - return m.Size() + +func (x *Snapshot) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Snapshot) XXX_DiscardUnknown() { - xxx_messageInfo_Snapshot.DiscardUnknown(m) + +func (*Snapshot) ProtoMessage() {} + +func (x *Snapshot) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[22] + 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_Snapshot proto.InternalMessageInfo +// Deprecated: Use Snapshot.ProtoReflect.Descriptor instead. +func (*Snapshot) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{22} +} -func (m *Snapshot) GetContext() *RaftContext { - if m != nil { - return m.Context +func (x *Snapshot) GetContext() *RaftContext { + if x != nil { + return x.Context } return nil } -func (m *Snapshot) GetIndex() uint64 { - if m != nil { - return m.Index +func (x *Snapshot) GetIndex() uint64 { + if x != nil { + return x.Index } return 0 } -func (m *Snapshot) GetReadTs() uint64 { - if m != nil { - return m.ReadTs +func (x *Snapshot) GetReadTs() uint64 { + if x != nil { + return x.ReadTs } return 0 } -func (m *Snapshot) GetDone() bool { - if m != nil { - return m.Done +func (x *Snapshot) GetDone() bool { + if x != nil { + return x.Done } return false } -func (m *Snapshot) GetSinceTs() uint64 { - if m != nil { - return m.SinceTs +func (x *Snapshot) GetSinceTs() uint64 { + if x != nil { + return x.SinceTs } return 0 } type ZeroSnapshot struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` CheckpointTs uint64 `protobuf:"varint,2,opt,name=checkpoint_ts,json=checkpointTs,proto3" json:"checkpoint_ts,omitempty"` State *MembershipState `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` } -func (m *ZeroSnapshot) Reset() { *m = ZeroSnapshot{} } -func (m *ZeroSnapshot) String() string { return proto.CompactTextString(m) } -func (*ZeroSnapshot) ProtoMessage() {} -func (*ZeroSnapshot) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{23} -} -func (m *ZeroSnapshot) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ZeroSnapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ZeroSnapshot.Marshal(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 *ZeroSnapshot) Reset() { + *x = ZeroSnapshot{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ZeroSnapshot) XXX_Merge(src proto.Message) { - xxx_messageInfo_ZeroSnapshot.Merge(m, src) -} -func (m *ZeroSnapshot) XXX_Size() int { - return m.Size() + +func (x *ZeroSnapshot) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ZeroSnapshot) XXX_DiscardUnknown() { - xxx_messageInfo_ZeroSnapshot.DiscardUnknown(m) + +func (*ZeroSnapshot) ProtoMessage() {} + +func (x *ZeroSnapshot) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[23] + 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_ZeroSnapshot proto.InternalMessageInfo +// Deprecated: Use ZeroSnapshot.ProtoReflect.Descriptor instead. +func (*ZeroSnapshot) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{23} +} -func (m *ZeroSnapshot) GetIndex() uint64 { - if m != nil { - return m.Index +func (x *ZeroSnapshot) GetIndex() uint64 { + if x != nil { + return x.Index } return 0 } -func (m *ZeroSnapshot) GetCheckpointTs() uint64 { - if m != nil { - return m.CheckpointTs +func (x *ZeroSnapshot) GetCheckpointTs() uint64 { + if x != nil { + return x.CheckpointTs } return 0 } -func (m *ZeroSnapshot) GetState() *MembershipState { - if m != nil { - return m.State +func (x *ZeroSnapshot) GetState() *MembershipState { + if x != nil { + return x.State } return nil } type RestoreRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + GroupId uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` RestoreTs uint64 `protobuf:"varint,2,opt,name=restore_ts,json=restoreTs,proto3" json:"restore_ts,omitempty"` Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"` BackupId string `protobuf:"bytes,4,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"` // Credentials when using a minio or S3 bucket as the backup location. - AccessKey string `protobuf:"bytes,5,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` - SecretKey Sensitive `protobuf:"bytes,6,opt,name=secret_key,json=secretKey,proto3,customtype=Sensitive" json:"secret_key"` - SessionToken Sensitive `protobuf:"bytes,7,opt,name=session_token,json=sessionToken,proto3,customtype=Sensitive" json:"session_token"` - Anonymous bool `protobuf:"varint,8,opt,name=anonymous,proto3" json:"anonymous,omitempty"` + AccessKey string `protobuf:"bytes,5,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` + SecretKey string `protobuf:"bytes,6,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` + SessionToken string `protobuf:"bytes,7,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` + Anonymous bool `protobuf:"varint,8,opt,name=anonymous,proto3" json:"anonymous,omitempty"` // Info needed to process encrypted backups. EncryptionKeyFile string `protobuf:"bytes,9,opt,name=encryption_key_file,json=encryptionKeyFile,proto3" json:"encryption_key_file,omitempty"` // Vault options @@ -2316,343 +2593,366 @@ type RestoreRequest struct { IsNamespaceAwareRestore bool `protobuf:"varint,20,opt,name=isNamespaceAwareRestore,proto3" json:"isNamespaceAwareRestore,omitempty"` } -func (m *RestoreRequest) Reset() { *m = RestoreRequest{} } -func (m *RestoreRequest) String() string { return proto.CompactTextString(m) } -func (*RestoreRequest) ProtoMessage() {} -func (*RestoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{24} -} -func (m *RestoreRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RestoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RestoreRequest.Marshal(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 *RestoreRequest) Reset() { + *x = RestoreRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RestoreRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RestoreRequest.Merge(m, src) -} -func (m *RestoreRequest) XXX_Size() int { - return m.Size() + +func (x *RestoreRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RestoreRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RestoreRequest.DiscardUnknown(m) + +func (*RestoreRequest) ProtoMessage() {} + +func (x *RestoreRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[24] + 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_RestoreRequest proto.InternalMessageInfo +// Deprecated: Use RestoreRequest.ProtoReflect.Descriptor instead. +func (*RestoreRequest) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{24} +} -func (m *RestoreRequest) GetGroupId() uint32 { - if m != nil { - return m.GroupId +func (x *RestoreRequest) GetGroupId() uint32 { + if x != nil { + return x.GroupId } return 0 } -func (m *RestoreRequest) GetRestoreTs() uint64 { - if m != nil { - return m.RestoreTs +func (x *RestoreRequest) GetRestoreTs() uint64 { + if x != nil { + return x.RestoreTs } return 0 } -func (m *RestoreRequest) GetLocation() string { - if m != nil { - return m.Location +func (x *RestoreRequest) GetLocation() string { + if x != nil { + return x.Location + } + return "" +} + +func (x *RestoreRequest) GetBackupId() string { + if x != nil { + return x.BackupId + } + return "" +} + +func (x *RestoreRequest) GetAccessKey() string { + if x != nil { + return x.AccessKey } return "" } -func (m *RestoreRequest) GetBackupId() string { - if m != nil { - return m.BackupId +func (x *RestoreRequest) GetSecretKey() string { + if x != nil { + return x.SecretKey } return "" } -func (m *RestoreRequest) GetAccessKey() string { - if m != nil { - return m.AccessKey +func (x *RestoreRequest) GetSessionToken() string { + if x != nil { + return x.SessionToken } return "" } -func (m *RestoreRequest) GetAnonymous() bool { - if m != nil { - return m.Anonymous +func (x *RestoreRequest) GetAnonymous() bool { + if x != nil { + return x.Anonymous } return false } -func (m *RestoreRequest) GetEncryptionKeyFile() string { - if m != nil { - return m.EncryptionKeyFile +func (x *RestoreRequest) GetEncryptionKeyFile() string { + if x != nil { + return x.EncryptionKeyFile } return "" } -func (m *RestoreRequest) GetVaultAddr() string { - if m != nil { - return m.VaultAddr +func (x *RestoreRequest) GetVaultAddr() string { + if x != nil { + return x.VaultAddr } return "" } -func (m *RestoreRequest) GetVaultRoleidFile() string { - if m != nil { - return m.VaultRoleidFile +func (x *RestoreRequest) GetVaultRoleidFile() string { + if x != nil { + return x.VaultRoleidFile } return "" } -func (m *RestoreRequest) GetVaultSecretidFile() string { - if m != nil { - return m.VaultSecretidFile +func (x *RestoreRequest) GetVaultSecretidFile() string { + if x != nil { + return x.VaultSecretidFile } return "" } -func (m *RestoreRequest) GetVaultPath() string { - if m != nil { - return m.VaultPath +func (x *RestoreRequest) GetVaultPath() string { + if x != nil { + return x.VaultPath } return "" } -func (m *RestoreRequest) GetVaultField() string { - if m != nil { - return m.VaultField +func (x *RestoreRequest) GetVaultField() string { + if x != nil { + return x.VaultField } return "" } -func (m *RestoreRequest) GetVaultFormat() string { - if m != nil { - return m.VaultFormat +func (x *RestoreRequest) GetVaultFormat() string { + if x != nil { + return x.VaultFormat } return "" } -func (m *RestoreRequest) GetBackupNum() uint64 { - if m != nil { - return m.BackupNum +func (x *RestoreRequest) GetBackupNum() uint64 { + if x != nil { + return x.BackupNum } return 0 } -func (m *RestoreRequest) GetIncrementalFrom() uint64 { - if m != nil { - return m.IncrementalFrom +func (x *RestoreRequest) GetIncrementalFrom() uint64 { + if x != nil { + return x.IncrementalFrom } return 0 } -func (m *RestoreRequest) GetIsPartial() bool { - if m != nil { - return m.IsPartial +func (x *RestoreRequest) GetIsPartial() bool { + if x != nil { + return x.IsPartial } return false } -func (m *RestoreRequest) GetFromNamespace() uint64 { - if m != nil { - return m.FromNamespace +func (x *RestoreRequest) GetFromNamespace() uint64 { + if x != nil { + return x.FromNamespace } return 0 } -func (m *RestoreRequest) GetIsNamespaceAwareRestore() bool { - if m != nil { - return m.IsNamespaceAwareRestore +func (x *RestoreRequest) GetIsNamespaceAwareRestore() bool { + if x != nil { + return x.IsNamespaceAwareRestore } return false } type Proposal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Mutations *Mutations `protobuf:"bytes,2,opt,name=mutations,proto3" json:"mutations,omitempty"` Kv []*pb.KV `protobuf:"bytes,4,rep,name=kv,proto3" json:"kv,omitempty"` State *MembershipState `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` - CleanPredicate string `protobuf:"bytes,6,opt,name=clean_predicate,json=cleanPredicate,proto3" json:"clean_predicate,omitempty"` + CleanPredicate string `protobuf:"bytes,6,opt,name=clean_predicate,json=cleanPredicate,proto3" json:"clean_predicate,omitempty"` // Delete the predicate which was moved to other group. Delta *OracleDelta `protobuf:"bytes,8,opt,name=delta,proto3" json:"delta,omitempty"` - Snapshot *Snapshot `protobuf:"bytes,9,opt,name=snapshot,proto3" json:"snapshot,omitempty"` - Index uint64 `protobuf:"varint,10,opt,name=index,proto3" json:"index,omitempty"` - ExpectedChecksum uint64 `protobuf:"varint,11,opt,name=expected_checksum,json=expectedChecksum,proto3" json:"expected_checksum,omitempty"` + Snapshot *Snapshot `protobuf:"bytes,9,opt,name=snapshot,proto3" json:"snapshot,omitempty"` // Used to tell the group when to take snapshot. + Index uint64 `protobuf:"varint,10,opt,name=index,proto3" json:"index,omitempty"` // Used to store Raft index, in raft.Ready. + ExpectedChecksum uint64 `protobuf:"varint,11,opt,name=expected_checksum,json=expectedChecksum,proto3" json:"expected_checksum,omitempty"` // Block an operation until membership reaches this checksum. Restore *RestoreRequest `protobuf:"bytes,12,opt,name=restore,proto3" json:"restore,omitempty"` CdcState *CDCState `protobuf:"bytes,13,opt,name=cdc_state,json=cdcState,proto3" json:"cdc_state,omitempty"` - DeleteNs *DeleteNsRequest `protobuf:"bytes,14,opt,name=delete_ns,json=deleteNs,proto3" json:"delete_ns,omitempty"` + DeleteNs *DeleteNsRequest `protobuf:"bytes,14,opt,name=delete_ns,json=deleteNs,proto3" json:"delete_ns,omitempty"` // Used to delete namespace. // Skipping 15 as it is used for uint64 key in master and might be needed later here. StartTs uint64 `protobuf:"varint,16,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` } -func (m *Proposal) Reset() { *m = Proposal{} } -func (m *Proposal) String() string { return proto.CompactTextString(m) } -func (*Proposal) ProtoMessage() {} -func (*Proposal) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{25} -} -func (m *Proposal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Proposal.Marshal(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 *Proposal) Reset() { + *x = Proposal{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Proposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_Proposal.Merge(m, src) -} -func (m *Proposal) XXX_Size() int { - return m.Size() + +func (x *Proposal) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Proposal) XXX_DiscardUnknown() { - xxx_messageInfo_Proposal.DiscardUnknown(m) + +func (*Proposal) ProtoMessage() {} + +func (x *Proposal) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[25] + 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_Proposal proto.InternalMessageInfo +// Deprecated: Use Proposal.ProtoReflect.Descriptor instead. +func (*Proposal) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{25} +} -func (m *Proposal) GetMutations() *Mutations { - if m != nil { - return m.Mutations +func (x *Proposal) GetMutations() *Mutations { + if x != nil { + return x.Mutations } return nil } -func (m *Proposal) GetKv() []*pb.KV { - if m != nil { - return m.Kv +func (x *Proposal) GetKv() []*pb.KV { + if x != nil { + return x.Kv } return nil } -func (m *Proposal) GetState() *MembershipState { - if m != nil { - return m.State +func (x *Proposal) GetState() *MembershipState { + if x != nil { + return x.State } return nil } -func (m *Proposal) GetCleanPredicate() string { - if m != nil { - return m.CleanPredicate +func (x *Proposal) GetCleanPredicate() string { + if x != nil { + return x.CleanPredicate } return "" } -func (m *Proposal) GetDelta() *OracleDelta { - if m != nil { - return m.Delta +func (x *Proposal) GetDelta() *OracleDelta { + if x != nil { + return x.Delta } return nil } -func (m *Proposal) GetSnapshot() *Snapshot { - if m != nil { - return m.Snapshot +func (x *Proposal) GetSnapshot() *Snapshot { + if x != nil { + return x.Snapshot } return nil } -func (m *Proposal) GetIndex() uint64 { - if m != nil { - return m.Index +func (x *Proposal) GetIndex() uint64 { + if x != nil { + return x.Index } return 0 } -func (m *Proposal) GetExpectedChecksum() uint64 { - if m != nil { - return m.ExpectedChecksum +func (x *Proposal) GetExpectedChecksum() uint64 { + if x != nil { + return x.ExpectedChecksum } return 0 } -func (m *Proposal) GetRestore() *RestoreRequest { - if m != nil { - return m.Restore +func (x *Proposal) GetRestore() *RestoreRequest { + if x != nil { + return x.Restore } return nil } -func (m *Proposal) GetCdcState() *CDCState { - if m != nil { - return m.CdcState +func (x *Proposal) GetCdcState() *CDCState { + if x != nil { + return x.CdcState } return nil } -func (m *Proposal) GetDeleteNs() *DeleteNsRequest { - if m != nil { - return m.DeleteNs +func (x *Proposal) GetDeleteNs() *DeleteNsRequest { + if x != nil { + return x.DeleteNs } return nil } -func (m *Proposal) GetStartTs() uint64 { - if m != nil { - return m.StartTs +func (x *Proposal) GetStartTs() uint64 { + if x != nil { + return x.StartTs } return 0 } type CDCState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + SentTs uint64 `protobuf:"varint,1,opt,name=sent_ts,json=sentTs,proto3" json:"sent_ts,omitempty"` } -func (m *CDCState) Reset() { *m = CDCState{} } -func (m *CDCState) String() string { return proto.CompactTextString(m) } -func (*CDCState) ProtoMessage() {} -func (*CDCState) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{26} -} -func (m *CDCState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CDCState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CDCState.Marshal(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 *CDCState) Reset() { + *x = CDCState{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CDCState) XXX_Merge(src proto.Message) { - xxx_messageInfo_CDCState.Merge(m, src) -} -func (m *CDCState) XXX_Size() int { - return m.Size() + +func (x *CDCState) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CDCState) XXX_DiscardUnknown() { - xxx_messageInfo_CDCState.DiscardUnknown(m) + +func (*CDCState) ProtoMessage() {} + +func (x *CDCState) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[26] + 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_CDCState proto.InternalMessageInfo +// Deprecated: Use CDCState.ProtoReflect.Descriptor instead. +func (*CDCState) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{26} +} -func (m *CDCState) GetSentTs() uint64 { - if m != nil { - return m.SentTs +func (x *CDCState) GetSentTs() uint64 { + if x != nil { + return x.SentTs } return 0 } type KVS struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // done used to indicate if the stream of KVS is over. Done bool `protobuf:"varint,2,opt,name=done,proto3" json:"done,omitempty"` @@ -2663,178 +2963,184 @@ type KVS struct { Types []string `protobuf:"bytes,4,rep,name=types,proto3" json:"types,omitempty"` } -func (m *KVS) Reset() { *m = KVS{} } -func (m *KVS) String() string { return proto.CompactTextString(m) } -func (*KVS) ProtoMessage() {} -func (*KVS) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{27} -} -func (m *KVS) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KVS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KVS.Marshal(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 *KVS) Reset() { + *x = KVS{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *KVS) XXX_Merge(src proto.Message) { - xxx_messageInfo_KVS.Merge(m, src) -} -func (m *KVS) XXX_Size() int { - return m.Size() + +func (x *KVS) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *KVS) XXX_DiscardUnknown() { - xxx_messageInfo_KVS.DiscardUnknown(m) + +func (*KVS) ProtoMessage() {} + +func (x *KVS) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[27] + 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_KVS proto.InternalMessageInfo +// Deprecated: Use KVS.ProtoReflect.Descriptor instead. +func (*KVS) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{27} +} -func (m *KVS) GetData() []byte { - if m != nil { - return m.Data +func (x *KVS) GetData() []byte { + if x != nil { + return x.Data } return nil } -func (m *KVS) GetDone() bool { - if m != nil { - return m.Done +func (x *KVS) GetDone() bool { + if x != nil { + return x.Done } return false } -func (m *KVS) GetPredicates() []string { - if m != nil { - return m.Predicates +func (x *KVS) GetPredicates() []string { + if x != nil { + return x.Predicates } return nil } -func (m *KVS) GetTypes() []string { - if m != nil { - return m.Types +func (x *KVS) GetTypes() []string { + if x != nil { + return x.Types } return nil } // Posting messages. type Posting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Uid uint64 `protobuf:"fixed64,1,opt,name=uid,proto3" json:"uid,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` ValType Posting_ValType `protobuf:"varint,3,opt,name=val_type,json=valType,proto3,enum=pb.Posting_ValType" json:"val_type,omitempty"` PostingType Posting_PostingType `protobuf:"varint,4,opt,name=posting_type,json=postingType,proto3,enum=pb.Posting_PostingType" json:"posting_type,omitempty"` - LangTag []byte `protobuf:"bytes,5,opt,name=lang_tag,json=langTag,proto3" json:"lang_tag,omitempty"` + LangTag []byte `protobuf:"bytes,5,opt,name=lang_tag,json=langTag,proto3" json:"lang_tag,omitempty"` // Only set for VALUE_LANG Facets []*api.Facet `protobuf:"bytes,9,rep,name=facets,proto3" json:"facets,omitempty"` // TODO: op is only used temporarily. See if we can remove it from here. Op uint32 `protobuf:"varint,12,opt,name=op,proto3" json:"op,omitempty"` - StartTs uint64 `protobuf:"varint,13,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - CommitTs uint64 `protobuf:"varint,14,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + StartTs uint64 `protobuf:"varint,13,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` // Meant to use only inmemory + CommitTs uint64 `protobuf:"varint,14,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` // Meant to use only inmemory } -func (m *Posting) Reset() { *m = Posting{} } -func (m *Posting) String() string { return proto.CompactTextString(m) } -func (*Posting) ProtoMessage() {} -func (*Posting) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{28} -} -func (m *Posting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Posting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Posting.Marshal(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 *Posting) Reset() { + *x = Posting{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Posting) XXX_Merge(src proto.Message) { - xxx_messageInfo_Posting.Merge(m, src) -} -func (m *Posting) XXX_Size() int { - return m.Size() + +func (x *Posting) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Posting) XXX_DiscardUnknown() { - xxx_messageInfo_Posting.DiscardUnknown(m) + +func (*Posting) ProtoMessage() {} + +func (x *Posting) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[28] + 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_Posting proto.InternalMessageInfo +// Deprecated: Use Posting.ProtoReflect.Descriptor instead. +func (*Posting) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{28} +} -func (m *Posting) GetUid() uint64 { - if m != nil { - return m.Uid +func (x *Posting) GetUid() uint64 { + if x != nil { + return x.Uid } return 0 } -func (m *Posting) GetValue() []byte { - if m != nil { - return m.Value +func (x *Posting) GetValue() []byte { + if x != nil { + return x.Value } return nil } -func (m *Posting) GetValType() Posting_ValType { - if m != nil { - return m.ValType +func (x *Posting) GetValType() Posting_ValType { + if x != nil { + return x.ValType } return Posting_DEFAULT } -func (m *Posting) GetPostingType() Posting_PostingType { - if m != nil { - return m.PostingType +func (x *Posting) GetPostingType() Posting_PostingType { + if x != nil { + return x.PostingType } return Posting_REF } -func (m *Posting) GetLangTag() []byte { - if m != nil { - return m.LangTag +func (x *Posting) GetLangTag() []byte { + if x != nil { + return x.LangTag } return nil } -func (m *Posting) GetFacets() []*api.Facet { - if m != nil { - return m.Facets +func (x *Posting) GetFacets() []*api.Facet { + if x != nil { + return x.Facets } return nil } -func (m *Posting) GetOp() uint32 { - if m != nil { - return m.Op +func (x *Posting) GetOp() uint32 { + if x != nil { + return x.Op } return 0 } -func (m *Posting) GetStartTs() uint64 { - if m != nil { - return m.StartTs +func (x *Posting) GetStartTs() uint64 { + if x != nil { + return x.StartTs } return 0 } -func (m *Posting) GetCommitTs() uint64 { - if m != nil { - return m.CommitTs +func (x *Posting) GetCommitTs() uint64 { + if x != nil { + return x.CommitTs } return 0 } type UidBlock struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Base uint64 `protobuf:"varint,1,opt,name=base,proto3" json:"base,omitempty"` // deltas contains the deltas encoded with Varints. We don't store deltas as a // list of integers, because when the PB is brought to memory, Go would always @@ -2851,503 +3157,530 @@ type UidBlock struct { NumUids uint32 `protobuf:"varint,3,opt,name=num_uids,json=numUids,proto3" json:"num_uids,omitempty"` } -func (m *UidBlock) Reset() { *m = UidBlock{} } -func (m *UidBlock) String() string { return proto.CompactTextString(m) } -func (*UidBlock) ProtoMessage() {} -func (*UidBlock) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{29} -} -func (m *UidBlock) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UidBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UidBlock.Marshal(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 *UidBlock) Reset() { + *x = UidBlock{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *UidBlock) XXX_Merge(src proto.Message) { - xxx_messageInfo_UidBlock.Merge(m, src) -} -func (m *UidBlock) XXX_Size() int { - return m.Size() + +func (x *UidBlock) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UidBlock) XXX_DiscardUnknown() { - xxx_messageInfo_UidBlock.DiscardUnknown(m) + +func (*UidBlock) ProtoMessage() {} + +func (x *UidBlock) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[29] + 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_UidBlock proto.InternalMessageInfo +// Deprecated: Use UidBlock.ProtoReflect.Descriptor instead. +func (*UidBlock) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{29} +} -func (m *UidBlock) GetBase() uint64 { - if m != nil { - return m.Base +func (x *UidBlock) GetBase() uint64 { + if x != nil { + return x.Base } return 0 } -func (m *UidBlock) GetDeltas() []byte { - if m != nil { - return m.Deltas +func (x *UidBlock) GetDeltas() []byte { + if x != nil { + return x.Deltas } return nil } -func (m *UidBlock) GetNumUids() uint32 { - if m != nil { - return m.NumUids +func (x *UidBlock) GetNumUids() uint32 { + if x != nil { + return x.NumUids } return 0 } type UidPack struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + BlockSize uint32 `protobuf:"varint,1,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"` Blocks []*UidBlock `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` - AllocRef uint64 `protobuf:"varint,23,opt,name=alloc_ref,json=allocRef,proto3" json:"alloc_ref,omitempty"` + AllocRef uint64 `protobuf:"varint,23,opt,name=alloc_ref,json=allocRef,proto3" json:"alloc_ref,omitempty"` // This field should be set to 0 during marshal. } -func (m *UidPack) Reset() { *m = UidPack{} } -func (m *UidPack) String() string { return proto.CompactTextString(m) } -func (*UidPack) ProtoMessage() {} -func (*UidPack) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{30} -} -func (m *UidPack) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UidPack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UidPack.Marshal(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 *UidPack) Reset() { + *x = UidPack{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *UidPack) XXX_Merge(src proto.Message) { - xxx_messageInfo_UidPack.Merge(m, src) -} -func (m *UidPack) XXX_Size() int { - return m.Size() + +func (x *UidPack) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UidPack) XXX_DiscardUnknown() { - xxx_messageInfo_UidPack.DiscardUnknown(m) + +func (*UidPack) ProtoMessage() {} + +func (x *UidPack) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[30] + 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_UidPack proto.InternalMessageInfo +// Deprecated: Use UidPack.ProtoReflect.Descriptor instead. +func (*UidPack) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{30} +} -func (m *UidPack) GetBlockSize() uint32 { - if m != nil { - return m.BlockSize +func (x *UidPack) GetBlockSize() uint32 { + if x != nil { + return x.BlockSize } return 0 } -func (m *UidPack) GetBlocks() []*UidBlock { - if m != nil { - return m.Blocks +func (x *UidPack) GetBlocks() []*UidBlock { + if x != nil { + return x.Blocks } return nil } -func (m *UidPack) GetAllocRef() uint64 { - if m != nil { - return m.AllocRef +func (x *UidPack) GetAllocRef() uint64 { + if x != nil { + return x.AllocRef } return 0 } type PostingList struct { - Pack *UidPack `protobuf:"bytes,1,opt,name=pack,proto3" json:"pack,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Pack *UidPack `protobuf:"bytes,1,opt,name=pack,proto3" json:"pack,omitempty"` // Encoded list of uids in this posting list. Postings []*Posting `protobuf:"bytes,2,rep,name=postings,proto3" json:"postings,omitempty"` - CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` // More inclination towards smaller values. Splits []uint64 `protobuf:"varint,4,rep,packed,name=splits,proto3" json:"splits,omitempty"` } -func (m *PostingList) Reset() { *m = PostingList{} } -func (m *PostingList) String() string { return proto.CompactTextString(m) } -func (*PostingList) ProtoMessage() {} -func (*PostingList) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{31} -} -func (m *PostingList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PostingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PostingList.Marshal(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 *PostingList) Reset() { + *x = PostingList{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PostingList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostingList.Merge(m, src) -} -func (m *PostingList) XXX_Size() int { - return m.Size() + +func (x *PostingList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PostingList) XXX_DiscardUnknown() { - xxx_messageInfo_PostingList.DiscardUnknown(m) + +func (*PostingList) ProtoMessage() {} + +func (x *PostingList) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[31] + 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_PostingList proto.InternalMessageInfo +// Deprecated: Use PostingList.ProtoReflect.Descriptor instead. +func (*PostingList) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{31} +} -func (m *PostingList) GetPack() *UidPack { - if m != nil { - return m.Pack +func (x *PostingList) GetPack() *UidPack { + if x != nil { + return x.Pack } return nil } -func (m *PostingList) GetPostings() []*Posting { - if m != nil { - return m.Postings +func (x *PostingList) GetPostings() []*Posting { + if x != nil { + return x.Postings } return nil } -func (m *PostingList) GetCommitTs() uint64 { - if m != nil { - return m.CommitTs +func (x *PostingList) GetCommitTs() uint64 { + if x != nil { + return x.CommitTs } return 0 } -func (m *PostingList) GetSplits() []uint64 { - if m != nil { - return m.Splits +func (x *PostingList) GetSplits() []uint64 { + if x != nil { + return x.Splits } return nil } type FacetParam struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` } -func (m *FacetParam) Reset() { *m = FacetParam{} } -func (m *FacetParam) String() string { return proto.CompactTextString(m) } -func (*FacetParam) ProtoMessage() {} -func (*FacetParam) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{32} -} -func (m *FacetParam) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FacetParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FacetParam.Marshal(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 *FacetParam) Reset() { + *x = FacetParam{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *FacetParam) XXX_Merge(src proto.Message) { - xxx_messageInfo_FacetParam.Merge(m, src) -} -func (m *FacetParam) XXX_Size() int { - return m.Size() + +func (x *FacetParam) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FacetParam) XXX_DiscardUnknown() { - xxx_messageInfo_FacetParam.DiscardUnknown(m) + +func (*FacetParam) ProtoMessage() {} + +func (x *FacetParam) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[32] + 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_FacetParam proto.InternalMessageInfo +// Deprecated: Use FacetParam.ProtoReflect.Descriptor instead. +func (*FacetParam) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{32} +} -func (m *FacetParam) GetKey() string { - if m != nil { - return m.Key +func (x *FacetParam) GetKey() string { + if x != nil { + return x.Key } return "" } -func (m *FacetParam) GetAlias() string { - if m != nil { - return m.Alias +func (x *FacetParam) GetAlias() string { + if x != nil { + return x.Alias } return "" } type FacetParams struct { - AllKeys bool `protobuf:"varint,1,opt,name=all_keys,json=allKeys,proto3" json:"all_keys,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AllKeys bool `protobuf:"varint,1,opt,name=all_keys,json=allKeys,proto3" json:"all_keys,omitempty"` // keys should be in sorted order. Param []*FacetParam `protobuf:"bytes,2,rep,name=param,proto3" json:"param,omitempty"` } -func (m *FacetParams) Reset() { *m = FacetParams{} } -func (m *FacetParams) String() string { return proto.CompactTextString(m) } -func (*FacetParams) ProtoMessage() {} -func (*FacetParams) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{33} -} -func (m *FacetParams) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FacetParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FacetParams.Marshal(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 *FacetParams) Reset() { + *x = FacetParams{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *FacetParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_FacetParams.Merge(m, src) -} -func (m *FacetParams) XXX_Size() int { - return m.Size() + +func (x *FacetParams) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FacetParams) XXX_DiscardUnknown() { - xxx_messageInfo_FacetParams.DiscardUnknown(m) + +func (*FacetParams) ProtoMessage() {} + +func (x *FacetParams) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[33] + 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_FacetParams proto.InternalMessageInfo +// Deprecated: Use FacetParams.ProtoReflect.Descriptor instead. +func (*FacetParams) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{33} +} -func (m *FacetParams) GetAllKeys() bool { - if m != nil { - return m.AllKeys +func (x *FacetParams) GetAllKeys() bool { + if x != nil { + return x.AllKeys } return false } -func (m *FacetParams) GetParam() []*FacetParam { - if m != nil { - return m.Param +func (x *FacetParams) GetParam() []*FacetParam { + if x != nil { + return x.Param } return nil } type Facets struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Facets []*api.Facet `protobuf:"bytes,1,rep,name=facets,proto3" json:"facets,omitempty"` } -func (m *Facets) Reset() { *m = Facets{} } -func (m *Facets) String() string { return proto.CompactTextString(m) } -func (*Facets) ProtoMessage() {} -func (*Facets) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{34} -} -func (m *Facets) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Facets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Facets.Marshal(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 *Facets) Reset() { + *x = Facets{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Facets) XXX_Merge(src proto.Message) { - xxx_messageInfo_Facets.Merge(m, src) -} -func (m *Facets) XXX_Size() int { - return m.Size() + +func (x *Facets) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Facets) XXX_DiscardUnknown() { - xxx_messageInfo_Facets.DiscardUnknown(m) + +func (*Facets) ProtoMessage() {} + +func (x *Facets) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[34] + 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_Facets proto.InternalMessageInfo +// Deprecated: Use Facets.ProtoReflect.Descriptor instead. +func (*Facets) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{34} +} -func (m *Facets) GetFacets() []*api.Facet { - if m != nil { - return m.Facets +func (x *Facets) GetFacets() []*api.Facet { + if x != nil { + return x.Facets } return nil } type FacetsList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + FacetsList []*Facets `protobuf:"bytes,1,rep,name=facets_list,json=facetsList,proto3" json:"facets_list,omitempty"` } -func (m *FacetsList) Reset() { *m = FacetsList{} } -func (m *FacetsList) String() string { return proto.CompactTextString(m) } -func (*FacetsList) ProtoMessage() {} -func (*FacetsList) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{35} -} -func (m *FacetsList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FacetsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FacetsList.Marshal(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 *FacetsList) Reset() { + *x = FacetsList{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *FacetsList) XXX_Merge(src proto.Message) { - xxx_messageInfo_FacetsList.Merge(m, src) -} -func (m *FacetsList) XXX_Size() int { - return m.Size() + +func (x *FacetsList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FacetsList) XXX_DiscardUnknown() { - xxx_messageInfo_FacetsList.DiscardUnknown(m) + +func (*FacetsList) ProtoMessage() {} + +func (x *FacetsList) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[35] + 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_FacetsList proto.InternalMessageInfo +// Deprecated: Use FacetsList.ProtoReflect.Descriptor instead. +func (*FacetsList) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{35} +} -func (m *FacetsList) GetFacetsList() []*Facets { - if m != nil { - return m.FacetsList +func (x *FacetsList) GetFacetsList() []*Facets { + if x != nil { + return x.FacetsList } return nil } type Function struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Name of the function : eq, le + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // Facet key over which to run the function. + Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` // Arguments of the function. } -func (m *Function) Reset() { *m = Function{} } -func (m *Function) String() string { return proto.CompactTextString(m) } -func (*Function) ProtoMessage() {} -func (*Function) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{36} -} -func (m *Function) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Function) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Function.Marshal(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 *Function) Reset() { + *x = Function{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Function) XXX_Merge(src proto.Message) { - xxx_messageInfo_Function.Merge(m, src) -} -func (m *Function) XXX_Size() int { - return m.Size() -} -func (m *Function) XXX_DiscardUnknown() { - xxx_messageInfo_Function.DiscardUnknown(m) + +func (x *Function) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Function proto.InternalMessageInfo +func (*Function) ProtoMessage() {} -func (m *Function) GetName() string { - if m != nil { - return m.Name +func (x *Function) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[36] + 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 Function.ProtoReflect.Descriptor instead. +func (*Function) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{36} +} + +func (x *Function) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *Function) GetKey() string { - if m != nil { - return m.Key +func (x *Function) GetKey() string { + if x != nil { + return x.Key } return "" } -func (m *Function) GetArgs() []string { - if m != nil { - return m.Args +func (x *Function) GetArgs() []string { + if x != nil { + return x.Args } return nil } // Op and Children are internal nodes and Func on leaves. type FilterTree struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Op string `protobuf:"bytes,1,opt,name=op,proto3" json:"op,omitempty"` Children []*FilterTree `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` Func *Function `protobuf:"bytes,3,opt,name=func,proto3" json:"func,omitempty"` } -func (m *FilterTree) Reset() { *m = FilterTree{} } -func (m *FilterTree) String() string { return proto.CompactTextString(m) } -func (*FilterTree) ProtoMessage() {} -func (*FilterTree) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{37} -} -func (m *FilterTree) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FilterTree) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FilterTree.Marshal(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 *FilterTree) Reset() { + *x = FilterTree{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *FilterTree) XXX_Merge(src proto.Message) { - xxx_messageInfo_FilterTree.Merge(m, src) -} -func (m *FilterTree) XXX_Size() int { - return m.Size() + +func (x *FilterTree) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FilterTree) XXX_DiscardUnknown() { - xxx_messageInfo_FilterTree.DiscardUnknown(m) + +func (*FilterTree) ProtoMessage() {} + +func (x *FilterTree) ProtoReflect() protoreflect.Message { + mi := &file_pb_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) } -var xxx_messageInfo_FilterTree proto.InternalMessageInfo +// Deprecated: Use FilterTree.ProtoReflect.Descriptor instead. +func (*FilterTree) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{37} +} -func (m *FilterTree) GetOp() string { - if m != nil { - return m.Op +func (x *FilterTree) GetOp() string { + if x != nil { + return x.Op } return "" } -func (m *FilterTree) GetChildren() []*FilterTree { - if m != nil { - return m.Children +func (x *FilterTree) GetChildren() []*FilterTree { + if x != nil { + return x.Children } return nil } -func (m *FilterTree) GetFunc() *Function { - if m != nil { - return m.Func +func (x *FilterTree) GetFunc() *Function { + if x != nil { + return x.Func } return nil } // Schema messages. type SchemaRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + GroupId uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` Predicates []string `protobuf:"bytes,2,rep,name=predicates,proto3" json:"predicates,omitempty"` // fields can be on of type, index, reverse or tokenizer @@ -3355,68 +3688,71 @@ type SchemaRequest struct { Types []string `protobuf:"bytes,4,rep,name=types,proto3" json:"types,omitempty"` } -func (m *SchemaRequest) Reset() { *m = SchemaRequest{} } -func (m *SchemaRequest) String() string { return proto.CompactTextString(m) } -func (*SchemaRequest) ProtoMessage() {} -func (*SchemaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{38} -} -func (m *SchemaRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SchemaRequest.Marshal(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 *SchemaRequest) Reset() { + *x = SchemaRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SchemaRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchemaRequest.Merge(m, src) -} -func (m *SchemaRequest) XXX_Size() int { - return m.Size() + +func (x *SchemaRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SchemaRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SchemaRequest.DiscardUnknown(m) + +func (*SchemaRequest) ProtoMessage() {} + +func (x *SchemaRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[38] + 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_SchemaRequest proto.InternalMessageInfo +// Deprecated: Use SchemaRequest.ProtoReflect.Descriptor instead. +func (*SchemaRequest) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{38} +} -func (m *SchemaRequest) GetGroupId() uint32 { - if m != nil { - return m.GroupId +func (x *SchemaRequest) GetGroupId() uint32 { + if x != nil { + return x.GroupId } return 0 } -func (m *SchemaRequest) GetPredicates() []string { - if m != nil { - return m.Predicates +func (x *SchemaRequest) GetPredicates() []string { + if x != nil { + return x.Predicates } return nil } -func (m *SchemaRequest) GetFields() []string { - if m != nil { - return m.Fields +func (x *SchemaRequest) GetFields() []string { + if x != nil { + return x.Fields } return nil } -func (m *SchemaRequest) GetTypes() []string { - if m != nil { - return m.Types +func (x *SchemaRequest) GetTypes() []string { + if x != nil { + return x.Types } return nil } type SchemaNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Predicate string `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Index bool `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` @@ -3431,169 +3767,176 @@ type SchemaNode struct { IndexSpecs []*VectorIndexSpec `protobuf:"bytes,12,rep,name=index_specs,json=indexSpecs,proto3" json:"index_specs,omitempty"` } -func (m *SchemaNode) Reset() { *m = SchemaNode{} } -func (m *SchemaNode) String() string { return proto.CompactTextString(m) } -func (*SchemaNode) ProtoMessage() {} -func (*SchemaNode) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{39} -} -func (m *SchemaNode) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SchemaNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SchemaNode.Marshal(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 *SchemaNode) Reset() { + *x = SchemaNode{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SchemaNode) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchemaNode.Merge(m, src) -} -func (m *SchemaNode) XXX_Size() int { - return m.Size() + +func (x *SchemaNode) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SchemaNode) XXX_DiscardUnknown() { - xxx_messageInfo_SchemaNode.DiscardUnknown(m) + +func (*SchemaNode) ProtoMessage() {} + +func (x *SchemaNode) ProtoReflect() protoreflect.Message { + mi := &file_pb_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 mi.MessageOf(x) } -var xxx_messageInfo_SchemaNode proto.InternalMessageInfo +// Deprecated: Use SchemaNode.ProtoReflect.Descriptor instead. +func (*SchemaNode) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{39} +} -func (m *SchemaNode) GetPredicate() string { - if m != nil { - return m.Predicate +func (x *SchemaNode) GetPredicate() string { + if x != nil { + return x.Predicate } return "" } -func (m *SchemaNode) GetType() string { - if m != nil { - return m.Type +func (x *SchemaNode) GetType() string { + if x != nil { + return x.Type } return "" } -func (m *SchemaNode) GetIndex() bool { - if m != nil { - return m.Index +func (x *SchemaNode) GetIndex() bool { + if x != nil { + return x.Index } return false } -func (m *SchemaNode) GetTokenizer() []string { - if m != nil { - return m.Tokenizer +func (x *SchemaNode) GetTokenizer() []string { + if x != nil { + return x.Tokenizer } return nil } -func (m *SchemaNode) GetReverse() bool { - if m != nil { - return m.Reverse +func (x *SchemaNode) GetReverse() bool { + if x != nil { + return x.Reverse } return false } -func (m *SchemaNode) GetCount() bool { - if m != nil { - return m.Count +func (x *SchemaNode) GetCount() bool { + if x != nil { + return x.Count } return false } -func (m *SchemaNode) GetList() bool { - if m != nil { - return m.List +func (x *SchemaNode) GetList() bool { + if x != nil { + return x.List } return false } -func (m *SchemaNode) GetUpsert() bool { - if m != nil { - return m.Upsert +func (x *SchemaNode) GetUpsert() bool { + if x != nil { + return x.Upsert } return false } -func (m *SchemaNode) GetLang() bool { - if m != nil { - return m.Lang +func (x *SchemaNode) GetLang() bool { + if x != nil { + return x.Lang } return false } -func (m *SchemaNode) GetNoConflict() bool { - if m != nil { - return m.NoConflict +func (x *SchemaNode) GetNoConflict() bool { + if x != nil { + return x.NoConflict } return false } -func (m *SchemaNode) GetUnique() bool { - if m != nil { - return m.Unique +func (x *SchemaNode) GetUnique() bool { + if x != nil { + return x.Unique } return false } -func (m *SchemaNode) GetIndexSpecs() []*VectorIndexSpec { - if m != nil { - return m.IndexSpecs +func (x *SchemaNode) GetIndexSpecs() []*VectorIndexSpec { + if x != nil { + return x.IndexSpecs } return nil } type SchemaResult struct { - Schema []*SchemaNode `protobuf:"bytes,1,rep,name=schema,proto3" json:"schema,omitempty"` // Deprecated: Do not use. + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Deprecated: Marked as deprecated in pb.proto. + Schema []*SchemaNode `protobuf:"bytes,1,rep,name=schema,proto3" json:"schema,omitempty"` } -func (m *SchemaResult) Reset() { *m = SchemaResult{} } -func (m *SchemaResult) String() string { return proto.CompactTextString(m) } -func (*SchemaResult) ProtoMessage() {} -func (*SchemaResult) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{40} -} -func (m *SchemaResult) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SchemaResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SchemaResult.Marshal(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 *SchemaResult) Reset() { + *x = SchemaResult{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SchemaResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchemaResult.Merge(m, src) -} -func (m *SchemaResult) XXX_Size() int { - return m.Size() + +func (x *SchemaResult) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SchemaResult) XXX_DiscardUnknown() { - xxx_messageInfo_SchemaResult.DiscardUnknown(m) + +func (*SchemaResult) ProtoMessage() {} + +func (x *SchemaResult) ProtoReflect() protoreflect.Message { + mi := &file_pb_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 mi.MessageOf(x) } -var xxx_messageInfo_SchemaResult proto.InternalMessageInfo +// Deprecated: Use SchemaResult.ProtoReflect.Descriptor instead. +func (*SchemaResult) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{40} +} -// Deprecated: Do not use. -func (m *SchemaResult) GetSchema() []*SchemaNode { - if m != nil { - return m.Schema +// Deprecated: Marked as deprecated in pb.proto. +func (x *SchemaResult) GetSchema() []*SchemaNode { + if x != nil { + return x.Schema } return nil } type SchemaUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Predicate string `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"` ValueType Posting_ValType `protobuf:"varint,2,opt,name=value_type,json=valueType,proto3,enum=pb.Posting_ValType" json:"value_type,omitempty"` Directive SchemaUpdate_Directive `protobuf:"varint,3,opt,name=directive,proto3,enum=pb.SchemaUpdate_Directive" json:"directive,omitempty"` @@ -3613,138 +3956,141 @@ type SchemaUpdate struct { IndexSpecs []*VectorIndexSpec `protobuf:"bytes,15,rep,name=index_specs,json=indexSpecs,proto3" json:"index_specs,omitempty"` } -func (m *SchemaUpdate) Reset() { *m = SchemaUpdate{} } -func (m *SchemaUpdate) String() string { return proto.CompactTextString(m) } -func (*SchemaUpdate) ProtoMessage() {} -func (*SchemaUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{41} -} -func (m *SchemaUpdate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SchemaUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SchemaUpdate.Marshal(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 *SchemaUpdate) Reset() { + *x = SchemaUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SchemaUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchemaUpdate.Merge(m, src) -} -func (m *SchemaUpdate) XXX_Size() int { - return m.Size() + +func (x *SchemaUpdate) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SchemaUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_SchemaUpdate.DiscardUnknown(m) + +func (*SchemaUpdate) ProtoMessage() {} + +func (x *SchemaUpdate) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[41] + 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_SchemaUpdate proto.InternalMessageInfo +// Deprecated: Use SchemaUpdate.ProtoReflect.Descriptor instead. +func (*SchemaUpdate) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{41} +} -func (m *SchemaUpdate) GetPredicate() string { - if m != nil { - return m.Predicate +func (x *SchemaUpdate) GetPredicate() string { + if x != nil { + return x.Predicate } return "" } -func (m *SchemaUpdate) GetValueType() Posting_ValType { - if m != nil { - return m.ValueType +func (x *SchemaUpdate) GetValueType() Posting_ValType { + if x != nil { + return x.ValueType } return Posting_DEFAULT } -func (m *SchemaUpdate) GetDirective() SchemaUpdate_Directive { - if m != nil { - return m.Directive +func (x *SchemaUpdate) GetDirective() SchemaUpdate_Directive { + if x != nil { + return x.Directive } return SchemaUpdate_NONE } -func (m *SchemaUpdate) GetTokenizer() []string { - if m != nil { - return m.Tokenizer +func (x *SchemaUpdate) GetTokenizer() []string { + if x != nil { + return x.Tokenizer } return nil } -func (m *SchemaUpdate) GetCount() bool { - if m != nil { - return m.Count +func (x *SchemaUpdate) GetCount() bool { + if x != nil { + return x.Count } return false } -func (m *SchemaUpdate) GetList() bool { - if m != nil { - return m.List +func (x *SchemaUpdate) GetList() bool { + if x != nil { + return x.List } return false } -func (m *SchemaUpdate) GetUpsert() bool { - if m != nil { - return m.Upsert +func (x *SchemaUpdate) GetUpsert() bool { + if x != nil { + return x.Upsert } return false } -func (m *SchemaUpdate) GetLang() bool { - if m != nil { - return m.Lang +func (x *SchemaUpdate) GetLang() bool { + if x != nil { + return x.Lang } return false } -func (m *SchemaUpdate) GetUnique() bool { - if m != nil { - return m.Unique +func (x *SchemaUpdate) GetUnique() bool { + if x != nil { + return x.Unique } return false } -func (m *SchemaUpdate) GetNonNullable() bool { - if m != nil { - return m.NonNullable +func (x *SchemaUpdate) GetNonNullable() bool { + if x != nil { + return x.NonNullable } return false } -func (m *SchemaUpdate) GetNonNullableList() bool { - if m != nil { - return m.NonNullableList +func (x *SchemaUpdate) GetNonNullableList() bool { + if x != nil { + return x.NonNullableList } return false } -func (m *SchemaUpdate) GetObjectTypeName() string { - if m != nil { - return m.ObjectTypeName +func (x *SchemaUpdate) GetObjectTypeName() string { + if x != nil { + return x.ObjectTypeName } return "" } -func (m *SchemaUpdate) GetNoConflict() bool { - if m != nil { - return m.NoConflict +func (x *SchemaUpdate) GetNoConflict() bool { + if x != nil { + return x.NoConflict } return false } -func (m *SchemaUpdate) GetIndexSpecs() []*VectorIndexSpec { - if m != nil { - return m.IndexSpecs +func (x *SchemaUpdate) GetIndexSpecs() []*VectorIndexSpec { + if x != nil { + return x.IndexSpecs } return nil } type VectorIndexSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // This names the kind of Vector Index, e.g., // // hnsw, lsh, hypertree, ... @@ -3752,202 +4098,214 @@ type VectorIndexSpec struct { Options []*OptionPair `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"` } -func (m *VectorIndexSpec) Reset() { *m = VectorIndexSpec{} } -func (m *VectorIndexSpec) String() string { return proto.CompactTextString(m) } -func (*VectorIndexSpec) ProtoMessage() {} -func (*VectorIndexSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{42} -} -func (m *VectorIndexSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VectorIndexSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VectorIndexSpec.Marshal(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 *VectorIndexSpec) Reset() { + *x = VectorIndexSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *VectorIndexSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_VectorIndexSpec.Merge(m, src) -} -func (m *VectorIndexSpec) XXX_Size() int { - return m.Size() + +func (x *VectorIndexSpec) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VectorIndexSpec) XXX_DiscardUnknown() { - xxx_messageInfo_VectorIndexSpec.DiscardUnknown(m) + +func (*VectorIndexSpec) ProtoMessage() {} + +func (x *VectorIndexSpec) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[42] + 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_VectorIndexSpec proto.InternalMessageInfo +// Deprecated: Use VectorIndexSpec.ProtoReflect.Descriptor instead. +func (*VectorIndexSpec) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{42} +} -func (m *VectorIndexSpec) GetName() string { - if m != nil { - return m.Name +func (x *VectorIndexSpec) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *VectorIndexSpec) GetOptions() []*OptionPair { - if m != nil { - return m.Options +func (x *VectorIndexSpec) GetOptions() []*OptionPair { + if x != nil { + return x.Options } return nil } type OptionPair struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -func (m *OptionPair) Reset() { *m = OptionPair{} } -func (m *OptionPair) String() string { return proto.CompactTextString(m) } -func (*OptionPair) ProtoMessage() {} -func (*OptionPair) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{43} -} -func (m *OptionPair) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OptionPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OptionPair.Marshal(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 *OptionPair) Reset() { + *x = OptionPair{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *OptionPair) XXX_Merge(src proto.Message) { - xxx_messageInfo_OptionPair.Merge(m, src) -} -func (m *OptionPair) XXX_Size() int { - return m.Size() + +func (x *OptionPair) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *OptionPair) XXX_DiscardUnknown() { - xxx_messageInfo_OptionPair.DiscardUnknown(m) + +func (*OptionPair) ProtoMessage() {} + +func (x *OptionPair) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[43] + 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_OptionPair proto.InternalMessageInfo +// Deprecated: Use OptionPair.ProtoReflect.Descriptor instead. +func (*OptionPair) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{43} +} -func (m *OptionPair) GetKey() string { - if m != nil { - return m.Key +func (x *OptionPair) GetKey() string { + if x != nil { + return x.Key } return "" } -func (m *OptionPair) GetValue() string { - if m != nil { - return m.Value +func (x *OptionPair) GetValue() string { + if x != nil { + return x.Value } return "" } type TypeUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` Fields []*SchemaUpdate `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` } -func (m *TypeUpdate) Reset() { *m = TypeUpdate{} } -func (m *TypeUpdate) String() string { return proto.CompactTextString(m) } -func (*TypeUpdate) ProtoMessage() {} -func (*TypeUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{44} -} -func (m *TypeUpdate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TypeUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TypeUpdate.Marshal(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 *TypeUpdate) Reset() { + *x = TypeUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TypeUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_TypeUpdate.Merge(m, src) -} -func (m *TypeUpdate) XXX_Size() int { - return m.Size() + +func (x *TypeUpdate) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TypeUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_TypeUpdate.DiscardUnknown(m) + +func (*TypeUpdate) ProtoMessage() {} + +func (x *TypeUpdate) ProtoReflect() protoreflect.Message { + mi := &file_pb_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 mi.MessageOf(x) } -var xxx_messageInfo_TypeUpdate proto.InternalMessageInfo +// Deprecated: Use TypeUpdate.ProtoReflect.Descriptor instead. +func (*TypeUpdate) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{44} +} -func (m *TypeUpdate) GetTypeName() string { - if m != nil { - return m.TypeName +func (x *TypeUpdate) GetTypeName() string { + if x != nil { + return x.TypeName } return "" } -func (m *TypeUpdate) GetFields() []*SchemaUpdate { - if m != nil { - return m.Fields +func (x *TypeUpdate) GetFields() []*SchemaUpdate { + if x != nil { + return x.Fields } return nil } type MapHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + PartitionKeys [][]byte `protobuf:"bytes,1,rep,name=partition_keys,json=partitionKeys,proto3" json:"partition_keys,omitempty"` } -func (m *MapHeader) Reset() { *m = MapHeader{} } -func (m *MapHeader) String() string { return proto.CompactTextString(m) } -func (*MapHeader) ProtoMessage() {} -func (*MapHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{45} -} -func (m *MapHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MapHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MapHeader.Marshal(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 *MapHeader) Reset() { + *x = MapHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *MapHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_MapHeader.Merge(m, src) -} -func (m *MapHeader) XXX_Size() int { - return m.Size() + +func (x *MapHeader) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MapHeader) XXX_DiscardUnknown() { - xxx_messageInfo_MapHeader.DiscardUnknown(m) + +func (*MapHeader) ProtoMessage() {} + +func (x *MapHeader) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[45] + 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_MapHeader proto.InternalMessageInfo +// Deprecated: Use MapHeader.ProtoReflect.Descriptor instead. +func (*MapHeader) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{45} +} -func (m *MapHeader) GetPartitionKeys() [][]byte { - if m != nil { - return m.PartitionKeys +func (x *MapHeader) GetPartitionKeys() [][]byte { + if x != nil { + return x.PartitionKeys } return nil } type MovePredicatePayload struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Predicate string `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"` SourceGid uint32 `protobuf:"varint,2,opt,name=source_gid,json=sourceGid,proto3" json:"source_gid,omitempty"` DestGid uint32 `protobuf:"varint,3,opt,name=dest_gid,json=destGid,proto3" json:"dest_gid,omitempty"` @@ -3955,861 +4313,905 @@ type MovePredicatePayload struct { ExpectedChecksum uint64 `protobuf:"varint,5,opt,name=expected_checksum,json=expectedChecksum,proto3" json:"expected_checksum,omitempty"` } -func (m *MovePredicatePayload) Reset() { *m = MovePredicatePayload{} } -func (m *MovePredicatePayload) String() string { return proto.CompactTextString(m) } -func (*MovePredicatePayload) ProtoMessage() {} -func (*MovePredicatePayload) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{46} -} -func (m *MovePredicatePayload) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MovePredicatePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MovePredicatePayload.Marshal(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 *MovePredicatePayload) Reset() { + *x = MovePredicatePayload{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *MovePredicatePayload) XXX_Merge(src proto.Message) { - xxx_messageInfo_MovePredicatePayload.Merge(m, src) -} -func (m *MovePredicatePayload) XXX_Size() int { - return m.Size() + +func (x *MovePredicatePayload) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MovePredicatePayload) XXX_DiscardUnknown() { - xxx_messageInfo_MovePredicatePayload.DiscardUnknown(m) + +func (*MovePredicatePayload) ProtoMessage() {} + +func (x *MovePredicatePayload) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[46] + 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_MovePredicatePayload proto.InternalMessageInfo +// Deprecated: Use MovePredicatePayload.ProtoReflect.Descriptor instead. +func (*MovePredicatePayload) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{46} +} -func (m *MovePredicatePayload) GetPredicate() string { - if m != nil { - return m.Predicate +func (x *MovePredicatePayload) GetPredicate() string { + if x != nil { + return x.Predicate } return "" } -func (m *MovePredicatePayload) GetSourceGid() uint32 { - if m != nil { - return m.SourceGid +func (x *MovePredicatePayload) GetSourceGid() uint32 { + if x != nil { + return x.SourceGid } return 0 } -func (m *MovePredicatePayload) GetDestGid() uint32 { - if m != nil { - return m.DestGid +func (x *MovePredicatePayload) GetDestGid() uint32 { + if x != nil { + return x.DestGid } return 0 } -func (m *MovePredicatePayload) GetTxnTs() uint64 { - if m != nil { - return m.TxnTs +func (x *MovePredicatePayload) GetTxnTs() uint64 { + if x != nil { + return x.TxnTs } return 0 } -func (m *MovePredicatePayload) GetExpectedChecksum() uint64 { - if m != nil { - return m.ExpectedChecksum +func (x *MovePredicatePayload) GetExpectedChecksum() uint64 { + if x != nil { + return x.ExpectedChecksum } return 0 } type TxnStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` CommitTs uint64 `protobuf:"varint,2,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` } -func (m *TxnStatus) Reset() { *m = TxnStatus{} } -func (m *TxnStatus) String() string { return proto.CompactTextString(m) } -func (*TxnStatus) ProtoMessage() {} -func (*TxnStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{47} -} -func (m *TxnStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TxnStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TxnStatus.Marshal(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 *TxnStatus) Reset() { + *x = TxnStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TxnStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxnStatus.Merge(m, src) -} -func (m *TxnStatus) XXX_Size() int { - return m.Size() + +func (x *TxnStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TxnStatus) XXX_DiscardUnknown() { - xxx_messageInfo_TxnStatus.DiscardUnknown(m) + +func (*TxnStatus) ProtoMessage() {} + +func (x *TxnStatus) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[47] + 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_TxnStatus proto.InternalMessageInfo +// Deprecated: Use TxnStatus.ProtoReflect.Descriptor instead. +func (*TxnStatus) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{47} +} -func (m *TxnStatus) GetStartTs() uint64 { - if m != nil { - return m.StartTs +func (x *TxnStatus) GetStartTs() uint64 { + if x != nil { + return x.StartTs } return 0 } -func (m *TxnStatus) GetCommitTs() uint64 { - if m != nil { - return m.CommitTs +func (x *TxnStatus) GetCommitTs() uint64 { + if x != nil { + return x.CommitTs } return 0 } type OracleDelta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Txns []*TxnStatus `protobuf:"bytes,1,rep,name=txns,proto3" json:"txns,omitempty"` MaxAssigned uint64 `protobuf:"varint,2,opt,name=max_assigned,json=maxAssigned,proto3" json:"max_assigned,omitempty"` - GroupChecksums map[uint32]uint64 `protobuf:"bytes,3,rep,name=group_checksums,json=groupChecksums,proto3" json:"group_checksums,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + GroupChecksums map[uint32]uint64 `protobuf:"bytes,3,rep,name=group_checksums,json=groupChecksums,proto3" json:"group_checksums,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // implement tmax. } -func (m *OracleDelta) Reset() { *m = OracleDelta{} } -func (m *OracleDelta) String() string { return proto.CompactTextString(m) } -func (*OracleDelta) ProtoMessage() {} -func (*OracleDelta) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{48} -} -func (m *OracleDelta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OracleDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OracleDelta.Marshal(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 *OracleDelta) Reset() { + *x = OracleDelta{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *OracleDelta) XXX_Merge(src proto.Message) { - xxx_messageInfo_OracleDelta.Merge(m, src) -} -func (m *OracleDelta) XXX_Size() int { - return m.Size() + +func (x *OracleDelta) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *OracleDelta) XXX_DiscardUnknown() { - xxx_messageInfo_OracleDelta.DiscardUnknown(m) + +func (*OracleDelta) ProtoMessage() {} + +func (x *OracleDelta) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[48] + 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_OracleDelta proto.InternalMessageInfo +// Deprecated: Use OracleDelta.ProtoReflect.Descriptor instead. +func (*OracleDelta) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{48} +} -func (m *OracleDelta) GetTxns() []*TxnStatus { - if m != nil { - return m.Txns +func (x *OracleDelta) GetTxns() []*TxnStatus { + if x != nil { + return x.Txns } return nil } -func (m *OracleDelta) GetMaxAssigned() uint64 { - if m != nil { - return m.MaxAssigned +func (x *OracleDelta) GetMaxAssigned() uint64 { + if x != nil { + return x.MaxAssigned } return 0 } -func (m *OracleDelta) GetGroupChecksums() map[uint32]uint64 { - if m != nil { - return m.GroupChecksums +func (x *OracleDelta) GetGroupChecksums() map[uint32]uint64 { + if x != nil { + return x.GroupChecksums } return nil } type TxnTimestamps struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Ts []uint64 `protobuf:"varint,1,rep,packed,name=ts,proto3" json:"ts,omitempty"` } -func (m *TxnTimestamps) Reset() { *m = TxnTimestamps{} } -func (m *TxnTimestamps) String() string { return proto.CompactTextString(m) } -func (*TxnTimestamps) ProtoMessage() {} -func (*TxnTimestamps) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{49} -} -func (m *TxnTimestamps) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TxnTimestamps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TxnTimestamps.Marshal(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 *TxnTimestamps) Reset() { + *x = TxnTimestamps{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TxnTimestamps) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxnTimestamps.Merge(m, src) -} -func (m *TxnTimestamps) XXX_Size() int { - return m.Size() + +func (x *TxnTimestamps) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TxnTimestamps) XXX_DiscardUnknown() { - xxx_messageInfo_TxnTimestamps.DiscardUnknown(m) + +func (*TxnTimestamps) ProtoMessage() {} + +func (x *TxnTimestamps) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[49] + 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_TxnTimestamps proto.InternalMessageInfo +// Deprecated: Use TxnTimestamps.ProtoReflect.Descriptor instead. +func (*TxnTimestamps) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{49} +} -func (m *TxnTimestamps) GetTs() []uint64 { - if m != nil { - return m.Ts +func (x *TxnTimestamps) GetTs() []uint64 { + if x != nil { + return x.Ts } return nil } type PeerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` } -func (m *PeerResponse) Reset() { *m = PeerResponse{} } -func (m *PeerResponse) String() string { return proto.CompactTextString(m) } -func (*PeerResponse) ProtoMessage() {} -func (*PeerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{50} -} -func (m *PeerResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PeerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PeerResponse.Marshal(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 *PeerResponse) Reset() { + *x = PeerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PeerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerResponse.Merge(m, src) -} -func (m *PeerResponse) XXX_Size() int { - return m.Size() + +func (x *PeerResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PeerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PeerResponse.DiscardUnknown(m) + +func (*PeerResponse) ProtoMessage() {} + +func (x *PeerResponse) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[50] + 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_PeerResponse proto.InternalMessageInfo +// Deprecated: Use PeerResponse.ProtoReflect.Descriptor instead. +func (*PeerResponse) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{50} +} -func (m *PeerResponse) GetStatus() bool { - if m != nil { - return m.Status +func (x *PeerResponse) GetStatus() bool { + if x != nil { + return x.Status } return false } type RaftBatch struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Context *RaftContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` Payload *api.Payload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` } -func (m *RaftBatch) Reset() { *m = RaftBatch{} } -func (m *RaftBatch) String() string { return proto.CompactTextString(m) } -func (*RaftBatch) ProtoMessage() {} -func (*RaftBatch) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{51} -} -func (m *RaftBatch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RaftBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RaftBatch.Marshal(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 *RaftBatch) Reset() { + *x = RaftBatch{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RaftBatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftBatch.Merge(m, src) -} -func (m *RaftBatch) XXX_Size() int { - return m.Size() + +func (x *RaftBatch) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RaftBatch) XXX_DiscardUnknown() { - xxx_messageInfo_RaftBatch.DiscardUnknown(m) + +func (*RaftBatch) ProtoMessage() {} + +func (x *RaftBatch) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[51] + 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_RaftBatch proto.InternalMessageInfo +// Deprecated: Use RaftBatch.ProtoReflect.Descriptor instead. +func (*RaftBatch) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{51} +} -func (m *RaftBatch) GetContext() *RaftContext { - if m != nil { - return m.Context +func (x *RaftBatch) GetContext() *RaftContext { + if x != nil { + return x.Context } return nil } -func (m *RaftBatch) GetPayload() *api.Payload { - if m != nil { - return m.Payload +func (x *RaftBatch) GetPayload() *api.Payload { + if x != nil { + return x.Payload } return nil } type TabletResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Tablets []*Tablet `protobuf:"bytes,1,rep,name=tablets,proto3" json:"tablets,omitempty"` } -func (m *TabletResponse) Reset() { *m = TabletResponse{} } -func (m *TabletResponse) String() string { return proto.CompactTextString(m) } -func (*TabletResponse) ProtoMessage() {} -func (*TabletResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{52} -} -func (m *TabletResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TabletResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TabletResponse.Marshal(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 *TabletResponse) Reset() { + *x = TabletResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TabletResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TabletResponse.Merge(m, src) -} -func (m *TabletResponse) XXX_Size() int { - return m.Size() + +func (x *TabletResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TabletResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TabletResponse.DiscardUnknown(m) + +func (*TabletResponse) ProtoMessage() {} + +func (x *TabletResponse) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[52] + 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_TabletResponse proto.InternalMessageInfo +// Deprecated: Use TabletResponse.ProtoReflect.Descriptor instead. +func (*TabletResponse) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{52} +} -func (m *TabletResponse) GetTablets() []*Tablet { - if m != nil { - return m.Tablets +func (x *TabletResponse) GetTablets() []*Tablet { + if x != nil { + return x.Tablets } return nil } type TabletRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Tablets []*Tablet `protobuf:"bytes,1,rep,name=tablets,proto3" json:"tablets,omitempty"` - GroupId uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"groupId,omitempty"` + GroupId uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` } -func (m *TabletRequest) Reset() { *m = TabletRequest{} } -func (m *TabletRequest) String() string { return proto.CompactTextString(m) } -func (*TabletRequest) ProtoMessage() {} -func (*TabletRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{53} -} -func (m *TabletRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TabletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TabletRequest.Marshal(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 *TabletRequest) Reset() { + *x = TabletRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TabletRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TabletRequest.Merge(m, src) -} -func (m *TabletRequest) XXX_Size() int { - return m.Size() + +func (x *TabletRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TabletRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TabletRequest.DiscardUnknown(m) + +func (*TabletRequest) ProtoMessage() {} + +func (x *TabletRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[53] + 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_TabletRequest proto.InternalMessageInfo +// Deprecated: Use TabletRequest.ProtoReflect.Descriptor instead. +func (*TabletRequest) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{53} +} -func (m *TabletRequest) GetTablets() []*Tablet { - if m != nil { - return m.Tablets +func (x *TabletRequest) GetTablets() []*Tablet { + if x != nil { + return x.Tablets } return nil } -func (m *TabletRequest) GetGroupId() uint32 { - if m != nil { - return m.GroupId +func (x *TabletRequest) GetGroupId() uint32 { + if x != nil { + return x.GroupId } return 0 } type SubscriptionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Prefixes [][]byte `protobuf:"bytes,1,rep,name=prefixes,proto3" json:"prefixes,omitempty"` Matches []*pb.Match `protobuf:"bytes,2,rep,name=matches,proto3" json:"matches,omitempty"` } -func (m *SubscriptionRequest) Reset() { *m = SubscriptionRequest{} } -func (m *SubscriptionRequest) String() string { return proto.CompactTextString(m) } -func (*SubscriptionRequest) ProtoMessage() {} -func (*SubscriptionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{54} -} -func (m *SubscriptionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SubscriptionRequest.Marshal(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 *SubscriptionRequest) Reset() { + *x = SubscriptionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SubscriptionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubscriptionRequest.Merge(m, src) -} -func (m *SubscriptionRequest) XXX_Size() int { - return m.Size() + +func (x *SubscriptionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SubscriptionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SubscriptionRequest.DiscardUnknown(m) + +func (*SubscriptionRequest) ProtoMessage() {} + +func (x *SubscriptionRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[54] + 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_SubscriptionRequest proto.InternalMessageInfo +// Deprecated: Use SubscriptionRequest.ProtoReflect.Descriptor instead. +func (*SubscriptionRequest) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{54} +} -func (m *SubscriptionRequest) GetPrefixes() [][]byte { - if m != nil { - return m.Prefixes +func (x *SubscriptionRequest) GetPrefixes() [][]byte { + if x != nil { + return x.Prefixes } return nil } -func (m *SubscriptionRequest) GetMatches() []*pb.Match { - if m != nil { - return m.Matches +func (x *SubscriptionRequest) GetMatches() []*pb.Match { + if x != nil { + return x.Matches } return nil } type SubscriptionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Kvs *pb.KVList `protobuf:"bytes,1,opt,name=kvs,proto3" json:"kvs,omitempty"` } -func (m *SubscriptionResponse) Reset() { *m = SubscriptionResponse{} } -func (m *SubscriptionResponse) String() string { return proto.CompactTextString(m) } -func (*SubscriptionResponse) ProtoMessage() {} -func (*SubscriptionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{55} -} -func (m *SubscriptionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SubscriptionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SubscriptionResponse.Marshal(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 *SubscriptionResponse) Reset() { + *x = SubscriptionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SubscriptionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubscriptionResponse.Merge(m, src) -} -func (m *SubscriptionResponse) XXX_Size() int { - return m.Size() + +func (x *SubscriptionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SubscriptionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SubscriptionResponse.DiscardUnknown(m) + +func (*SubscriptionResponse) ProtoMessage() {} + +func (x *SubscriptionResponse) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[55] + 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_SubscriptionResponse proto.InternalMessageInfo +// Deprecated: Use SubscriptionResponse.ProtoReflect.Descriptor instead. +func (*SubscriptionResponse) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{55} +} -func (m *SubscriptionResponse) GetKvs() *pb.KVList { - if m != nil { - return m.Kvs +func (x *SubscriptionResponse) GetKvs() *pb.KVList { + if x != nil { + return x.Kvs } return nil } type Num struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Val uint64 `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"` ReadOnly bool `protobuf:"varint,2,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` - Forwarded bool `protobuf:"varint,3,opt,name=forwarded,proto3" json:"forwarded,omitempty"` + Forwarded bool `protobuf:"varint,3,opt,name=forwarded,proto3" json:"forwarded,omitempty"` // True if this request was forwarded by a peer. // If bump is set to true then we bump the lease to val. If false, we assign new ids with count // equal to val. Bump bool `protobuf:"varint,5,opt,name=bump,proto3" json:"bump,omitempty"` Type NumLeaseType `protobuf:"varint,4,opt,name=type,proto3,enum=pb.NumLeaseType" json:"type,omitempty"` } -func (m *Num) Reset() { *m = Num{} } -func (m *Num) String() string { return proto.CompactTextString(m) } -func (*Num) ProtoMessage() {} -func (*Num) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{56} -} -func (m *Num) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Num) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Num.Marshal(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 *Num) Reset() { + *x = Num{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Num) XXX_Merge(src proto.Message) { - xxx_messageInfo_Num.Merge(m, src) -} -func (m *Num) XXX_Size() int { - return m.Size() + +func (x *Num) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Num) XXX_DiscardUnknown() { - xxx_messageInfo_Num.DiscardUnknown(m) + +func (*Num) ProtoMessage() {} + +func (x *Num) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[56] + 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_Num proto.InternalMessageInfo +// Deprecated: Use Num.ProtoReflect.Descriptor instead. +func (*Num) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{56} +} -func (m *Num) GetVal() uint64 { - if m != nil { - return m.Val +func (x *Num) GetVal() uint64 { + if x != nil { + return x.Val } return 0 } -func (m *Num) GetReadOnly() bool { - if m != nil { - return m.ReadOnly +func (x *Num) GetReadOnly() bool { + if x != nil { + return x.ReadOnly } return false } -func (m *Num) GetForwarded() bool { - if m != nil { - return m.Forwarded +func (x *Num) GetForwarded() bool { + if x != nil { + return x.Forwarded } return false } -func (m *Num) GetBump() bool { - if m != nil { - return m.Bump +func (x *Num) GetBump() bool { + if x != nil { + return x.Bump } return false } -func (m *Num) GetType() NumLeaseType { - if m != nil { - return m.Type +func (x *Num) GetType() NumLeaseType { + if x != nil { + return x.Type } return Num_NS_ID } type AssignedIds struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + StartId uint64 `protobuf:"varint,1,opt,name=startId,proto3" json:"startId,omitempty"` EndId uint64 `protobuf:"varint,2,opt,name=endId,proto3" json:"endId,omitempty"` // The following is used for read only transactions. ReadOnly uint64 `protobuf:"varint,5,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` } -func (m *AssignedIds) Reset() { *m = AssignedIds{} } -func (m *AssignedIds) String() string { return proto.CompactTextString(m) } -func (*AssignedIds) ProtoMessage() {} -func (*AssignedIds) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{57} -} -func (m *AssignedIds) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AssignedIds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AssignedIds.Marshal(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 *AssignedIds) Reset() { + *x = AssignedIds{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *AssignedIds) XXX_Merge(src proto.Message) { - xxx_messageInfo_AssignedIds.Merge(m, src) -} -func (m *AssignedIds) XXX_Size() int { - return m.Size() + +func (x *AssignedIds) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AssignedIds) XXX_DiscardUnknown() { - xxx_messageInfo_AssignedIds.DiscardUnknown(m) + +func (*AssignedIds) ProtoMessage() {} + +func (x *AssignedIds) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[57] + 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_AssignedIds proto.InternalMessageInfo +// Deprecated: Use AssignedIds.ProtoReflect.Descriptor instead. +func (*AssignedIds) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{57} +} -func (m *AssignedIds) GetStartId() uint64 { - if m != nil { - return m.StartId +func (x *AssignedIds) GetStartId() uint64 { + if x != nil { + return x.StartId } return 0 } -func (m *AssignedIds) GetEndId() uint64 { - if m != nil { - return m.EndId +func (x *AssignedIds) GetEndId() uint64 { + if x != nil { + return x.EndId } return 0 } -func (m *AssignedIds) GetReadOnly() uint64 { - if m != nil { - return m.ReadOnly +func (x *AssignedIds) GetReadOnly() uint64 { + if x != nil { + return x.ReadOnly } return 0 } type RemoveNodeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + NodeId uint64 `protobuf:"varint,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"` GroupId uint32 `protobuf:"varint,2,opt,name=groupId,proto3" json:"groupId,omitempty"` } -func (m *RemoveNodeRequest) Reset() { *m = RemoveNodeRequest{} } -func (m *RemoveNodeRequest) String() string { return proto.CompactTextString(m) } -func (*RemoveNodeRequest) ProtoMessage() {} -func (*RemoveNodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{58} -} -func (m *RemoveNodeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoveNodeRequest.Marshal(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 *RemoveNodeRequest) Reset() { + *x = RemoveNodeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RemoveNodeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveNodeRequest.Merge(m, src) -} -func (m *RemoveNodeRequest) XXX_Size() int { - return m.Size() + +func (x *RemoveNodeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RemoveNodeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveNodeRequest.DiscardUnknown(m) + +func (*RemoveNodeRequest) ProtoMessage() {} + +func (x *RemoveNodeRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[58] + 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_RemoveNodeRequest proto.InternalMessageInfo +// Deprecated: Use RemoveNodeRequest.ProtoReflect.Descriptor instead. +func (*RemoveNodeRequest) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{58} +} -func (m *RemoveNodeRequest) GetNodeId() uint64 { - if m != nil { - return m.NodeId +func (x *RemoveNodeRequest) GetNodeId() uint64 { + if x != nil { + return x.NodeId } return 0 } -func (m *RemoveNodeRequest) GetGroupId() uint32 { - if m != nil { - return m.GroupId +func (x *RemoveNodeRequest) GetGroupId() uint32 { + if x != nil { + return x.GroupId } return 0 } type MoveTabletRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Namespace uint64 `protobuf:"varint,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Tablet string `protobuf:"bytes,2,opt,name=tablet,proto3" json:"tablet,omitempty"` DstGroup uint32 `protobuf:"varint,3,opt,name=dstGroup,proto3" json:"dstGroup,omitempty"` } -func (m *MoveTabletRequest) Reset() { *m = MoveTabletRequest{} } -func (m *MoveTabletRequest) String() string { return proto.CompactTextString(m) } -func (*MoveTabletRequest) ProtoMessage() {} -func (*MoveTabletRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{59} -} -func (m *MoveTabletRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MoveTabletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MoveTabletRequest.Marshal(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 *MoveTabletRequest) Reset() { + *x = MoveTabletRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *MoveTabletRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MoveTabletRequest.Merge(m, src) -} -func (m *MoveTabletRequest) XXX_Size() int { - return m.Size() -} -func (m *MoveTabletRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MoveTabletRequest.DiscardUnknown(m) + +func (x *MoveTabletRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_MoveTabletRequest proto.InternalMessageInfo +func (*MoveTabletRequest) ProtoMessage() {} -func (m *MoveTabletRequest) GetNamespace() uint64 { - if m != nil { - return m.Namespace +func (x *MoveTabletRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[59] + 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 *MoveTabletRequest) GetTablet() string { - if m != nil { - return m.Tablet +// Deprecated: Use MoveTabletRequest.ProtoReflect.Descriptor instead. +func (*MoveTabletRequest) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{59} +} + +func (x *MoveTabletRequest) GetNamespace() uint64 { + if x != nil { + return x.Namespace + } + return 0 +} + +func (x *MoveTabletRequest) GetTablet() string { + if x != nil { + return x.Tablet } return "" } -func (m *MoveTabletRequest) GetDstGroup() uint32 { - if m != nil { - return m.DstGroup +func (x *MoveTabletRequest) GetDstGroup() uint32 { + if x != nil { + return x.DstGroup } return 0 } type ApplyLicenseRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + License []byte `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty"` } -func (m *ApplyLicenseRequest) Reset() { *m = ApplyLicenseRequest{} } -func (m *ApplyLicenseRequest) String() string { return proto.CompactTextString(m) } -func (*ApplyLicenseRequest) ProtoMessage() {} -func (*ApplyLicenseRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{60} -} -func (m *ApplyLicenseRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ApplyLicenseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ApplyLicenseRequest.Marshal(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 *ApplyLicenseRequest) Reset() { + *x = ApplyLicenseRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ApplyLicenseRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplyLicenseRequest.Merge(m, src) -} -func (m *ApplyLicenseRequest) XXX_Size() int { - return m.Size() + +func (x *ApplyLicenseRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ApplyLicenseRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ApplyLicenseRequest.DiscardUnknown(m) + +func (*ApplyLicenseRequest) ProtoMessage() {} + +func (x *ApplyLicenseRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[60] + 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_ApplyLicenseRequest proto.InternalMessageInfo +// Deprecated: Use ApplyLicenseRequest.ProtoReflect.Descriptor instead. +func (*ApplyLicenseRequest) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{60} +} -func (m *ApplyLicenseRequest) GetLicense() []byte { - if m != nil { - return m.License +func (x *ApplyLicenseRequest) GetLicense() []byte { + if x != nil { + return x.License } return nil } type SnapshotMeta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ClientTs uint64 `protobuf:"varint,1,opt,name=client_ts,json=clientTs,proto3" json:"client_ts,omitempty"` GroupId uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` } -func (m *SnapshotMeta) Reset() { *m = SnapshotMeta{} } -func (m *SnapshotMeta) String() string { return proto.CompactTextString(m) } -func (*SnapshotMeta) ProtoMessage() {} -func (*SnapshotMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{61} -} -func (m *SnapshotMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SnapshotMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SnapshotMeta.Marshal(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 *SnapshotMeta) Reset() { + *x = SnapshotMeta{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SnapshotMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_SnapshotMeta.Merge(m, src) -} -func (m *SnapshotMeta) XXX_Size() int { - return m.Size() + +func (x *SnapshotMeta) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SnapshotMeta) XXX_DiscardUnknown() { - xxx_messageInfo_SnapshotMeta.DiscardUnknown(m) + +func (*SnapshotMeta) ProtoMessage() {} + +func (x *SnapshotMeta) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[61] + 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_SnapshotMeta proto.InternalMessageInfo +// Deprecated: Use SnapshotMeta.ProtoReflect.Descriptor instead. +func (*SnapshotMeta) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{61} +} -func (m *SnapshotMeta) GetClientTs() uint64 { - if m != nil { - return m.ClientTs +func (x *SnapshotMeta) GetClientTs() uint64 { + if x != nil { + return x.ClientTs } return 0 } -func (m *SnapshotMeta) GetGroupId() uint32 { - if m != nil { - return m.GroupId +func (x *SnapshotMeta) GetGroupId() uint32 { + if x != nil { + return x.GroupId } return 0 } @@ -4817,53 +5219,56 @@ func (m *SnapshotMeta) GetGroupId() uint32 { // Status describes a general status response. // code: 0 = success, 0 != failure. type Status struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` } -func (m *Status) Reset() { *m = Status{} } -func (m *Status) String() string { return proto.CompactTextString(m) } -func (*Status) ProtoMessage() {} -func (*Status) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{62} -} -func (m *Status) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Status.Marshal(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 *Status) Reset() { + *x = Status{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Status) XXX_Merge(src proto.Message) { - xxx_messageInfo_Status.Merge(m, src) -} -func (m *Status) XXX_Size() int { - return m.Size() + +func (x *Status) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Status) XXX_DiscardUnknown() { - xxx_messageInfo_Status.DiscardUnknown(m) + +func (*Status) ProtoMessage() {} + +func (x *Status) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[62] + 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_Status proto.InternalMessageInfo +// Deprecated: Use Status.ProtoReflect.Descriptor instead. +func (*Status) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{62} +} -func (m *Status) GetCode() int32 { - if m != nil { - return m.Code +func (x *Status) GetCode() int32 { + if x != nil { + return x.Code } return 0 } -func (m *Status) GetMsg() string { - if m != nil { - return m.Msg +func (x *Status) GetMsg() string { + if x != nil { + return x.Msg } return "" } @@ -4873,14 +5278,18 @@ func (m *Status) GetMsg() string { // the since_ts of the second backup. // Incremental backups can be disabled using the force_full field. type BackupRequest struct { - ReadTs uint64 `protobuf:"varint,1,opt,name=read_ts,json=readTs,proto3" json:"read_ts,omitempty"` - SinceTs uint64 `protobuf:"varint,2,opt,name=since_ts,json=sinceTs,proto3" json:"since_ts,omitempty"` - GroupId uint32 `protobuf:"varint,3,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - UnixTs string `protobuf:"bytes,4,opt,name=unix_ts,json=unixTs,proto3" json:"unix_ts,omitempty"` - Destination string `protobuf:"bytes,5,opt,name=destination,proto3" json:"destination,omitempty"` - AccessKey string `protobuf:"bytes,6,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` - SecretKey Sensitive `protobuf:"bytes,7,opt,name=secret_key,json=secretKey,proto3,customtype=Sensitive" json:"secret_key"` - SessionToken Sensitive `protobuf:"bytes,8,opt,name=session_token,json=sessionToken,proto3,customtype=Sensitive" json:"session_token"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ReadTs uint64 `protobuf:"varint,1,opt,name=read_ts,json=readTs,proto3" json:"read_ts,omitempty"` + SinceTs uint64 `protobuf:"varint,2,opt,name=since_ts,json=sinceTs,proto3" json:"since_ts,omitempty"` + GroupId uint32 `protobuf:"varint,3,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` + UnixTs string `protobuf:"bytes,4,opt,name=unix_ts,json=unixTs,proto3" json:"unix_ts,omitempty"` + Destination string `protobuf:"bytes,5,opt,name=destination,proto3" json:"destination,omitempty"` + AccessKey string `protobuf:"bytes,6,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` + SecretKey string `protobuf:"bytes,7,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` + SessionToken string `protobuf:"bytes,8,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` // True if no credentials should be used to access the S3 or minio bucket. // For example, when using a bucket with a public policy. Anonymous bool `protobuf:"varint,9,opt,name=anonymous,proto3" json:"anonymous,omitempty"` @@ -4890,366 +5299,409 @@ type BackupRequest struct { ForceFull bool `protobuf:"varint,11,opt,name=force_full,json=forceFull,proto3" json:"force_full,omitempty"` } -func (m *BackupRequest) Reset() { *m = BackupRequest{} } -func (m *BackupRequest) String() string { return proto.CompactTextString(m) } -func (*BackupRequest) ProtoMessage() {} -func (*BackupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{63} -} -func (m *BackupRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BackupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BackupRequest.Marshal(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 *BackupRequest) Reset() { + *x = BackupRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *BackupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BackupRequest.Merge(m, src) -} -func (m *BackupRequest) XXX_Size() int { - return m.Size() + +func (x *BackupRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BackupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BackupRequest.DiscardUnknown(m) + +func (*BackupRequest) ProtoMessage() {} + +func (x *BackupRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[63] + 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_BackupRequest proto.InternalMessageInfo +// Deprecated: Use BackupRequest.ProtoReflect.Descriptor instead. +func (*BackupRequest) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{63} +} -func (m *BackupRequest) GetReadTs() uint64 { - if m != nil { - return m.ReadTs +func (x *BackupRequest) GetReadTs() uint64 { + if x != nil { + return x.ReadTs } return 0 } -func (m *BackupRequest) GetSinceTs() uint64 { - if m != nil { - return m.SinceTs +func (x *BackupRequest) GetSinceTs() uint64 { + if x != nil { + return x.SinceTs } return 0 } -func (m *BackupRequest) GetGroupId() uint32 { - if m != nil { - return m.GroupId +func (x *BackupRequest) GetGroupId() uint32 { + if x != nil { + return x.GroupId } return 0 } -func (m *BackupRequest) GetUnixTs() string { - if m != nil { - return m.UnixTs +func (x *BackupRequest) GetUnixTs() string { + if x != nil { + return x.UnixTs + } + return "" +} + +func (x *BackupRequest) GetDestination() string { + if x != nil { + return x.Destination + } + return "" +} + +func (x *BackupRequest) GetAccessKey() string { + if x != nil { + return x.AccessKey } return "" } -func (m *BackupRequest) GetDestination() string { - if m != nil { - return m.Destination +func (x *BackupRequest) GetSecretKey() string { + if x != nil { + return x.SecretKey } return "" } -func (m *BackupRequest) GetAccessKey() string { - if m != nil { - return m.AccessKey +func (x *BackupRequest) GetSessionToken() string { + if x != nil { + return x.SessionToken } return "" } -func (m *BackupRequest) GetAnonymous() bool { - if m != nil { - return m.Anonymous +func (x *BackupRequest) GetAnonymous() bool { + if x != nil { + return x.Anonymous } return false } -func (m *BackupRequest) GetPredicates() []string { - if m != nil { - return m.Predicates +func (x *BackupRequest) GetPredicates() []string { + if x != nil { + return x.Predicates } return nil } -func (m *BackupRequest) GetForceFull() bool { - if m != nil { - return m.ForceFull +func (x *BackupRequest) GetForceFull() bool { + if x != nil { + return x.ForceFull } return false } type BackupResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DropOperations []*DropOperation `protobuf:"bytes,1,rep,name=drop_operations,json=dropOperations,proto3" json:"drop_operations,omitempty"` } -func (m *BackupResponse) Reset() { *m = BackupResponse{} } -func (m *BackupResponse) String() string { return proto.CompactTextString(m) } -func (*BackupResponse) ProtoMessage() {} -func (*BackupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{64} -} -func (m *BackupResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BackupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BackupResponse.Marshal(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 *BackupResponse) Reset() { + *x = BackupResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *BackupResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BackupResponse.Merge(m, src) -} -func (m *BackupResponse) XXX_Size() int { - return m.Size() + +func (x *BackupResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BackupResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BackupResponse.DiscardUnknown(m) + +func (*BackupResponse) ProtoMessage() {} + +func (x *BackupResponse) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[64] + 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_BackupResponse proto.InternalMessageInfo +// Deprecated: Use BackupResponse.ProtoReflect.Descriptor instead. +func (*BackupResponse) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{64} +} -func (m *BackupResponse) GetDropOperations() []*DropOperation { - if m != nil { - return m.DropOperations +func (x *BackupResponse) GetDropOperations() []*DropOperation { + if x != nil { + return x.DropOperations } return nil } type DropOperation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DropOp DropOperation_DropOp `protobuf:"varint,1,opt,name=drop_op,json=dropOp,proto3,enum=pb.DropOperation_DropOp" json:"drop_op,omitempty"` // When drop_op is ATTR, drop_value will be the name of the ATTR; empty // otherwise. DropValue string `protobuf:"bytes,2,opt,name=drop_value,json=dropValue,proto3" json:"drop_value,omitempty"` } -func (m *DropOperation) Reset() { *m = DropOperation{} } -func (m *DropOperation) String() string { return proto.CompactTextString(m) } -func (*DropOperation) ProtoMessage() {} -func (*DropOperation) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{65} -} -func (m *DropOperation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DropOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DropOperation.Marshal(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 *DropOperation) Reset() { + *x = DropOperation{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DropOperation) XXX_Merge(src proto.Message) { - xxx_messageInfo_DropOperation.Merge(m, src) -} -func (m *DropOperation) XXX_Size() int { - return m.Size() + +func (x *DropOperation) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DropOperation) XXX_DiscardUnknown() { - xxx_messageInfo_DropOperation.DiscardUnknown(m) + +func (*DropOperation) ProtoMessage() {} + +func (x *DropOperation) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[65] + 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_DropOperation proto.InternalMessageInfo +// Deprecated: Use DropOperation.ProtoReflect.Descriptor instead. +func (*DropOperation) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{65} +} -func (m *DropOperation) GetDropOp() DropOperation_DropOp { - if m != nil { - return m.DropOp +func (x *DropOperation) GetDropOp() DropOperation_DropOp { + if x != nil { + return x.DropOp } return DropOperation_ALL } -func (m *DropOperation) GetDropValue() string { - if m != nil { - return m.DropValue +func (x *DropOperation) GetDropValue() string { + if x != nil { + return x.DropValue } return "" } type ExportRequest struct { - GroupId uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GroupId uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // Group id to back up. ReadTs uint64 `protobuf:"varint,2,opt,name=read_ts,json=readTs,proto3" json:"read_ts,omitempty"` UnixTs int64 `protobuf:"varint,3,opt,name=unix_ts,json=unixTs,proto3" json:"unix_ts,omitempty"` Format string `protobuf:"bytes,4,opt,name=format,proto3" json:"format,omitempty"` Destination string `protobuf:"bytes,5,opt,name=destination,proto3" json:"destination,omitempty"` // These credentials are used to access the S3 or minio bucket. - AccessKey string `protobuf:"bytes,6,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` - SecretKey Sensitive `protobuf:"bytes,7,opt,name=secret_key,json=secretKey,proto3,customtype=Sensitive" json:"secret_key"` - SessionToken Sensitive `protobuf:"bytes,8,opt,name=session_token,json=sessionToken,proto3,customtype=Sensitive" json:"session_token"` - Anonymous bool `protobuf:"varint,9,opt,name=anonymous,proto3" json:"anonymous,omitempty"` - Namespace uint64 `protobuf:"varint,10,opt,name=namespace,proto3" json:"namespace,omitempty"` + AccessKey string `protobuf:"bytes,6,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` + SecretKey string `protobuf:"bytes,7,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` + SessionToken string `protobuf:"bytes,8,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` + Anonymous bool `protobuf:"varint,9,opt,name=anonymous,proto3" json:"anonymous,omitempty"` + Namespace uint64 `protobuf:"varint,10,opt,name=namespace,proto3" json:"namespace,omitempty"` } -func (m *ExportRequest) Reset() { *m = ExportRequest{} } -func (m *ExportRequest) String() string { return proto.CompactTextString(m) } -func (*ExportRequest) ProtoMessage() {} -func (*ExportRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{66} -} -func (m *ExportRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExportRequest.Marshal(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 *ExportRequest) Reset() { + *x = ExportRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ExportRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExportRequest.Merge(m, src) -} -func (m *ExportRequest) XXX_Size() int { - return m.Size() + +func (x *ExportRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExportRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExportRequest.DiscardUnknown(m) + +func (*ExportRequest) ProtoMessage() {} + +func (x *ExportRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_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 mi.MessageOf(x) } -var xxx_messageInfo_ExportRequest proto.InternalMessageInfo +// Deprecated: Use ExportRequest.ProtoReflect.Descriptor instead. +func (*ExportRequest) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{66} +} -func (m *ExportRequest) GetGroupId() uint32 { - if m != nil { - return m.GroupId +func (x *ExportRequest) GetGroupId() uint32 { + if x != nil { + return x.GroupId } return 0 } -func (m *ExportRequest) GetReadTs() uint64 { - if m != nil { - return m.ReadTs +func (x *ExportRequest) GetReadTs() uint64 { + if x != nil { + return x.ReadTs } return 0 } -func (m *ExportRequest) GetUnixTs() int64 { - if m != nil { - return m.UnixTs +func (x *ExportRequest) GetUnixTs() int64 { + if x != nil { + return x.UnixTs } return 0 } -func (m *ExportRequest) GetFormat() string { - if m != nil { - return m.Format +func (x *ExportRequest) GetFormat() string { + if x != nil { + return x.Format + } + return "" +} + +func (x *ExportRequest) GetDestination() string { + if x != nil { + return x.Destination + } + return "" +} + +func (x *ExportRequest) GetAccessKey() string { + if x != nil { + return x.AccessKey } return "" } -func (m *ExportRequest) GetDestination() string { - if m != nil { - return m.Destination +func (x *ExportRequest) GetSecretKey() string { + if x != nil { + return x.SecretKey } return "" } -func (m *ExportRequest) GetAccessKey() string { - if m != nil { - return m.AccessKey +func (x *ExportRequest) GetSessionToken() string { + if x != nil { + return x.SessionToken } return "" } -func (m *ExportRequest) GetAnonymous() bool { - if m != nil { - return m.Anonymous +func (x *ExportRequest) GetAnonymous() bool { + if x != nil { + return x.Anonymous } return false } -func (m *ExportRequest) GetNamespace() uint64 { - if m != nil { - return m.Namespace +func (x *ExportRequest) GetNamespace() uint64 { + if x != nil { + return x.Namespace } return 0 } type ExportResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // 0 indicates a success, and a non-zero code indicates failure Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Files []string `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"` } -func (m *ExportResponse) Reset() { *m = ExportResponse{} } -func (m *ExportResponse) String() string { return proto.CompactTextString(m) } -func (*ExportResponse) ProtoMessage() {} -func (*ExportResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{67} -} -func (m *ExportResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExportResponse.Marshal(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 *ExportResponse) Reset() { + *x = ExportResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ExportResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExportResponse.Merge(m, src) -} -func (m *ExportResponse) XXX_Size() int { - return m.Size() + +func (x *ExportResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExportResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExportResponse.DiscardUnknown(m) + +func (*ExportResponse) ProtoMessage() {} + +func (x *ExportResponse) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[67] + 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_ExportResponse proto.InternalMessageInfo +// Deprecated: Use ExportResponse.ProtoReflect.Descriptor instead. +func (*ExportResponse) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{67} +} -func (m *ExportResponse) GetCode() int32 { - if m != nil { - return m.Code +func (x *ExportResponse) GetCode() int32 { + if x != nil { + return x.Code } return 0 } -func (m *ExportResponse) GetMsg() string { - if m != nil { - return m.Msg +func (x *ExportResponse) GetMsg() string { + if x != nil { + return x.Msg } return "" } -func (m *ExportResponse) GetFiles() []string { - if m != nil { - return m.Files +func (x *ExportResponse) GetFiles() []string { + if x != nil { + return x.Files } return nil } // A key stored in the format used for writing backups. type BackupKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Type BackupKey_KeyType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.BackupKey_KeyType" json:"type,omitempty"` Attr string `protobuf:"bytes,2,opt,name=attr,proto3" json:"attr,omitempty"` Uid uint64 `protobuf:"varint,3,opt,name=uid,proto3" json:"uid,omitempty"` @@ -5259,90 +5711,93 @@ type BackupKey struct { Namespace uint64 `protobuf:"varint,7,opt,name=namespace,proto3" json:"namespace,omitempty"` } -func (m *BackupKey) Reset() { *m = BackupKey{} } -func (m *BackupKey) String() string { return proto.CompactTextString(m) } -func (*BackupKey) ProtoMessage() {} -func (*BackupKey) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{68} -} -func (m *BackupKey) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BackupKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BackupKey.Marshal(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 *BackupKey) Reset() { + *x = BackupKey{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *BackupKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_BackupKey.Merge(m, src) -} -func (m *BackupKey) XXX_Size() int { - return m.Size() + +func (x *BackupKey) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BackupKey) XXX_DiscardUnknown() { - xxx_messageInfo_BackupKey.DiscardUnknown(m) + +func (*BackupKey) ProtoMessage() {} + +func (x *BackupKey) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[68] + 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_BackupKey proto.InternalMessageInfo +// Deprecated: Use BackupKey.ProtoReflect.Descriptor instead. +func (*BackupKey) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{68} +} -func (m *BackupKey) GetType() BackupKey_KeyType { - if m != nil { - return m.Type +func (x *BackupKey) GetType() BackupKey_KeyType { + if x != nil { + return x.Type } return BackupKey_UNKNOWN } -func (m *BackupKey) GetAttr() string { - if m != nil { - return m.Attr +func (x *BackupKey) GetAttr() string { + if x != nil { + return x.Attr } return "" } -func (m *BackupKey) GetUid() uint64 { - if m != nil { - return m.Uid +func (x *BackupKey) GetUid() uint64 { + if x != nil { + return x.Uid } return 0 } -func (m *BackupKey) GetStartUid() uint64 { - if m != nil { - return m.StartUid +func (x *BackupKey) GetStartUid() uint64 { + if x != nil { + return x.StartUid } return 0 } -func (m *BackupKey) GetTerm() string { - if m != nil { - return m.Term +func (x *BackupKey) GetTerm() string { + if x != nil { + return x.Term } return "" } -func (m *BackupKey) GetCount() uint32 { - if m != nil { - return m.Count +func (x *BackupKey) GetCount() uint32 { + if x != nil { + return x.Count } return 0 } -func (m *BackupKey) GetNamespace() uint64 { - if m != nil { - return m.Namespace +func (x *BackupKey) GetNamespace() uint64 { + if x != nil { + return x.Namespace } return 0 } // A posting list stored in the format used for writing backups. type BackupPostingList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Uids []uint64 `protobuf:"varint,1,rep,packed,name=uids,proto3" json:"uids,omitempty"` Postings []*Posting `protobuf:"bytes,2,rep,name=postings,proto3" json:"postings,omitempty"` CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` @@ -5350,22453 +5805,2539 @@ type BackupPostingList struct { UidBytes []byte `protobuf:"bytes,5,opt,name=uid_bytes,json=uidBytes,proto3" json:"uid_bytes,omitempty"` } -func (m *BackupPostingList) Reset() { *m = BackupPostingList{} } -func (m *BackupPostingList) String() string { return proto.CompactTextString(m) } -func (*BackupPostingList) ProtoMessage() {} -func (*BackupPostingList) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{69} -} -func (m *BackupPostingList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BackupPostingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BackupPostingList.Marshal(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 *BackupPostingList) Reset() { + *x = BackupPostingList{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *BackupPostingList) XXX_Merge(src proto.Message) { - xxx_messageInfo_BackupPostingList.Merge(m, src) -} -func (m *BackupPostingList) XXX_Size() int { - return m.Size() + +func (x *BackupPostingList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BackupPostingList) XXX_DiscardUnknown() { - xxx_messageInfo_BackupPostingList.DiscardUnknown(m) + +func (*BackupPostingList) ProtoMessage() {} + +func (x *BackupPostingList) ProtoReflect() protoreflect.Message { + mi := &file_pb_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) } -var xxx_messageInfo_BackupPostingList proto.InternalMessageInfo +// Deprecated: Use BackupPostingList.ProtoReflect.Descriptor instead. +func (*BackupPostingList) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{69} +} -func (m *BackupPostingList) GetUids() []uint64 { - if m != nil { - return m.Uids +func (x *BackupPostingList) GetUids() []uint64 { + if x != nil { + return x.Uids } return nil } -func (m *BackupPostingList) GetPostings() []*Posting { - if m != nil { - return m.Postings +func (x *BackupPostingList) GetPostings() []*Posting { + if x != nil { + return x.Postings } return nil } -func (m *BackupPostingList) GetCommitTs() uint64 { - if m != nil { - return m.CommitTs +func (x *BackupPostingList) GetCommitTs() uint64 { + if x != nil { + return x.CommitTs } return 0 } -func (m *BackupPostingList) GetSplits() []uint64 { - if m != nil { - return m.Splits +func (x *BackupPostingList) GetSplits() []uint64 { + if x != nil { + return x.Splits } return nil } -func (m *BackupPostingList) GetUidBytes() []byte { - if m != nil { - return m.UidBytes +func (x *BackupPostingList) GetUidBytes() []byte { + if x != nil { + return x.UidBytes } return nil } type UpdateGraphQLSchemaRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` GraphqlSchema string `protobuf:"bytes,2,opt,name=graphql_schema,json=graphqlSchema,proto3" json:"graphql_schema,omitempty"` DgraphPreds []*SchemaUpdate `protobuf:"bytes,3,rep,name=dgraph_preds,json=dgraphPreds,proto3" json:"dgraph_preds,omitempty"` DgraphTypes []*TypeUpdate `protobuf:"bytes,4,rep,name=dgraph_types,json=dgraphTypes,proto3" json:"dgraph_types,omitempty"` } -func (m *UpdateGraphQLSchemaRequest) Reset() { *m = UpdateGraphQLSchemaRequest{} } -func (m *UpdateGraphQLSchemaRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateGraphQLSchemaRequest) ProtoMessage() {} -func (*UpdateGraphQLSchemaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{70} -} -func (m *UpdateGraphQLSchemaRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateGraphQLSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateGraphQLSchemaRequest.Marshal(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 *UpdateGraphQLSchemaRequest) Reset() { + *x = UpdateGraphQLSchemaRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *UpdateGraphQLSchemaRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateGraphQLSchemaRequest.Merge(m, src) -} -func (m *UpdateGraphQLSchemaRequest) XXX_Size() int { - return m.Size() + +func (x *UpdateGraphQLSchemaRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateGraphQLSchemaRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateGraphQLSchemaRequest.DiscardUnknown(m) + +func (*UpdateGraphQLSchemaRequest) ProtoMessage() {} + +func (x *UpdateGraphQLSchemaRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_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) } -var xxx_messageInfo_UpdateGraphQLSchemaRequest proto.InternalMessageInfo +// Deprecated: Use UpdateGraphQLSchemaRequest.ProtoReflect.Descriptor instead. +func (*UpdateGraphQLSchemaRequest) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{70} +} -func (m *UpdateGraphQLSchemaRequest) GetStartTs() uint64 { - if m != nil { - return m.StartTs +func (x *UpdateGraphQLSchemaRequest) GetStartTs() uint64 { + if x != nil { + return x.StartTs } return 0 } -func (m *UpdateGraphQLSchemaRequest) GetGraphqlSchema() string { - if m != nil { - return m.GraphqlSchema +func (x *UpdateGraphQLSchemaRequest) GetGraphqlSchema() string { + if x != nil { + return x.GraphqlSchema } return "" } -func (m *UpdateGraphQLSchemaRequest) GetDgraphPreds() []*SchemaUpdate { - if m != nil { - return m.DgraphPreds +func (x *UpdateGraphQLSchemaRequest) GetDgraphPreds() []*SchemaUpdate { + if x != nil { + return x.DgraphPreds } return nil } -func (m *UpdateGraphQLSchemaRequest) GetDgraphTypes() []*TypeUpdate { - if m != nil { - return m.DgraphTypes +func (x *UpdateGraphQLSchemaRequest) GetDgraphTypes() []*TypeUpdate { + if x != nil { + return x.DgraphTypes } return nil } type UpdateGraphQLSchemaResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Uid uint64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` } -func (m *UpdateGraphQLSchemaResponse) Reset() { *m = UpdateGraphQLSchemaResponse{} } -func (m *UpdateGraphQLSchemaResponse) String() string { return proto.CompactTextString(m) } -func (*UpdateGraphQLSchemaResponse) ProtoMessage() {} -func (*UpdateGraphQLSchemaResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{71} -} -func (m *UpdateGraphQLSchemaResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateGraphQLSchemaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateGraphQLSchemaResponse.Marshal(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 *UpdateGraphQLSchemaResponse) Reset() { + *x = UpdateGraphQLSchemaResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *UpdateGraphQLSchemaResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateGraphQLSchemaResponse.Merge(m, src) -} -func (m *UpdateGraphQLSchemaResponse) XXX_Size() int { - return m.Size() + +func (x *UpdateGraphQLSchemaResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateGraphQLSchemaResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateGraphQLSchemaResponse.DiscardUnknown(m) + +func (*UpdateGraphQLSchemaResponse) ProtoMessage() {} + +func (x *UpdateGraphQLSchemaResponse) ProtoReflect() protoreflect.Message { + mi := &file_pb_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 mi.MessageOf(x) } -var xxx_messageInfo_UpdateGraphQLSchemaResponse proto.InternalMessageInfo +// Deprecated: Use UpdateGraphQLSchemaResponse.ProtoReflect.Descriptor instead. +func (*UpdateGraphQLSchemaResponse) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{71} +} -func (m *UpdateGraphQLSchemaResponse) GetUid() uint64 { - if m != nil { - return m.Uid +func (x *UpdateGraphQLSchemaResponse) GetUid() uint64 { + if x != nil { + return x.Uid } return 0 } // BulkMeta stores metadata from the map phase of the bulk loader. type BulkMeta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + EdgeCount int64 `protobuf:"varint,1,opt,name=edge_count,json=edgeCount,proto3" json:"edge_count,omitempty"` SchemaMap map[string]*SchemaUpdate `protobuf:"bytes,2,rep,name=schema_map,json=schemaMap,proto3" json:"schema_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` Types []*TypeUpdate `protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"` } -func (m *BulkMeta) Reset() { *m = BulkMeta{} } -func (m *BulkMeta) String() string { return proto.CompactTextString(m) } -func (*BulkMeta) ProtoMessage() {} -func (*BulkMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{72} -} -func (m *BulkMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BulkMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BulkMeta.Marshal(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 *BulkMeta) Reset() { + *x = BulkMeta{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *BulkMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_BulkMeta.Merge(m, src) -} -func (m *BulkMeta) XXX_Size() int { - return m.Size() + +func (x *BulkMeta) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BulkMeta) XXX_DiscardUnknown() { - xxx_messageInfo_BulkMeta.DiscardUnknown(m) + +func (*BulkMeta) ProtoMessage() {} + +func (x *BulkMeta) ProtoReflect() protoreflect.Message { + mi := &file_pb_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) } -var xxx_messageInfo_BulkMeta proto.InternalMessageInfo +// Deprecated: Use BulkMeta.ProtoReflect.Descriptor instead. +func (*BulkMeta) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{72} +} -func (m *BulkMeta) GetEdgeCount() int64 { - if m != nil { - return m.EdgeCount +func (x *BulkMeta) GetEdgeCount() int64 { + if x != nil { + return x.EdgeCount } return 0 } -func (m *BulkMeta) GetSchemaMap() map[string]*SchemaUpdate { - if m != nil { - return m.SchemaMap +func (x *BulkMeta) GetSchemaMap() map[string]*SchemaUpdate { + if x != nil { + return x.SchemaMap } return nil } -func (m *BulkMeta) GetTypes() []*TypeUpdate { - if m != nil { - return m.Types +func (x *BulkMeta) GetTypes() []*TypeUpdate { + if x != nil { + return x.Types } return nil } type DeleteNsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + GroupId uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` Namespace uint64 `protobuf:"varint,2,opt,name=namespace,proto3" json:"namespace,omitempty"` } -func (m *DeleteNsRequest) Reset() { *m = DeleteNsRequest{} } -func (m *DeleteNsRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteNsRequest) ProtoMessage() {} -func (*DeleteNsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{73} -} -func (m *DeleteNsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteNsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteNsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DeleteNsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteNsRequest.Merge(m, src) -} -func (m *DeleteNsRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteNsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteNsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteNsRequest proto.InternalMessageInfo - -func (m *DeleteNsRequest) GetGroupId() uint32 { - if m != nil { - return m.GroupId +func (x *DeleteNsRequest) Reset() { + *x = DeleteNsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (m *DeleteNsRequest) GetNamespace() uint64 { - if m != nil { - return m.Namespace - } - return 0 +func (x *DeleteNsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type TaskStatusRequest struct { - TaskId uint64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` -} +func (*DeleteNsRequest) ProtoMessage() {} -func (m *TaskStatusRequest) Reset() { *m = TaskStatusRequest{} } -func (m *TaskStatusRequest) String() string { return proto.CompactTextString(m) } -func (*TaskStatusRequest) ProtoMessage() {} -func (*TaskStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{74} -} -func (m *TaskStatusRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TaskStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TaskStatusRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *DeleteNsRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[73] + 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 *TaskStatusRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskStatusRequest.Merge(m, src) -} -func (m *TaskStatusRequest) XXX_Size() int { - return m.Size() -} -func (m *TaskStatusRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TaskStatusRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskStatusRequest proto.InternalMessageInfo - -func (m *TaskStatusRequest) GetTaskId() uint64 { - if m != nil { - return m.TaskId + return ms } - return 0 -} - -type TaskStatusResponse struct { - TaskMeta uint64 `protobuf:"varint,1,opt,name=task_meta,json=taskMeta,proto3" json:"task_meta,omitempty"` + return mi.MessageOf(x) } -func (m *TaskStatusResponse) Reset() { *m = TaskStatusResponse{} } -func (m *TaskStatusResponse) String() string { return proto.CompactTextString(m) } -func (*TaskStatusResponse) ProtoMessage() {} -func (*TaskStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f80abaa17e25ccc8, []int{75} -} -func (m *TaskStatusResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TaskStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TaskStatusResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *TaskStatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskStatusResponse.Merge(m, src) -} -func (m *TaskStatusResponse) XXX_Size() int { - return m.Size() -} -func (m *TaskStatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TaskStatusResponse.DiscardUnknown(m) +// Deprecated: Use DeleteNsRequest.ProtoReflect.Descriptor instead. +func (*DeleteNsRequest) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{73} } -var xxx_messageInfo_TaskStatusResponse proto.InternalMessageInfo - -func (m *TaskStatusResponse) GetTaskMeta() uint64 { - if m != nil { - return m.TaskMeta +func (x *DeleteNsRequest) GetGroupId() uint32 { + if x != nil { + return x.GroupId } return 0 } -func init() { - proto.RegisterEnum("pb.DirectedEdge_Op", DirectedEdge_Op_name, DirectedEdge_Op_value) - proto.RegisterEnum("pb.Mutations_DropOp", Mutations_DropOp_name, Mutations_DropOp_value) - proto.RegisterEnum("pb.Metadata_HintType", Metadata_HintType_name, Metadata_HintType_value) - proto.RegisterEnum("pb.Posting_ValType", Posting_ValType_name, Posting_ValType_value) - proto.RegisterEnum("pb.Posting_PostingType", Posting_PostingType_name, Posting_PostingType_value) - proto.RegisterEnum("pb.SchemaUpdate_Directive", SchemaUpdate_Directive_name, SchemaUpdate_Directive_value) - proto.RegisterEnum("pb.NumLeaseType", NumLeaseType_name, NumLeaseType_value) - proto.RegisterEnum("pb.DropOperation_DropOp", DropOperation_DropOp_name, DropOperation_DropOp_value) - proto.RegisterEnum("pb.BackupKey_KeyType", BackupKey_KeyType_name, BackupKey_KeyType_value) - proto.RegisterType((*List)(nil), "pb.List") - proto.RegisterType((*TaskValue)(nil), "pb.TaskValue") - proto.RegisterType((*SrcFunction)(nil), "pb.SrcFunction") - proto.RegisterType((*Query)(nil), "pb.Query") - proto.RegisterType((*ValueList)(nil), "pb.ValueList") - proto.RegisterType((*LangList)(nil), "pb.LangList") - proto.RegisterType((*Result)(nil), "pb.Result") - proto.RegisterMapType((map[string]uint64)(nil), "pb.Result.VectorMetricsEntry") - proto.RegisterType((*Order)(nil), "pb.Order") - proto.RegisterType((*SortMessage)(nil), "pb.SortMessage") - proto.RegisterType((*SortResult)(nil), "pb.SortResult") - proto.RegisterType((*RaftContext)(nil), "pb.RaftContext") - proto.RegisterType((*Member)(nil), "pb.Member") - proto.RegisterType((*Group)(nil), "pb.Group") - proto.RegisterMapType((map[uint64]*Member)(nil), "pb.Group.MembersEntry") - proto.RegisterMapType((map[string]*Tablet)(nil), "pb.Group.TabletsEntry") - proto.RegisterType((*License)(nil), "pb.License") - proto.RegisterType((*ZeroProposal)(nil), "pb.ZeroProposal") - proto.RegisterMapType((map[uint32]uint64)(nil), "pb.ZeroProposal.SnapshotTsEntry") - proto.RegisterType((*MembershipState)(nil), "pb.MembershipState") - proto.RegisterMapType((map[uint32]*Group)(nil), "pb.MembershipState.GroupsEntry") - proto.RegisterMapType((map[uint64]*Member)(nil), "pb.MembershipState.ZerosEntry") - proto.RegisterType((*ConnectionState)(nil), "pb.ConnectionState") - proto.RegisterType((*HealthInfo)(nil), "pb.HealthInfo") - proto.RegisterType((*Tablet)(nil), "pb.Tablet") - proto.RegisterType((*DirectedEdge)(nil), "pb.DirectedEdge") - proto.RegisterType((*Mutations)(nil), "pb.Mutations") - proto.RegisterType((*Metadata)(nil), "pb.Metadata") - proto.RegisterMapType((map[string]Metadata_HintType)(nil), "pb.Metadata.PredHintsEntry") - proto.RegisterType((*Snapshot)(nil), "pb.Snapshot") - proto.RegisterType((*ZeroSnapshot)(nil), "pb.ZeroSnapshot") - proto.RegisterType((*RestoreRequest)(nil), "pb.RestoreRequest") - proto.RegisterType((*Proposal)(nil), "pb.Proposal") - proto.RegisterType((*CDCState)(nil), "pb.CDCState") - proto.RegisterType((*KVS)(nil), "pb.KVS") - proto.RegisterType((*Posting)(nil), "pb.Posting") - proto.RegisterType((*UidBlock)(nil), "pb.UidBlock") - proto.RegisterType((*UidPack)(nil), "pb.UidPack") - proto.RegisterType((*PostingList)(nil), "pb.PostingList") - proto.RegisterType((*FacetParam)(nil), "pb.FacetParam") - proto.RegisterType((*FacetParams)(nil), "pb.FacetParams") - proto.RegisterType((*Facets)(nil), "pb.Facets") - proto.RegisterType((*FacetsList)(nil), "pb.FacetsList") - proto.RegisterType((*Function)(nil), "pb.Function") - proto.RegisterType((*FilterTree)(nil), "pb.FilterTree") - proto.RegisterType((*SchemaRequest)(nil), "pb.SchemaRequest") - proto.RegisterType((*SchemaNode)(nil), "pb.SchemaNode") - proto.RegisterType((*SchemaResult)(nil), "pb.SchemaResult") - proto.RegisterType((*SchemaUpdate)(nil), "pb.SchemaUpdate") - proto.RegisterType((*VectorIndexSpec)(nil), "pb.VectorIndexSpec") - proto.RegisterType((*OptionPair)(nil), "pb.OptionPair") - proto.RegisterType((*TypeUpdate)(nil), "pb.TypeUpdate") - proto.RegisterType((*MapHeader)(nil), "pb.MapHeader") - proto.RegisterType((*MovePredicatePayload)(nil), "pb.MovePredicatePayload") - proto.RegisterType((*TxnStatus)(nil), "pb.TxnStatus") - proto.RegisterType((*OracleDelta)(nil), "pb.OracleDelta") - proto.RegisterMapType((map[uint32]uint64)(nil), "pb.OracleDelta.GroupChecksumsEntry") - proto.RegisterType((*TxnTimestamps)(nil), "pb.TxnTimestamps") - proto.RegisterType((*PeerResponse)(nil), "pb.PeerResponse") - proto.RegisterType((*RaftBatch)(nil), "pb.RaftBatch") - proto.RegisterType((*TabletResponse)(nil), "pb.TabletResponse") - proto.RegisterType((*TabletRequest)(nil), "pb.TabletRequest") - proto.RegisterType((*SubscriptionRequest)(nil), "pb.SubscriptionRequest") - proto.RegisterType((*SubscriptionResponse)(nil), "pb.SubscriptionResponse") - proto.RegisterType((*Num)(nil), "pb.Num") - proto.RegisterType((*AssignedIds)(nil), "pb.AssignedIds") - proto.RegisterType((*RemoveNodeRequest)(nil), "pb.RemoveNodeRequest") - proto.RegisterType((*MoveTabletRequest)(nil), "pb.MoveTabletRequest") - proto.RegisterType((*ApplyLicenseRequest)(nil), "pb.ApplyLicenseRequest") - proto.RegisterType((*SnapshotMeta)(nil), "pb.SnapshotMeta") - proto.RegisterType((*Status)(nil), "pb.Status") - proto.RegisterType((*BackupRequest)(nil), "pb.BackupRequest") - proto.RegisterType((*BackupResponse)(nil), "pb.BackupResponse") - proto.RegisterType((*DropOperation)(nil), "pb.DropOperation") - proto.RegisterType((*ExportRequest)(nil), "pb.ExportRequest") - proto.RegisterType((*ExportResponse)(nil), "pb.ExportResponse") - proto.RegisterType((*BackupKey)(nil), "pb.BackupKey") - proto.RegisterType((*BackupPostingList)(nil), "pb.BackupPostingList") - proto.RegisterType((*UpdateGraphQLSchemaRequest)(nil), "pb.UpdateGraphQLSchemaRequest") - proto.RegisterType((*UpdateGraphQLSchemaResponse)(nil), "pb.UpdateGraphQLSchemaResponse") - proto.RegisterType((*BulkMeta)(nil), "pb.BulkMeta") - proto.RegisterMapType((map[string]*SchemaUpdate)(nil), "pb.BulkMeta.SchemaMapEntry") - proto.RegisterType((*DeleteNsRequest)(nil), "pb.DeleteNsRequest") - proto.RegisterType((*TaskStatusRequest)(nil), "pb.TaskStatusRequest") - proto.RegisterType((*TaskStatusResponse)(nil), "pb.TaskStatusResponse") -} - -func init() { proto.RegisterFile("pb.proto", fileDescriptor_f80abaa17e25ccc8) } - -var fileDescriptor_f80abaa17e25ccc8 = []byte{ - // 5668 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x7b, 0x4b, 0x6f, 0x1c, 0x57, - 0x76, 0x30, 0xfb, 0xdd, 0x75, 0xfa, 0xc1, 0xe6, 0x95, 0x2c, 0xb7, 0x29, 0x4b, 0x94, 0xcb, 0x96, - 0x4d, 0x4b, 0x16, 0x25, 0xd1, 0x9e, 0xf9, 0xc6, 0x1e, 0x0c, 0x30, 0xa4, 0x48, 0xca, 0xb4, 0x28, - 0x92, 0x53, 0xdd, 0xd2, 0x3c, 0x80, 0xef, 0x6b, 0x14, 0xab, 0x2e, 0xc9, 0x1a, 0x56, 0x57, 0xd5, - 0x54, 0x55, 0x73, 0x48, 0xaf, 0xbe, 0x59, 0xcd, 0x26, 0x8b, 0x01, 0xb2, 0x0f, 0x06, 0xd9, 0x26, - 0xab, 0x20, 0x40, 0x82, 0x00, 0x59, 0x04, 0x08, 0x82, 0x41, 0x56, 0x93, 0x5d, 0x90, 0x49, 0x84, - 0xc0, 0x93, 0x95, 0x16, 0x01, 0xf2, 0x0b, 0x12, 0x9c, 0x73, 0x6e, 0xbd, 0x9a, 0xad, 0x87, 0x1d, - 0x64, 0x93, 0x55, 0xdf, 0x73, 0xee, 0xfb, 0xdc, 0xf3, 0x3e, 0xd5, 0xd0, 0x0c, 0x0e, 0x56, 0x82, - 0xd0, 0x8f, 0x7d, 0x51, 0x0e, 0x0e, 0x16, 0x35, 0x33, 0x70, 0x18, 0x5c, 0xbc, 0x75, 0xe4, 0xc4, - 0xc7, 0x93, 0x83, 0x15, 0xcb, 0x1f, 0xdf, 0xb5, 0x8f, 0x42, 0x33, 0x38, 0xbe, 0xe3, 0xf8, 0x77, - 0x0f, 0x4c, 0xfb, 0x48, 0x86, 0x77, 0x4f, 0x3f, 0xb9, 0x1b, 0x1c, 0xdc, 0x4d, 0xa6, 0x2e, 0xde, - 0xc9, 0x8d, 0x3d, 0xf2, 0x8f, 0xfc, 0xbb, 0x84, 0x3e, 0x98, 0x1c, 0x12, 0x44, 0x00, 0xb5, 0x78, - 0xb8, 0xbe, 0x08, 0xd5, 0x1d, 0x27, 0x8a, 0x85, 0x80, 0xea, 0xc4, 0xb1, 0xa3, 0x7e, 0xe9, 0x46, - 0x65, 0xb9, 0x6e, 0x50, 0x5b, 0x7f, 0x0c, 0xda, 0xd0, 0x8c, 0x4e, 0x9e, 0x9a, 0xee, 0x44, 0x8a, - 0x1e, 0x54, 0x4e, 0x4d, 0xb7, 0x5f, 0xba, 0x51, 0x5a, 0x6e, 0x1b, 0xd8, 0x14, 0x2b, 0xd0, 0x3c, - 0x35, 0xdd, 0x51, 0x7c, 0x1e, 0xc8, 0x7e, 0xf9, 0x46, 0x69, 0xb9, 0xbb, 0x7a, 0x69, 0x25, 0x38, - 0x58, 0xd9, 0xf7, 0xa3, 0xd8, 0xf1, 0x8e, 0x56, 0x9e, 0x9a, 0xee, 0xf0, 0x3c, 0x90, 0x46, 0xe3, - 0x94, 0x1b, 0xfa, 0x1e, 0xb4, 0x06, 0xa1, 0xb5, 0x35, 0xf1, 0xac, 0xd8, 0xf1, 0x3d, 0xdc, 0xd1, - 0x33, 0xc7, 0x92, 0x56, 0xd4, 0x0c, 0x6a, 0x23, 0xce, 0x0c, 0x8f, 0xa2, 0x7e, 0xe5, 0x46, 0x05, - 0x71, 0xd8, 0x16, 0x7d, 0x68, 0x38, 0xd1, 0x03, 0x7f, 0xe2, 0xc5, 0xfd, 0xea, 0x8d, 0xd2, 0x72, - 0xd3, 0x48, 0x40, 0xfd, 0x2f, 0x2a, 0x50, 0xfb, 0xc1, 0x44, 0x86, 0xe7, 0x34, 0x2f, 0x8e, 0xc3, - 0x64, 0x2d, 0x6c, 0x8b, 0xcb, 0x50, 0x73, 0x4d, 0xef, 0x28, 0xea, 0x97, 0x69, 0x31, 0x06, 0xc4, - 0x55, 0xd0, 0xcc, 0xc3, 0x58, 0x86, 0xa3, 0x89, 0x63, 0xf7, 0x2b, 0x37, 0x4a, 0xcb, 0x75, 0xa3, - 0x49, 0x88, 0x27, 0x8e, 0x2d, 0xde, 0x82, 0xa6, 0xed, 0x8f, 0xac, 0xfc, 0x5e, 0xb6, 0x4f, 0x7b, - 0x89, 0x77, 0xa1, 0x39, 0x71, 0xec, 0x91, 0xeb, 0x44, 0x71, 0xbf, 0x76, 0xa3, 0xb4, 0xdc, 0x5a, - 0x6d, 0xe2, 0x65, 0x91, 0x76, 0x46, 0x63, 0xe2, 0xd8, 0x44, 0xc4, 0x5b, 0xd0, 0x8c, 0x42, 0x6b, - 0x74, 0x38, 0xf1, 0xac, 0x7e, 0x9d, 0x06, 0xcd, 0xe3, 0xa0, 0xdc, 0xad, 0x8d, 0x46, 0xc4, 0x00, - 0x5e, 0x2b, 0x94, 0xa7, 0x32, 0x8c, 0x64, 0xbf, 0xc1, 0x5b, 0x29, 0x50, 0xdc, 0x83, 0xd6, 0xa1, - 0x69, 0xc9, 0x78, 0x14, 0x98, 0xa1, 0x39, 0xee, 0x37, 0xb3, 0x85, 0xb6, 0x10, 0xbd, 0x8f, 0xd8, - 0xc8, 0x80, 0xc3, 0x14, 0x10, 0x1f, 0x43, 0x87, 0xa0, 0x68, 0x74, 0xe8, 0xb8, 0xb1, 0x0c, 0xfb, - 0x1a, 0xcd, 0xe9, 0xd2, 0x1c, 0xc2, 0x0c, 0x43, 0x29, 0x8d, 0x36, 0x0f, 0x62, 0x8c, 0xb8, 0x06, - 0x20, 0xcf, 0x02, 0xd3, 0xb3, 0x47, 0xa6, 0xeb, 0xf6, 0x81, 0xce, 0xa0, 0x31, 0x66, 0xcd, 0x75, - 0xc5, 0x9b, 0x78, 0x3e, 0xd3, 0x1e, 0xc5, 0x51, 0xbf, 0x73, 0xa3, 0xb4, 0x5c, 0x35, 0xea, 0x08, - 0x0e, 0x23, 0xa4, 0xab, 0x65, 0x5a, 0xc7, 0xb2, 0xdf, 0xbd, 0x51, 0x5a, 0xae, 0x19, 0x0c, 0x20, - 0xf6, 0xd0, 0x09, 0xa3, 0xb8, 0x3f, 0xcf, 0x58, 0x02, 0xc4, 0x15, 0xa8, 0xfb, 0x87, 0x87, 0x91, - 0x8c, 0xfb, 0x3d, 0x42, 0x2b, 0x48, 0x5f, 0x05, 0x8d, 0xb8, 0x8a, 0xa8, 0x76, 0x13, 0xea, 0xa7, - 0x08, 0x30, 0xf3, 0xb5, 0x56, 0x3b, 0x78, 0xec, 0x94, 0xf1, 0x0c, 0xd5, 0xa9, 0x5f, 0x87, 0xe6, - 0x8e, 0xe9, 0x1d, 0x25, 0xdc, 0x8a, 0xcf, 0x49, 0x13, 0x34, 0x83, 0xda, 0xfa, 0xaf, 0x2b, 0x50, - 0x37, 0x64, 0x34, 0x71, 0x63, 0xf1, 0x01, 0x00, 0x3e, 0xd6, 0xd8, 0x8c, 0x43, 0xe7, 0x4c, 0xad, - 0x9a, 0x3d, 0x97, 0x36, 0x71, 0xec, 0xc7, 0xd4, 0x25, 0xee, 0x41, 0x9b, 0x56, 0x4f, 0x86, 0x96, - 0xb3, 0x03, 0xa4, 0xe7, 0x33, 0x5a, 0x34, 0x44, 0xcd, 0xb8, 0x02, 0x75, 0xe2, 0x0f, 0xe6, 0xd1, - 0x8e, 0xa1, 0x20, 0x71, 0x13, 0xba, 0x8e, 0x17, 0xe3, 0xfb, 0x59, 0xf1, 0xc8, 0x96, 0x51, 0xc2, - 0x40, 0x9d, 0x14, 0xbb, 0x21, 0xa3, 0x58, 0xdc, 0x07, 0x7e, 0x84, 0x64, 0xc3, 0x1a, 0x6d, 0xd8, - 0x4d, 0x1f, 0x37, 0xe2, 0x1d, 0x69, 0x8c, 0xda, 0xf1, 0x0e, 0xb4, 0xf0, 0x7e, 0xc9, 0x8c, 0x3a, - 0xcd, 0x68, 0xd3, 0x6d, 0x14, 0x39, 0x0c, 0xc0, 0x01, 0x6a, 0x38, 0x92, 0x06, 0x99, 0x94, 0x99, - 0x8a, 0xda, 0x62, 0x03, 0xba, 0xa7, 0xd2, 0x8a, 0xfd, 0x70, 0x34, 0x96, 0x71, 0xe8, 0x58, 0x51, - 0xbf, 0x49, 0xab, 0x5c, 0xc3, 0x55, 0x98, 0x66, 0x2b, 0x4f, 0x69, 0xc0, 0x63, 0xee, 0xdf, 0xf4, - 0xe2, 0xf0, 0xdc, 0xe8, 0x9c, 0xe6, 0x71, 0x8b, 0xdf, 0x07, 0x71, 0x71, 0x10, 0xea, 0x85, 0x13, - 0x79, 0xae, 0x24, 0x0f, 0x9b, 0xc8, 0x0a, 0x44, 0x31, 0x52, 0x0a, 0x55, 0x83, 0x81, 0xcf, 0xca, - 0xdf, 0x29, 0xe9, 0x9b, 0x50, 0xdb, 0x0b, 0x6d, 0x19, 0xce, 0x94, 0x57, 0x01, 0x55, 0x5b, 0x46, - 0x16, 0xcd, 0x6a, 0x1a, 0xd4, 0xce, 0x64, 0xb8, 0x92, 0x93, 0x61, 0xfd, 0x8f, 0x4a, 0xd0, 0x1a, - 0xf8, 0x61, 0xfc, 0x58, 0x46, 0x91, 0x79, 0x24, 0xc5, 0x12, 0xd4, 0x7c, 0x5c, 0x56, 0xbd, 0xb4, - 0x86, 0xb7, 0xa2, 0x7d, 0x0c, 0xc6, 0x4f, 0xf1, 0x43, 0xf9, 0xc5, 0xfc, 0x80, 0xbc, 0x4d, 0xd2, - 0x5f, 0x51, 0xbc, 0x4d, 0xb2, 0x9f, 0x71, 0x71, 0x35, 0xcf, 0xc5, 0x2f, 0x14, 0x11, 0xfd, 0x5b, - 0x00, 0x78, 0xbe, 0xaf, 0xc9, 0x8d, 0xfa, 0x2f, 0x4b, 0xd0, 0x32, 0xcc, 0xc3, 0xf8, 0x81, 0xef, - 0xc5, 0xf2, 0x2c, 0x16, 0x5d, 0x28, 0x3b, 0x36, 0xd1, 0xa8, 0x6e, 0x94, 0x1d, 0x1b, 0x4f, 0x77, - 0x14, 0xfa, 0x93, 0x80, 0x48, 0xd4, 0x31, 0x18, 0x20, 0x5a, 0xda, 0x76, 0x48, 0x47, 0x46, 0x5a, - 0xda, 0x76, 0x28, 0x96, 0xa0, 0x15, 0x79, 0x66, 0x10, 0x1d, 0xfb, 0x31, 0x9e, 0xae, 0x4a, 0xa7, - 0x83, 0x04, 0x35, 0x8c, 0x50, 0xf8, 0x9d, 0x68, 0xe4, 0x4a, 0x33, 0xf4, 0x64, 0x48, 0x0a, 0xad, - 0x69, 0x68, 0x4e, 0xb4, 0xc3, 0x08, 0xfd, 0x97, 0x15, 0xa8, 0x3f, 0x96, 0xe3, 0x03, 0x19, 0x5e, - 0x38, 0xc4, 0x3d, 0x68, 0xd2, 0xbe, 0x23, 0xc7, 0xe6, 0x73, 0xac, 0xbf, 0xf1, 0xfc, 0xd9, 0xd2, - 0x02, 0xe1, 0xb6, 0xed, 0x8f, 0xfc, 0xb1, 0x13, 0xcb, 0x71, 0x10, 0x9f, 0x1b, 0x0d, 0x85, 0x9a, - 0x79, 0xc0, 0x2b, 0x50, 0x77, 0xa5, 0x89, 0x6f, 0xc6, 0x62, 0xa2, 0x20, 0x71, 0x07, 0x1a, 0xe6, - 0x78, 0x64, 0x4b, 0xd3, 0xe6, 0x43, 0xad, 0x5f, 0x7e, 0xfe, 0x6c, 0xa9, 0x67, 0x8e, 0x37, 0xa4, - 0x99, 0x5f, 0xbb, 0xce, 0x18, 0xf1, 0x29, 0xca, 0x46, 0x14, 0x8f, 0x26, 0x81, 0x6d, 0xc6, 0x92, - 0x74, 0x6e, 0x75, 0xbd, 0xff, 0xfc, 0xd9, 0xd2, 0x65, 0x44, 0x3f, 0x21, 0x6c, 0x6e, 0x1a, 0x64, - 0x58, 0xd4, 0xbf, 0xc9, 0xf5, 0x95, 0xfe, 0x55, 0xa0, 0xd8, 0x86, 0x05, 0xcb, 0x9d, 0x44, 0x68, - 0x24, 0x1c, 0xef, 0xd0, 0x1f, 0xf9, 0x9e, 0x7b, 0x4e, 0x0f, 0xdc, 0x5c, 0xbf, 0xf6, 0xfc, 0xd9, - 0xd2, 0x5b, 0xaa, 0x73, 0xdb, 0x3b, 0xf4, 0xf7, 0x3c, 0xf7, 0x3c, 0xb7, 0xfe, 0xfc, 0x54, 0x97, - 0xf8, 0x3e, 0x74, 0x0f, 0xfd, 0xd0, 0x92, 0xa3, 0x94, 0x64, 0x5d, 0x5a, 0x67, 0xf1, 0xf9, 0xb3, - 0xa5, 0x2b, 0xd4, 0xf3, 0xf0, 0x02, 0xdd, 0xda, 0x79, 0xbc, 0xfe, 0x2f, 0x65, 0xa8, 0x51, 0x5b, - 0xdc, 0x83, 0xc6, 0x98, 0x9e, 0x24, 0xd1, 0x93, 0x57, 0x90, 0x87, 0xa8, 0x6f, 0x85, 0xdf, 0x4a, - 0x89, 0x6d, 0x32, 0x0c, 0x67, 0xc4, 0xe6, 0x81, 0x2b, 0xe3, 0x48, 0xf1, 0x7c, 0x6e, 0xc6, 0x90, - 0x3b, 0xd4, 0x0c, 0x35, 0x6c, 0x9a, 0x6f, 0x2a, 0x17, 0xf8, 0x66, 0x11, 0x9a, 0xd6, 0xb1, 0xb4, - 0x4e, 0xa2, 0xc9, 0x58, 0x71, 0x55, 0x0a, 0x8b, 0x77, 0xa1, 0x43, 0xed, 0xc0, 0x77, 0x3c, 0x9a, - 0x5e, 0xa3, 0x01, 0xed, 0x0c, 0x39, 0x8c, 0x16, 0xb7, 0xa0, 0x9d, 0x3f, 0x6c, 0x5e, 0x7d, 0x54, - 0x59, 0x7d, 0xdc, 0xc8, 0xab, 0x8f, 0xd6, 0x2a, 0xe0, 0x99, 0x79, 0x4a, 0x4e, 0x95, 0xe0, 0x3a, - 0xf9, 0x2b, 0xcc, 0x50, 0x43, 0xb3, 0xd6, 0xe1, 0x29, 0x79, 0x95, 0xe4, 0x43, 0x63, 0xc7, 0xb1, - 0xa4, 0x17, 0x91, 0xf3, 0x31, 0x89, 0x64, 0xaa, 0x94, 0xb0, 0x8d, 0xf7, 0x1d, 0x9b, 0x67, 0xbb, - 0xbe, 0x2d, 0x23, 0xa5, 0xce, 0x52, 0x18, 0xfb, 0xe4, 0x59, 0xe0, 0x84, 0xe7, 0x43, 0xa6, 0x54, - 0xc5, 0x48, 0x61, 0xe4, 0x2e, 0xe9, 0xe1, 0x66, 0x76, 0xe2, 0x48, 0x28, 0x50, 0xff, 0xd3, 0x2a, - 0xb4, 0x7f, 0x22, 0x43, 0x7f, 0x3f, 0xf4, 0x03, 0x3f, 0x32, 0x5d, 0xb1, 0x56, 0xa4, 0x39, 0xbf, - 0xed, 0x0d, 0x3c, 0x6d, 0x7e, 0xd8, 0xca, 0x20, 0x7d, 0x04, 0x7e, 0xb3, 0xfc, 0xab, 0xe8, 0x50, - 0xe7, 0x37, 0x9f, 0x41, 0x33, 0xd5, 0x83, 0x63, 0xf8, 0x95, 0xe9, 0xac, 0x45, 0x7a, 0xa8, 0x1e, - 0x94, 0xca, 0xb1, 0x79, 0xf6, 0x64, 0x7b, 0x43, 0xbd, 0xad, 0x82, 0x14, 0x15, 0x86, 0x67, 0xde, - 0x30, 0x79, 0xd4, 0x14, 0xc6, 0x9b, 0x22, 0x45, 0xa2, 0xed, 0x8d, 0x7e, 0x9b, 0xba, 0x12, 0x50, - 0xbc, 0x0d, 0xda, 0xd8, 0x3c, 0x43, 0x85, 0xb6, 0x6d, 0xb3, 0x68, 0x1a, 0x19, 0x42, 0xbc, 0x03, - 0x95, 0xf8, 0xcc, 0x23, 0xd9, 0x43, 0xef, 0x06, 0x9d, 0xdd, 0xe1, 0x99, 0xa7, 0x54, 0x9f, 0x81, - 0x7d, 0xf8, 0xa6, 0x96, 0x63, 0x93, 0x33, 0xa3, 0x19, 0xd8, 0x14, 0x37, 0xa1, 0xe1, 0xf2, 0x6b, - 0x91, 0xc3, 0xd2, 0x5a, 0x6d, 0xb1, 0x1e, 0x25, 0x94, 0x91, 0xf4, 0x89, 0x8f, 0xa0, 0x99, 0x50, - 0xa7, 0xdf, 0xa2, 0x71, 0xbd, 0x84, 0x9e, 0x09, 0x19, 0x8d, 0x74, 0x84, 0xb8, 0x07, 0x9a, 0x2d, - 0x5d, 0x19, 0xcb, 0x91, 0xc7, 0x8a, 0xbc, 0xc5, 0x8e, 0xec, 0x06, 0x21, 0x77, 0x23, 0x43, 0xfe, - 0x6c, 0x22, 0xa3, 0xd8, 0x68, 0xda, 0x0a, 0x21, 0xde, 0xcb, 0x04, 0xab, 0x4b, 0xcf, 0x95, 0x27, - 0x66, 0xd2, 0xb5, 0xf8, 0x3d, 0x98, 0x9f, 0x7a, 0xb4, 0x3c, 0x97, 0x76, 0x5e, 0x61, 0x2c, 0xbf, - 0xa8, 0x36, 0x9b, 0x3d, 0x4d, 0xff, 0x8f, 0x0a, 0xcc, 0x2b, 0x81, 0x39, 0x76, 0x82, 0x41, 0xac, - 0x54, 0x17, 0x19, 0x26, 0xc5, 0xab, 0x55, 0x23, 0x01, 0xc5, 0xff, 0x81, 0x3a, 0x69, 0x9a, 0x44, - 0xe0, 0x97, 0x32, 0x46, 0x48, 0xa7, 0xb3, 0x02, 0x50, 0x5c, 0xa4, 0x86, 0x8b, 0x4f, 0xa0, 0xf6, - 0xa5, 0x0c, 0x7d, 0x36, 0xb4, 0xad, 0xd5, 0xeb, 0xb3, 0xe6, 0x21, 0xf9, 0xd4, 0x34, 0x1e, 0xfc, - 0xdf, 0xe5, 0x17, 0xf8, 0x3a, 0xfc, 0xf2, 0x1e, 0x1a, 0xdb, 0xb1, 0x7f, 0x2a, 0xed, 0x7e, 0x23, - 0xa3, 0xb9, 0x62, 0xf2, 0xa4, 0x2b, 0x61, 0x99, 0xe6, 0x4c, 0x96, 0xd1, 0x5e, 0xcc, 0x32, 0x8b, - 0x1b, 0xd0, 0xca, 0xd1, 0x65, 0xc6, 0x43, 0x2d, 0x15, 0xd5, 0x89, 0x96, 0xaa, 0xd2, 0xbc, 0x56, - 0xda, 0x00, 0xc8, 0xa8, 0xf4, 0x4d, 0x75, 0x9b, 0xfe, 0x8b, 0x12, 0xcc, 0x3f, 0xf0, 0x3d, 0x4f, - 0x52, 0xc8, 0xc0, 0x6f, 0x9e, 0x89, 0x78, 0xe9, 0x85, 0x22, 0xfe, 0x21, 0xd4, 0x22, 0x1c, 0xac, - 0x56, 0xbf, 0x34, 0xe3, 0x11, 0x0d, 0x1e, 0x81, 0x8a, 0x7e, 0x6c, 0x9e, 0x8d, 0x02, 0xe9, 0xd9, - 0x8e, 0x77, 0x94, 0x28, 0xfa, 0xb1, 0x79, 0xb6, 0xcf, 0x18, 0xfd, 0x2f, 0xcb, 0x00, 0x9f, 0x4b, - 0xd3, 0x8d, 0x8f, 0xd1, 0x98, 0xe1, 0x8b, 0x3a, 0x5e, 0x14, 0x9b, 0x9e, 0x95, 0x04, 0x6c, 0x29, - 0x8c, 0x2f, 0x8a, 0x36, 0x5d, 0x46, 0xac, 0x22, 0x35, 0x23, 0x01, 0x91, 0x3f, 0x70, 0xbb, 0x49, - 0xa4, 0x6c, 0xbf, 0x82, 0x32, 0x47, 0xa6, 0x4a, 0x68, 0xe5, 0xc8, 0xf4, 0xa1, 0x81, 0x01, 0x90, - 0xe3, 0x7b, 0xc4, 0x34, 0x9a, 0x91, 0x80, 0xb8, 0xce, 0x24, 0x88, 0x9d, 0x31, 0x5b, 0xf8, 0x8a, - 0xa1, 0x20, 0x3c, 0x15, 0x5a, 0xf4, 0x4d, 0xeb, 0xd8, 0x27, 0x45, 0x52, 0x31, 0x52, 0x18, 0x57, - 0xf3, 0xbd, 0x23, 0x1f, 0x6f, 0xd7, 0x24, 0xe7, 0x31, 0x01, 0xf9, 0x2e, 0xb6, 0x3c, 0xc3, 0x2e, - 0x8d, 0xba, 0x52, 0x18, 0xe9, 0x22, 0xe5, 0xe8, 0x50, 0x9a, 0xf1, 0x24, 0x94, 0x51, 0x1f, 0xa8, - 0x1b, 0xa4, 0xdc, 0x52, 0x18, 0xf1, 0x0e, 0xb4, 0x91, 0x70, 0x66, 0x14, 0x39, 0x47, 0x9e, 0xb4, - 0x49, 0xbd, 0x54, 0x0d, 0x24, 0xe6, 0x9a, 0x42, 0xe9, 0x7f, 0x5d, 0x86, 0x3a, 0xeb, 0x82, 0x82, - 0xb3, 0x54, 0x7a, 0x2d, 0x67, 0xe9, 0x6d, 0xd0, 0x82, 0x50, 0xda, 0x8e, 0x95, 0xbc, 0xa3, 0x66, - 0x64, 0x08, 0x8a, 0xb2, 0xd0, 0x3b, 0x20, 0x7a, 0x36, 0x0d, 0x06, 0x84, 0x0e, 0x1d, 0xdf, 0x1b, - 0xd9, 0x4e, 0x74, 0x32, 0x3a, 0x38, 0x8f, 0x65, 0xa4, 0x68, 0xd1, 0xf2, 0xbd, 0x0d, 0x27, 0x3a, - 0x59, 0x47, 0x14, 0x92, 0x90, 0x65, 0x84, 0x64, 0xa3, 0x69, 0x28, 0x48, 0x7c, 0x0c, 0x1a, 0xf9, - 0xb0, 0xe4, 0xe4, 0x68, 0xe4, 0x9c, 0x5c, 0x79, 0xfe, 0x6c, 0x49, 0x20, 0x72, 0xca, 0xbb, 0x69, - 0x26, 0x38, 0xf4, 0xd2, 0x70, 0x32, 0x9a, 0x2b, 0x92, 0x61, 0xf6, 0xd2, 0x10, 0x35, 0x8c, 0xf2, - 0x5e, 0x1a, 0x63, 0xc4, 0x1d, 0x10, 0x13, 0xcf, 0xf2, 0xc7, 0x01, 0x32, 0x85, 0xb4, 0xd5, 0x21, - 0x5b, 0x74, 0xc8, 0x85, 0x7c, 0x0f, 0x1d, 0x55, 0xff, 0xe7, 0x32, 0xb4, 0x37, 0x9c, 0x50, 0x5a, - 0xb1, 0xb4, 0x37, 0xed, 0x23, 0x89, 0x67, 0x97, 0x5e, 0xec, 0xc4, 0xe7, 0xca, 0x0d, 0x55, 0x50, - 0x1a, 0x45, 0x94, 0x8b, 0x51, 0x3f, 0x4b, 0x58, 0x85, 0x12, 0x15, 0x0c, 0x88, 0x55, 0x00, 0x8e, - 0xf3, 0x28, 0x59, 0x51, 0x7d, 0x71, 0xb2, 0x42, 0xa3, 0x61, 0xd8, 0x14, 0x6f, 0x51, 0x7a, 0x63, - 0x22, 0xf1, 0xed, 0x6a, 0xb4, 0x6f, 0x83, 0x60, 0xf6, 0x68, 0x29, 0xfc, 0x6c, 0xf0, 0xc6, 0xd8, - 0x16, 0xef, 0x42, 0xd9, 0x0f, 0x88, 0xb8, 0x6a, 0xe9, 0xfc, 0x15, 0x56, 0xf6, 0x02, 0xa3, 0xec, - 0x07, 0x28, 0xc5, 0x1c, 0x83, 0x13, 0xe3, 0xa1, 0x14, 0xa3, 0xdd, 0xa3, 0xc8, 0xcf, 0x50, 0x3d, - 0x42, 0x87, 0xb6, 0xe9, 0xba, 0xfe, 0xcf, 0xa5, 0xbd, 0x1f, 0x4a, 0x3b, 0xe1, 0xc1, 0x02, 0x0e, - 0xb9, 0xc4, 0x33, 0xc7, 0x32, 0x0a, 0x4c, 0x4b, 0x2a, 0x16, 0xcc, 0x10, 0xfa, 0x15, 0x28, 0xef, - 0x05, 0xa2, 0x01, 0x95, 0xc1, 0xe6, 0xb0, 0x37, 0x87, 0x8d, 0x8d, 0xcd, 0x9d, 0x1e, 0x5a, 0x94, - 0x7a, 0xaf, 0xa1, 0x7f, 0x55, 0x06, 0xed, 0xf1, 0x24, 0x36, 0x51, 0xb7, 0x44, 0x78, 0xcb, 0x22, - 0x87, 0x66, 0xac, 0xf8, 0x16, 0x34, 0xa3, 0xd8, 0x0c, 0xc9, 0x2b, 0x61, 0xeb, 0xd4, 0x20, 0x78, - 0x18, 0x89, 0xf7, 0xa1, 0x26, 0xed, 0x23, 0x99, 0x98, 0x8b, 0xde, 0xf4, 0x7d, 0x0d, 0xee, 0x16, - 0xcb, 0x50, 0x8f, 0xac, 0x63, 0x39, 0x36, 0xfb, 0xd5, 0x6c, 0xe0, 0x80, 0x30, 0xec, 0x86, 0x1b, - 0xaa, 0x5f, 0xbc, 0x07, 0x35, 0x7c, 0x9b, 0x48, 0xc5, 0xb7, 0x14, 0x11, 0xe3, 0x33, 0xa8, 0x61, - 0xdc, 0x89, 0x8c, 0x67, 0x87, 0x7e, 0x30, 0xf2, 0x03, 0xa2, 0x7d, 0x77, 0xf5, 0x32, 0xe9, 0xb8, - 0xe4, 0x36, 0x2b, 0x1b, 0xa1, 0x1f, 0xec, 0x05, 0x46, 0xdd, 0xa6, 0x5f, 0x8c, 0x72, 0x68, 0x38, - 0x73, 0x04, 0x1b, 0x05, 0x0d, 0x31, 0x9c, 0xd2, 0x5a, 0x86, 0xe6, 0x58, 0xc6, 0xa6, 0x6d, 0xc6, - 0xa6, 0xb2, 0x0d, 0x6d, 0x56, 0x99, 0x8c, 0x33, 0xd2, 0x5e, 0xfd, 0x2e, 0xd4, 0x79, 0x69, 0xd1, - 0x84, 0xea, 0xee, 0xde, 0xee, 0x26, 0x93, 0x75, 0x6d, 0x67, 0xa7, 0x57, 0x42, 0xd4, 0xc6, 0xda, - 0x70, 0xad, 0x57, 0xc6, 0xd6, 0xf0, 0xc7, 0xfb, 0x9b, 0xbd, 0x8a, 0xfe, 0xf7, 0x25, 0x68, 0x26, - 0xeb, 0x88, 0xcf, 0x00, 0x50, 0x84, 0x47, 0xc7, 0x8e, 0x97, 0x3a, 0x78, 0x57, 0xf3, 0x3b, 0xad, - 0xe0, 0xab, 0x7e, 0x8e, 0xbd, 0x6c, 0x5e, 0x49, 0xe2, 0x09, 0x5e, 0x1c, 0x40, 0xb7, 0xd8, 0x39, - 0xc3, 0xd3, 0xbd, 0x9d, 0xb7, 0x2a, 0xdd, 0xd5, 0x37, 0x0a, 0x4b, 0xe3, 0x4c, 0x62, 0xed, 0x9c, - 0x81, 0xb9, 0x03, 0xcd, 0x04, 0x2d, 0x5a, 0xd0, 0xd8, 0xd8, 0xdc, 0x5a, 0x7b, 0xb2, 0x83, 0xac, - 0x02, 0x50, 0x1f, 0x6c, 0xef, 0x3e, 0xdc, 0xd9, 0xe4, 0x6b, 0xed, 0x6c, 0x0f, 0x86, 0xbd, 0xb2, - 0xfe, 0x87, 0x25, 0x68, 0x26, 0x9e, 0x8c, 0xf8, 0x10, 0x9d, 0x0f, 0x72, 0xd2, 0x94, 0x25, 0xa2, - 0xcc, 0x54, 0x2e, 0x6c, 0x35, 0x92, 0x7e, 0x94, 0x45, 0x52, 0xac, 0x89, 0x6f, 0x43, 0x40, 0x3e, - 0x6a, 0xae, 0x14, 0x12, 0x4b, 0x02, 0xaa, 0xb6, 0xef, 0x49, 0xe5, 0x30, 0x53, 0x9b, 0x78, 0xd0, - 0xf1, 0x2c, 0x99, 0x85, 0x13, 0x0d, 0x82, 0x87, 0x91, 0x1e, 0xb3, 0x1f, 0x9d, 0x1e, 0x2c, 0xdd, - 0xad, 0x94, 0xdf, 0xed, 0x42, 0x50, 0x52, 0xbe, 0x18, 0x94, 0x64, 0x86, 0xb3, 0xf6, 0x2a, 0xc3, - 0xa9, 0xff, 0xa2, 0x0e, 0x5d, 0x43, 0x46, 0xb1, 0x1f, 0x4a, 0xe5, 0x17, 0xbe, 0x4c, 0x84, 0xae, - 0x01, 0x84, 0x3c, 0x38, 0xdb, 0x5a, 0x53, 0x18, 0x8e, 0xa6, 0x5c, 0xdf, 0x22, 0xde, 0x55, 0x16, - 0x32, 0x85, 0xc5, 0x55, 0xd0, 0x0e, 0x4c, 0xeb, 0x84, 0x97, 0x65, 0x3b, 0xd9, 0x64, 0x04, 0xaf, - 0x6b, 0x5a, 0x96, 0x8c, 0xa2, 0x11, 0xb2, 0x02, 0x5b, 0x4b, 0x8d, 0x31, 0x8f, 0xe4, 0xb9, 0xb8, - 0x07, 0x10, 0x49, 0x2b, 0x94, 0x31, 0x75, 0xa3, 0xcd, 0xd4, 0xd6, 0x17, 0x7e, 0xf3, 0x6c, 0x69, - 0xee, 0x9f, 0x9e, 0x2d, 0x69, 0x03, 0xe9, 0x45, 0x4e, 0xec, 0x9c, 0x4a, 0x43, 0xe3, 0x41, 0x38, - 0xe3, 0xdb, 0xd0, 0x89, 0x64, 0x84, 0xc6, 0x76, 0x14, 0xfb, 0x27, 0x92, 0xfd, 0xf2, 0x99, 0x93, - 0xda, 0x6a, 0xdc, 0x10, 0x87, 0xa1, 0x22, 0x32, 0x3d, 0xdf, 0x3b, 0x1f, 0xfb, 0x93, 0x48, 0x59, - 0x96, 0x0c, 0x21, 0x56, 0xe0, 0x92, 0xf4, 0xac, 0xf0, 0x3c, 0xc0, 0x1b, 0xe1, 0x59, 0x46, 0x87, - 0x8e, 0x2b, 0x95, 0x43, 0xbf, 0x90, 0x75, 0x3d, 0x92, 0xe7, 0x5b, 0x8e, 0x2b, 0xf1, 0x5a, 0xa7, - 0xe6, 0xc4, 0x8d, 0x47, 0x94, 0x2f, 0x00, 0xbe, 0x16, 0x61, 0xd6, 0x6c, 0x3b, 0x14, 0xb7, 0x60, - 0x81, 0xbb, 0x43, 0xdf, 0x95, 0x8e, 0xcd, 0x8b, 0xb5, 0x68, 0xd4, 0x3c, 0x75, 0x18, 0x84, 0xa7, - 0xa5, 0x56, 0xe0, 0x12, 0x8f, 0xe5, 0x3b, 0x26, 0xa3, 0xdb, 0xbc, 0x35, 0x75, 0x0d, 0x54, 0x4f, - 0x71, 0xeb, 0xc0, 0x8c, 0x8f, 0x29, 0x0a, 0x48, 0xb6, 0xde, 0x37, 0xe3, 0x63, 0xf4, 0x0b, 0xb8, - 0xfb, 0xd0, 0x91, 0x2e, 0x47, 0xf1, 0x9a, 0xc1, 0x33, 0xb6, 0x10, 0x83, 0x7e, 0x81, 0x1a, 0xe0, - 0x87, 0x63, 0x93, 0xd3, 0xa0, 0x9a, 0xc1, 0x93, 0xb6, 0x08, 0x85, 0x5b, 0xa8, 0x17, 0xf5, 0x26, - 0x63, 0x4a, 0x88, 0x56, 0x0d, 0xf5, 0xc6, 0xbb, 0x93, 0xb1, 0xf8, 0x10, 0x7a, 0x8e, 0x67, 0x85, - 0x72, 0x2c, 0xbd, 0xd8, 0x74, 0x47, 0x87, 0xa1, 0x3f, 0xee, 0x2f, 0xd0, 0xa0, 0xf9, 0x1c, 0x7e, - 0x2b, 0xf4, 0xc7, 0x2a, 0x7b, 0x13, 0x98, 0x61, 0xec, 0x98, 0x6e, 0x5f, 0x24, 0xd9, 0x9b, 0x7d, - 0x46, 0x88, 0xf7, 0xa0, 0x83, 0xb3, 0x77, 0x53, 0x0b, 0x71, 0x89, 0x96, 0x29, 0x22, 0xc5, 0x77, - 0xe0, 0x4d, 0x27, 0x4a, 0xc1, 0xb5, 0x9f, 0x9b, 0xc8, 0xd1, 0xc4, 0x99, 0xfd, 0xcb, 0xb4, 0xe2, - 0x8b, 0xba, 0xf5, 0xe7, 0x15, 0x68, 0xa6, 0xe1, 0xeb, 0x6d, 0xd0, 0xc6, 0x89, 0xfe, 0x55, 0x8e, - 0x67, 0xa7, 0xa0, 0x94, 0x8d, 0xac, 0x5f, 0x5c, 0x83, 0xf2, 0xc9, 0xa9, 0xb2, 0x05, 0x9d, 0x15, - 0x2e, 0x60, 0x04, 0x07, 0x9f, 0xac, 0x3c, 0x7a, 0x6a, 0x94, 0x4f, 0x4e, 0xbf, 0x86, 0x1c, 0x8a, - 0x0f, 0x60, 0xde, 0x72, 0xa5, 0xe9, 0x8d, 0x32, 0x6f, 0x89, 0xf8, 0xdc, 0xe8, 0x12, 0x7a, 0x3f, - 0x75, 0x99, 0x6e, 0x42, 0xcd, 0x96, 0x6e, 0x6c, 0xe6, 0xf3, 0xe8, 0x7b, 0xa1, 0x69, 0xb9, 0x72, - 0x03, 0xd1, 0x06, 0xf7, 0xa2, 0x2d, 0x48, 0x43, 0xc6, 0x9c, 0x2d, 0x98, 0x11, 0x2e, 0xa6, 0x7a, - 0x06, 0xf2, 0x7a, 0xe6, 0x36, 0x2c, 0xc8, 0xb3, 0x80, 0x0c, 0xe0, 0x28, 0xcd, 0x90, 0xb0, 0x65, - 0xee, 0x25, 0x1d, 0x0f, 0x92, 0x4c, 0xc9, 0x47, 0xa8, 0x02, 0x99, 0xd4, 0x6d, 0xda, 0x4b, 0xa8, - 0x44, 0x6c, 0x4e, 0xad, 0x18, 0xc9, 0x10, 0xf1, 0x21, 0x68, 0x96, 0x6d, 0x8d, 0x98, 0x32, 0x9d, - 0xec, 0x6c, 0x0f, 0x36, 0x1e, 0x30, 0x49, 0x9a, 0x96, 0x6d, 0x71, 0x94, 0x50, 0x08, 0x65, 0xbb, - 0xaf, 0x13, 0xca, 0xe6, 0x8d, 0x7c, 0xaf, 0x60, 0xe4, 0xbf, 0xa8, 0x36, 0x1b, 0xbd, 0xa6, 0xfe, - 0x2e, 0x34, 0x93, 0x8d, 0x50, 0x75, 0x47, 0xd2, 0x53, 0x69, 0x0a, 0x52, 0xdd, 0x08, 0x0e, 0x23, - 0xdd, 0x82, 0xca, 0xa3, 0xa7, 0x03, 0xd2, 0xe0, 0x68, 0x4c, 0x6b, 0xe4, 0x7b, 0x51, 0x3b, 0xd5, - 0xea, 0xe5, 0x9c, 0x56, 0xbf, 0xce, 0x06, 0x91, 0x1e, 0x28, 0xc9, 0xed, 0xe6, 0x30, 0x48, 0x62, - 0x76, 0x06, 0xaa, 0x9c, 0xf6, 0x25, 0x40, 0xff, 0xff, 0x55, 0x68, 0x28, 0x7f, 0x0d, 0x8d, 0xe0, - 0x24, 0x4d, 0x4b, 0x62, 0xb3, 0x18, 0x48, 0xa7, 0x8e, 0x5f, 0xbe, 0x46, 0x55, 0x79, 0x75, 0x8d, - 0x4a, 0x7c, 0x06, 0xed, 0x80, 0xfb, 0xf2, 0xae, 0xe2, 0x9b, 0xf9, 0x39, 0xea, 0x97, 0xe6, 0xb5, - 0x82, 0x0c, 0x40, 0x52, 0x52, 0xa2, 0x3e, 0x36, 0x8f, 0x14, 0x05, 0x1a, 0x08, 0x0f, 0xcd, 0xa3, - 0xd7, 0xf2, 0xfb, 0xba, 0xe4, 0x40, 0xb6, 0xc9, 0x80, 0xa0, 0xaf, 0x98, 0x7f, 0x99, 0x4e, 0xd1, - 0xfd, 0xba, 0x0a, 0x9a, 0xe5, 0x8f, 0xc7, 0x0e, 0xf5, 0x75, 0x55, 0x1a, 0x8e, 0x10, 0xc3, 0x48, - 0xff, 0x75, 0x09, 0x1a, 0xea, 0x5e, 0x17, 0x8c, 0xfb, 0xfa, 0xf6, 0xee, 0x9a, 0xf1, 0xe3, 0x5e, - 0x09, 0x9d, 0x97, 0xed, 0xdd, 0x61, 0xaf, 0x2c, 0x34, 0xa8, 0x6d, 0xed, 0xec, 0xad, 0x0d, 0x7b, - 0x15, 0x34, 0xf8, 0xeb, 0x7b, 0x7b, 0x3b, 0xbd, 0xaa, 0x68, 0x43, 0x73, 0x63, 0x6d, 0xb8, 0x39, - 0xdc, 0x7e, 0xbc, 0xd9, 0xab, 0xe1, 0xd8, 0x87, 0x9b, 0x7b, 0xbd, 0x3a, 0x36, 0x9e, 0x6c, 0x6f, - 0xf4, 0x1a, 0xd8, 0xbf, 0xbf, 0x36, 0x18, 0xfc, 0x70, 0xcf, 0xd8, 0xe8, 0x35, 0xc9, 0x69, 0x18, - 0x1a, 0xdb, 0xbb, 0x0f, 0x7b, 0x1a, 0xb6, 0xf7, 0xd6, 0xbf, 0xd8, 0x7c, 0x30, 0xec, 0x01, 0x8e, - 0x5a, 0xdf, 0x7e, 0xc8, 0xab, 0xb7, 0xb0, 0xe7, 0x29, 0xb7, 0xdb, 0xfa, 0x7d, 0x68, 0xe5, 0xa8, - 0x88, 0xeb, 0x1a, 0x9b, 0x5b, 0xbd, 0x39, 0x3c, 0xcc, 0xd3, 0xb5, 0x9d, 0x27, 0xe8, 0x7d, 0x74, - 0x01, 0xa8, 0x39, 0xda, 0x59, 0xdb, 0x7d, 0xd8, 0x2b, 0x2b, 0xdf, 0xf5, 0x07, 0xd0, 0x7c, 0xe2, - 0xd8, 0xeb, 0xae, 0x6f, 0x9d, 0x20, 0x63, 0x1d, 0x98, 0x91, 0x54, 0x9c, 0x48, 0x6d, 0x8c, 0x14, - 0x48, 0x9c, 0x23, 0xc5, 0x05, 0x0a, 0x42, 0x5a, 0x7a, 0x93, 0xf1, 0x88, 0x2a, 0x9c, 0x15, 0x36, - 0xd1, 0xde, 0x64, 0xfc, 0xc4, 0xb1, 0x23, 0xfd, 0x04, 0x1a, 0x4f, 0x1c, 0x7b, 0xdf, 0xb4, 0x4e, - 0x48, 0x41, 0xe3, 0xd2, 0xa3, 0xc8, 0xf9, 0x52, 0x2a, 0x53, 0xae, 0x11, 0x66, 0xe0, 0x7c, 0x29, - 0xc5, 0x7b, 0x50, 0x27, 0x20, 0x49, 0xae, 0x90, 0x10, 0x26, 0xc7, 0x31, 0x54, 0x1f, 0x15, 0x18, - 0x5d, 0xd7, 0xb7, 0x46, 0xa1, 0x3c, 0xec, 0xbf, 0xc9, 0x6f, 0x43, 0x08, 0x43, 0x1e, 0xea, 0x7f, - 0x50, 0x4a, 0x6f, 0x4e, 0x75, 0xac, 0x25, 0xa8, 0x06, 0xa6, 0x75, 0xa2, 0x3c, 0xa9, 0x96, 0x5a, - 0x10, 0x0f, 0x63, 0x50, 0x87, 0xf8, 0x00, 0x9a, 0x8a, 0xc5, 0x92, 0x5d, 0x5b, 0x39, 0x5e, 0x34, - 0xd2, 0xce, 0x22, 0x4b, 0x54, 0x8a, 0x2c, 0x41, 0x71, 0x78, 0xe0, 0x3a, 0x31, 0x0b, 0x14, 0x8a, - 0x2d, 0x41, 0xfa, 0x27, 0x00, 0x59, 0x49, 0x71, 0x76, 0x25, 0xc7, 0x74, 0x1d, 0x33, 0x89, 0xeb, - 0x19, 0xd0, 0x77, 0xa1, 0x95, 0x2b, 0x44, 0x22, 0x6d, 0x4d, 0xd7, 0x45, 0xeb, 0xce, 0x5a, 0xa1, - 0x69, 0x34, 0x4c, 0xd7, 0x7d, 0x24, 0xcf, 0x23, 0x74, 0xea, 0xb9, 0x86, 0x59, 0x9e, 0x2a, 0x73, - 0xd1, 0x54, 0x83, 0x3b, 0xf5, 0x8f, 0xa0, 0xbe, 0x95, 0x84, 0x3e, 0x89, 0x98, 0x94, 0x5e, 0x24, - 0x26, 0xfa, 0xa7, 0xea, 0xcc, 0x54, 0x29, 0x13, 0xb7, 0x55, 0xad, 0x34, 0xe2, 0xca, 0x6c, 0x29, - 0xcb, 0x0c, 0xf1, 0x20, 0x55, 0x26, 0xa5, 0xc1, 0xfa, 0x06, 0x34, 0x5f, 0x5a, 0x7d, 0x56, 0x04, - 0x28, 0x67, 0x04, 0x98, 0x51, 0x8f, 0xd6, 0x7f, 0x0a, 0x90, 0xd5, 0x54, 0x95, 0xd4, 0xf2, 0x2a, - 0x28, 0xb5, 0xb7, 0xa0, 0x69, 0x1d, 0x3b, 0xae, 0x1d, 0x4a, 0xaf, 0x70, 0xeb, 0xac, 0x0a, 0x9b, - 0xf6, 0x8b, 0x1b, 0x50, 0xa5, 0x52, 0x71, 0x25, 0xd3, 0xe9, 0x69, 0x9d, 0x98, 0x7a, 0xf4, 0x33, - 0xe8, 0x70, 0xb4, 0xf4, 0x1a, 0xbe, 0x66, 0x51, 0xa9, 0x96, 0x2f, 0x28, 0xd5, 0x2b, 0x50, 0x27, - 0xe7, 0x25, 0xb9, 0x8d, 0x82, 0x5e, 0xa0, 0x6c, 0xff, 0xa1, 0x0c, 0xc0, 0x5b, 0xef, 0xfa, 0xb6, - 0x2c, 0xa6, 0x25, 0x4a, 0xd3, 0x69, 0x09, 0x01, 0xd5, 0xf4, 0x2b, 0x00, 0xcd, 0xa0, 0x76, 0x66, - 0x26, 0x55, 0xaa, 0x82, 0xcd, 0xe4, 0xdb, 0xa0, 0x91, 0x7f, 0xe9, 0x7c, 0x49, 0xa5, 0x1f, 0xdc, - 0x30, 0x43, 0xe4, 0x6b, 0xe2, 0xb5, 0x62, 0x4d, 0x3c, 0x2d, 0xcc, 0xd5, 0x79, 0x35, 0x2e, 0xcc, - 0xcd, 0xaa, 0x75, 0x52, 0xae, 0x28, 0x92, 0x61, 0x9c, 0x24, 0x3a, 0x18, 0x4a, 0x63, 0x76, 0x4d, - 0x8d, 0x35, 0x39, 0xdb, 0xe3, 0xf9, 0x23, 0xcb, 0xf7, 0x0e, 0x5d, 0xc7, 0x8a, 0x55, 0x0d, 0x1c, - 0x3c, 0xff, 0x81, 0xc2, 0xd0, 0x62, 0x9e, 0xf3, 0xb3, 0x09, 0xbb, 0x99, 0xb8, 0x18, 0x41, 0xe2, - 0x13, 0x68, 0xd1, 0x7d, 0x46, 0x51, 0x20, 0xad, 0xa8, 0xdf, 0xa6, 0x87, 0x26, 0xcb, 0xc2, 0x15, - 0xd2, 0x6d, 0xec, 0x1c, 0x04, 0xd2, 0x32, 0xc0, 0x49, 0x9a, 0x91, 0xfe, 0x19, 0xb4, 0x93, 0xd7, - 0xa4, 0xc2, 0xe0, 0xad, 0x34, 0x3a, 0x2e, 0x65, 0x9c, 0x92, 0x11, 0x7d, 0xbd, 0xdc, 0x2f, 0x25, - 0xf1, 0xb1, 0xfe, 0x37, 0xd5, 0x64, 0xb2, 0xaa, 0x5f, 0xbd, 0xfc, 0x45, 0x8a, 0x09, 0x8f, 0xf2, - 0x6b, 0x25, 0x3c, 0xbe, 0x03, 0x9a, 0x4d, 0x31, 0xbc, 0x73, 0x9a, 0x18, 0xcb, 0xc5, 0xe9, 0x78, - 0x5d, 0x45, 0xf9, 0x14, 0x3d, 0xa4, 0x83, 0x5f, 0xf1, 0xaa, 0xe9, 0xdb, 0xd5, 0x66, 0xbd, 0x5d, - 0xfd, 0x1b, 0xbe, 0x5d, 0xf6, 0x34, 0xdd, 0xc2, 0xd3, 0xbc, 0x03, 0x6d, 0xcf, 0xf7, 0x46, 0xde, - 0xc4, 0x75, 0xcd, 0x03, 0x57, 0xaa, 0x47, 0x6d, 0x79, 0xbe, 0xb7, 0xab, 0x50, 0x18, 0x47, 0xe4, - 0x87, 0xb0, 0xea, 0xe0, 0x07, 0x9e, 0xcf, 0x8d, 0x23, 0x05, 0xb3, 0x0c, 0x3d, 0xff, 0xe0, 0xa7, - 0xd2, 0x8a, 0x89, 0x92, 0x23, 0xd2, 0x19, 0x1c, 0x44, 0x74, 0x19, 0x8f, 0xa4, 0x43, 0x37, 0x79, - 0x9a, 0x99, 0x3a, 0x17, 0x98, 0x69, 0x8a, 0x69, 0xe6, 0x5f, 0x8f, 0x69, 0x3e, 0x05, 0x2d, 0xa5, - 0x79, 0x2e, 0xfb, 0xa0, 0x41, 0x6d, 0x7b, 0x77, 0x63, 0xf3, 0x47, 0xbd, 0x12, 0x1a, 0x79, 0x63, - 0xf3, 0xe9, 0xa6, 0x31, 0xd8, 0xec, 0x95, 0xd1, 0xcc, 0x6e, 0x6c, 0xee, 0x6c, 0x0e, 0x37, 0x7b, - 0x15, 0x76, 0xe0, 0xa8, 0x28, 0xe5, 0x3a, 0x96, 0x13, 0xeb, 0x7b, 0x30, 0x3f, 0xb5, 0xd3, 0x4c, - 0x35, 0xb8, 0x0c, 0x0d, 0x3f, 0x48, 0xfc, 0xf9, 0x94, 0x2f, 0xf7, 0x08, 0xb5, 0x6f, 0x3a, 0xa1, - 0x91, 0x74, 0xa3, 0xfd, 0xc8, 0xd0, 0xaf, 0xfa, 0x12, 0x40, 0x53, 0x3e, 0x99, 0x3e, 0x00, 0xc8, - 0x32, 0x3b, 0x68, 0xb8, 0x32, 0xca, 0xaa, 0xd4, 0x72, 0x9c, 0xd0, 0x74, 0x39, 0xd5, 0x59, 0xe5, - 0x17, 0xe5, 0x8f, 0xb8, 0x5f, 0x5f, 0x05, 0xed, 0xb1, 0x19, 0x7c, 0xce, 0x55, 0xe4, 0x9b, 0xd0, - 0xa5, 0xe0, 0x28, 0x09, 0x3b, 0xd9, 0x9e, 0xb4, 0x8d, 0x4e, 0x8a, 0x45, 0xf3, 0xa4, 0xff, 0x59, - 0x09, 0x2e, 0x3f, 0xf6, 0x4f, 0x65, 0x1a, 0x2c, 0xec, 0x9b, 0xe7, 0xae, 0x6f, 0xda, 0xaf, 0x90, - 0xad, 0x6b, 0x00, 0x91, 0x3f, 0xa1, 0xaa, 0x6e, 0x52, 0x03, 0x37, 0x34, 0xc6, 0x3c, 0x54, 0x1f, - 0x11, 0xc9, 0x28, 0xa6, 0x4e, 0xe5, 0x6b, 0x20, 0x8c, 0x5d, 0x6f, 0x40, 0x3d, 0x3e, 0xf3, 0xb2, - 0x8a, 0x7c, 0x2d, 0xa6, 0x92, 0xc8, 0xcc, 0xd8, 0xa1, 0x36, 0x3b, 0x76, 0xd0, 0x1f, 0x80, 0x36, - 0x3c, 0xa3, 0xa2, 0xc0, 0xa4, 0xe8, 0xbd, 0x97, 0x5e, 0xe2, 0x23, 0x96, 0xa7, 0x7c, 0xc4, 0x7f, - 0x2b, 0x41, 0x2b, 0x17, 0x04, 0x89, 0x77, 0xa0, 0x1a, 0x9f, 0x79, 0xc5, 0x0f, 0x70, 0x92, 0x4d, - 0x0c, 0xea, 0xba, 0x90, 0xf8, 0x2e, 0x5f, 0x48, 0x7c, 0x8b, 0x1d, 0x98, 0x67, 0xe3, 0x94, 0x5c, - 0x22, 0xc9, 0x0f, 0xbe, 0x3b, 0x15, 0x74, 0x71, 0xe1, 0x24, 0xb9, 0x92, 0x4a, 0x7a, 0x75, 0x8f, - 0x0a, 0xc8, 0xc5, 0x35, 0xb8, 0x34, 0x63, 0xd8, 0xd7, 0x29, 0xa1, 0xe9, 0x4b, 0xd0, 0x19, 0x9e, - 0x79, 0x43, 0x67, 0x2c, 0xa3, 0xd8, 0x1c, 0x07, 0xe4, 0x63, 0x2b, 0xe7, 0xa2, 0x6a, 0x94, 0xe3, - 0x48, 0x7f, 0x1f, 0xda, 0xfb, 0x52, 0x86, 0x86, 0x8c, 0x02, 0xdf, 0x63, 0xff, 0x51, 0x15, 0x2c, - 0xd8, 0x93, 0x51, 0x90, 0xfe, 0xff, 0x40, 0x33, 0xcc, 0xc3, 0x78, 0xdd, 0x8c, 0xad, 0xe3, 0xaf, - 0x93, 0x01, 0x7b, 0x1f, 0x1a, 0x01, 0xf3, 0x94, 0x0a, 0x8d, 0xdb, 0xe4, 0xd1, 0x28, 0x3e, 0x33, - 0x92, 0x4e, 0xfd, 0xdb, 0xd0, 0x55, 0xd5, 0xc3, 0xe4, 0x24, 0xb9, 0x12, 0x63, 0xe9, 0x85, 0x25, - 0x46, 0xfd, 0x08, 0x3a, 0xc9, 0x3c, 0xf6, 0x0f, 0x5e, 0x6b, 0xda, 0xd7, 0xff, 0x86, 0x43, 0xff, - 0xbf, 0x70, 0x69, 0x30, 0x39, 0x88, 0xac, 0xd0, 0x21, 0x79, 0x4f, 0xb6, 0x5b, 0x84, 0x66, 0x10, - 0xca, 0x43, 0xe7, 0x4c, 0x26, 0x22, 0x96, 0xc2, 0xe2, 0x16, 0x34, 0xc6, 0x48, 0x2f, 0x99, 0x09, - 0x6f, 0x16, 0xf0, 0x3f, 0xc6, 0x1e, 0x23, 0x19, 0xa0, 0x7f, 0x17, 0x2e, 0x17, 0x97, 0x57, 0x54, - 0x78, 0x17, 0x2a, 0x27, 0xa7, 0x91, 0x22, 0xf3, 0x42, 0x21, 0x61, 0x40, 0x1f, 0xcf, 0x60, 0xaf, - 0xfe, 0x57, 0x25, 0xa8, 0xec, 0x4e, 0xc6, 0xf9, 0x2f, 0x14, 0xab, 0xfc, 0x85, 0xe2, 0xd5, 0x7c, - 0x71, 0x83, 0x03, 0xd0, 0xac, 0x88, 0xf1, 0x36, 0x68, 0x87, 0x7e, 0xf8, 0x73, 0x33, 0xb4, 0xa5, - 0xad, 0x9c, 0x94, 0x0c, 0x41, 0xd1, 0xc5, 0x64, 0x1c, 0x28, 0x9b, 0x45, 0x6d, 0x71, 0x53, 0xb9, - 0x39, 0x1c, 0x14, 0x2e, 0x20, 0x65, 0x77, 0x27, 0xe3, 0x15, 0x57, 0x9a, 0x11, 0x59, 0x50, 0xf6, - 0x7c, 0xf4, 0xdb, 0xa0, 0xa5, 0x28, 0xd4, 0xd3, 0xbb, 0x83, 0xd1, 0xf6, 0x06, 0x27, 0x8c, 0x31, - 0x7c, 0x2a, 0xa1, 0x8e, 0x1e, 0xfe, 0x68, 0x77, 0x34, 0x1c, 0xf4, 0xca, 0xfa, 0x4f, 0xa0, 0x95, - 0xc8, 0xcf, 0xb6, 0x4d, 0xd5, 0x51, 0x12, 0xe0, 0x6d, 0xbb, 0x20, 0xcf, 0xdb, 0x14, 0xdf, 0x4a, - 0xcf, 0xde, 0x4e, 0x04, 0x8f, 0x81, 0xe2, 0x0d, 0x55, 0xa9, 0x35, 0xb9, 0xa1, 0xbe, 0x09, 0x0b, - 0x06, 0x55, 0x79, 0xd0, 0x9b, 0x48, 0x9e, 0xec, 0x0a, 0xd4, 0x3d, 0xdf, 0x96, 0xe9, 0x06, 0x0a, - 0xc2, 0x9d, 0xd5, 0x63, 0x2b, 0x95, 0x96, 0xbe, 0xbd, 0x84, 0x05, 0xd4, 0x92, 0x45, 0x46, 0x2b, - 0x54, 0x20, 0x4a, 0x53, 0x15, 0x08, 0xdc, 0x44, 0x7d, 0x6c, 0xc0, 0x9a, 0x3f, 0xf9, 0xc0, 0x60, - 0x11, 0x9a, 0x76, 0x14, 0x93, 0x58, 0x2b, 0xdd, 0x98, 0xc2, 0xfa, 0x5d, 0xb8, 0xb4, 0x16, 0x04, - 0xee, 0x79, 0x52, 0x9a, 0x55, 0x1b, 0xf5, 0xb3, 0xfa, 0x6d, 0x49, 0x05, 0xd5, 0x0c, 0xea, 0x5b, - 0xd0, 0x4e, 0xd2, 0x33, 0x8f, 0x65, 0x6c, 0x92, 0xc6, 0x73, 0x9d, 0x42, 0x7e, 0xa2, 0xc9, 0x88, - 0x61, 0xb1, 0xce, 0x31, 0x75, 0xbf, 0x15, 0xa8, 0x2b, 0x75, 0x2a, 0xa0, 0x6a, 0xf9, 0x36, 0x6f, - 0x54, 0x33, 0xa8, 0x8d, 0x5c, 0x35, 0x8e, 0x8e, 0x92, 0xa0, 0x60, 0x1c, 0x1d, 0xe9, 0xff, 0x59, - 0x86, 0xce, 0x3a, 0xa5, 0xed, 0x92, 0x33, 0xe6, 0x52, 0xda, 0xa5, 0x42, 0x4a, 0x3b, 0x9f, 0xbe, - 0x2e, 0x17, 0xd2, 0xd7, 0x85, 0x03, 0x55, 0x8a, 0x9e, 0xfc, 0x9b, 0xd0, 0x98, 0x78, 0xce, 0x59, - 0x62, 0x27, 0x34, 0xf2, 0x6d, 0xce, 0x86, 0x91, 0xb8, 0x01, 0x2d, 0x34, 0x25, 0x8e, 0xc7, 0x29, - 0x63, 0xce, 0xfb, 0xe6, 0x51, 0x53, 0x89, 0xe1, 0xfa, 0xcb, 0x13, 0xc3, 0x8d, 0x6f, 0x92, 0x18, - 0x6e, 0x7e, 0x83, 0xc4, 0xb0, 0x36, 0x9d, 0x18, 0x2e, 0xc6, 0x2a, 0x70, 0x21, 0x56, 0xb9, 0x06, - 0xc0, 0xdf, 0x4d, 0x1d, 0x4e, 0x5c, 0x57, 0xb9, 0x66, 0x1a, 0x61, 0xb6, 0x26, 0xae, 0xab, 0xef, - 0x40, 0x37, 0x79, 0x00, 0xa5, 0x28, 0x3e, 0x83, 0x79, 0x55, 0x18, 0x92, 0xa1, 0xca, 0x45, 0xb2, - 0xfe, 0x23, 0x29, 0xe5, 0xda, 0x8d, 0xea, 0x31, 0xba, 0x76, 0x1e, 0x8c, 0xf4, 0x5f, 0x95, 0xa0, - 0x53, 0x18, 0x21, 0xee, 0x67, 0x65, 0xa6, 0x12, 0xc9, 0x7a, 0xff, 0xc2, 0x2a, 0x2f, 0x2f, 0x35, - 0x95, 0xa7, 0x4a, 0x4d, 0xfa, 0x9d, 0xb4, 0x80, 0xa4, 0xca, 0x46, 0x73, 0x69, 0xd9, 0x88, 0x2a, - 0x2d, 0x6b, 0xc3, 0xa1, 0xd1, 0x2b, 0x8b, 0x3a, 0x94, 0x77, 0x07, 0xbd, 0x8a, 0xfe, 0xbb, 0x32, - 0x74, 0x36, 0xcf, 0x02, 0xfa, 0x86, 0xf0, 0x95, 0x81, 0x5f, 0x8e, 0xfb, 0xca, 0x05, 0xee, 0xcb, - 0xf1, 0x51, 0x45, 0xd5, 0xcd, 0x99, 0x8f, 0x30, 0x14, 0xe4, 0x34, 0xb5, 0xe2, 0x2f, 0x86, 0xfe, - 0xf7, 0xf0, 0x57, 0x41, 0x3b, 0xc1, 0x74, 0x7d, 0x74, 0x07, 0xba, 0x09, 0x71, 0x15, 0xfb, 0xbc, - 0x96, 0xe0, 0xf3, 0x37, 0xce, 0x6e, 0x9a, 0xb1, 0x64, 0x40, 0xff, 0x93, 0x32, 0x68, 0xcc, 0x8d, - 0x78, 0x9f, 0x0f, 0x95, 0x8d, 0x28, 0x65, 0xa5, 0xb8, 0xb4, 0x73, 0xe5, 0x91, 0x3c, 0xcf, 0xec, - 0xc4, 0xcc, 0xf2, 0xb5, 0xca, 0x6b, 0x72, 0x02, 0x87, 0xf2, 0x9a, 0x57, 0x41, 0x63, 0x17, 0x6f, - 0xa2, 0xea, 0x40, 0x55, 0x83, 0x7d, 0xbe, 0x27, 0x0e, 0x59, 0xa9, 0x58, 0x86, 0x63, 0xf5, 0x52, - 0xd4, 0x2e, 0x86, 0xca, 0x9d, 0x24, 0xdc, 0x2a, 0x50, 0xa4, 0x31, 0x4d, 0x91, 0x63, 0x68, 0xa8, - 0xb3, 0x61, 0x34, 0xf1, 0x64, 0xf7, 0xd1, 0xee, 0xde, 0x0f, 0x77, 0x0b, 0x3c, 0x9a, 0xc6, 0x1b, - 0xe5, 0x7c, 0xbc, 0x51, 0x41, 0xfc, 0x83, 0xbd, 0x27, 0xbb, 0xc3, 0x5e, 0x55, 0x74, 0x40, 0xa3, - 0xe6, 0xc8, 0xd8, 0x7c, 0xda, 0xab, 0x51, 0x5a, 0xf0, 0xc1, 0xe7, 0x9b, 0x8f, 0xd7, 0x7a, 0xf5, - 0xb4, 0x30, 0xda, 0xd0, 0xff, 0xb8, 0x04, 0x0b, 0x4c, 0x90, 0x7c, 0x1e, 0x2c, 0xff, 0xef, 0x83, - 0x2a, 0xff, 0xfb, 0xe0, 0x7f, 0x36, 0xf5, 0x85, 0x93, 0x26, 0x4e, 0xf2, 0x29, 0x02, 0x67, 0x6b, - 0x9b, 0x13, 0x47, 0x7d, 0x81, 0xf0, 0x77, 0x25, 0x58, 0xe4, 0xf8, 0xe2, 0x61, 0x68, 0x06, 0xc7, - 0x3f, 0xd8, 0xb9, 0x90, 0x84, 0x79, 0x91, 0xd7, 0x7d, 0x13, 0xba, 0xf4, 0xff, 0x8c, 0x9f, 0xb9, - 0x23, 0x15, 0xda, 0xf3, 0xeb, 0x76, 0x14, 0x96, 0x17, 0x12, 0x1f, 0x43, 0x9b, 0xff, 0xc7, 0x41, - 0xe5, 0x8b, 0x42, 0x19, 0xbd, 0x10, 0xdd, 0xb4, 0x78, 0x14, 0x17, 0xfd, 0xef, 0xa7, 0x93, 0xb2, - 0x7c, 0xcd, 0xc5, 0x4a, 0xb9, 0x9a, 0x32, 0xa4, 0x2c, 0xce, 0x5d, 0xb8, 0x3a, 0xf3, 0x1e, 0x8a, - 0xed, 0x73, 0x59, 0x74, 0xe6, 0x36, 0xfd, 0x77, 0x25, 0x68, 0xae, 0x4f, 0xdc, 0x13, 0x32, 0xa8, - 0xd7, 0x00, 0xa4, 0x7d, 0x24, 0xd5, 0x1f, 0x22, 0x4a, 0xa4, 0x42, 0x34, 0xc4, 0xf0, 0x5f, 0x22, - 0x3e, 0x03, 0xe0, 0x3b, 0x8e, 0xc6, 0x66, 0xa0, 0x9e, 0x88, 0xca, 0xda, 0xc9, 0x02, 0xea, 0x2e, - 0x8f, 0xcd, 0x40, 0x95, 0xb5, 0xa3, 0x04, 0xce, 0xca, 0xfd, 0x95, 0x97, 0x94, 0xfb, 0x17, 0x77, - 0xa1, 0x5b, 0x5c, 0x62, 0x46, 0x8c, 0xf9, 0x7e, 0xf1, 0x93, 0xaa, 0x8b, 0x34, 0xcc, 0xc5, 0x03, - 0x5f, 0xc0, 0xfc, 0x54, 0x25, 0xe4, 0x65, 0x7a, 0xb5, 0x20, 0x32, 0xe5, 0x69, 0x91, 0xf9, 0x08, - 0x16, 0x86, 0x66, 0x74, 0xa2, 0x62, 0xa4, 0xcc, 0x11, 0x88, 0xcd, 0xe8, 0x64, 0x94, 0x12, 0xb5, - 0x8e, 0xe0, 0xb6, 0xad, 0xdf, 0x07, 0x91, 0x1f, 0xad, 0xe8, 0x8f, 0xb1, 0x2f, 0x0e, 0x1f, 0xcb, - 0xd8, 0x4c, 0x3c, 0x16, 0x44, 0x20, 0xf1, 0x56, 0xff, 0xb6, 0x04, 0x55, 0x0c, 0x2a, 0xc4, 0x1d, - 0xd0, 0x3e, 0x97, 0x66, 0x18, 0x1f, 0x48, 0x33, 0x16, 0x85, 0x00, 0x62, 0x91, 0xe8, 0x96, 0x7d, - 0xa6, 0xa5, 0xcf, 0xdd, 0x2b, 0x89, 0x15, 0xfe, 0x88, 0x3c, 0xf9, 0x38, 0xbe, 0x93, 0x04, 0x27, - 0x14, 0xbc, 0x2c, 0x16, 0xe6, 0xeb, 0x73, 0xcb, 0x34, 0xfe, 0x0b, 0xdf, 0xf1, 0x1e, 0xf0, 0xa7, - 0xcb, 0x62, 0x3a, 0x98, 0x99, 0x9e, 0x21, 0xee, 0x40, 0x7d, 0x3b, 0xc2, 0xa8, 0xe9, 0xe2, 0x50, - 0x22, 0x7e, 0x3e, 0xa0, 0xd2, 0xe7, 0x56, 0xff, 0xbc, 0x06, 0xd5, 0x9f, 0xc8, 0xd0, 0x17, 0x1f, - 0x41, 0x43, 0x7d, 0xd4, 0x26, 0x72, 0x1f, 0xaf, 0x2d, 0x52, 0x02, 0x64, 0xea, 0x6b, 0x37, 0xda, - 0xa5, 0xc7, 0xef, 0x97, 0xd5, 0xff, 0x44, 0xf6, 0xcd, 0xdd, 0x85, 0x43, 0x7d, 0x0a, 0xbd, 0x41, - 0x1c, 0x4a, 0x73, 0x9c, 0x1b, 0x5e, 0x24, 0xd5, 0xac, 0x62, 0x22, 0xd1, 0xeb, 0x36, 0xd4, 0x39, - 0x34, 0x9d, 0x9a, 0x30, 0x5d, 0x29, 0xa4, 0xc1, 0x1f, 0x40, 0x6b, 0x70, 0xec, 0x4f, 0x5c, 0x7b, - 0x20, 0xc3, 0x53, 0x29, 0x72, 0xd1, 0xd5, 0x62, 0xae, 0xad, 0xcf, 0x89, 0xfb, 0x50, 0xc7, 0x17, - 0x09, 0xc7, 0x62, 0x21, 0x17, 0x81, 0x31, 0x9b, 0x2c, 0x8a, 0x3c, 0x2a, 0xa1, 0x94, 0xf8, 0x00, - 0x34, 0x0e, 0x05, 0x30, 0x10, 0x68, 0xa8, 0xe8, 0x82, 0x8f, 0x91, 0x0b, 0x11, 0xf4, 0x39, 0xb1, - 0x0c, 0x90, 0x8b, 0x69, 0x5f, 0x36, 0xf2, 0x63, 0xe8, 0x3c, 0x20, 0x4d, 0xb8, 0x17, 0xae, 0x1d, - 0xf8, 0x61, 0x2c, 0xa6, 0x3f, 0xb4, 0x5d, 0x9c, 0x46, 0xe8, 0x73, 0x18, 0x1d, 0x0e, 0xc3, 0x73, - 0x1e, 0xbf, 0xa0, 0x52, 0x01, 0xd9, 0x7e, 0x33, 0xe8, 0x22, 0x3e, 0x49, 0xe5, 0x2a, 0x8d, 0x00, - 0x66, 0x95, 0x1d, 0x99, 0x44, 0x2c, 0x03, 0x44, 0x22, 0xc8, 0xc2, 0x13, 0xf1, 0x06, 0x97, 0x40, - 0xa7, 0xc2, 0x95, 0x8b, 0x53, 0xb2, 0x50, 0x84, 0xa7, 0x5c, 0x08, 0x4d, 0xa6, 0xa6, 0x7c, 0x0b, - 0xda, 0xf9, 0xb0, 0x42, 0x50, 0x2d, 0x6f, 0x46, 0xa0, 0x51, 0x9c, 0xb6, 0xfa, 0xef, 0x35, 0xa8, - 0xff, 0xd0, 0x0f, 0x4f, 0x64, 0x28, 0x6e, 0x41, 0x9d, 0x8a, 0xd9, 0x4a, 0x96, 0xd2, 0xc2, 0xf6, - 0x2c, 0xda, 0xbd, 0x07, 0x1a, 0x71, 0x06, 0x0a, 0x3b, 0xf3, 0x2b, 0xfd, 0x41, 0x8d, 0x17, 0xe7, - 0xb4, 0x2f, 0x31, 0x77, 0x97, 0xb9, 0x35, 0xfd, 0x78, 0xa5, 0x50, 0x6c, 0x5e, 0xa4, 0x27, 0x7d, - 0xf4, 0x74, 0x80, 0xf2, 0x79, 0xaf, 0x84, 0x3e, 0xc5, 0x80, 0x1f, 0x0f, 0x07, 0x65, 0x7f, 0x7c, - 0x61, 0xf1, 0xcf, 0xfe, 0x69, 0xa2, 0xcf, 0x89, 0xbb, 0x50, 0x57, 0x26, 0x66, 0x21, 0x53, 0x84, - 0xc9, 0x0d, 0x7b, 0x79, 0x94, 0x9a, 0x70, 0x1f, 0xea, 0x6c, 0x8e, 0x79, 0x42, 0x21, 0xae, 0x61, - 0x3e, 0x2d, 0x7a, 0xda, 0xfa, 0x9c, 0xb8, 0x0d, 0x0d, 0x55, 0xaa, 0x16, 0x33, 0xea, 0xd6, 0x17, - 0x5e, 0xac, 0xce, 0xbe, 0x16, 0xaf, 0x5f, 0x70, 0x6a, 0x79, 0xfd, 0xa2, 0x2b, 0xc6, 0xa2, 0x6f, - 0x48, 0x4b, 0x3a, 0xb9, 0xc4, 0x9c, 0x48, 0x28, 0x32, 0x43, 0x7f, 0x7d, 0x0a, 0x9d, 0x42, 0x12, - 0x4f, 0xf4, 0x13, 0xb6, 0x98, 0xce, 0xeb, 0x5d, 0xd0, 0x1a, 0xdf, 0x05, 0x4d, 0xa5, 0x1d, 0x0e, - 0x14, 0x63, 0xcc, 0x48, 0x72, 0x2c, 0x5e, 0xcc, 0x3b, 0x90, 0x2a, 0xf8, 0x11, 0x5c, 0x9a, 0x61, - 0x5b, 0x05, 0x7d, 0x3a, 0xfd, 0x62, 0xe7, 0x61, 0x71, 0xe9, 0x85, 0xfd, 0x29, 0x01, 0xbe, 0x99, - 0x38, 0x7d, 0x0f, 0x20, 0x33, 0x31, 0x2c, 0x1b, 0x17, 0x0c, 0xd4, 0xe2, 0x95, 0x69, 0x74, 0xb2, - 0xe9, 0x7a, 0xff, 0x37, 0x5f, 0x5d, 0x2f, 0xfd, 0xf6, 0xab, 0xeb, 0xa5, 0x7f, 0xfd, 0xea, 0x7a, - 0xe9, 0x57, 0xbf, 0xbf, 0x3e, 0xf7, 0xdb, 0xdf, 0x5f, 0x9f, 0xfb, 0xc7, 0xdf, 0x5f, 0x9f, 0x3b, - 0xa8, 0xd3, 0x3f, 0x45, 0x3f, 0xfe, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6d, 0x06, 0x7d, 0x1c, - 0x9f, 0x3a, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// RaftClient is the client API for Raft service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RaftClient interface { - Heartbeat(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Raft_HeartbeatClient, error) - RaftMessage(ctx context.Context, opts ...grpc.CallOption) (Raft_RaftMessageClient, error) - JoinCluster(ctx context.Context, in *RaftContext, opts ...grpc.CallOption) (*api.Payload, error) - IsPeer(ctx context.Context, in *RaftContext, opts ...grpc.CallOption) (*PeerResponse, error) -} - -type raftClient struct { - cc *grpc.ClientConn -} - -func NewRaftClient(cc *grpc.ClientConn) RaftClient { - return &raftClient{cc} -} - -func (c *raftClient) Heartbeat(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Raft_HeartbeatClient, error) { - stream, err := c.cc.NewStream(ctx, &_Raft_serviceDesc.Streams[0], "/pb.Raft/Heartbeat", opts...) - if err != nil { - return nil, err - } - x := &raftHeartbeatClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *DeleteNsRequest) GetNamespace() uint64 { + if x != nil { + return x.Namespace } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Raft_HeartbeatClient interface { - Recv() (*HealthInfo, error) - grpc.ClientStream + return 0 } -type raftHeartbeatClient struct { - grpc.ClientStream -} +type TaskStatusRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *raftHeartbeatClient) Recv() (*HealthInfo, error) { - m := new(HealthInfo) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil + TaskId uint64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` } -func (c *raftClient) RaftMessage(ctx context.Context, opts ...grpc.CallOption) (Raft_RaftMessageClient, error) { - stream, err := c.cc.NewStream(ctx, &_Raft_serviceDesc.Streams[1], "/pb.Raft/RaftMessage", opts...) - if err != nil { - return nil, err +func (x *TaskStatusRequest) Reset() { + *x = TaskStatusRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - x := &raftRaftMessageClient{stream} - return x, nil -} - -type Raft_RaftMessageClient interface { - Send(*RaftBatch) error - CloseAndRecv() (*api.Payload, error) - grpc.ClientStream } -type raftRaftMessageClient struct { - grpc.ClientStream +func (x *TaskStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *raftRaftMessageClient) Send(m *RaftBatch) error { - return x.ClientStream.SendMsg(m) -} +func (*TaskStatusRequest) ProtoMessage() {} -func (x *raftRaftMessageClient) CloseAndRecv() (*api.Payload, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(api.Payload) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *TaskStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_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 m, nil + return mi.MessageOf(x) } -func (c *raftClient) JoinCluster(ctx context.Context, in *RaftContext, opts ...grpc.CallOption) (*api.Payload, error) { - out := new(api.Payload) - err := c.cc.Invoke(ctx, "/pb.Raft/JoinCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use TaskStatusRequest.ProtoReflect.Descriptor instead. +func (*TaskStatusRequest) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{74} } -func (c *raftClient) IsPeer(ctx context.Context, in *RaftContext, opts ...grpc.CallOption) (*PeerResponse, error) { - out := new(PeerResponse) - err := c.cc.Invoke(ctx, "/pb.Raft/IsPeer", in, out, opts...) - if err != nil { - return nil, err +func (x *TaskStatusRequest) GetTaskId() uint64 { + if x != nil { + return x.TaskId } - return out, nil -} - -// RaftServer is the server API for Raft service. -type RaftServer interface { - Heartbeat(*api.Payload, Raft_HeartbeatServer) error - RaftMessage(Raft_RaftMessageServer) error - JoinCluster(context.Context, *RaftContext) (*api.Payload, error) - IsPeer(context.Context, *RaftContext) (*PeerResponse, error) -} - -// UnimplementedRaftServer can be embedded to have forward compatible implementations. -type UnimplementedRaftServer struct { + return 0 } -func (*UnimplementedRaftServer) Heartbeat(req *api.Payload, srv Raft_HeartbeatServer) error { - return status.Errorf(codes.Unimplemented, "method Heartbeat not implemented") -} -func (*UnimplementedRaftServer) RaftMessage(srv Raft_RaftMessageServer) error { - return status.Errorf(codes.Unimplemented, "method RaftMessage not implemented") -} -func (*UnimplementedRaftServer) JoinCluster(ctx context.Context, req *RaftContext) (*api.Payload, error) { - return nil, status.Errorf(codes.Unimplemented, "method JoinCluster not implemented") -} -func (*UnimplementedRaftServer) IsPeer(ctx context.Context, req *RaftContext) (*PeerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsPeer not implemented") -} +type TaskStatusResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func RegisterRaftServer(s *grpc.Server, srv RaftServer) { - s.RegisterService(&_Raft_serviceDesc, srv) + TaskMeta uint64 `protobuf:"varint,1,opt,name=task_meta,json=taskMeta,proto3" json:"task_meta,omitempty"` } -func _Raft_Heartbeat_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(api.Payload) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *TaskStatusResponse) Reset() { + *x = TaskStatusResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(RaftServer).Heartbeat(m, &raftHeartbeatServer{stream}) } -type Raft_HeartbeatServer interface { - Send(*HealthInfo) error - grpc.ServerStream +func (x *TaskStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type raftHeartbeatServer struct { - grpc.ServerStream -} - -func (x *raftHeartbeatServer) Send(m *HealthInfo) error { - return x.ServerStream.SendMsg(m) -} +func (*TaskStatusResponse) ProtoMessage() {} -func _Raft_RaftMessage_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(RaftServer).RaftMessage(&raftRaftMessageServer{stream}) +func (x *TaskStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_pb_proto_msgTypes[75] + 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) } -type Raft_RaftMessageServer interface { - SendAndClose(*api.Payload) error - Recv() (*RaftBatch, error) - grpc.ServerStream +// Deprecated: Use TaskStatusResponse.ProtoReflect.Descriptor instead. +func (*TaskStatusResponse) Descriptor() ([]byte, []int) { + return file_pb_proto_rawDescGZIP(), []int{75} } -type raftRaftMessageServer struct { - grpc.ServerStream +func (x *TaskStatusResponse) GetTaskMeta() uint64 { + if x != nil { + return x.TaskMeta + } + return 0 } -func (x *raftRaftMessageServer) SendAndClose(m *api.Payload) error { - return x.ServerStream.SendMsg(m) +var File_pb_proto protoreflect.FileDescriptor + +var file_pb_proto_rawDesc = []byte{ + 0x0a, 0x08, 0x70, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x2e, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x67, 0x72, 0x61, 0x70, + 0x68, 0x2d, 0x69, 0x6f, 0x2f, 0x64, 0x67, 0x6f, 0x2f, 0x76, 0x32, 0x34, 0x30, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x67, 0x72, 0x61, 0x70, + 0x68, 0x2d, 0x69, 0x6f, 0x2f, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x34, 0x2f, 0x70, + 0x62, 0x2f, 0x70, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1a, 0x0a, 0x04, 0x4c, 0x69, + 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x06, + 0x52, 0x04, 0x75, 0x69, 0x64, 0x73, 0x22, 0x4d, 0x0a, 0x09, 0x54, 0x61, 0x73, 0x6b, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x03, 0x76, 0x61, 0x6c, 0x12, 0x2e, 0x0a, 0x08, 0x76, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6f, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x76, 0x61, + 0x6c, 0x54, 0x79, 0x70, 0x65, 0x22, 0x4f, 0x0a, 0x0b, 0x53, 0x72, 0x63, 0x46, 0x75, 0x6e, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x18, 0x0a, 0x07, + 0x69, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, + 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xb7, 0x03, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x12, 0x0a, 0x04, 0x61, 0x74, 0x74, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x61, 0x74, 0x74, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x6e, 0x67, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x66, + 0x74, 0x65, 0x72, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x61, + 0x66, 0x74, 0x65, 0x72, 0x55, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x6f, 0x5f, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x6f, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x08, 0x75, 0x69, 0x64, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x07, + 0x75, 0x69, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x08, 0x73, 0x72, 0x63, 0x5f, 0x66, + 0x75, 0x6e, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x53, + 0x72, 0x63, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x73, 0x72, 0x63, 0x46, + 0x75, 0x6e, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x12, 0x30, 0x0a, + 0x0b, 0x66, 0x61, 0x63, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x61, 0x63, 0x65, 0x74, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x52, 0x0a, 0x66, 0x61, 0x63, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, + 0x33, 0x0a, 0x0d, 0x66, 0x61, 0x63, 0x65, 0x74, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x54, 0x72, 0x65, 0x65, 0x52, 0x0c, 0x66, 0x61, 0x63, 0x65, 0x74, 0x73, 0x46, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x5f, 0x61, + 0x6c, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x64, + 0x41, 0x6c, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x73, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x65, 0x61, 0x64, 0x54, 0x73, 0x12, 0x14, 0x0a, 0x05, + 0x63, 0x61, 0x63, 0x68, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x61, 0x63, + 0x68, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x72, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x05, 0x66, 0x69, 0x72, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, + 0x22, 0x32, 0x0a, 0x09, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x25, 0x0a, + 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, + 0x70, 0x62, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x22, 0x1e, 0x0a, 0x08, 0x4c, 0x61, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, + 0x6c, 0x61, 0x6e, 0x67, 0x22, 0xa0, 0x03, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, + 0x27, 0x0a, 0x0a, 0x75, 0x69, 0x64, 0x5f, 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x09, 0x75, + 0x69, 0x64, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x30, 0x0a, 0x0c, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x5f, 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, + 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0b, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x5f, + 0x64, 0x65, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x73, 0x65, 0x63, 0x74, 0x44, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x0c, 0x66, 0x61, 0x63, + 0x65, 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x61, 0x63, 0x65, 0x74, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x0b, 0x66, 0x61, 0x63, 0x65, 0x74, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x2d, 0x0a, 0x0b, + 0x6c, 0x61, 0x6e, 0x67, 0x5f, 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x18, 0x06, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x61, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x0a, 0x6c, 0x61, 0x6e, 0x67, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x6c, + 0x69, 0x73, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, + 0x44, 0x0a, 0x0e, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x4d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x4d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 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, 0x04, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x45, 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72, + 0x12, 0x12, 0x0a, 0x04, 0x61, 0x74, 0x74, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x61, 0x74, 0x74, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x6e, 0x67, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x6e, 0x67, 0x73, 0x22, 0x9e, + 0x01, 0x0a, 0x0b, 0x53, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, + 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, + 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, + 0x27, 0x0a, 0x0a, 0x75, 0x69, 0x64, 0x5f, 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x09, 0x75, + 0x69, 0x64, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, + 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, + 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x65, 0x61, 0x64, 0x54, 0x73, 0x22, + 0x35, 0x0a, 0x0a, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x27, 0x0a, + 0x0a, 0x75, 0x69, 0x64, 0x5f, 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x09, 0x75, 0x69, 0x64, + 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x22, 0x87, 0x01, 0x0a, 0x0b, 0x52, 0x61, 0x66, 0x74, 0x43, + 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x06, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, + 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, + 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x74, 0x73, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x54, + 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x6c, 0x65, 0x61, 0x72, 0x6e, 0x65, 0x72, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x4c, 0x65, 0x61, 0x72, 0x6e, 0x65, 0x72, + 0x22, 0x85, 0x02, 0x0a, 0x06, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6c, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x6d, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x6d, 0x44, 0x65, 0x61, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, + 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x6c, 0x65, 0x61, 0x72, 0x6e, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x6c, + 0x65, 0x61, 0x72, 0x6e, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x4f, 0x6e, + 0x6c, 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x5f, 0x69, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x66, 0x6f, 0x72, 0x63, + 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0xdd, 0x02, 0x0a, 0x05, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x12, 0x30, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x73, 0x12, 0x30, 0x0a, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x5f, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, 0x6e, 0x61, + 0x70, 0x73, 0x68, 0x6f, 0x74, 0x54, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x73, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x73, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x5f, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x63, 0x68, 0x65, 0x63, + 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x54, 0x73, 0x1a, 0x46, 0x0a, 0x0c, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x4d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x1a, 0x46, 0x0a, 0x0c, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x20, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6f, 0x0a, 0x07, 0x4c, 0x69, 0x63, 0x65, + 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x4e, 0x6f, + 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x4e, 0x6f, + 0x64, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x54, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x54, 0x73, 0x12, + 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0xac, 0x04, 0x0a, 0x0c, 0x5a, 0x65, + 0x72, 0x6f, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x41, 0x0a, 0x0b, 0x73, 0x6e, + 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x5a, 0x65, 0x72, 0x6f, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x54, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x0a, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x54, 0x73, 0x12, 0x22, 0x0a, + 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, + 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x12, 0x22, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x06, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x78, 0x55, 0x49, 0x44, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x55, 0x49, 0x44, 0x12, 0x1a, 0x0a, + 0x08, 0x6d, 0x61, 0x78, 0x54, 0x78, 0x6e, 0x54, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x08, 0x6d, 0x61, 0x78, 0x54, 0x78, 0x6e, 0x54, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x78, + 0x4e, 0x73, 0x49, 0x44, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x4e, + 0x73, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x52, 0x61, 0x66, 0x74, 0x49, 0x64, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x52, 0x61, 0x66, 0x74, 0x49, + 0x64, 0x12, 0x21, 0x0a, 0x03, 0x74, 0x78, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x54, 0x78, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, + 0x03, 0x74, 0x78, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, + 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x63, + 0x65, 0x6e, 0x73, 0x65, 0x52, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, + 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x5a, 0x65, 0x72, 0x6f, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x30, 0x0a, 0x09, 0x64, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x6e, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, + 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x52, 0x08, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x73, 0x12, 0x24, 0x0a, + 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, + 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x54, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, 0x22, 0xf1, 0x03, 0x0a, 0x0f, 0x4d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 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, 0x37, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, + 0x34, 0x0a, 0x05, 0x7a, 0x65, 0x72, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x2e, 0x5a, 0x65, 0x72, 0x6f, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, + 0x7a, 0x65, 0x72, 0x6f, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x78, 0x55, 0x49, 0x44, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x55, 0x49, 0x44, 0x12, 0x1a, 0x0a, + 0x08, 0x6d, 0x61, 0x78, 0x54, 0x78, 0x6e, 0x54, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x08, 0x6d, 0x61, 0x78, 0x54, 0x78, 0x6e, 0x54, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x78, + 0x4e, 0x73, 0x49, 0x44, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x4e, + 0x73, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x52, 0x61, 0x66, 0x74, 0x49, 0x64, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x52, 0x61, 0x66, 0x74, 0x49, + 0x64, 0x12, 0x24, 0x0a, 0x07, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x07, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x07, + 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x07, 0x6c, 0x69, 0x63, + 0x65, 0x6e, 0x73, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, + 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x52, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, + 0x1a, 0x44, 0x0a, 0x0b, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x44, 0x0a, 0x0a, 0x5a, 0x65, 0x72, 0x6f, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x81, 0x01, 0x0a, + 0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x12, 0x22, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x06, 0x6d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, + 0x68, 0x69, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, + 0x22, 0xb8, 0x02, 0x0a, 0x0a, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 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, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, + 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, + 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x63, 0x68, + 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x63, 0x68, + 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x6e, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x07, 0x6f, 0x6e, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x69, 0x6e, 0x67, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x65, 0x5f, 0x66, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x65, + 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, + 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, + 0x6d, 0x61, 0x78, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x22, 0xf8, 0x01, 0x0a, 0x06, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, + 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, + 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6f, 0x6e, 0x5f, 0x64, 0x69, 0x73, 0x6b, + 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6f, 0x6e, + 0x44, 0x69, 0x73, 0x6b, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x17, + 0x0a, 0x07, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x06, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x75, 0x6e, 0x63, 0x6f, 0x6d, + 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x11, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, + 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0xdc, 0x02, 0x0a, 0x0c, 0x44, 0x69, 0x72, 0x65, 0x63, + 0x74, 0x65, 0x64, 0x45, 0x64, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, + 0x12, 0x0a, 0x04, 0x61, 0x74, 0x74, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, + 0x74, 0x74, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x32, 0x0a, 0x0a, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, + 0x70, 0x62, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x61, 0x6c, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, + 0x08, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x06, 0x52, + 0x07, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x61, 0x6e, 0x67, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x12, 0x23, 0x0a, 0x02, + 0x6f, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, + 0x72, 0x65, 0x63, 0x74, 0x65, 0x64, 0x45, 0x64, 0x67, 0x65, 0x2e, 0x4f, 0x70, 0x52, 0x02, 0x6f, + 0x70, 0x12, 0x22, 0x0a, 0x06, 0x66, 0x61, 0x63, 0x65, 0x74, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x46, 0x61, 0x63, 0x65, 0x74, 0x52, 0x06, 0x66, + 0x61, 0x63, 0x65, 0x74, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, + 0x50, 0x72, 0x65, 0x64, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x6c, 0x6c, + 0x6f, 0x77, 0x65, 0x64, 0x50, 0x72, 0x65, 0x64, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, + 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6e, 0x61, + 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x16, 0x0a, 0x02, 0x4f, 0x70, 0x12, 0x07, 0x0a, + 0x03, 0x53, 0x45, 0x54, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x45, 0x4c, 0x10, 0x01, 0x4a, + 0x04, 0x08, 0x06, 0x10, 0x07, 0x22, 0xe2, 0x02, 0x0a, 0x09, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x19, + 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x73, 0x12, 0x26, 0x0a, 0x05, 0x65, 0x64, 0x67, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, + 0x72, 0x65, 0x63, 0x74, 0x65, 0x64, 0x45, 0x64, 0x67, 0x65, 0x52, 0x05, 0x65, 0x64, 0x67, 0x65, + 0x73, 0x12, 0x28, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x24, 0x0a, 0x05, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, + 0x54, 0x79, 0x70, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x6f, 0x70, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x4f, 0x70, 0x52, 0x06, 0x64, 0x72, 0x6f, 0x70, 0x4f, 0x70, + 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x72, 0x6f, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x28, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2f, 0x0a, 0x06, 0x44, 0x72, 0x6f, + 0x70, 0x4f, 0x70, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x07, 0x0a, + 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41, 0x10, 0x02, + 0x12, 0x08, 0x0a, 0x04, 0x54, 0x59, 0x50, 0x45, 0x10, 0x03, 0x22, 0xca, 0x01, 0x0a, 0x08, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x64, 0x5f, + 0x68, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, + 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x48, 0x69, + 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x70, 0x72, 0x65, 0x64, 0x48, 0x69, + 0x6e, 0x74, 0x73, 0x1a, 0x53, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x64, 0x48, 0x69, 0x6e, 0x74, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x48, 0x69, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x2d, 0x0a, 0x08, 0x48, 0x69, 0x6e, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, + 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a, + 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x22, 0x93, 0x01, 0x0a, 0x08, 0x53, 0x6e, 0x61, 0x70, + 0x73, 0x68, 0x6f, 0x74, 0x12, 0x29, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x61, 0x66, 0x74, 0x43, + 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, + 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x65, 0x61, 0x64, 0x54, 0x73, 0x12, 0x12, + 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, + 0x6e, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x73, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x54, 0x73, 0x22, 0x74, 0x0a, + 0x0c, 0x5a, 0x65, 0x72, 0x6f, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x14, 0x0a, + 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x5f, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x63, 0x68, 0x65, 0x63, + 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x54, 0x73, 0x12, 0x29, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x22, 0xdb, 0x05, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, + 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x54, 0x73, + 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, + 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, + 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, + 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1c, 0x0a, 0x09, + 0x61, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x09, 0x61, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x66, 0x69, 0x6c, + 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x61, + 0x75, 0x6c, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x69, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x69, + 0x64, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, + 0x65, 0x63, 0x72, 0x65, 0x74, 0x69, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x11, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x69, + 0x64, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x70, + 0x61, 0x74, 0x68, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x50, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, + 0x65, 0x6c, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x63, 0x6b, + 0x75, 0x70, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x62, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x4e, 0x75, 0x6d, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x63, 0x72, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x11, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0f, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x46, 0x72, + 0x6f, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, + 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, + 0x6c, 0x12, 0x24, 0x0a, 0x0d, 0x66, 0x72, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x66, 0x72, 0x6f, 0x6d, 0x4e, 0x61, + 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x38, 0x0a, 0x17, 0x69, 0x73, 0x4e, 0x61, 0x6d, + 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x41, 0x77, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x69, 0x73, 0x4e, 0x61, 0x6d, 0x65, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x41, 0x77, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x22, 0xea, 0x03, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2b, + 0x0a, 0x09, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x09, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x02, 0x6b, + 0x76, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, + 0x70, 0x62, 0x34, 0x2e, 0x4b, 0x56, 0x52, 0x02, 0x6b, 0x76, 0x12, 0x29, 0x0a, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x4d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x70, + 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x25, + 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, + 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x52, 0x05, + 0x64, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x28, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x6e, 0x61, + 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, + 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, + 0x64, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x10, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, + 0x75, 0x6d, 0x12, 0x2c, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x12, 0x29, 0x0a, 0x09, 0x63, 0x64, 0x63, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0d, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x44, 0x43, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x52, 0x08, 0x63, 0x64, 0x63, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x30, 0x0a, 0x09, 0x64, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x6e, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, + 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x52, 0x08, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x73, 0x12, 0x19, 0x0a, + 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x73, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x22, 0x23, + 0x0a, 0x08, 0x43, 0x44, 0x43, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x65, + 0x6e, 0x74, 0x5f, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x73, 0x65, 0x6e, + 0x74, 0x54, 0x73, 0x22, 0x63, 0x0a, 0x03, 0x4b, 0x56, 0x53, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, + 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, + 0x6e, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x80, 0x04, 0x0a, 0x07, 0x50, 0x6f, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x06, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2e, 0x0a, 0x08, + 0x76, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, + 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x61, 0x6c, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x07, 0x76, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x0c, + 0x70, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, + 0x50, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x70, 0x6f, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, + 0x5f, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x61, 0x6e, 0x67, + 0x54, 0x61, 0x67, 0x12, 0x22, 0x0a, 0x06, 0x66, 0x61, 0x63, 0x65, 0x74, 0x73, 0x18, 0x09, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x46, 0x61, 0x63, 0x65, 0x74, 0x52, + 0x06, 0x66, 0x61, 0x63, 0x65, 0x74, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x70, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x02, 0x6f, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x54, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x73, 0x18, + 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54, 0x73, 0x22, + 0xa0, 0x01, 0x0a, 0x07, 0x56, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x44, + 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, + 0x52, 0x59, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x09, 0x0a, + 0x05, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, 0x4f, 0x4c, + 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x05, + 0x12, 0x07, 0x0a, 0x03, 0x47, 0x45, 0x4f, 0x10, 0x06, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x49, 0x44, + 0x10, 0x07, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x08, + 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x09, 0x12, 0x0a, 0x0a, 0x06, + 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x0a, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x49, 0x47, 0x46, + 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06, 0x56, 0x46, 0x4c, 0x4f, 0x41, 0x54, + 0x10, 0x0c, 0x22, 0x31, 0x0a, 0x0b, 0x50, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x45, 0x46, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x56, 0x41, + 0x4c, 0x55, 0x45, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, 0x4c, + 0x41, 0x4e, 0x47, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x22, 0x51, 0x0a, 0x08, 0x55, + 0x69, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x61, 0x73, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x62, 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, + 0x65, 0x6c, 0x74, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x64, 0x65, 0x6c, + 0x74, 0x61, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x75, 0x6d, 0x5f, 0x75, 0x69, 0x64, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6e, 0x75, 0x6d, 0x55, 0x69, 0x64, 0x73, 0x22, 0x6b, + 0x0a, 0x07, 0x55, 0x69, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x24, 0x0a, 0x06, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x69, + 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x1b, + 0x0a, 0x09, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x17, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x08, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x52, 0x65, 0x66, 0x22, 0x8c, 0x01, 0x0a, 0x0b, + 0x50, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x04, 0x70, + 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x55, + 0x69, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x04, 0x70, 0x61, 0x63, 0x6b, 0x12, 0x27, 0x0a, 0x08, + 0x70, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, + 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x6f, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, + 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x54, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x04, 0x52, 0x06, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x73, 0x22, 0x34, 0x0a, 0x0a, 0x46, 0x61, + 0x63, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, + 0x69, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, + 0x22, 0x4e, 0x0a, 0x0b, 0x46, 0x61, 0x63, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, + 0x19, 0x0a, 0x08, 0x61, 0x6c, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x07, 0x61, 0x6c, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x24, 0x0a, 0x05, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x46, + 0x61, 0x63, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x52, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, + 0x22, 0x2c, 0x0a, 0x06, 0x46, 0x61, 0x63, 0x65, 0x74, 0x73, 0x12, 0x22, 0x0a, 0x06, 0x66, 0x61, + 0x63, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x46, 0x61, 0x63, 0x65, 0x74, 0x52, 0x06, 0x66, 0x61, 0x63, 0x65, 0x74, 0x73, 0x22, 0x39, + 0x0a, 0x0a, 0x46, 0x61, 0x63, 0x65, 0x74, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x0b, + 0x66, 0x61, 0x63, 0x65, 0x74, 0x73, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x61, 0x63, 0x65, 0x74, 0x73, 0x52, 0x0a, 0x66, + 0x61, 0x63, 0x65, 0x74, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x44, 0x0a, 0x08, 0x46, 0x75, 0x6e, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x61, + 0x72, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, + 0x6a, 0x0a, 0x0a, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x72, 0x65, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x6f, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x6f, 0x70, 0x12, 0x2a, 0x0a, + 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x72, 0x65, 0x65, 0x52, + 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x12, 0x20, 0x0a, 0x04, 0x66, 0x75, 0x6e, + 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x75, 0x6e, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x66, 0x75, 0x6e, 0x63, 0x22, 0x78, 0x0a, 0x0d, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x64, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x65, + 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, + 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0xd1, 0x02, 0x0a, 0x0a, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1c, 0x0a, 0x09, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, + 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, + 0x65, 0x72, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, + 0x73, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x75, 0x70, 0x73, 0x65, 0x72, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, + 0x75, 0x70, 0x73, 0x65, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, + 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0a, 0x6e, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, + 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x6e, 0x69, + 0x71, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x0b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x73, 0x70, 0x65, + 0x63, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0a, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x53, 0x70, 0x65, 0x63, 0x73, 0x22, 0x3a, 0x0a, 0x0c, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x06, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0xc1, 0x04, 0x0a, 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x65, 0x64, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x12, 0x32, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6f, + 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x70, 0x62, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x44, 0x69, + 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, + 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x70, + 0x73, 0x65, 0x72, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x70, 0x73, 0x65, + 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x21, + 0x0a, 0x0c, 0x6e, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x6e, 0x6f, 0x6e, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x6e, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x6e, 0x6f, + 0x6e, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x28, 0x0a, + 0x10, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x6e, 0x6f, + 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x12, 0x34, 0x0a, 0x0b, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x70, 0x62, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x53, 0x70, + 0x65, 0x63, 0x52, 0x0a, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x53, 0x70, 0x65, 0x63, 0x73, 0x22, 0x39, + 0x0a, 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, + 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x44, 0x45, 0x58, 0x10, 0x01, + 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x56, 0x45, 0x52, 0x53, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, + 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x52, + 0x08, 0x65, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x22, 0x4f, 0x0a, 0x0f, 0x56, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x28, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x69, + 0x72, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x34, 0x0a, 0x0a, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x69, 0x72, 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, + 0x22, 0x53, 0x0a, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x06, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x32, 0x0a, 0x09, 0x4d, 0x61, 0x70, 0x48, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x22, 0xb2, 0x01, 0x0a, 0x14, 0x4d, 0x6f, + 0x76, 0x65, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x69, 0x64, 0x12, + 0x19, 0x0a, 0x08, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x67, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x07, 0x64, 0x65, 0x73, 0x74, 0x47, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x78, + 0x6e, 0x5f, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x74, 0x78, 0x6e, 0x54, + 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x65, 0x78, + 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x22, 0x43, + 0x0a, 0x09, 0x54, 0x78, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x54, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x5f, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x54, 0x73, 0x22, 0xe4, 0x01, 0x0a, 0x0b, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, 0x65, + 0x6c, 0x74, 0x61, 0x12, 0x21, 0x0a, 0x04, 0x74, 0x78, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x78, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x04, 0x74, 0x78, 0x6e, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x73, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x61, + 0x78, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x12, 0x4c, 0x0a, 0x0f, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, 0x65, + 0x6c, 0x74, 0x61, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, + 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73, 0x1a, 0x41, 0x0a, 0x13, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x1f, 0x0a, 0x0d, 0x54, 0x78, + 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x02, 0x74, 0x73, 0x22, 0x26, 0x0a, 0x0c, 0x50, + 0x65, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x22, 0x5e, 0x0a, 0x09, 0x52, 0x61, 0x66, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x12, 0x29, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x61, 0x66, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x78, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x26, 0x0a, 0x07, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x22, 0x36, 0x0a, 0x0e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x22, 0x50, 0x0a, 0x0d, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x07, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, + 0x70, 0x62, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x5d, 0x0a, + 0x13, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x65, 0x73, + 0x12, 0x2a, 0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x4d, 0x61, + 0x74, 0x63, 0x68, 0x52, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x22, 0x3b, 0x0a, 0x14, + 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x03, 0x6b, 0x76, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x4b, 0x56, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x03, 0x6b, 0x76, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x03, 0x4e, 0x75, + 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, + 0x76, 0x61, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, + 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x65, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x09, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x65, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x62, 0x75, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x62, 0x75, + 0x6d, 0x70, 0x12, 0x25, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x75, 0x6d, 0x2e, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x2b, 0x0a, 0x09, 0x6c, 0x65, 0x61, + 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x4e, 0x53, 0x5f, 0x49, 0x44, 0x10, + 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x49, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x58, + 0x4e, 0x5f, 0x54, 0x53, 0x10, 0x02, 0x22, 0x5a, 0x0a, 0x0b, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x65, 0x64, 0x49, 0x64, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x49, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x49, 0x64, 0x12, + 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, + 0x65, 0x6e, 0x64, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, + 0x6c, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, + 0x6c, 0x79, 0x22, 0x45, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4e, 0x6f, 0x64, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, + 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x11, 0x4d, 0x6f, 0x76, + 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, + 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x64, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x22, 0x2f, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, + 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, + 0x65, 0x22, 0x46, 0x0a, 0x0c, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4d, 0x65, 0x74, + 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x73, 0x12, 0x19, + 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x2e, 0x0a, 0x06, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0xd9, 0x02, 0x0a, 0x0d, 0x42, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x72, + 0x65, 0x61, 0x64, 0x5f, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x65, + 0x61, 0x64, 0x54, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x54, 0x73, 0x12, + 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x6e, + 0x69, 0x78, 0x5f, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x6e, 0x69, + 0x78, 0x54, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, + 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x6e, 0x6f, 0x6e, + 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x6e, 0x6f, + 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x64, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, + 0x66, 0x75, 0x6c, 0x6c, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x66, 0x6f, 0x72, 0x63, + 0x65, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x4c, 0x0a, 0x0e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0f, 0x64, 0x72, 0x6f, 0x70, 0x5f, + 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x22, 0x90, 0x01, 0x0a, 0x0d, 0x44, 0x72, 0x6f, 0x70, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x07, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x6f, 0x70, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x72, 0x6f, 0x70, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x4f, 0x70, + 0x52, 0x06, 0x64, 0x72, 0x6f, 0x70, 0x4f, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x72, 0x6f, 0x70, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x72, + 0x6f, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2d, 0x0a, 0x06, 0x44, 0x72, 0x6f, 0x70, 0x4f, + 0x70, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, + 0x54, 0x41, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x54, 0x54, 0x52, 0x10, 0x02, 0x12, 0x06, + 0x0a, 0x02, 0x4e, 0x53, 0x10, 0x03, 0x22, 0xb5, 0x02, 0x0a, 0x0d, 0x45, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x72, 0x65, 0x61, 0x64, 0x54, 0x73, 0x12, 0x17, 0x0a, 0x07, + 0x75, 0x6e, 0x69, 0x78, 0x5f, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, + 0x6e, 0x69, 0x78, 0x54, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x20, 0x0a, + 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1d, + 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, + 0x0d, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, + 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x4c, + 0x0a, 0x0e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, + 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, 0xab, 0x02, 0x0a, + 0x09, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x12, 0x29, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x42, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x74, 0x74, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x74, 0x74, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x55, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x72, 0x6d, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x72, 0x6d, 0x12, 0x14, 0x0a, 0x05, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x22, 0x68, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, + 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41, + 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x44, 0x45, 0x58, 0x10, 0x02, 0x12, 0x0b, 0x0a, + 0x07, 0x52, 0x45, 0x56, 0x45, 0x52, 0x53, 0x45, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x43, 0x4f, + 0x55, 0x4e, 0x54, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x52, + 0x45, 0x56, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x10, 0x06, + 0x12, 0x08, 0x0a, 0x04, 0x54, 0x59, 0x50, 0x45, 0x10, 0x07, 0x22, 0xa2, 0x01, 0x0a, 0x11, 0x42, + 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x75, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x04, + 0x75, 0x69, 0x64, 0x73, 0x12, 0x27, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6f, 0x73, 0x74, + 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1b, 0x0a, + 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x70, + 0x6c, 0x69, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52, 0x06, 0x73, 0x70, 0x6c, 0x69, + 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x69, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x75, 0x69, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, + 0xc6, 0x01, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, + 0x4c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, + 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x67, 0x72, 0x61, + 0x70, 0x68, 0x71, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x12, 0x33, 0x0a, 0x0c, 0x64, 0x67, 0x72, 0x61, 0x70, 0x68, 0x5f, 0x70, 0x72, 0x65, 0x64, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x64, 0x67, 0x72, 0x61, 0x70, 0x68, + 0x50, 0x72, 0x65, 0x64, 0x73, 0x12, 0x31, 0x0a, 0x0c, 0x64, 0x67, 0x72, 0x61, 0x70, 0x68, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, + 0x2e, 0x54, 0x79, 0x70, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x64, 0x67, 0x72, + 0x61, 0x70, 0x68, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x2f, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0xdb, 0x01, 0x0a, 0x08, 0x42, 0x75, + 0x6c, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x64, 0x67, 0x65, 0x5f, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x64, 0x67, 0x65, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, + 0x6d, 0x61, 0x70, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x42, + 0x75, 0x6c, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x61, + 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x61, + 0x70, 0x12, 0x24, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x1a, 0x4e, 0x0a, 0x0e, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4a, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x22, 0x2c, 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, + 0x64, 0x22, 0x31, 0x0a, 0x12, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x6d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, + 0x4d, 0x65, 0x74, 0x61, 0x32, 0xc4, 0x01, 0x0a, 0x04, 0x52, 0x61, 0x66, 0x74, 0x12, 0x2d, 0x0a, + 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x0c, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x48, 0x65, + 0x61, 0x6c, 0x74, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x00, 0x30, 0x01, 0x12, 0x2e, 0x0a, 0x0b, + 0x52, 0x61, 0x66, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0d, 0x2e, 0x70, 0x62, + 0x2e, 0x52, 0x61, 0x66, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x1a, 0x0c, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x00, 0x28, 0x01, 0x12, 0x2e, 0x0a, 0x0b, + 0x4a, 0x6f, 0x69, 0x6e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x0f, 0x2e, 0x70, 0x62, + 0x2e, 0x52, 0x61, 0x66, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x1a, 0x0c, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x00, 0x12, 0x2d, 0x0a, 0x06, + 0x49, 0x73, 0x50, 0x65, 0x65, 0x72, 0x12, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x61, 0x66, 0x74, + 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x1a, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x65, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0xb4, 0x05, 0x0a, 0x04, + 0x5a, 0x65, 0x72, 0x6f, 0x12, 0x2c, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, + 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x1a, 0x13, 0x2e, 0x70, 0x62, + 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x22, 0x00, 0x12, 0x2d, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x1a, 0x0c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, + 0x00, 0x12, 0x39, 0x0a, 0x10, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x0c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x1a, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, + 0x68, 0x69, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x2b, 0x0a, 0x06, + 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x12, 0x0c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, + 0x44, 0x65, 0x6c, 0x74, 0x61, 0x22, 0x00, 0x30, 0x01, 0x12, 0x27, 0x0a, 0x0b, 0x53, 0x68, 0x6f, + 0x75, 0x6c, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x12, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x1a, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x22, 0x00, 0x12, 0x31, 0x0a, 0x06, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x11, 0x2e, 0x70, + 0x62, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x27, 0x0a, 0x09, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x49, + 0x64, 0x73, 0x12, 0x07, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x75, 0x6d, 0x1a, 0x0f, 0x2e, 0x70, 0x62, + 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x49, 0x64, 0x73, 0x22, 0x00, 0x12, 0x28, + 0x0a, 0x0a, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x12, 0x07, 0x2e, 0x70, + 0x62, 0x2e, 0x4e, 0x75, 0x6d, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x64, 0x49, 0x64, 0x73, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x4f, 0x72, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x12, 0x0f, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x54, 0x78, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x1a, 0x0f, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x54, 0x78, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22, 0x00, 0x12, 0x30, 0x0a, + 0x08, 0x54, 0x72, 0x79, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x54, + 0x78, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x1a, 0x0f, 0x2e, 0x70, + 0x62, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x22, 0x00, 0x12, + 0x34, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x12, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x22, 0x00, 0x12, 0x31, 0x0a, 0x0a, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4e, + 0x6f, 0x64, 0x65, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4e, + 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0a, 0x2e, 0x70, 0x62, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x00, 0x12, 0x31, 0x0a, 0x0a, 0x4d, 0x6f, 0x76, 0x65, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x6f, 0x76, 0x65, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0a, 0x2e, + 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x00, 0x12, 0x35, 0x0a, 0x0c, 0x41, + 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, + 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x22, 0x00, 0x32, 0xee, 0x05, 0x0a, 0x06, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x12, 0x2a, 0x0a, + 0x06, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x75, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x0f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x54, 0x78, 0x6e, + 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22, 0x00, 0x12, 0x24, 0x0a, 0x09, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x1a, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, 0x12, + 0x2d, 0x0a, 0x0e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x12, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x1a, + 0x07, 0x2e, 0x70, 0x62, 0x2e, 0x4b, 0x56, 0x53, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x29, + 0x0a, 0x04, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x6f, 0x72, 0x74, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x6f, 0x72, + 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, 0x12, 0x2f, 0x0a, 0x06, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, 0x12, 0x31, 0x0a, 0x06, 0x42, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x42, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x2b, 0x0a, + 0x07, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0a, 0x2e, 0x70, + 0x62, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x00, 0x12, 0x31, 0x0a, 0x06, 0x45, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x2d, 0x0a, + 0x10, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x12, 0x07, 0x2e, 0x70, 0x62, 0x2e, 0x4b, 0x56, 0x53, 0x1a, 0x0c, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x00, 0x28, 0x01, 0x12, 0x39, 0x0a, 0x0d, + 0x4d, 0x6f, 0x76, 0x65, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, + 0x70, 0x62, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x1a, 0x0c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x62, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, + 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x4b, 0x56, 0x4c, 0x69, 0x73, 0x74, + 0x22, 0x00, 0x30, 0x01, 0x12, 0x58, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, + 0x61, 0x70, 0x68, 0x51, 0x4c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1e, 0x2e, 0x70, 0x62, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x34, + 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x12, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x54, + 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } -func (x *raftRaftMessageServer) Recv() (*RaftBatch, error) { - m := new(RaftBatch) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +var ( + file_pb_proto_rawDescOnce sync.Once + file_pb_proto_rawDescData = file_pb_proto_rawDesc +) -func _Raft_JoinCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RaftContext) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RaftServer).JoinCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Raft/JoinCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RaftServer).JoinCluster(ctx, req.(*RaftContext)) - } - return interceptor(ctx, in, info, handler) +func file_pb_proto_rawDescGZIP() []byte { + file_pb_proto_rawDescOnce.Do(func() { + file_pb_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_proto_rawDescData) + }) + return file_pb_proto_rawDescData +} + +var file_pb_proto_enumTypes = make([]protoimpl.EnumInfo, 9) +var file_pb_proto_msgTypes = make([]protoimpl.MessageInfo, 85) +var file_pb_proto_goTypes = []interface{}{ + (DirectedEdge_Op)(0), // 0: pb.DirectedEdge.Op + (Mutations_DropOp)(0), // 1: pb.Mutations.DropOp + (Metadata_HintType)(0), // 2: pb.Metadata.HintType + (Posting_ValType)(0), // 3: pb.Posting.ValType + (Posting_PostingType)(0), // 4: pb.Posting.PostingType + (SchemaUpdate_Directive)(0), // 5: pb.SchemaUpdate.Directive + (NumLeaseType)(0), // 6: pb.Num.leaseType + (DropOperation_DropOp)(0), // 7: pb.DropOperation.DropOp + (BackupKey_KeyType)(0), // 8: pb.BackupKey.KeyType + (*List)(nil), // 9: pb.List + (*TaskValue)(nil), // 10: pb.TaskValue + (*SrcFunction)(nil), // 11: pb.SrcFunction + (*Query)(nil), // 12: pb.Query + (*ValueList)(nil), // 13: pb.ValueList + (*LangList)(nil), // 14: pb.LangList + (*Result)(nil), // 15: pb.Result + (*Order)(nil), // 16: pb.Order + (*SortMessage)(nil), // 17: pb.SortMessage + (*SortResult)(nil), // 18: pb.SortResult + (*RaftContext)(nil), // 19: pb.RaftContext + (*Member)(nil), // 20: pb.Member + (*Group)(nil), // 21: pb.Group + (*License)(nil), // 22: pb.License + (*ZeroProposal)(nil), // 23: pb.ZeroProposal + (*MembershipState)(nil), // 24: pb.MembershipState + (*ConnectionState)(nil), // 25: pb.ConnectionState + (*HealthInfo)(nil), // 26: pb.HealthInfo + (*Tablet)(nil), // 27: pb.Tablet + (*DirectedEdge)(nil), // 28: pb.DirectedEdge + (*Mutations)(nil), // 29: pb.Mutations + (*Metadata)(nil), // 30: pb.Metadata + (*Snapshot)(nil), // 31: pb.Snapshot + (*ZeroSnapshot)(nil), // 32: pb.ZeroSnapshot + (*RestoreRequest)(nil), // 33: pb.RestoreRequest + (*Proposal)(nil), // 34: pb.Proposal + (*CDCState)(nil), // 35: pb.CDCState + (*KVS)(nil), // 36: pb.KVS + (*Posting)(nil), // 37: pb.Posting + (*UidBlock)(nil), // 38: pb.UidBlock + (*UidPack)(nil), // 39: pb.UidPack + (*PostingList)(nil), // 40: pb.PostingList + (*FacetParam)(nil), // 41: pb.FacetParam + (*FacetParams)(nil), // 42: pb.FacetParams + (*Facets)(nil), // 43: pb.Facets + (*FacetsList)(nil), // 44: pb.FacetsList + (*Function)(nil), // 45: pb.Function + (*FilterTree)(nil), // 46: pb.FilterTree + (*SchemaRequest)(nil), // 47: pb.SchemaRequest + (*SchemaNode)(nil), // 48: pb.SchemaNode + (*SchemaResult)(nil), // 49: pb.SchemaResult + (*SchemaUpdate)(nil), // 50: pb.SchemaUpdate + (*VectorIndexSpec)(nil), // 51: pb.VectorIndexSpec + (*OptionPair)(nil), // 52: pb.OptionPair + (*TypeUpdate)(nil), // 53: pb.TypeUpdate + (*MapHeader)(nil), // 54: pb.MapHeader + (*MovePredicatePayload)(nil), // 55: pb.MovePredicatePayload + (*TxnStatus)(nil), // 56: pb.TxnStatus + (*OracleDelta)(nil), // 57: pb.OracleDelta + (*TxnTimestamps)(nil), // 58: pb.TxnTimestamps + (*PeerResponse)(nil), // 59: pb.PeerResponse + (*RaftBatch)(nil), // 60: pb.RaftBatch + (*TabletResponse)(nil), // 61: pb.TabletResponse + (*TabletRequest)(nil), // 62: pb.TabletRequest + (*SubscriptionRequest)(nil), // 63: pb.SubscriptionRequest + (*SubscriptionResponse)(nil), // 64: pb.SubscriptionResponse + (*Num)(nil), // 65: pb.Num + (*AssignedIds)(nil), // 66: pb.AssignedIds + (*RemoveNodeRequest)(nil), // 67: pb.RemoveNodeRequest + (*MoveTabletRequest)(nil), // 68: pb.MoveTabletRequest + (*ApplyLicenseRequest)(nil), // 69: pb.ApplyLicenseRequest + (*SnapshotMeta)(nil), // 70: pb.SnapshotMeta + (*Status)(nil), // 71: pb.Status + (*BackupRequest)(nil), // 72: pb.BackupRequest + (*BackupResponse)(nil), // 73: pb.BackupResponse + (*DropOperation)(nil), // 74: pb.DropOperation + (*ExportRequest)(nil), // 75: pb.ExportRequest + (*ExportResponse)(nil), // 76: pb.ExportResponse + (*BackupKey)(nil), // 77: pb.BackupKey + (*BackupPostingList)(nil), // 78: pb.BackupPostingList + (*UpdateGraphQLSchemaRequest)(nil), // 79: pb.UpdateGraphQLSchemaRequest + (*UpdateGraphQLSchemaResponse)(nil), // 80: pb.UpdateGraphQLSchemaResponse + (*BulkMeta)(nil), // 81: pb.BulkMeta + (*DeleteNsRequest)(nil), // 82: pb.DeleteNsRequest + (*TaskStatusRequest)(nil), // 83: pb.TaskStatusRequest + (*TaskStatusResponse)(nil), // 84: pb.TaskStatusResponse + nil, // 85: pb.Result.VectorMetricsEntry + nil, // 86: pb.Group.MembersEntry + nil, // 87: pb.Group.TabletsEntry + nil, // 88: pb.ZeroProposal.SnapshotTsEntry + nil, // 89: pb.MembershipState.GroupsEntry + nil, // 90: pb.MembershipState.ZerosEntry + nil, // 91: pb.Metadata.PredHintsEntry + nil, // 92: pb.OracleDelta.GroupChecksumsEntry + nil, // 93: pb.BulkMeta.SchemaMapEntry + (*api.TxnContext)(nil), // 94: api.TxnContext + (*api.Facet)(nil), // 95: api.Facet + (*pb.KV)(nil), // 96: badgerpb4.KV + (*api.Payload)(nil), // 97: api.Payload + (*pb.Match)(nil), // 98: badgerpb4.Match + (*pb.KVList)(nil), // 99: badgerpb4.KVList +} +var file_pb_proto_depIdxs = []int32{ + 3, // 0: pb.TaskValue.val_type:type_name -> pb.Posting.ValType + 9, // 1: pb.Query.uid_list:type_name -> pb.List + 11, // 2: pb.Query.src_func:type_name -> pb.SrcFunction + 42, // 3: pb.Query.facet_param:type_name -> pb.FacetParams + 46, // 4: pb.Query.facets_filter:type_name -> pb.FilterTree + 10, // 5: pb.ValueList.values:type_name -> pb.TaskValue + 9, // 6: pb.Result.uid_matrix:type_name -> pb.List + 13, // 7: pb.Result.value_matrix:type_name -> pb.ValueList + 44, // 8: pb.Result.facet_matrix:type_name -> pb.FacetsList + 14, // 9: pb.Result.lang_matrix:type_name -> pb.LangList + 85, // 10: pb.Result.vector_metrics:type_name -> pb.Result.VectorMetricsEntry + 16, // 11: pb.SortMessage.order:type_name -> pb.Order + 9, // 12: pb.SortMessage.uid_matrix:type_name -> pb.List + 9, // 13: pb.SortResult.uid_matrix:type_name -> pb.List + 86, // 14: pb.Group.members:type_name -> pb.Group.MembersEntry + 87, // 15: pb.Group.tablets:type_name -> pb.Group.TabletsEntry + 88, // 16: pb.ZeroProposal.snapshot_ts:type_name -> pb.ZeroProposal.SnapshotTsEntry + 20, // 17: pb.ZeroProposal.member:type_name -> pb.Member + 27, // 18: pb.ZeroProposal.tablet:type_name -> pb.Tablet + 94, // 19: pb.ZeroProposal.txn:type_name -> api.TxnContext + 22, // 20: pb.ZeroProposal.license:type_name -> pb.License + 32, // 21: pb.ZeroProposal.snapshot:type_name -> pb.ZeroSnapshot + 82, // 22: pb.ZeroProposal.delete_ns:type_name -> pb.DeleteNsRequest + 27, // 23: pb.ZeroProposal.tablets:type_name -> pb.Tablet + 89, // 24: pb.MembershipState.groups:type_name -> pb.MembershipState.GroupsEntry + 90, // 25: pb.MembershipState.zeros:type_name -> pb.MembershipState.ZerosEntry + 20, // 26: pb.MembershipState.removed:type_name -> pb.Member + 22, // 27: pb.MembershipState.license:type_name -> pb.License + 20, // 28: pb.ConnectionState.member:type_name -> pb.Member + 24, // 29: pb.ConnectionState.state:type_name -> pb.MembershipState + 3, // 30: pb.DirectedEdge.value_type:type_name -> pb.Posting.ValType + 0, // 31: pb.DirectedEdge.op:type_name -> pb.DirectedEdge.Op + 95, // 32: pb.DirectedEdge.facets:type_name -> api.Facet + 28, // 33: pb.Mutations.edges:type_name -> pb.DirectedEdge + 50, // 34: pb.Mutations.schema:type_name -> pb.SchemaUpdate + 53, // 35: pb.Mutations.types:type_name -> pb.TypeUpdate + 1, // 36: pb.Mutations.drop_op:type_name -> pb.Mutations.DropOp + 30, // 37: pb.Mutations.metadata:type_name -> pb.Metadata + 91, // 38: pb.Metadata.pred_hints:type_name -> pb.Metadata.PredHintsEntry + 19, // 39: pb.Snapshot.context:type_name -> pb.RaftContext + 24, // 40: pb.ZeroSnapshot.state:type_name -> pb.MembershipState + 29, // 41: pb.Proposal.mutations:type_name -> pb.Mutations + 96, // 42: pb.Proposal.kv:type_name -> badgerpb4.KV + 24, // 43: pb.Proposal.state:type_name -> pb.MembershipState + 57, // 44: pb.Proposal.delta:type_name -> pb.OracleDelta + 31, // 45: pb.Proposal.snapshot:type_name -> pb.Snapshot + 33, // 46: pb.Proposal.restore:type_name -> pb.RestoreRequest + 35, // 47: pb.Proposal.cdc_state:type_name -> pb.CDCState + 82, // 48: pb.Proposal.delete_ns:type_name -> pb.DeleteNsRequest + 3, // 49: pb.Posting.val_type:type_name -> pb.Posting.ValType + 4, // 50: pb.Posting.posting_type:type_name -> pb.Posting.PostingType + 95, // 51: pb.Posting.facets:type_name -> api.Facet + 38, // 52: pb.UidPack.blocks:type_name -> pb.UidBlock + 39, // 53: pb.PostingList.pack:type_name -> pb.UidPack + 37, // 54: pb.PostingList.postings:type_name -> pb.Posting + 41, // 55: pb.FacetParams.param:type_name -> pb.FacetParam + 95, // 56: pb.Facets.facets:type_name -> api.Facet + 43, // 57: pb.FacetsList.facets_list:type_name -> pb.Facets + 46, // 58: pb.FilterTree.children:type_name -> pb.FilterTree + 45, // 59: pb.FilterTree.func:type_name -> pb.Function + 51, // 60: pb.SchemaNode.index_specs:type_name -> pb.VectorIndexSpec + 48, // 61: pb.SchemaResult.schema:type_name -> pb.SchemaNode + 3, // 62: pb.SchemaUpdate.value_type:type_name -> pb.Posting.ValType + 5, // 63: pb.SchemaUpdate.directive:type_name -> pb.SchemaUpdate.Directive + 51, // 64: pb.SchemaUpdate.index_specs:type_name -> pb.VectorIndexSpec + 52, // 65: pb.VectorIndexSpec.options:type_name -> pb.OptionPair + 50, // 66: pb.TypeUpdate.fields:type_name -> pb.SchemaUpdate + 56, // 67: pb.OracleDelta.txns:type_name -> pb.TxnStatus + 92, // 68: pb.OracleDelta.group_checksums:type_name -> pb.OracleDelta.GroupChecksumsEntry + 19, // 69: pb.RaftBatch.context:type_name -> pb.RaftContext + 97, // 70: pb.RaftBatch.payload:type_name -> api.Payload + 27, // 71: pb.TabletResponse.tablets:type_name -> pb.Tablet + 27, // 72: pb.TabletRequest.tablets:type_name -> pb.Tablet + 98, // 73: pb.SubscriptionRequest.matches:type_name -> badgerpb4.Match + 99, // 74: pb.SubscriptionResponse.kvs:type_name -> badgerpb4.KVList + 6, // 75: pb.Num.type:type_name -> pb.Num.leaseType + 74, // 76: pb.BackupResponse.drop_operations:type_name -> pb.DropOperation + 7, // 77: pb.DropOperation.drop_op:type_name -> pb.DropOperation.DropOp + 8, // 78: pb.BackupKey.type:type_name -> pb.BackupKey.KeyType + 37, // 79: pb.BackupPostingList.postings:type_name -> pb.Posting + 50, // 80: pb.UpdateGraphQLSchemaRequest.dgraph_preds:type_name -> pb.SchemaUpdate + 53, // 81: pb.UpdateGraphQLSchemaRequest.dgraph_types:type_name -> pb.TypeUpdate + 93, // 82: pb.BulkMeta.schema_map:type_name -> pb.BulkMeta.SchemaMapEntry + 53, // 83: pb.BulkMeta.types:type_name -> pb.TypeUpdate + 20, // 84: pb.Group.MembersEntry.value:type_name -> pb.Member + 27, // 85: pb.Group.TabletsEntry.value:type_name -> pb.Tablet + 21, // 86: pb.MembershipState.GroupsEntry.value:type_name -> pb.Group + 20, // 87: pb.MembershipState.ZerosEntry.value:type_name -> pb.Member + 2, // 88: pb.Metadata.PredHintsEntry.value:type_name -> pb.Metadata.HintType + 50, // 89: pb.BulkMeta.SchemaMapEntry.value:type_name -> pb.SchemaUpdate + 97, // 90: pb.Raft.Heartbeat:input_type -> api.Payload + 60, // 91: pb.Raft.RaftMessage:input_type -> pb.RaftBatch + 19, // 92: pb.Raft.JoinCluster:input_type -> pb.RaftContext + 19, // 93: pb.Raft.IsPeer:input_type -> pb.RaftContext + 20, // 94: pb.Zero.Connect:input_type -> pb.Member + 21, // 95: pb.Zero.UpdateMembership:input_type -> pb.Group + 97, // 96: pb.Zero.StreamMembership:input_type -> api.Payload + 97, // 97: pb.Zero.Oracle:input_type -> api.Payload + 27, // 98: pb.Zero.ShouldServe:input_type -> pb.Tablet + 62, // 99: pb.Zero.Inform:input_type -> pb.TabletRequest + 65, // 100: pb.Zero.AssignIds:input_type -> pb.Num + 65, // 101: pb.Zero.Timestamps:input_type -> pb.Num + 94, // 102: pb.Zero.CommitOrAbort:input_type -> api.TxnContext + 58, // 103: pb.Zero.TryAbort:input_type -> pb.TxnTimestamps + 82, // 104: pb.Zero.DeleteNamespace:input_type -> pb.DeleteNsRequest + 67, // 105: pb.Zero.RemoveNode:input_type -> pb.RemoveNodeRequest + 68, // 106: pb.Zero.MoveTablet:input_type -> pb.MoveTabletRequest + 69, // 107: pb.Zero.ApplyLicense:input_type -> pb.ApplyLicenseRequest + 29, // 108: pb.Worker.Mutate:input_type -> pb.Mutations + 12, // 109: pb.Worker.ServeTask:input_type -> pb.Query + 31, // 110: pb.Worker.StreamSnapshot:input_type -> pb.Snapshot + 17, // 111: pb.Worker.Sort:input_type -> pb.SortMessage + 47, // 112: pb.Worker.Schema:input_type -> pb.SchemaRequest + 72, // 113: pb.Worker.Backup:input_type -> pb.BackupRequest + 33, // 114: pb.Worker.Restore:input_type -> pb.RestoreRequest + 75, // 115: pb.Worker.Export:input_type -> pb.ExportRequest + 36, // 116: pb.Worker.ReceivePredicate:input_type -> pb.KVS + 55, // 117: pb.Worker.MovePredicate:input_type -> pb.MovePredicatePayload + 63, // 118: pb.Worker.Subscribe:input_type -> pb.SubscriptionRequest + 79, // 119: pb.Worker.UpdateGraphQLSchema:input_type -> pb.UpdateGraphQLSchemaRequest + 82, // 120: pb.Worker.DeleteNamespace:input_type -> pb.DeleteNsRequest + 83, // 121: pb.Worker.TaskStatus:input_type -> pb.TaskStatusRequest + 26, // 122: pb.Raft.Heartbeat:output_type -> pb.HealthInfo + 97, // 123: pb.Raft.RaftMessage:output_type -> api.Payload + 97, // 124: pb.Raft.JoinCluster:output_type -> api.Payload + 59, // 125: pb.Raft.IsPeer:output_type -> pb.PeerResponse + 25, // 126: pb.Zero.Connect:output_type -> pb.ConnectionState + 97, // 127: pb.Zero.UpdateMembership:output_type -> api.Payload + 24, // 128: pb.Zero.StreamMembership:output_type -> pb.MembershipState + 57, // 129: pb.Zero.Oracle:output_type -> pb.OracleDelta + 27, // 130: pb.Zero.ShouldServe:output_type -> pb.Tablet + 61, // 131: pb.Zero.Inform:output_type -> pb.TabletResponse + 66, // 132: pb.Zero.AssignIds:output_type -> pb.AssignedIds + 66, // 133: pb.Zero.Timestamps:output_type -> pb.AssignedIds + 94, // 134: pb.Zero.CommitOrAbort:output_type -> api.TxnContext + 57, // 135: pb.Zero.TryAbort:output_type -> pb.OracleDelta + 71, // 136: pb.Zero.DeleteNamespace:output_type -> pb.Status + 71, // 137: pb.Zero.RemoveNode:output_type -> pb.Status + 71, // 138: pb.Zero.MoveTablet:output_type -> pb.Status + 71, // 139: pb.Zero.ApplyLicense:output_type -> pb.Status + 94, // 140: pb.Worker.Mutate:output_type -> api.TxnContext + 15, // 141: pb.Worker.ServeTask:output_type -> pb.Result + 36, // 142: pb.Worker.StreamSnapshot:output_type -> pb.KVS + 18, // 143: pb.Worker.Sort:output_type -> pb.SortResult + 49, // 144: pb.Worker.Schema:output_type -> pb.SchemaResult + 73, // 145: pb.Worker.Backup:output_type -> pb.BackupResponse + 71, // 146: pb.Worker.Restore:output_type -> pb.Status + 76, // 147: pb.Worker.Export:output_type -> pb.ExportResponse + 97, // 148: pb.Worker.ReceivePredicate:output_type -> api.Payload + 97, // 149: pb.Worker.MovePredicate:output_type -> api.Payload + 99, // 150: pb.Worker.Subscribe:output_type -> badgerpb4.KVList + 80, // 151: pb.Worker.UpdateGraphQLSchema:output_type -> pb.UpdateGraphQLSchemaResponse + 71, // 152: pb.Worker.DeleteNamespace:output_type -> pb.Status + 84, // 153: pb.Worker.TaskStatus:output_type -> pb.TaskStatusResponse + 122, // [122:154] is the sub-list for method output_type + 90, // [90:122] is the sub-list for method input_type + 90, // [90:90] is the sub-list for extension type_name + 90, // [90:90] is the sub-list for extension extendee + 0, // [0:90] is the sub-list for field type_name +} + +func init() { file_pb_proto_init() } +func file_pb_proto_init() { + if File_pb_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_pb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*List); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SrcFunction); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Query); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LangList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Result); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Order); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SortMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SortResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RaftContext); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Member); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[12].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_pb_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*License); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ZeroProposal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MembershipState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConnectionState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HealthInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Tablet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DirectedEdge); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Mutations); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Snapshot); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ZeroSnapshot); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RestoreRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Proposal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CDCState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KVS); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Posting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UidBlock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UidPack); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PostingList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FacetParam); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FacetParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Facets); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FacetsList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Function); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FilterTree); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchemaRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchemaNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchemaResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchemaUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VectorIndexSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OptionPair); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TypeUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MapHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MovePredicatePayload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TxnStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OracleDelta); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TxnTimestamps); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PeerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RaftBatch); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TabletResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TabletRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubscriptionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubscriptionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Num); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AssignedIds); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveNodeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MoveTabletRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplyLicenseRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SnapshotMeta); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Status); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BackupRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BackupResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DropOperation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExportRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExportResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BackupKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BackupPostingList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateGraphQLSchemaRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateGraphQLSchemaResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BulkMeta); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteNsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskStatusRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskStatusResponse); 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_pb_proto_rawDesc, + NumEnums: 9, + NumMessages: 85, + NumExtensions: 0, + NumServices: 3, + }, + GoTypes: file_pb_proto_goTypes, + DependencyIndexes: file_pb_proto_depIdxs, + EnumInfos: file_pb_proto_enumTypes, + MessageInfos: file_pb_proto_msgTypes, + }.Build() + File_pb_proto = out.File + file_pb_proto_rawDesc = nil + file_pb_proto_goTypes = nil + file_pb_proto_depIdxs = nil } - -func _Raft_IsPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RaftContext) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RaftServer).IsPeer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Raft/IsPeer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RaftServer).IsPeer(ctx, req.(*RaftContext)) - } - return interceptor(ctx, in, info, handler) -} - -var _Raft_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pb.Raft", - HandlerType: (*RaftServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "JoinCluster", - Handler: _Raft_JoinCluster_Handler, - }, - { - MethodName: "IsPeer", - Handler: _Raft_IsPeer_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Heartbeat", - Handler: _Raft_Heartbeat_Handler, - ServerStreams: true, - }, - { - StreamName: "RaftMessage", - Handler: _Raft_RaftMessage_Handler, - ClientStreams: true, - }, - }, - Metadata: "pb.proto", -} - -// ZeroClient is the client API for Zero service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ZeroClient interface { - // These 3 endpoints are for handling membership. - Connect(ctx context.Context, in *Member, opts ...grpc.CallOption) (*ConnectionState, error) - UpdateMembership(ctx context.Context, in *Group, opts ...grpc.CallOption) (*api.Payload, error) - StreamMembership(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Zero_StreamMembershipClient, error) - Oracle(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Zero_OracleClient, error) - ShouldServe(ctx context.Context, in *Tablet, opts ...grpc.CallOption) (*Tablet, error) - Inform(ctx context.Context, in *TabletRequest, opts ...grpc.CallOption) (*TabletResponse, error) - AssignIds(ctx context.Context, in *Num, opts ...grpc.CallOption) (*AssignedIds, error) - Timestamps(ctx context.Context, in *Num, opts ...grpc.CallOption) (*AssignedIds, error) - CommitOrAbort(ctx context.Context, in *api.TxnContext, opts ...grpc.CallOption) (*api.TxnContext, error) - TryAbort(ctx context.Context, in *TxnTimestamps, opts ...grpc.CallOption) (*OracleDelta, error) - DeleteNamespace(ctx context.Context, in *DeleteNsRequest, opts ...grpc.CallOption) (*Status, error) - RemoveNode(ctx context.Context, in *RemoveNodeRequest, opts ...grpc.CallOption) (*Status, error) - MoveTablet(ctx context.Context, in *MoveTabletRequest, opts ...grpc.CallOption) (*Status, error) - ApplyLicense(ctx context.Context, in *ApplyLicenseRequest, opts ...grpc.CallOption) (*Status, error) -} - -type zeroClient struct { - cc *grpc.ClientConn -} - -func NewZeroClient(cc *grpc.ClientConn) ZeroClient { - return &zeroClient{cc} -} - -func (c *zeroClient) Connect(ctx context.Context, in *Member, opts ...grpc.CallOption) (*ConnectionState, error) { - out := new(ConnectionState) - err := c.cc.Invoke(ctx, "/pb.Zero/Connect", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *zeroClient) UpdateMembership(ctx context.Context, in *Group, opts ...grpc.CallOption) (*api.Payload, error) { - out := new(api.Payload) - err := c.cc.Invoke(ctx, "/pb.Zero/UpdateMembership", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *zeroClient) StreamMembership(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Zero_StreamMembershipClient, error) { - stream, err := c.cc.NewStream(ctx, &_Zero_serviceDesc.Streams[0], "/pb.Zero/StreamMembership", opts...) - if err != nil { - return nil, err - } - x := &zeroStreamMembershipClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Zero_StreamMembershipClient interface { - Recv() (*MembershipState, error) - grpc.ClientStream -} - -type zeroStreamMembershipClient struct { - grpc.ClientStream -} - -func (x *zeroStreamMembershipClient) Recv() (*MembershipState, error) { - m := new(MembershipState) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *zeroClient) Oracle(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Zero_OracleClient, error) { - stream, err := c.cc.NewStream(ctx, &_Zero_serviceDesc.Streams[1], "/pb.Zero/Oracle", opts...) - if err != nil { - return nil, err - } - x := &zeroOracleClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Zero_OracleClient interface { - Recv() (*OracleDelta, error) - grpc.ClientStream -} - -type zeroOracleClient struct { - grpc.ClientStream -} - -func (x *zeroOracleClient) Recv() (*OracleDelta, error) { - m := new(OracleDelta) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *zeroClient) ShouldServe(ctx context.Context, in *Tablet, opts ...grpc.CallOption) (*Tablet, error) { - out := new(Tablet) - err := c.cc.Invoke(ctx, "/pb.Zero/ShouldServe", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *zeroClient) Inform(ctx context.Context, in *TabletRequest, opts ...grpc.CallOption) (*TabletResponse, error) { - out := new(TabletResponse) - err := c.cc.Invoke(ctx, "/pb.Zero/Inform", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *zeroClient) AssignIds(ctx context.Context, in *Num, opts ...grpc.CallOption) (*AssignedIds, error) { - out := new(AssignedIds) - err := c.cc.Invoke(ctx, "/pb.Zero/AssignIds", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *zeroClient) Timestamps(ctx context.Context, in *Num, opts ...grpc.CallOption) (*AssignedIds, error) { - out := new(AssignedIds) - err := c.cc.Invoke(ctx, "/pb.Zero/Timestamps", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *zeroClient) CommitOrAbort(ctx context.Context, in *api.TxnContext, opts ...grpc.CallOption) (*api.TxnContext, error) { - out := new(api.TxnContext) - err := c.cc.Invoke(ctx, "/pb.Zero/CommitOrAbort", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *zeroClient) TryAbort(ctx context.Context, in *TxnTimestamps, opts ...grpc.CallOption) (*OracleDelta, error) { - out := new(OracleDelta) - err := c.cc.Invoke(ctx, "/pb.Zero/TryAbort", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *zeroClient) DeleteNamespace(ctx context.Context, in *DeleteNsRequest, opts ...grpc.CallOption) (*Status, error) { - out := new(Status) - err := c.cc.Invoke(ctx, "/pb.Zero/DeleteNamespace", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *zeroClient) RemoveNode(ctx context.Context, in *RemoveNodeRequest, opts ...grpc.CallOption) (*Status, error) { - out := new(Status) - err := c.cc.Invoke(ctx, "/pb.Zero/RemoveNode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *zeroClient) MoveTablet(ctx context.Context, in *MoveTabletRequest, opts ...grpc.CallOption) (*Status, error) { - out := new(Status) - err := c.cc.Invoke(ctx, "/pb.Zero/MoveTablet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *zeroClient) ApplyLicense(ctx context.Context, in *ApplyLicenseRequest, opts ...grpc.CallOption) (*Status, error) { - out := new(Status) - err := c.cc.Invoke(ctx, "/pb.Zero/ApplyLicense", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ZeroServer is the server API for Zero service. -type ZeroServer interface { - // These 3 endpoints are for handling membership. - Connect(context.Context, *Member) (*ConnectionState, error) - UpdateMembership(context.Context, *Group) (*api.Payload, error) - StreamMembership(*api.Payload, Zero_StreamMembershipServer) error - Oracle(*api.Payload, Zero_OracleServer) error - ShouldServe(context.Context, *Tablet) (*Tablet, error) - Inform(context.Context, *TabletRequest) (*TabletResponse, error) - AssignIds(context.Context, *Num) (*AssignedIds, error) - Timestamps(context.Context, *Num) (*AssignedIds, error) - CommitOrAbort(context.Context, *api.TxnContext) (*api.TxnContext, error) - TryAbort(context.Context, *TxnTimestamps) (*OracleDelta, error) - DeleteNamespace(context.Context, *DeleteNsRequest) (*Status, error) - RemoveNode(context.Context, *RemoveNodeRequest) (*Status, error) - MoveTablet(context.Context, *MoveTabletRequest) (*Status, error) - ApplyLicense(context.Context, *ApplyLicenseRequest) (*Status, error) -} - -// UnimplementedZeroServer can be embedded to have forward compatible implementations. -type UnimplementedZeroServer struct { -} - -func (*UnimplementedZeroServer) Connect(ctx context.Context, req *Member) (*ConnectionState, error) { - return nil, status.Errorf(codes.Unimplemented, "method Connect not implemented") -} -func (*UnimplementedZeroServer) UpdateMembership(ctx context.Context, req *Group) (*api.Payload, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateMembership not implemented") -} -func (*UnimplementedZeroServer) StreamMembership(req *api.Payload, srv Zero_StreamMembershipServer) error { - return status.Errorf(codes.Unimplemented, "method StreamMembership not implemented") -} -func (*UnimplementedZeroServer) Oracle(req *api.Payload, srv Zero_OracleServer) error { - return status.Errorf(codes.Unimplemented, "method Oracle not implemented") -} -func (*UnimplementedZeroServer) ShouldServe(ctx context.Context, req *Tablet) (*Tablet, error) { - return nil, status.Errorf(codes.Unimplemented, "method ShouldServe not implemented") -} -func (*UnimplementedZeroServer) Inform(ctx context.Context, req *TabletRequest) (*TabletResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Inform not implemented") -} -func (*UnimplementedZeroServer) AssignIds(ctx context.Context, req *Num) (*AssignedIds, error) { - return nil, status.Errorf(codes.Unimplemented, "method AssignIds not implemented") -} -func (*UnimplementedZeroServer) Timestamps(ctx context.Context, req *Num) (*AssignedIds, error) { - return nil, status.Errorf(codes.Unimplemented, "method Timestamps not implemented") -} -func (*UnimplementedZeroServer) CommitOrAbort(ctx context.Context, req *api.TxnContext) (*api.TxnContext, error) { - return nil, status.Errorf(codes.Unimplemented, "method CommitOrAbort not implemented") -} -func (*UnimplementedZeroServer) TryAbort(ctx context.Context, req *TxnTimestamps) (*OracleDelta, error) { - return nil, status.Errorf(codes.Unimplemented, "method TryAbort not implemented") -} -func (*UnimplementedZeroServer) DeleteNamespace(ctx context.Context, req *DeleteNsRequest) (*Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteNamespace not implemented") -} -func (*UnimplementedZeroServer) RemoveNode(ctx context.Context, req *RemoveNodeRequest) (*Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveNode not implemented") -} -func (*UnimplementedZeroServer) MoveTablet(ctx context.Context, req *MoveTabletRequest) (*Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method MoveTablet not implemented") -} -func (*UnimplementedZeroServer) ApplyLicense(ctx context.Context, req *ApplyLicenseRequest) (*Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApplyLicense not implemented") -} - -func RegisterZeroServer(s *grpc.Server, srv ZeroServer) { - s.RegisterService(&_Zero_serviceDesc, srv) -} - -func _Zero_Connect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Member) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ZeroServer).Connect(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Zero/Connect", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ZeroServer).Connect(ctx, req.(*Member)) - } - return interceptor(ctx, in, info, handler) -} - -func _Zero_UpdateMembership_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Group) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ZeroServer).UpdateMembership(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Zero/UpdateMembership", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ZeroServer).UpdateMembership(ctx, req.(*Group)) - } - return interceptor(ctx, in, info, handler) -} - -func _Zero_StreamMembership_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(api.Payload) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ZeroServer).StreamMembership(m, &zeroStreamMembershipServer{stream}) -} - -type Zero_StreamMembershipServer interface { - Send(*MembershipState) error - grpc.ServerStream -} - -type zeroStreamMembershipServer struct { - grpc.ServerStream -} - -func (x *zeroStreamMembershipServer) Send(m *MembershipState) error { - return x.ServerStream.SendMsg(m) -} - -func _Zero_Oracle_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(api.Payload) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ZeroServer).Oracle(m, &zeroOracleServer{stream}) -} - -type Zero_OracleServer interface { - Send(*OracleDelta) error - grpc.ServerStream -} - -type zeroOracleServer struct { - grpc.ServerStream -} - -func (x *zeroOracleServer) Send(m *OracleDelta) error { - return x.ServerStream.SendMsg(m) -} - -func _Zero_ShouldServe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Tablet) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ZeroServer).ShouldServe(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Zero/ShouldServe", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ZeroServer).ShouldServe(ctx, req.(*Tablet)) - } - return interceptor(ctx, in, info, handler) -} - -func _Zero_Inform_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TabletRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ZeroServer).Inform(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Zero/Inform", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ZeroServer).Inform(ctx, req.(*TabletRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Zero_AssignIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Num) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ZeroServer).AssignIds(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Zero/AssignIds", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ZeroServer).AssignIds(ctx, req.(*Num)) - } - return interceptor(ctx, in, info, handler) -} - -func _Zero_Timestamps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Num) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ZeroServer).Timestamps(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Zero/Timestamps", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ZeroServer).Timestamps(ctx, req.(*Num)) - } - return interceptor(ctx, in, info, handler) -} - -func _Zero_CommitOrAbort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(api.TxnContext) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ZeroServer).CommitOrAbort(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Zero/CommitOrAbort", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ZeroServer).CommitOrAbort(ctx, req.(*api.TxnContext)) - } - return interceptor(ctx, in, info, handler) -} - -func _Zero_TryAbort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TxnTimestamps) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ZeroServer).TryAbort(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Zero/TryAbort", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ZeroServer).TryAbort(ctx, req.(*TxnTimestamps)) - } - return interceptor(ctx, in, info, handler) -} - -func _Zero_DeleteNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteNsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ZeroServer).DeleteNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Zero/DeleteNamespace", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ZeroServer).DeleteNamespace(ctx, req.(*DeleteNsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Zero_RemoveNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveNodeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ZeroServer).RemoveNode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Zero/RemoveNode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ZeroServer).RemoveNode(ctx, req.(*RemoveNodeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Zero_MoveTablet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MoveTabletRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ZeroServer).MoveTablet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Zero/MoveTablet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ZeroServer).MoveTablet(ctx, req.(*MoveTabletRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Zero_ApplyLicense_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplyLicenseRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ZeroServer).ApplyLicense(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Zero/ApplyLicense", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ZeroServer).ApplyLicense(ctx, req.(*ApplyLicenseRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Zero_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pb.Zero", - HandlerType: (*ZeroServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Connect", - Handler: _Zero_Connect_Handler, - }, - { - MethodName: "UpdateMembership", - Handler: _Zero_UpdateMembership_Handler, - }, - { - MethodName: "ShouldServe", - Handler: _Zero_ShouldServe_Handler, - }, - { - MethodName: "Inform", - Handler: _Zero_Inform_Handler, - }, - { - MethodName: "AssignIds", - Handler: _Zero_AssignIds_Handler, - }, - { - MethodName: "Timestamps", - Handler: _Zero_Timestamps_Handler, - }, - { - MethodName: "CommitOrAbort", - Handler: _Zero_CommitOrAbort_Handler, - }, - { - MethodName: "TryAbort", - Handler: _Zero_TryAbort_Handler, - }, - { - MethodName: "DeleteNamespace", - Handler: _Zero_DeleteNamespace_Handler, - }, - { - MethodName: "RemoveNode", - Handler: _Zero_RemoveNode_Handler, - }, - { - MethodName: "MoveTablet", - Handler: _Zero_MoveTablet_Handler, - }, - { - MethodName: "ApplyLicense", - Handler: _Zero_ApplyLicense_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "StreamMembership", - Handler: _Zero_StreamMembership_Handler, - ServerStreams: true, - }, - { - StreamName: "Oracle", - Handler: _Zero_Oracle_Handler, - ServerStreams: true, - }, - }, - Metadata: "pb.proto", -} - -// WorkerClient is the client API for Worker service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type WorkerClient interface { - // Data serving RPCs. - Mutate(ctx context.Context, in *Mutations, opts ...grpc.CallOption) (*api.TxnContext, error) - ServeTask(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Result, error) - StreamSnapshot(ctx context.Context, opts ...grpc.CallOption) (Worker_StreamSnapshotClient, error) - Sort(ctx context.Context, in *SortMessage, opts ...grpc.CallOption) (*SortResult, error) - Schema(ctx context.Context, in *SchemaRequest, opts ...grpc.CallOption) (*SchemaResult, error) - Backup(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (*BackupResponse, error) - Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*Status, error) - Export(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*ExportResponse, error) - ReceivePredicate(ctx context.Context, opts ...grpc.CallOption) (Worker_ReceivePredicateClient, error) - MovePredicate(ctx context.Context, in *MovePredicatePayload, opts ...grpc.CallOption) (*api.Payload, error) - Subscribe(ctx context.Context, in *SubscriptionRequest, opts ...grpc.CallOption) (Worker_SubscribeClient, error) - UpdateGraphQLSchema(ctx context.Context, in *UpdateGraphQLSchemaRequest, opts ...grpc.CallOption) (*UpdateGraphQLSchemaResponse, error) - DeleteNamespace(ctx context.Context, in *DeleteNsRequest, opts ...grpc.CallOption) (*Status, error) - TaskStatus(ctx context.Context, in *TaskStatusRequest, opts ...grpc.CallOption) (*TaskStatusResponse, error) -} - -type workerClient struct { - cc *grpc.ClientConn -} - -func NewWorkerClient(cc *grpc.ClientConn) WorkerClient { - return &workerClient{cc} -} - -func (c *workerClient) Mutate(ctx context.Context, in *Mutations, opts ...grpc.CallOption) (*api.TxnContext, error) { - out := new(api.TxnContext) - err := c.cc.Invoke(ctx, "/pb.Worker/Mutate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerClient) ServeTask(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Result, error) { - out := new(Result) - err := c.cc.Invoke(ctx, "/pb.Worker/ServeTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerClient) StreamSnapshot(ctx context.Context, opts ...grpc.CallOption) (Worker_StreamSnapshotClient, error) { - stream, err := c.cc.NewStream(ctx, &_Worker_serviceDesc.Streams[0], "/pb.Worker/StreamSnapshot", opts...) - if err != nil { - return nil, err - } - x := &workerStreamSnapshotClient{stream} - return x, nil -} - -type Worker_StreamSnapshotClient interface { - Send(*Snapshot) error - Recv() (*KVS, error) - grpc.ClientStream -} - -type workerStreamSnapshotClient struct { - grpc.ClientStream -} - -func (x *workerStreamSnapshotClient) Send(m *Snapshot) error { - return x.ClientStream.SendMsg(m) -} - -func (x *workerStreamSnapshotClient) Recv() (*KVS, error) { - m := new(KVS) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *workerClient) Sort(ctx context.Context, in *SortMessage, opts ...grpc.CallOption) (*SortResult, error) { - out := new(SortResult) - err := c.cc.Invoke(ctx, "/pb.Worker/Sort", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerClient) Schema(ctx context.Context, in *SchemaRequest, opts ...grpc.CallOption) (*SchemaResult, error) { - out := new(SchemaResult) - err := c.cc.Invoke(ctx, "/pb.Worker/Schema", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerClient) Backup(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (*BackupResponse, error) { - out := new(BackupResponse) - err := c.cc.Invoke(ctx, "/pb.Worker/Backup", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerClient) Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*Status, error) { - out := new(Status) - err := c.cc.Invoke(ctx, "/pb.Worker/Restore", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerClient) Export(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*ExportResponse, error) { - out := new(ExportResponse) - err := c.cc.Invoke(ctx, "/pb.Worker/Export", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerClient) ReceivePredicate(ctx context.Context, opts ...grpc.CallOption) (Worker_ReceivePredicateClient, error) { - stream, err := c.cc.NewStream(ctx, &_Worker_serviceDesc.Streams[1], "/pb.Worker/ReceivePredicate", opts...) - if err != nil { - return nil, err - } - x := &workerReceivePredicateClient{stream} - return x, nil -} - -type Worker_ReceivePredicateClient interface { - Send(*KVS) error - CloseAndRecv() (*api.Payload, error) - grpc.ClientStream -} - -type workerReceivePredicateClient struct { - grpc.ClientStream -} - -func (x *workerReceivePredicateClient) Send(m *KVS) error { - return x.ClientStream.SendMsg(m) -} - -func (x *workerReceivePredicateClient) CloseAndRecv() (*api.Payload, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(api.Payload) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *workerClient) MovePredicate(ctx context.Context, in *MovePredicatePayload, opts ...grpc.CallOption) (*api.Payload, error) { - out := new(api.Payload) - err := c.cc.Invoke(ctx, "/pb.Worker/MovePredicate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerClient) Subscribe(ctx context.Context, in *SubscriptionRequest, opts ...grpc.CallOption) (Worker_SubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &_Worker_serviceDesc.Streams[2], "/pb.Worker/Subscribe", opts...) - if err != nil { - return nil, err - } - x := &workerSubscribeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Worker_SubscribeClient interface { - Recv() (*pb.KVList, error) - grpc.ClientStream -} - -type workerSubscribeClient struct { - grpc.ClientStream -} - -func (x *workerSubscribeClient) Recv() (*pb.KVList, error) { - m := new(pb.KVList) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *workerClient) UpdateGraphQLSchema(ctx context.Context, in *UpdateGraphQLSchemaRequest, opts ...grpc.CallOption) (*UpdateGraphQLSchemaResponse, error) { - out := new(UpdateGraphQLSchemaResponse) - err := c.cc.Invoke(ctx, "/pb.Worker/UpdateGraphQLSchema", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerClient) DeleteNamespace(ctx context.Context, in *DeleteNsRequest, opts ...grpc.CallOption) (*Status, error) { - out := new(Status) - err := c.cc.Invoke(ctx, "/pb.Worker/DeleteNamespace", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerClient) TaskStatus(ctx context.Context, in *TaskStatusRequest, opts ...grpc.CallOption) (*TaskStatusResponse, error) { - out := new(TaskStatusResponse) - err := c.cc.Invoke(ctx, "/pb.Worker/TaskStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// WorkerServer is the server API for Worker service. -type WorkerServer interface { - // Data serving RPCs. - Mutate(context.Context, *Mutations) (*api.TxnContext, error) - ServeTask(context.Context, *Query) (*Result, error) - StreamSnapshot(Worker_StreamSnapshotServer) error - Sort(context.Context, *SortMessage) (*SortResult, error) - Schema(context.Context, *SchemaRequest) (*SchemaResult, error) - Backup(context.Context, *BackupRequest) (*BackupResponse, error) - Restore(context.Context, *RestoreRequest) (*Status, error) - Export(context.Context, *ExportRequest) (*ExportResponse, error) - ReceivePredicate(Worker_ReceivePredicateServer) error - MovePredicate(context.Context, *MovePredicatePayload) (*api.Payload, error) - Subscribe(*SubscriptionRequest, Worker_SubscribeServer) error - UpdateGraphQLSchema(context.Context, *UpdateGraphQLSchemaRequest) (*UpdateGraphQLSchemaResponse, error) - DeleteNamespace(context.Context, *DeleteNsRequest) (*Status, error) - TaskStatus(context.Context, *TaskStatusRequest) (*TaskStatusResponse, error) -} - -// UnimplementedWorkerServer can be embedded to have forward compatible implementations. -type UnimplementedWorkerServer struct { -} - -func (*UnimplementedWorkerServer) Mutate(ctx context.Context, req *Mutations) (*api.TxnContext, error) { - return nil, status.Errorf(codes.Unimplemented, "method Mutate not implemented") -} -func (*UnimplementedWorkerServer) ServeTask(ctx context.Context, req *Query) (*Result, error) { - return nil, status.Errorf(codes.Unimplemented, "method ServeTask not implemented") -} -func (*UnimplementedWorkerServer) StreamSnapshot(srv Worker_StreamSnapshotServer) error { - return status.Errorf(codes.Unimplemented, "method StreamSnapshot not implemented") -} -func (*UnimplementedWorkerServer) Sort(ctx context.Context, req *SortMessage) (*SortResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method Sort not implemented") -} -func (*UnimplementedWorkerServer) Schema(ctx context.Context, req *SchemaRequest) (*SchemaResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method Schema not implemented") -} -func (*UnimplementedWorkerServer) Backup(ctx context.Context, req *BackupRequest) (*BackupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Backup not implemented") -} -func (*UnimplementedWorkerServer) Restore(ctx context.Context, req *RestoreRequest) (*Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method Restore not implemented") -} -func (*UnimplementedWorkerServer) Export(ctx context.Context, req *ExportRequest) (*ExportResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Export not implemented") -} -func (*UnimplementedWorkerServer) ReceivePredicate(srv Worker_ReceivePredicateServer) error { - return status.Errorf(codes.Unimplemented, "method ReceivePredicate not implemented") -} -func (*UnimplementedWorkerServer) MovePredicate(ctx context.Context, req *MovePredicatePayload) (*api.Payload, error) { - return nil, status.Errorf(codes.Unimplemented, "method MovePredicate not implemented") -} -func (*UnimplementedWorkerServer) Subscribe(req *SubscriptionRequest, srv Worker_SubscribeServer) error { - return status.Errorf(codes.Unimplemented, "method Subscribe not implemented") -} -func (*UnimplementedWorkerServer) UpdateGraphQLSchema(ctx context.Context, req *UpdateGraphQLSchemaRequest) (*UpdateGraphQLSchemaResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGraphQLSchema not implemented") -} -func (*UnimplementedWorkerServer) DeleteNamespace(ctx context.Context, req *DeleteNsRequest) (*Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteNamespace not implemented") -} -func (*UnimplementedWorkerServer) TaskStatus(ctx context.Context, req *TaskStatusRequest) (*TaskStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TaskStatus not implemented") -} - -func RegisterWorkerServer(s *grpc.Server, srv WorkerServer) { - s.RegisterService(&_Worker_serviceDesc, srv) -} - -func _Worker_Mutate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Mutations) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerServer).Mutate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Worker/Mutate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerServer).Mutate(ctx, req.(*Mutations)) - } - return interceptor(ctx, in, info, handler) -} - -func _Worker_ServeTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Query) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerServer).ServeTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Worker/ServeTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerServer).ServeTask(ctx, req.(*Query)) - } - return interceptor(ctx, in, info, handler) -} - -func _Worker_StreamSnapshot_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(WorkerServer).StreamSnapshot(&workerStreamSnapshotServer{stream}) -} - -type Worker_StreamSnapshotServer interface { - Send(*KVS) error - Recv() (*Snapshot, error) - grpc.ServerStream -} - -type workerStreamSnapshotServer struct { - grpc.ServerStream -} - -func (x *workerStreamSnapshotServer) Send(m *KVS) error { - return x.ServerStream.SendMsg(m) -} - -func (x *workerStreamSnapshotServer) Recv() (*Snapshot, error) { - m := new(Snapshot) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _Worker_Sort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SortMessage) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerServer).Sort(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Worker/Sort", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerServer).Sort(ctx, req.(*SortMessage)) - } - return interceptor(ctx, in, info, handler) -} - -func _Worker_Schema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SchemaRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerServer).Schema(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Worker/Schema", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerServer).Schema(ctx, req.(*SchemaRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Worker_Backup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BackupRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerServer).Backup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Worker/Backup", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerServer).Backup(ctx, req.(*BackupRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Worker_Restore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RestoreRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerServer).Restore(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Worker/Restore", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerServer).Restore(ctx, req.(*RestoreRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Worker_Export_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExportRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerServer).Export(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Worker/Export", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerServer).Export(ctx, req.(*ExportRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Worker_ReceivePredicate_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(WorkerServer).ReceivePredicate(&workerReceivePredicateServer{stream}) -} - -type Worker_ReceivePredicateServer interface { - SendAndClose(*api.Payload) error - Recv() (*KVS, error) - grpc.ServerStream -} - -type workerReceivePredicateServer struct { - grpc.ServerStream -} - -func (x *workerReceivePredicateServer) SendAndClose(m *api.Payload) error { - return x.ServerStream.SendMsg(m) -} - -func (x *workerReceivePredicateServer) Recv() (*KVS, error) { - m := new(KVS) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _Worker_MovePredicate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MovePredicatePayload) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerServer).MovePredicate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Worker/MovePredicate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerServer).MovePredicate(ctx, req.(*MovePredicatePayload)) - } - return interceptor(ctx, in, info, handler) -} - -func _Worker_Subscribe_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(SubscriptionRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(WorkerServer).Subscribe(m, &workerSubscribeServer{stream}) -} - -type Worker_SubscribeServer interface { - Send(*pb.KVList) error - grpc.ServerStream -} - -type workerSubscribeServer struct { - grpc.ServerStream -} - -func (x *workerSubscribeServer) Send(m *pb.KVList) error { - return x.ServerStream.SendMsg(m) -} - -func _Worker_UpdateGraphQLSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateGraphQLSchemaRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerServer).UpdateGraphQLSchema(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Worker/UpdateGraphQLSchema", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerServer).UpdateGraphQLSchema(ctx, req.(*UpdateGraphQLSchemaRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Worker_DeleteNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteNsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerServer).DeleteNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Worker/DeleteNamespace", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerServer).DeleteNamespace(ctx, req.(*DeleteNsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Worker_TaskStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TaskStatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerServer).TaskStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pb.Worker/TaskStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerServer).TaskStatus(ctx, req.(*TaskStatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Worker_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pb.Worker", - HandlerType: (*WorkerServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Mutate", - Handler: _Worker_Mutate_Handler, - }, - { - MethodName: "ServeTask", - Handler: _Worker_ServeTask_Handler, - }, - { - MethodName: "Sort", - Handler: _Worker_Sort_Handler, - }, - { - MethodName: "Schema", - Handler: _Worker_Schema_Handler, - }, - { - MethodName: "Backup", - Handler: _Worker_Backup_Handler, - }, - { - MethodName: "Restore", - Handler: _Worker_Restore_Handler, - }, - { - MethodName: "Export", - Handler: _Worker_Export_Handler, - }, - { - MethodName: "MovePredicate", - Handler: _Worker_MovePredicate_Handler, - }, - { - MethodName: "UpdateGraphQLSchema", - Handler: _Worker_UpdateGraphQLSchema_Handler, - }, - { - MethodName: "DeleteNamespace", - Handler: _Worker_DeleteNamespace_Handler, - }, - { - MethodName: "TaskStatus", - Handler: _Worker_TaskStatus_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "StreamSnapshot", - Handler: _Worker_StreamSnapshot_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "ReceivePredicate", - Handler: _Worker_ReceivePredicate_Handler, - ClientStreams: true, - }, - { - StreamName: "Subscribe", - Handler: _Worker_Subscribe_Handler, - ServerStreams: true, - }, - }, - Metadata: "pb.proto", -} - -func (m *List) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *List) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *List) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Uids) > 0 { - for iNdEx := len(m.Uids) - 1; iNdEx >= 0; iNdEx-- { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Uids[iNdEx])) - } - i = encodeVarintPb(dAtA, i, uint64(len(m.Uids)*8)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TaskValue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TaskValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TaskValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ValType != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.ValType)) - i-- - dAtA[i] = 0x10 - } - if len(m.Val) > 0 { - i -= len(m.Val) - copy(dAtA[i:], m.Val) - i = encodeVarintPb(dAtA, i, uint64(len(m.Val))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SrcFunction) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SrcFunction) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SrcFunction) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsCount { - i-- - if m.IsCount { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.Args) > 0 { - for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Args[iNdEx]) - copy(dAtA[i:], m.Args[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Args[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintPb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Query) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Query) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Query) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Offset != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Offset)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - } - if m.First != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.First)) - i-- - dAtA[i] = 0x78 - } - if m.Cache != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Cache)) - i-- - dAtA[i] = 0x70 - } - if m.ReadTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.ReadTs)) - i-- - dAtA[i] = 0x68 - } - if m.ExpandAll { - i-- - if m.ExpandAll { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x50 - } - if m.FacetsFilter != nil { - { - size, err := m.FacetsFilter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.FacetParam != nil { - { - size, err := m.FacetParam.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.Reverse { - i-- - if m.Reverse { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.SrcFunc != nil { - { - size, err := m.SrcFunc.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.UidList != nil { - { - size, err := m.UidList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.DoCount { - i-- - if m.DoCount { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.AfterUid != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.AfterUid)) - i-- - dAtA[i] = 0x19 - } - if len(m.Langs) > 0 { - for iNdEx := len(m.Langs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Langs[iNdEx]) - copy(dAtA[i:], m.Langs[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Langs[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Attr) > 0 { - i -= len(m.Attr) - copy(dAtA[i:], m.Attr) - i = encodeVarintPb(dAtA, i, uint64(len(m.Attr))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ValueList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValueList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValueList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Values) > 0 { - for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Values[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *LangList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LangList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LangList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Lang) > 0 { - for iNdEx := len(m.Lang) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Lang[iNdEx]) - copy(dAtA[i:], m.Lang[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Lang[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Result) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Result) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Result) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.VectorMetrics) > 0 { - for k := range m.VectorMetrics { - v := m.VectorMetrics[k] - baseI := i - i = encodeVarintPb(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintPb(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintPb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x42 - } - } - if m.List { - i-- - if m.List { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if len(m.LangMatrix) > 0 { - for iNdEx := len(m.LangMatrix) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.LangMatrix[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if len(m.FacetMatrix) > 0 { - for iNdEx := len(m.FacetMatrix) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.FacetMatrix[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if m.IntersectDest { - i-- - if m.IntersectDest { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.Counts) > 0 { - dAtA6 := make([]byte, len(m.Counts)*10) - var j5 int - for _, num := range m.Counts { - for num >= 1<<7 { - dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j5++ - } - dAtA6[j5] = uint8(num) - j5++ - } - i -= j5 - copy(dAtA[i:], dAtA6[:j5]) - i = encodeVarintPb(dAtA, i, uint64(j5)) - i-- - dAtA[i] = 0x1a - } - if len(m.ValueMatrix) > 0 { - for iNdEx := len(m.ValueMatrix) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ValueMatrix[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.UidMatrix) > 0 { - for iNdEx := len(m.UidMatrix) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.UidMatrix[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Order) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Order) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Order) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Langs) > 0 { - for iNdEx := len(m.Langs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Langs[iNdEx]) - copy(dAtA[i:], m.Langs[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Langs[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if m.Desc { - i-- - if m.Desc { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.Attr) > 0 { - i -= len(m.Attr) - copy(dAtA[i:], m.Attr) - i = encodeVarintPb(dAtA, i, uint64(len(m.Attr))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SortMessage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SortMessage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SortMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ReadTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.ReadTs)) - i-- - dAtA[i] = 0x68 - } - if m.Offset != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Offset)) - i-- - dAtA[i] = 0x20 - } - if m.Count != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Count)) - i-- - dAtA[i] = 0x18 - } - if len(m.UidMatrix) > 0 { - for iNdEx := len(m.UidMatrix) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.UidMatrix[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Order) > 0 { - for iNdEx := len(m.Order) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Order[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *SortResult) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SortResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SortResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.UidMatrix) > 0 { - for iNdEx := len(m.UidMatrix) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.UidMatrix[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RaftContext) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RaftContext) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsLearner { - i-- - if m.IsLearner { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.SnapshotTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.SnapshotTs)) - i-- - dAtA[i] = 0x20 - } - if len(m.Addr) > 0 { - i -= len(m.Addr) - copy(dAtA[i:], m.Addr) - i = encodeVarintPb(dAtA, i, uint64(len(m.Addr))) - i-- - dAtA[i] = 0x1a - } - if m.Group != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Group)) - i-- - dAtA[i] = 0x10 - } - if m.Id != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Id)) - i-- - dAtA[i] = 0x9 - } - return len(dAtA) - i, nil -} - -func (m *Member) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Member) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ForceGroupId { - i-- - if m.ForceGroupId { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x70 - } - if m.ClusterInfoOnly { - i-- - if m.ClusterInfoOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x68 - } - if m.Learner { - i-- - if m.Learner { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.LastUpdate != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.LastUpdate)) - i-- - dAtA[i] = 0x30 - } - if m.AmDead { - i-- - if m.AmDead { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.Leader { - i-- - if m.Leader { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.Addr) > 0 { - i -= len(m.Addr) - copy(dAtA[i:], m.Addr) - i = encodeVarintPb(dAtA, i, uint64(len(m.Addr))) - i-- - dAtA[i] = 0x1a - } - if m.GroupId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.GroupId)) - i-- - dAtA[i] = 0x10 - } - if m.Id != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Id)) - i-- - dAtA[i] = 0x9 - } - 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.CheckpointTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.CheckpointTs)) - i-- - dAtA[i] = 0x28 - } - if m.Checksum != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Checksum)) - i-- - dAtA[i] = 0x20 - } - if m.SnapshotTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.SnapshotTs)) - i-- - dAtA[i] = 0x18 - } - if len(m.Tablets) > 0 { - for k := range m.Tablets { - v := m.Tablets[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintPb(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintPb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Members) > 0 { - for k := range m.Members { - v := m.Members[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i = encodeVarintPb(dAtA, i, uint64(k)) - i-- - dAtA[i] = 0x8 - i = encodeVarintPb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *License) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *License) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *License) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Enabled { - i-- - if m.Enabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.ExpiryTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.ExpiryTs)) - i-- - dAtA[i] = 0x18 - } - if m.MaxNodes != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.MaxNodes)) - i-- - dAtA[i] = 0x10 - } - if len(m.User) > 0 { - i -= len(m.User) - copy(dAtA[i:], m.User) - i = encodeVarintPb(dAtA, i, uint64(len(m.User))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ZeroProposal) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ZeroProposal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ZeroProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Tablets) > 0 { - for iNdEx := len(m.Tablets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tablets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - } - if m.DeleteNs != nil { - { - size, err := m.DeleteNs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if m.MaxNsID != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.MaxNsID)) - i-- - dAtA[i] = 0x60 - } - if m.Snapshot != nil { - { - size, err := m.Snapshot.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.License != nil { - { - size, err := m.License.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if len(m.Cid) > 0 { - i -= len(m.Cid) - copy(dAtA[i:], m.Cid) - i = encodeVarintPb(dAtA, i, uint64(len(m.Cid))) - i-- - dAtA[i] = 0x4a - } - if m.Txn != nil { - { - size, err := m.Txn.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.MaxRaftId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.MaxRaftId)) - i-- - dAtA[i] = 0x30 - } - if m.MaxTxnTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.MaxTxnTs)) - i-- - dAtA[i] = 0x28 - } - if m.MaxUID != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.MaxUID)) - i-- - dAtA[i] = 0x20 - } - if m.Tablet != nil { - { - size, err := m.Tablet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Member != nil { - { - size, err := m.Member.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.SnapshotTs) > 0 { - for k := range m.SnapshotTs { - v := m.SnapshotTs[k] - baseI := i - i = encodeVarintPb(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i = encodeVarintPb(dAtA, i, uint64(k)) - i-- - dAtA[i] = 0x8 - i = encodeVarintPb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *MembershipState) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MembershipState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MembershipState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxNsID != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.MaxNsID)) - i-- - dAtA[i] = 0x50 - } - if m.License != nil { - { - size, err := m.License.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if len(m.Cid) > 0 { - i -= len(m.Cid) - copy(dAtA[i:], m.Cid) - i = encodeVarintPb(dAtA, i, uint64(len(m.Cid))) - i-- - dAtA[i] = 0x42 - } - if len(m.Removed) > 0 { - for iNdEx := len(m.Removed) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Removed[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - if m.MaxRaftId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.MaxRaftId)) - i-- - dAtA[i] = 0x30 - } - if m.MaxTxnTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.MaxTxnTs)) - i-- - dAtA[i] = 0x28 - } - if m.MaxUID != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.MaxUID)) - i-- - dAtA[i] = 0x20 - } - if len(m.Zeros) > 0 { - for k := range m.Zeros { - v := m.Zeros[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i = encodeVarintPb(dAtA, i, uint64(k)) - i-- - dAtA[i] = 0x8 - i = encodeVarintPb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Groups) > 0 { - for k := range m.Groups { - v := m.Groups[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i = encodeVarintPb(dAtA, i, uint64(k)) - i-- - dAtA[i] = 0x8 - i = encodeVarintPb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if m.Counter != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Counter)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ConnectionState) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ConnectionState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConnectionState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxPending != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.MaxPending)) - i-- - dAtA[i] = 0x18 - } - if m.State != nil { - { - size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Member != nil { - { - size, err := m.Member.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *HealthInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HealthInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HealthInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxAssigned != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.MaxAssigned)) - i-- - dAtA[i] = 0x58 - } - if len(m.EeFeatures) > 0 { - for iNdEx := len(m.EeFeatures) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.EeFeatures[iNdEx]) - copy(dAtA[i:], m.EeFeatures[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.EeFeatures[iNdEx]))) - i-- - dAtA[i] = 0x52 - } - } - if len(m.Indexing) > 0 { - for iNdEx := len(m.Indexing) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Indexing[iNdEx]) - copy(dAtA[i:], m.Indexing[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Indexing[iNdEx]))) - i-- - dAtA[i] = 0x4a - } - } - if len(m.Ongoing) > 0 { - for iNdEx := len(m.Ongoing) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ongoing[iNdEx]) - copy(dAtA[i:], m.Ongoing[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Ongoing[iNdEx]))) - i-- - dAtA[i] = 0x42 - } - } - if m.LastEcho != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.LastEcho)) - i-- - dAtA[i] = 0x38 - } - if m.Uptime != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Uptime)) - i-- - dAtA[i] = 0x30 - } - if len(m.Version) > 0 { - i -= len(m.Version) - copy(dAtA[i:], m.Version) - i = encodeVarintPb(dAtA, i, uint64(len(m.Version))) - i-- - dAtA[i] = 0x2a - } - if len(m.Group) > 0 { - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintPb(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0x22 - } - if len(m.Status) > 0 { - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintPb(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x1a - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintPb(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.Instance) > 0 { - i -= len(m.Instance) - copy(dAtA[i:], m.Instance) - i = encodeVarintPb(dAtA, i, uint64(len(m.Instance))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Tablet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Tablet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Tablet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.UncompressedBytes != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.UncompressedBytes)) - i-- - dAtA[i] = 0x58 - } - if m.MoveTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.MoveTs)) - i-- - dAtA[i] = 0x50 - } - if m.ReadOnly { - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if m.Remove { - i-- - if m.Remove { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if m.OnDiskBytes != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.OnDiskBytes)) - i-- - dAtA[i] = 0x38 - } - if m.Force { - i-- - if m.Force { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.Predicate) > 0 { - i -= len(m.Predicate) - copy(dAtA[i:], m.Predicate) - i = encodeVarintPb(dAtA, i, uint64(len(m.Predicate))) - i-- - dAtA[i] = 0x12 - } - if m.GroupId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.GroupId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DirectedEdge) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DirectedEdge) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DirectedEdge) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Namespace != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Namespace)) - i-- - dAtA[i] = 0x58 - } - if len(m.AllowedPreds) > 0 { - for iNdEx := len(m.AllowedPreds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AllowedPreds[iNdEx]) - copy(dAtA[i:], m.AllowedPreds[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.AllowedPreds[iNdEx]))) - i-- - dAtA[i] = 0x52 - } - } - if len(m.Facets) > 0 { - for iNdEx := len(m.Facets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Facets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - } - if m.Op != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Op)) - i-- - dAtA[i] = 0x40 - } - if len(m.Lang) > 0 { - i -= len(m.Lang) - copy(dAtA[i:], m.Lang) - i = encodeVarintPb(dAtA, i, uint64(len(m.Lang))) - i-- - dAtA[i] = 0x3a - } - if m.ValueId != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.ValueId)) - i-- - dAtA[i] = 0x29 - } - if m.ValueType != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.ValueType)) - i-- - dAtA[i] = 0x20 - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintPb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x1a - } - if len(m.Attr) > 0 { - i -= len(m.Attr) - copy(dAtA[i:], m.Attr) - i = encodeVarintPb(dAtA, i, uint64(len(m.Attr))) - i-- - dAtA[i] = 0x12 - } - if m.Entity != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Entity)) - i-- - dAtA[i] = 0x9 - } - return len(dAtA) - i, nil -} - -func (m *Mutations) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Mutations) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Mutations) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Metadata != nil { - { - size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if len(m.DropValue) > 0 { - i -= len(m.DropValue) - copy(dAtA[i:], m.DropValue) - i = encodeVarintPb(dAtA, i, uint64(len(m.DropValue))) - i-- - dAtA[i] = 0x42 - } - if m.DropOp != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.DropOp)) - i-- - dAtA[i] = 0x38 - } - if len(m.Types) > 0 { - for iNdEx := len(m.Types) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Types[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if len(m.Schema) > 0 { - for iNdEx := len(m.Schema) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Schema[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.Edges) > 0 { - for iNdEx := len(m.Edges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Edges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.StartTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x10 - } - if m.GroupId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.GroupId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Metadata) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Metadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PredHints) > 0 { - for k := range m.PredHints { - v := m.PredHints[k] - baseI := i - i = encodeVarintPb(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintPb(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintPb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Snapshot) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Snapshot) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Snapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SinceTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.SinceTs)) - i-- - dAtA[i] = 0x28 - } - if m.Done { - i-- - if m.Done { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.ReadTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.ReadTs)) - i-- - dAtA[i] = 0x18 - } - if m.Index != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x10 - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ZeroSnapshot) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ZeroSnapshot) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ZeroSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.State != nil { - { - size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.CheckpointTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.CheckpointTs)) - i-- - dAtA[i] = 0x10 - } - if m.Index != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RestoreRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RestoreRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RestoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsNamespaceAwareRestore { - i-- - if m.IsNamespaceAwareRestore { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa0 - } - if m.FromNamespace != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.FromNamespace)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x98 - } - if m.IsPartial { - i-- - if m.IsPartial { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 - } - if m.IncrementalFrom != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.IncrementalFrom)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 - } - if m.BackupNum != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.BackupNum)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - } - if len(m.VaultFormat) > 0 { - i -= len(m.VaultFormat) - copy(dAtA[i:], m.VaultFormat) - i = encodeVarintPb(dAtA, i, uint64(len(m.VaultFormat))) - i-- - dAtA[i] = 0x7a - } - if len(m.VaultField) > 0 { - i -= len(m.VaultField) - copy(dAtA[i:], m.VaultField) - i = encodeVarintPb(dAtA, i, uint64(len(m.VaultField))) - i-- - dAtA[i] = 0x72 - } - if len(m.VaultPath) > 0 { - i -= len(m.VaultPath) - copy(dAtA[i:], m.VaultPath) - i = encodeVarintPb(dAtA, i, uint64(len(m.VaultPath))) - i-- - dAtA[i] = 0x6a - } - if len(m.VaultSecretidFile) > 0 { - i -= len(m.VaultSecretidFile) - copy(dAtA[i:], m.VaultSecretidFile) - i = encodeVarintPb(dAtA, i, uint64(len(m.VaultSecretidFile))) - i-- - dAtA[i] = 0x62 - } - if len(m.VaultRoleidFile) > 0 { - i -= len(m.VaultRoleidFile) - copy(dAtA[i:], m.VaultRoleidFile) - i = encodeVarintPb(dAtA, i, uint64(len(m.VaultRoleidFile))) - i-- - dAtA[i] = 0x5a - } - if len(m.VaultAddr) > 0 { - i -= len(m.VaultAddr) - copy(dAtA[i:], m.VaultAddr) - i = encodeVarintPb(dAtA, i, uint64(len(m.VaultAddr))) - i-- - dAtA[i] = 0x52 - } - if len(m.EncryptionKeyFile) > 0 { - i -= len(m.EncryptionKeyFile) - copy(dAtA[i:], m.EncryptionKeyFile) - i = encodeVarintPb(dAtA, i, uint64(len(m.EncryptionKeyFile))) - i-- - dAtA[i] = 0x4a - } - if m.Anonymous { - i-- - if m.Anonymous { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if len(m.SessionToken) > 0 { - i -= len(m.SessionToken) - copy(dAtA[i:], m.SessionToken) - i = encodeVarintPb(dAtA, i, uint64(len(m.SessionToken))) - i-- - dAtA[i] = 0x3a - } - if len(m.SecretKey) > 0 { - i -= len(m.SecretKey) - copy(dAtA[i:], m.SecretKey) - i = encodeVarintPb(dAtA, i, uint64(len(m.SecretKey))) - i-- - dAtA[i] = 0x32 - } - if len(m.AccessKey) > 0 { - i -= len(m.AccessKey) - copy(dAtA[i:], m.AccessKey) - i = encodeVarintPb(dAtA, i, uint64(len(m.AccessKey))) - i-- - dAtA[i] = 0x2a - } - if len(m.BackupId) > 0 { - i -= len(m.BackupId) - copy(dAtA[i:], m.BackupId) - i = encodeVarintPb(dAtA, i, uint64(len(m.BackupId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Location) > 0 { - i -= len(m.Location) - copy(dAtA[i:], m.Location) - i = encodeVarintPb(dAtA, i, uint64(len(m.Location))) - i-- - dAtA[i] = 0x1a - } - if m.RestoreTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.RestoreTs)) - i-- - dAtA[i] = 0x10 - } - if m.GroupId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.GroupId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Proposal) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Proposal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StartTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - } - if m.DeleteNs != nil { - { - size, err := m.DeleteNs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - if m.CdcState != nil { - { - size, err := m.CdcState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if m.Restore != nil { - { - size, err := m.Restore.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - if m.ExpectedChecksum != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.ExpectedChecksum)) - i-- - dAtA[i] = 0x58 - } - if m.Index != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x50 - } - if m.Snapshot != nil { - { - size, err := m.Snapshot.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.Delta != nil { - { - size, err := m.Delta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if len(m.CleanPredicate) > 0 { - i -= len(m.CleanPredicate) - copy(dAtA[i:], m.CleanPredicate) - i = encodeVarintPb(dAtA, i, uint64(len(m.CleanPredicate))) - i-- - dAtA[i] = 0x32 - } - if m.State != nil { - { - size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.Kv) > 0 { - for iNdEx := len(m.Kv) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Kv[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if m.Mutations != nil { - { - size, err := m.Mutations.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} - -func (m *CDCState) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CDCState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CDCState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SentTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.SentTs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *KVS) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *KVS) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KVS) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintPb(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x2a - } - if len(m.Types) > 0 { - for iNdEx := len(m.Types) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Types[iNdEx]) - copy(dAtA[i:], m.Types[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Types[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Predicates) > 0 { - for iNdEx := len(m.Predicates) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Predicates[iNdEx]) - copy(dAtA[i:], m.Predicates[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Predicates[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if m.Done { - i-- - if m.Done { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - return len(dAtA) - i, nil -} - -func (m *Posting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Posting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Posting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CommitTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x70 - } - if m.StartTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x68 - } - if m.Op != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Op)) - i-- - dAtA[i] = 0x60 - } - if len(m.Facets) > 0 { - for iNdEx := len(m.Facets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Facets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - } - if len(m.LangTag) > 0 { - i -= len(m.LangTag) - copy(dAtA[i:], m.LangTag) - i = encodeVarintPb(dAtA, i, uint64(len(m.LangTag))) - i-- - dAtA[i] = 0x2a - } - if m.PostingType != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.PostingType)) - i-- - dAtA[i] = 0x20 - } - if m.ValType != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.ValType)) - i-- - dAtA[i] = 0x18 - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintPb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - } - if m.Uid != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Uid)) - i-- - dAtA[i] = 0x9 - } - return len(dAtA) - i, nil -} - -func (m *UidBlock) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UidBlock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UidBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NumUids != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.NumUids)) - i-- - dAtA[i] = 0x18 - } - if len(m.Deltas) > 0 { - i -= len(m.Deltas) - copy(dAtA[i:], m.Deltas) - i = encodeVarintPb(dAtA, i, uint64(len(m.Deltas))) - i-- - dAtA[i] = 0x12 - } - if m.Base != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Base)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *UidPack) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UidPack) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UidPack) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AllocRef != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.AllocRef)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb8 - } - if len(m.Blocks) > 0 { - for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Blocks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.BlockSize != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.BlockSize)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *PostingList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PostingList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PostingList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Splits) > 0 { - dAtA31 := make([]byte, len(m.Splits)*10) - var j30 int - for _, num := range m.Splits { - for num >= 1<<7 { - dAtA31[j30] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j30++ - } - dAtA31[j30] = uint8(num) - j30++ - } - i -= j30 - copy(dAtA[i:], dAtA31[:j30]) - i = encodeVarintPb(dAtA, i, uint64(j30)) - i-- - dAtA[i] = 0x22 - } - if m.CommitTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x18 - } - if len(m.Postings) > 0 { - for iNdEx := len(m.Postings) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Postings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.Pack != nil { - { - size, err := m.Pack.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *FacetParam) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FacetParam) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FacetParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Alias) > 0 { - i -= len(m.Alias) - copy(dAtA[i:], m.Alias) - i = encodeVarintPb(dAtA, i, uint64(len(m.Alias))) - i-- - dAtA[i] = 0x12 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintPb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *FacetParams) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FacetParams) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FacetParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Param) > 0 { - for iNdEx := len(m.Param) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Param[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.AllKeys { - i-- - if m.AllKeys { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Facets) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Facets) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Facets) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Facets) > 0 { - for iNdEx := len(m.Facets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Facets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *FacetsList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FacetsList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FacetsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.FacetsList) > 0 { - for iNdEx := len(m.FacetsList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.FacetsList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Function) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Function) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Function) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Args) > 0 { - for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Args[iNdEx]) - copy(dAtA[i:], m.Args[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Args[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintPb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintPb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *FilterTree) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FilterTree) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FilterTree) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Func != nil { - { - size, err := m.Func.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Children) > 0 { - for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Children[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Op) > 0 { - i -= len(m.Op) - copy(dAtA[i:], m.Op) - i = encodeVarintPb(dAtA, i, uint64(len(m.Op))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SchemaRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SchemaRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SchemaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Types) > 0 { - for iNdEx := len(m.Types) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Types[iNdEx]) - copy(dAtA[i:], m.Types[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Types[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Fields) > 0 { - for iNdEx := len(m.Fields) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Fields[iNdEx]) - copy(dAtA[i:], m.Fields[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Fields[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Predicates) > 0 { - for iNdEx := len(m.Predicates) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Predicates[iNdEx]) - copy(dAtA[i:], m.Predicates[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Predicates[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if m.GroupId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.GroupId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *SchemaNode) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SchemaNode) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SchemaNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.IndexSpecs) > 0 { - for iNdEx := len(m.IndexSpecs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.IndexSpecs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - } - if m.Unique { - i-- - if m.Unique { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x58 - } - if m.NoConflict { - i-- - if m.NoConflict { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x50 - } - if m.Lang { - i-- - if m.Lang { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if m.Upsert { - i-- - if m.Upsert { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if m.List { - i-- - if m.List { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.Count { - i-- - if m.Count { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.Reverse { - i-- - if m.Reverse { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if len(m.Tokenizer) > 0 { - for iNdEx := len(m.Tokenizer) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Tokenizer[iNdEx]) - copy(dAtA[i:], m.Tokenizer[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Tokenizer[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if m.Index { - i-- - if m.Index { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.Type) > 0 { - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintPb(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0x12 - } - if len(m.Predicate) > 0 { - i -= len(m.Predicate) - copy(dAtA[i:], m.Predicate) - i = encodeVarintPb(dAtA, i, uint64(len(m.Predicate))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SchemaResult) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SchemaResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SchemaResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Schema) > 0 { - for iNdEx := len(m.Schema) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Schema[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *SchemaUpdate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SchemaUpdate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SchemaUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.IndexSpecs) > 0 { - for iNdEx := len(m.IndexSpecs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.IndexSpecs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - } - if m.Unique { - i-- - if m.Unique { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x70 - } - if m.NoConflict { - i-- - if m.NoConflict { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x68 - } - if len(m.ObjectTypeName) > 0 { - i -= len(m.ObjectTypeName) - copy(dAtA[i:], m.ObjectTypeName) - i = encodeVarintPb(dAtA, i, uint64(len(m.ObjectTypeName))) - i-- - dAtA[i] = 0x62 - } - if m.NonNullableList { - i-- - if m.NonNullableList { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x58 - } - if m.NonNullable { - i-- - if m.NonNullable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x50 - } - if m.Lang { - i-- - if m.Lang { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if m.Upsert { - i-- - if m.Upsert { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if m.List { - i-- - if m.List { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.Count { - i-- - if m.Count { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if len(m.Tokenizer) > 0 { - for iNdEx := len(m.Tokenizer) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Tokenizer[iNdEx]) - copy(dAtA[i:], m.Tokenizer[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Tokenizer[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if m.Directive != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Directive)) - i-- - dAtA[i] = 0x18 - } - if m.ValueType != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.ValueType)) - i-- - dAtA[i] = 0x10 - } - if len(m.Predicate) > 0 { - i -= len(m.Predicate) - copy(dAtA[i:], m.Predicate) - i = encodeVarintPb(dAtA, i, uint64(len(m.Predicate))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VectorIndexSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VectorIndexSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VectorIndexSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Options) > 0 { - for iNdEx := len(m.Options) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Options[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintPb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *OptionPair) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OptionPair) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OptionPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintPb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintPb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TypeUpdate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TypeUpdate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TypeUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Fields) > 0 { - for iNdEx := len(m.Fields) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Fields[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.TypeName) > 0 { - i -= len(m.TypeName) - copy(dAtA[i:], m.TypeName) - i = encodeVarintPb(dAtA, i, uint64(len(m.TypeName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MapHeader) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MapHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MapHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PartitionKeys) > 0 { - for iNdEx := len(m.PartitionKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PartitionKeys[iNdEx]) - copy(dAtA[i:], m.PartitionKeys[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.PartitionKeys[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *MovePredicatePayload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MovePredicatePayload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MovePredicatePayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ExpectedChecksum != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.ExpectedChecksum)) - i-- - dAtA[i] = 0x28 - } - if m.TxnTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.TxnTs)) - i-- - dAtA[i] = 0x20 - } - if m.DestGid != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.DestGid)) - i-- - dAtA[i] = 0x18 - } - if m.SourceGid != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.SourceGid)) - i-- - dAtA[i] = 0x10 - } - if len(m.Predicate) > 0 { - i -= len(m.Predicate) - copy(dAtA[i:], m.Predicate) - i = encodeVarintPb(dAtA, i, uint64(len(m.Predicate))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TxnStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TxnStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TxnStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CommitTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x10 - } - if m.StartTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *OracleDelta) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OracleDelta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OracleDelta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.GroupChecksums) > 0 { - for k := range m.GroupChecksums { - v := m.GroupChecksums[k] - baseI := i - i = encodeVarintPb(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i = encodeVarintPb(dAtA, i, uint64(k)) - i-- - dAtA[i] = 0x8 - i = encodeVarintPb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if m.MaxAssigned != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.MaxAssigned)) - i-- - dAtA[i] = 0x10 - } - if len(m.Txns) > 0 { - for iNdEx := len(m.Txns) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Txns[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *TxnTimestamps) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TxnTimestamps) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TxnTimestamps) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ts) > 0 { - dAtA35 := make([]byte, len(m.Ts)*10) - var j34 int - for _, num := range m.Ts { - for num >= 1<<7 { - dAtA35[j34] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j34++ - } - dAtA35[j34] = uint8(num) - j34++ - } - i -= j34 - copy(dAtA[i:], dAtA35[:j34]) - i = encodeVarintPb(dAtA, i, uint64(j34)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PeerResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PeerResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PeerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Status { - i-- - if m.Status { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RaftBatch) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RaftBatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Payload != nil { - { - size, err := m.Payload.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TabletResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TabletResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Tablets) > 0 { - for iNdEx := len(m.Tablets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tablets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *TabletRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TabletRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.GroupId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.GroupId)) - i-- - dAtA[i] = 0x10 - } - if len(m.Tablets) > 0 { - for iNdEx := len(m.Tablets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tablets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *SubscriptionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubscriptionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SubscriptionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Matches) > 0 { - for iNdEx := len(m.Matches) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Matches[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Prefixes) > 0 { - for iNdEx := len(m.Prefixes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Prefixes[iNdEx]) - copy(dAtA[i:], m.Prefixes[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Prefixes[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *SubscriptionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubscriptionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SubscriptionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Kvs != nil { - { - size, err := m.Kvs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Num) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Num) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Num) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Bump { - i-- - if m.Bump { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.Type != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x20 - } - if m.Forwarded { - i-- - if m.Forwarded { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.ReadOnly { - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.Val != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Val)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *AssignedIds) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AssignedIds) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AssignedIds) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ReadOnly != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.ReadOnly)) - i-- - dAtA[i] = 0x28 - } - if m.EndId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.EndId)) - i-- - dAtA[i] = 0x10 - } - if m.StartId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.StartId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RemoveNodeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RemoveNodeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.GroupId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.GroupId)) - i-- - dAtA[i] = 0x10 - } - if m.NodeId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.NodeId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *MoveTabletRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MoveTabletRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MoveTabletRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DstGroup != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.DstGroup)) - i-- - dAtA[i] = 0x18 - } - if len(m.Tablet) > 0 { - i -= len(m.Tablet) - copy(dAtA[i:], m.Tablet) - i = encodeVarintPb(dAtA, i, uint64(len(m.Tablet))) - i-- - dAtA[i] = 0x12 - } - if m.Namespace != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Namespace)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ApplyLicenseRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ApplyLicenseRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ApplyLicenseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.License) > 0 { - i -= len(m.License) - copy(dAtA[i:], m.License) - i = encodeVarintPb(dAtA, i, uint64(len(m.License))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SnapshotMeta) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SnapshotMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapshotMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.GroupId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.GroupId)) - i-- - dAtA[i] = 0x10 - } - if m.ClientTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.ClientTs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Status) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Status) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintPb(dAtA, i, uint64(len(m.Msg))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BackupRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BackupRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BackupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ForceFull { - i-- - if m.ForceFull { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x58 - } - if len(m.Predicates) > 0 { - for iNdEx := len(m.Predicates) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Predicates[iNdEx]) - copy(dAtA[i:], m.Predicates[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Predicates[iNdEx]))) - i-- - dAtA[i] = 0x52 - } - } - if m.Anonymous { - i-- - if m.Anonymous { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if len(m.SessionToken) > 0 { - i -= len(m.SessionToken) - copy(dAtA[i:], m.SessionToken) - i = encodeVarintPb(dAtA, i, uint64(len(m.SessionToken))) - i-- - dAtA[i] = 0x42 - } - if len(m.SecretKey) > 0 { - i -= len(m.SecretKey) - copy(dAtA[i:], m.SecretKey) - i = encodeVarintPb(dAtA, i, uint64(len(m.SecretKey))) - i-- - dAtA[i] = 0x3a - } - if len(m.AccessKey) > 0 { - i -= len(m.AccessKey) - copy(dAtA[i:], m.AccessKey) - i = encodeVarintPb(dAtA, i, uint64(len(m.AccessKey))) - i-- - dAtA[i] = 0x32 - } - if len(m.Destination) > 0 { - i -= len(m.Destination) - copy(dAtA[i:], m.Destination) - i = encodeVarintPb(dAtA, i, uint64(len(m.Destination))) - i-- - dAtA[i] = 0x2a - } - if len(m.UnixTs) > 0 { - i -= len(m.UnixTs) - copy(dAtA[i:], m.UnixTs) - i = encodeVarintPb(dAtA, i, uint64(len(m.UnixTs))) - i-- - dAtA[i] = 0x22 - } - if m.GroupId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.GroupId)) - i-- - dAtA[i] = 0x18 - } - if m.SinceTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.SinceTs)) - i-- - dAtA[i] = 0x10 - } - if m.ReadTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.ReadTs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BackupResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BackupResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BackupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DropOperations) > 0 { - for iNdEx := len(m.DropOperations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DropOperations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *DropOperation) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DropOperation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DropOperation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DropValue) > 0 { - i -= len(m.DropValue) - copy(dAtA[i:], m.DropValue) - i = encodeVarintPb(dAtA, i, uint64(len(m.DropValue))) - i-- - dAtA[i] = 0x12 - } - if m.DropOp != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.DropOp)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ExportRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExportRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Namespace != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Namespace)) - i-- - dAtA[i] = 0x50 - } - if m.Anonymous { - i-- - if m.Anonymous { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if len(m.SessionToken) > 0 { - i -= len(m.SessionToken) - copy(dAtA[i:], m.SessionToken) - i = encodeVarintPb(dAtA, i, uint64(len(m.SessionToken))) - i-- - dAtA[i] = 0x42 - } - if len(m.SecretKey) > 0 { - i -= len(m.SecretKey) - copy(dAtA[i:], m.SecretKey) - i = encodeVarintPb(dAtA, i, uint64(len(m.SecretKey))) - i-- - dAtA[i] = 0x3a - } - if len(m.AccessKey) > 0 { - i -= len(m.AccessKey) - copy(dAtA[i:], m.AccessKey) - i = encodeVarintPb(dAtA, i, uint64(len(m.AccessKey))) - i-- - dAtA[i] = 0x32 - } - if len(m.Destination) > 0 { - i -= len(m.Destination) - copy(dAtA[i:], m.Destination) - i = encodeVarintPb(dAtA, i, uint64(len(m.Destination))) - i-- - dAtA[i] = 0x2a - } - if len(m.Format) > 0 { - i -= len(m.Format) - copy(dAtA[i:], m.Format) - i = encodeVarintPb(dAtA, i, uint64(len(m.Format))) - i-- - dAtA[i] = 0x22 - } - if m.UnixTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.UnixTs)) - i-- - dAtA[i] = 0x18 - } - if m.ReadTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.ReadTs)) - i-- - dAtA[i] = 0x10 - } - if m.GroupId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.GroupId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ExportResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExportResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Files) > 0 { - for iNdEx := len(m.Files) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Files[iNdEx]) - copy(dAtA[i:], m.Files[iNdEx]) - i = encodeVarintPb(dAtA, i, uint64(len(m.Files[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintPb(dAtA, i, uint64(len(m.Msg))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BackupKey) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BackupKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BackupKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Namespace != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Namespace)) - i-- - dAtA[i] = 0x38 - } - if m.Count != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Count)) - i-- - dAtA[i] = 0x30 - } - if len(m.Term) > 0 { - i -= len(m.Term) - copy(dAtA[i:], m.Term) - i = encodeVarintPb(dAtA, i, uint64(len(m.Term))) - i-- - dAtA[i] = 0x2a - } - if m.StartUid != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.StartUid)) - i-- - dAtA[i] = 0x20 - } - if m.Uid != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Uid)) - i-- - dAtA[i] = 0x18 - } - if len(m.Attr) > 0 { - i -= len(m.Attr) - copy(dAtA[i:], m.Attr) - i = encodeVarintPb(dAtA, i, uint64(len(m.Attr))) - i-- - dAtA[i] = 0x12 - } - if m.Type != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BackupPostingList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BackupPostingList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BackupPostingList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.UidBytes) > 0 { - i -= len(m.UidBytes) - copy(dAtA[i:], m.UidBytes) - i = encodeVarintPb(dAtA, i, uint64(len(m.UidBytes))) - i-- - dAtA[i] = 0x2a - } - if len(m.Splits) > 0 { - dAtA40 := make([]byte, len(m.Splits)*10) - var j39 int - for _, num := range m.Splits { - for num >= 1<<7 { - dAtA40[j39] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j39++ - } - dAtA40[j39] = uint8(num) - j39++ - } - i -= j39 - copy(dAtA[i:], dAtA40[:j39]) - i = encodeVarintPb(dAtA, i, uint64(j39)) - i-- - dAtA[i] = 0x22 - } - if m.CommitTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x18 - } - if len(m.Postings) > 0 { - for iNdEx := len(m.Postings) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Postings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Uids) > 0 { - dAtA42 := make([]byte, len(m.Uids)*10) - var j41 int - for _, num := range m.Uids { - for num >= 1<<7 { - dAtA42[j41] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j41++ - } - dAtA42[j41] = uint8(num) - j41++ - } - i -= j41 - copy(dAtA[i:], dAtA42[:j41]) - i = encodeVarintPb(dAtA, i, uint64(j41)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *UpdateGraphQLSchemaRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateGraphQLSchemaRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateGraphQLSchemaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DgraphTypes) > 0 { - for iNdEx := len(m.DgraphTypes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DgraphTypes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.DgraphPreds) > 0 { - for iNdEx := len(m.DgraphPreds) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DgraphPreds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.GraphqlSchema) > 0 { - i -= len(m.GraphqlSchema) - copy(dAtA[i:], m.GraphqlSchema) - i = encodeVarintPb(dAtA, i, uint64(len(m.GraphqlSchema))) - i-- - dAtA[i] = 0x12 - } - if m.StartTs != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *UpdateGraphQLSchemaResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateGraphQLSchemaResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateGraphQLSchemaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Uid != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Uid)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BulkMeta) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BulkMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BulkMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Types) > 0 { - for iNdEx := len(m.Types) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Types[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.SchemaMap) > 0 { - for k := range m.SchemaMap { - v := m.SchemaMap[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintPb(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintPb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if m.EdgeCount != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.EdgeCount)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DeleteNsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeleteNsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteNsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Namespace != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.Namespace)) - i-- - dAtA[i] = 0x10 - } - if m.GroupId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.GroupId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *TaskStatusRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TaskStatusRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TaskStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TaskId != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.TaskId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *TaskStatusResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TaskStatusResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TaskStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TaskMeta != 0 { - i = encodeVarintPb(dAtA, i, uint64(m.TaskMeta)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintPb(dAtA []byte, offset int, v uint64) int { - offset -= sovPb(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *List) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Uids) > 0 { - n += 1 + sovPb(uint64(len(m.Uids)*8)) + len(m.Uids)*8 - } - return n -} - -func (m *TaskValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Val) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.ValType != 0 { - n += 1 + sovPb(uint64(m.ValType)) - } - return n -} - -func (m *SrcFunction) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if len(m.Args) > 0 { - for _, s := range m.Args { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - if m.IsCount { - n += 2 - } - return n -} - -func (m *Query) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Attr) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if len(m.Langs) > 0 { - for _, s := range m.Langs { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - if m.AfterUid != 0 { - n += 9 - } - if m.DoCount { - n += 2 - } - if m.UidList != nil { - l = m.UidList.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.SrcFunc != nil { - l = m.SrcFunc.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.Reverse { - n += 2 - } - if m.FacetParam != nil { - l = m.FacetParam.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.FacetsFilter != nil { - l = m.FacetsFilter.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.ExpandAll { - n += 2 - } - if m.ReadTs != 0 { - n += 1 + sovPb(uint64(m.ReadTs)) - } - if m.Cache != 0 { - n += 1 + sovPb(uint64(m.Cache)) - } - if m.First != 0 { - n += 1 + sovPb(uint64(m.First)) - } - if m.Offset != 0 { - n += 2 + sovPb(uint64(m.Offset)) - } - return n -} - -func (m *ValueList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Values) > 0 { - for _, e := range m.Values { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *LangList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Lang) > 0 { - for _, s := range m.Lang { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *Result) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.UidMatrix) > 0 { - for _, e := range m.UidMatrix { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if len(m.ValueMatrix) > 0 { - for _, e := range m.ValueMatrix { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if len(m.Counts) > 0 { - l = 0 - for _, e := range m.Counts { - l += sovPb(uint64(e)) - } - n += 1 + sovPb(uint64(l)) + l - } - if m.IntersectDest { - n += 2 - } - if len(m.FacetMatrix) > 0 { - for _, e := range m.FacetMatrix { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if len(m.LangMatrix) > 0 { - for _, e := range m.LangMatrix { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if m.List { - n += 2 - } - if len(m.VectorMetrics) > 0 { - for k, v := range m.VectorMetrics { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovPb(uint64(len(k))) + 1 + sovPb(uint64(v)) - n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize)) - } - } - return n -} - -func (m *Order) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Attr) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.Desc { - n += 2 - } - if len(m.Langs) > 0 { - for _, s := range m.Langs { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *SortMessage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Order) > 0 { - for _, e := range m.Order { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if len(m.UidMatrix) > 0 { - for _, e := range m.UidMatrix { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if m.Count != 0 { - n += 1 + sovPb(uint64(m.Count)) - } - if m.Offset != 0 { - n += 1 + sovPb(uint64(m.Offset)) - } - if m.ReadTs != 0 { - n += 1 + sovPb(uint64(m.ReadTs)) - } - return n -} - -func (m *SortResult) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.UidMatrix) > 0 { - for _, e := range m.UidMatrix { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *RaftContext) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Id != 0 { - n += 9 - } - if m.Group != 0 { - n += 1 + sovPb(uint64(m.Group)) - } - l = len(m.Addr) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.SnapshotTs != 0 { - n += 1 + sovPb(uint64(m.SnapshotTs)) - } - if m.IsLearner { - n += 2 - } - return n -} - -func (m *Member) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Id != 0 { - n += 9 - } - if m.GroupId != 0 { - n += 1 + sovPb(uint64(m.GroupId)) - } - l = len(m.Addr) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.Leader { - n += 2 - } - if m.AmDead { - n += 2 - } - if m.LastUpdate != 0 { - n += 1 + sovPb(uint64(m.LastUpdate)) - } - if m.Learner { - n += 2 - } - if m.ClusterInfoOnly { - n += 2 - } - if m.ForceGroupId { - n += 2 - } - return n -} - -func (m *Group) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Members) > 0 { - for k, v := range m.Members { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovPb(uint64(l)) - } - mapEntrySize := 1 + sovPb(uint64(k)) + l - n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize)) - } - } - if len(m.Tablets) > 0 { - for k, v := range m.Tablets { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovPb(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovPb(uint64(len(k))) + l - n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize)) - } - } - if m.SnapshotTs != 0 { - n += 1 + sovPb(uint64(m.SnapshotTs)) - } - if m.Checksum != 0 { - n += 1 + sovPb(uint64(m.Checksum)) - } - if m.CheckpointTs != 0 { - n += 1 + sovPb(uint64(m.CheckpointTs)) - } - return n -} - -func (m *License) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.User) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.MaxNodes != 0 { - n += 1 + sovPb(uint64(m.MaxNodes)) - } - if m.ExpiryTs != 0 { - n += 1 + sovPb(uint64(m.ExpiryTs)) - } - if m.Enabled { - n += 2 - } - return n -} - -func (m *ZeroProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.SnapshotTs) > 0 { - for k, v := range m.SnapshotTs { - _ = k - _ = v - mapEntrySize := 1 + sovPb(uint64(k)) + 1 + sovPb(uint64(v)) - n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize)) - } - } - if m.Member != nil { - l = m.Member.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.Tablet != nil { - l = m.Tablet.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.MaxUID != 0 { - n += 1 + sovPb(uint64(m.MaxUID)) - } - if m.MaxTxnTs != 0 { - n += 1 + sovPb(uint64(m.MaxTxnTs)) - } - if m.MaxRaftId != 0 { - n += 1 + sovPb(uint64(m.MaxRaftId)) - } - if m.Txn != nil { - l = m.Txn.Size() - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.Cid) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.License != nil { - l = m.License.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.Snapshot != nil { - l = m.Snapshot.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.MaxNsID != 0 { - n += 1 + sovPb(uint64(m.MaxNsID)) - } - if m.DeleteNs != nil { - l = m.DeleteNs.Size() - n += 1 + l + sovPb(uint64(l)) - } - if len(m.Tablets) > 0 { - for _, e := range m.Tablets { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *MembershipState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Counter != 0 { - n += 1 + sovPb(uint64(m.Counter)) - } - if len(m.Groups) > 0 { - for k, v := range m.Groups { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovPb(uint64(l)) - } - mapEntrySize := 1 + sovPb(uint64(k)) + l - n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize)) - } - } - if len(m.Zeros) > 0 { - for k, v := range m.Zeros { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovPb(uint64(l)) - } - mapEntrySize := 1 + sovPb(uint64(k)) + l - n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize)) - } - } - if m.MaxUID != 0 { - n += 1 + sovPb(uint64(m.MaxUID)) - } - if m.MaxTxnTs != 0 { - n += 1 + sovPb(uint64(m.MaxTxnTs)) - } - if m.MaxRaftId != 0 { - n += 1 + sovPb(uint64(m.MaxRaftId)) - } - if len(m.Removed) > 0 { - for _, e := range m.Removed { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - l = len(m.Cid) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.License != nil { - l = m.License.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.MaxNsID != 0 { - n += 1 + sovPb(uint64(m.MaxNsID)) - } - return n -} - -func (m *ConnectionState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Member != nil { - l = m.Member.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.State != nil { - l = m.State.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.MaxPending != 0 { - n += 1 + sovPb(uint64(m.MaxPending)) - } - return n -} - -func (m *HealthInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Instance) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.Group) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.Version) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.Uptime != 0 { - n += 1 + sovPb(uint64(m.Uptime)) - } - if m.LastEcho != 0 { - n += 1 + sovPb(uint64(m.LastEcho)) - } - if len(m.Ongoing) > 0 { - for _, s := range m.Ongoing { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - if len(m.Indexing) > 0 { - for _, s := range m.Indexing { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - if len(m.EeFeatures) > 0 { - for _, s := range m.EeFeatures { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - if m.MaxAssigned != 0 { - n += 1 + sovPb(uint64(m.MaxAssigned)) - } - return n -} - -func (m *Tablet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GroupId != 0 { - n += 1 + sovPb(uint64(m.GroupId)) - } - l = len(m.Predicate) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.Force { - n += 2 - } - if m.OnDiskBytes != 0 { - n += 1 + sovPb(uint64(m.OnDiskBytes)) - } - if m.Remove { - n += 2 - } - if m.ReadOnly { - n += 2 - } - if m.MoveTs != 0 { - n += 1 + sovPb(uint64(m.MoveTs)) - } - if m.UncompressedBytes != 0 { - n += 1 + sovPb(uint64(m.UncompressedBytes)) - } - return n -} - -func (m *DirectedEdge) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Entity != 0 { - n += 9 - } - l = len(m.Attr) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.ValueType != 0 { - n += 1 + sovPb(uint64(m.ValueType)) - } - if m.ValueId != 0 { - n += 9 - } - l = len(m.Lang) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.Op != 0 { - n += 1 + sovPb(uint64(m.Op)) - } - if len(m.Facets) > 0 { - for _, e := range m.Facets { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if len(m.AllowedPreds) > 0 { - for _, s := range m.AllowedPreds { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - if m.Namespace != 0 { - n += 1 + sovPb(uint64(m.Namespace)) - } - return n -} - -func (m *Mutations) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GroupId != 0 { - n += 1 + sovPb(uint64(m.GroupId)) - } - if m.StartTs != 0 { - n += 1 + sovPb(uint64(m.StartTs)) - } - if len(m.Edges) > 0 { - for _, e := range m.Edges { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if len(m.Schema) > 0 { - for _, e := range m.Schema { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if len(m.Types) > 0 { - for _, e := range m.Types { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if m.DropOp != 0 { - n += 1 + sovPb(uint64(m.DropOp)) - } - l = len(m.DropValue) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovPb(uint64(l)) - } - return n -} - -func (m *Metadata) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.PredHints) > 0 { - for k, v := range m.PredHints { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovPb(uint64(len(k))) + 1 + sovPb(uint64(v)) - n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize)) - } - } - return n -} - -func (m *Snapshot) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Context != nil { - l = m.Context.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.Index != 0 { - n += 1 + sovPb(uint64(m.Index)) - } - if m.ReadTs != 0 { - n += 1 + sovPb(uint64(m.ReadTs)) - } - if m.Done { - n += 2 - } - if m.SinceTs != 0 { - n += 1 + sovPb(uint64(m.SinceTs)) - } - return n -} - -func (m *ZeroSnapshot) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Index != 0 { - n += 1 + sovPb(uint64(m.Index)) - } - if m.CheckpointTs != 0 { - n += 1 + sovPb(uint64(m.CheckpointTs)) - } - if m.State != nil { - l = m.State.Size() - n += 1 + l + sovPb(uint64(l)) - } - return n -} - -func (m *RestoreRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GroupId != 0 { - n += 1 + sovPb(uint64(m.GroupId)) - } - if m.RestoreTs != 0 { - n += 1 + sovPb(uint64(m.RestoreTs)) - } - l = len(m.Location) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.BackupId) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.AccessKey) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.SecretKey) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.SessionToken) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.Anonymous { - n += 2 - } - l = len(m.EncryptionKeyFile) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.VaultAddr) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.VaultRoleidFile) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.VaultSecretidFile) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.VaultPath) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.VaultField) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.VaultFormat) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.BackupNum != 0 { - n += 2 + sovPb(uint64(m.BackupNum)) - } - if m.IncrementalFrom != 0 { - n += 2 + sovPb(uint64(m.IncrementalFrom)) - } - if m.IsPartial { - n += 3 - } - if m.FromNamespace != 0 { - n += 2 + sovPb(uint64(m.FromNamespace)) - } - if m.IsNamespaceAwareRestore { - n += 3 - } - return n -} - -func (m *Proposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Mutations != nil { - l = m.Mutations.Size() - n += 1 + l + sovPb(uint64(l)) - } - if len(m.Kv) > 0 { - for _, e := range m.Kv { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if m.State != nil { - l = m.State.Size() - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.CleanPredicate) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.Delta != nil { - l = m.Delta.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.Snapshot != nil { - l = m.Snapshot.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.Index != 0 { - n += 1 + sovPb(uint64(m.Index)) - } - if m.ExpectedChecksum != 0 { - n += 1 + sovPb(uint64(m.ExpectedChecksum)) - } - if m.Restore != nil { - l = m.Restore.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.CdcState != nil { - l = m.CdcState.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.DeleteNs != nil { - l = m.DeleteNs.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.StartTs != 0 { - n += 2 + sovPb(uint64(m.StartTs)) - } - return n -} - -func (m *CDCState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SentTs != 0 { - n += 1 + sovPb(uint64(m.SentTs)) - } - return n -} - -func (m *KVS) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Done { - n += 2 - } - if len(m.Predicates) > 0 { - for _, s := range m.Predicates { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - if len(m.Types) > 0 { - for _, s := range m.Types { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - l = len(m.Data) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - return n -} - -func (m *Posting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Uid != 0 { - n += 9 - } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.ValType != 0 { - n += 1 + sovPb(uint64(m.ValType)) - } - if m.PostingType != 0 { - n += 1 + sovPb(uint64(m.PostingType)) - } - l = len(m.LangTag) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if len(m.Facets) > 0 { - for _, e := range m.Facets { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if m.Op != 0 { - n += 1 + sovPb(uint64(m.Op)) - } - if m.StartTs != 0 { - n += 1 + sovPb(uint64(m.StartTs)) - } - if m.CommitTs != 0 { - n += 1 + sovPb(uint64(m.CommitTs)) - } - return n -} - -func (m *UidBlock) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Base != 0 { - n += 1 + sovPb(uint64(m.Base)) - } - l = len(m.Deltas) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.NumUids != 0 { - n += 1 + sovPb(uint64(m.NumUids)) - } - return n -} - -func (m *UidPack) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.BlockSize != 0 { - n += 1 + sovPb(uint64(m.BlockSize)) - } - if len(m.Blocks) > 0 { - for _, e := range m.Blocks { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if m.AllocRef != 0 { - n += 2 + sovPb(uint64(m.AllocRef)) - } - return n -} - -func (m *PostingList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Pack != nil { - l = m.Pack.Size() - n += 1 + l + sovPb(uint64(l)) - } - if len(m.Postings) > 0 { - for _, e := range m.Postings { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if m.CommitTs != 0 { - n += 1 + sovPb(uint64(m.CommitTs)) - } - if len(m.Splits) > 0 { - l = 0 - for _, e := range m.Splits { - l += sovPb(uint64(e)) - } - n += 1 + sovPb(uint64(l)) + l - } - return n -} - -func (m *FacetParam) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.Alias) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - return n -} - -func (m *FacetParams) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AllKeys { - n += 2 - } - if len(m.Param) > 0 { - for _, e := range m.Param { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *Facets) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Facets) > 0 { - for _, e := range m.Facets { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *FacetsList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.FacetsList) > 0 { - for _, e := range m.FacetsList { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *Function) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.Key) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if len(m.Args) > 0 { - for _, s := range m.Args { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *FilterTree) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Op) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if len(m.Children) > 0 { - for _, e := range m.Children { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if m.Func != nil { - l = m.Func.Size() - n += 1 + l + sovPb(uint64(l)) - } - return n -} - -func (m *SchemaRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GroupId != 0 { - n += 1 + sovPb(uint64(m.GroupId)) - } - if len(m.Predicates) > 0 { - for _, s := range m.Predicates { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - if len(m.Fields) > 0 { - for _, s := range m.Fields { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - if len(m.Types) > 0 { - for _, s := range m.Types { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *SchemaNode) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Predicate) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.Type) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.Index { - n += 2 - } - if len(m.Tokenizer) > 0 { - for _, s := range m.Tokenizer { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - if m.Reverse { - n += 2 - } - if m.Count { - n += 2 - } - if m.List { - n += 2 - } - if m.Upsert { - n += 2 - } - if m.Lang { - n += 2 - } - if m.NoConflict { - n += 2 - } - if m.Unique { - n += 2 - } - if len(m.IndexSpecs) > 0 { - for _, e := range m.IndexSpecs { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *SchemaResult) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Schema) > 0 { - for _, e := range m.Schema { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *SchemaUpdate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Predicate) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.ValueType != 0 { - n += 1 + sovPb(uint64(m.ValueType)) - } - if m.Directive != 0 { - n += 1 + sovPb(uint64(m.Directive)) - } - if len(m.Tokenizer) > 0 { - for _, s := range m.Tokenizer { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - if m.Count { - n += 2 - } - if m.List { - n += 2 - } - if m.Upsert { - n += 2 - } - if m.Lang { - n += 2 - } - if m.NonNullable { - n += 2 - } - if m.NonNullableList { - n += 2 - } - l = len(m.ObjectTypeName) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.NoConflict { - n += 2 - } - if m.Unique { - n += 2 - } - if len(m.IndexSpecs) > 0 { - for _, e := range m.IndexSpecs { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *VectorIndexSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if len(m.Options) > 0 { - for _, e := range m.Options { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *OptionPair) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - return n -} - -func (m *TypeUpdate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TypeName) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if len(m.Fields) > 0 { - for _, e := range m.Fields { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *MapHeader) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.PartitionKeys) > 0 { - for _, b := range m.PartitionKeys { - l = len(b) - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *MovePredicatePayload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Predicate) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.SourceGid != 0 { - n += 1 + sovPb(uint64(m.SourceGid)) - } - if m.DestGid != 0 { - n += 1 + sovPb(uint64(m.DestGid)) - } - if m.TxnTs != 0 { - n += 1 + sovPb(uint64(m.TxnTs)) - } - if m.ExpectedChecksum != 0 { - n += 1 + sovPb(uint64(m.ExpectedChecksum)) - } - return n -} - -func (m *TxnStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StartTs != 0 { - n += 1 + sovPb(uint64(m.StartTs)) - } - if m.CommitTs != 0 { - n += 1 + sovPb(uint64(m.CommitTs)) - } - return n -} - -func (m *OracleDelta) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Txns) > 0 { - for _, e := range m.Txns { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if m.MaxAssigned != 0 { - n += 1 + sovPb(uint64(m.MaxAssigned)) - } - if len(m.GroupChecksums) > 0 { - for k, v := range m.GroupChecksums { - _ = k - _ = v - mapEntrySize := 1 + sovPb(uint64(k)) + 1 + sovPb(uint64(v)) - n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize)) - } - } - return n -} - -func (m *TxnTimestamps) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Ts) > 0 { - l = 0 - for _, e := range m.Ts { - l += sovPb(uint64(e)) - } - n += 1 + sovPb(uint64(l)) + l - } - return n -} - -func (m *PeerResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Status { - n += 2 - } - return n -} - -func (m *RaftBatch) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Context != nil { - l = m.Context.Size() - n += 1 + l + sovPb(uint64(l)) - } - if m.Payload != nil { - l = m.Payload.Size() - n += 1 + l + sovPb(uint64(l)) - } - return n -} - -func (m *TabletResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Tablets) > 0 { - for _, e := range m.Tablets { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *TabletRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Tablets) > 0 { - for _, e := range m.Tablets { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if m.GroupId != 0 { - n += 1 + sovPb(uint64(m.GroupId)) - } - return n -} - -func (m *SubscriptionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Prefixes) > 0 { - for _, b := range m.Prefixes { - l = len(b) - n += 1 + l + sovPb(uint64(l)) - } - } - if len(m.Matches) > 0 { - for _, e := range m.Matches { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *SubscriptionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Kvs != nil { - l = m.Kvs.Size() - n += 1 + l + sovPb(uint64(l)) - } - return n -} - -func (m *Num) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Val != 0 { - n += 1 + sovPb(uint64(m.Val)) - } - if m.ReadOnly { - n += 2 - } - if m.Forwarded { - n += 2 - } - if m.Type != 0 { - n += 1 + sovPb(uint64(m.Type)) - } - if m.Bump { - n += 2 - } - return n -} - -func (m *AssignedIds) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StartId != 0 { - n += 1 + sovPb(uint64(m.StartId)) - } - if m.EndId != 0 { - n += 1 + sovPb(uint64(m.EndId)) - } - if m.ReadOnly != 0 { - n += 1 + sovPb(uint64(m.ReadOnly)) - } - return n -} - -func (m *RemoveNodeRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NodeId != 0 { - n += 1 + sovPb(uint64(m.NodeId)) - } - if m.GroupId != 0 { - n += 1 + sovPb(uint64(m.GroupId)) - } - return n -} - -func (m *MoveTabletRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Namespace != 0 { - n += 1 + sovPb(uint64(m.Namespace)) - } - l = len(m.Tablet) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.DstGroup != 0 { - n += 1 + sovPb(uint64(m.DstGroup)) - } - return n -} - -func (m *ApplyLicenseRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.License) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - return n -} - -func (m *SnapshotMeta) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ClientTs != 0 { - n += 1 + sovPb(uint64(m.ClientTs)) - } - if m.GroupId != 0 { - n += 1 + sovPb(uint64(m.GroupId)) - } - return n -} - -func (m *Status) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovPb(uint64(m.Code)) - } - l = len(m.Msg) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - return n -} - -func (m *BackupRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ReadTs != 0 { - n += 1 + sovPb(uint64(m.ReadTs)) - } - if m.SinceTs != 0 { - n += 1 + sovPb(uint64(m.SinceTs)) - } - if m.GroupId != 0 { - n += 1 + sovPb(uint64(m.GroupId)) - } - l = len(m.UnixTs) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.Destination) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.AccessKey) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.SecretKey) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.SessionToken) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.Anonymous { - n += 2 - } - if len(m.Predicates) > 0 { - for _, s := range m.Predicates { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - if m.ForceFull { - n += 2 - } - return n -} - -func (m *BackupResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.DropOperations) > 0 { - for _, e := range m.DropOperations { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *DropOperation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DropOp != 0 { - n += 1 + sovPb(uint64(m.DropOp)) - } - l = len(m.DropValue) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - return n -} - -func (m *ExportRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GroupId != 0 { - n += 1 + sovPb(uint64(m.GroupId)) - } - if m.ReadTs != 0 { - n += 1 + sovPb(uint64(m.ReadTs)) - } - if m.UnixTs != 0 { - n += 1 + sovPb(uint64(m.UnixTs)) - } - l = len(m.Format) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.Destination) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.AccessKey) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.SecretKey) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - l = len(m.SessionToken) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.Anonymous { - n += 2 - } - if m.Namespace != 0 { - n += 1 + sovPb(uint64(m.Namespace)) - } - return n -} - -func (m *ExportResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovPb(uint64(m.Code)) - } - l = len(m.Msg) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if len(m.Files) > 0 { - for _, s := range m.Files { - l = len(s) - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *BackupKey) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovPb(uint64(m.Type)) - } - l = len(m.Attr) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.Uid != 0 { - n += 1 + sovPb(uint64(m.Uid)) - } - if m.StartUid != 0 { - n += 1 + sovPb(uint64(m.StartUid)) - } - l = len(m.Term) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if m.Count != 0 { - n += 1 + sovPb(uint64(m.Count)) - } - if m.Namespace != 0 { - n += 1 + sovPb(uint64(m.Namespace)) - } - return n -} - -func (m *BackupPostingList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Uids) > 0 { - l = 0 - for _, e := range m.Uids { - l += sovPb(uint64(e)) - } - n += 1 + sovPb(uint64(l)) + l - } - if len(m.Postings) > 0 { - for _, e := range m.Postings { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if m.CommitTs != 0 { - n += 1 + sovPb(uint64(m.CommitTs)) - } - if len(m.Splits) > 0 { - l = 0 - for _, e := range m.Splits { - l += sovPb(uint64(e)) - } - n += 1 + sovPb(uint64(l)) + l - } - l = len(m.UidBytes) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - return n -} - -func (m *UpdateGraphQLSchemaRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StartTs != 0 { - n += 1 + sovPb(uint64(m.StartTs)) - } - l = len(m.GraphqlSchema) - if l > 0 { - n += 1 + l + sovPb(uint64(l)) - } - if len(m.DgraphPreds) > 0 { - for _, e := range m.DgraphPreds { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - if len(m.DgraphTypes) > 0 { - for _, e := range m.DgraphTypes { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *UpdateGraphQLSchemaResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Uid != 0 { - n += 1 + sovPb(uint64(m.Uid)) - } - return n -} - -func (m *BulkMeta) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EdgeCount != 0 { - n += 1 + sovPb(uint64(m.EdgeCount)) - } - if len(m.SchemaMap) > 0 { - for k, v := range m.SchemaMap { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovPb(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovPb(uint64(len(k))) + l - n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize)) - } - } - if len(m.Types) > 0 { - for _, e := range m.Types { - l = e.Size() - n += 1 + l + sovPb(uint64(l)) - } - } - return n -} - -func (m *DeleteNsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GroupId != 0 { - n += 1 + sovPb(uint64(m.GroupId)) - } - if m.Namespace != 0 { - n += 1 + sovPb(uint64(m.Namespace)) - } - return n -} - -func (m *TaskStatusRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TaskId != 0 { - n += 1 + sovPb(uint64(m.TaskId)) - } - return n -} - -func (m *TaskStatusResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TaskMeta != 0 { - n += 1 + sovPb(uint64(m.TaskMeta)) - } - return n -} - -func sovPb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozPb(x uint64) (n int) { - return sovPb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *List) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: List: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: List: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 1 { - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Uids = append(m.Uids, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - elementCount = packedLen / 8 - if elementCount != 0 && len(m.Uids) == 0 { - m.Uids = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Uids = append(m.Uids, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Uids", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TaskValue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TaskValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TaskValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Val", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Val = append(m.Val[:0], dAtA[iNdEx:postIndex]...) - if m.Val == nil { - m.Val = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ValType", wireType) - } - m.ValType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ValType |= Posting_ValType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SrcFunction) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SrcFunction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SrcFunction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsCount", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsCount = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Query) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Query: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Query: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Attr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Attr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Langs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Langs = append(m.Langs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field AfterUid", wireType) - } - m.AfterUid = 0 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - m.AfterUid = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DoCount", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DoCount = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UidList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.UidList == nil { - m.UidList = &List{} - } - if err := m.UidList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SrcFunc", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SrcFunc == nil { - m.SrcFunc = &SrcFunction{} - } - if err := m.SrcFunc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Reverse", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Reverse = bool(v != 0) - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FacetParam", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FacetParam == nil { - m.FacetParam = &FacetParams{} - } - if err := m.FacetParam.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FacetsFilter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FacetsFilter == nil { - m.FacetsFilter = &FilterTree{} - } - if err := m.FacetsFilter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpandAll", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ExpandAll = bool(v != 0) - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadTs", wireType) - } - m.ReadTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cache", wireType) - } - m.Cache = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Cache |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 15: - 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 ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.First |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) - } - m.Offset = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Offset |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValueList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValueList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValueList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Values = append(m.Values, &TaskValue{}) - if err := m.Values[len(m.Values)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LangList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LangList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LangList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Lang", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Lang = append(m.Lang, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Result) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Result: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Result: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UidMatrix", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UidMatrix = append(m.UidMatrix, &List{}) - if err := m.UidMatrix[len(m.UidMatrix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValueMatrix", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ValueMatrix = append(m.ValueMatrix, &ValueList{}) - if err := m.ValueMatrix[len(m.ValueMatrix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType == 0 { - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Counts = append(m.Counts, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.Counts) == 0 { - m.Counts = make([]uint32, 0, elementCount) - } - for iNdEx < postIndex { - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Counts = append(m.Counts, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Counts", wireType) - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IntersectDest", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IntersectDest = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FacetMatrix", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FacetMatrix = append(m.FacetMatrix, &FacetsList{}) - if err := m.FacetMatrix[len(m.FacetMatrix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LangMatrix", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LangMatrix = append(m.LangMatrix, &LangList{}) - if err := m.LangMatrix[len(m.LangMatrix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field List", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.List = bool(v != 0) - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VectorMetrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VectorMetrics == nil { - m.VectorMetrics = make(map[string]uint64) - } - var mapkey string - var mapvalue uint64 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - 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 ErrIntOverflowPb - } - 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 ErrInvalidLengthPb - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthPb - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.VectorMetrics[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Order) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Order: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Order: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Attr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Attr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Desc = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Langs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Langs = append(m.Langs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SortMessage) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SortMessage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SortMessage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Order = append(m.Order, &Order{}) - if err := m.Order[len(m.Order)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UidMatrix", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UidMatrix = append(m.UidMatrix, &List{}) - if err := m.UidMatrix[len(m.UidMatrix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - m.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Count |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) - } - m.Offset = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Offset |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadTs", wireType) - } - m.ReadTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SortResult) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SortResult: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SortResult: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UidMatrix", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UidMatrix = append(m.UidMatrix, &List{}) - if err := m.UidMatrix[len(m.UidMatrix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RaftContext) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RaftContext: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RaftContext: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - m.Id = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - m.Group = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Group |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Addr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTs", wireType) - } - m.SnapshotTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SnapshotTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsLearner", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsLearner = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Member) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Member: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - m.Id = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupId |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Addr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Leader = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AmDead", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AmDead = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastUpdate", wireType) - } - m.LastUpdate = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastUpdate |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Learner", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Learner = bool(v != 0) - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterInfoOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ClusterInfoOnly = bool(v != 0) - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ForceGroupId", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ForceGroupId = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - 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 ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - 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 Members", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Members == nil { - m.Members = make(map[uint64]*Member) - } - var mapkey uint64 - var mapvalue *Member - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - 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 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthPb - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthPb - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Member{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Members[mapkey] = mapvalue - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Tablets == nil { - m.Tablets = make(map[string]*Tablet) - } - var mapkey string - var mapvalue *Tablet - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - 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 ErrIntOverflowPb - } - 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 ErrInvalidLengthPb - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthPb - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthPb - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthPb - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Tablet{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Tablets[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTs", wireType) - } - m.SnapshotTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SnapshotTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Checksum", wireType) - } - m.Checksum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Checksum |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CheckpointTs", wireType) - } - m.CheckpointTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CheckpointTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *License) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: License: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: License: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxNodes", wireType) - } - m.MaxNodes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxNodes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpiryTs", wireType) - } - m.ExpiryTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExpiryTs |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - 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 ErrIntOverflowPb - } - 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 := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ZeroProposal) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ZeroProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ZeroProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SnapshotTs == nil { - m.SnapshotTs = make(map[uint32]uint64) - } - var mapkey uint32 - var mapvalue uint64 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - 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 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapkey |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.SnapshotTs[mapkey] = mapvalue - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Member == nil { - m.Member = &Member{} - } - if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Tablet == nil { - m.Tablet = &Tablet{} - } - if err := m.Tablet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxUID", wireType) - } - m.MaxUID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxUID |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxTxnTs", wireType) - } - m.MaxTxnTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxTxnTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxRaftId", wireType) - } - m.MaxRaftId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxRaftId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Txn", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Txn == nil { - m.Txn = &api.TxnContext{} - } - if err := m.Txn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - 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 ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field License", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.License == nil { - m.License = &License{} - } - if err := m.License.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Snapshot", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Snapshot == nil { - m.Snapshot = &ZeroSnapshot{} - } - if err := m.Snapshot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxNsID", wireType) - } - m.MaxNsID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxNsID |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteNs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DeleteNs == nil { - m.DeleteNs = &DeleteNsRequest{} - } - if err := m.DeleteNs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tablets = append(m.Tablets, &Tablet{}) - if err := m.Tablets[len(m.Tablets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MembershipState) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MembershipState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MembershipState: 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 ErrIntOverflowPb - } - 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 Groups", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Groups == nil { - m.Groups = make(map[uint32]*Group) - } - var mapkey uint32 - var mapvalue *Group - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - 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 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapkey |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthPb - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthPb - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Group{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Groups[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Zeros", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Zeros == nil { - m.Zeros = make(map[uint64]*Member) - } - var mapkey uint64 - var mapvalue *Member - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - 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 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthPb - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthPb - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Member{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Zeros[mapkey] = mapvalue - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxUID", wireType) - } - m.MaxUID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxUID |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxTxnTs", wireType) - } - m.MaxTxnTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxTxnTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxRaftId", wireType) - } - m.MaxRaftId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxRaftId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Removed", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Removed = append(m.Removed, &Member{}) - if err := m.Removed[len(m.Removed)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - 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 ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field License", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.License == nil { - m.License = &License{} - } - if err := m.License.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxNsID", wireType) - } - m.MaxNsID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxNsID |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ConnectionState) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ConnectionState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ConnectionState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Member == nil { - m.Member = &Member{} - } - if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.State == nil { - m.State = &MembershipState{} - } - if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxPending", wireType) - } - m.MaxPending = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxPending |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HealthInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HealthInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HealthInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Instance", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Instance = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - 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 ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - 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 ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Uptime", wireType) - } - m.Uptime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Uptime |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastEcho", wireType) - } - m.LastEcho = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastEcho |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ongoing", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ongoing = append(m.Ongoing, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Indexing", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Indexing = append(m.Indexing, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EeFeatures", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EeFeatures = append(m.EeFeatures, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxAssigned", wireType) - } - m.MaxAssigned = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxAssigned |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Tablet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Tablet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Tablet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupId |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Predicate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Predicate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Force = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field OnDiskBytes", wireType) - } - m.OnDiskBytes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.OnDiskBytes |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Remove", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Remove = bool(v != 0) - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MoveTs", wireType) - } - m.MoveTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MoveTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UncompressedBytes", wireType) - } - m.UncompressedBytes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UncompressedBytes |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DirectedEdge) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DirectedEdge: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DirectedEdge: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Entity", wireType) - } - m.Entity = 0 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - m.Entity = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Attr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Attr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) - if m.Value == nil { - m.Value = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ValueType", wireType) - } - m.ValueType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ValueType |= Posting_ValType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field ValueId", wireType) - } - m.ValueId = 0 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - m.ValueId = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Lang", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Lang = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType) - } - m.Op = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Op |= DirectedEdge_Op(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Facets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Facets = append(m.Facets, &api.Facet{}) - if err := m.Facets[len(m.Facets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedPreds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedPreds = append(m.AllowedPreds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - m.Namespace = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Namespace |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Mutations) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Mutations: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Mutations: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupId |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) - } - m.StartTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Edges", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Edges = append(m.Edges, &DirectedEdge{}) - if err := m.Edges[len(m.Edges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Schema = append(m.Schema, &SchemaUpdate{}) - if err := m.Schema[len(m.Schema)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Types", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Types = append(m.Types, &TypeUpdate{}) - if err := m.Types[len(m.Types)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DropOp", wireType) - } - m.DropOp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DropOp |= Mutations_DropOp(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DropValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DropValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - 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 ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Metadata) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Metadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PredHints", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PredHints == nil { - m.PredHints = make(map[string]Metadata_HintType) - } - var mapkey string - var mapvalue Metadata_HintType - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - 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 ErrIntOverflowPb - } - 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 ErrInvalidLengthPb - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthPb - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= Metadata_HintType(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.PredHints[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Snapshot) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Snapshot: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Snapshot: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Context == nil { - m.Context = &RaftContext{} - } - if err := m.Context.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) - } - m.Index = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Index |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadTs", wireType) - } - m.ReadTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Done", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Done = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SinceTs", wireType) - } - m.SinceTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SinceTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ZeroSnapshot) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ZeroSnapshot: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ZeroSnapshot: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) - } - m.Index = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Index |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CheckpointTs", wireType) - } - m.CheckpointTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CheckpointTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.State == nil { - m.State = &MembershipState{} - } - if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RestoreRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RestoreRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RestoreRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupId |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RestoreTs", wireType) - } - m.RestoreTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RestoreTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Location", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Location = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BackupId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BackupId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccessKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccessKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecretKey = Sensitive(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SessionToken", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SessionToken = Sensitive(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Anonymous", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Anonymous = bool(v != 0) - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptionKeyFile", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EncryptionKeyFile = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VaultAddr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VaultAddr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VaultRoleidFile", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VaultRoleidFile = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VaultSecretidFile", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VaultSecretidFile = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VaultPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VaultPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VaultField", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VaultField = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VaultFormat", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VaultFormat = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BackupNum", wireType) - } - m.BackupNum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BackupNum |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncrementalFrom", wireType) - } - m.IncrementalFrom = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.IncrementalFrom |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 18: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsPartial", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsPartial = bool(v != 0) - case 19: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FromNamespace", wireType) - } - m.FromNamespace = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FromNamespace |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 20: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsNamespaceAwareRestore", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsNamespaceAwareRestore = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Proposal) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Proposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Proposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Mutations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Mutations == nil { - m.Mutations = &Mutations{} - } - if err := m.Mutations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kv", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kv = append(m.Kv, &pb.KV{}) - if err := m.Kv[len(m.Kv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.State == nil { - m.State = &MembershipState{} - } - if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CleanPredicate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CleanPredicate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Delta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Delta == nil { - m.Delta = &OracleDelta{} - } - if err := m.Delta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Snapshot", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Snapshot == nil { - m.Snapshot = &Snapshot{} - } - if err := m.Snapshot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) - } - m.Index = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Index |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpectedChecksum", wireType) - } - m.ExpectedChecksum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExpectedChecksum |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Restore", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Restore == nil { - m.Restore = &RestoreRequest{} - } - if err := m.Restore.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CdcState", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CdcState == nil { - m.CdcState = &CDCState{} - } - if err := m.CdcState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteNs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DeleteNs == nil { - m.DeleteNs = &DeleteNsRequest{} - } - if err := m.DeleteNs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) - } - m.StartTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CDCState) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CDCState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CDCState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SentTs", wireType) - } - m.SentTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SentTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *KVS) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: KVS: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: KVS: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Done", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Done = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Predicates", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Predicates = append(m.Predicates, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Types", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Types = append(m.Types, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Posting) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Posting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Posting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) - } - m.Uid = 0 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - m.Uid = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) - if m.Value == nil { - m.Value = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ValType", wireType) - } - m.ValType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ValType |= Posting_ValType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PostingType", wireType) - } - m.PostingType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PostingType |= Posting_PostingType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LangTag", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LangTag = append(m.LangTag[:0], dAtA[iNdEx:postIndex]...) - if m.LangTag == nil { - m.LangTag = []byte{} - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Facets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Facets = append(m.Facets, &api.Facet{}) - if err := m.Facets[len(m.Facets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType) - } - m.Op = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Op |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) - } - m.StartTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CommitTs", wireType) - } - m.CommitTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UidBlock) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UidBlock: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UidBlock: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Base", wireType) - } - m.Base = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Base |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Deltas", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Deltas = append(m.Deltas[:0], dAtA[iNdEx:postIndex]...) - if m.Deltas == nil { - m.Deltas = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumUids", wireType) - } - m.NumUids = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumUids |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UidPack) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UidPack: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UidPack: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockSize", wireType) - } - m.BlockSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BlockSize |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Blocks = append(m.Blocks, &UidBlock{}) - if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 23: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllocRef", wireType) - } - m.AllocRef = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AllocRef |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PostingList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PostingList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PostingList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pack", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pack == nil { - m.Pack = &UidPack{} - } - if err := m.Pack.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Postings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Postings = append(m.Postings, &Posting{}) - if err := m.Postings[len(m.Postings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CommitTs", wireType) - } - m.CommitTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Splits = append(m.Splits, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.Splits) == 0 { - m.Splits = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Splits = append(m.Splits, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Splits", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FacetParam) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FacetParam: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FacetParam: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Alias = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FacetParams) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FacetParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FacetParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllKeys", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AllKeys = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Param", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Param = append(m.Param, &FacetParam{}) - if err := m.Param[len(m.Param)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Facets) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Facets: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Facets: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Facets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Facets = append(m.Facets, &api.Facet{}) - if err := m.Facets[len(m.Facets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FacetsList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FacetsList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FacetsList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FacetsList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FacetsList = append(m.FacetsList, &Facets{}) - if err := m.FacetsList[len(m.FacetsList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Function) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Function: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Function: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FilterTree) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FilterTree: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FilterTree: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Op = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Children = append(m.Children, &FilterTree{}) - if err := m.Children[len(m.Children)-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 Func", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Func == nil { - m.Func = &Function{} - } - if err := m.Func.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SchemaRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SchemaRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupId |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Predicates", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Predicates = append(m.Predicates, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Fields = append(m.Fields, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Types", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Types = append(m.Types, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SchemaNode) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SchemaNode: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SchemaNode: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Predicate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Predicate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Index = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tokenizer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tokenizer = append(m.Tokenizer, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Reverse", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Reverse = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Count = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field List", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.List = bool(v != 0) - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Upsert", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Upsert = bool(v != 0) - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Lang", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Lang = bool(v != 0) - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NoConflict", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.NoConflict = bool(v != 0) - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Unique", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Unique = bool(v != 0) - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IndexSpecs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IndexSpecs = append(m.IndexSpecs, &VectorIndexSpec{}) - if err := m.IndexSpecs[len(m.IndexSpecs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SchemaResult) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SchemaResult: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SchemaResult: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Schema = append(m.Schema, &SchemaNode{}) - if err := m.Schema[len(m.Schema)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SchemaUpdate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SchemaUpdate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SchemaUpdate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Predicate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Predicate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ValueType", wireType) - } - m.ValueType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ValueType |= Posting_ValType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Directive", wireType) - } - m.Directive = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Directive |= SchemaUpdate_Directive(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tokenizer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tokenizer = append(m.Tokenizer, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Count = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field List", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.List = bool(v != 0) - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Upsert", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Upsert = bool(v != 0) - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Lang", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Lang = bool(v != 0) - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NonNullable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.NonNullable = bool(v != 0) - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NonNullableList", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.NonNullableList = bool(v != 0) - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectTypeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ObjectTypeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NoConflict", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.NoConflict = bool(v != 0) - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Unique", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Unique = bool(v != 0) - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IndexSpecs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IndexSpecs = append(m.IndexSpecs, &VectorIndexSpec{}) - if err := m.IndexSpecs[len(m.IndexSpecs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VectorIndexSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VectorIndexSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VectorIndexSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Options = append(m.Options, &OptionPair{}) - if err := m.Options[len(m.Options)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OptionPair) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OptionPair: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OptionPair: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TypeUpdate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TypeUpdate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TypeUpdate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TypeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TypeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Fields = append(m.Fields, &SchemaUpdate{}) - if err := m.Fields[len(m.Fields)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MapHeader) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MapHeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MapHeader: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PartitionKeys", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PartitionKeys = append(m.PartitionKeys, make([]byte, postIndex-iNdEx)) - copy(m.PartitionKeys[len(m.PartitionKeys)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MovePredicatePayload) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MovePredicatePayload: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MovePredicatePayload: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Predicate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Predicate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceGid", wireType) - } - m.SourceGid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SourceGid |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DestGid", wireType) - } - m.DestGid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DestGid |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TxnTs", wireType) - } - m.TxnTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TxnTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpectedChecksum", wireType) - } - m.ExpectedChecksum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExpectedChecksum |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TxnStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TxnStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TxnStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) - } - m.StartTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CommitTs", wireType) - } - m.CommitTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OracleDelta) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OracleDelta: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OracleDelta: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Txns", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Txns = append(m.Txns, &TxnStatus{}) - if err := m.Txns[len(m.Txns)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxAssigned", wireType) - } - m.MaxAssigned = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxAssigned |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupChecksums", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GroupChecksums == nil { - m.GroupChecksums = make(map[uint32]uint64) - } - var mapkey uint32 - var mapvalue uint64 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - 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 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapkey |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.GroupChecksums[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TxnTimestamps) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TxnTimestamps: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TxnTimestamps: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Ts = append(m.Ts, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.Ts) == 0 { - m.Ts = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Ts = append(m.Ts, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Ts", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PeerResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PeerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PeerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Status = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RaftBatch) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RaftBatch: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RaftBatch: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Context == nil { - m.Context = &RaftContext{} - } - if err := m.Context.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Payload == nil { - m.Payload = &api.Payload{} - } - if err := m.Payload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TabletResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TabletResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tablets = append(m.Tablets, &Tablet{}) - if err := m.Tablets[len(m.Tablets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TabletRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TabletRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tablets = append(m.Tablets, &Tablet{}) - if err := m.Tablets[len(m.Tablets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupId |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubscriptionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubscriptionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubscriptionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Prefixes", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Prefixes = append(m.Prefixes, make([]byte, postIndex-iNdEx)) - copy(m.Prefixes[len(m.Prefixes)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Matches", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Matches = append(m.Matches, &pb.Match{}) - if err := m.Matches[len(m.Matches)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubscriptionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubscriptionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubscriptionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kvs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Kvs == nil { - m.Kvs = &pb.KVList{} - } - if err := m.Kvs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Num) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Num: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Num: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Val", wireType) - } - m.Val = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Val |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Forwarded", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Forwarded = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= NumLeaseType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Bump", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Bump = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AssignedIds) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AssignedIds: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AssignedIds: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartId", wireType) - } - m.StartId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndId", wireType) - } - m.EndId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - m.ReadOnly = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadOnly |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveNodeRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RemoveNodeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveNodeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeId", wireType) - } - m.NodeId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NodeId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupId |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MoveTabletRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MoveTabletRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MoveTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - m.Namespace = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Namespace |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tablet = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DstGroup", wireType) - } - m.DstGroup = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DstGroup |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ApplyLicenseRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ApplyLicenseRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ApplyLicenseRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field License", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.License = append(m.License[:0], dAtA[iNdEx:postIndex]...) - if m.License == nil { - m.License = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SnapshotMeta: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SnapshotMeta: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientTs", wireType) - } - m.ClientTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ClientTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupId |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Status) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Status: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Status: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Msg = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BackupRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BackupRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BackupRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadTs", wireType) - } - m.ReadTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SinceTs", wireType) - } - m.SinceTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SinceTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupId |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UnixTs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UnixTs = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Destination", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Destination = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccessKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccessKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecretKey = Sensitive(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SessionToken", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SessionToken = Sensitive(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Anonymous", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Anonymous = bool(v != 0) - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Predicates", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Predicates = append(m.Predicates, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ForceFull", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ForceFull = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BackupResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BackupResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BackupResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DropOperations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DropOperations = append(m.DropOperations, &DropOperation{}) - if err := m.DropOperations[len(m.DropOperations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DropOperation) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DropOperation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DropOperation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DropOp", wireType) - } - m.DropOp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DropOp |= DropOperation_DropOp(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DropValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DropValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExportRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExportRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExportRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupId |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadTs", wireType) - } - m.ReadTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UnixTs", wireType) - } - m.UnixTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UnixTs |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Format = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Destination", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Destination = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccessKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccessKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecretKey = Sensitive(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SessionToken", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SessionToken = Sensitive(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Anonymous", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Anonymous = bool(v != 0) - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - m.Namespace = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Namespace |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExportResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExportResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExportResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Msg = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Files", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Files = append(m.Files, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BackupKey) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BackupKey: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BackupKey: 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 ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= BackupKey_KeyType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Attr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Attr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - 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 ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Uid |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartUid", wireType) - } - m.StartUid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartUid |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Term = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - m.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Count |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - m.Namespace = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Namespace |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BackupPostingList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BackupPostingList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BackupPostingList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Uids = append(m.Uids, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.Uids) == 0 { - m.Uids = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Uids = append(m.Uids, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Uids", wireType) - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Postings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Postings = append(m.Postings, &Posting{}) - if err := m.Postings[len(m.Postings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CommitTs", wireType) - } - m.CommitTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Splits = append(m.Splits, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.Splits) == 0 { - m.Splits = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Splits = append(m.Splits, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Splits", wireType) - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UidBytes", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UidBytes = append(m.UidBytes[:0], dAtA[iNdEx:postIndex]...) - if m.UidBytes == nil { - m.UidBytes = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateGraphQLSchemaRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateGraphQLSchemaRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateGraphQLSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) - } - m.StartTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GraphqlSchema", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GraphqlSchema = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DgraphPreds", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DgraphPreds = append(m.DgraphPreds, &SchemaUpdate{}) - if err := m.DgraphPreds[len(m.DgraphPreds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DgraphTypes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DgraphTypes = append(m.DgraphTypes, &TypeUpdate{}) - if err := m.DgraphTypes[len(m.DgraphTypes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateGraphQLSchemaResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateGraphQLSchemaResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateGraphQLSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Uid |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BulkMeta) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BulkMeta: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BulkMeta: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EdgeCount", wireType) - } - m.EdgeCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EdgeCount |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SchemaMap", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SchemaMap == nil { - m.SchemaMap = make(map[string]*SchemaUpdate) - } - var mapkey string - var mapvalue *SchemaUpdate - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - 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 ErrIntOverflowPb - } - 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 ErrInvalidLengthPb - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthPb - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthPb - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthPb - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &SchemaUpdate{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.SchemaMap[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Types", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Types = append(m.Types, &TypeUpdate{}) - if err := m.Types[len(m.Types)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteNsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteNsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteNsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupId |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - m.Namespace = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Namespace |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TaskStatusRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TaskStatusRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TaskStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) - } - m.TaskId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TaskStatusResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TaskStatusResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TaskStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskMeta", wireType) - } - m.TaskMeta = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskMeta |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipPb(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, ErrIntOverflowPb - } - 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, ErrIntOverflowPb - } - 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, ErrIntOverflowPb - } - 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, ErrInvalidLengthPb - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupPb - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthPb - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthPb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowPb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupPb = fmt.Errorf("proto: unexpected end of group") -) diff --git a/protos/pb/pb_grpc.pb.go b/protos/pb/pb_grpc.pb.go new file mode 100644 index 00000000000..4752af639e4 --- /dev/null +++ b/protos/pb/pb_grpc.pb.go @@ -0,0 +1,1599 @@ +// +// Copyright (C) 2017 Dgraph Labs, Inc. and Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Style guide for Protocol Buffer 3. +// Use CamelCase (with an initial capital) for message names – for example, +// SongServerRequest. Use underscore_separated_names for field names – for +// example, song_name. + +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc v3.21.12 +// source: pb.proto + +package pb + +import ( + context "context" + pb "github.com/dgraph-io/badger/v4/pb" + api "github.com/dgraph-io/dgo/v240/protos/api" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// 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 + +const ( + Raft_Heartbeat_FullMethodName = "/pb.Raft/Heartbeat" + Raft_RaftMessage_FullMethodName = "/pb.Raft/RaftMessage" + Raft_JoinCluster_FullMethodName = "/pb.Raft/JoinCluster" + Raft_IsPeer_FullMethodName = "/pb.Raft/IsPeer" +) + +// RaftClient is the client API for Raft 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. +type RaftClient interface { + Heartbeat(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Raft_HeartbeatClient, error) + RaftMessage(ctx context.Context, opts ...grpc.CallOption) (Raft_RaftMessageClient, error) + JoinCluster(ctx context.Context, in *RaftContext, opts ...grpc.CallOption) (*api.Payload, error) + IsPeer(ctx context.Context, in *RaftContext, opts ...grpc.CallOption) (*PeerResponse, error) +} + +type raftClient struct { + cc grpc.ClientConnInterface +} + +func NewRaftClient(cc grpc.ClientConnInterface) RaftClient { + return &raftClient{cc} +} + +func (c *raftClient) Heartbeat(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Raft_HeartbeatClient, error) { + stream, err := c.cc.NewStream(ctx, &Raft_ServiceDesc.Streams[0], Raft_Heartbeat_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &raftHeartbeatClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Raft_HeartbeatClient interface { + Recv() (*HealthInfo, error) + grpc.ClientStream +} + +type raftHeartbeatClient struct { + grpc.ClientStream +} + +func (x *raftHeartbeatClient) Recv() (*HealthInfo, error) { + m := new(HealthInfo) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *raftClient) RaftMessage(ctx context.Context, opts ...grpc.CallOption) (Raft_RaftMessageClient, error) { + stream, err := c.cc.NewStream(ctx, &Raft_ServiceDesc.Streams[1], Raft_RaftMessage_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &raftRaftMessageClient{stream} + return x, nil +} + +type Raft_RaftMessageClient interface { + Send(*RaftBatch) error + CloseAndRecv() (*api.Payload, error) + grpc.ClientStream +} + +type raftRaftMessageClient struct { + grpc.ClientStream +} + +func (x *raftRaftMessageClient) Send(m *RaftBatch) error { + return x.ClientStream.SendMsg(m) +} + +func (x *raftRaftMessageClient) CloseAndRecv() (*api.Payload, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(api.Payload) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *raftClient) JoinCluster(ctx context.Context, in *RaftContext, opts ...grpc.CallOption) (*api.Payload, error) { + out := new(api.Payload) + err := c.cc.Invoke(ctx, Raft_JoinCluster_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *raftClient) IsPeer(ctx context.Context, in *RaftContext, opts ...grpc.CallOption) (*PeerResponse, error) { + out := new(PeerResponse) + err := c.cc.Invoke(ctx, Raft_IsPeer_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RaftServer is the server API for Raft service. +// All implementations must embed UnimplementedRaftServer +// for forward compatibility +type RaftServer interface { + Heartbeat(*api.Payload, Raft_HeartbeatServer) error + RaftMessage(Raft_RaftMessageServer) error + JoinCluster(context.Context, *RaftContext) (*api.Payload, error) + IsPeer(context.Context, *RaftContext) (*PeerResponse, error) + mustEmbedUnimplementedRaftServer() +} + +// UnimplementedRaftServer must be embedded to have forward compatible implementations. +type UnimplementedRaftServer struct { +} + +func (UnimplementedRaftServer) Heartbeat(*api.Payload, Raft_HeartbeatServer) error { + return status.Errorf(codes.Unimplemented, "method Heartbeat not implemented") +} +func (UnimplementedRaftServer) RaftMessage(Raft_RaftMessageServer) error { + return status.Errorf(codes.Unimplemented, "method RaftMessage not implemented") +} +func (UnimplementedRaftServer) JoinCluster(context.Context, *RaftContext) (*api.Payload, error) { + return nil, status.Errorf(codes.Unimplemented, "method JoinCluster not implemented") +} +func (UnimplementedRaftServer) IsPeer(context.Context, *RaftContext) (*PeerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsPeer not implemented") +} +func (UnimplementedRaftServer) mustEmbedUnimplementedRaftServer() {} + +// UnsafeRaftServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to RaftServer will +// result in compilation errors. +type UnsafeRaftServer interface { + mustEmbedUnimplementedRaftServer() +} + +func RegisterRaftServer(s grpc.ServiceRegistrar, srv RaftServer) { + s.RegisterService(&Raft_ServiceDesc, srv) +} + +func _Raft_Heartbeat_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(api.Payload) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RaftServer).Heartbeat(m, &raftHeartbeatServer{stream}) +} + +type Raft_HeartbeatServer interface { + Send(*HealthInfo) error + grpc.ServerStream +} + +type raftHeartbeatServer struct { + grpc.ServerStream +} + +func (x *raftHeartbeatServer) Send(m *HealthInfo) error { + return x.ServerStream.SendMsg(m) +} + +func _Raft_RaftMessage_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(RaftServer).RaftMessage(&raftRaftMessageServer{stream}) +} + +type Raft_RaftMessageServer interface { + SendAndClose(*api.Payload) error + Recv() (*RaftBatch, error) + grpc.ServerStream +} + +type raftRaftMessageServer struct { + grpc.ServerStream +} + +func (x *raftRaftMessageServer) SendAndClose(m *api.Payload) error { + return x.ServerStream.SendMsg(m) +} + +func (x *raftRaftMessageServer) Recv() (*RaftBatch, error) { + m := new(RaftBatch) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _Raft_JoinCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RaftContext) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RaftServer).JoinCluster(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Raft_JoinCluster_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RaftServer).JoinCluster(ctx, req.(*RaftContext)) + } + return interceptor(ctx, in, info, handler) +} + +func _Raft_IsPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RaftContext) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RaftServer).IsPeer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Raft_IsPeer_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RaftServer).IsPeer(ctx, req.(*RaftContext)) + } + return interceptor(ctx, in, info, handler) +} + +// Raft_ServiceDesc is the grpc.ServiceDesc for Raft service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Raft_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pb.Raft", + HandlerType: (*RaftServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "JoinCluster", + Handler: _Raft_JoinCluster_Handler, + }, + { + MethodName: "IsPeer", + Handler: _Raft_IsPeer_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Heartbeat", + Handler: _Raft_Heartbeat_Handler, + ServerStreams: true, + }, + { + StreamName: "RaftMessage", + Handler: _Raft_RaftMessage_Handler, + ClientStreams: true, + }, + }, + Metadata: "pb.proto", +} + +const ( + Zero_Connect_FullMethodName = "/pb.Zero/Connect" + Zero_UpdateMembership_FullMethodName = "/pb.Zero/UpdateMembership" + Zero_StreamMembership_FullMethodName = "/pb.Zero/StreamMembership" + Zero_Oracle_FullMethodName = "/pb.Zero/Oracle" + Zero_ShouldServe_FullMethodName = "/pb.Zero/ShouldServe" + Zero_Inform_FullMethodName = "/pb.Zero/Inform" + Zero_AssignIds_FullMethodName = "/pb.Zero/AssignIds" + Zero_Timestamps_FullMethodName = "/pb.Zero/Timestamps" + Zero_CommitOrAbort_FullMethodName = "/pb.Zero/CommitOrAbort" + Zero_TryAbort_FullMethodName = "/pb.Zero/TryAbort" + Zero_DeleteNamespace_FullMethodName = "/pb.Zero/DeleteNamespace" + Zero_RemoveNode_FullMethodName = "/pb.Zero/RemoveNode" + Zero_MoveTablet_FullMethodName = "/pb.Zero/MoveTablet" + Zero_ApplyLicense_FullMethodName = "/pb.Zero/ApplyLicense" +) + +// ZeroClient is the client API for Zero 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. +type ZeroClient interface { + // These 3 endpoints are for handling membership. + Connect(ctx context.Context, in *Member, opts ...grpc.CallOption) (*ConnectionState, error) + UpdateMembership(ctx context.Context, in *Group, opts ...grpc.CallOption) (*api.Payload, error) + StreamMembership(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Zero_StreamMembershipClient, error) + Oracle(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Zero_OracleClient, error) + ShouldServe(ctx context.Context, in *Tablet, opts ...grpc.CallOption) (*Tablet, error) + Inform(ctx context.Context, in *TabletRequest, opts ...grpc.CallOption) (*TabletResponse, error) + AssignIds(ctx context.Context, in *Num, opts ...grpc.CallOption) (*AssignedIds, error) + Timestamps(ctx context.Context, in *Num, opts ...grpc.CallOption) (*AssignedIds, error) + CommitOrAbort(ctx context.Context, in *api.TxnContext, opts ...grpc.CallOption) (*api.TxnContext, error) + TryAbort(ctx context.Context, in *TxnTimestamps, opts ...grpc.CallOption) (*OracleDelta, error) + DeleteNamespace(ctx context.Context, in *DeleteNsRequest, opts ...grpc.CallOption) (*Status, error) + RemoveNode(ctx context.Context, in *RemoveNodeRequest, opts ...grpc.CallOption) (*Status, error) + MoveTablet(ctx context.Context, in *MoveTabletRequest, opts ...grpc.CallOption) (*Status, error) + ApplyLicense(ctx context.Context, in *ApplyLicenseRequest, opts ...grpc.CallOption) (*Status, error) +} + +type zeroClient struct { + cc grpc.ClientConnInterface +} + +func NewZeroClient(cc grpc.ClientConnInterface) ZeroClient { + return &zeroClient{cc} +} + +func (c *zeroClient) Connect(ctx context.Context, in *Member, opts ...grpc.CallOption) (*ConnectionState, error) { + out := new(ConnectionState) + err := c.cc.Invoke(ctx, Zero_Connect_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *zeroClient) UpdateMembership(ctx context.Context, in *Group, opts ...grpc.CallOption) (*api.Payload, error) { + out := new(api.Payload) + err := c.cc.Invoke(ctx, Zero_UpdateMembership_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *zeroClient) StreamMembership(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Zero_StreamMembershipClient, error) { + stream, err := c.cc.NewStream(ctx, &Zero_ServiceDesc.Streams[0], Zero_StreamMembership_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &zeroStreamMembershipClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Zero_StreamMembershipClient interface { + Recv() (*MembershipState, error) + grpc.ClientStream +} + +type zeroStreamMembershipClient struct { + grpc.ClientStream +} + +func (x *zeroStreamMembershipClient) Recv() (*MembershipState, error) { + m := new(MembershipState) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *zeroClient) Oracle(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Zero_OracleClient, error) { + stream, err := c.cc.NewStream(ctx, &Zero_ServiceDesc.Streams[1], Zero_Oracle_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &zeroOracleClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Zero_OracleClient interface { + Recv() (*OracleDelta, error) + grpc.ClientStream +} + +type zeroOracleClient struct { + grpc.ClientStream +} + +func (x *zeroOracleClient) Recv() (*OracleDelta, error) { + m := new(OracleDelta) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *zeroClient) ShouldServe(ctx context.Context, in *Tablet, opts ...grpc.CallOption) (*Tablet, error) { + out := new(Tablet) + err := c.cc.Invoke(ctx, Zero_ShouldServe_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *zeroClient) Inform(ctx context.Context, in *TabletRequest, opts ...grpc.CallOption) (*TabletResponse, error) { + out := new(TabletResponse) + err := c.cc.Invoke(ctx, Zero_Inform_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *zeroClient) AssignIds(ctx context.Context, in *Num, opts ...grpc.CallOption) (*AssignedIds, error) { + out := new(AssignedIds) + err := c.cc.Invoke(ctx, Zero_AssignIds_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *zeroClient) Timestamps(ctx context.Context, in *Num, opts ...grpc.CallOption) (*AssignedIds, error) { + out := new(AssignedIds) + err := c.cc.Invoke(ctx, Zero_Timestamps_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *zeroClient) CommitOrAbort(ctx context.Context, in *api.TxnContext, opts ...grpc.CallOption) (*api.TxnContext, error) { + out := new(api.TxnContext) + err := c.cc.Invoke(ctx, Zero_CommitOrAbort_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *zeroClient) TryAbort(ctx context.Context, in *TxnTimestamps, opts ...grpc.CallOption) (*OracleDelta, error) { + out := new(OracleDelta) + err := c.cc.Invoke(ctx, Zero_TryAbort_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *zeroClient) DeleteNamespace(ctx context.Context, in *DeleteNsRequest, opts ...grpc.CallOption) (*Status, error) { + out := new(Status) + err := c.cc.Invoke(ctx, Zero_DeleteNamespace_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *zeroClient) RemoveNode(ctx context.Context, in *RemoveNodeRequest, opts ...grpc.CallOption) (*Status, error) { + out := new(Status) + err := c.cc.Invoke(ctx, Zero_RemoveNode_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *zeroClient) MoveTablet(ctx context.Context, in *MoveTabletRequest, opts ...grpc.CallOption) (*Status, error) { + out := new(Status) + err := c.cc.Invoke(ctx, Zero_MoveTablet_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *zeroClient) ApplyLicense(ctx context.Context, in *ApplyLicenseRequest, opts ...grpc.CallOption) (*Status, error) { + out := new(Status) + err := c.cc.Invoke(ctx, Zero_ApplyLicense_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ZeroServer is the server API for Zero service. +// All implementations must embed UnimplementedZeroServer +// for forward compatibility +type ZeroServer interface { + // These 3 endpoints are for handling membership. + Connect(context.Context, *Member) (*ConnectionState, error) + UpdateMembership(context.Context, *Group) (*api.Payload, error) + StreamMembership(*api.Payload, Zero_StreamMembershipServer) error + Oracle(*api.Payload, Zero_OracleServer) error + ShouldServe(context.Context, *Tablet) (*Tablet, error) + Inform(context.Context, *TabletRequest) (*TabletResponse, error) + AssignIds(context.Context, *Num) (*AssignedIds, error) + Timestamps(context.Context, *Num) (*AssignedIds, error) + CommitOrAbort(context.Context, *api.TxnContext) (*api.TxnContext, error) + TryAbort(context.Context, *TxnTimestamps) (*OracleDelta, error) + DeleteNamespace(context.Context, *DeleteNsRequest) (*Status, error) + RemoveNode(context.Context, *RemoveNodeRequest) (*Status, error) + MoveTablet(context.Context, *MoveTabletRequest) (*Status, error) + ApplyLicense(context.Context, *ApplyLicenseRequest) (*Status, error) + mustEmbedUnimplementedZeroServer() +} + +// UnimplementedZeroServer must be embedded to have forward compatible implementations. +type UnimplementedZeroServer struct { +} + +func (UnimplementedZeroServer) Connect(context.Context, *Member) (*ConnectionState, error) { + return nil, status.Errorf(codes.Unimplemented, "method Connect not implemented") +} +func (UnimplementedZeroServer) UpdateMembership(context.Context, *Group) (*api.Payload, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateMembership not implemented") +} +func (UnimplementedZeroServer) StreamMembership(*api.Payload, Zero_StreamMembershipServer) error { + return status.Errorf(codes.Unimplemented, "method StreamMembership not implemented") +} +func (UnimplementedZeroServer) Oracle(*api.Payload, Zero_OracleServer) error { + return status.Errorf(codes.Unimplemented, "method Oracle not implemented") +} +func (UnimplementedZeroServer) ShouldServe(context.Context, *Tablet) (*Tablet, error) { + return nil, status.Errorf(codes.Unimplemented, "method ShouldServe not implemented") +} +func (UnimplementedZeroServer) Inform(context.Context, *TabletRequest) (*TabletResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Inform not implemented") +} +func (UnimplementedZeroServer) AssignIds(context.Context, *Num) (*AssignedIds, error) { + return nil, status.Errorf(codes.Unimplemented, "method AssignIds not implemented") +} +func (UnimplementedZeroServer) Timestamps(context.Context, *Num) (*AssignedIds, error) { + return nil, status.Errorf(codes.Unimplemented, "method Timestamps not implemented") +} +func (UnimplementedZeroServer) CommitOrAbort(context.Context, *api.TxnContext) (*api.TxnContext, error) { + return nil, status.Errorf(codes.Unimplemented, "method CommitOrAbort not implemented") +} +func (UnimplementedZeroServer) TryAbort(context.Context, *TxnTimestamps) (*OracleDelta, error) { + return nil, status.Errorf(codes.Unimplemented, "method TryAbort not implemented") +} +func (UnimplementedZeroServer) DeleteNamespace(context.Context, *DeleteNsRequest) (*Status, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteNamespace not implemented") +} +func (UnimplementedZeroServer) RemoveNode(context.Context, *RemoveNodeRequest) (*Status, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveNode not implemented") +} +func (UnimplementedZeroServer) MoveTablet(context.Context, *MoveTabletRequest) (*Status, error) { + return nil, status.Errorf(codes.Unimplemented, "method MoveTablet not implemented") +} +func (UnimplementedZeroServer) ApplyLicense(context.Context, *ApplyLicenseRequest) (*Status, error) { + return nil, status.Errorf(codes.Unimplemented, "method ApplyLicense not implemented") +} +func (UnimplementedZeroServer) mustEmbedUnimplementedZeroServer() {} + +// UnsafeZeroServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ZeroServer will +// result in compilation errors. +type UnsafeZeroServer interface { + mustEmbedUnimplementedZeroServer() +} + +func RegisterZeroServer(s grpc.ServiceRegistrar, srv ZeroServer) { + s.RegisterService(&Zero_ServiceDesc, srv) +} + +func _Zero_Connect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Member) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ZeroServer).Connect(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Zero_Connect_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ZeroServer).Connect(ctx, req.(*Member)) + } + return interceptor(ctx, in, info, handler) +} + +func _Zero_UpdateMembership_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Group) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ZeroServer).UpdateMembership(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Zero_UpdateMembership_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ZeroServer).UpdateMembership(ctx, req.(*Group)) + } + return interceptor(ctx, in, info, handler) +} + +func _Zero_StreamMembership_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(api.Payload) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ZeroServer).StreamMembership(m, &zeroStreamMembershipServer{stream}) +} + +type Zero_StreamMembershipServer interface { + Send(*MembershipState) error + grpc.ServerStream +} + +type zeroStreamMembershipServer struct { + grpc.ServerStream +} + +func (x *zeroStreamMembershipServer) Send(m *MembershipState) error { + return x.ServerStream.SendMsg(m) +} + +func _Zero_Oracle_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(api.Payload) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ZeroServer).Oracle(m, &zeroOracleServer{stream}) +} + +type Zero_OracleServer interface { + Send(*OracleDelta) error + grpc.ServerStream +} + +type zeroOracleServer struct { + grpc.ServerStream +} + +func (x *zeroOracleServer) Send(m *OracleDelta) error { + return x.ServerStream.SendMsg(m) +} + +func _Zero_ShouldServe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Tablet) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ZeroServer).ShouldServe(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Zero_ShouldServe_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ZeroServer).ShouldServe(ctx, req.(*Tablet)) + } + return interceptor(ctx, in, info, handler) +} + +func _Zero_Inform_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TabletRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ZeroServer).Inform(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Zero_Inform_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ZeroServer).Inform(ctx, req.(*TabletRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Zero_AssignIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Num) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ZeroServer).AssignIds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Zero_AssignIds_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ZeroServer).AssignIds(ctx, req.(*Num)) + } + return interceptor(ctx, in, info, handler) +} + +func _Zero_Timestamps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Num) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ZeroServer).Timestamps(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Zero_Timestamps_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ZeroServer).Timestamps(ctx, req.(*Num)) + } + return interceptor(ctx, in, info, handler) +} + +func _Zero_CommitOrAbort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(api.TxnContext) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ZeroServer).CommitOrAbort(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Zero_CommitOrAbort_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ZeroServer).CommitOrAbort(ctx, req.(*api.TxnContext)) + } + return interceptor(ctx, in, info, handler) +} + +func _Zero_TryAbort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TxnTimestamps) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ZeroServer).TryAbort(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Zero_TryAbort_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ZeroServer).TryAbort(ctx, req.(*TxnTimestamps)) + } + return interceptor(ctx, in, info, handler) +} + +func _Zero_DeleteNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteNsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ZeroServer).DeleteNamespace(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Zero_DeleteNamespace_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ZeroServer).DeleteNamespace(ctx, req.(*DeleteNsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Zero_RemoveNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveNodeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ZeroServer).RemoveNode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Zero_RemoveNode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ZeroServer).RemoveNode(ctx, req.(*RemoveNodeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Zero_MoveTablet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MoveTabletRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ZeroServer).MoveTablet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Zero_MoveTablet_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ZeroServer).MoveTablet(ctx, req.(*MoveTabletRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Zero_ApplyLicense_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ApplyLicenseRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ZeroServer).ApplyLicense(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Zero_ApplyLicense_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ZeroServer).ApplyLicense(ctx, req.(*ApplyLicenseRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Zero_ServiceDesc is the grpc.ServiceDesc for Zero service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Zero_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pb.Zero", + HandlerType: (*ZeroServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Connect", + Handler: _Zero_Connect_Handler, + }, + { + MethodName: "UpdateMembership", + Handler: _Zero_UpdateMembership_Handler, + }, + { + MethodName: "ShouldServe", + Handler: _Zero_ShouldServe_Handler, + }, + { + MethodName: "Inform", + Handler: _Zero_Inform_Handler, + }, + { + MethodName: "AssignIds", + Handler: _Zero_AssignIds_Handler, + }, + { + MethodName: "Timestamps", + Handler: _Zero_Timestamps_Handler, + }, + { + MethodName: "CommitOrAbort", + Handler: _Zero_CommitOrAbort_Handler, + }, + { + MethodName: "TryAbort", + Handler: _Zero_TryAbort_Handler, + }, + { + MethodName: "DeleteNamespace", + Handler: _Zero_DeleteNamespace_Handler, + }, + { + MethodName: "RemoveNode", + Handler: _Zero_RemoveNode_Handler, + }, + { + MethodName: "MoveTablet", + Handler: _Zero_MoveTablet_Handler, + }, + { + MethodName: "ApplyLicense", + Handler: _Zero_ApplyLicense_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamMembership", + Handler: _Zero_StreamMembership_Handler, + ServerStreams: true, + }, + { + StreamName: "Oracle", + Handler: _Zero_Oracle_Handler, + ServerStreams: true, + }, + }, + Metadata: "pb.proto", +} + +const ( + Worker_Mutate_FullMethodName = "/pb.Worker/Mutate" + Worker_ServeTask_FullMethodName = "/pb.Worker/ServeTask" + Worker_StreamSnapshot_FullMethodName = "/pb.Worker/StreamSnapshot" + Worker_Sort_FullMethodName = "/pb.Worker/Sort" + Worker_Schema_FullMethodName = "/pb.Worker/Schema" + Worker_Backup_FullMethodName = "/pb.Worker/Backup" + Worker_Restore_FullMethodName = "/pb.Worker/Restore" + Worker_Export_FullMethodName = "/pb.Worker/Export" + Worker_ReceivePredicate_FullMethodName = "/pb.Worker/ReceivePredicate" + Worker_MovePredicate_FullMethodName = "/pb.Worker/MovePredicate" + Worker_Subscribe_FullMethodName = "/pb.Worker/Subscribe" + Worker_UpdateGraphQLSchema_FullMethodName = "/pb.Worker/UpdateGraphQLSchema" + Worker_DeleteNamespace_FullMethodName = "/pb.Worker/DeleteNamespace" + Worker_TaskStatus_FullMethodName = "/pb.Worker/TaskStatus" +) + +// WorkerClient is the client API for Worker 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. +type WorkerClient interface { + // Data serving RPCs. + Mutate(ctx context.Context, in *Mutations, opts ...grpc.CallOption) (*api.TxnContext, error) + ServeTask(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Result, error) + StreamSnapshot(ctx context.Context, opts ...grpc.CallOption) (Worker_StreamSnapshotClient, error) + Sort(ctx context.Context, in *SortMessage, opts ...grpc.CallOption) (*SortResult, error) + Schema(ctx context.Context, in *SchemaRequest, opts ...grpc.CallOption) (*SchemaResult, error) + Backup(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (*BackupResponse, error) + Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*Status, error) + Export(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*ExportResponse, error) + ReceivePredicate(ctx context.Context, opts ...grpc.CallOption) (Worker_ReceivePredicateClient, error) + MovePredicate(ctx context.Context, in *MovePredicatePayload, opts ...grpc.CallOption) (*api.Payload, error) + Subscribe(ctx context.Context, in *SubscriptionRequest, opts ...grpc.CallOption) (Worker_SubscribeClient, error) + UpdateGraphQLSchema(ctx context.Context, in *UpdateGraphQLSchemaRequest, opts ...grpc.CallOption) (*UpdateGraphQLSchemaResponse, error) + DeleteNamespace(ctx context.Context, in *DeleteNsRequest, opts ...grpc.CallOption) (*Status, error) + TaskStatus(ctx context.Context, in *TaskStatusRequest, opts ...grpc.CallOption) (*TaskStatusResponse, error) +} + +type workerClient struct { + cc grpc.ClientConnInterface +} + +func NewWorkerClient(cc grpc.ClientConnInterface) WorkerClient { + return &workerClient{cc} +} + +func (c *workerClient) Mutate(ctx context.Context, in *Mutations, opts ...grpc.CallOption) (*api.TxnContext, error) { + out := new(api.TxnContext) + err := c.cc.Invoke(ctx, Worker_Mutate_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerClient) ServeTask(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Result, error) { + out := new(Result) + err := c.cc.Invoke(ctx, Worker_ServeTask_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerClient) StreamSnapshot(ctx context.Context, opts ...grpc.CallOption) (Worker_StreamSnapshotClient, error) { + stream, err := c.cc.NewStream(ctx, &Worker_ServiceDesc.Streams[0], Worker_StreamSnapshot_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &workerStreamSnapshotClient{stream} + return x, nil +} + +type Worker_StreamSnapshotClient interface { + Send(*Snapshot) error + Recv() (*KVS, error) + grpc.ClientStream +} + +type workerStreamSnapshotClient struct { + grpc.ClientStream +} + +func (x *workerStreamSnapshotClient) Send(m *Snapshot) error { + return x.ClientStream.SendMsg(m) +} + +func (x *workerStreamSnapshotClient) Recv() (*KVS, error) { + m := new(KVS) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *workerClient) Sort(ctx context.Context, in *SortMessage, opts ...grpc.CallOption) (*SortResult, error) { + out := new(SortResult) + err := c.cc.Invoke(ctx, Worker_Sort_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerClient) Schema(ctx context.Context, in *SchemaRequest, opts ...grpc.CallOption) (*SchemaResult, error) { + out := new(SchemaResult) + err := c.cc.Invoke(ctx, Worker_Schema_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerClient) Backup(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (*BackupResponse, error) { + out := new(BackupResponse) + err := c.cc.Invoke(ctx, Worker_Backup_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerClient) Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*Status, error) { + out := new(Status) + err := c.cc.Invoke(ctx, Worker_Restore_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerClient) Export(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*ExportResponse, error) { + out := new(ExportResponse) + err := c.cc.Invoke(ctx, Worker_Export_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerClient) ReceivePredicate(ctx context.Context, opts ...grpc.CallOption) (Worker_ReceivePredicateClient, error) { + stream, err := c.cc.NewStream(ctx, &Worker_ServiceDesc.Streams[1], Worker_ReceivePredicate_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &workerReceivePredicateClient{stream} + return x, nil +} + +type Worker_ReceivePredicateClient interface { + Send(*KVS) error + CloseAndRecv() (*api.Payload, error) + grpc.ClientStream +} + +type workerReceivePredicateClient struct { + grpc.ClientStream +} + +func (x *workerReceivePredicateClient) Send(m *KVS) error { + return x.ClientStream.SendMsg(m) +} + +func (x *workerReceivePredicateClient) CloseAndRecv() (*api.Payload, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(api.Payload) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *workerClient) MovePredicate(ctx context.Context, in *MovePredicatePayload, opts ...grpc.CallOption) (*api.Payload, error) { + out := new(api.Payload) + err := c.cc.Invoke(ctx, Worker_MovePredicate_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerClient) Subscribe(ctx context.Context, in *SubscriptionRequest, opts ...grpc.CallOption) (Worker_SubscribeClient, error) { + stream, err := c.cc.NewStream(ctx, &Worker_ServiceDesc.Streams[2], Worker_Subscribe_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &workerSubscribeClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Worker_SubscribeClient interface { + Recv() (*pb.KVList, error) + grpc.ClientStream +} + +type workerSubscribeClient struct { + grpc.ClientStream +} + +func (x *workerSubscribeClient) Recv() (*pb.KVList, error) { + m := new(pb.KVList) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *workerClient) UpdateGraphQLSchema(ctx context.Context, in *UpdateGraphQLSchemaRequest, opts ...grpc.CallOption) (*UpdateGraphQLSchemaResponse, error) { + out := new(UpdateGraphQLSchemaResponse) + err := c.cc.Invoke(ctx, Worker_UpdateGraphQLSchema_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerClient) DeleteNamespace(ctx context.Context, in *DeleteNsRequest, opts ...grpc.CallOption) (*Status, error) { + out := new(Status) + err := c.cc.Invoke(ctx, Worker_DeleteNamespace_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerClient) TaskStatus(ctx context.Context, in *TaskStatusRequest, opts ...grpc.CallOption) (*TaskStatusResponse, error) { + out := new(TaskStatusResponse) + err := c.cc.Invoke(ctx, Worker_TaskStatus_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// WorkerServer is the server API for Worker service. +// All implementations must embed UnimplementedWorkerServer +// for forward compatibility +type WorkerServer interface { + // Data serving RPCs. + Mutate(context.Context, *Mutations) (*api.TxnContext, error) + ServeTask(context.Context, *Query) (*Result, error) + StreamSnapshot(Worker_StreamSnapshotServer) error + Sort(context.Context, *SortMessage) (*SortResult, error) + Schema(context.Context, *SchemaRequest) (*SchemaResult, error) + Backup(context.Context, *BackupRequest) (*BackupResponse, error) + Restore(context.Context, *RestoreRequest) (*Status, error) + Export(context.Context, *ExportRequest) (*ExportResponse, error) + ReceivePredicate(Worker_ReceivePredicateServer) error + MovePredicate(context.Context, *MovePredicatePayload) (*api.Payload, error) + Subscribe(*SubscriptionRequest, Worker_SubscribeServer) error + UpdateGraphQLSchema(context.Context, *UpdateGraphQLSchemaRequest) (*UpdateGraphQLSchemaResponse, error) + DeleteNamespace(context.Context, *DeleteNsRequest) (*Status, error) + TaskStatus(context.Context, *TaskStatusRequest) (*TaskStatusResponse, error) + mustEmbedUnimplementedWorkerServer() +} + +// UnimplementedWorkerServer must be embedded to have forward compatible implementations. +type UnimplementedWorkerServer struct { +} + +func (UnimplementedWorkerServer) Mutate(context.Context, *Mutations) (*api.TxnContext, error) { + return nil, status.Errorf(codes.Unimplemented, "method Mutate not implemented") +} +func (UnimplementedWorkerServer) ServeTask(context.Context, *Query) (*Result, error) { + return nil, status.Errorf(codes.Unimplemented, "method ServeTask not implemented") +} +func (UnimplementedWorkerServer) StreamSnapshot(Worker_StreamSnapshotServer) error { + return status.Errorf(codes.Unimplemented, "method StreamSnapshot not implemented") +} +func (UnimplementedWorkerServer) Sort(context.Context, *SortMessage) (*SortResult, error) { + return nil, status.Errorf(codes.Unimplemented, "method Sort not implemented") +} +func (UnimplementedWorkerServer) Schema(context.Context, *SchemaRequest) (*SchemaResult, error) { + return nil, status.Errorf(codes.Unimplemented, "method Schema not implemented") +} +func (UnimplementedWorkerServer) Backup(context.Context, *BackupRequest) (*BackupResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Backup not implemented") +} +func (UnimplementedWorkerServer) Restore(context.Context, *RestoreRequest) (*Status, error) { + return nil, status.Errorf(codes.Unimplemented, "method Restore not implemented") +} +func (UnimplementedWorkerServer) Export(context.Context, *ExportRequest) (*ExportResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Export not implemented") +} +func (UnimplementedWorkerServer) ReceivePredicate(Worker_ReceivePredicateServer) error { + return status.Errorf(codes.Unimplemented, "method ReceivePredicate not implemented") +} +func (UnimplementedWorkerServer) MovePredicate(context.Context, *MovePredicatePayload) (*api.Payload, error) { + return nil, status.Errorf(codes.Unimplemented, "method MovePredicate not implemented") +} +func (UnimplementedWorkerServer) Subscribe(*SubscriptionRequest, Worker_SubscribeServer) error { + return status.Errorf(codes.Unimplemented, "method Subscribe not implemented") +} +func (UnimplementedWorkerServer) UpdateGraphQLSchema(context.Context, *UpdateGraphQLSchemaRequest) (*UpdateGraphQLSchemaResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateGraphQLSchema not implemented") +} +func (UnimplementedWorkerServer) DeleteNamespace(context.Context, *DeleteNsRequest) (*Status, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteNamespace not implemented") +} +func (UnimplementedWorkerServer) TaskStatus(context.Context, *TaskStatusRequest) (*TaskStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TaskStatus not implemented") +} +func (UnimplementedWorkerServer) mustEmbedUnimplementedWorkerServer() {} + +// UnsafeWorkerServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to WorkerServer will +// result in compilation errors. +type UnsafeWorkerServer interface { + mustEmbedUnimplementedWorkerServer() +} + +func RegisterWorkerServer(s grpc.ServiceRegistrar, srv WorkerServer) { + s.RegisterService(&Worker_ServiceDesc, srv) +} + +func _Worker_Mutate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Mutations) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerServer).Mutate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Worker_Mutate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerServer).Mutate(ctx, req.(*Mutations)) + } + return interceptor(ctx, in, info, handler) +} + +func _Worker_ServeTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Query) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerServer).ServeTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Worker_ServeTask_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerServer).ServeTask(ctx, req.(*Query)) + } + return interceptor(ctx, in, info, handler) +} + +func _Worker_StreamSnapshot_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(WorkerServer).StreamSnapshot(&workerStreamSnapshotServer{stream}) +} + +type Worker_StreamSnapshotServer interface { + Send(*KVS) error + Recv() (*Snapshot, error) + grpc.ServerStream +} + +type workerStreamSnapshotServer struct { + grpc.ServerStream +} + +func (x *workerStreamSnapshotServer) Send(m *KVS) error { + return x.ServerStream.SendMsg(m) +} + +func (x *workerStreamSnapshotServer) Recv() (*Snapshot, error) { + m := new(Snapshot) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _Worker_Sort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SortMessage) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerServer).Sort(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Worker_Sort_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerServer).Sort(ctx, req.(*SortMessage)) + } + return interceptor(ctx, in, info, handler) +} + +func _Worker_Schema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SchemaRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerServer).Schema(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Worker_Schema_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerServer).Schema(ctx, req.(*SchemaRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Worker_Backup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BackupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerServer).Backup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Worker_Backup_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerServer).Backup(ctx, req.(*BackupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Worker_Restore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RestoreRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerServer).Restore(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Worker_Restore_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerServer).Restore(ctx, req.(*RestoreRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Worker_Export_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExportRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerServer).Export(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Worker_Export_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerServer).Export(ctx, req.(*ExportRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Worker_ReceivePredicate_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(WorkerServer).ReceivePredicate(&workerReceivePredicateServer{stream}) +} + +type Worker_ReceivePredicateServer interface { + SendAndClose(*api.Payload) error + Recv() (*KVS, error) + grpc.ServerStream +} + +type workerReceivePredicateServer struct { + grpc.ServerStream +} + +func (x *workerReceivePredicateServer) SendAndClose(m *api.Payload) error { + return x.ServerStream.SendMsg(m) +} + +func (x *workerReceivePredicateServer) Recv() (*KVS, error) { + m := new(KVS) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _Worker_MovePredicate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MovePredicatePayload) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerServer).MovePredicate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Worker_MovePredicate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerServer).MovePredicate(ctx, req.(*MovePredicatePayload)) + } + return interceptor(ctx, in, info, handler) +} + +func _Worker_Subscribe_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SubscriptionRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WorkerServer).Subscribe(m, &workerSubscribeServer{stream}) +} + +type Worker_SubscribeServer interface { + Send(*pb.KVList) error + grpc.ServerStream +} + +type workerSubscribeServer struct { + grpc.ServerStream +} + +func (x *workerSubscribeServer) Send(m *pb.KVList) error { + return x.ServerStream.SendMsg(m) +} + +func _Worker_UpdateGraphQLSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateGraphQLSchemaRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerServer).UpdateGraphQLSchema(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Worker_UpdateGraphQLSchema_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerServer).UpdateGraphQLSchema(ctx, req.(*UpdateGraphQLSchemaRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Worker_DeleteNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteNsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerServer).DeleteNamespace(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Worker_DeleteNamespace_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerServer).DeleteNamespace(ctx, req.(*DeleteNsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Worker_TaskStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TaskStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerServer).TaskStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Worker_TaskStatus_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerServer).TaskStatus(ctx, req.(*TaskStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Worker_ServiceDesc is the grpc.ServiceDesc for Worker service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Worker_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pb.Worker", + HandlerType: (*WorkerServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Mutate", + Handler: _Worker_Mutate_Handler, + }, + { + MethodName: "ServeTask", + Handler: _Worker_ServeTask_Handler, + }, + { + MethodName: "Sort", + Handler: _Worker_Sort_Handler, + }, + { + MethodName: "Schema", + Handler: _Worker_Schema_Handler, + }, + { + MethodName: "Backup", + Handler: _Worker_Backup_Handler, + }, + { + MethodName: "Restore", + Handler: _Worker_Restore_Handler, + }, + { + MethodName: "Export", + Handler: _Worker_Export_Handler, + }, + { + MethodName: "MovePredicate", + Handler: _Worker_MovePredicate_Handler, + }, + { + MethodName: "UpdateGraphQLSchema", + Handler: _Worker_UpdateGraphQLSchema_Handler, + }, + { + MethodName: "DeleteNamespace", + Handler: _Worker_DeleteNamespace_Handler, + }, + { + MethodName: "TaskStatus", + Handler: _Worker_TaskStatus_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamSnapshot", + Handler: _Worker_StreamSnapshot_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "ReceivePredicate", + Handler: _Worker_ReceivePredicate_Handler, + ClientStreams: true, + }, + { + StreamName: "Subscribe", + Handler: _Worker_Subscribe_Handler, + ServerStreams: true, + }, + }, + Metadata: "pb.proto", +} diff --git a/schema/schema.go b/schema/schema.go index 5c29fb9b26d..a29db34167e 100644 --- a/schema/schema.go +++ b/schema/schema.go @@ -25,9 +25,9 @@ import ( "sync" "github.com/golang/glog" - "github.com/golang/protobuf/proto" "github.com/pkg/errors" "golang.org/x/net/trace" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" badgerpb "github.com/dgraph-io/badger/v4/pb" @@ -554,7 +554,7 @@ func Load(predicate string) error { } var s pb.SchemaUpdate err = item.Value(func(val []byte) error { - x.Check(s.Unmarshal(val)) + x.Check(proto.Unmarshal(val, &s)) return nil }) if err != nil { @@ -617,7 +617,7 @@ func loadFromDB(ctx context.Context, loadType int) error { if len(val) == 0 { s = pb.SchemaUpdate{Predicate: pk.Attr, ValueType: pb.Posting_DEFAULT} } - x.Checkf(s.Unmarshal(val), "Error while loading schema from db") + x.Checkf(proto.Unmarshal(val, &s), "Error while loading schema from db") State().Set(pk.Attr, &s) return nil }) @@ -628,7 +628,7 @@ func loadFromDB(ctx context.Context, loadType int) error { if len(val) == 0 { t = pb.TypeUpdate{TypeName: pk.Attr} } - x.Checkf(t.Unmarshal(val), "Error while loading types from db") + x.Checkf(proto.Unmarshal(val, &t), "Error while loading types from db") State().SetType(pk.Attr, &t) return nil }) diff --git a/upgrade/change_v21.03.0.go b/upgrade/change_v21.03.0.go index a9450aff0e5..ee4c3f0ea74 100644 --- a/upgrade/change_v21.03.0.go +++ b/upgrade/change_v21.03.0.go @@ -24,6 +24,7 @@ import ( "github.com/golang/glog" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" "github.com/dgraph-io/dgo/v240" @@ -330,11 +331,11 @@ func updateGQLSchemaOffline(db *badger.DB, cors [][]byte) error { // Append the cors at the end of GraphQL schema. pl := pb.PostingList{} - if err = pl.Unmarshal(entry.Value); err != nil { + if err := proto.Unmarshal(entry.Value, &pl); err != nil { return err } pl.Postings[0].Value = append(pl.Postings[0].Value, corsBytes...) - entry.Value, err = pl.Marshal() + entry.Value, err = proto.Marshal(&pl) if err != nil { return err } @@ -355,7 +356,7 @@ func getCors(db *badger.DB) ([][]byte, error) { return err } pl := pb.PostingList{} - if err := pl.Unmarshal(val); err != nil { + if err := proto.Unmarshal(val, &pl); err != nil { return err } for _, p := range pl.Postings { @@ -413,7 +414,7 @@ func fixPersistedQuery(db *badger.DB) error { Directive: pb.SchemaUpdate_INDEX, Tokenizer: []string{"sha256"}, } - data, err := su.Marshal() + data, err := proto.Marshal(&su) if err != nil { return err } @@ -430,7 +431,7 @@ func fixPersistedQuery(db *badger.DB) error { TypeName: x.GalaxyAttr("dgraph.graphql.persisted_query"), Fields: []*pb.SchemaUpdate{&su}, } - data, err = tu.Marshal() + data, err = proto.Marshal(&tu) if err != nil { return err } diff --git a/worker/backup.go b/worker/backup.go index 6aabb13f0c4..8830fce6de1 100644 --- a/worker/backup.go +++ b/worker/backup.go @@ -99,8 +99,8 @@ func (m *Manifest) getPredsInGroup(gid uint32) predicateSet { func GetCredentialsFromRequest(req *pb.BackupRequest) *x.MinioCredentials { return &x.MinioCredentials{ AccessKey: req.GetAccessKey(), - SecretKey: req.SecretKey, - SessionToken: req.SessionToken, + SecretKey: pb.Sensitive(req.SecretKey), + SessionToken: pb.Sensitive(req.SessionToken), Anonymous: req.GetAnonymous(), } } diff --git a/worker/backup_ee.go b/worker/backup_ee.go index fb7234dcdc9..a6368f1841f 100644 --- a/worker/backup_ee.go +++ b/worker/backup_ee.go @@ -26,10 +26,10 @@ import ( "time" "github.com/golang/glog" - "github.com/golang/protobuf/proto" "github.com/golang/snappy" "github.com/pkg/errors" ostats "go.opencensus.io/stats" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" bpb "github.com/dgraph-io/badger/v4/pb" @@ -652,16 +652,15 @@ func (tl *threadLocal) toBackupKey(key []byte) ([]byte, error) { } bk := parsedKey.ToBackupKey() - out := tl.alloc.Allocate(bk.Size()) - n, err := bk.MarshalToSizedBuffer(out) - return out[:n], err + out := tl.alloc.Allocate(proto.Size(bk)) + return x.MarshalToSizedBuffer(out, bk) } func writeKVList(list *bpb.KVList, w io.Writer) error { - if err := binary.Write(w, binary.LittleEndian, uint64(list.Size())); err != nil { + if err := binary.Write(w, binary.LittleEndian, uint64(proto.Size(list))); err != nil { return err } - buf, err := list.Marshal() + buf, err := proto.Marshal(list) if err != nil { return err } diff --git a/worker/backup_handler.go b/worker/backup_handler.go index 7d0c5c937a1..da0f1a5c7df 100644 --- a/worker/backup_handler.go +++ b/worker/backup_handler.go @@ -234,8 +234,8 @@ func FillRestoreCredentials(location string, req *pb.RestoreRequest) error { creds, _ := provider.Retrieve() // Error is always nil. req.AccessKey = creds.AccessKeyID - req.SecretKey = pb.Sensitive(creds.SecretAccessKey) - req.SessionToken = pb.Sensitive(creds.SessionToken) + req.SecretKey = creds.SecretAccessKey + req.SessionToken = creds.SessionToken return nil } diff --git a/worker/cdc_ee.go b/worker/cdc_ee.go index 8243900cbe4..388ea0e0f77 100644 --- a/worker/cdc_ee.go +++ b/worker/cdc_ee.go @@ -27,6 +27,7 @@ import ( "github.com/golang/glog" "github.com/pkg/errors" "go.etcd.io/etcd/raft/v3/raftpb" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/dgraph/v24/posting" "github.com/dgraph-io/dgraph/v24/protos/pb" @@ -237,7 +238,7 @@ func (cdc *CDC) processCDCEvents() { } var proposal pb.Proposal - if err := proposal.Unmarshal(entry.Data[8:]); err != nil { + if err := proto.Unmarshal(entry.Data[8:], &proposal); err != nil { glog.Warningf("CDC: unmarshal failed with error %v. Ignoring.", err) return } diff --git a/worker/draft.go b/worker/draft.go index da488bee126..4ad8e5e507f 100644 --- a/worker/draft.go +++ b/worker/draft.go @@ -38,6 +38,7 @@ import ( "go.opencensus.io/tag" otrace "go.opencensus.io/trace" "golang.org/x/net/trace" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" bpb "github.com/dgraph-io/badger/v4/pb" @@ -309,7 +310,7 @@ func (n *node) applyConfChange(e raftpb.Entry) { n.DeletePeer(cc.NodeID) } else if len(cc.Context) > 0 { var rc pb.RaftContext - x.Check(rc.Unmarshal(cc.Context)) + x.Check(proto.Unmarshal(cc.Context, &rc)) n.Connect(rc.Id, rc.Addr) } @@ -387,7 +388,7 @@ func (n *node) applyMutations(ctx context.Context, proposal *pb.Proposal) (rerr // Propose initial types as well after a drop all as they would have been cleared. initialTypes := schema.InitialTypes(x.GalaxyNamespace) for _, t := range initialTypes { - if err := updateType(t.GetTypeName(), *t, 1); err != nil { + if err := updateType(t.GetTypeName(), t, 1); err != nil { return err } } @@ -649,7 +650,7 @@ func (n *node) applyCommitted(proposal *pb.Proposal, key uint64) error { n.elog.Printf("Creating snapshot: %+v", snap) glog.Infof("Creating snapshot at Index: %d, ReadTs: %d\n", snap.Index, snap.ReadTs) - data, err := snap.Marshal() + data, err := proto.Marshal(snap) x.Check(err) for { // We should never let CreateSnapshot have an error. @@ -763,7 +764,7 @@ func (n *node) processApplyCh() { var proposal pb.Proposal key := binary.BigEndian.Uint64(entry.Data[:8]) - x.Check(proposal.Unmarshal(entry.Data[8:])) + x.Check(proto.Unmarshal(entry.Data[8:], &proposal)) proposal.Index = entry.Index updateStartTs(&proposal) @@ -921,13 +922,13 @@ func (n *node) Snapshot() (*pb.Snapshot, error) { return nil, err } res := &pb.Snapshot{} - if err := res.Unmarshal(snap.Data); err != nil { + if err := proto.Unmarshal(snap.Data, res); err != nil { return nil, err } return res, nil } -func (n *node) retrieveSnapshot(snap pb.Snapshot) error { +func (n *node) retrieveSnapshot(snap *pb.Snapshot) error { closer, err := n.startTask(opSnapshot) if err != nil { return err @@ -986,10 +987,10 @@ func (n *node) proposeCDCState(ts uint64) error { }, } glog.V(2).Infof("Proposing new CDC state ts: %d\n", ts) - data := make([]byte, 8+proposal.Size()) - sz, err := proposal.MarshalToSizedBuffer(data[8:]) + sz := proto.Size(proposal) + data := make([]byte, 8+sz) + x.Check2(x.MarshalToSizedBuffer(data[8:], proposal)) data = data[:8+sz] - x.Check(err) return n.Raft().Propose(n.ctx, data) } @@ -1018,10 +1019,10 @@ func (n *node) proposeSnapshot() error { Snapshot: snap, } glog.V(2).Infof("Proposing snapshot: %+v\n", snap) - data := make([]byte, 8+proposal.Size()) - sz, err := proposal.MarshalToSizedBuffer(data[8:]) + sz := proto.Size(proposal) + data := make([]byte, 8+sz) + x.Check2(x.MarshalToSizedBuffer(data[8:], proposal)) data = data[:8+sz] - x.Check(err) return n.Raft().Propose(n.ctx, data) } @@ -1291,8 +1292,8 @@ func (n *node) Run() { // We don't send snapshots to other nodes. But, if we get one, that means // either the leader is trying to bring us up to state; or this is the // snapshot that I created. Only the former case should be handled. - var snap pb.Snapshot - x.Check(snap.Unmarshal(rd.Snapshot.Data)) + snap := &pb.Snapshot{} + x.Check(proto.Unmarshal(rd.Snapshot.Data, snap)) rc := snap.GetContext() x.AssertTrue(rc.GetGroup() == n.gid) if rc.Id != n.Id { @@ -1660,9 +1661,9 @@ func (n *node) calculateSnapshot(startIdx, lastIdx, minPendingStart uint64) (*pb if err != nil { return nil, err } - var snap pb.Snapshot + snap := &pb.Snapshot{} if len(rsnap.Data) > 0 { - if err := snap.Unmarshal(rsnap.Data); err != nil { + if err := proto.Unmarshal(rsnap.Data, snap); err != nil { return nil, err } } @@ -1709,7 +1710,7 @@ func (n *node) calculateSnapshot(startIdx, lastIdx, minPendingStart uint64) (*pb continue } var proposal pb.Proposal - if err := proposal.Unmarshal(entry.Data[8:]); err != nil { + if err := proto.Unmarshal(entry.Data[8:], &proposal); err != nil { span.Annotatef(nil, "Error: %v", err) return nil, err } diff --git a/worker/draft_test.go b/worker/draft_test.go index 4ba38797e4f..8215bc406c5 100644 --- a/worker/draft_test.go +++ b/worker/draft_test.go @@ -21,6 +21,7 @@ import ( "github.com/stretchr/testify/require" "go.etcd.io/etcd/raft/v3/raftpb" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/dgraph/v24/posting" "github.com/dgraph-io/dgraph/v24/protos/pb" @@ -29,10 +30,10 @@ import ( ) func getEntryForMutation(index, startTs uint64) raftpb.Entry { - proposal := pb.Proposal{Mutations: &pb.Mutations{StartTs: startTs}} - data := make([]byte, 8+proposal.Size()) - sz, err := proposal.MarshalToSizedBuffer(data) - x.Check(err) + proposal := &pb.Proposal{Mutations: &pb.Mutations{StartTs: startTs}} + sz := proto.Size(proposal) + data := make([]byte, 8+sz) + x.Check2(x.MarshalToSizedBuffer(data[8:], proposal)) data = data[:8+sz] return raftpb.Entry{Index: index, Term: 1, Type: raftpb.EntryNormal, Data: data} } @@ -40,10 +41,10 @@ func getEntryForMutation(index, startTs uint64) raftpb.Entry { func getEntryForCommit(index, startTs, commitTs uint64) raftpb.Entry { delta := &pb.OracleDelta{} delta.Txns = append(delta.Txns, &pb.TxnStatus{StartTs: startTs, CommitTs: commitTs}) - proposal := pb.Proposal{Delta: delta} - data := make([]byte, 8+proposal.Size()) - sz, err := proposal.MarshalToSizedBuffer(data) - x.Check(err) + proposal := &pb.Proposal{Delta: delta} + sz := proto.Size(proposal) + data := make([]byte, 8+sz) + x.Check2(x.MarshalToSizedBuffer(data[8:], proposal)) data = data[:8+sz] return raftpb.Entry{Index: index, Term: 1, Type: raftpb.EntryNormal, Data: data} } diff --git a/worker/export.go b/worker/export.go index eaec358e8e6..e0a9149328e 100644 --- a/worker/export.go +++ b/worker/export.go @@ -34,6 +34,7 @@ import ( "github.com/golang/glog" "github.com/minio/minio-go/v6" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" bpb "github.com/dgraph-io/badger/v4/pb" @@ -528,8 +529,8 @@ func newRemoteExportStorage(in *pb.ExportRequest, backupName string) (*remoteExp mc, err := x.NewMinioClient(uri, &x.MinioCredentials{ AccessKey: in.AccessKey, - SecretKey: in.SecretKey, - SessionToken: in.SessionToken, + SecretKey: pb.Sensitive(in.SecretKey), + SessionToken: pb.Sensitive(in.SessionToken), Anonymous: in.Anonymous, }) if err != nil { @@ -845,7 +846,7 @@ func exportInternal(ctx context.Context, in *pb.ExportRequest, db *badger.DB, kv := &bpb.KV{} return buf.SliceIterate(func(s []byte) error { kv.Reset() - if err := kv.Unmarshal(s); err != nil { + if err := proto.Unmarshal(s, kv); err != nil { return err } return WriteExport(writers, kv, in.Format) @@ -949,7 +950,7 @@ func SchemaExportKv(attr string, val []byte, skipZero bool) (*bpb.KV, error) { } var update pb.SchemaUpdate - if err := update.Unmarshal(val); err != nil { + if err := proto.Unmarshal(val, &update); err != nil { return nil, err } return toSchema(attr, &update), nil @@ -957,7 +958,7 @@ func SchemaExportKv(attr string, val []byte, skipZero bool) (*bpb.KV, error) { func TypeExportKv(attr string, val []byte) (*bpb.KV, error) { var update pb.TypeUpdate - if err := update.Unmarshal(val); err != nil { + if err := proto.Unmarshal(val, &update); err != nil { return nil, err } return toType(attr, update), nil diff --git a/worker/export_test.go b/worker/export_test.go index b190ed13245..16e939108d1 100644 --- a/worker/export_test.go +++ b/worker/export_test.go @@ -34,8 +34,8 @@ import ( "testing" "time" - "github.com/golang/protobuf/proto" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/dgo/v240/protos/api" "github.com/dgraph-io/dgraph/v24/chunker" @@ -135,7 +135,7 @@ func populateGraphExport(t *testing.T) { func initTestExport(t *testing.T, schemaStr string) { require.NoError(t, schema.ParseBytes([]byte(schemaStr), 1)) - val, err := (&pb.SchemaUpdate{ValueType: pb.Posting_UID}).Marshal() + val, err := proto.Marshal(&pb.SchemaUpdate{ValueType: pb.Posting_UID}) require.NoError(t, err) txn := pstore.NewTransactionAt(math.MaxUint64, true) @@ -144,7 +144,7 @@ func initTestExport(t *testing.T, schemaStr string) { require.NoError(t, txn.CommitAt(1, nil)) require.NoError(t, err) - val, err = (&pb.SchemaUpdate{ValueType: pb.Posting_UID}).Marshal() + val, err = proto.Marshal(&pb.SchemaUpdate{ValueType: pb.Posting_UID}) require.NoError(t, err) txn = pstore.NewTransactionAt(math.MaxUint64, true) @@ -153,7 +153,7 @@ func initTestExport(t *testing.T, schemaStr string) { require.NoError(t, txn.Set(testutil.GalaxySchemaKey("age"), val)) require.NoError(t, txn.CommitAt(1, nil)) - val, err = personType.Marshal() + val, err = proto.Marshal(personType) require.NoError(t, err) txn = pstore.NewTransactionAt(math.MaxUint64, true) diff --git a/worker/groups.go b/worker/groups.go index d2c0b75263b..6c310021d01 100644 --- a/worker/groups.go +++ b/worker/groups.go @@ -26,8 +26,8 @@ import ( "time" "github.com/golang/glog" - "github.com/golang/protobuf/proto" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" badgerpb "github.com/dgraph-io/badger/v4/pb" "github.com/dgraph-io/dgo/v240/protos/api" @@ -205,7 +205,7 @@ func (g *groupi) applyInitialTypes() { continue } // It is okay to write initial types at ts=1. - if err := updateType(t.GetTypeName(), *t, 1); err != nil { + if err := updateType(t.GetTypeName(), t, 1); err != nil { glog.Errorf("Error while applying initial type: %s", err) } } diff --git a/worker/mutation.go b/worker/mutation.go index 53572525e5d..b70141fa7ff 100644 --- a/worker/mutation.go +++ b/worker/mutation.go @@ -29,6 +29,7 @@ import ( ostats "go.opencensus.io/stats" otrace "go.opencensus.io/trace" "google.golang.org/grpc/metadata" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" "github.com/dgraph-io/badger/v4/y" @@ -293,7 +294,7 @@ func updateSchema(s *pb.SchemaUpdate, ts uint64) error { schema.State().DeleteMutSchema(s.Predicate) txn := pstore.NewTransactionAt(ts, true) defer txn.Discard() - data, err := s.Marshal() + data, err := proto.Marshal(s) x.Check(err) e := &badger.Entry{ Key: x.SchemaKey(s.Predicate), @@ -337,18 +338,18 @@ func createSchema(attr string, typ types.TypeID, hint pb.Metadata_HintType, ts u } func runTypeMutation(ctx context.Context, update *pb.TypeUpdate, ts uint64) error { - current := *update - schema.State().SetType(update.TypeName, ¤t) - return updateType(update.TypeName, *update, ts) + current := proto.Clone(update).(*pb.TypeUpdate) + schema.State().SetType(update.TypeName, current) + return updateType(update.TypeName, update, ts) } // We commit schema to disk in blocking way, should be ok because this happens // only during schema mutations or we see a new predicate. -func updateType(typeName string, t pb.TypeUpdate, ts uint64) error { - schema.State().SetType(typeName, &t) +func updateType(typeName string, t *pb.TypeUpdate, ts uint64) error { + schema.State().SetType(typeName, t) txn := pstore.NewTransactionAt(ts, true) defer txn.Discard() - data, err := t.Marshal() + data, err := proto.Marshal(t) x.Check(err) e := &badger.Entry{ Key: x.TypeKey(typeName), diff --git a/worker/online_restore.go b/worker/online_restore.go index 78c07337844..c6e0712035d 100644 --- a/worker/online_restore.go +++ b/worker/online_restore.go @@ -24,10 +24,10 @@ import ( "sync" "github.com/golang/glog" - "github.com/golang/protobuf/proto" "github.com/pkg/errors" "github.com/spf13/pflag" "github.com/spf13/viper" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" "github.com/dgraph-io/badger/v4/options" @@ -106,8 +106,8 @@ func ProcessRestoreRequest(ctx context.Context, req *pb.RestoreRequest, wg *sync creds := x.MinioCredentials{ AccessKey: req.AccessKey, - SecretKey: req.SecretKey, - SessionToken: req.SessionToken, + SecretKey: pb.Sensitive(req.SecretKey), + SessionToken: pb.Sensitive(req.SessionToken), Anonymous: req.Anonymous, } if err := VerifyBackup(req, &creds, currentGroups); err != nil { @@ -240,7 +240,7 @@ func handleRestoreProposal(ctx context.Context, req *pb.RestoreRequest, pidx uin // Reset tablets and set correct tablets to match the restored backup. creds := &x.MinioCredentials{ AccessKey: req.AccessKey, - SecretKey: req.SecretKey, + SecretKey: pb.Sensitive(req.SecretKey), SessionToken: req.SessionToken, Anonymous: req.Anonymous, } diff --git a/worker/schema.go b/worker/schema.go index 94aa83c4132..1d413b9b111 100644 --- a/worker/schema.go +++ b/worker/schema.go @@ -19,9 +19,9 @@ package worker import ( "context" - "github.com/golang/protobuf/proto" "github.com/pkg/errors" otrace "go.opencensus.io/trace" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/dgraph/v24/conn" "github.com/dgraph-io/dgraph/v24/protos/pb" diff --git a/worker/snapshot.go b/worker/snapshot.go index 548fcc1d04b..591c97ba04a 100644 --- a/worker/snapshot.go +++ b/worker/snapshot.go @@ -46,7 +46,7 @@ type badgerWriter interface { } // populateSnapshot gets data for a shard from the leader and writes it to BadgerDB on the follower. -func (n *node) populateSnapshot(snap pb.Snapshot, pl *conn.Pool) error { +func (n *node) populateSnapshot(snap *pb.Snapshot, pl *conn.Pool) error { c := pb.NewWorkerClient(pl.Get()) // We should absolutely cancel the context when we return from this function, that way, the @@ -61,7 +61,7 @@ func (n *node) populateSnapshot(snap pb.Snapshot, pl *conn.Pool) error { return err } - if err := stream.Send(&snap); err != nil { + if err := stream.Send(snap); err != nil { return err } diff --git a/worker/task.go b/worker/task.go index 3b43c207ff7..8967b4319c5 100644 --- a/worker/task.go +++ b/worker/task.go @@ -26,12 +26,12 @@ import ( "time" "github.com/golang/glog" - "github.com/golang/protobuf/proto" cindex "github.com/google/codesearch/index" cregexp "github.com/google/codesearch/regexp" "github.com/pkg/errors" otrace "go.opencensus.io/trace" "golang.org/x/sync/errgroup" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" "github.com/dgraph-io/dgo/v240/protos/api" diff --git a/worker/trigram.go b/worker/trigram.go index 0cc0f8c2f22..7206aa9104d 100644 --- a/worker/trigram.go +++ b/worker/trigram.go @@ -20,6 +20,7 @@ import ( "errors" cindex "github.com/google/codesearch/index" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/dgraph/v24/algo" "github.com/dgraph-io/dgraph/v24/posting" @@ -39,7 +40,7 @@ func uidsForRegex(attr string, arg funcArgs, First: int(arg.q.First), AfterUid: arg.q.AfterUid, } - if intersect.Size() > 0 { + if proto.Size(intersect) > 0 { opts.Intersect = intersect } @@ -66,7 +67,7 @@ func uidsForRegex(attr string, arg funcArgs, algo.IntersectWith(results, trigramUids, results) } - if results.Size() == 0 { + if proto.Size(results) == 0 { return results, nil } } @@ -80,7 +81,7 @@ func uidsForRegex(attr string, arg funcArgs, if err != nil { return nil, err } - if results.Size() == 0 { + if proto.Size(results) == 0 { return results, nil } } diff --git a/x/x.go b/x/x.go index 9ef7e8997ce..a690d3b970b 100644 --- a/x/x.go +++ b/x/x.go @@ -56,6 +56,7 @@ import ( "google.golang.org/grpc/metadata" "google.golang.org/grpc/peer" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/badger/v4" bo "github.com/dgraph-io/badger/v4/options" @@ -1361,6 +1362,11 @@ func ToHex(i uint64, rdf bool) []byte { return out } +func MarshalToSizedBuffer(buf []byte, m proto.Message) ([]byte, error) { + buf = buf[:0] + return proto.MarshalOptions{}.MarshalAppend(buf, m) +} + // RootTemplate defines the help template for dgraph command. var RootTemplate string = `Dgraph is a horizontally scalable and distributed graph database, providing ACID transactions, consistent replication and linearizable reads.