From 1d59f01c9b3523f31d8415ecbd1096d0b51fbbc6 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Thu, 3 Nov 2016 12:05:59 -0400 Subject: [PATCH] GLOCKFILE: update dependencies Summary of not-definitely-irrelevant changes: - github.com/cenkalti/backoff: - moved from github.com/cenk/backoff: https://github.com/cenkalti/backoff/commit/b02f2bb - github.com/cockroachdb/c-protobuf: - updated upstream to 3.1.0: https://github.com/cockroachdb/c-protobuf/pull/20 - github.com/gogo/protobuf: - rename generated variables data->dAtA: https://github.com/gogo/protobuf/pull/215 - github.com/etcd/raft: - PreVote-related panic fix: https://github.com/coreos/etcd/pull/6749 - github.com/lib/pq: - data race fix: https://github.com/lib/pq/commit/473284b Not reviewed in detail: - github.com/go-sql-driver/mysql - github.com/google/go-github - golang.org/x/crypto - golang.org/x/net - golang.org/x/oauth2 - golang.org/x/sys - golang.org/x/text - golang.org/x/tools - google.golang.org/appengine Skipped: - github.com/cockroachdb/c-rocksdb (#9616) - github.com/docker/docker (https://github.com/docker/docker/pull/27912) breaks all dependents - google.golang.org/grpc (#9697) --- GLOCKFILE | 58 +- pkg/acceptance/cluster/docker.go | 18 +- pkg/acceptance/cluster/testconfig.pb.go | 156 +- pkg/build/info.pb.go | 126 +- pkg/cmd/glock-diff-parser/main.go | 9 +- pkg/config/config.pb.go | 238 +- pkg/gossip/gossip.pb.go | 380 +- pkg/roachpb/api.pb.go | 3294 ++++++++--------- pkg/roachpb/data.pb.go | 740 ++-- pkg/roachpb/errors.pb.go | 1008 ++--- pkg/roachpb/internal.pb.go | 178 +- pkg/roachpb/internal_raft.pb.go | 240 +- pkg/roachpb/metadata.pb.go | 494 +-- pkg/rpc/heartbeat.pb.go | 172 +- pkg/server/serverpb/admin.pb.go | 1336 +++---- pkg/server/serverpb/status.pb.go | 1044 +++--- pkg/server/status/status.pb.go | 216 +- pkg/sql/distsql/api.pb.go | 124 +- pkg/sql/distsql/data.pb.go | 476 +-- pkg/sql/distsql/processors.pb.go | 806 ++-- pkg/sql/sqlbase/backup.pb.go | 166 +- pkg/sql/sqlbase/privilege.pb.go | 110 +- pkg/sql/sqlbase/structured.pb.go | 986 ++--- pkg/storage/api.pb.go | 234 +- pkg/storage/engine/enginepb/mvcc.pb.go | 526 +-- pkg/storage/engine/enginepb/rocksdb.pb.go | 134 +- .../rocksdb/cockroach/pkg/roachpb/data.pb.cc | 1213 +++--- .../rocksdb/cockroach/pkg/roachpb/data.pb.h | 518 +-- .../cockroach/pkg/roachpb/internal.pb.cc | 216 +- .../cockroach/pkg/roachpb/internal.pb.h | 59 +- .../cockroach/pkg/roachpb/metadata.pb.cc | 904 +++-- .../cockroach/pkg/roachpb/metadata.pb.h | 320 +- .../pkg/storage/engine/enginepb/mvcc.pb.cc | 461 ++- .../pkg/storage/engine/enginepb/mvcc.pb.h | 117 +- .../pkg/storage/engine/enginepb/rocksdb.pb.cc | 208 +- .../pkg/storage/engine/enginepb/rocksdb.pb.h | 73 +- .../cockroach/pkg/util/hlc/timestamp.pb.cc | 106 +- .../cockroach/pkg/util/hlc/timestamp.pb.h | 31 +- .../cockroach/pkg/util/unresolved_addr.pb.cc | 116 +- .../cockroach/pkg/util/unresolved_addr.pb.h | 31 +- pkg/storage/liveness.pb.go | 88 +- pkg/storage/raft.pb.go | 496 +-- pkg/storage/storagebase/proposer_kv.pb.go | 232 +- pkg/storage/storagebase/state.pb.go | 196 +- pkg/ts/tspb/timeseries.pb.go | 310 +- pkg/util/hlc/timestamp.pb.go | 114 +- pkg/util/log/log.pb.go | 226 +- pkg/util/tracing/span_context_carrier.pb.go | 116 +- pkg/util/unresolved_addr.pb.go | 86 +- 49 files changed, 9540 insertions(+), 9966 deletions(-) diff --git a/GLOCKFILE b/GLOCKFILE index 6efc018e3515..f6b24f832064 100644 --- a/GLOCKFILE +++ b/GLOCKFILE @@ -25,19 +25,19 @@ cmd honnef.co/go/simple/cmd/gosimple cmd honnef.co/go/staticcheck/cmd/staticcheck cmd honnef.co/go/unused/cmd/unused github.com/Azure/go-ansiterm fa152c58bc15761d0200cb75fe958b89a9d4888e -github.com/Microsoft/go-winio ce2922f643c8fd76b46cadc7f404a06282678b34 -github.com/Sirupsen/logrus 3ec0642a7fb6488f65b06f9040adc67e3990296a +github.com/Microsoft/go-winio 562bb09f6612d9a4e91597184709d1cdba95af93 +github.com/Sirupsen/logrus d26492970760ca5d33129d2d799e34be5c4782eb github.com/StackExchange/wmi e54cbda6595d7293a7a468ccf9525f6bc8887f99 github.com/VividCortex/ewma c595cd886c223c6c28fc9ae2727a61b5e4693d85 github.com/abourget/teamcity 6dde447fa54bc5b08b1a7bb1b85e39089cf27fb1 github.com/agtorre/gocolorize f42b554bf7f006936130c9bb4f971afd2d87f671 github.com/backtrace-labs/go-bcd 389d108b62915963d915a02837f0ffc00b759d50 github.com/biogo/store 913427a1d5e89604e50ea1db0f28f34966d61602 -github.com/cenk/backoff 8edc80b07f38c27352fb186d971c628a6c32552b +github.com/cenk/backoff b02f2bbce11d7ea6b97f282ef1771b0fe2f65ef3 github.com/chzyer/readline 25c2772d5fd908077927228597b084a1f1a0e66d github.com/client9/misspell 9a1fc2456ac9e8c9b4cbe9d005b6e7adac0d357f github.com/cockroachdb/c-jemalloc 42e6a32cd7a4dff9c70d80323681d46d046181ef -github.com/cockroachdb/c-protobuf 951f3e665896e7ba939fd1f2db9aeaae6ca988f8 +github.com/cockroachdb/c-protobuf 070b64667a22925d971878b61e4f0c1df31e8599 github.com/cockroachdb/c-rocksdb b5ca031b93fde49bfa2ba99aba423136aebf3c06 github.com/cockroachdb/c-snappy d4e7b428fe7fc09e93573df3448567a62df8c9fa github.com/cockroachdb/cmux b64f5908f4945f4b11ed4a0a9d3cc1e23350866d @@ -46,28 +46,28 @@ github.com/cockroachdb/crlfmt f4be2332630e8f33c3262c0d5f0d13d733c8bedf github.com/cockroachdb/pq 44a6473ebbc26e3af09fe57bbdf761475c2c9f7c github.com/cockroachdb/stress 029c9348806514969d1109a6ae36e521af411ca7 github.com/codahale/hdrhistogram 3a0bb77429bd3a61596f5e8a3172445844342120 -github.com/coreos/etcd 99539ff031fd2e9c590401d5943a595d191552f1 +github.com/coreos/etcd 27459425faab1a28ac4d0063eebcea6e91c18339 github.com/cpuguy83/go-md2man a65d4d2de4d5f7c74868dfa9b202a3c8be315aaa -github.com/docker/distribution d0cdc4802b80609f3064f43e680d8968daa06f2e -github.com/docker/docker cd0e399e062b45bb0c5e11c7eb4de933b1ad0564 -github.com/docker/go-connections 988efe982fdecb46f01d53465878ff1f2ff411ce -github.com/docker/go-units f2145db703495b2e525c59662db69a7344b00bb8 +github.com/docker/distribution fbe6e8d212ed880cf7f7c9f876ba9b15c8221c5f +github.com/docker/docker 7248742ae7127347a52ab9d215451c213b7b59da +github.com/docker/go-connections f512407a188ecb16f31a33dbc9c4e4814afc1b03 +github.com/docker/go-units 8a7beacffa3009a9ac66bad506b18ffdd110cf97 github.com/dustin/go-humanize bd88f87ad3a420f7bcf05e90566fd1ceb351fa7f -github.com/elastic/gosigar 15322f7ed81bc3cfedb66b6716fd272ce042e9db +github.com/elastic/gosigar 77904081ae782b3d34334a142e1d98c4f9d88336 github.com/elazarl/go-bindata-assetfs 9a6736ed45b44bf3835afeebb3034b57ed329f3e github.com/facebookgo/clock 600d898af40aa09a7a93ecb9265d87b0504b6f03 github.com/ghemawat/stream 78e682abcae4f96ac7ddbe39912967a5f7cbbaa6 github.com/go-ole/go-ole 7dfdcf409020452e29b4babcbb22f984d2aa308a -github.com/go-sql-driver/mysql 0b58b37b664c21f3010e836f1b931e1d0b0b0685 -github.com/gogo/protobuf 50d1bd39ce4e7a96b75e3e040be9caf79dbb4c61 +github.com/go-sql-driver/mysql ce924a41eea897745442daaa1739089b0f3f561d +github.com/gogo/protobuf a9cd0c35b97daf74d0ebf3514c5254814b2703b4 github.com/golang/glog 23def4e6c14b4da8ac2ed8007337bc5eb5007998 github.com/golang/lint 3390df4df2787994aea98de825b964ac7944b817 -github.com/golang/protobuf 98fa357170587e470c5f27d3c3ea0947b71eb455 +github.com/golang/protobuf 2bc9827a78f95c6665b5fe0abd1fd66b496ae2d8 github.com/google/btree 925471ac9e2131377a91e1595defec898166fe49 -github.com/google/go-github 3e246d29992beb5a5d2fc253adebea86997c45b0 +github.com/google/go-github 54943985871d3b59053804af48b8347a3c232938 github.com/google/go-querystring 9235644dd9e52eeae6fa48efd539fdc351a0af53 github.com/gordonklaus/ineffassign 99762ed65232b1477364c8c53778f8b6503e868c -github.com/grpc-ecosystem/grpc-gateway 7ba755f85a3dc73224047317dab675b32d3a91e0 +github.com/grpc-ecosystem/grpc-gateway 325488925d6af252d18cc5ade7032127bc898ac7 github.com/inconshreveable/mousetrap 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75 github.com/jeffjen/datefmt 6688647cfa0439b86e09b097cac96ed328d5fa34 github.com/jteeuwen/go-bindata a0ff2567cfb70903282db057e799fd826784d41d @@ -77,41 +77,41 @@ github.com/kkaneda/returncheck bf081fa7155e3a27df1f056a49d50685edfa5b1b github.com/kr/pretty cfb55aafdaf3ec08f0db22699ab822c50091b1c4 github.com/kr/text 7cafcd837844e784b526369c9bce262804aebc60 github.com/leekchan/timeutil 28917288c48df3d2c1cfe468c273e0b2adda0aa5 -github.com/lib/pq ae8357db35d721c58dcdc911318b55bef6b1b001 +github.com/lib/pq d8eeeb8bae8896dd8e1b7e514ab0d396c4f12a1b github.com/lightstep/lightstep-tracer-go 91ae78ce073799b6a40e303d7dec6cc3a4257915 github.com/mattn/go-isatty 66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb8 github.com/mattn/go-runewidth 737072b4e32b7a5018b4a7125da8d12de90e8045 github.com/mattn/goveralls edf7508a2bcb40ec1160e94518c983c2fc169f02 github.com/matttproud/golang_protobuf_extensions c12348ce28de40eed0136aa2b644d0ee0650e56c github.com/mdempsky/unconvert beb68d938016d2dec1d1b078054f4d3db25f97be -github.com/mibk/dupl d8ac57fa998861b7aeaa149bba1cb7fceeace18f -github.com/montanaflynn/stats 60dcacf48f43d6dd654d0ed94120ff5806c5ca5c +github.com/mibk/dupl f008fcf5e62793d38bda510ee37aab8b0c68e76c +github.com/montanaflynn/stats f8cd06f93c6c1b06028caafb88b540fc820f77c1 github.com/olekukonko/tablewriter bdcc175572fd7abece6c831e643891b9331bc9e7 -github.com/opencontainers/runc 0259c00a35c3e02efa40068fc170be74da97661d +github.com/opencontainers/runc 5f24c9a61ad67f4d3c7a2847dc9bd4a1872795c6 github.com/opentracing/basictracer-go 1b32af207119a14b1b231d451df3ed04a72efebf github.com/opentracing/opentracing-go 902ca977fd85455c364050f985eba376b44315f0 github.com/pborman/uuid 3d4f2ba23642d3cfd06bd4b54cf03d99d95c0f1b github.com/petermattis/goid ba001f8780f3bf978180f390ad7b5bac39fbf70a -github.com/pkg/errors 839d9e913e063e28dfd0e6c7b7512793e0a48be9 +github.com/pkg/errors 248dadf4e9068a0b3e79f02ed0a610d935de5302 github.com/prometheus/client_model fa8ad6fec33561be4280a8f0514318c79d7f6cb6 github.com/prometheus/common 85637ea67b04b5c3bb25e671dacded2977f8f9f6 github.com/rcrowley/go-metrics ab2277b1c5d15c3cba104e9cbddbdfc622df5ad8 github.com/rubyist/circuitbreaker 7e3e7fbe9c62b943d487af023566a79d9eb22d3b github.com/sasha-s/go-deadlock 09aefc0ac06ad74d91ca31acdb11fc981c159149 github.com/satori/go.uuid b061729afc07e77a8aa4fad0a2fd840958f1942a -github.com/spf13/cobra 856b96dcb49d6427babe192998a35190a12c2230 -github.com/spf13/pflag bf8481a6aebc13a8aab52e699ffe2e79771f5a3f +github.com/spf13/cobra 6e91dded25d73176bf7f60b40dd7aa1f0bf9be8d +github.com/spf13/pflag 5ccb023bc27df288a957c5e994cd44fd19619465 github.com/tamird/glock f2bc8b6bb53a3fb0be0f81aff6bb0969bca74ce2 github.com/tebeka/go2xunit a25c391e91f022e9a57de0298ab54019d3aae3b9 github.com/termie/go-shutil bcacb06fecaeec8dc42af03c87c6949f4a05c74c github.com/wadey/gocovmerge b5bfa59ec0adc420475f97f89b58045c721d761c -golang.org/x/crypto 14f9af67c679edd414f72f13d67c917447113df2 -golang.org/x/net 8b4af36cd21a1f85a7484b49feb7c79363106d8e -golang.org/x/oauth2 3c3a985cb79f52a3190fbc056984415ca6763d01 -golang.org/x/sys 002cbb5f952456d0c50e0d2aff17ea5eca716979 -golang.org/x/text a3ead2188418b52a904ef73f19311038a07ffc3c -golang.org/x/tools 69f6f5b782e1f090edb33f68be67d96673a8059e -google.golang.org/appengine 926995697fa8241be2dc73eb318666e24f44ed51 +golang.org/x/crypto 9477e0b78b9ac3d0b03822fd95422e2fe07627cd +golang.org/x/net 569280fa63be4e201b975e5411e30a92178f0118 +golang.org/x/oauth2 36bc61733fc9aafc59f010d5e6bfefb63b007fd7 +golang.org/x/sys c200b10b5d5e122be351b67af224adc6128af5bf +golang.org/x/text a8b38433e35b65ba247bb267317037dee1b70cea +golang.org/x/tools c74ac01963d19af894026dbcfb7f421906a57d8f +google.golang.org/appengine 46239ca616842c00f41b8cbc6bbf2bd6ffbfcdad google.golang.org/grpc 79b7c349179cdd6efd8bac4a1ce7f01b98c16e9b gopkg.in/inf.v0 3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4 gopkg.in/yaml.v2 a5b47d31c556af34a302ce5d659e6fea44d90de0 diff --git a/pkg/acceptance/cluster/docker.go b/pkg/acceptance/cluster/docker.go index 482777fd8386..c4651ea12702 100644 --- a/pkg/acceptance/cluster/docker.go +++ b/pkg/acceptance/cluster/docker.go @@ -312,7 +312,7 @@ func (cli resilientDockerClient) ContainerCreate( hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string, -) (types.ContainerCreateResponse, error) { +) (container.ContainerCreateCreatedBody, error) { response, err := cli.APIClient.ContainerCreate(ctx, config, hostConfig, networkingConfig, containerName) if err != nil && strings.Contains(err.Error(), "already in use") { log.Infof(ctx, "unable to create container %s: %v", containerName, err) @@ -322,7 +322,7 @@ func (cli resilientDockerClient) ContainerCreate( }) if cerr != nil { log.Infof(ctx, "unable to list containers: %v", cerr) - return types.ContainerCreateResponse{}, err + return container.ContainerCreateCreatedBody{}, err } for _, c := range containers { for _, n := range c.Names { @@ -338,7 +338,7 @@ func (cli resilientDockerClient) ContainerCreate( } if rerr := cli.ContainerRemove(ctx, c.ID, options); rerr != nil { log.Infof(ctx, "unable to remove container: %v", rerr) - return types.ContainerCreateResponse{}, err + return container.ContainerCreateCreatedBody{}, err } return cli.ContainerCreate(ctx, config, hostConfig, networkingConfig, containerName) } @@ -413,8 +413,8 @@ func (cli retryingDockerClient) ContainerCreate( hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string, -) (types.ContainerCreateResponse, error) { - var ret types.ContainerCreateResponse +) (container.ContainerCreateCreatedBody, error) { + var ret container.ContainerCreateCreatedBody err := retry(ctx, cli.attempts, cli.timeout, "ContainerCreate", matchNone, func(timeoutCtx context.Context) error { @@ -452,8 +452,8 @@ func (cli retryingDockerClient) ContainerKill(ctx context.Context, container, si }) } -func (cli retryingDockerClient) ContainerWait(ctx context.Context, container string) (int, error) { - var ret int +func (cli retryingDockerClient) ContainerWait(ctx context.Context, container string) (int64, error) { + var ret int64 return ret, retry(ctx, cli.attempts, cli.timeout, "ContainerWait", matchNone, func(timeoutCtx context.Context) error { var err error @@ -465,8 +465,8 @@ func (cli retryingDockerClient) ContainerWait(ctx context.Context, container str func (cli retryingDockerClient) ImageList( ctx context.Context, options types.ImageListOptions, -) ([]types.Image, error) { - var ret []types.Image +) ([]types.ImageSummary, error) { + var ret []types.ImageSummary return ret, retry(ctx, cli.attempts, cli.timeout, "ImageList", matchNone, func(timeoutCtx context.Context) error { var err error diff --git a/pkg/acceptance/cluster/testconfig.pb.go b/pkg/acceptance/cluster/testconfig.pb.go index 93f3bbd215a5..699b7e44af67 100644 --- a/pkg/acceptance/cluster/testconfig.pb.go +++ b/pkg/acceptance/cluster/testconfig.pb.go @@ -74,54 +74,54 @@ func init() { proto.RegisterType((*NodeConfig)(nil), "cockroach.acceptance.cluster.NodeConfig") proto.RegisterType((*TestConfig)(nil), "cockroach.acceptance.cluster.TestConfig") } -func (m *StoreConfig) Marshal() (data []byte, err error) { +func (m *StoreConfig) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *StoreConfig) MarshalTo(data []byte) (int, error) { +func (m *StoreConfig) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintTestconfig(data, i, uint64(m.Count)) - data[i] = 0x10 + i = encodeVarintTestconfig(dAtA, i, uint64(m.Count)) + dAtA[i] = 0x10 i++ - i = encodeVarintTestconfig(data, i, uint64(m.MaxRanges)) + i = encodeVarintTestconfig(dAtA, i, uint64(m.MaxRanges)) return i, nil } -func (m *NodeConfig) Marshal() (data []byte, err error) { +func (m *NodeConfig) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *NodeConfig) MarshalTo(data []byte) (int, error) { +func (m *NodeConfig) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintTestconfig(data, i, uint64(m.Count)) + i = encodeVarintTestconfig(dAtA, i, uint64(m.Count)) if len(m.Stores) > 0 { for _, msg := range m.Stores { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintTestconfig(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintTestconfig(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -131,68 +131,68 @@ func (m *NodeConfig) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *TestConfig) Marshal() (data []byte, err error) { +func (m *TestConfig) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TestConfig) MarshalTo(data []byte) (int, error) { +func (m *TestConfig) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintTestconfig(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) + i = encodeVarintTestconfig(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) if len(m.Nodes) > 0 { for _, msg := range m.Nodes { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintTestconfig(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintTestconfig(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintTestconfig(data, i, uint64(m.Duration)) + i = encodeVarintTestconfig(dAtA, i, uint64(m.Duration)) return i, nil } -func encodeFixed64Testconfig(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Testconfig(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Testconfig(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Testconfig(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintTestconfig(data []byte, offset int, v uint64) int { +func encodeVarintTestconfig(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *StoreConfig) Size() (n int) { @@ -244,8 +244,8 @@ func sovTestconfig(x uint64) (n int) { func sozTestconfig(x uint64) (n int) { return sovTestconfig(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *StoreConfig) Unmarshal(data []byte) error { - l := len(data) +func (m *StoreConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -257,7 +257,7 @@ func (m *StoreConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -285,7 +285,7 @@ func (m *StoreConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Count |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -304,7 +304,7 @@ func (m *StoreConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.MaxRanges |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -313,7 +313,7 @@ func (m *StoreConfig) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipTestconfig(data[iNdEx:]) + skippy, err := skipTestconfig(dAtA[iNdEx:]) if err != nil { return err } @@ -332,8 +332,8 @@ func (m *StoreConfig) Unmarshal(data []byte) error { } return nil } -func (m *NodeConfig) Unmarshal(data []byte) error { - l := len(data) +func (m *NodeConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -345,7 +345,7 @@ func (m *NodeConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -373,7 +373,7 @@ func (m *NodeConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Count |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -392,7 +392,7 @@ func (m *NodeConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -407,13 +407,13 @@ func (m *NodeConfig) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Stores = append(m.Stores, StoreConfig{}) - if err := m.Stores[len(m.Stores)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Stores[len(m.Stores)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTestconfig(data[iNdEx:]) + skippy, err := skipTestconfig(dAtA[iNdEx:]) if err != nil { return err } @@ -432,8 +432,8 @@ func (m *NodeConfig) Unmarshal(data []byte) error { } return nil } -func (m *TestConfig) Unmarshal(data []byte) error { - l := len(data) +func (m *TestConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -445,7 +445,7 @@ func (m *TestConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -473,7 +473,7 @@ func (m *TestConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -488,7 +488,7 @@ func (m *TestConfig) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(data[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -502,7 +502,7 @@ func (m *TestConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -517,7 +517,7 @@ func (m *TestConfig) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Nodes = append(m.Nodes, NodeConfig{}) - if err := m.Nodes[len(m.Nodes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Nodes[len(m.Nodes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -533,7 +533,7 @@ func (m *TestConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Duration |= (time.Duration(b) & 0x7F) << shift if b < 0x80 { @@ -542,7 +542,7 @@ func (m *TestConfig) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipTestconfig(data[iNdEx:]) + skippy, err := skipTestconfig(dAtA[iNdEx:]) if err != nil { return err } @@ -561,8 +561,8 @@ func (m *TestConfig) Unmarshal(data []byte) error { } return nil } -func skipTestconfig(data []byte) (n int, err error) { - l := len(data) +func skipTestconfig(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -573,7 +573,7 @@ func skipTestconfig(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -591,7 +591,7 @@ func skipTestconfig(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -608,7 +608,7 @@ func skipTestconfig(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -631,7 +631,7 @@ func skipTestconfig(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -642,7 +642,7 @@ func skipTestconfig(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipTestconfig(data[start:]) + next, err := skipTestconfig(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/build/info.pb.go b/pkg/build/info.pb.go index a0ecd1fa15be..9d88deaf7139 100644 --- a/pkg/build/info.pb.go +++ b/pkg/build/info.pb.go @@ -48,73 +48,73 @@ func (*Info) Descriptor() ([]byte, []int) { return fileDescriptorInfo, []int{0} func init() { proto.RegisterType((*Info)(nil), "cockroach.build.Info") } -func (m *Info) Marshal() (data []byte, err error) { +func (m *Info) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Info) MarshalTo(data []byte) (int, error) { +func (m *Info) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintInfo(data, i, uint64(len(m.GoVersion))) - i += copy(data[i:], m.GoVersion) - data[i] = 0x12 + i = encodeVarintInfo(dAtA, i, uint64(len(m.GoVersion))) + i += copy(dAtA[i:], m.GoVersion) + dAtA[i] = 0x12 i++ - i = encodeVarintInfo(data, i, uint64(len(m.Tag))) - i += copy(data[i:], m.Tag) - data[i] = 0x1a + i = encodeVarintInfo(dAtA, i, uint64(len(m.Tag))) + i += copy(dAtA[i:], m.Tag) + dAtA[i] = 0x1a i++ - i = encodeVarintInfo(data, i, uint64(len(m.Time))) - i += copy(data[i:], m.Time) - data[i] = 0x22 + i = encodeVarintInfo(dAtA, i, uint64(len(m.Time))) + i += copy(dAtA[i:], m.Time) + dAtA[i] = 0x22 i++ - i = encodeVarintInfo(data, i, uint64(len(m.Dependencies))) - i += copy(data[i:], m.Dependencies) - data[i] = 0x2a + i = encodeVarintInfo(dAtA, i, uint64(len(m.Dependencies))) + i += copy(dAtA[i:], m.Dependencies) + dAtA[i] = 0x2a i++ - i = encodeVarintInfo(data, i, uint64(len(m.CgoCompiler))) - i += copy(data[i:], m.CgoCompiler) - data[i] = 0x32 + i = encodeVarintInfo(dAtA, i, uint64(len(m.CgoCompiler))) + i += copy(dAtA[i:], m.CgoCompiler) + dAtA[i] = 0x32 i++ - i = encodeVarintInfo(data, i, uint64(len(m.Platform))) - i += copy(data[i:], m.Platform) + i = encodeVarintInfo(dAtA, i, uint64(len(m.Platform))) + i += copy(dAtA[i:], m.Platform) return i, nil } -func encodeFixed64Info(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Info(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Info(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Info(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintInfo(data []byte, offset int, v uint64) int { +func encodeVarintInfo(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *Info) Size() (n int) { @@ -148,8 +148,8 @@ func sovInfo(x uint64) (n int) { func sozInfo(x uint64) (n int) { return sovInfo(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *Info) Unmarshal(data []byte) error { - l := len(data) +func (m *Info) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -161,7 +161,7 @@ func (m *Info) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -189,7 +189,7 @@ func (m *Info) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -204,7 +204,7 @@ func (m *Info) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.GoVersion = string(data[iNdEx:postIndex]) + m.GoVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -218,7 +218,7 @@ func (m *Info) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -233,7 +233,7 @@ func (m *Info) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Tag = string(data[iNdEx:postIndex]) + m.Tag = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -247,7 +247,7 @@ func (m *Info) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -262,7 +262,7 @@ func (m *Info) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Time = string(data[iNdEx:postIndex]) + m.Time = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { @@ -276,7 +276,7 @@ func (m *Info) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -291,7 +291,7 @@ func (m *Info) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Dependencies = string(data[iNdEx:postIndex]) + m.Dependencies = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { @@ -305,7 +305,7 @@ func (m *Info) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -320,7 +320,7 @@ func (m *Info) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CgoCompiler = string(data[iNdEx:postIndex]) + m.CgoCompiler = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { @@ -334,7 +334,7 @@ func (m *Info) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -349,11 +349,11 @@ func (m *Info) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Platform = string(data[iNdEx:postIndex]) + m.Platform = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipInfo(data[iNdEx:]) + skippy, err := skipInfo(dAtA[iNdEx:]) if err != nil { return err } @@ -372,8 +372,8 @@ func (m *Info) Unmarshal(data []byte) error { } return nil } -func skipInfo(data []byte) (n int, err error) { - l := len(data) +func skipInfo(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -384,7 +384,7 @@ func skipInfo(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -402,7 +402,7 @@ func skipInfo(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -419,7 +419,7 @@ func skipInfo(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -442,7 +442,7 @@ func skipInfo(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -453,7 +453,7 @@ func skipInfo(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipInfo(data[start:]) + next, err := skipInfo(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/cmd/glock-diff-parser/main.go b/pkg/cmd/glock-diff-parser/main.go index a02ddb7c19ad..cd7dfa23763b 100644 --- a/pkg/cmd/glock-diff-parser/main.go +++ b/pkg/cmd/glock-diff-parser/main.go @@ -82,10 +82,11 @@ func main() { fields := strings.Fields(line[1:]) pkgName := fields[0] for orig, replacement := range map[string]string{ - "golang.org/x": "github.com/golang", - "honnef.co/go/": "github.com/dominikh/go-", - "google.golang.org/grpc": "github.com/grpc/grpc-go", - "gopkg.in/inf.v0": "github.com/go-inf/inf", + "golang.org/x": "github.com/golang", + "google.golang.org/appengine": "github.com/golang/appengine", + "google.golang.org/grpc": "github.com/grpc/grpc-go", + "gopkg.in/inf.v0": "github.com/go-inf/inf", + "honnef.co/go/": "github.com/dominikh/go-", } { pkgName = strings.Replace(pkgName, orig, replacement, 1) } diff --git a/pkg/config/config.pb.go b/pkg/config/config.pb.go index 422f48249d2f..45dee484e1be 100644 --- a/pkg/config/config.pb.go +++ b/pkg/config/config.pb.go @@ -158,77 +158,77 @@ func init() { proto.RegisterType((*SystemConfig)(nil), "cockroach.config.SystemConfig") proto.RegisterEnum("cockroach.config.Constraint_Type", Constraint_Type_name, Constraint_Type_value) } -func (m *GCPolicy) Marshal() (data []byte, err error) { +func (m *GCPolicy) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *GCPolicy) MarshalTo(data []byte) (int, error) { +func (m *GCPolicy) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintConfig(data, i, uint64(m.TTLSeconds)) + i = encodeVarintConfig(dAtA, i, uint64(m.TTLSeconds)) return i, nil } -func (m *Constraint) Marshal() (data []byte, err error) { +func (m *Constraint) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Constraint) MarshalTo(data []byte) (int, error) { +func (m *Constraint) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintConfig(data, i, uint64(m.Type)) - data[i] = 0x12 + i = encodeVarintConfig(dAtA, i, uint64(m.Type)) + dAtA[i] = 0x12 i++ - i = encodeVarintConfig(data, i, uint64(len(m.Key))) - i += copy(data[i:], m.Key) - data[i] = 0x1a + i = encodeVarintConfig(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) + dAtA[i] = 0x1a i++ - i = encodeVarintConfig(data, i, uint64(len(m.Value))) - i += copy(data[i:], m.Value) + i = encodeVarintConfig(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) return i, nil } -func (m *Constraints) Marshal() (data []byte, err error) { +func (m *Constraints) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Constraints) MarshalTo(data []byte) (int, error) { +func (m *Constraints) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Constraints) > 0 { for _, msg := range m.Constraints { - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintConfig(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintConfig(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -238,54 +238,54 @@ func (m *Constraints) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ZoneConfig) Marshal() (data []byte, err error) { +func (m *ZoneConfig) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ZoneConfig) MarshalTo(data []byte) (int, error) { +func (m *ZoneConfig) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.ReplicaAttrs) > 0 { for _, msg := range m.ReplicaAttrs { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintConfig(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintConfig(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintConfig(data, i, uint64(m.RangeMinBytes)) - data[i] = 0x18 + i = encodeVarintConfig(dAtA, i, uint64(m.RangeMinBytes)) + dAtA[i] = 0x18 i++ - i = encodeVarintConfig(data, i, uint64(m.RangeMaxBytes)) - data[i] = 0x22 + i = encodeVarintConfig(dAtA, i, uint64(m.RangeMaxBytes)) + dAtA[i] = 0x22 i++ - i = encodeVarintConfig(data, i, uint64(m.GC.Size())) - n1, err := m.GC.MarshalTo(data[i:]) + i = encodeVarintConfig(dAtA, i, uint64(m.GC.Size())) + n1, err := m.GC.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 - data[i] = 0x28 + dAtA[i] = 0x28 i++ - i = encodeVarintConfig(data, i, uint64(m.NumReplicas)) - data[i] = 0x32 + i = encodeVarintConfig(dAtA, i, uint64(m.NumReplicas)) + dAtA[i] = 0x32 i++ - i = encodeVarintConfig(data, i, uint64(m.Constraints.Size())) - n2, err := m.Constraints.MarshalTo(data[i:]) + i = encodeVarintConfig(dAtA, i, uint64(m.Constraints.Size())) + n2, err := m.Constraints.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -293,27 +293,27 @@ func (m *ZoneConfig) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *SystemConfig) Marshal() (data []byte, err error) { +func (m *SystemConfig) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SystemConfig) MarshalTo(data []byte) (int, error) { +func (m *SystemConfig) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Values) > 0 { for _, msg := range m.Values { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintConfig(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintConfig(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -323,31 +323,31 @@ func (m *SystemConfig) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64Config(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Config(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Config(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Config(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintConfig(data []byte, offset int, v uint64) int { +func encodeVarintConfig(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *GCPolicy) Size() (n int) { @@ -424,8 +424,8 @@ func sovConfig(x uint64) (n int) { func sozConfig(x uint64) (n int) { return sovConfig(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *GCPolicy) Unmarshal(data []byte) error { - l := len(data) +func (m *GCPolicy) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -437,7 +437,7 @@ func (m *GCPolicy) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -465,7 +465,7 @@ func (m *GCPolicy) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.TTLSeconds |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -474,7 +474,7 @@ func (m *GCPolicy) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipConfig(data[iNdEx:]) + skippy, err := skipConfig(dAtA[iNdEx:]) if err != nil { return err } @@ -493,8 +493,8 @@ func (m *GCPolicy) Unmarshal(data []byte) error { } return nil } -func (m *Constraint) Unmarshal(data []byte) error { - l := len(data) +func (m *Constraint) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -506,7 +506,7 @@ func (m *Constraint) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -534,7 +534,7 @@ func (m *Constraint) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Type |= (Constraint_Type(b) & 0x7F) << shift if b < 0x80 { @@ -553,7 +553,7 @@ func (m *Constraint) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -568,7 +568,7 @@ func (m *Constraint) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Key = string(data[iNdEx:postIndex]) + m.Key = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -582,7 +582,7 @@ func (m *Constraint) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -597,11 +597,11 @@ func (m *Constraint) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Value = string(data[iNdEx:postIndex]) + m.Value = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipConfig(data[iNdEx:]) + skippy, err := skipConfig(dAtA[iNdEx:]) if err != nil { return err } @@ -620,8 +620,8 @@ func (m *Constraint) Unmarshal(data []byte) error { } return nil } -func (m *Constraints) Unmarshal(data []byte) error { - l := len(data) +func (m *Constraints) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -633,7 +633,7 @@ func (m *Constraints) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -661,7 +661,7 @@ func (m *Constraints) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -676,13 +676,13 @@ func (m *Constraints) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Constraints = append(m.Constraints, Constraint{}) - if err := m.Constraints[len(m.Constraints)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Constraints[len(m.Constraints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipConfig(data[iNdEx:]) + skippy, err := skipConfig(dAtA[iNdEx:]) if err != nil { return err } @@ -701,8 +701,8 @@ func (m *Constraints) Unmarshal(data []byte) error { } return nil } -func (m *ZoneConfig) Unmarshal(data []byte) error { - l := len(data) +func (m *ZoneConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -714,7 +714,7 @@ func (m *ZoneConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -742,7 +742,7 @@ func (m *ZoneConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -757,7 +757,7 @@ func (m *ZoneConfig) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.ReplicaAttrs = append(m.ReplicaAttrs, cockroach_roachpb.Attributes{}) - if err := m.ReplicaAttrs[len(m.ReplicaAttrs)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ReplicaAttrs[len(m.ReplicaAttrs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -773,7 +773,7 @@ func (m *ZoneConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeMinBytes |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -792,7 +792,7 @@ func (m *ZoneConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeMaxBytes |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -811,7 +811,7 @@ func (m *ZoneConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -825,7 +825,7 @@ func (m *ZoneConfig) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.GC.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.GC.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -841,7 +841,7 @@ func (m *ZoneConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NumReplicas |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -860,7 +860,7 @@ func (m *ZoneConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -874,13 +874,13 @@ func (m *ZoneConfig) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Constraints.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Constraints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipConfig(data[iNdEx:]) + skippy, err := skipConfig(dAtA[iNdEx:]) if err != nil { return err } @@ -899,8 +899,8 @@ func (m *ZoneConfig) Unmarshal(data []byte) error { } return nil } -func (m *SystemConfig) Unmarshal(data []byte) error { - l := len(data) +func (m *SystemConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -912,7 +912,7 @@ func (m *SystemConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -940,7 +940,7 @@ func (m *SystemConfig) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -955,13 +955,13 @@ func (m *SystemConfig) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Values = append(m.Values, cockroach_roachpb1.KeyValue{}) - if err := m.Values[len(m.Values)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Values[len(m.Values)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipConfig(data[iNdEx:]) + skippy, err := skipConfig(dAtA[iNdEx:]) if err != nil { return err } @@ -980,8 +980,8 @@ func (m *SystemConfig) Unmarshal(data []byte) error { } return nil } -func skipConfig(data []byte) (n int, err error) { - l := len(data) +func skipConfig(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -992,7 +992,7 @@ func skipConfig(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1010,7 +1010,7 @@ func skipConfig(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -1027,7 +1027,7 @@ func skipConfig(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1050,7 +1050,7 @@ func skipConfig(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1061,7 +1061,7 @@ func skipConfig(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipConfig(data[start:]) + next, err := skipConfig(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/gossip/gossip.pb.go b/pkg/gossip/gossip.pb.go index 79ffec1a414f..eb40f5c97088 100644 --- a/pkg/gossip/gossip.pb.go +++ b/pkg/gossip/gossip.pb.go @@ -246,37 +246,37 @@ var _Gossip_serviceDesc = grpc.ServiceDesc{ Metadata: fileDescriptorGossip, } -func (m *BootstrapInfo) Marshal() (data []byte, err error) { +func (m *BootstrapInfo) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *BootstrapInfo) MarshalTo(data []byte) (int, error) { +func (m *BootstrapInfo) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Addresses) > 0 { for _, msg := range m.Addresses { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintGossip(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintGossip(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintGossip(data, i, uint64(m.Timestamp.Size())) - n1, err := m.Timestamp.MarshalTo(data[i:]) + i = encodeVarintGossip(dAtA, i, uint64(m.Timestamp.Size())) + n1, err := m.Timestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -284,30 +284,30 @@ func (m *BootstrapInfo) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *Request) Marshal() (data []byte, err error) { +func (m *Request) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Request) MarshalTo(data []byte) (int, error) { +func (m *Request) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.NodeID != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintGossip(data, i, uint64(m.NodeID)) + i = encodeVarintGossip(dAtA, i, uint64(m.NodeID)) } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintGossip(data, i, uint64(m.Addr.Size())) - n2, err := m.Addr.MarshalTo(data[i:]) + i = encodeVarintGossip(dAtA, i, uint64(m.Addr.Size())) + n2, err := m.Addr.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -319,17 +319,17 @@ func (m *Request) MarshalTo(data []byte) (int, error) { } github_com_gogo_protobuf_sortkeys.Int32s(keysForHighWaterStamps) for _, k := range keysForHighWaterStamps { - data[i] = 0x1a + dAtA[i] = 0x1a i++ v := m.HighWaterStamps[github_com_cockroachdb_cockroach_pkg_roachpb.NodeID(k)] mapSize := 1 + sovGossip(uint64(k)) + 1 + sovGossip(uint64(v)) - i = encodeVarintGossip(data, i, uint64(mapSize)) - data[i] = 0x8 + i = encodeVarintGossip(dAtA, i, uint64(mapSize)) + dAtA[i] = 0x8 i++ - i = encodeVarintGossip(data, i, uint64(k)) - data[i] = 0x10 + i = encodeVarintGossip(dAtA, i, uint64(k)) + dAtA[i] = 0x10 i++ - i = encodeVarintGossip(data, i, uint64(v)) + i = encodeVarintGossip(dAtA, i, uint64(v)) } } if len(m.Delta) > 0 { @@ -339,7 +339,7 @@ func (m *Request) MarshalTo(data []byte) (int, error) { } github_com_gogo_protobuf_sortkeys.Strings(keysForDelta) for _, k := range keysForDelta { - data[i] = 0x22 + dAtA[i] = 0x22 i++ v := m.Delta[string(k)] msgSize := 0 @@ -348,16 +348,16 @@ func (m *Request) MarshalTo(data []byte) (int, error) { msgSize += 1 + sovGossip(uint64(msgSize)) } mapSize := 1 + len(k) + sovGossip(uint64(len(k))) + msgSize - i = encodeVarintGossip(data, i, uint64(mapSize)) - data[i] = 0xa + i = encodeVarintGossip(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa i++ - i = encodeVarintGossip(data, i, uint64(len(k))) - i += copy(data[i:], k) + i = encodeVarintGossip(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) if v != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintGossip(data, i, uint64(v.Size())) - n3, err := v.MarshalTo(data[i:]) + i = encodeVarintGossip(dAtA, i, uint64(v.Size())) + n3, err := v.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -368,48 +368,48 @@ func (m *Request) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *Response) Marshal() (data []byte, err error) { +func (m *Response) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Response) MarshalTo(data []byte) (int, error) { +func (m *Response) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.NodeID != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintGossip(data, i, uint64(m.NodeID)) + i = encodeVarintGossip(dAtA, i, uint64(m.NodeID)) } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintGossip(data, i, uint64(m.Addr.Size())) - n4, err := m.Addr.MarshalTo(data[i:]) + i = encodeVarintGossip(dAtA, i, uint64(m.Addr.Size())) + n4, err := m.Addr.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n4 if m.AlternateAddr != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintGossip(data, i, uint64(m.AlternateAddr.Size())) - n5, err := m.AlternateAddr.MarshalTo(data[i:]) + i = encodeVarintGossip(dAtA, i, uint64(m.AlternateAddr.Size())) + n5, err := m.AlternateAddr.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n5 } if m.AlternateNodeID != 0 { - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintGossip(data, i, uint64(m.AlternateNodeID)) + i = encodeVarintGossip(dAtA, i, uint64(m.AlternateNodeID)) } if len(m.Delta) > 0 { keysForDelta := make([]string, 0, len(m.Delta)) @@ -418,7 +418,7 @@ func (m *Response) MarshalTo(data []byte) (int, error) { } github_com_gogo_protobuf_sortkeys.Strings(keysForDelta) for _, k := range keysForDelta { - data[i] = 0x2a + dAtA[i] = 0x2a i++ v := m.Delta[string(k)] msgSize := 0 @@ -427,16 +427,16 @@ func (m *Response) MarshalTo(data []byte) (int, error) { msgSize += 1 + sovGossip(uint64(msgSize)) } mapSize := 1 + len(k) + sovGossip(uint64(len(k))) + msgSize - i = encodeVarintGossip(data, i, uint64(mapSize)) - data[i] = 0xa + i = encodeVarintGossip(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa i++ - i = encodeVarintGossip(data, i, uint64(len(k))) - i += copy(data[i:], k) + i = encodeVarintGossip(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) if v != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintGossip(data, i, uint64(v.Size())) - n6, err := v.MarshalTo(data[i:]) + i = encodeVarintGossip(dAtA, i, uint64(v.Size())) + n6, err := v.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -451,33 +451,33 @@ func (m *Response) MarshalTo(data []byte) (int, error) { } github_com_gogo_protobuf_sortkeys.Int32s(keysForHighWaterStamps) for _, k := range keysForHighWaterStamps { - data[i] = 0x32 + dAtA[i] = 0x32 i++ v := m.HighWaterStamps[github_com_cockroachdb_cockroach_pkg_roachpb.NodeID(k)] mapSize := 1 + sovGossip(uint64(k)) + 1 + sovGossip(uint64(v)) - i = encodeVarintGossip(data, i, uint64(mapSize)) - data[i] = 0x8 + i = encodeVarintGossip(dAtA, i, uint64(mapSize)) + dAtA[i] = 0x8 i++ - i = encodeVarintGossip(data, i, uint64(k)) - data[i] = 0x10 + i = encodeVarintGossip(dAtA, i, uint64(k)) + dAtA[i] = 0x10 i++ - i = encodeVarintGossip(data, i, uint64(v)) + i = encodeVarintGossip(dAtA, i, uint64(v)) } } return i, nil } -func (m *InfoStatus) Marshal() (data []byte, err error) { +func (m *InfoStatus) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *InfoStatus) MarshalTo(data []byte) (int, error) { +func (m *InfoStatus) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -489,7 +489,7 @@ func (m *InfoStatus) MarshalTo(data []byte) (int, error) { } github_com_gogo_protobuf_sortkeys.Strings(keysForInfos) for _, k := range keysForInfos { - data[i] = 0xa + dAtA[i] = 0xa i++ v := m.Infos[string(k)] msgSize := 0 @@ -498,15 +498,15 @@ func (m *InfoStatus) MarshalTo(data []byte) (int, error) { msgSize += 1 + sovGossip(uint64(msgSize)) } mapSize := 1 + len(k) + sovGossip(uint64(len(k))) + msgSize - i = encodeVarintGossip(data, i, uint64(mapSize)) - data[i] = 0xa + i = encodeVarintGossip(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa i++ - i = encodeVarintGossip(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x12 + i = encodeVarintGossip(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x12 i++ - i = encodeVarintGossip(data, i, uint64((&v).Size())) - n7, err := (&v).MarshalTo(data[i:]) + i = encodeVarintGossip(dAtA, i, uint64((&v).Size())) + n7, err := (&v).MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -516,82 +516,82 @@ func (m *InfoStatus) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *Info) Marshal() (data []byte, err error) { +func (m *Info) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Info) MarshalTo(data []byte) (int, error) { +func (m *Info) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintGossip(data, i, uint64(m.Value.Size())) - n8, err := m.Value.MarshalTo(data[i:]) + i = encodeVarintGossip(dAtA, i, uint64(m.Value.Size())) + n8, err := m.Value.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n8 if m.OrigStamp != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintGossip(data, i, uint64(m.OrigStamp)) + i = encodeVarintGossip(dAtA, i, uint64(m.OrigStamp)) } if m.TTLStamp != 0 { - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintGossip(data, i, uint64(m.TTLStamp)) + i = encodeVarintGossip(dAtA, i, uint64(m.TTLStamp)) } if m.Hops != 0 { - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintGossip(data, i, uint64(m.Hops)) + i = encodeVarintGossip(dAtA, i, uint64(m.Hops)) } if m.NodeID != 0 { - data[i] = 0x28 + dAtA[i] = 0x28 i++ - i = encodeVarintGossip(data, i, uint64(m.NodeID)) + i = encodeVarintGossip(dAtA, i, uint64(m.NodeID)) } if m.PeerID != 0 { - data[i] = 0x30 + dAtA[i] = 0x30 i++ - i = encodeVarintGossip(data, i, uint64(m.PeerID)) + i = encodeVarintGossip(dAtA, i, uint64(m.PeerID)) } return i, nil } -func encodeFixed64Gossip(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Gossip(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Gossip(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Gossip(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintGossip(data []byte, offset int, v uint64) int { +func encodeVarintGossip(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *BootstrapInfo) Size() (n int) { @@ -730,8 +730,8 @@ func sovGossip(x uint64) (n int) { func sozGossip(x uint64) (n int) { return sovGossip(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *BootstrapInfo) Unmarshal(data []byte) error { - l := len(data) +func (m *BootstrapInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -743,7 +743,7 @@ func (m *BootstrapInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -771,7 +771,7 @@ func (m *BootstrapInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -786,7 +786,7 @@ func (m *BootstrapInfo) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Addresses = append(m.Addresses, cockroach_util.UnresolvedAddr{}) - if err := m.Addresses[len(m.Addresses)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Addresses[len(m.Addresses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -802,7 +802,7 @@ func (m *BootstrapInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -816,13 +816,13 @@ func (m *BootstrapInfo) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Timestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipGossip(data[iNdEx:]) + skippy, err := skipGossip(dAtA[iNdEx:]) if err != nil { return err } @@ -841,8 +841,8 @@ func (m *BootstrapInfo) Unmarshal(data []byte) error { } return nil } -func (m *Request) Unmarshal(data []byte) error { - l := len(data) +func (m *Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -854,7 +854,7 @@ func (m *Request) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -882,7 +882,7 @@ func (m *Request) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NodeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.NodeID(b) & 0x7F) << shift if b < 0x80 { @@ -901,7 +901,7 @@ func (m *Request) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -915,7 +915,7 @@ func (m *Request) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Addr.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Addr.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -931,7 +931,7 @@ func (m *Request) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -953,7 +953,7 @@ func (m *Request) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ keykey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -968,7 +968,7 @@ func (m *Request) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapkey |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -987,7 +987,7 @@ func (m *Request) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ valuekey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1002,7 +1002,7 @@ func (m *Request) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapvalue |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -1027,7 +1027,7 @@ func (m *Request) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1049,7 +1049,7 @@ func (m *Request) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ keykey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1064,7 +1064,7 @@ func (m *Request) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1079,7 +1079,7 @@ func (m *Request) Unmarshal(data []byte) error { if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } - mapkey := string(data[iNdEx:postStringIndexmapkey]) + mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey if m.Delta == nil { m.Delta = make(map[string]*Info) @@ -1093,7 +1093,7 @@ func (m *Request) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ valuekey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1108,7 +1108,7 @@ func (m *Request) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapmsglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1126,7 +1126,7 @@ func (m *Request) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } mapvalue := &Info{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } iNdEx = postmsgIndex @@ -1138,7 +1138,7 @@ func (m *Request) Unmarshal(data []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipGossip(data[iNdEx:]) + skippy, err := skipGossip(dAtA[iNdEx:]) if err != nil { return err } @@ -1157,8 +1157,8 @@ func (m *Request) Unmarshal(data []byte) error { } return nil } -func (m *Response) Unmarshal(data []byte) error { - l := len(data) +func (m *Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1170,7 +1170,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1198,7 +1198,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NodeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.NodeID(b) & 0x7F) << shift if b < 0x80 { @@ -1217,7 +1217,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1231,7 +1231,7 @@ func (m *Response) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Addr.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Addr.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1247,7 +1247,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1264,7 +1264,7 @@ func (m *Response) Unmarshal(data []byte) error { if m.AlternateAddr == nil { m.AlternateAddr = &cockroach_util.UnresolvedAddr{} } - if err := m.AlternateAddr.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.AlternateAddr.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1280,7 +1280,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.AlternateNodeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.NodeID(b) & 0x7F) << shift if b < 0x80 { @@ -1299,7 +1299,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1321,7 +1321,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ keykey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1336,7 +1336,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1351,7 +1351,7 @@ func (m *Response) Unmarshal(data []byte) error { if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } - mapkey := string(data[iNdEx:postStringIndexmapkey]) + mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey if m.Delta == nil { m.Delta = make(map[string]*Info) @@ -1365,7 +1365,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ valuekey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1380,7 +1380,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapmsglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1398,7 +1398,7 @@ func (m *Response) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } mapvalue := &Info{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } iNdEx = postmsgIndex @@ -1420,7 +1420,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1442,7 +1442,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ keykey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1457,7 +1457,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapkey |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -1476,7 +1476,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ valuekey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1491,7 +1491,7 @@ func (m *Response) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapvalue |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -1506,7 +1506,7 @@ func (m *Response) Unmarshal(data []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipGossip(data[iNdEx:]) + skippy, err := skipGossip(dAtA[iNdEx:]) if err != nil { return err } @@ -1525,8 +1525,8 @@ func (m *Response) Unmarshal(data []byte) error { } return nil } -func (m *InfoStatus) Unmarshal(data []byte) error { - l := len(data) +func (m *InfoStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1538,7 +1538,7 @@ func (m *InfoStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1566,7 +1566,7 @@ func (m *InfoStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1588,7 +1588,7 @@ func (m *InfoStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ keykey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1603,7 +1603,7 @@ func (m *InfoStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1618,7 +1618,7 @@ func (m *InfoStatus) Unmarshal(data []byte) error { if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } - mapkey := string(data[iNdEx:postStringIndexmapkey]) + mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey if m.Infos == nil { m.Infos = make(map[string]Info) @@ -1632,7 +1632,7 @@ func (m *InfoStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ valuekey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1647,7 +1647,7 @@ func (m *InfoStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapmsglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1665,7 +1665,7 @@ func (m *InfoStatus) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } mapvalue := &Info{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } iNdEx = postmsgIndex @@ -1677,7 +1677,7 @@ func (m *InfoStatus) Unmarshal(data []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipGossip(data[iNdEx:]) + skippy, err := skipGossip(dAtA[iNdEx:]) if err != nil { return err } @@ -1696,8 +1696,8 @@ func (m *InfoStatus) Unmarshal(data []byte) error { } return nil } -func (m *Info) Unmarshal(data []byte) error { - l := len(data) +func (m *Info) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1709,7 +1709,7 @@ func (m *Info) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1737,7 +1737,7 @@ func (m *Info) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1751,7 +1751,7 @@ func (m *Info) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Value.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1767,7 +1767,7 @@ func (m *Info) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.OrigStamp |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -1786,7 +1786,7 @@ func (m *Info) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.TTLStamp |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -1805,7 +1805,7 @@ func (m *Info) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Hops |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -1824,7 +1824,7 @@ func (m *Info) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NodeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.NodeID(b) & 0x7F) << shift if b < 0x80 { @@ -1843,7 +1843,7 @@ func (m *Info) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.PeerID |= (github_com_cockroachdb_cockroach_pkg_roachpb.NodeID(b) & 0x7F) << shift if b < 0x80 { @@ -1852,7 +1852,7 @@ func (m *Info) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipGossip(data[iNdEx:]) + skippy, err := skipGossip(dAtA[iNdEx:]) if err != nil { return err } @@ -1871,8 +1871,8 @@ func (m *Info) Unmarshal(data []byte) error { } return nil } -func skipGossip(data []byte) (n int, err error) { - l := len(data) +func skipGossip(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -1883,7 +1883,7 @@ func skipGossip(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1901,7 +1901,7 @@ func skipGossip(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -1918,7 +1918,7 @@ func skipGossip(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1941,7 +1941,7 @@ func skipGossip(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1952,7 +1952,7 @@ func skipGossip(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipGossip(data[start:]) + next, err := skipGossip(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/roachpb/api.pb.go b/pkg/roachpb/api.pb.go index 3fe6e5e06663..f0badf8f0e76 100644 --- a/pkg/roachpb/api.pb.go +++ b/pkg/roachpb/api.pb.go @@ -1380,7 +1380,7 @@ type BatchResponse_Header struct { // timestamp is set only for non-transactional responses and denotes the // highest timestamp at which a command from the batch executed. At the // time of writing, it is used solely for informational purposes and tests. - Timestamp cockroach_util_hlc.Timestamp `protobuf:"bytes,2,opt,name=Timestamp,json=timestamp" json:"Timestamp"` + Timestamp cockroach_util_hlc.Timestamp `protobuf:"bytes,2,opt,name=Timestamp" json:"Timestamp"` // txn is non-nil if the request specified a non-nil // transaction. The transaction timestamp and/or priority may have // been updated, depending on the outcome of the request. @@ -1607,33 +1607,33 @@ var _External_serviceDesc = grpc.ServiceDesc{ Metadata: fileDescriptorApi, } -func (m *RangeInfo) Marshal() (data []byte, err error) { +func (m *RangeInfo) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RangeInfo) MarshalTo(data []byte) (int, error) { +func (m *RangeInfo) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Desc.Size())) - n1, err := m.Desc.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Desc.Size())) + n1, err := m.Desc.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Lease.Size())) - n2, err := m.Lease.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Lease.Size())) + n2, err := m.Lease.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1641,50 +1641,50 @@ func (m *RangeInfo) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ResponseHeader) Marshal() (data []byte, err error) { +func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ResponseHeader) MarshalTo(data []byte) (int, error) { +func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Txn != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintApi(data, i, uint64(m.Txn.Size())) - n3, err := m.Txn.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Txn.Size())) + n3, err := m.Txn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 } if m.ResumeSpan != nil { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintApi(data, i, uint64(m.ResumeSpan.Size())) - n4, err := m.ResumeSpan.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResumeSpan.Size())) + n4, err := m.ResumeSpan.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n4 } - data[i] = 0x28 + dAtA[i] = 0x28 i++ - i = encodeVarintApi(data, i, uint64(m.NumKeys)) + i = encodeVarintApi(dAtA, i, uint64(m.NumKeys)) if len(m.RangeInfos) > 0 { for _, msg := range m.RangeInfos { - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintApi(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1694,25 +1694,25 @@ func (m *ResponseHeader) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *GetRequest) Marshal() (data []byte, err error) { +func (m *GetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *GetRequest) MarshalTo(data []byte) (int, error) { +func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n5, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n5, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1720,34 +1720,34 @@ func (m *GetRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *GetResponse) Marshal() (data []byte, err error) { +func (m *GetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *GetResponse) MarshalTo(data []byte) (int, error) { +func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n6, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n6, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n6 if m.Value != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Value.Size())) - n7, err := m.Value.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Value.Size())) + n7, err := m.Value.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1756,75 +1756,75 @@ func (m *GetResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *PutRequest) Marshal() (data []byte, err error) { +func (m *PutRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *PutRequest) MarshalTo(data []byte) (int, error) { +func (m *PutRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n8, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n8, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n8 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Value.Size())) - n9, err := m.Value.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Value.Size())) + n9, err := m.Value.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n9 - data[i] = 0x18 + dAtA[i] = 0x18 i++ if m.Inline { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ - data[i] = 0x20 + dAtA[i] = 0x20 i++ if m.Blind { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *PutResponse) Marshal() (data []byte, err error) { +func (m *PutResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *PutResponse) MarshalTo(data []byte) (int, error) { +func (m *PutResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n10, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n10, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1832,77 +1832,77 @@ func (m *PutResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ConditionalPutRequest) Marshal() (data []byte, err error) { +func (m *ConditionalPutRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ConditionalPutRequest) MarshalTo(data []byte) (int, error) { +func (m *ConditionalPutRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n11, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n11, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n11 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Value.Size())) - n12, err := m.Value.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Value.Size())) + n12, err := m.Value.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n12 if m.ExpValue != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintApi(data, i, uint64(m.ExpValue.Size())) - n13, err := m.ExpValue.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ExpValue.Size())) + n13, err := m.ExpValue.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n13 } - data[i] = 0x20 + dAtA[i] = 0x20 i++ if m.Blind { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *ConditionalPutResponse) Marshal() (data []byte, err error) { +func (m *ConditionalPutResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ConditionalPutResponse) MarshalTo(data []byte) (int, error) { +func (m *ConditionalPutResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n14, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n14, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1910,33 +1910,33 @@ func (m *ConditionalPutResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *InitPutRequest) Marshal() (data []byte, err error) { +func (m *InitPutRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *InitPutRequest) MarshalTo(data []byte) (int, error) { +func (m *InitPutRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n15, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n15, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n15 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Value.Size())) - n16, err := m.Value.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Value.Size())) + n16, err := m.Value.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1944,25 +1944,25 @@ func (m *InitPutRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *InitPutResponse) Marshal() (data []byte, err error) { +func (m *InitPutResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *InitPutResponse) MarshalTo(data []byte) (int, error) { +func (m *InitPutResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n17, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n17, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1970,83 +1970,83 @@ func (m *InitPutResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *IncrementRequest) Marshal() (data []byte, err error) { +func (m *IncrementRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *IncrementRequest) MarshalTo(data []byte) (int, error) { +func (m *IncrementRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n18, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n18, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n18 - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintApi(data, i, uint64(m.Increment)) + i = encodeVarintApi(dAtA, i, uint64(m.Increment)) return i, nil } -func (m *IncrementResponse) Marshal() (data []byte, err error) { +func (m *IncrementResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *IncrementResponse) MarshalTo(data []byte) (int, error) { +func (m *IncrementResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n19, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n19, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n19 - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintApi(data, i, uint64(m.NewValue)) + i = encodeVarintApi(dAtA, i, uint64(m.NewValue)) return i, nil } -func (m *DeleteRequest) Marshal() (data []byte, err error) { +func (m *DeleteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DeleteRequest) MarshalTo(data []byte) (int, error) { +func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n20, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n20, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2054,25 +2054,25 @@ func (m *DeleteRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *DeleteResponse) Marshal() (data []byte, err error) { +func (m *DeleteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DeleteResponse) MarshalTo(data []byte) (int, error) { +func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n21, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n21, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2080,101 +2080,101 @@ func (m *DeleteResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *DeleteRangeRequest) Marshal() (data []byte, err error) { +func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DeleteRangeRequest) MarshalTo(data []byte) (int, error) { +func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n22, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n22, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n22 - data[i] = 0x18 + dAtA[i] = 0x18 i++ if m.ReturnKeys { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ - data[i] = 0x20 + dAtA[i] = 0x20 i++ if m.Inline { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *DeleteRangeResponse) Marshal() (data []byte, err error) { +func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DeleteRangeResponse) MarshalTo(data []byte) (int, error) { +func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n23, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n23, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n23 if len(m.Keys) > 0 { for _, b := range m.Keys { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(len(b))) - i += copy(data[i:], b) + i = encodeVarintApi(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } return i, nil } -func (m *ScanRequest) Marshal() (data []byte, err error) { +func (m *ScanRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ScanRequest) MarshalTo(data []byte) (int, error) { +func (m *ScanRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n24, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n24, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2182,35 +2182,35 @@ func (m *ScanRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ScanResponse) Marshal() (data []byte, err error) { +func (m *ScanResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ScanResponse) MarshalTo(data []byte) (int, error) { +func (m *ScanResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n25, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n25, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n25 if len(m.Rows) > 0 { for _, msg := range m.Rows { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2220,25 +2220,25 @@ func (m *ScanResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ReverseScanRequest) Marshal() (data []byte, err error) { +func (m *ReverseScanRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ReverseScanRequest) MarshalTo(data []byte) (int, error) { +func (m *ReverseScanRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n26, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n26, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2246,35 +2246,35 @@ func (m *ReverseScanRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ReverseScanResponse) Marshal() (data []byte, err error) { +func (m *ReverseScanResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ReverseScanResponse) MarshalTo(data []byte) (int, error) { +func (m *ReverseScanResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n27, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n27, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n27 if len(m.Rows) > 0 { for _, msg := range m.Rows { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2284,59 +2284,59 @@ func (m *ReverseScanResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *CheckConsistencyRequest) Marshal() (data []byte, err error) { +func (m *CheckConsistencyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *CheckConsistencyRequest) MarshalTo(data []byte) (int, error) { +func (m *CheckConsistencyRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n28, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n28, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n28 - data[i] = 0x10 + dAtA[i] = 0x10 i++ if m.WithDiff { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *CheckConsistencyResponse) Marshal() (data []byte, err error) { +func (m *CheckConsistencyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *CheckConsistencyResponse) MarshalTo(data []byte) (int, error) { +func (m *CheckConsistencyResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n29, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n29, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2344,75 +2344,75 @@ func (m *CheckConsistencyResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ChangeFrozenRequest) Marshal() (data []byte, err error) { +func (m *ChangeFrozenRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ChangeFrozenRequest) MarshalTo(data []byte) (int, error) { +func (m *ChangeFrozenRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n30, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n30, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n30 - data[i] = 0x10 + dAtA[i] = 0x10 i++ if m.Frozen { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintApi(data, i, uint64(len(m.MustVersion))) - i += copy(data[i:], m.MustVersion) + i = encodeVarintApi(dAtA, i, uint64(len(m.MustVersion))) + i += copy(dAtA[i:], m.MustVersion) return i, nil } -func (m *ChangeFrozenResponse) Marshal() (data []byte, err error) { +func (m *ChangeFrozenResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ChangeFrozenResponse) MarshalTo(data []byte) (int, error) { +func (m *ChangeFrozenResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n31, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n31, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n31 - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintApi(data, i, uint64(m.RangesAffected)) + i = encodeVarintApi(dAtA, i, uint64(m.RangesAffected)) if m.MinStartKey != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintApi(data, i, uint64(len(m.MinStartKey))) - i += copy(data[i:], m.MinStartKey) + i = encodeVarintApi(dAtA, i, uint64(len(m.MinStartKey))) + i += copy(dAtA[i:], m.MinStartKey) } if len(m.Stores) > 0 { keysForStores := make([]int32, 0, len(m.Stores)) @@ -2421,41 +2421,41 @@ func (m *ChangeFrozenResponse) MarshalTo(data []byte) (int, error) { } github_com_gogo_protobuf_sortkeys.Int32s(keysForStores) for _, k := range keysForStores { - data[i] = 0x22 + dAtA[i] = 0x22 i++ v := m.Stores[StoreID(k)] mapSize := 1 + sovApi(uint64(k)) + 1 + sovApi(uint64(v)) - i = encodeVarintApi(data, i, uint64(mapSize)) - data[i] = 0x8 + i = encodeVarintApi(dAtA, i, uint64(mapSize)) + dAtA[i] = 0x8 i++ - i = encodeVarintApi(data, i, uint64(k)) - data[i] = 0x10 + i = encodeVarintApi(dAtA, i, uint64(k)) + dAtA[i] = 0x10 i++ - i = encodeVarintApi(data, i, uint64(v)) + i = encodeVarintApi(dAtA, i, uint64(v)) } } return i, nil } -func (m *BeginTransactionRequest) Marshal() (data []byte, err error) { +func (m *BeginTransactionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *BeginTransactionRequest) MarshalTo(data []byte) (int, error) { +func (m *BeginTransactionRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n32, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n32, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2463,25 +2463,25 @@ func (m *BeginTransactionRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *BeginTransactionResponse) Marshal() (data []byte, err error) { +func (m *BeginTransactionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *BeginTransactionResponse) MarshalTo(data []byte) (int, error) { +func (m *BeginTransactionResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n33, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n33, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2489,52 +2489,52 @@ func (m *BeginTransactionResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *EndTransactionRequest) Marshal() (data []byte, err error) { +func (m *EndTransactionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *EndTransactionRequest) MarshalTo(data []byte) (int, error) { +func (m *EndTransactionRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n34, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n34, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n34 - data[i] = 0x10 + dAtA[i] = 0x10 i++ if m.Commit { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ if m.Deadline != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintApi(data, i, uint64(m.Deadline.Size())) - n35, err := m.Deadline.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Deadline.Size())) + n35, err := m.Deadline.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n35 } if m.InternalCommitTrigger != nil { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintApi(data, i, uint64(m.InternalCommitTrigger.Size())) - n36, err := m.InternalCommitTrigger.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.InternalCommitTrigger.Size())) + n36, err := m.InternalCommitTrigger.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2542,10 +2542,10 @@ func (m *EndTransactionRequest) MarshalTo(data []byte) (int, error) { } if len(m.IntentSpans) > 0 { for _, msg := range m.IntentSpans { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintApi(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2555,91 +2555,91 @@ func (m *EndTransactionRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *EndTransactionResponse) Marshal() (data []byte, err error) { +func (m *EndTransactionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *EndTransactionResponse) MarshalTo(data []byte) (int, error) { +func (m *EndTransactionResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n37, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n37, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n37 - data[i] = 0x20 + dAtA[i] = 0x20 i++ if m.OnePhaseCommit { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *AdminSplitRequest) Marshal() (data []byte, err error) { +func (m *AdminSplitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *AdminSplitRequest) MarshalTo(data []byte) (int, error) { +func (m *AdminSplitRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n38, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n38, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n38 if m.SplitKey != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(len(m.SplitKey))) - i += copy(data[i:], m.SplitKey) + i = encodeVarintApi(dAtA, i, uint64(len(m.SplitKey))) + i += copy(dAtA[i:], m.SplitKey) } return i, nil } -func (m *AdminSplitResponse) Marshal() (data []byte, err error) { +func (m *AdminSplitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *AdminSplitResponse) MarshalTo(data []byte) (int, error) { +func (m *AdminSplitResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n39, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n39, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2647,25 +2647,25 @@ func (m *AdminSplitResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *AdminMergeRequest) Marshal() (data []byte, err error) { +func (m *AdminMergeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *AdminMergeRequest) MarshalTo(data []byte) (int, error) { +func (m *AdminMergeRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n40, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n40, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2673,25 +2673,25 @@ func (m *AdminMergeRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *AdminMergeResponse) Marshal() (data []byte, err error) { +func (m *AdminMergeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *AdminMergeResponse) MarshalTo(data []byte) (int, error) { +func (m *AdminMergeResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n41, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n41, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2699,54 +2699,54 @@ func (m *AdminMergeResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *AdminTransferLeaseRequest) Marshal() (data []byte, err error) { +func (m *AdminTransferLeaseRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *AdminTransferLeaseRequest) MarshalTo(data []byte) (int, error) { +func (m *AdminTransferLeaseRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n42, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n42, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n42 - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintApi(data, i, uint64(m.Target)) + i = encodeVarintApi(dAtA, i, uint64(m.Target)) return i, nil } -func (m *AdminTransferLeaseResponse) Marshal() (data []byte, err error) { +func (m *AdminTransferLeaseResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *AdminTransferLeaseResponse) MarshalTo(data []byte) (int, error) { +func (m *AdminTransferLeaseResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n43, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n43, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2754,72 +2754,72 @@ func (m *AdminTransferLeaseResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RangeLookupRequest) Marshal() (data []byte, err error) { +func (m *RangeLookupRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RangeLookupRequest) MarshalTo(data []byte) (int, error) { +func (m *RangeLookupRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n44, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n44, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n44 - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintApi(data, i, uint64(m.MaxRanges)) - data[i] = 0x20 + i = encodeVarintApi(dAtA, i, uint64(m.MaxRanges)) + dAtA[i] = 0x20 i++ if m.Reverse { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *RangeLookupResponse) Marshal() (data []byte, err error) { +func (m *RangeLookupResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RangeLookupResponse) MarshalTo(data []byte) (int, error) { +func (m *RangeLookupResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n45, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n45, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n45 if len(m.Ranges) > 0 { for _, msg := range m.Ranges { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2828,10 +2828,10 @@ func (m *RangeLookupResponse) MarshalTo(data []byte) (int, error) { } if len(m.PrefetchedRanges) > 0 { for _, msg := range m.PrefetchedRanges { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintApi(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2841,33 +2841,33 @@ func (m *RangeLookupResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *HeartbeatTxnRequest) Marshal() (data []byte, err error) { +func (m *HeartbeatTxnRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *HeartbeatTxnRequest) MarshalTo(data []byte) (int, error) { +func (m *HeartbeatTxnRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n46, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n46, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n46 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Now.Size())) - n47, err := m.Now.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Now.Size())) + n47, err := m.Now.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2875,25 +2875,25 @@ func (m *HeartbeatTxnRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *HeartbeatTxnResponse) Marshal() (data []byte, err error) { +func (m *HeartbeatTxnResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *HeartbeatTxnResponse) MarshalTo(data []byte) (int, error) { +func (m *HeartbeatTxnResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n48, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n48, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2901,53 +2901,53 @@ func (m *HeartbeatTxnResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *GCRequest) Marshal() (data []byte, err error) { +func (m *GCRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *GCRequest) MarshalTo(data []byte) (int, error) { +func (m *GCRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n49, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n49, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n49 if len(m.Keys) > 0 { for _, msg := range m.Keys { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintApi(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintApi(data, i, uint64(m.Threshold.Size())) - n50, err := m.Threshold.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Threshold.Size())) + n50, err := m.Threshold.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n50 - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintApi(data, i, uint64(m.TxnSpanGCThreshold.Size())) - n51, err := m.TxnSpanGCThreshold.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.TxnSpanGCThreshold.Size())) + n51, err := m.TxnSpanGCThreshold.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2955,31 +2955,31 @@ func (m *GCRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *GCRequest_GCKey) Marshal() (data []byte, err error) { +func (m *GCRequest_GCKey) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *GCRequest_GCKey) MarshalTo(data []byte) (int, error) { +func (m *GCRequest_GCKey) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Key != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(len(m.Key))) - i += copy(data[i:], m.Key) + i = encodeVarintApi(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Timestamp.Size())) - n52, err := m.Timestamp.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Timestamp.Size())) + n52, err := m.Timestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2987,25 +2987,25 @@ func (m *GCRequest_GCKey) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *GCResponse) Marshal() (data []byte, err error) { +func (m *GCResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *GCResponse) MarshalTo(data []byte) (int, error) { +func (m *GCResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n53, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n53, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3013,94 +3013,94 @@ func (m *GCResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *PushTxnRequest) Marshal() (data []byte, err error) { +func (m *PushTxnRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *PushTxnRequest) MarshalTo(data []byte) (int, error) { +func (m *PushTxnRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n54, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n54, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n54 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.PusherTxn.Size())) - n55, err := m.PusherTxn.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.PusherTxn.Size())) + n55, err := m.PusherTxn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n55 - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintApi(data, i, uint64(m.PusheeTxn.Size())) - n56, err := m.PusheeTxn.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.PusheeTxn.Size())) + n56, err := m.PusheeTxn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n56 - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintApi(data, i, uint64(m.PushTo.Size())) - n57, err := m.PushTo.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.PushTo.Size())) + n57, err := m.PushTo.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n57 - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintApi(data, i, uint64(m.Now.Size())) - n58, err := m.Now.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Now.Size())) + n58, err := m.Now.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n58 - data[i] = 0x30 + dAtA[i] = 0x30 i++ - i = encodeVarintApi(data, i, uint64(m.PushType)) + i = encodeVarintApi(dAtA, i, uint64(m.PushType)) return i, nil } -func (m *PushTxnResponse) Marshal() (data []byte, err error) { +func (m *PushTxnResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *PushTxnResponse) MarshalTo(data []byte) (int, error) { +func (m *PushTxnResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n59, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n59, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n59 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.PusheeTxn.Size())) - n60, err := m.PusheeTxn.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.PusheeTxn.Size())) + n60, err := m.PusheeTxn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3108,70 +3108,70 @@ func (m *PushTxnResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ResolveIntentRequest) Marshal() (data []byte, err error) { +func (m *ResolveIntentRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ResolveIntentRequest) MarshalTo(data []byte) (int, error) { +func (m *ResolveIntentRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n61, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n61, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n61 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.IntentTxn.Size())) - n62, err := m.IntentTxn.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.IntentTxn.Size())) + n62, err := m.IntentTxn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n62 - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintApi(data, i, uint64(m.Status)) - data[i] = 0x20 + i = encodeVarintApi(dAtA, i, uint64(m.Status)) + dAtA[i] = 0x20 i++ if m.Poison { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *ResolveIntentResponse) Marshal() (data []byte, err error) { +func (m *ResolveIntentResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ResolveIntentResponse) MarshalTo(data []byte) (int, error) { +func (m *ResolveIntentResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n63, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n63, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3179,62 +3179,62 @@ func (m *ResolveIntentResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ResolveIntentRangeRequest) Marshal() (data []byte, err error) { +func (m *ResolveIntentRangeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ResolveIntentRangeRequest) MarshalTo(data []byte) (int, error) { +func (m *ResolveIntentRangeRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n64, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n64, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n64 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.IntentTxn.Size())) - n65, err := m.IntentTxn.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.IntentTxn.Size())) + n65, err := m.IntentTxn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n65 - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintApi(data, i, uint64(m.Status)) - data[i] = 0x20 + i = encodeVarintApi(dAtA, i, uint64(m.Status)) + dAtA[i] = 0x20 i++ if m.Poison { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *NoopResponse) Marshal() (data []byte, err error) { +func (m *NoopResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *NoopResponse) MarshalTo(data []byte) (int, error) { +func (m *NoopResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -3242,17 +3242,17 @@ func (m *NoopResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *NoopRequest) Marshal() (data []byte, err error) { +func (m *NoopRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *NoopRequest) MarshalTo(data []byte) (int, error) { +func (m *NoopRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -3260,25 +3260,25 @@ func (m *NoopRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ResolveIntentRangeResponse) Marshal() (data []byte, err error) { +func (m *ResolveIntentRangeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ResolveIntentRangeResponse) MarshalTo(data []byte) (int, error) { +func (m *ResolveIntentRangeResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n66, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n66, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3286,33 +3286,33 @@ func (m *ResolveIntentRangeResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *MergeRequest) Marshal() (data []byte, err error) { +func (m *MergeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *MergeRequest) MarshalTo(data []byte) (int, error) { +func (m *MergeRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n67, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n67, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n67 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Value.Size())) - n68, err := m.Value.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Value.Size())) + n68, err := m.Value.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3320,25 +3320,25 @@ func (m *MergeRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *MergeResponse) Marshal() (data []byte, err error) { +func (m *MergeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *MergeResponse) MarshalTo(data []byte) (int, error) { +func (m *MergeResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n69, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n69, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3346,57 +3346,57 @@ func (m *MergeResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *TruncateLogRequest) Marshal() (data []byte, err error) { +func (m *TruncateLogRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TruncateLogRequest) MarshalTo(data []byte) (int, error) { +func (m *TruncateLogRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n70, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n70, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n70 - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintApi(data, i, uint64(m.Index)) - data[i] = 0x18 + i = encodeVarintApi(dAtA, i, uint64(m.Index)) + dAtA[i] = 0x18 i++ - i = encodeVarintApi(data, i, uint64(m.RangeID)) + i = encodeVarintApi(dAtA, i, uint64(m.RangeID)) return i, nil } -func (m *TruncateLogResponse) Marshal() (data []byte, err error) { +func (m *TruncateLogResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TruncateLogResponse) MarshalTo(data []byte) (int, error) { +func (m *TruncateLogResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n71, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n71, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3404,33 +3404,33 @@ func (m *TruncateLogResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RequestLeaseRequest) Marshal() (data []byte, err error) { +func (m *RequestLeaseRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RequestLeaseRequest) MarshalTo(data []byte) (int, error) { +func (m *RequestLeaseRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n72, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n72, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n72 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Lease.Size())) - n73, err := m.Lease.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Lease.Size())) + n73, err := m.Lease.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3438,33 +3438,33 @@ func (m *RequestLeaseRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *TransferLeaseRequest) Marshal() (data []byte, err error) { +func (m *TransferLeaseRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TransferLeaseRequest) MarshalTo(data []byte) (int, error) { +func (m *TransferLeaseRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n74, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n74, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n74 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Lease.Size())) - n75, err := m.Lease.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Lease.Size())) + n75, err := m.Lease.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3472,25 +3472,25 @@ func (m *TransferLeaseRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *LeaseInfoRequest) Marshal() (data []byte, err error) { +func (m *LeaseInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *LeaseInfoRequest) MarshalTo(data []byte) (int, error) { +func (m *LeaseInfoRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n76, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n76, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3498,34 +3498,34 @@ func (m *LeaseInfoRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *LeaseInfoResponse) Marshal() (data []byte, err error) { +func (m *LeaseInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *LeaseInfoResponse) MarshalTo(data []byte) (int, error) { +func (m *LeaseInfoResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n77, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n77, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n77 if m.Lease != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Lease.Size())) - n78, err := m.Lease.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Lease.Size())) + n78, err := m.Lease.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3534,25 +3534,25 @@ func (m *LeaseInfoResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RequestLeaseResponse) Marshal() (data []byte, err error) { +func (m *RequestLeaseResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RequestLeaseResponse) MarshalTo(data []byte) (int, error) { +func (m *RequestLeaseResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n79, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n79, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3560,70 +3560,70 @@ func (m *RequestLeaseResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ComputeChecksumRequest) Marshal() (data []byte, err error) { +func (m *ComputeChecksumRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ComputeChecksumRequest) MarshalTo(data []byte) (int, error) { +func (m *ComputeChecksumRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Span.Size())) - n80, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Span.Size())) + n80, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n80 - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintApi(data, i, uint64(m.Version)) - data[i] = 0x1a + i = encodeVarintApi(dAtA, i, uint64(m.Version)) + dAtA[i] = 0x1a i++ - i = encodeVarintApi(data, i, uint64(m.ChecksumID.Size())) - n81, err := m.ChecksumID.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ChecksumID.Size())) + n81, err := m.ChecksumID.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n81 - data[i] = 0x20 + dAtA[i] = 0x20 i++ if m.Snapshot { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *ComputeChecksumResponse) Marshal() (data []byte, err error) { +func (m *ComputeChecksumResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ComputeChecksumResponse) MarshalTo(data []byte) (int, error) { +func (m *ComputeChecksumResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.ResponseHeader.Size())) - n82, err := m.ResponseHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResponseHeader.Size())) + n82, err := m.ResponseHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3631,25 +3631,25 @@ func (m *ComputeChecksumResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *DeprecatedVerifyChecksumRequest) Marshal() (data []byte, err error) { +func (m *DeprecatedVerifyChecksumRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DeprecatedVerifyChecksumRequest) MarshalTo(data []byte) (int, error) { +func (m *DeprecatedVerifyChecksumRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.NoopRequest.Size())) - n83, err := m.NoopRequest.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.NoopRequest.Size())) + n83, err := m.NoopRequest.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3657,25 +3657,25 @@ func (m *DeprecatedVerifyChecksumRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *DeprecatedVerifyChecksumResponse) Marshal() (data []byte, err error) { +func (m *DeprecatedVerifyChecksumResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DeprecatedVerifyChecksumResponse) MarshalTo(data []byte) (int, error) { +func (m *DeprecatedVerifyChecksumResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.NoopResponse.Size())) - n84, err := m.NoopResponse.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.NoopResponse.Size())) + n84, err := m.NoopResponse.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -3683,346 +3683,346 @@ func (m *DeprecatedVerifyChecksumResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RequestUnion) Marshal() (data []byte, err error) { +func (m *RequestUnion) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RequestUnion) MarshalTo(data []byte) (int, error) { +func (m *RequestUnion) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Get != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Get.Size())) - n85, err := m.Get.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Get.Size())) + n85, err := m.Get.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n85 } if m.Put != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Put.Size())) - n86, err := m.Put.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Put.Size())) + n86, err := m.Put.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n86 } if m.ConditionalPut != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintApi(data, i, uint64(m.ConditionalPut.Size())) - n87, err := m.ConditionalPut.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ConditionalPut.Size())) + n87, err := m.ConditionalPut.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n87 } if m.Increment != nil { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintApi(data, i, uint64(m.Increment.Size())) - n88, err := m.Increment.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Increment.Size())) + n88, err := m.Increment.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n88 } if m.Delete != nil { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintApi(data, i, uint64(m.Delete.Size())) - n89, err := m.Delete.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Delete.Size())) + n89, err := m.Delete.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n89 } if m.DeleteRange != nil { - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintApi(data, i, uint64(m.DeleteRange.Size())) - n90, err := m.DeleteRange.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.DeleteRange.Size())) + n90, err := m.DeleteRange.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n90 } if m.Scan != nil { - data[i] = 0x3a + dAtA[i] = 0x3a i++ - i = encodeVarintApi(data, i, uint64(m.Scan.Size())) - n91, err := m.Scan.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Scan.Size())) + n91, err := m.Scan.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n91 } if m.BeginTransaction != nil { - data[i] = 0x42 + dAtA[i] = 0x42 i++ - i = encodeVarintApi(data, i, uint64(m.BeginTransaction.Size())) - n92, err := m.BeginTransaction.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.BeginTransaction.Size())) + n92, err := m.BeginTransaction.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n92 } if m.EndTransaction != nil { - data[i] = 0x4a + dAtA[i] = 0x4a i++ - i = encodeVarintApi(data, i, uint64(m.EndTransaction.Size())) - n93, err := m.EndTransaction.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.EndTransaction.Size())) + n93, err := m.EndTransaction.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n93 } if m.AdminSplit != nil { - data[i] = 0x52 + dAtA[i] = 0x52 i++ - i = encodeVarintApi(data, i, uint64(m.AdminSplit.Size())) - n94, err := m.AdminSplit.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.AdminSplit.Size())) + n94, err := m.AdminSplit.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n94 } if m.AdminMerge != nil { - data[i] = 0x5a + dAtA[i] = 0x5a i++ - i = encodeVarintApi(data, i, uint64(m.AdminMerge.Size())) - n95, err := m.AdminMerge.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.AdminMerge.Size())) + n95, err := m.AdminMerge.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n95 } if m.HeartbeatTxn != nil { - data[i] = 0x62 + dAtA[i] = 0x62 i++ - i = encodeVarintApi(data, i, uint64(m.HeartbeatTxn.Size())) - n96, err := m.HeartbeatTxn.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.HeartbeatTxn.Size())) + n96, err := m.HeartbeatTxn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n96 } if m.Gc != nil { - data[i] = 0x6a + dAtA[i] = 0x6a i++ - i = encodeVarintApi(data, i, uint64(m.Gc.Size())) - n97, err := m.Gc.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Gc.Size())) + n97, err := m.Gc.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n97 } if m.PushTxn != nil { - data[i] = 0x72 + dAtA[i] = 0x72 i++ - i = encodeVarintApi(data, i, uint64(m.PushTxn.Size())) - n98, err := m.PushTxn.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.PushTxn.Size())) + n98, err := m.PushTxn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n98 } if m.RangeLookup != nil { - data[i] = 0x7a + dAtA[i] = 0x7a i++ - i = encodeVarintApi(data, i, uint64(m.RangeLookup.Size())) - n99, err := m.RangeLookup.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.RangeLookup.Size())) + n99, err := m.RangeLookup.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n99 } if m.ResolveIntent != nil { - data[i] = 0x82 + dAtA[i] = 0x82 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.ResolveIntent.Size())) - n100, err := m.ResolveIntent.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResolveIntent.Size())) + n100, err := m.ResolveIntent.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n100 } if m.ResolveIntentRange != nil { - data[i] = 0x8a + dAtA[i] = 0x8a i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.ResolveIntentRange.Size())) - n101, err := m.ResolveIntentRange.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResolveIntentRange.Size())) + n101, err := m.ResolveIntentRange.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n101 } if m.Merge != nil { - data[i] = 0x92 + dAtA[i] = 0x92 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.Merge.Size())) - n102, err := m.Merge.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Merge.Size())) + n102, err := m.Merge.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n102 } if m.TruncateLog != nil { - data[i] = 0x9a + dAtA[i] = 0x9a i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.TruncateLog.Size())) - n103, err := m.TruncateLog.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.TruncateLog.Size())) + n103, err := m.TruncateLog.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n103 } if m.RequestLease != nil { - data[i] = 0xa2 + dAtA[i] = 0xa2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.RequestLease.Size())) - n104, err := m.RequestLease.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.RequestLease.Size())) + n104, err := m.RequestLease.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n104 } if m.ReverseScan != nil { - data[i] = 0xaa + dAtA[i] = 0xaa i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.ReverseScan.Size())) - n105, err := m.ReverseScan.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ReverseScan.Size())) + n105, err := m.ReverseScan.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n105 } if m.ComputeChecksum != nil { - data[i] = 0xb2 + dAtA[i] = 0xb2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.ComputeChecksum.Size())) - n106, err := m.ComputeChecksum.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ComputeChecksum.Size())) + n106, err := m.ComputeChecksum.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n106 } if m.DeprecatedVerifyChecksum != nil { - data[i] = 0xba + dAtA[i] = 0xba i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.DeprecatedVerifyChecksum.Size())) - n107, err := m.DeprecatedVerifyChecksum.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.DeprecatedVerifyChecksum.Size())) + n107, err := m.DeprecatedVerifyChecksum.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n107 } if m.CheckConsistency != nil { - data[i] = 0xc2 + dAtA[i] = 0xc2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.CheckConsistency.Size())) - n108, err := m.CheckConsistency.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.CheckConsistency.Size())) + n108, err := m.CheckConsistency.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n108 } if m.Noop != nil { - data[i] = 0xca + dAtA[i] = 0xca i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.Noop.Size())) - n109, err := m.Noop.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Noop.Size())) + n109, err := m.Noop.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n109 } if m.InitPut != nil { - data[i] = 0xd2 + dAtA[i] = 0xd2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.InitPut.Size())) - n110, err := m.InitPut.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.InitPut.Size())) + n110, err := m.InitPut.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n110 } if m.ChangeFrozen != nil { - data[i] = 0xda + dAtA[i] = 0xda i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.ChangeFrozen.Size())) - n111, err := m.ChangeFrozen.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ChangeFrozen.Size())) + n111, err := m.ChangeFrozen.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n111 } if m.TransferLease != nil { - data[i] = 0xe2 + dAtA[i] = 0xe2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.TransferLease.Size())) - n112, err := m.TransferLease.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.TransferLease.Size())) + n112, err := m.TransferLease.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n112 } if m.AdminTransferLease != nil { - data[i] = 0xea + dAtA[i] = 0xea i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.AdminTransferLease.Size())) - n113, err := m.AdminTransferLease.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.AdminTransferLease.Size())) + n113, err := m.AdminTransferLease.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n113 } if m.LeaseInfo != nil { - data[i] = 0xf2 + dAtA[i] = 0xf2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.LeaseInfo.Size())) - n114, err := m.LeaseInfo.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.LeaseInfo.Size())) + n114, err := m.LeaseInfo.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -4031,334 +4031,334 @@ func (m *RequestUnion) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ResponseUnion) Marshal() (data []byte, err error) { +func (m *ResponseUnion) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ResponseUnion) MarshalTo(data []byte) (int, error) { +func (m *ResponseUnion) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Get != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Get.Size())) - n115, err := m.Get.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Get.Size())) + n115, err := m.Get.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n115 } if m.Put != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Put.Size())) - n116, err := m.Put.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Put.Size())) + n116, err := m.Put.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n116 } if m.ConditionalPut != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintApi(data, i, uint64(m.ConditionalPut.Size())) - n117, err := m.ConditionalPut.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ConditionalPut.Size())) + n117, err := m.ConditionalPut.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n117 } if m.Increment != nil { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintApi(data, i, uint64(m.Increment.Size())) - n118, err := m.Increment.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Increment.Size())) + n118, err := m.Increment.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n118 } if m.Delete != nil { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintApi(data, i, uint64(m.Delete.Size())) - n119, err := m.Delete.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Delete.Size())) + n119, err := m.Delete.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n119 } if m.DeleteRange != nil { - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintApi(data, i, uint64(m.DeleteRange.Size())) - n120, err := m.DeleteRange.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.DeleteRange.Size())) + n120, err := m.DeleteRange.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n120 } if m.Scan != nil { - data[i] = 0x3a + dAtA[i] = 0x3a i++ - i = encodeVarintApi(data, i, uint64(m.Scan.Size())) - n121, err := m.Scan.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Scan.Size())) + n121, err := m.Scan.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n121 } if m.BeginTransaction != nil { - data[i] = 0x42 + dAtA[i] = 0x42 i++ - i = encodeVarintApi(data, i, uint64(m.BeginTransaction.Size())) - n122, err := m.BeginTransaction.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.BeginTransaction.Size())) + n122, err := m.BeginTransaction.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n122 } if m.EndTransaction != nil { - data[i] = 0x4a + dAtA[i] = 0x4a i++ - i = encodeVarintApi(data, i, uint64(m.EndTransaction.Size())) - n123, err := m.EndTransaction.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.EndTransaction.Size())) + n123, err := m.EndTransaction.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n123 } if m.AdminSplit != nil { - data[i] = 0x52 + dAtA[i] = 0x52 i++ - i = encodeVarintApi(data, i, uint64(m.AdminSplit.Size())) - n124, err := m.AdminSplit.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.AdminSplit.Size())) + n124, err := m.AdminSplit.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n124 } if m.AdminMerge != nil { - data[i] = 0x5a + dAtA[i] = 0x5a i++ - i = encodeVarintApi(data, i, uint64(m.AdminMerge.Size())) - n125, err := m.AdminMerge.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.AdminMerge.Size())) + n125, err := m.AdminMerge.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n125 } if m.HeartbeatTxn != nil { - data[i] = 0x62 + dAtA[i] = 0x62 i++ - i = encodeVarintApi(data, i, uint64(m.HeartbeatTxn.Size())) - n126, err := m.HeartbeatTxn.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.HeartbeatTxn.Size())) + n126, err := m.HeartbeatTxn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n126 } if m.Gc != nil { - data[i] = 0x6a + dAtA[i] = 0x6a i++ - i = encodeVarintApi(data, i, uint64(m.Gc.Size())) - n127, err := m.Gc.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Gc.Size())) + n127, err := m.Gc.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n127 } if m.PushTxn != nil { - data[i] = 0x72 + dAtA[i] = 0x72 i++ - i = encodeVarintApi(data, i, uint64(m.PushTxn.Size())) - n128, err := m.PushTxn.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.PushTxn.Size())) + n128, err := m.PushTxn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n128 } if m.RangeLookup != nil { - data[i] = 0x7a + dAtA[i] = 0x7a i++ - i = encodeVarintApi(data, i, uint64(m.RangeLookup.Size())) - n129, err := m.RangeLookup.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.RangeLookup.Size())) + n129, err := m.RangeLookup.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n129 } if m.ResolveIntent != nil { - data[i] = 0x82 + dAtA[i] = 0x82 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.ResolveIntent.Size())) - n130, err := m.ResolveIntent.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResolveIntent.Size())) + n130, err := m.ResolveIntent.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n130 } if m.ResolveIntentRange != nil { - data[i] = 0x8a + dAtA[i] = 0x8a i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.ResolveIntentRange.Size())) - n131, err := m.ResolveIntentRange.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ResolveIntentRange.Size())) + n131, err := m.ResolveIntentRange.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n131 } if m.Merge != nil { - data[i] = 0x92 + dAtA[i] = 0x92 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.Merge.Size())) - n132, err := m.Merge.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Merge.Size())) + n132, err := m.Merge.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n132 } if m.TruncateLog != nil { - data[i] = 0x9a + dAtA[i] = 0x9a i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.TruncateLog.Size())) - n133, err := m.TruncateLog.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.TruncateLog.Size())) + n133, err := m.TruncateLog.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n133 } if m.RequestLease != nil { - data[i] = 0xa2 + dAtA[i] = 0xa2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.RequestLease.Size())) - n134, err := m.RequestLease.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.RequestLease.Size())) + n134, err := m.RequestLease.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n134 } if m.ReverseScan != nil { - data[i] = 0xaa + dAtA[i] = 0xaa i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.ReverseScan.Size())) - n135, err := m.ReverseScan.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ReverseScan.Size())) + n135, err := m.ReverseScan.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n135 } if m.ComputeChecksum != nil { - data[i] = 0xb2 + dAtA[i] = 0xb2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.ComputeChecksum.Size())) - n136, err := m.ComputeChecksum.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ComputeChecksum.Size())) + n136, err := m.ComputeChecksum.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n136 } if m.DeprecatedVerifyResponse != nil { - data[i] = 0xba + dAtA[i] = 0xba i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.DeprecatedVerifyResponse.Size())) - n137, err := m.DeprecatedVerifyResponse.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.DeprecatedVerifyResponse.Size())) + n137, err := m.DeprecatedVerifyResponse.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n137 } if m.CheckConsistency != nil { - data[i] = 0xc2 + dAtA[i] = 0xc2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.CheckConsistency.Size())) - n138, err := m.CheckConsistency.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.CheckConsistency.Size())) + n138, err := m.CheckConsistency.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n138 } if m.Noop != nil { - data[i] = 0xca + dAtA[i] = 0xca i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.Noop.Size())) - n139, err := m.Noop.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Noop.Size())) + n139, err := m.Noop.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n139 } if m.InitPut != nil { - data[i] = 0xd2 + dAtA[i] = 0xd2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.InitPut.Size())) - n140, err := m.InitPut.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.InitPut.Size())) + n140, err := m.InitPut.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n140 } if m.ChangeFrozen != nil { - data[i] = 0xda + dAtA[i] = 0xda i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.ChangeFrozen.Size())) - n141, err := m.ChangeFrozen.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ChangeFrozen.Size())) + n141, err := m.ChangeFrozen.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n141 } if m.AdminTransferLease != nil { - data[i] = 0xea + dAtA[i] = 0xea i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.AdminTransferLease.Size())) - n142, err := m.AdminTransferLease.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.AdminTransferLease.Size())) + n142, err := m.AdminTransferLease.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n142 } if m.LeaseInfo != nil { - data[i] = 0xf2 + dAtA[i] = 0xf2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintApi(data, i, uint64(m.LeaseInfo.Size())) - n143, err := m.LeaseInfo.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.LeaseInfo.Size())) + n143, err := m.LeaseInfo.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -4367,117 +4367,117 @@ func (m *ResponseUnion) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *Header) Marshal() (data []byte, err error) { +func (m *Header) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Header) MarshalTo(data []byte) (int, error) { +func (m *Header) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Timestamp.Size())) - n144, err := m.Timestamp.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Timestamp.Size())) + n144, err := m.Timestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n144 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Replica.Size())) - n145, err := m.Replica.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Replica.Size())) + n145, err := m.Replica.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n145 - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintApi(data, i, uint64(m.RangeID)) - data[i] = 0x21 + i = encodeVarintApi(dAtA, i, uint64(m.RangeID)) + dAtA[i] = 0x21 i++ - i = encodeFixed64Api(data, i, uint64(math.Float64bits(float64(m.UserPriority)))) + i = encodeFixed64Api(dAtA, i, uint64(math.Float64bits(float64(m.UserPriority)))) if m.Txn != nil { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintApi(data, i, uint64(m.Txn.Size())) - n146, err := m.Txn.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Txn.Size())) + n146, err := m.Txn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n146 } - data[i] = 0x30 + dAtA[i] = 0x30 i++ - i = encodeVarintApi(data, i, uint64(m.ReadConsistency)) + i = encodeVarintApi(dAtA, i, uint64(m.ReadConsistency)) if m.TraceContext != nil { - data[i] = 0x3a + dAtA[i] = 0x3a i++ - i = encodeVarintApi(data, i, uint64(m.TraceContext.Size())) - n147, err := m.TraceContext.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.TraceContext.Size())) + n147, err := m.TraceContext.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n147 } - data[i] = 0x40 + dAtA[i] = 0x40 i++ - i = encodeVarintApi(data, i, uint64(m.MaxSpanRequestKeys)) - data[i] = 0x48 + i = encodeVarintApi(dAtA, i, uint64(m.MaxSpanRequestKeys)) + dAtA[i] = 0x48 i++ if m.DistinctSpans { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ - data[i] = 0x50 + dAtA[i] = 0x50 i++ if m.ReturnRangeInfo { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *BatchRequest) Marshal() (data []byte, err error) { +func (m *BatchRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *BatchRequest) MarshalTo(data []byte) (int, error) { +func (m *BatchRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Header.Size())) - n148, err := m.Header.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Header.Size())) + n148, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n148 if len(m.Requests) > 0 { for _, msg := range m.Requests { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -4487,35 +4487,35 @@ func (m *BatchRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *BatchResponse) Marshal() (data []byte, err error) { +func (m *BatchResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *BatchResponse) MarshalTo(data []byte) (int, error) { +func (m *BatchResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.BatchResponse_Header.Size())) - n149, err := m.BatchResponse_Header.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.BatchResponse_Header.Size())) + n149, err := m.BatchResponse_Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n149 if len(m.Responses) > 0 { for _, msg := range m.Responses { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -4525,44 +4525,44 @@ func (m *BatchResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *BatchResponse_Header) Marshal() (data []byte, err error) { +func (m *BatchResponse_Header) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *BatchResponse_Header) MarshalTo(data []byte) (int, error) { +func (m *BatchResponse_Header) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Error != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Error.Size())) - n150, err := m.Error.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Error.Size())) + n150, err := m.Error.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n150 } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Timestamp.Size())) - n151, err := m.Timestamp.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Timestamp.Size())) + n151, err := m.Timestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n151 if m.Txn != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintApi(data, i, uint64(m.Txn.Size())) - n152, err := m.Txn.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Txn.Size())) + n152, err := m.Txn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -4570,16 +4570,16 @@ func (m *BatchResponse_Header) MarshalTo(data []byte) (int, error) { } if len(m.CollectedSpans) > 0 { for _, b := range m.CollectedSpans { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintApi(data, i, uint64(len(b))) - i += copy(data[i:], b) + i = encodeVarintApi(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintApi(data, i, uint64(m.Now.Size())) - n153, err := m.Now.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Now.Size())) + n153, err := m.Now.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -4587,31 +4587,31 @@ func (m *BatchResponse_Header) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64Api(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Api(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Api(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Api(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintApi(data []byte, offset int, v uint64) int { +func encodeVarintApi(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *RangeInfo) Size() (n int) { @@ -5917,8 +5917,8 @@ func (this *ResponseUnion) SetValue(value interface{}) bool { } return true } -func (m *RangeInfo) Unmarshal(data []byte) error { - l := len(data) +func (m *RangeInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -5930,7 +5930,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5958,7 +5958,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -5972,7 +5972,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Desc.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Desc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5988,7 +5988,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6002,13 +6002,13 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Lease.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Lease.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -6027,8 +6027,8 @@ func (m *RangeInfo) Unmarshal(data []byte) error { } return nil } -func (m *ResponseHeader) Unmarshal(data []byte) error { - l := len(data) +func (m *ResponseHeader) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6040,7 +6040,7 @@ func (m *ResponseHeader) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6068,7 +6068,7 @@ func (m *ResponseHeader) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6085,7 +6085,7 @@ func (m *ResponseHeader) Unmarshal(data []byte) error { if m.Txn == nil { m.Txn = &Transaction{} } - if err := m.Txn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Txn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6101,7 +6101,7 @@ func (m *ResponseHeader) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6118,7 +6118,7 @@ func (m *ResponseHeader) Unmarshal(data []byte) error { if m.ResumeSpan == nil { m.ResumeSpan = &Span{} } - if err := m.ResumeSpan.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResumeSpan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6134,7 +6134,7 @@ func (m *ResponseHeader) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NumKeys |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -6153,7 +6153,7 @@ func (m *ResponseHeader) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6168,13 +6168,13 @@ func (m *ResponseHeader) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.RangeInfos = append(m.RangeInfos, RangeInfo{}) - if err := m.RangeInfos[len(m.RangeInfos)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RangeInfos[len(m.RangeInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -6193,8 +6193,8 @@ func (m *ResponseHeader) Unmarshal(data []byte) error { } return nil } -func (m *GetRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *GetRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6206,7 +6206,7 @@ func (m *GetRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6234,7 +6234,7 @@ func (m *GetRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6248,13 +6248,13 @@ func (m *GetRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -6273,8 +6273,8 @@ func (m *GetRequest) Unmarshal(data []byte) error { } return nil } -func (m *GetResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *GetResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6286,7 +6286,7 @@ func (m *GetResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6314,7 +6314,7 @@ func (m *GetResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6328,7 +6328,7 @@ func (m *GetResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6344,7 +6344,7 @@ func (m *GetResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6361,13 +6361,13 @@ func (m *GetResponse) Unmarshal(data []byte) error { if m.Value == nil { m.Value = &Value{} } - if err := m.Value.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -6386,8 +6386,8 @@ func (m *GetResponse) Unmarshal(data []byte) error { } return nil } -func (m *PutRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *PutRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6399,7 +6399,7 @@ func (m *PutRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6427,7 +6427,7 @@ func (m *PutRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6441,7 +6441,7 @@ func (m *PutRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6457,7 +6457,7 @@ func (m *PutRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6471,7 +6471,7 @@ func (m *PutRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Value.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6487,7 +6487,7 @@ func (m *PutRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6507,7 +6507,7 @@ func (m *PutRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6517,7 +6517,7 @@ func (m *PutRequest) Unmarshal(data []byte) error { m.Blind = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -6536,8 +6536,8 @@ func (m *PutRequest) Unmarshal(data []byte) error { } return nil } -func (m *PutResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *PutResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6549,7 +6549,7 @@ func (m *PutResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6577,7 +6577,7 @@ func (m *PutResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6591,13 +6591,13 @@ func (m *PutResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -6616,8 +6616,8 @@ func (m *PutResponse) Unmarshal(data []byte) error { } return nil } -func (m *ConditionalPutRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *ConditionalPutRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6629,7 +6629,7 @@ func (m *ConditionalPutRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6657,7 +6657,7 @@ func (m *ConditionalPutRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6671,7 +6671,7 @@ func (m *ConditionalPutRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6687,7 +6687,7 @@ func (m *ConditionalPutRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6701,7 +6701,7 @@ func (m *ConditionalPutRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Value.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6717,7 +6717,7 @@ func (m *ConditionalPutRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6734,7 +6734,7 @@ func (m *ConditionalPutRequest) Unmarshal(data []byte) error { if m.ExpValue == nil { m.ExpValue = &Value{} } - if err := m.ExpValue.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ExpValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6750,7 +6750,7 @@ func (m *ConditionalPutRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6760,7 +6760,7 @@ func (m *ConditionalPutRequest) Unmarshal(data []byte) error { m.Blind = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -6779,8 +6779,8 @@ func (m *ConditionalPutRequest) Unmarshal(data []byte) error { } return nil } -func (m *ConditionalPutResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *ConditionalPutResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6792,7 +6792,7 @@ func (m *ConditionalPutResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6820,7 +6820,7 @@ func (m *ConditionalPutResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6834,13 +6834,13 @@ func (m *ConditionalPutResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -6859,8 +6859,8 @@ func (m *ConditionalPutResponse) Unmarshal(data []byte) error { } return nil } -func (m *InitPutRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *InitPutRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6872,7 +6872,7 @@ func (m *InitPutRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6900,7 +6900,7 @@ func (m *InitPutRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6914,7 +6914,7 @@ func (m *InitPutRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6930,7 +6930,7 @@ func (m *InitPutRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6944,13 +6944,13 @@ func (m *InitPutRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Value.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -6969,8 +6969,8 @@ func (m *InitPutRequest) Unmarshal(data []byte) error { } return nil } -func (m *InitPutResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *InitPutResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6982,7 +6982,7 @@ func (m *InitPutResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -7010,7 +7010,7 @@ func (m *InitPutResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7024,13 +7024,13 @@ func (m *InitPutResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -7049,8 +7049,8 @@ func (m *InitPutResponse) Unmarshal(data []byte) error { } return nil } -func (m *IncrementRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *IncrementRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -7062,7 +7062,7 @@ func (m *IncrementRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -7090,7 +7090,7 @@ func (m *IncrementRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7104,7 +7104,7 @@ func (m *IncrementRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -7120,7 +7120,7 @@ func (m *IncrementRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Increment |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -7129,7 +7129,7 @@ func (m *IncrementRequest) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -7148,8 +7148,8 @@ func (m *IncrementRequest) Unmarshal(data []byte) error { } return nil } -func (m *IncrementResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *IncrementResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -7161,7 +7161,7 @@ func (m *IncrementResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -7189,7 +7189,7 @@ func (m *IncrementResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7203,7 +7203,7 @@ func (m *IncrementResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -7219,7 +7219,7 @@ func (m *IncrementResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NewValue |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -7228,7 +7228,7 @@ func (m *IncrementResponse) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -7247,8 +7247,8 @@ func (m *IncrementResponse) Unmarshal(data []byte) error { } return nil } -func (m *DeleteRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *DeleteRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -7260,7 +7260,7 @@ func (m *DeleteRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -7288,7 +7288,7 @@ func (m *DeleteRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7302,13 +7302,13 @@ func (m *DeleteRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -7327,8 +7327,8 @@ func (m *DeleteRequest) Unmarshal(data []byte) error { } return nil } -func (m *DeleteResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *DeleteResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -7340,7 +7340,7 @@ func (m *DeleteResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -7368,7 +7368,7 @@ func (m *DeleteResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7382,13 +7382,13 @@ func (m *DeleteResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -7407,8 +7407,8 @@ func (m *DeleteResponse) Unmarshal(data []byte) error { } return nil } -func (m *DeleteRangeRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -7420,7 +7420,7 @@ func (m *DeleteRangeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -7448,7 +7448,7 @@ func (m *DeleteRangeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7462,7 +7462,7 @@ func (m *DeleteRangeRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -7478,7 +7478,7 @@ func (m *DeleteRangeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7498,7 +7498,7 @@ func (m *DeleteRangeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7508,7 +7508,7 @@ func (m *DeleteRangeRequest) Unmarshal(data []byte) error { m.Inline = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -7527,8 +7527,8 @@ func (m *DeleteRangeRequest) Unmarshal(data []byte) error { } return nil } -func (m *DeleteRangeResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -7540,7 +7540,7 @@ func (m *DeleteRangeResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -7568,7 +7568,7 @@ func (m *DeleteRangeResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7582,7 +7582,7 @@ func (m *DeleteRangeResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -7598,7 +7598,7 @@ func (m *DeleteRangeResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7613,11 +7613,11 @@ func (m *DeleteRangeResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Keys = append(m.Keys, make([]byte, postIndex-iNdEx)) - copy(m.Keys[len(m.Keys)-1], data[iNdEx:postIndex]) + copy(m.Keys[len(m.Keys)-1], dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -7636,8 +7636,8 @@ func (m *DeleteRangeResponse) Unmarshal(data []byte) error { } return nil } -func (m *ScanRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *ScanRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -7649,7 +7649,7 @@ func (m *ScanRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -7677,7 +7677,7 @@ func (m *ScanRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7691,13 +7691,13 @@ func (m *ScanRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -7716,8 +7716,8 @@ func (m *ScanRequest) Unmarshal(data []byte) error { } return nil } -func (m *ScanResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *ScanResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -7729,7 +7729,7 @@ func (m *ScanResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -7757,7 +7757,7 @@ func (m *ScanResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7771,7 +7771,7 @@ func (m *ScanResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -7787,7 +7787,7 @@ func (m *ScanResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7802,13 +7802,13 @@ func (m *ScanResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Rows = append(m.Rows, KeyValue{}) - if err := m.Rows[len(m.Rows)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Rows[len(m.Rows)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -7827,8 +7827,8 @@ func (m *ScanResponse) Unmarshal(data []byte) error { } return nil } -func (m *ReverseScanRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *ReverseScanRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -7840,7 +7840,7 @@ func (m *ReverseScanRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -7868,7 +7868,7 @@ func (m *ReverseScanRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7882,13 +7882,13 @@ func (m *ReverseScanRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -7907,8 +7907,8 @@ func (m *ReverseScanRequest) Unmarshal(data []byte) error { } return nil } -func (m *ReverseScanResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *ReverseScanResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -7920,7 +7920,7 @@ func (m *ReverseScanResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -7948,7 +7948,7 @@ func (m *ReverseScanResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7962,7 +7962,7 @@ func (m *ReverseScanResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -7978,7 +7978,7 @@ func (m *ReverseScanResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -7993,13 +7993,13 @@ func (m *ReverseScanResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Rows = append(m.Rows, KeyValue{}) - if err := m.Rows[len(m.Rows)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Rows[len(m.Rows)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -8018,8 +8018,8 @@ func (m *ReverseScanResponse) Unmarshal(data []byte) error { } return nil } -func (m *CheckConsistencyRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *CheckConsistencyRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -8031,7 +8031,7 @@ func (m *CheckConsistencyRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -8059,7 +8059,7 @@ func (m *CheckConsistencyRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8073,7 +8073,7 @@ func (m *CheckConsistencyRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8089,7 +8089,7 @@ func (m *CheckConsistencyRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8099,7 +8099,7 @@ func (m *CheckConsistencyRequest) Unmarshal(data []byte) error { m.WithDiff = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -8118,8 +8118,8 @@ func (m *CheckConsistencyRequest) Unmarshal(data []byte) error { } return nil } -func (m *CheckConsistencyResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *CheckConsistencyResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -8131,7 +8131,7 @@ func (m *CheckConsistencyResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -8159,7 +8159,7 @@ func (m *CheckConsistencyResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8173,13 +8173,13 @@ func (m *CheckConsistencyResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -8198,8 +8198,8 @@ func (m *CheckConsistencyResponse) Unmarshal(data []byte) error { } return nil } -func (m *ChangeFrozenRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *ChangeFrozenRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -8211,7 +8211,7 @@ func (m *ChangeFrozenRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -8239,7 +8239,7 @@ func (m *ChangeFrozenRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8253,7 +8253,7 @@ func (m *ChangeFrozenRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8269,7 +8269,7 @@ func (m *ChangeFrozenRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8289,7 +8289,7 @@ func (m *ChangeFrozenRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -8304,11 +8304,11 @@ func (m *ChangeFrozenRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.MustVersion = string(data[iNdEx:postIndex]) + m.MustVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -8327,8 +8327,8 @@ func (m *ChangeFrozenRequest) Unmarshal(data []byte) error { } return nil } -func (m *ChangeFrozenResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *ChangeFrozenResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -8340,7 +8340,7 @@ func (m *ChangeFrozenResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -8368,7 +8368,7 @@ func (m *ChangeFrozenResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8382,7 +8382,7 @@ func (m *ChangeFrozenResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8398,7 +8398,7 @@ func (m *ChangeFrozenResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangesAffected |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -8417,7 +8417,7 @@ func (m *ChangeFrozenResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8431,7 +8431,7 @@ func (m *ChangeFrozenResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.MinStartKey = append(m.MinStartKey[:0], data[iNdEx:postIndex]...) + m.MinStartKey = append(m.MinStartKey[:0], dAtA[iNdEx:postIndex]...) if m.MinStartKey == nil { m.MinStartKey = []byte{} } @@ -8448,7 +8448,7 @@ func (m *ChangeFrozenResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8470,7 +8470,7 @@ func (m *ChangeFrozenResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ keykey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -8485,7 +8485,7 @@ func (m *ChangeFrozenResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapkey |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -8504,7 +8504,7 @@ func (m *ChangeFrozenResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ valuekey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -8519,7 +8519,7 @@ func (m *ChangeFrozenResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapvalue |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -8534,7 +8534,7 @@ func (m *ChangeFrozenResponse) Unmarshal(data []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -8553,8 +8553,8 @@ func (m *ChangeFrozenResponse) Unmarshal(data []byte) error { } return nil } -func (m *BeginTransactionRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *BeginTransactionRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -8566,7 +8566,7 @@ func (m *BeginTransactionRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -8594,7 +8594,7 @@ func (m *BeginTransactionRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8608,13 +8608,13 @@ func (m *BeginTransactionRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -8633,8 +8633,8 @@ func (m *BeginTransactionRequest) Unmarshal(data []byte) error { } return nil } -func (m *BeginTransactionResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *BeginTransactionResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -8646,7 +8646,7 @@ func (m *BeginTransactionResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -8674,7 +8674,7 @@ func (m *BeginTransactionResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8688,13 +8688,13 @@ func (m *BeginTransactionResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -8713,8 +8713,8 @@ func (m *BeginTransactionResponse) Unmarshal(data []byte) error { } return nil } -func (m *EndTransactionRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *EndTransactionRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -8726,7 +8726,7 @@ func (m *EndTransactionRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -8754,7 +8754,7 @@ func (m *EndTransactionRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8768,7 +8768,7 @@ func (m *EndTransactionRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8784,7 +8784,7 @@ func (m *EndTransactionRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8804,7 +8804,7 @@ func (m *EndTransactionRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8821,7 +8821,7 @@ func (m *EndTransactionRequest) Unmarshal(data []byte) error { if m.Deadline == nil { m.Deadline = &cockroach_util_hlc.Timestamp{} } - if err := m.Deadline.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Deadline.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8837,7 +8837,7 @@ func (m *EndTransactionRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8854,7 +8854,7 @@ func (m *EndTransactionRequest) Unmarshal(data []byte) error { if m.InternalCommitTrigger == nil { m.InternalCommitTrigger = &InternalCommitTrigger{} } - if err := m.InternalCommitTrigger.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.InternalCommitTrigger.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8870,7 +8870,7 @@ func (m *EndTransactionRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8885,13 +8885,13 @@ func (m *EndTransactionRequest) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.IntentSpans = append(m.IntentSpans, Span{}) - if err := m.IntentSpans[len(m.IntentSpans)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.IntentSpans[len(m.IntentSpans)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -8910,8 +8910,8 @@ func (m *EndTransactionRequest) Unmarshal(data []byte) error { } return nil } -func (m *EndTransactionResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *EndTransactionResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -8923,7 +8923,7 @@ func (m *EndTransactionResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -8951,7 +8951,7 @@ func (m *EndTransactionResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8965,7 +8965,7 @@ func (m *EndTransactionResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8981,7 +8981,7 @@ func (m *EndTransactionResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -8991,7 +8991,7 @@ func (m *EndTransactionResponse) Unmarshal(data []byte) error { m.OnePhaseCommit = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -9010,8 +9010,8 @@ func (m *EndTransactionResponse) Unmarshal(data []byte) error { } return nil } -func (m *AdminSplitRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *AdminSplitRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -9023,7 +9023,7 @@ func (m *AdminSplitRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -9051,7 +9051,7 @@ func (m *AdminSplitRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9065,7 +9065,7 @@ func (m *AdminSplitRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9081,7 +9081,7 @@ func (m *AdminSplitRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9095,14 +9095,14 @@ func (m *AdminSplitRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SplitKey = append(m.SplitKey[:0], data[iNdEx:postIndex]...) + m.SplitKey = append(m.SplitKey[:0], dAtA[iNdEx:postIndex]...) if m.SplitKey == nil { m.SplitKey = []byte{} } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -9121,8 +9121,8 @@ func (m *AdminSplitRequest) Unmarshal(data []byte) error { } return nil } -func (m *AdminSplitResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *AdminSplitResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -9134,7 +9134,7 @@ func (m *AdminSplitResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -9162,7 +9162,7 @@ func (m *AdminSplitResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9176,13 +9176,13 @@ func (m *AdminSplitResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -9201,8 +9201,8 @@ func (m *AdminSplitResponse) Unmarshal(data []byte) error { } return nil } -func (m *AdminMergeRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *AdminMergeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -9214,7 +9214,7 @@ func (m *AdminMergeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -9242,7 +9242,7 @@ func (m *AdminMergeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9256,13 +9256,13 @@ func (m *AdminMergeRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -9281,8 +9281,8 @@ func (m *AdminMergeRequest) Unmarshal(data []byte) error { } return nil } -func (m *AdminMergeResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *AdminMergeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -9294,7 +9294,7 @@ func (m *AdminMergeResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -9322,7 +9322,7 @@ func (m *AdminMergeResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9336,13 +9336,13 @@ func (m *AdminMergeResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -9361,8 +9361,8 @@ func (m *AdminMergeResponse) Unmarshal(data []byte) error { } return nil } -func (m *AdminTransferLeaseRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *AdminTransferLeaseRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -9374,7 +9374,7 @@ func (m *AdminTransferLeaseRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -9402,7 +9402,7 @@ func (m *AdminTransferLeaseRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9416,7 +9416,7 @@ func (m *AdminTransferLeaseRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9432,7 +9432,7 @@ func (m *AdminTransferLeaseRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Target |= (StoreID(b) & 0x7F) << shift if b < 0x80 { @@ -9441,7 +9441,7 @@ func (m *AdminTransferLeaseRequest) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -9460,8 +9460,8 @@ func (m *AdminTransferLeaseRequest) Unmarshal(data []byte) error { } return nil } -func (m *AdminTransferLeaseResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *AdminTransferLeaseResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -9473,7 +9473,7 @@ func (m *AdminTransferLeaseResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -9501,7 +9501,7 @@ func (m *AdminTransferLeaseResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9515,13 +9515,13 @@ func (m *AdminTransferLeaseResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -9540,8 +9540,8 @@ func (m *AdminTransferLeaseResponse) Unmarshal(data []byte) error { } return nil } -func (m *RangeLookupRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *RangeLookupRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -9553,7 +9553,7 @@ func (m *RangeLookupRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -9581,7 +9581,7 @@ func (m *RangeLookupRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9595,7 +9595,7 @@ func (m *RangeLookupRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9611,7 +9611,7 @@ func (m *RangeLookupRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.MaxRanges |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -9630,7 +9630,7 @@ func (m *RangeLookupRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9640,7 +9640,7 @@ func (m *RangeLookupRequest) Unmarshal(data []byte) error { m.Reverse = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -9659,8 +9659,8 @@ func (m *RangeLookupRequest) Unmarshal(data []byte) error { } return nil } -func (m *RangeLookupResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *RangeLookupResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -9672,7 +9672,7 @@ func (m *RangeLookupResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -9700,7 +9700,7 @@ func (m *RangeLookupResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9714,7 +9714,7 @@ func (m *RangeLookupResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9730,7 +9730,7 @@ func (m *RangeLookupResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9745,7 +9745,7 @@ func (m *RangeLookupResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Ranges = append(m.Ranges, RangeDescriptor{}) - if err := m.Ranges[len(m.Ranges)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9761,7 +9761,7 @@ func (m *RangeLookupResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9776,13 +9776,13 @@ func (m *RangeLookupResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.PrefetchedRanges = append(m.PrefetchedRanges, RangeDescriptor{}) - if err := m.PrefetchedRanges[len(m.PrefetchedRanges)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.PrefetchedRanges[len(m.PrefetchedRanges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -9801,8 +9801,8 @@ func (m *RangeLookupResponse) Unmarshal(data []byte) error { } return nil } -func (m *HeartbeatTxnRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *HeartbeatTxnRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -9814,7 +9814,7 @@ func (m *HeartbeatTxnRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -9842,7 +9842,7 @@ func (m *HeartbeatTxnRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9856,7 +9856,7 @@ func (m *HeartbeatTxnRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9872,7 +9872,7 @@ func (m *HeartbeatTxnRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9886,13 +9886,13 @@ func (m *HeartbeatTxnRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Now.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Now.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -9911,8 +9911,8 @@ func (m *HeartbeatTxnRequest) Unmarshal(data []byte) error { } return nil } -func (m *HeartbeatTxnResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *HeartbeatTxnResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -9924,7 +9924,7 @@ func (m *HeartbeatTxnResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -9952,7 +9952,7 @@ func (m *HeartbeatTxnResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -9966,13 +9966,13 @@ func (m *HeartbeatTxnResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -9991,8 +9991,8 @@ func (m *HeartbeatTxnResponse) Unmarshal(data []byte) error { } return nil } -func (m *GCRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *GCRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -10004,7 +10004,7 @@ func (m *GCRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -10032,7 +10032,7 @@ func (m *GCRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10046,7 +10046,7 @@ func (m *GCRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10062,7 +10062,7 @@ func (m *GCRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10077,7 +10077,7 @@ func (m *GCRequest) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Keys = append(m.Keys, GCRequest_GCKey{}) - if err := m.Keys[len(m.Keys)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Keys[len(m.Keys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10093,7 +10093,7 @@ func (m *GCRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10107,7 +10107,7 @@ func (m *GCRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Threshold.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Threshold.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10123,7 +10123,7 @@ func (m *GCRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10137,13 +10137,13 @@ func (m *GCRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.TxnSpanGCThreshold.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TxnSpanGCThreshold.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -10162,8 +10162,8 @@ func (m *GCRequest) Unmarshal(data []byte) error { } return nil } -func (m *GCRequest_GCKey) Unmarshal(data []byte) error { - l := len(data) +func (m *GCRequest_GCKey) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -10175,7 +10175,7 @@ func (m *GCRequest_GCKey) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -10203,7 +10203,7 @@ func (m *GCRequest_GCKey) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10217,7 +10217,7 @@ func (m *GCRequest_GCKey) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Key = append(m.Key[:0], data[iNdEx:postIndex]...) + m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) if m.Key == nil { m.Key = []byte{} } @@ -10234,7 +10234,7 @@ func (m *GCRequest_GCKey) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10248,13 +10248,13 @@ func (m *GCRequest_GCKey) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Timestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -10273,8 +10273,8 @@ func (m *GCRequest_GCKey) Unmarshal(data []byte) error { } return nil } -func (m *GCResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *GCResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -10286,7 +10286,7 @@ func (m *GCResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -10314,7 +10314,7 @@ func (m *GCResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10328,13 +10328,13 @@ func (m *GCResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -10353,8 +10353,8 @@ func (m *GCResponse) Unmarshal(data []byte) error { } return nil } -func (m *PushTxnRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *PushTxnRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -10366,7 +10366,7 @@ func (m *PushTxnRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -10394,7 +10394,7 @@ func (m *PushTxnRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10408,7 +10408,7 @@ func (m *PushTxnRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10424,7 +10424,7 @@ func (m *PushTxnRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10438,7 +10438,7 @@ func (m *PushTxnRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.PusherTxn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.PusherTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10454,7 +10454,7 @@ func (m *PushTxnRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10468,7 +10468,7 @@ func (m *PushTxnRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.PusheeTxn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.PusheeTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10484,7 +10484,7 @@ func (m *PushTxnRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10498,7 +10498,7 @@ func (m *PushTxnRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.PushTo.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.PushTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10514,7 +10514,7 @@ func (m *PushTxnRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10528,7 +10528,7 @@ func (m *PushTxnRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Now.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Now.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10544,7 +10544,7 @@ func (m *PushTxnRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.PushType |= (PushTxnType(b) & 0x7F) << shift if b < 0x80 { @@ -10553,7 +10553,7 @@ func (m *PushTxnRequest) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -10572,8 +10572,8 @@ func (m *PushTxnRequest) Unmarshal(data []byte) error { } return nil } -func (m *PushTxnResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *PushTxnResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -10585,7 +10585,7 @@ func (m *PushTxnResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -10613,7 +10613,7 @@ func (m *PushTxnResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10627,7 +10627,7 @@ func (m *PushTxnResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10643,7 +10643,7 @@ func (m *PushTxnResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10657,13 +10657,13 @@ func (m *PushTxnResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.PusheeTxn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.PusheeTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -10682,8 +10682,8 @@ func (m *PushTxnResponse) Unmarshal(data []byte) error { } return nil } -func (m *ResolveIntentRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *ResolveIntentRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -10695,7 +10695,7 @@ func (m *ResolveIntentRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -10723,7 +10723,7 @@ func (m *ResolveIntentRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10737,7 +10737,7 @@ func (m *ResolveIntentRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10753,7 +10753,7 @@ func (m *ResolveIntentRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10767,7 +10767,7 @@ func (m *ResolveIntentRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.IntentTxn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.IntentTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10783,7 +10783,7 @@ func (m *ResolveIntentRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Status |= (TransactionStatus(b) & 0x7F) << shift if b < 0x80 { @@ -10802,7 +10802,7 @@ func (m *ResolveIntentRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10812,7 +10812,7 @@ func (m *ResolveIntentRequest) Unmarshal(data []byte) error { m.Poison = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -10831,8 +10831,8 @@ func (m *ResolveIntentRequest) Unmarshal(data []byte) error { } return nil } -func (m *ResolveIntentResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *ResolveIntentResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -10844,7 +10844,7 @@ func (m *ResolveIntentResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -10872,7 +10872,7 @@ func (m *ResolveIntentResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10886,13 +10886,13 @@ func (m *ResolveIntentResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -10911,8 +10911,8 @@ func (m *ResolveIntentResponse) Unmarshal(data []byte) error { } return nil } -func (m *ResolveIntentRangeRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *ResolveIntentRangeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -10924,7 +10924,7 @@ func (m *ResolveIntentRangeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -10952,7 +10952,7 @@ func (m *ResolveIntentRangeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10966,7 +10966,7 @@ func (m *ResolveIntentRangeRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10982,7 +10982,7 @@ func (m *ResolveIntentRangeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -10996,7 +10996,7 @@ func (m *ResolveIntentRangeRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.IntentTxn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.IntentTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11012,7 +11012,7 @@ func (m *ResolveIntentRangeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Status |= (TransactionStatus(b) & 0x7F) << shift if b < 0x80 { @@ -11031,7 +11031,7 @@ func (m *ResolveIntentRangeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -11041,7 +11041,7 @@ func (m *ResolveIntentRangeRequest) Unmarshal(data []byte) error { m.Poison = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -11060,8 +11060,8 @@ func (m *ResolveIntentRangeRequest) Unmarshal(data []byte) error { } return nil } -func (m *NoopResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *NoopResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -11073,7 +11073,7 @@ func (m *NoopResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -11091,7 +11091,7 @@ func (m *NoopResponse) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -11110,8 +11110,8 @@ func (m *NoopResponse) Unmarshal(data []byte) error { } return nil } -func (m *NoopRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *NoopRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -11123,7 +11123,7 @@ func (m *NoopRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -11141,7 +11141,7 @@ func (m *NoopRequest) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -11160,8 +11160,8 @@ func (m *NoopRequest) Unmarshal(data []byte) error { } return nil } -func (m *ResolveIntentRangeResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *ResolveIntentRangeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -11173,7 +11173,7 @@ func (m *ResolveIntentRangeResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -11201,7 +11201,7 @@ func (m *ResolveIntentRangeResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -11215,13 +11215,13 @@ func (m *ResolveIntentRangeResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -11240,8 +11240,8 @@ func (m *ResolveIntentRangeResponse) Unmarshal(data []byte) error { } return nil } -func (m *MergeRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *MergeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -11253,7 +11253,7 @@ func (m *MergeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -11281,7 +11281,7 @@ func (m *MergeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -11295,7 +11295,7 @@ func (m *MergeRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11311,7 +11311,7 @@ func (m *MergeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -11325,13 +11325,13 @@ func (m *MergeRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Value.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -11350,8 +11350,8 @@ func (m *MergeRequest) Unmarshal(data []byte) error { } return nil } -func (m *MergeResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *MergeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -11363,7 +11363,7 @@ func (m *MergeResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -11391,7 +11391,7 @@ func (m *MergeResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -11405,13 +11405,13 @@ func (m *MergeResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -11430,8 +11430,8 @@ func (m *MergeResponse) Unmarshal(data []byte) error { } return nil } -func (m *TruncateLogRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *TruncateLogRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -11443,7 +11443,7 @@ func (m *TruncateLogRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -11471,7 +11471,7 @@ func (m *TruncateLogRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -11485,7 +11485,7 @@ func (m *TruncateLogRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11501,7 +11501,7 @@ func (m *TruncateLogRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Index |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -11520,7 +11520,7 @@ func (m *TruncateLogRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeID |= (RangeID(b) & 0x7F) << shift if b < 0x80 { @@ -11529,7 +11529,7 @@ func (m *TruncateLogRequest) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -11548,8 +11548,8 @@ func (m *TruncateLogRequest) Unmarshal(data []byte) error { } return nil } -func (m *TruncateLogResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *TruncateLogResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -11561,7 +11561,7 @@ func (m *TruncateLogResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -11589,7 +11589,7 @@ func (m *TruncateLogResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -11603,13 +11603,13 @@ func (m *TruncateLogResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -11628,8 +11628,8 @@ func (m *TruncateLogResponse) Unmarshal(data []byte) error { } return nil } -func (m *RequestLeaseRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *RequestLeaseRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -11641,7 +11641,7 @@ func (m *RequestLeaseRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -11669,7 +11669,7 @@ func (m *RequestLeaseRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -11683,7 +11683,7 @@ func (m *RequestLeaseRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11699,7 +11699,7 @@ func (m *RequestLeaseRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -11713,13 +11713,13 @@ func (m *RequestLeaseRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Lease.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Lease.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -11738,8 +11738,8 @@ func (m *RequestLeaseRequest) Unmarshal(data []byte) error { } return nil } -func (m *TransferLeaseRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *TransferLeaseRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -11751,7 +11751,7 @@ func (m *TransferLeaseRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -11779,7 +11779,7 @@ func (m *TransferLeaseRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -11793,7 +11793,7 @@ func (m *TransferLeaseRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11809,7 +11809,7 @@ func (m *TransferLeaseRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -11823,13 +11823,13 @@ func (m *TransferLeaseRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Lease.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Lease.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -11848,8 +11848,8 @@ func (m *TransferLeaseRequest) Unmarshal(data []byte) error { } return nil } -func (m *LeaseInfoRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *LeaseInfoRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -11861,7 +11861,7 @@ func (m *LeaseInfoRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -11889,7 +11889,7 @@ func (m *LeaseInfoRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -11903,13 +11903,13 @@ func (m *LeaseInfoRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -11928,8 +11928,8 @@ func (m *LeaseInfoRequest) Unmarshal(data []byte) error { } return nil } -func (m *LeaseInfoResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *LeaseInfoResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -11941,7 +11941,7 @@ func (m *LeaseInfoResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -11969,7 +11969,7 @@ func (m *LeaseInfoResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -11983,7 +11983,7 @@ func (m *LeaseInfoResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11999,7 +11999,7 @@ func (m *LeaseInfoResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12016,13 +12016,13 @@ func (m *LeaseInfoResponse) Unmarshal(data []byte) error { if m.Lease == nil { m.Lease = &Lease{} } - if err := m.Lease.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Lease.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -12041,8 +12041,8 @@ func (m *LeaseInfoResponse) Unmarshal(data []byte) error { } return nil } -func (m *RequestLeaseResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *RequestLeaseResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -12054,7 +12054,7 @@ func (m *RequestLeaseResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -12082,7 +12082,7 @@ func (m *RequestLeaseResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12096,13 +12096,13 @@ func (m *RequestLeaseResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -12121,8 +12121,8 @@ func (m *RequestLeaseResponse) Unmarshal(data []byte) error { } return nil } -func (m *ComputeChecksumRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *ComputeChecksumRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -12134,7 +12134,7 @@ func (m *ComputeChecksumRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -12162,7 +12162,7 @@ func (m *ComputeChecksumRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12176,7 +12176,7 @@ func (m *ComputeChecksumRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12192,7 +12192,7 @@ func (m *ComputeChecksumRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Version |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -12211,7 +12211,7 @@ func (m *ComputeChecksumRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12225,7 +12225,7 @@ func (m *ComputeChecksumRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ChecksumID.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ChecksumID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12241,7 +12241,7 @@ func (m *ComputeChecksumRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12251,7 +12251,7 @@ func (m *ComputeChecksumRequest) Unmarshal(data []byte) error { m.Snapshot = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -12270,8 +12270,8 @@ func (m *ComputeChecksumRequest) Unmarshal(data []byte) error { } return nil } -func (m *ComputeChecksumResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *ComputeChecksumResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -12283,7 +12283,7 @@ func (m *ComputeChecksumResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -12311,7 +12311,7 @@ func (m *ComputeChecksumResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12325,13 +12325,13 @@ func (m *ComputeChecksumResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResponseHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResponseHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -12350,8 +12350,8 @@ func (m *ComputeChecksumResponse) Unmarshal(data []byte) error { } return nil } -func (m *DeprecatedVerifyChecksumRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *DeprecatedVerifyChecksumRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -12363,7 +12363,7 @@ func (m *DeprecatedVerifyChecksumRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -12391,7 +12391,7 @@ func (m *DeprecatedVerifyChecksumRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12405,13 +12405,13 @@ func (m *DeprecatedVerifyChecksumRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.NoopRequest.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.NoopRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -12430,8 +12430,8 @@ func (m *DeprecatedVerifyChecksumRequest) Unmarshal(data []byte) error { } return nil } -func (m *DeprecatedVerifyChecksumResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *DeprecatedVerifyChecksumResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -12443,7 +12443,7 @@ func (m *DeprecatedVerifyChecksumResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -12471,7 +12471,7 @@ func (m *DeprecatedVerifyChecksumResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12485,13 +12485,13 @@ func (m *DeprecatedVerifyChecksumResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.NoopResponse.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.NoopResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -12510,8 +12510,8 @@ func (m *DeprecatedVerifyChecksumResponse) Unmarshal(data []byte) error { } return nil } -func (m *RequestUnion) Unmarshal(data []byte) error { - l := len(data) +func (m *RequestUnion) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -12523,7 +12523,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -12551,7 +12551,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12568,7 +12568,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.Get == nil { m.Get = &GetRequest{} } - if err := m.Get.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Get.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12584,7 +12584,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12601,7 +12601,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.Put == nil { m.Put = &PutRequest{} } - if err := m.Put.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Put.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12617,7 +12617,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12634,7 +12634,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.ConditionalPut == nil { m.ConditionalPut = &ConditionalPutRequest{} } - if err := m.ConditionalPut.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ConditionalPut.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12650,7 +12650,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12667,7 +12667,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.Increment == nil { m.Increment = &IncrementRequest{} } - if err := m.Increment.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Increment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12683,7 +12683,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12700,7 +12700,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.Delete == nil { m.Delete = &DeleteRequest{} } - if err := m.Delete.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Delete.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12716,7 +12716,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12733,7 +12733,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.DeleteRange == nil { m.DeleteRange = &DeleteRangeRequest{} } - if err := m.DeleteRange.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.DeleteRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12749,7 +12749,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12766,7 +12766,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.Scan == nil { m.Scan = &ScanRequest{} } - if err := m.Scan.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Scan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12782,7 +12782,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12799,7 +12799,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.BeginTransaction == nil { m.BeginTransaction = &BeginTransactionRequest{} } - if err := m.BeginTransaction.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.BeginTransaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12815,7 +12815,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12832,7 +12832,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.EndTransaction == nil { m.EndTransaction = &EndTransactionRequest{} } - if err := m.EndTransaction.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.EndTransaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12848,7 +12848,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12865,7 +12865,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.AdminSplit == nil { m.AdminSplit = &AdminSplitRequest{} } - if err := m.AdminSplit.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.AdminSplit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12881,7 +12881,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12898,7 +12898,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.AdminMerge == nil { m.AdminMerge = &AdminMergeRequest{} } - if err := m.AdminMerge.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.AdminMerge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12914,7 +12914,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12931,7 +12931,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.HeartbeatTxn == nil { m.HeartbeatTxn = &HeartbeatTxnRequest{} } - if err := m.HeartbeatTxn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.HeartbeatTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12947,7 +12947,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12964,7 +12964,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.Gc == nil { m.Gc = &GCRequest{} } - if err := m.Gc.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Gc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12980,7 +12980,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -12997,7 +12997,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.PushTxn == nil { m.PushTxn = &PushTxnRequest{} } - if err := m.PushTxn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.PushTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13013,7 +13013,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13030,7 +13030,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.RangeLookup == nil { m.RangeLookup = &RangeLookupRequest{} } - if err := m.RangeLookup.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RangeLookup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13046,7 +13046,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13063,7 +13063,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.ResolveIntent == nil { m.ResolveIntent = &ResolveIntentRequest{} } - if err := m.ResolveIntent.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResolveIntent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13079,7 +13079,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13096,7 +13096,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.ResolveIntentRange == nil { m.ResolveIntentRange = &ResolveIntentRangeRequest{} } - if err := m.ResolveIntentRange.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResolveIntentRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13112,7 +13112,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13129,7 +13129,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.Merge == nil { m.Merge = &MergeRequest{} } - if err := m.Merge.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Merge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13145,7 +13145,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13162,7 +13162,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.TruncateLog == nil { m.TruncateLog = &TruncateLogRequest{} } - if err := m.TruncateLog.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TruncateLog.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13178,7 +13178,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13195,7 +13195,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.RequestLease == nil { m.RequestLease = &RequestLeaseRequest{} } - if err := m.RequestLease.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RequestLease.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13211,7 +13211,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13228,7 +13228,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.ReverseScan == nil { m.ReverseScan = &ReverseScanRequest{} } - if err := m.ReverseScan.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ReverseScan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13244,7 +13244,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13261,7 +13261,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.ComputeChecksum == nil { m.ComputeChecksum = &ComputeChecksumRequest{} } - if err := m.ComputeChecksum.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ComputeChecksum.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13277,7 +13277,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13294,7 +13294,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.DeprecatedVerifyChecksum == nil { m.DeprecatedVerifyChecksum = &DeprecatedVerifyChecksumRequest{} } - if err := m.DeprecatedVerifyChecksum.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.DeprecatedVerifyChecksum.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13310,7 +13310,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13327,7 +13327,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.CheckConsistency == nil { m.CheckConsistency = &CheckConsistencyRequest{} } - if err := m.CheckConsistency.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.CheckConsistency.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13343,7 +13343,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13360,7 +13360,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.Noop == nil { m.Noop = &NoopRequest{} } - if err := m.Noop.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Noop.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13376,7 +13376,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13393,7 +13393,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.InitPut == nil { m.InitPut = &InitPutRequest{} } - if err := m.InitPut.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.InitPut.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13409,7 +13409,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13426,7 +13426,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.ChangeFrozen == nil { m.ChangeFrozen = &ChangeFrozenRequest{} } - if err := m.ChangeFrozen.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ChangeFrozen.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13442,7 +13442,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13459,7 +13459,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.TransferLease == nil { m.TransferLease = &TransferLeaseRequest{} } - if err := m.TransferLease.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TransferLease.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13475,7 +13475,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13492,7 +13492,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.AdminTransferLease == nil { m.AdminTransferLease = &AdminTransferLeaseRequest{} } - if err := m.AdminTransferLease.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.AdminTransferLease.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13508,7 +13508,7 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13525,13 +13525,13 @@ func (m *RequestUnion) Unmarshal(data []byte) error { if m.LeaseInfo == nil { m.LeaseInfo = &LeaseInfoRequest{} } - if err := m.LeaseInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.LeaseInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -13550,8 +13550,8 @@ func (m *RequestUnion) Unmarshal(data []byte) error { } return nil } -func (m *ResponseUnion) Unmarshal(data []byte) error { - l := len(data) +func (m *ResponseUnion) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -13563,7 +13563,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -13591,7 +13591,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13608,7 +13608,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.Get == nil { m.Get = &GetResponse{} } - if err := m.Get.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Get.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13624,7 +13624,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13641,7 +13641,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.Put == nil { m.Put = &PutResponse{} } - if err := m.Put.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Put.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13657,7 +13657,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13674,7 +13674,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.ConditionalPut == nil { m.ConditionalPut = &ConditionalPutResponse{} } - if err := m.ConditionalPut.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ConditionalPut.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13690,7 +13690,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13707,7 +13707,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.Increment == nil { m.Increment = &IncrementResponse{} } - if err := m.Increment.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Increment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13723,7 +13723,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13740,7 +13740,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.Delete == nil { m.Delete = &DeleteResponse{} } - if err := m.Delete.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Delete.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13756,7 +13756,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13773,7 +13773,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.DeleteRange == nil { m.DeleteRange = &DeleteRangeResponse{} } - if err := m.DeleteRange.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.DeleteRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13789,7 +13789,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13806,7 +13806,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.Scan == nil { m.Scan = &ScanResponse{} } - if err := m.Scan.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Scan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13822,7 +13822,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13839,7 +13839,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.BeginTransaction == nil { m.BeginTransaction = &BeginTransactionResponse{} } - if err := m.BeginTransaction.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.BeginTransaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13855,7 +13855,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13872,7 +13872,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.EndTransaction == nil { m.EndTransaction = &EndTransactionResponse{} } - if err := m.EndTransaction.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.EndTransaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13888,7 +13888,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13905,7 +13905,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.AdminSplit == nil { m.AdminSplit = &AdminSplitResponse{} } - if err := m.AdminSplit.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.AdminSplit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13921,7 +13921,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13938,7 +13938,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.AdminMerge == nil { m.AdminMerge = &AdminMergeResponse{} } - if err := m.AdminMerge.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.AdminMerge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13954,7 +13954,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -13971,7 +13971,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.HeartbeatTxn == nil { m.HeartbeatTxn = &HeartbeatTxnResponse{} } - if err := m.HeartbeatTxn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.HeartbeatTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13987,7 +13987,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14004,7 +14004,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.Gc == nil { m.Gc = &GCResponse{} } - if err := m.Gc.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Gc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14020,7 +14020,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14037,7 +14037,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.PushTxn == nil { m.PushTxn = &PushTxnResponse{} } - if err := m.PushTxn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.PushTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14053,7 +14053,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14070,7 +14070,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.RangeLookup == nil { m.RangeLookup = &RangeLookupResponse{} } - if err := m.RangeLookup.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RangeLookup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14086,7 +14086,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14103,7 +14103,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.ResolveIntent == nil { m.ResolveIntent = &ResolveIntentResponse{} } - if err := m.ResolveIntent.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResolveIntent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14119,7 +14119,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14136,7 +14136,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.ResolveIntentRange == nil { m.ResolveIntentRange = &ResolveIntentRangeResponse{} } - if err := m.ResolveIntentRange.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResolveIntentRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14152,7 +14152,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14169,7 +14169,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.Merge == nil { m.Merge = &MergeResponse{} } - if err := m.Merge.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Merge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14185,7 +14185,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14202,7 +14202,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.TruncateLog == nil { m.TruncateLog = &TruncateLogResponse{} } - if err := m.TruncateLog.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TruncateLog.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14218,7 +14218,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14235,7 +14235,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.RequestLease == nil { m.RequestLease = &RequestLeaseResponse{} } - if err := m.RequestLease.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RequestLease.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14251,7 +14251,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14268,7 +14268,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.ReverseScan == nil { m.ReverseScan = &ReverseScanResponse{} } - if err := m.ReverseScan.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ReverseScan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14284,7 +14284,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14301,7 +14301,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.ComputeChecksum == nil { m.ComputeChecksum = &ComputeChecksumResponse{} } - if err := m.ComputeChecksum.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ComputeChecksum.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14317,7 +14317,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14334,7 +14334,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.DeprecatedVerifyResponse == nil { m.DeprecatedVerifyResponse = &DeprecatedVerifyChecksumResponse{} } - if err := m.DeprecatedVerifyResponse.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.DeprecatedVerifyResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14350,7 +14350,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14367,7 +14367,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.CheckConsistency == nil { m.CheckConsistency = &CheckConsistencyResponse{} } - if err := m.CheckConsistency.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.CheckConsistency.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14383,7 +14383,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14400,7 +14400,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.Noop == nil { m.Noop = &NoopResponse{} } - if err := m.Noop.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Noop.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14416,7 +14416,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14433,7 +14433,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.InitPut == nil { m.InitPut = &InitPutResponse{} } - if err := m.InitPut.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.InitPut.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14449,7 +14449,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14466,7 +14466,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.ChangeFrozen == nil { m.ChangeFrozen = &ChangeFrozenResponse{} } - if err := m.ChangeFrozen.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ChangeFrozen.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14482,7 +14482,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14499,7 +14499,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.AdminTransferLease == nil { m.AdminTransferLease = &AdminTransferLeaseResponse{} } - if err := m.AdminTransferLease.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.AdminTransferLease.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14515,7 +14515,7 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14532,13 +14532,13 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { if m.LeaseInfo == nil { m.LeaseInfo = &LeaseInfoResponse{} } - if err := m.LeaseInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.LeaseInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -14557,8 +14557,8 @@ func (m *ResponseUnion) Unmarshal(data []byte) error { } return nil } -func (m *Header) Unmarshal(data []byte) error { - l := len(data) +func (m *Header) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -14570,7 +14570,7 @@ func (m *Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -14598,7 +14598,7 @@ func (m *Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14612,7 +14612,7 @@ func (m *Header) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Timestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14628,7 +14628,7 @@ func (m *Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14642,7 +14642,7 @@ func (m *Header) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Replica.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Replica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14658,7 +14658,7 @@ func (m *Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeID |= (RangeID(b) & 0x7F) << shift if b < 0x80 { @@ -14674,14 +14674,14 @@ func (m *Header) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - v = uint64(data[iNdEx-8]) - v |= uint64(data[iNdEx-7]) << 8 - v |= uint64(data[iNdEx-6]) << 16 - v |= uint64(data[iNdEx-5]) << 24 - v |= uint64(data[iNdEx-4]) << 32 - v |= uint64(data[iNdEx-3]) << 40 - v |= uint64(data[iNdEx-2]) << 48 - v |= uint64(data[iNdEx-1]) << 56 + v = uint64(dAtA[iNdEx-8]) + v |= uint64(dAtA[iNdEx-7]) << 8 + v |= uint64(dAtA[iNdEx-6]) << 16 + v |= uint64(dAtA[iNdEx-5]) << 24 + v |= uint64(dAtA[iNdEx-4]) << 32 + v |= uint64(dAtA[iNdEx-3]) << 40 + v |= uint64(dAtA[iNdEx-2]) << 48 + v |= uint64(dAtA[iNdEx-1]) << 56 m.UserPriority = UserPriority(math.Float64frombits(v)) case 5: if wireType != 2 { @@ -14695,7 +14695,7 @@ func (m *Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14712,7 +14712,7 @@ func (m *Header) Unmarshal(data []byte) error { if m.Txn == nil { m.Txn = &Transaction{} } - if err := m.Txn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Txn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14728,7 +14728,7 @@ func (m *Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ReadConsistency |= (ReadConsistencyType(b) & 0x7F) << shift if b < 0x80 { @@ -14747,7 +14747,7 @@ func (m *Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14764,7 +14764,7 @@ func (m *Header) Unmarshal(data []byte) error { if m.TraceContext == nil { m.TraceContext = &cockroach_util_tracing.SpanContextCarrier{} } - if err := m.TraceContext.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TraceContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14780,7 +14780,7 @@ func (m *Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.MaxSpanRequestKeys |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -14799,7 +14799,7 @@ func (m *Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14819,7 +14819,7 @@ func (m *Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14829,7 +14829,7 @@ func (m *Header) Unmarshal(data []byte) error { m.ReturnRangeInfo = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -14848,8 +14848,8 @@ func (m *Header) Unmarshal(data []byte) error { } return nil } -func (m *BatchRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *BatchRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -14861,7 +14861,7 @@ func (m *BatchRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -14889,7 +14889,7 @@ func (m *BatchRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14903,7 +14903,7 @@ func (m *BatchRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14919,7 +14919,7 @@ func (m *BatchRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -14934,13 +14934,13 @@ func (m *BatchRequest) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Requests = append(m.Requests, RequestUnion{}) - if err := m.Requests[len(m.Requests)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Requests[len(m.Requests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -14959,8 +14959,8 @@ func (m *BatchRequest) Unmarshal(data []byte) error { } return nil } -func (m *BatchResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *BatchResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -14972,7 +14972,7 @@ func (m *BatchResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -15000,7 +15000,7 @@ func (m *BatchResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -15014,7 +15014,7 @@ func (m *BatchResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.BatchResponse_Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.BatchResponse_Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15030,7 +15030,7 @@ func (m *BatchResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -15045,13 +15045,13 @@ func (m *BatchResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Responses = append(m.Responses, ResponseUnion{}) - if err := m.Responses[len(m.Responses)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Responses[len(m.Responses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -15070,8 +15070,8 @@ func (m *BatchResponse) Unmarshal(data []byte) error { } return nil } -func (m *BatchResponse_Header) Unmarshal(data []byte) error { - l := len(data) +func (m *BatchResponse_Header) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -15083,7 +15083,7 @@ func (m *BatchResponse_Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -15111,7 +15111,7 @@ func (m *BatchResponse_Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -15128,7 +15128,7 @@ func (m *BatchResponse_Header) Unmarshal(data []byte) error { if m.Error == nil { m.Error = &Error{} } - if err := m.Error.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15144,7 +15144,7 @@ func (m *BatchResponse_Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -15158,7 +15158,7 @@ func (m *BatchResponse_Header) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Timestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15174,7 +15174,7 @@ func (m *BatchResponse_Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -15191,7 +15191,7 @@ func (m *BatchResponse_Header) Unmarshal(data []byte) error { if m.Txn == nil { m.Txn = &Transaction{} } - if err := m.Txn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Txn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15207,7 +15207,7 @@ func (m *BatchResponse_Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -15222,7 +15222,7 @@ func (m *BatchResponse_Header) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.CollectedSpans = append(m.CollectedSpans, make([]byte, postIndex-iNdEx)) - copy(m.CollectedSpans[len(m.CollectedSpans)-1], data[iNdEx:postIndex]) + copy(m.CollectedSpans[len(m.CollectedSpans)-1], dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { @@ -15236,7 +15236,7 @@ func (m *BatchResponse_Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -15250,13 +15250,13 @@ func (m *BatchResponse_Header) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Now.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Now.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -15275,8 +15275,8 @@ func (m *BatchResponse_Header) Unmarshal(data []byte) error { } return nil } -func skipApi(data []byte) (n int, err error) { - l := len(data) +func skipApi(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -15287,7 +15287,7 @@ func skipApi(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -15305,7 +15305,7 @@ func skipApi(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -15322,7 +15322,7 @@ func skipApi(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -15345,7 +15345,7 @@ func skipApi(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -15356,7 +15356,7 @@ func skipApi(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipApi(data[start:]) + next, err := skipApi(dAtA[start:]) if err != nil { return 0, err } @@ -15383,7 +15383,7 @@ var ( func init() { proto.RegisterFile("cockroach/pkg/roachpb/api.proto", fileDescriptorApi) } var fileDescriptorApi = []byte{ - // 3485 bytes of a gzipped FileDescriptorProto + // 3486 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x5b, 0xdb, 0x6f, 0x1b, 0xc7, 0xd5, 0xf7, 0xf2, 0x22, 0x51, 0x87, 0x14, 0x45, 0x8d, 0x65, 0x9b, 0x56, 0x6c, 0x51, 0xde, 0xf8, 0xa2, 0x38, 0x31, 0x65, 0xc8, 0x9f, 0xbf, 0x2f, 0xce, 0xe7, 0x00, 0x31, 0x29, 0xc5, 0xa6, 0x2d, @@ -15588,18 +15588,18 @@ var fileDescriptorApi = []byte{ 0x11, 0xf1, 0x0f, 0x49, 0x98, 0xe6, 0xdd, 0xea, 0x65, 0x20, 0x83, 0xfd, 0x0a, 0x5b, 0x1b, 0x02, 0x1a, 0xd1, 0xbd, 0x5c, 0x85, 0x29, 0x6f, 0x71, 0xf6, 0xba, 0xb9, 0x38, 0x22, 0x4b, 0xeb, 0xef, 0x67, 0x5f, 0x71, 0xfe, 0xc7, 0x89, 0xde, 0x9c, 0x2d, 0x43, 0x9a, 0x7e, 0x53, 0xc7, 0xbb, 0x16, - 0x96, 0xa5, 0x5f, 0x23, 0xe5, 0x12, 0xab, 0x46, 0xe6, 0x78, 0xfd, 0xcb, 0xbd, 0x96, 0x38, 0xc4, - 0x57, 0x65, 0x17, 0xc8, 0x09, 0xa3, 0xd5, 0xa2, 0x6f, 0x6b, 0x79, 0x24, 0xa5, 0x16, 0x93, 0x4b, - 0x39, 0x72, 0x6c, 0xe0, 0x62, 0x16, 0x44, 0x87, 0x7b, 0x13, 0xc0, 0x06, 0xee, 0xe2, 0x3a, 0x1c, - 0x0d, 0x99, 0x66, 0x28, 0x0f, 0x50, 0xbd, 0xb7, 0xb1, 0x59, 0xdb, 0xac, 0xaf, 0x6d, 0xd4, 0x0b, - 0x47, 0xd0, 0x34, 0x4c, 0x91, 0xff, 0xd7, 0x36, 0x36, 0xb7, 0x36, 0x0b, 0x02, 0x2a, 0x40, 0xae, - 0xb6, 0xe1, 0xab, 0x90, 0x98, 0x4f, 0xfd, 0xf0, 0xf7, 0x0b, 0x47, 0x2e, 0xbe, 0x09, 0x59, 0xdf, - 0x1b, 0x02, 0x84, 0x20, 0x7f, 0x7f, 0x6b, 0xf3, 0x96, 0x5c, 0xaf, 0xdd, 0x5d, 0xdb, 0xac, 0xdf, - 0xb8, 0x7b, 0xbf, 0x70, 0x84, 0x20, 0x53, 0xd9, 0x8d, 0xca, 0x3d, 0xa9, 0x5e, 0x10, 0x7a, 0xff, - 0xd7, 0xef, 0x6d, 0x55, 0x6f, 0x15, 0x12, 0xbd, 0xff, 0xdf, 0xd8, 0x5a, 0x93, 0xde, 0x2e, 0x24, - 0x19, 0xf0, 0xca, 0x5b, 0x90, 0xf1, 0xde, 0x7c, 0xa2, 0x75, 0x48, 0xd3, 0xc0, 0x41, 0xa5, 0xe8, - 0x90, 0xa2, 0xc1, 0x39, 0xbf, 0x38, 0x2e, 0xe6, 0x44, 0x8a, 0xbc, 0xd6, 0xfd, 0x2a, 0x90, 0x2b, - 0x67, 0x9e, 0xfe, 0x6d, 0xe1, 0xc8, 0xd3, 0xbd, 0x05, 0xe1, 0xb3, 0xbd, 0x05, 0xe1, 0xcf, 0x7b, - 0x0b, 0xc2, 0x5f, 0xf7, 0x16, 0x84, 0x9f, 0xfe, 0x7d, 0xe1, 0xc8, 0x3b, 0x93, 0x5c, 0xe5, 0xdf, - 0x01, 0x00, 0x00, 0xff, 0xff, 0x0c, 0x32, 0xc9, 0x40, 0x47, 0x3a, 0x00, 0x00, + 0x96, 0xa5, 0x5f, 0x23, 0xe5, 0x12, 0xab, 0x46, 0xe6, 0x78, 0xfd, 0x50, 0xaf, 0x25, 0x7a, 0x82, + 0x43, 0x7c, 0x55, 0x76, 0x81, 0x9c, 0x30, 0x5a, 0x2d, 0xfa, 0xb6, 0x96, 0x47, 0x52, 0x6a, 0x31, + 0xb9, 0x94, 0x23, 0xc7, 0x06, 0x2e, 0x66, 0x41, 0x74, 0xb8, 0x37, 0x01, 0x6c, 0xe0, 0x2e, 0xae, + 0xc3, 0xd1, 0x90, 0x69, 0x86, 0xf2, 0x00, 0xd5, 0x7b, 0x1b, 0x9b, 0xb5, 0xcd, 0xfa, 0xda, 0x46, + 0xbd, 0x70, 0x04, 0x4d, 0xc3, 0x14, 0xf9, 0x7f, 0x6d, 0x63, 0x73, 0x6b, 0xb3, 0x20, 0xa0, 0x02, + 0xe4, 0x6a, 0x1b, 0xbe, 0x0a, 0x89, 0xf9, 0xd4, 0x0f, 0x7f, 0xbf, 0x70, 0xe4, 0xe2, 0x9b, 0x90, + 0xf5, 0xbd, 0x21, 0x40, 0x08, 0xf2, 0xf7, 0xb7, 0x36, 0x6f, 0xc9, 0xf5, 0xda, 0xdd, 0xb5, 0xcd, + 0xfa, 0x8d, 0xbb, 0xf7, 0x0b, 0x47, 0x08, 0x32, 0x95, 0xdd, 0xa8, 0xdc, 0x93, 0xea, 0x05, 0xa1, + 0xf7, 0x7f, 0xfd, 0xde, 0x56, 0xf5, 0x56, 0x21, 0xd1, 0xfb, 0xff, 0x8d, 0xad, 0x35, 0xe9, 0xed, + 0x42, 0x92, 0x01, 0xaf, 0xbc, 0x05, 0x19, 0xef, 0xcd, 0x27, 0x5a, 0x87, 0x34, 0x0d, 0x1c, 0x54, + 0x8a, 0x0e, 0x29, 0x1a, 0x9c, 0xf3, 0x8b, 0xe3, 0x62, 0x4e, 0xa4, 0xc8, 0x6b, 0xdd, 0xaf, 0x02, + 0xb9, 0x72, 0xe6, 0xe9, 0xdf, 0x16, 0x8e, 0x3c, 0xdd, 0x5b, 0x10, 0x3e, 0xdb, 0x5b, 0x10, 0xfe, + 0xbc, 0xb7, 0x20, 0xfc, 0x75, 0x6f, 0x41, 0xf8, 0xe9, 0xdf, 0x17, 0x8e, 0xbc, 0x33, 0xc9, 0x55, + 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x51, 0x1e, 0x95, 0x5a, 0x47, 0x3a, 0x00, 0x00, } diff --git a/pkg/roachpb/data.pb.go b/pkg/roachpb/data.pb.go index a7665da12d80..76e0cf59d54e 100644 --- a/pkg/roachpb/data.pb.go +++ b/pkg/roachpb/data.pb.go @@ -538,61 +538,61 @@ func init() { proto.RegisterEnum("cockroach.roachpb.ReplicaChangeType", ReplicaChangeType_name, ReplicaChangeType_value) proto.RegisterEnum("cockroach.roachpb.TransactionStatus", TransactionStatus_name, TransactionStatus_value) } -func (m *Span) Marshal() (data []byte, err error) { +func (m *Span) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Span) MarshalTo(data []byte) (int, error) { +func (m *Span) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Key != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintData(data, i, uint64(len(m.Key))) - i += copy(data[i:], m.Key) + i = encodeVarintData(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if m.EndKey != nil { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintData(data, i, uint64(len(m.EndKey))) - i += copy(data[i:], m.EndKey) + i = encodeVarintData(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } return i, nil } -func (m *Value) Marshal() (data []byte, err error) { +func (m *Value) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Value) MarshalTo(data []byte) (int, error) { +func (m *Value) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.RawBytes != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(len(m.RawBytes))) - i += copy(data[i:], m.RawBytes) + i = encodeVarintData(dAtA, i, uint64(len(m.RawBytes))) + i += copy(dAtA[i:], m.RawBytes) } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(m.Timestamp.Size())) - n1, err := m.Timestamp.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Timestamp.Size())) + n1, err := m.Timestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -600,31 +600,31 @@ func (m *Value) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *KeyValue) Marshal() (data []byte, err error) { +func (m *KeyValue) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *KeyValue) MarshalTo(data []byte) (int, error) { +func (m *KeyValue) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Key != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(len(m.Key))) - i += copy(data[i:], m.Key) + i = encodeVarintData(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(m.Value.Size())) - n2, err := m.Value.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Value.Size())) + n2, err := m.Value.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -632,65 +632,65 @@ func (m *KeyValue) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *StoreIdent) Marshal() (data []byte, err error) { +func (m *StoreIdent) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *StoreIdent) MarshalTo(data []byte) (int, error) { +func (m *StoreIdent) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(m.ClusterID.Size())) - n3, err := m.ClusterID.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.ClusterID.Size())) + n3, err := m.ClusterID.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintData(data, i, uint64(m.NodeID)) - data[i] = 0x18 + i = encodeVarintData(dAtA, i, uint64(m.NodeID)) + dAtA[i] = 0x18 i++ - i = encodeVarintData(data, i, uint64(m.StoreID)) + i = encodeVarintData(dAtA, i, uint64(m.StoreID)) return i, nil } -func (m *SplitTrigger) Marshal() (data []byte, err error) { +func (m *SplitTrigger) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SplitTrigger) MarshalTo(data []byte) (int, error) { +func (m *SplitTrigger) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(m.LeftDesc.Size())) - n4, err := m.LeftDesc.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.LeftDesc.Size())) + n4, err := m.LeftDesc.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n4 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(m.RightDesc.Size())) - n5, err := m.RightDesc.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.RightDesc.Size())) + n5, err := m.RightDesc.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -698,33 +698,33 @@ func (m *SplitTrigger) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *MergeTrigger) Marshal() (data []byte, err error) { +func (m *MergeTrigger) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *MergeTrigger) MarshalTo(data []byte) (int, error) { +func (m *MergeTrigger) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(m.LeftDesc.Size())) - n6, err := m.LeftDesc.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.LeftDesc.Size())) + n6, err := m.LeftDesc.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n6 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(m.RightDesc.Size())) - n7, err := m.RightDesc.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.RightDesc.Size())) + n7, err := m.RightDesc.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -732,78 +732,78 @@ func (m *MergeTrigger) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ChangeReplicasTrigger) Marshal() (data []byte, err error) { +func (m *ChangeReplicasTrigger) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ChangeReplicasTrigger) MarshalTo(data []byte) (int, error) { +func (m *ChangeReplicasTrigger) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintData(data, i, uint64(m.ChangeType)) - data[i] = 0x12 + i = encodeVarintData(dAtA, i, uint64(m.ChangeType)) + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(m.Replica.Size())) - n8, err := m.Replica.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Replica.Size())) + n8, err := m.Replica.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n8 if len(m.UpdatedReplicas) > 0 { for _, msg := range m.UpdatedReplicas { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintData(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintData(data, i, uint64(m.NextReplicaID)) + i = encodeVarintData(dAtA, i, uint64(m.NextReplicaID)) return i, nil } -func (m *ModifiedSpanTrigger) Marshal() (data []byte, err error) { +func (m *ModifiedSpanTrigger) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ModifiedSpanTrigger) MarshalTo(data []byte) (int, error) { +func (m *ModifiedSpanTrigger) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ if m.SystemConfigSpan { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ if m.NodeLivenessSpan != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(m.NodeLivenessSpan.Size())) - n9, err := m.NodeLivenessSpan.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.NodeLivenessSpan.Size())) + n9, err := m.NodeLivenessSpan.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -812,56 +812,56 @@ func (m *ModifiedSpanTrigger) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *InternalCommitTrigger) Marshal() (data []byte, err error) { +func (m *InternalCommitTrigger) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *InternalCommitTrigger) MarshalTo(data []byte) (int, error) { +func (m *InternalCommitTrigger) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.SplitTrigger != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(m.SplitTrigger.Size())) - n10, err := m.SplitTrigger.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.SplitTrigger.Size())) + n10, err := m.SplitTrigger.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n10 } if m.MergeTrigger != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(m.MergeTrigger.Size())) - n11, err := m.MergeTrigger.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.MergeTrigger.Size())) + n11, err := m.MergeTrigger.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n11 } if m.ChangeReplicasTrigger != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintData(data, i, uint64(m.ChangeReplicasTrigger.Size())) - n12, err := m.ChangeReplicasTrigger.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.ChangeReplicasTrigger.Size())) + n12, err := m.ChangeReplicasTrigger.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n12 } if m.ModifiedSpanTrigger != nil { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintData(data, i, uint64(m.ModifiedSpanTrigger.Size())) - n13, err := m.ModifiedSpanTrigger.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.ModifiedSpanTrigger.Size())) + n13, err := m.ModifiedSpanTrigger.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -870,58 +870,58 @@ func (m *InternalCommitTrigger) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *Transaction) Marshal() (data []byte, err error) { +func (m *Transaction) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Transaction) MarshalTo(data []byte) (int, error) { +func (m *Transaction) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(m.TxnMeta.Size())) - n14, err := m.TxnMeta.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.TxnMeta.Size())) + n14, err := m.TxnMeta.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n14 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - data[i] = 0x20 + i = encodeVarintData(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x20 i++ - i = encodeVarintData(data, i, uint64(m.Status)) + i = encodeVarintData(dAtA, i, uint64(m.Status)) if m.LastHeartbeat != nil { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintData(data, i, uint64(m.LastHeartbeat.Size())) - n15, err := m.LastHeartbeat.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.LastHeartbeat.Size())) + n15, err := m.LastHeartbeat.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n15 } - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintData(data, i, uint64(m.OrigTimestamp.Size())) - n16, err := m.OrigTimestamp.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.OrigTimestamp.Size())) + n16, err := m.OrigTimestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n16 - data[i] = 0x3a + dAtA[i] = 0x3a i++ - i = encodeVarintData(data, i, uint64(m.MaxTimestamp.Size())) - n17, err := m.MaxTimestamp.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.MaxTimestamp.Size())) + n17, err := m.MaxTimestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -933,7 +933,7 @@ func (m *Transaction) MarshalTo(data []byte) (int, error) { } github_com_gogo_protobuf_sortkeys.Int32s(keysForObservedTimestamps) for _, k := range keysForObservedTimestamps { - data[i] = 0x42 + dAtA[i] = 0x42 i++ v := m.ObservedTimestamps[NodeID(k)] msgSize := 0 @@ -942,139 +942,139 @@ func (m *Transaction) MarshalTo(data []byte) (int, error) { msgSize += 1 + sovData(uint64(msgSize)) } mapSize := 1 + sovData(uint64(k)) + msgSize - i = encodeVarintData(data, i, uint64(mapSize)) - data[i] = 0x8 + i = encodeVarintData(dAtA, i, uint64(mapSize)) + dAtA[i] = 0x8 i++ - i = encodeVarintData(data, i, uint64(k)) - data[i] = 0x12 + i = encodeVarintData(dAtA, i, uint64(k)) + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64((&v).Size())) - n18, err := (&v).MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64((&v).Size())) + n18, err := (&v).MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n18 } } - data[i] = 0x48 + dAtA[i] = 0x48 i++ if m.Writing { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ if len(m.Intents) > 0 { for _, msg := range m.Intents { - data[i] = 0x5a + dAtA[i] = 0x5a i++ - i = encodeVarintData(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0x60 + dAtA[i] = 0x60 i++ if m.WriteTooOld { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ - data[i] = 0x68 + dAtA[i] = 0x68 i++ if m.RetryOnPush { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *Intent) Marshal() (data []byte, err error) { +func (m *Intent) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Intent) MarshalTo(data []byte) (int, error) { +func (m *Intent) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(m.Span.Size())) - n19, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Span.Size())) + n19, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n19 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(m.Txn.Size())) - n20, err := m.Txn.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Txn.Size())) + n20, err := m.Txn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n20 - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintData(data, i, uint64(m.Status)) + i = encodeVarintData(dAtA, i, uint64(m.Status)) return i, nil } -func (m *Lease) Marshal() (data []byte, err error) { +func (m *Lease) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Lease) MarshalTo(data []byte) (int, error) { +func (m *Lease) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(m.Start.Size())) - n21, err := m.Start.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Start.Size())) + n21, err := m.Start.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n21 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(m.Expiration.Size())) - n22, err := m.Expiration.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Expiration.Size())) + n22, err := m.Expiration.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n22 - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintData(data, i, uint64(m.Replica.Size())) - n23, err := m.Replica.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Replica.Size())) + n23, err := m.Replica.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n23 - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintData(data, i, uint64(m.StartStasis.Size())) - n24, err := m.StartStasis.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.StartStasis.Size())) + n24, err := m.StartStasis.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1082,66 +1082,66 @@ func (m *Lease) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *AbortCacheEntry) Marshal() (data []byte, err error) { +func (m *AbortCacheEntry) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *AbortCacheEntry) MarshalTo(data []byte) (int, error) { +func (m *AbortCacheEntry) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Key != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(len(m.Key))) - i += copy(data[i:], m.Key) + i = encodeVarintData(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(m.Timestamp.Size())) - n25, err := m.Timestamp.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Timestamp.Size())) + n25, err := m.Timestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n25 - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintData(data, i, uint64(m.Priority)) + i = encodeVarintData(dAtA, i, uint64(m.Priority)) return i, nil } -func encodeFixed64Data(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Data(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Data(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Data(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintData(data []byte, offset int, v uint64) int { +func encodeVarintData(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func NewPopulatedSpan(r randyData, easy bool) *Span { @@ -1169,7 +1169,7 @@ func NewPopulatedTransaction(r randyData, easy bool) *Transaction { this := &Transaction{} v3 := cockroach_storage_engine_enginepb.NewPopulatedTxnMeta(r, easy) this.TxnMeta = *v3 - this.Name = randStringData(r) + this.Name = string(randStringData(r)) this.Status = TransactionStatus([]int32{0, 1, 2}[r.Intn(3)]) if r.Intn(10) != 0 { this.LastHeartbeat = cockroach_util_hlc.NewPopulatedTimestamp(r, easy) @@ -1262,7 +1262,7 @@ func randStringData(r randyData) string { } return string(tmps) } -func randUnrecognizedData(r randyData, maxFieldNumber int) (data []byte) { +func randUnrecognizedData(r randyData, maxFieldNumber int) (dAtA []byte) { l := r.Intn(5) for i := 0; i < l; i++ { wire := r.Intn(4) @@ -1270,43 +1270,43 @@ func randUnrecognizedData(r randyData, maxFieldNumber int) (data []byte) { wire = 5 } fieldNumber := maxFieldNumber + r.Intn(100) - data = randFieldData(data, r, fieldNumber, wire) + dAtA = randFieldData(dAtA, r, fieldNumber, wire) } - return data + return dAtA } -func randFieldData(data []byte, r randyData, fieldNumber int, wire int) []byte { +func randFieldData(dAtA []byte, r randyData, fieldNumber int, wire int) []byte { key := uint32(fieldNumber)<<3 | uint32(wire) switch wire { case 0: - data = encodeVarintPopulateData(data, uint64(key)) + dAtA = encodeVarintPopulateData(dAtA, uint64(key)) v16 := r.Int63() if r.Intn(2) == 0 { v16 *= -1 } - data = encodeVarintPopulateData(data, uint64(v16)) + dAtA = encodeVarintPopulateData(dAtA, uint64(v16)) case 1: - data = encodeVarintPopulateData(data, uint64(key)) - data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + dAtA = encodeVarintPopulateData(dAtA, uint64(key)) + dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) case 2: - data = encodeVarintPopulateData(data, uint64(key)) + dAtA = encodeVarintPopulateData(dAtA, uint64(key)) ll := r.Intn(100) - data = encodeVarintPopulateData(data, uint64(ll)) + dAtA = encodeVarintPopulateData(dAtA, uint64(ll)) for j := 0; j < ll; j++ { - data = append(data, byte(r.Intn(256))) + dAtA = append(dAtA, byte(r.Intn(256))) } default: - data = encodeVarintPopulateData(data, uint64(key)) - data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + dAtA = encodeVarintPopulateData(dAtA, uint64(key)) + dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) } - return data + return dAtA } -func encodeVarintPopulateData(data []byte, v uint64) []byte { +func encodeVarintPopulateData(dAtA []byte, v uint64) []byte { for v >= 1<<7 { - data = append(data, uint8(uint64(v)&0x7f|0x80)) + dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80)) v >>= 7 } - data = append(data, uint8(v)) - return data + dAtA = append(dAtA, uint8(v)) + return dAtA } func (m *Span) Size() (n int) { var l int @@ -1513,8 +1513,8 @@ func sovData(x uint64) (n int) { func sozData(x uint64) (n int) { return sovData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *Span) Unmarshal(data []byte) error { - l := len(data) +func (m *Span) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1526,7 +1526,7 @@ func (m *Span) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1554,7 +1554,7 @@ func (m *Span) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1568,7 +1568,7 @@ func (m *Span) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Key = append(m.Key[:0], data[iNdEx:postIndex]...) + m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) if m.Key == nil { m.Key = []byte{} } @@ -1585,7 +1585,7 @@ func (m *Span) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1599,14 +1599,14 @@ func (m *Span) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EndKey = append(m.EndKey[:0], data[iNdEx:postIndex]...) + m.EndKey = append(m.EndKey[:0], dAtA[iNdEx:postIndex]...) if m.EndKey == nil { m.EndKey = []byte{} } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -1625,8 +1625,8 @@ func (m *Span) Unmarshal(data []byte) error { } return nil } -func (m *Value) Unmarshal(data []byte) error { - l := len(data) +func (m *Value) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1638,7 +1638,7 @@ func (m *Value) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1666,7 +1666,7 @@ func (m *Value) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1680,7 +1680,7 @@ func (m *Value) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RawBytes = append(m.RawBytes[:0], data[iNdEx:postIndex]...) + m.RawBytes = append(m.RawBytes[:0], dAtA[iNdEx:postIndex]...) if m.RawBytes == nil { m.RawBytes = []byte{} } @@ -1697,7 +1697,7 @@ func (m *Value) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1711,13 +1711,13 @@ func (m *Value) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Timestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -1736,8 +1736,8 @@ func (m *Value) Unmarshal(data []byte) error { } return nil } -func (m *KeyValue) Unmarshal(data []byte) error { - l := len(data) +func (m *KeyValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1749,7 +1749,7 @@ func (m *KeyValue) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1777,7 +1777,7 @@ func (m *KeyValue) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1791,7 +1791,7 @@ func (m *KeyValue) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Key = append(m.Key[:0], data[iNdEx:postIndex]...) + m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) if m.Key == nil { m.Key = []byte{} } @@ -1808,7 +1808,7 @@ func (m *KeyValue) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1822,13 +1822,13 @@ func (m *KeyValue) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Value.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -1847,8 +1847,8 @@ func (m *KeyValue) Unmarshal(data []byte) error { } return nil } -func (m *StoreIdent) Unmarshal(data []byte) error { - l := len(data) +func (m *StoreIdent) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1860,7 +1860,7 @@ func (m *StoreIdent) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1888,7 +1888,7 @@ func (m *StoreIdent) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1902,7 +1902,7 @@ func (m *StoreIdent) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ClusterID.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ClusterID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1918,7 +1918,7 @@ func (m *StoreIdent) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NodeID |= (NodeID(b) & 0x7F) << shift if b < 0x80 { @@ -1937,7 +1937,7 @@ func (m *StoreIdent) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.StoreID |= (StoreID(b) & 0x7F) << shift if b < 0x80 { @@ -1946,7 +1946,7 @@ func (m *StoreIdent) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -1965,8 +1965,8 @@ func (m *StoreIdent) Unmarshal(data []byte) error { } return nil } -func (m *SplitTrigger) Unmarshal(data []byte) error { - l := len(data) +func (m *SplitTrigger) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1978,7 +1978,7 @@ func (m *SplitTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2006,7 +2006,7 @@ func (m *SplitTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2020,7 +2020,7 @@ func (m *SplitTrigger) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.LeftDesc.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.LeftDesc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2036,7 +2036,7 @@ func (m *SplitTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2050,13 +2050,13 @@ func (m *SplitTrigger) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.RightDesc.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RightDesc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -2075,8 +2075,8 @@ func (m *SplitTrigger) Unmarshal(data []byte) error { } return nil } -func (m *MergeTrigger) Unmarshal(data []byte) error { - l := len(data) +func (m *MergeTrigger) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2088,7 +2088,7 @@ func (m *MergeTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2116,7 +2116,7 @@ func (m *MergeTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2130,7 +2130,7 @@ func (m *MergeTrigger) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.LeftDesc.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.LeftDesc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2146,7 +2146,7 @@ func (m *MergeTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2160,13 +2160,13 @@ func (m *MergeTrigger) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.RightDesc.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RightDesc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -2185,8 +2185,8 @@ func (m *MergeTrigger) Unmarshal(data []byte) error { } return nil } -func (m *ChangeReplicasTrigger) Unmarshal(data []byte) error { - l := len(data) +func (m *ChangeReplicasTrigger) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2198,7 +2198,7 @@ func (m *ChangeReplicasTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2226,7 +2226,7 @@ func (m *ChangeReplicasTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ChangeType |= (ReplicaChangeType(b) & 0x7F) << shift if b < 0x80 { @@ -2245,7 +2245,7 @@ func (m *ChangeReplicasTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2259,7 +2259,7 @@ func (m *ChangeReplicasTrigger) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Replica.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Replica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2275,7 +2275,7 @@ func (m *ChangeReplicasTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2290,7 +2290,7 @@ func (m *ChangeReplicasTrigger) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.UpdatedReplicas = append(m.UpdatedReplicas, ReplicaDescriptor{}) - if err := m.UpdatedReplicas[len(m.UpdatedReplicas)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.UpdatedReplicas[len(m.UpdatedReplicas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2306,7 +2306,7 @@ func (m *ChangeReplicasTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NextReplicaID |= (ReplicaID(b) & 0x7F) << shift if b < 0x80 { @@ -2315,7 +2315,7 @@ func (m *ChangeReplicasTrigger) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -2334,8 +2334,8 @@ func (m *ChangeReplicasTrigger) Unmarshal(data []byte) error { } return nil } -func (m *ModifiedSpanTrigger) Unmarshal(data []byte) error { - l := len(data) +func (m *ModifiedSpanTrigger) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2347,7 +2347,7 @@ func (m *ModifiedSpanTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2375,7 +2375,7 @@ func (m *ModifiedSpanTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2395,7 +2395,7 @@ func (m *ModifiedSpanTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2412,13 +2412,13 @@ func (m *ModifiedSpanTrigger) Unmarshal(data []byte) error { if m.NodeLivenessSpan == nil { m.NodeLivenessSpan = &Span{} } - if err := m.NodeLivenessSpan.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.NodeLivenessSpan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -2437,8 +2437,8 @@ func (m *ModifiedSpanTrigger) Unmarshal(data []byte) error { } return nil } -func (m *InternalCommitTrigger) Unmarshal(data []byte) error { - l := len(data) +func (m *InternalCommitTrigger) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2450,7 +2450,7 @@ func (m *InternalCommitTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2478,7 +2478,7 @@ func (m *InternalCommitTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2495,7 +2495,7 @@ func (m *InternalCommitTrigger) Unmarshal(data []byte) error { if m.SplitTrigger == nil { m.SplitTrigger = &SplitTrigger{} } - if err := m.SplitTrigger.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.SplitTrigger.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2511,7 +2511,7 @@ func (m *InternalCommitTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2528,7 +2528,7 @@ func (m *InternalCommitTrigger) Unmarshal(data []byte) error { if m.MergeTrigger == nil { m.MergeTrigger = &MergeTrigger{} } - if err := m.MergeTrigger.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.MergeTrigger.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2544,7 +2544,7 @@ func (m *InternalCommitTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2561,7 +2561,7 @@ func (m *InternalCommitTrigger) Unmarshal(data []byte) error { if m.ChangeReplicasTrigger == nil { m.ChangeReplicasTrigger = &ChangeReplicasTrigger{} } - if err := m.ChangeReplicasTrigger.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ChangeReplicasTrigger.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2577,7 +2577,7 @@ func (m *InternalCommitTrigger) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2594,13 +2594,13 @@ func (m *InternalCommitTrigger) Unmarshal(data []byte) error { if m.ModifiedSpanTrigger == nil { m.ModifiedSpanTrigger = &ModifiedSpanTrigger{} } - if err := m.ModifiedSpanTrigger.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ModifiedSpanTrigger.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -2619,8 +2619,8 @@ func (m *InternalCommitTrigger) Unmarshal(data []byte) error { } return nil } -func (m *Transaction) Unmarshal(data []byte) error { - l := len(data) +func (m *Transaction) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2632,7 +2632,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2660,7 +2660,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2674,7 +2674,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.TxnMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TxnMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2690,7 +2690,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2705,7 +2705,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(data[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { @@ -2719,7 +2719,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Status |= (TransactionStatus(b) & 0x7F) << shift if b < 0x80 { @@ -2738,7 +2738,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2755,7 +2755,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if m.LastHeartbeat == nil { m.LastHeartbeat = &cockroach_util_hlc.Timestamp{} } - if err := m.LastHeartbeat.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.LastHeartbeat.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2771,7 +2771,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2785,7 +2785,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.OrigTimestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.OrigTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2801,7 +2801,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2815,7 +2815,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.MaxTimestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.MaxTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2831,7 +2831,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2853,7 +2853,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ keykey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2868,7 +2868,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapkey |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -2887,7 +2887,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ valuekey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2902,7 +2902,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapmsglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2920,7 +2920,7 @@ func (m *Transaction) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } mapvalue := &cockroach_util_hlc.Timestamp{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } iNdEx = postmsgIndex @@ -2942,7 +2942,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2962,7 +2962,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2977,7 +2977,7 @@ func (m *Transaction) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Intents = append(m.Intents, Span{}) - if err := m.Intents[len(m.Intents)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Intents[len(m.Intents)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2993,7 +2993,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3013,7 +3013,7 @@ func (m *Transaction) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3023,7 +3023,7 @@ func (m *Transaction) Unmarshal(data []byte) error { m.RetryOnPush = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -3042,8 +3042,8 @@ func (m *Transaction) Unmarshal(data []byte) error { } return nil } -func (m *Intent) Unmarshal(data []byte) error { - l := len(data) +func (m *Intent) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3055,7 +3055,7 @@ func (m *Intent) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3083,7 +3083,7 @@ func (m *Intent) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3097,7 +3097,7 @@ func (m *Intent) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3113,7 +3113,7 @@ func (m *Intent) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3127,7 +3127,7 @@ func (m *Intent) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Txn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Txn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3143,7 +3143,7 @@ func (m *Intent) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Status |= (TransactionStatus(b) & 0x7F) << shift if b < 0x80 { @@ -3152,7 +3152,7 @@ func (m *Intent) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -3171,8 +3171,8 @@ func (m *Intent) Unmarshal(data []byte) error { } return nil } -func (m *Lease) Unmarshal(data []byte) error { - l := len(data) +func (m *Lease) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3184,7 +3184,7 @@ func (m *Lease) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3212,7 +3212,7 @@ func (m *Lease) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3226,7 +3226,7 @@ func (m *Lease) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Start.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Start.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3242,7 +3242,7 @@ func (m *Lease) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3256,7 +3256,7 @@ func (m *Lease) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Expiration.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Expiration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3272,7 +3272,7 @@ func (m *Lease) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3286,7 +3286,7 @@ func (m *Lease) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Replica.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Replica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3302,7 +3302,7 @@ func (m *Lease) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3316,13 +3316,13 @@ func (m *Lease) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.StartStasis.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.StartStasis.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -3341,8 +3341,8 @@ func (m *Lease) Unmarshal(data []byte) error { } return nil } -func (m *AbortCacheEntry) Unmarshal(data []byte) error { - l := len(data) +func (m *AbortCacheEntry) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3354,7 +3354,7 @@ func (m *AbortCacheEntry) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3382,7 +3382,7 @@ func (m *AbortCacheEntry) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3396,7 +3396,7 @@ func (m *AbortCacheEntry) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Key = append(m.Key[:0], data[iNdEx:postIndex]...) + m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) if m.Key == nil { m.Key = []byte{} } @@ -3413,7 +3413,7 @@ func (m *AbortCacheEntry) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3427,7 +3427,7 @@ func (m *AbortCacheEntry) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Timestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3443,7 +3443,7 @@ func (m *AbortCacheEntry) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Priority |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -3452,7 +3452,7 @@ func (m *AbortCacheEntry) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -3471,8 +3471,8 @@ func (m *AbortCacheEntry) Unmarshal(data []byte) error { } return nil } -func skipData(data []byte) (n int, err error) { - l := len(data) +func skipData(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -3483,7 +3483,7 @@ func skipData(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3501,7 +3501,7 @@ func skipData(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -3518,7 +3518,7 @@ func skipData(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3541,7 +3541,7 @@ func skipData(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3552,7 +3552,7 @@ func skipData(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipData(data[start:]) + next, err := skipData(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/roachpb/errors.pb.go b/pkg/roachpb/errors.pb.go index 8c61540c77b6..0139863fc530 100644 --- a/pkg/roachpb/errors.pb.go +++ b/pkg/roachpb/errors.pb.go @@ -439,47 +439,47 @@ func init() { proto.RegisterType((*Error)(nil), "cockroach.roachpb.Error") proto.RegisterEnum("cockroach.roachpb.TransactionRestart", TransactionRestart_name, TransactionRestart_value) } -func (m *NotLeaseHolderError) Marshal() (data []byte, err error) { +func (m *NotLeaseHolderError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *NotLeaseHolderError) MarshalTo(data []byte) (int, error) { +func (m *NotLeaseHolderError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintErrors(data, i, uint64(m.Replica.Size())) - n1, err := m.Replica.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.Replica.Size())) + n1, err := m.Replica.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 if m.LeaseHolder != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintErrors(data, i, uint64(m.LeaseHolder.Size())) - n2, err := m.LeaseHolder.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.LeaseHolder.Size())) + n2, err := m.LeaseHolder.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 } - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintErrors(data, i, uint64(m.RangeID)) + i = encodeVarintErrors(dAtA, i, uint64(m.RangeID)) if m.Lease != nil { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintErrors(data, i, uint64(m.Lease.Size())) - n3, err := m.Lease.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.Lease.Size())) + n3, err := m.Lease.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -488,17 +488,17 @@ func (m *NotLeaseHolderError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *NodeUnavailableError) Marshal() (data []byte, err error) { +func (m *NodeUnavailableError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *NodeUnavailableError) MarshalTo(data []byte) (int, error) { +func (m *NodeUnavailableError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -506,69 +506,69 @@ func (m *NodeUnavailableError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RangeNotFoundError) Marshal() (data []byte, err error) { +func (m *RangeNotFoundError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RangeNotFoundError) MarshalTo(data []byte) (int, error) { +func (m *RangeNotFoundError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintErrors(data, i, uint64(m.RangeID)) + i = encodeVarintErrors(dAtA, i, uint64(m.RangeID)) return i, nil } -func (m *RangeKeyMismatchError) Marshal() (data []byte, err error) { +func (m *RangeKeyMismatchError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RangeKeyMismatchError) MarshalTo(data []byte) (int, error) { +func (m *RangeKeyMismatchError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.RequestStartKey != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintErrors(data, i, uint64(len(m.RequestStartKey))) - i += copy(data[i:], m.RequestStartKey) + i = encodeVarintErrors(dAtA, i, uint64(len(m.RequestStartKey))) + i += copy(dAtA[i:], m.RequestStartKey) } if m.RequestEndKey != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintErrors(data, i, uint64(len(m.RequestEndKey))) - i += copy(data[i:], m.RequestEndKey) + i = encodeVarintErrors(dAtA, i, uint64(len(m.RequestEndKey))) + i += copy(dAtA[i:], m.RequestEndKey) } if m.MismatchedRange != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintErrors(data, i, uint64(m.MismatchedRange.Size())) - n4, err := m.MismatchedRange.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.MismatchedRange.Size())) + n4, err := m.MismatchedRange.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n4 } if m.SuggestedRange != nil { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintErrors(data, i, uint64(m.SuggestedRange.Size())) - n5, err := m.SuggestedRange.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.SuggestedRange.Size())) + n5, err := m.SuggestedRange.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -577,25 +577,25 @@ func (m *RangeKeyMismatchError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RangeFrozenError) Marshal() (data []byte, err error) { +func (m *RangeFrozenError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RangeFrozenError) MarshalTo(data []byte) (int, error) { +func (m *RangeFrozenError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintErrors(data, i, uint64(m.Desc.Size())) - n6, err := m.Desc.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.Desc.Size())) + n6, err := m.Desc.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -603,33 +603,33 @@ func (m *RangeFrozenError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ReadWithinUncertaintyIntervalError) Marshal() (data []byte, err error) { +func (m *ReadWithinUncertaintyIntervalError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ReadWithinUncertaintyIntervalError) MarshalTo(data []byte) (int, error) { +func (m *ReadWithinUncertaintyIntervalError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintErrors(data, i, uint64(m.ReadTimestamp.Size())) - n7, err := m.ReadTimestamp.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.ReadTimestamp.Size())) + n7, err := m.ReadTimestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n7 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintErrors(data, i, uint64(m.ExistingTimestamp.Size())) - n8, err := m.ExistingTimestamp.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.ExistingTimestamp.Size())) + n8, err := m.ExistingTimestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -637,17 +637,17 @@ func (m *ReadWithinUncertaintyIntervalError) MarshalTo(data []byte) (int, error) return i, nil } -func (m *TransactionAbortedError) Marshal() (data []byte, err error) { +func (m *TransactionAbortedError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TransactionAbortedError) MarshalTo(data []byte) (int, error) { +func (m *TransactionAbortedError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -655,25 +655,25 @@ func (m *TransactionAbortedError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *TransactionPushError) Marshal() (data []byte, err error) { +func (m *TransactionPushError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TransactionPushError) MarshalTo(data []byte) (int, error) { +func (m *TransactionPushError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintErrors(data, i, uint64(m.PusheeTxn.Size())) - n9, err := m.PusheeTxn.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.PusheeTxn.Size())) + n9, err := m.PusheeTxn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -681,17 +681,17 @@ func (m *TransactionPushError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *TransactionRetryError) Marshal() (data []byte, err error) { +func (m *TransactionRetryError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TransactionRetryError) MarshalTo(data []byte) (int, error) { +func (m *TransactionRetryError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -699,17 +699,17 @@ func (m *TransactionRetryError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *TransactionReplayError) Marshal() (data []byte, err error) { +func (m *TransactionReplayError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TransactionReplayError) MarshalTo(data []byte) (int, error) { +func (m *TransactionReplayError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -717,93 +717,93 @@ func (m *TransactionReplayError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *TransactionStatusError) Marshal() (data []byte, err error) { +func (m *TransactionStatusError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TransactionStatusError) MarshalTo(data []byte) (int, error) { +func (m *TransactionStatusError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintErrors(data, i, uint64(len(m.Msg))) - i += copy(data[i:], m.Msg) + i = encodeVarintErrors(dAtA, i, uint64(len(m.Msg))) + i += copy(dAtA[i:], m.Msg) return i, nil } -func (m *WriteIntentError) Marshal() (data []byte, err error) { +func (m *WriteIntentError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *WriteIntentError) MarshalTo(data []byte) (int, error) { +func (m *WriteIntentError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Intents) > 0 { for _, msg := range m.Intents { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintErrors(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0x10 + dAtA[i] = 0x10 i++ if m.Resolved { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *WriteTooOldError) Marshal() (data []byte, err error) { +func (m *WriteTooOldError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *WriteTooOldError) MarshalTo(data []byte) (int, error) { +func (m *WriteTooOldError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintErrors(data, i, uint64(m.Timestamp.Size())) - n10, err := m.Timestamp.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.Timestamp.Size())) + n10, err := m.Timestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n10 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintErrors(data, i, uint64(m.ActualTimestamp.Size())) - n11, err := m.ActualTimestamp.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.ActualTimestamp.Size())) + n11, err := m.ActualTimestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -811,17 +811,17 @@ func (m *WriteTooOldError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *OpRequiresTxnError) Marshal() (data []byte, err error) { +func (m *OpRequiresTxnError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *OpRequiresTxnError) MarshalTo(data []byte) (int, error) { +func (m *OpRequiresTxnError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -829,26 +829,26 @@ func (m *OpRequiresTxnError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ConditionFailedError) Marshal() (data []byte, err error) { +func (m *ConditionFailedError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ConditionFailedError) MarshalTo(data []byte) (int, error) { +func (m *ConditionFailedError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.ActualValue != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintErrors(data, i, uint64(m.ActualValue.Size())) - n12, err := m.ActualValue.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.ActualValue.Size())) + n12, err := m.ActualValue.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -857,37 +857,37 @@ func (m *ConditionFailedError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *LeaseRejectedError) Marshal() (data []byte, err error) { +func (m *LeaseRejectedError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *LeaseRejectedError) MarshalTo(data []byte) (int, error) { +func (m *LeaseRejectedError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintErrors(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - data[i] = 0x12 + i = encodeVarintErrors(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) + dAtA[i] = 0x12 i++ - i = encodeVarintErrors(data, i, uint64(m.Requested.Size())) - n13, err := m.Requested.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.Requested.Size())) + n13, err := m.Requested.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n13 - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintErrors(data, i, uint64(m.Existing.Size())) - n14, err := m.Existing.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.Existing.Size())) + n14, err := m.Existing.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -895,39 +895,39 @@ func (m *LeaseRejectedError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *SendError) Marshal() (data []byte, err error) { +func (m *SendError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SendError) MarshalTo(data []byte) (int, error) { +func (m *SendError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintErrors(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) + i = encodeVarintErrors(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) return i, nil } -func (m *AmbiguousResultError) Marshal() (data []byte, err error) { +func (m *AmbiguousResultError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *AmbiguousResultError) MarshalTo(data []byte) (int, error) { +func (m *AmbiguousResultError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -935,17 +935,17 @@ func (m *AmbiguousResultError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RaftGroupDeletedError) Marshal() (data []byte, err error) { +func (m *RaftGroupDeletedError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftGroupDeletedError) MarshalTo(data []byte) (int, error) { +func (m *RaftGroupDeletedError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -953,47 +953,47 @@ func (m *RaftGroupDeletedError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ReplicaCorruptionError) Marshal() (data []byte, err error) { +func (m *ReplicaCorruptionError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ReplicaCorruptionError) MarshalTo(data []byte) (int, error) { +func (m *ReplicaCorruptionError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintErrors(data, i, uint64(len(m.ErrorMsg))) - i += copy(data[i:], m.ErrorMsg) - data[i] = 0x10 + i = encodeVarintErrors(dAtA, i, uint64(len(m.ErrorMsg))) + i += copy(dAtA[i:], m.ErrorMsg) + dAtA[i] = 0x10 i++ if m.Processed { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *ReplicaTooOldError) Marshal() (data []byte, err error) { +func (m *ReplicaTooOldError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ReplicaTooOldError) MarshalTo(data []byte) (int, error) { +func (m *ReplicaTooOldError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -1001,238 +1001,238 @@ func (m *ReplicaTooOldError) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ErrorDetail) Marshal() (data []byte, err error) { +func (m *ErrorDetail) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ErrorDetail) MarshalTo(data []byte) (int, error) { +func (m *ErrorDetail) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.NotLeaseHolder != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintErrors(data, i, uint64(m.NotLeaseHolder.Size())) - n15, err := m.NotLeaseHolder.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.NotLeaseHolder.Size())) + n15, err := m.NotLeaseHolder.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n15 } if m.RangeNotFound != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintErrors(data, i, uint64(m.RangeNotFound.Size())) - n16, err := m.RangeNotFound.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.RangeNotFound.Size())) + n16, err := m.RangeNotFound.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n16 } if m.RangeKeyMismatch != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintErrors(data, i, uint64(m.RangeKeyMismatch.Size())) - n17, err := m.RangeKeyMismatch.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.RangeKeyMismatch.Size())) + n17, err := m.RangeKeyMismatch.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n17 } if m.ReadWithinUncertaintyInterval != nil { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintErrors(data, i, uint64(m.ReadWithinUncertaintyInterval.Size())) - n18, err := m.ReadWithinUncertaintyInterval.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.ReadWithinUncertaintyInterval.Size())) + n18, err := m.ReadWithinUncertaintyInterval.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n18 } if m.TransactionAborted != nil { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintErrors(data, i, uint64(m.TransactionAborted.Size())) - n19, err := m.TransactionAborted.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.TransactionAborted.Size())) + n19, err := m.TransactionAborted.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n19 } if m.TransactionPush != nil { - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintErrors(data, i, uint64(m.TransactionPush.Size())) - n20, err := m.TransactionPush.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.TransactionPush.Size())) + n20, err := m.TransactionPush.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n20 } if m.TransactionRetry != nil { - data[i] = 0x3a + dAtA[i] = 0x3a i++ - i = encodeVarintErrors(data, i, uint64(m.TransactionRetry.Size())) - n21, err := m.TransactionRetry.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.TransactionRetry.Size())) + n21, err := m.TransactionRetry.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n21 } if m.TransactionStatus != nil { - data[i] = 0x42 + dAtA[i] = 0x42 i++ - i = encodeVarintErrors(data, i, uint64(m.TransactionStatus.Size())) - n22, err := m.TransactionStatus.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.TransactionStatus.Size())) + n22, err := m.TransactionStatus.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n22 } if m.WriteIntent != nil { - data[i] = 0x4a + dAtA[i] = 0x4a i++ - i = encodeVarintErrors(data, i, uint64(m.WriteIntent.Size())) - n23, err := m.WriteIntent.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.WriteIntent.Size())) + n23, err := m.WriteIntent.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n23 } if m.WriteTooOld != nil { - data[i] = 0x52 + dAtA[i] = 0x52 i++ - i = encodeVarintErrors(data, i, uint64(m.WriteTooOld.Size())) - n24, err := m.WriteTooOld.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.WriteTooOld.Size())) + n24, err := m.WriteTooOld.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n24 } if m.OpRequiresTxn != nil { - data[i] = 0x5a + dAtA[i] = 0x5a i++ - i = encodeVarintErrors(data, i, uint64(m.OpRequiresTxn.Size())) - n25, err := m.OpRequiresTxn.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.OpRequiresTxn.Size())) + n25, err := m.OpRequiresTxn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n25 } if m.ConditionFailed != nil { - data[i] = 0x62 + dAtA[i] = 0x62 i++ - i = encodeVarintErrors(data, i, uint64(m.ConditionFailed.Size())) - n26, err := m.ConditionFailed.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.ConditionFailed.Size())) + n26, err := m.ConditionFailed.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n26 } if m.LeaseRejected != nil { - data[i] = 0x6a + dAtA[i] = 0x6a i++ - i = encodeVarintErrors(data, i, uint64(m.LeaseRejected.Size())) - n27, err := m.LeaseRejected.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.LeaseRejected.Size())) + n27, err := m.LeaseRejected.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n27 } if m.NodeUnavailable != nil { - data[i] = 0x72 + dAtA[i] = 0x72 i++ - i = encodeVarintErrors(data, i, uint64(m.NodeUnavailable.Size())) - n28, err := m.NodeUnavailable.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.NodeUnavailable.Size())) + n28, err := m.NodeUnavailable.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n28 } if m.Send != nil { - data[i] = 0x7a + dAtA[i] = 0x7a i++ - i = encodeVarintErrors(data, i, uint64(m.Send.Size())) - n29, err := m.Send.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.Send.Size())) + n29, err := m.Send.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n29 } if m.RaftGroupDeleted != nil { - data[i] = 0x82 + dAtA[i] = 0x82 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintErrors(data, i, uint64(m.RaftGroupDeleted.Size())) - n30, err := m.RaftGroupDeleted.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.RaftGroupDeleted.Size())) + n30, err := m.RaftGroupDeleted.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n30 } if m.ReplicaCorruption != nil { - data[i] = 0x8a + dAtA[i] = 0x8a i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintErrors(data, i, uint64(m.ReplicaCorruption.Size())) - n31, err := m.ReplicaCorruption.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.ReplicaCorruption.Size())) + n31, err := m.ReplicaCorruption.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n31 } if m.ReplicaTooOld != nil { - data[i] = 0x92 + dAtA[i] = 0x92 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintErrors(data, i, uint64(m.ReplicaTooOld.Size())) - n32, err := m.ReplicaTooOld.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.ReplicaTooOld.Size())) + n32, err := m.ReplicaTooOld.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n32 } if m.TransactionReplay != nil { - data[i] = 0xb2 + dAtA[i] = 0xb2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintErrors(data, i, uint64(m.TransactionReplay.Size())) - n33, err := m.TransactionReplay.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.TransactionReplay.Size())) + n33, err := m.TransactionReplay.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n33 } if m.RangeFrozen != nil { - data[i] = 0xca + dAtA[i] = 0xca i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintErrors(data, i, uint64(m.RangeFrozen.Size())) - n34, err := m.RangeFrozen.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.RangeFrozen.Size())) + n34, err := m.RangeFrozen.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n34 } if m.AmbiguousResult != nil { - data[i] = 0xd2 + dAtA[i] = 0xd2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintErrors(data, i, uint64(m.AmbiguousResult.Size())) - n35, err := m.AmbiguousResult.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.AmbiguousResult.Size())) + n35, err := m.AmbiguousResult.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1241,86 +1241,86 @@ func (m *ErrorDetail) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ErrPosition) Marshal() (data []byte, err error) { +func (m *ErrPosition) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ErrPosition) MarshalTo(data []byte) (int, error) { +func (m *ErrPosition) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintErrors(data, i, uint64(m.Index)) + i = encodeVarintErrors(dAtA, i, uint64(m.Index)) return i, nil } -func (m *Error) Marshal() (data []byte, err error) { +func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Error) MarshalTo(data []byte) (int, error) { +func (m *Error) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintErrors(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - data[i] = 0x18 + i = encodeVarintErrors(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) + dAtA[i] = 0x18 i++ - i = encodeVarintErrors(data, i, uint64(m.TransactionRestart)) + i = encodeVarintErrors(dAtA, i, uint64(m.TransactionRestart)) if m.UnexposedTxn != nil { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintErrors(data, i, uint64(m.UnexposedTxn.Size())) - n36, err := m.UnexposedTxn.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.UnexposedTxn.Size())) + n36, err := m.UnexposedTxn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n36 } - data[i] = 0x28 + dAtA[i] = 0x28 i++ - i = encodeVarintErrors(data, i, uint64(m.OriginNode)) + i = encodeVarintErrors(dAtA, i, uint64(m.OriginNode)) if m.Detail != nil { - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintErrors(data, i, uint64(m.Detail.Size())) - n37, err := m.Detail.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.Detail.Size())) + n37, err := m.Detail.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n37 } if m.Index != nil { - data[i] = 0x3a + dAtA[i] = 0x3a i++ - i = encodeVarintErrors(data, i, uint64(m.Index.Size())) - n38, err := m.Index.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.Index.Size())) + n38, err := m.Index.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n38 } - data[i] = 0x42 + dAtA[i] = 0x42 i++ - i = encodeVarintErrors(data, i, uint64(m.Now.Size())) - n39, err := m.Now.MarshalTo(data[i:]) + i = encodeVarintErrors(dAtA, i, uint64(m.Now.Size())) + n39, err := m.Now.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1328,31 +1328,31 @@ func (m *Error) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64Errors(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Errors(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Errors(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Errors(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintErrors(data []byte, offset int, v uint64) int { +func encodeVarintErrors(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *NotLeaseHolderError) Size() (n int) { @@ -1795,8 +1795,8 @@ func (this *ErrorDetail) SetValue(value interface{}) bool { } return true } -func (m *NotLeaseHolderError) Unmarshal(data []byte) error { - l := len(data) +func (m *NotLeaseHolderError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1808,7 +1808,7 @@ func (m *NotLeaseHolderError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1836,7 +1836,7 @@ func (m *NotLeaseHolderError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1850,7 +1850,7 @@ func (m *NotLeaseHolderError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Replica.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Replica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1866,7 +1866,7 @@ func (m *NotLeaseHolderError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1883,7 +1883,7 @@ func (m *NotLeaseHolderError) Unmarshal(data []byte) error { if m.LeaseHolder == nil { m.LeaseHolder = &ReplicaDescriptor{} } - if err := m.LeaseHolder.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.LeaseHolder.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1899,7 +1899,7 @@ func (m *NotLeaseHolderError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeID |= (RangeID(b) & 0x7F) << shift if b < 0x80 { @@ -1918,7 +1918,7 @@ func (m *NotLeaseHolderError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1935,13 +1935,13 @@ func (m *NotLeaseHolderError) Unmarshal(data []byte) error { if m.Lease == nil { m.Lease = &Lease{} } - if err := m.Lease.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Lease.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -1960,8 +1960,8 @@ func (m *NotLeaseHolderError) Unmarshal(data []byte) error { } return nil } -func (m *NodeUnavailableError) Unmarshal(data []byte) error { - l := len(data) +func (m *NodeUnavailableError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1973,7 +1973,7 @@ func (m *NodeUnavailableError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1991,7 +1991,7 @@ func (m *NodeUnavailableError) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -2010,8 +2010,8 @@ func (m *NodeUnavailableError) Unmarshal(data []byte) error { } return nil } -func (m *RangeNotFoundError) Unmarshal(data []byte) error { - l := len(data) +func (m *RangeNotFoundError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2023,7 +2023,7 @@ func (m *RangeNotFoundError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2051,7 +2051,7 @@ func (m *RangeNotFoundError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeID |= (RangeID(b) & 0x7F) << shift if b < 0x80 { @@ -2060,7 +2060,7 @@ func (m *RangeNotFoundError) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -2079,8 +2079,8 @@ func (m *RangeNotFoundError) Unmarshal(data []byte) error { } return nil } -func (m *RangeKeyMismatchError) Unmarshal(data []byte) error { - l := len(data) +func (m *RangeKeyMismatchError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2092,7 +2092,7 @@ func (m *RangeKeyMismatchError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2120,7 +2120,7 @@ func (m *RangeKeyMismatchError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2134,7 +2134,7 @@ func (m *RangeKeyMismatchError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RequestStartKey = append(m.RequestStartKey[:0], data[iNdEx:postIndex]...) + m.RequestStartKey = append(m.RequestStartKey[:0], dAtA[iNdEx:postIndex]...) if m.RequestStartKey == nil { m.RequestStartKey = []byte{} } @@ -2151,7 +2151,7 @@ func (m *RangeKeyMismatchError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2165,7 +2165,7 @@ func (m *RangeKeyMismatchError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RequestEndKey = append(m.RequestEndKey[:0], data[iNdEx:postIndex]...) + m.RequestEndKey = append(m.RequestEndKey[:0], dAtA[iNdEx:postIndex]...) if m.RequestEndKey == nil { m.RequestEndKey = []byte{} } @@ -2182,7 +2182,7 @@ func (m *RangeKeyMismatchError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2199,7 +2199,7 @@ func (m *RangeKeyMismatchError) Unmarshal(data []byte) error { if m.MismatchedRange == nil { m.MismatchedRange = &RangeDescriptor{} } - if err := m.MismatchedRange.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.MismatchedRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2215,7 +2215,7 @@ func (m *RangeKeyMismatchError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2232,13 +2232,13 @@ func (m *RangeKeyMismatchError) Unmarshal(data []byte) error { if m.SuggestedRange == nil { m.SuggestedRange = &RangeDescriptor{} } - if err := m.SuggestedRange.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.SuggestedRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -2257,8 +2257,8 @@ func (m *RangeKeyMismatchError) Unmarshal(data []byte) error { } return nil } -func (m *RangeFrozenError) Unmarshal(data []byte) error { - l := len(data) +func (m *RangeFrozenError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2270,7 +2270,7 @@ func (m *RangeFrozenError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2298,7 +2298,7 @@ func (m *RangeFrozenError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2312,13 +2312,13 @@ func (m *RangeFrozenError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Desc.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Desc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -2337,8 +2337,8 @@ func (m *RangeFrozenError) Unmarshal(data []byte) error { } return nil } -func (m *ReadWithinUncertaintyIntervalError) Unmarshal(data []byte) error { - l := len(data) +func (m *ReadWithinUncertaintyIntervalError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2350,7 +2350,7 @@ func (m *ReadWithinUncertaintyIntervalError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2378,7 +2378,7 @@ func (m *ReadWithinUncertaintyIntervalError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2392,7 +2392,7 @@ func (m *ReadWithinUncertaintyIntervalError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ReadTimestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ReadTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2408,7 +2408,7 @@ func (m *ReadWithinUncertaintyIntervalError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2422,13 +2422,13 @@ func (m *ReadWithinUncertaintyIntervalError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ExistingTimestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ExistingTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -2447,8 +2447,8 @@ func (m *ReadWithinUncertaintyIntervalError) Unmarshal(data []byte) error { } return nil } -func (m *TransactionAbortedError) Unmarshal(data []byte) error { - l := len(data) +func (m *TransactionAbortedError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2460,7 +2460,7 @@ func (m *TransactionAbortedError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2478,7 +2478,7 @@ func (m *TransactionAbortedError) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -2497,8 +2497,8 @@ func (m *TransactionAbortedError) Unmarshal(data []byte) error { } return nil } -func (m *TransactionPushError) Unmarshal(data []byte) error { - l := len(data) +func (m *TransactionPushError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2510,7 +2510,7 @@ func (m *TransactionPushError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2538,7 +2538,7 @@ func (m *TransactionPushError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2552,13 +2552,13 @@ func (m *TransactionPushError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.PusheeTxn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.PusheeTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -2577,8 +2577,8 @@ func (m *TransactionPushError) Unmarshal(data []byte) error { } return nil } -func (m *TransactionRetryError) Unmarshal(data []byte) error { - l := len(data) +func (m *TransactionRetryError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2590,7 +2590,7 @@ func (m *TransactionRetryError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2608,7 +2608,7 @@ func (m *TransactionRetryError) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -2627,8 +2627,8 @@ func (m *TransactionRetryError) Unmarshal(data []byte) error { } return nil } -func (m *TransactionReplayError) Unmarshal(data []byte) error { - l := len(data) +func (m *TransactionReplayError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2640,7 +2640,7 @@ func (m *TransactionReplayError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2658,7 +2658,7 @@ func (m *TransactionReplayError) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -2677,8 +2677,8 @@ func (m *TransactionReplayError) Unmarshal(data []byte) error { } return nil } -func (m *TransactionStatusError) Unmarshal(data []byte) error { - l := len(data) +func (m *TransactionStatusError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2690,7 +2690,7 @@ func (m *TransactionStatusError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2718,7 +2718,7 @@ func (m *TransactionStatusError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2733,11 +2733,11 @@ func (m *TransactionStatusError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Msg = string(data[iNdEx:postIndex]) + m.Msg = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -2756,8 +2756,8 @@ func (m *TransactionStatusError) Unmarshal(data []byte) error { } return nil } -func (m *WriteIntentError) Unmarshal(data []byte) error { - l := len(data) +func (m *WriteIntentError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2769,7 +2769,7 @@ func (m *WriteIntentError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2797,7 +2797,7 @@ func (m *WriteIntentError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2812,7 +2812,7 @@ func (m *WriteIntentError) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Intents = append(m.Intents, Intent{}) - if err := m.Intents[len(m.Intents)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Intents[len(m.Intents)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2828,7 +2828,7 @@ func (m *WriteIntentError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2838,7 +2838,7 @@ func (m *WriteIntentError) Unmarshal(data []byte) error { m.Resolved = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -2857,8 +2857,8 @@ func (m *WriteIntentError) Unmarshal(data []byte) error { } return nil } -func (m *WriteTooOldError) Unmarshal(data []byte) error { - l := len(data) +func (m *WriteTooOldError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2870,7 +2870,7 @@ func (m *WriteTooOldError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2898,7 +2898,7 @@ func (m *WriteTooOldError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2912,7 +2912,7 @@ func (m *WriteTooOldError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Timestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2928,7 +2928,7 @@ func (m *WriteTooOldError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2942,13 +2942,13 @@ func (m *WriteTooOldError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ActualTimestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ActualTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -2967,8 +2967,8 @@ func (m *WriteTooOldError) Unmarshal(data []byte) error { } return nil } -func (m *OpRequiresTxnError) Unmarshal(data []byte) error { - l := len(data) +func (m *OpRequiresTxnError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2980,7 +2980,7 @@ func (m *OpRequiresTxnError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2998,7 +2998,7 @@ func (m *OpRequiresTxnError) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -3017,8 +3017,8 @@ func (m *OpRequiresTxnError) Unmarshal(data []byte) error { } return nil } -func (m *ConditionFailedError) Unmarshal(data []byte) error { - l := len(data) +func (m *ConditionFailedError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3030,7 +3030,7 @@ func (m *ConditionFailedError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3058,7 +3058,7 @@ func (m *ConditionFailedError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3075,13 +3075,13 @@ func (m *ConditionFailedError) Unmarshal(data []byte) error { if m.ActualValue == nil { m.ActualValue = &Value{} } - if err := m.ActualValue.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ActualValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -3100,8 +3100,8 @@ func (m *ConditionFailedError) Unmarshal(data []byte) error { } return nil } -func (m *LeaseRejectedError) Unmarshal(data []byte) error { - l := len(data) +func (m *LeaseRejectedError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3113,7 +3113,7 @@ func (m *LeaseRejectedError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3141,7 +3141,7 @@ func (m *LeaseRejectedError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3156,7 +3156,7 @@ func (m *LeaseRejectedError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Message = string(data[iNdEx:postIndex]) + m.Message = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -3170,7 +3170,7 @@ func (m *LeaseRejectedError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3184,7 +3184,7 @@ func (m *LeaseRejectedError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Requested.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Requested.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3200,7 +3200,7 @@ func (m *LeaseRejectedError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3214,13 +3214,13 @@ func (m *LeaseRejectedError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Existing.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Existing.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -3239,8 +3239,8 @@ func (m *LeaseRejectedError) Unmarshal(data []byte) error { } return nil } -func (m *SendError) Unmarshal(data []byte) error { - l := len(data) +func (m *SendError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3252,7 +3252,7 @@ func (m *SendError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3280,7 +3280,7 @@ func (m *SendError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3295,11 +3295,11 @@ func (m *SendError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Message = string(data[iNdEx:postIndex]) + m.Message = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -3318,8 +3318,8 @@ func (m *SendError) Unmarshal(data []byte) error { } return nil } -func (m *AmbiguousResultError) Unmarshal(data []byte) error { - l := len(data) +func (m *AmbiguousResultError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3331,7 +3331,7 @@ func (m *AmbiguousResultError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3349,7 +3349,7 @@ func (m *AmbiguousResultError) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -3368,8 +3368,8 @@ func (m *AmbiguousResultError) Unmarshal(data []byte) error { } return nil } -func (m *RaftGroupDeletedError) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftGroupDeletedError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3381,7 +3381,7 @@ func (m *RaftGroupDeletedError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3399,7 +3399,7 @@ func (m *RaftGroupDeletedError) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -3418,8 +3418,8 @@ func (m *RaftGroupDeletedError) Unmarshal(data []byte) error { } return nil } -func (m *ReplicaCorruptionError) Unmarshal(data []byte) error { - l := len(data) +func (m *ReplicaCorruptionError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3431,7 +3431,7 @@ func (m *ReplicaCorruptionError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3459,7 +3459,7 @@ func (m *ReplicaCorruptionError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3474,7 +3474,7 @@ func (m *ReplicaCorruptionError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ErrorMsg = string(data[iNdEx:postIndex]) + m.ErrorMsg = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -3488,7 +3488,7 @@ func (m *ReplicaCorruptionError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3498,7 +3498,7 @@ func (m *ReplicaCorruptionError) Unmarshal(data []byte) error { m.Processed = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -3517,8 +3517,8 @@ func (m *ReplicaCorruptionError) Unmarshal(data []byte) error { } return nil } -func (m *ReplicaTooOldError) Unmarshal(data []byte) error { - l := len(data) +func (m *ReplicaTooOldError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3530,7 +3530,7 @@ func (m *ReplicaTooOldError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3548,7 +3548,7 @@ func (m *ReplicaTooOldError) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -3567,8 +3567,8 @@ func (m *ReplicaTooOldError) Unmarshal(data []byte) error { } return nil } -func (m *ErrorDetail) Unmarshal(data []byte) error { - l := len(data) +func (m *ErrorDetail) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3580,7 +3580,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3608,7 +3608,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3625,7 +3625,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.NotLeaseHolder == nil { m.NotLeaseHolder = &NotLeaseHolderError{} } - if err := m.NotLeaseHolder.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.NotLeaseHolder.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3641,7 +3641,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3658,7 +3658,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.RangeNotFound == nil { m.RangeNotFound = &RangeNotFoundError{} } - if err := m.RangeNotFound.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RangeNotFound.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3674,7 +3674,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3691,7 +3691,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.RangeKeyMismatch == nil { m.RangeKeyMismatch = &RangeKeyMismatchError{} } - if err := m.RangeKeyMismatch.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RangeKeyMismatch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3707,7 +3707,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3724,7 +3724,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.ReadWithinUncertaintyInterval == nil { m.ReadWithinUncertaintyInterval = &ReadWithinUncertaintyIntervalError{} } - if err := m.ReadWithinUncertaintyInterval.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ReadWithinUncertaintyInterval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3740,7 +3740,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3757,7 +3757,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.TransactionAborted == nil { m.TransactionAborted = &TransactionAbortedError{} } - if err := m.TransactionAborted.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TransactionAborted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3773,7 +3773,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3790,7 +3790,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.TransactionPush == nil { m.TransactionPush = &TransactionPushError{} } - if err := m.TransactionPush.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TransactionPush.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3806,7 +3806,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3823,7 +3823,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.TransactionRetry == nil { m.TransactionRetry = &TransactionRetryError{} } - if err := m.TransactionRetry.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TransactionRetry.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3839,7 +3839,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3856,7 +3856,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.TransactionStatus == nil { m.TransactionStatus = &TransactionStatusError{} } - if err := m.TransactionStatus.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TransactionStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3872,7 +3872,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3889,7 +3889,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.WriteIntent == nil { m.WriteIntent = &WriteIntentError{} } - if err := m.WriteIntent.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.WriteIntent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3905,7 +3905,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3922,7 +3922,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.WriteTooOld == nil { m.WriteTooOld = &WriteTooOldError{} } - if err := m.WriteTooOld.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.WriteTooOld.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3938,7 +3938,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3955,7 +3955,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.OpRequiresTxn == nil { m.OpRequiresTxn = &OpRequiresTxnError{} } - if err := m.OpRequiresTxn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.OpRequiresTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3971,7 +3971,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3988,7 +3988,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.ConditionFailed == nil { m.ConditionFailed = &ConditionFailedError{} } - if err := m.ConditionFailed.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ConditionFailed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4004,7 +4004,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4021,7 +4021,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.LeaseRejected == nil { m.LeaseRejected = &LeaseRejectedError{} } - if err := m.LeaseRejected.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.LeaseRejected.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4037,7 +4037,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4054,7 +4054,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.NodeUnavailable == nil { m.NodeUnavailable = &NodeUnavailableError{} } - if err := m.NodeUnavailable.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.NodeUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4070,7 +4070,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4087,7 +4087,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.Send == nil { m.Send = &SendError{} } - if err := m.Send.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Send.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4103,7 +4103,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4120,7 +4120,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.RaftGroupDeleted == nil { m.RaftGroupDeleted = &RaftGroupDeletedError{} } - if err := m.RaftGroupDeleted.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RaftGroupDeleted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4136,7 +4136,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4153,7 +4153,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.ReplicaCorruption == nil { m.ReplicaCorruption = &ReplicaCorruptionError{} } - if err := m.ReplicaCorruption.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ReplicaCorruption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4169,7 +4169,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4186,7 +4186,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.ReplicaTooOld == nil { m.ReplicaTooOld = &ReplicaTooOldError{} } - if err := m.ReplicaTooOld.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ReplicaTooOld.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4202,7 +4202,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4219,7 +4219,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.TransactionReplay == nil { m.TransactionReplay = &TransactionReplayError{} } - if err := m.TransactionReplay.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TransactionReplay.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4235,7 +4235,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4252,7 +4252,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.RangeFrozen == nil { m.RangeFrozen = &RangeFrozenError{} } - if err := m.RangeFrozen.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RangeFrozen.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4268,7 +4268,7 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4285,13 +4285,13 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { if m.AmbiguousResult == nil { m.AmbiguousResult = &AmbiguousResultError{} } - if err := m.AmbiguousResult.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.AmbiguousResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -4310,8 +4310,8 @@ func (m *ErrorDetail) Unmarshal(data []byte) error { } return nil } -func (m *ErrPosition) Unmarshal(data []byte) error { - l := len(data) +func (m *ErrPosition) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4323,7 +4323,7 @@ func (m *ErrPosition) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4351,7 +4351,7 @@ func (m *ErrPosition) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Index |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -4360,7 +4360,7 @@ func (m *ErrPosition) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -4379,8 +4379,8 @@ func (m *ErrPosition) Unmarshal(data []byte) error { } return nil } -func (m *Error) Unmarshal(data []byte) error { - l := len(data) +func (m *Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4392,7 +4392,7 @@ func (m *Error) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4420,7 +4420,7 @@ func (m *Error) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4435,7 +4435,7 @@ func (m *Error) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Message = string(data[iNdEx:postIndex]) + m.Message = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 0 { @@ -4449,7 +4449,7 @@ func (m *Error) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.TransactionRestart |= (TransactionRestart(b) & 0x7F) << shift if b < 0x80 { @@ -4468,7 +4468,7 @@ func (m *Error) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4485,7 +4485,7 @@ func (m *Error) Unmarshal(data []byte) error { if m.UnexposedTxn == nil { m.UnexposedTxn = &Transaction{} } - if err := m.UnexposedTxn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.UnexposedTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4501,7 +4501,7 @@ func (m *Error) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.OriginNode |= (NodeID(b) & 0x7F) << shift if b < 0x80 { @@ -4520,7 +4520,7 @@ func (m *Error) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4537,7 +4537,7 @@ func (m *Error) Unmarshal(data []byte) error { if m.Detail == nil { m.Detail = &ErrorDetail{} } - if err := m.Detail.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Detail.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4553,7 +4553,7 @@ func (m *Error) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4570,7 +4570,7 @@ func (m *Error) Unmarshal(data []byte) error { if m.Index == nil { m.Index = &ErrPosition{} } - if err := m.Index.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Index.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4586,7 +4586,7 @@ func (m *Error) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4600,13 +4600,13 @@ func (m *Error) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Now.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Now.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipErrors(data[iNdEx:]) + skippy, err := skipErrors(dAtA[iNdEx:]) if err != nil { return err } @@ -4625,8 +4625,8 @@ func (m *Error) Unmarshal(data []byte) error { } return nil } -func skipErrors(data []byte) (n int, err error) { - l := len(data) +func skipErrors(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -4637,7 +4637,7 @@ func skipErrors(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4655,7 +4655,7 @@ func skipErrors(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -4672,7 +4672,7 @@ func skipErrors(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4695,7 +4695,7 @@ func skipErrors(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4706,7 +4706,7 @@ func skipErrors(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipErrors(data[start:]) + next, err := skipErrors(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/roachpb/internal.pb.go b/pkg/roachpb/internal.pb.go index 0e4ed23026bf..a4da0f71f3b0 100644 --- a/pkg/roachpb/internal.pb.go +++ b/pkg/roachpb/internal.pb.go @@ -93,33 +93,33 @@ func init() { proto.RegisterType((*InternalTimeSeriesData)(nil), "cockroach.roachpb.InternalTimeSeriesData") proto.RegisterType((*InternalTimeSeriesSample)(nil), "cockroach.roachpb.InternalTimeSeriesSample") } -func (m *InternalTimeSeriesData) Marshal() (data []byte, err error) { +func (m *InternalTimeSeriesData) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *InternalTimeSeriesData) MarshalTo(data []byte) (int, error) { +func (m *InternalTimeSeriesData) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintInternal(data, i, uint64(m.StartTimestampNanos)) - data[i] = 0x10 + i = encodeVarintInternal(dAtA, i, uint64(m.StartTimestampNanos)) + dAtA[i] = 0x10 i++ - i = encodeVarintInternal(data, i, uint64(m.SampleDurationNanos)) + i = encodeVarintInternal(dAtA, i, uint64(m.SampleDurationNanos)) if len(m.Samples) > 0 { for _, msg := range m.Samples { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintInternal(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintInternal(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -129,68 +129,68 @@ func (m *InternalTimeSeriesData) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *InternalTimeSeriesSample) Marshal() (data []byte, err error) { +func (m *InternalTimeSeriesSample) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *InternalTimeSeriesSample) MarshalTo(data []byte) (int, error) { +func (m *InternalTimeSeriesSample) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintInternal(data, i, uint64(m.Offset)) - data[i] = 0x30 + i = encodeVarintInternal(dAtA, i, uint64(m.Offset)) + dAtA[i] = 0x30 i++ - i = encodeVarintInternal(data, i, uint64(m.Count)) - data[i] = 0x39 + i = encodeVarintInternal(dAtA, i, uint64(m.Count)) + dAtA[i] = 0x39 i++ - i = encodeFixed64Internal(data, i, uint64(math.Float64bits(float64(m.Sum)))) + i = encodeFixed64Internal(dAtA, i, uint64(math.Float64bits(float64(m.Sum)))) if m.Max != nil { - data[i] = 0x41 + dAtA[i] = 0x41 i++ - i = encodeFixed64Internal(data, i, uint64(math.Float64bits(float64(*m.Max)))) + i = encodeFixed64Internal(dAtA, i, uint64(math.Float64bits(float64(*m.Max)))) } if m.Min != nil { - data[i] = 0x49 + dAtA[i] = 0x49 i++ - i = encodeFixed64Internal(data, i, uint64(math.Float64bits(float64(*m.Min)))) + i = encodeFixed64Internal(dAtA, i, uint64(math.Float64bits(float64(*m.Min)))) } return i, nil } -func encodeFixed64Internal(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Internal(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Internal(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Internal(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintInternal(data []byte, offset int, v uint64) int { +func encodeVarintInternal(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *InternalTimeSeriesData) Size() (n int) { @@ -235,8 +235,8 @@ func sovInternal(x uint64) (n int) { func sozInternal(x uint64) (n int) { return sovInternal(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *InternalTimeSeriesData) Unmarshal(data []byte) error { - l := len(data) +func (m *InternalTimeSeriesData) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -248,7 +248,7 @@ func (m *InternalTimeSeriesData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -276,7 +276,7 @@ func (m *InternalTimeSeriesData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.StartTimestampNanos |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -295,7 +295,7 @@ func (m *InternalTimeSeriesData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.SampleDurationNanos |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -314,7 +314,7 @@ func (m *InternalTimeSeriesData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -329,13 +329,13 @@ func (m *InternalTimeSeriesData) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Samples = append(m.Samples, InternalTimeSeriesSample{}) - if err := m.Samples[len(m.Samples)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Samples[len(m.Samples)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipInternal(data[iNdEx:]) + skippy, err := skipInternal(dAtA[iNdEx:]) if err != nil { return err } @@ -354,8 +354,8 @@ func (m *InternalTimeSeriesData) Unmarshal(data []byte) error { } return nil } -func (m *InternalTimeSeriesSample) Unmarshal(data []byte) error { - l := len(data) +func (m *InternalTimeSeriesSample) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -367,7 +367,7 @@ func (m *InternalTimeSeriesSample) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -395,7 +395,7 @@ func (m *InternalTimeSeriesSample) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Offset |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -414,7 +414,7 @@ func (m *InternalTimeSeriesSample) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Count |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -430,14 +430,14 @@ func (m *InternalTimeSeriesSample) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - v = uint64(data[iNdEx-8]) - v |= uint64(data[iNdEx-7]) << 8 - v |= uint64(data[iNdEx-6]) << 16 - v |= uint64(data[iNdEx-5]) << 24 - v |= uint64(data[iNdEx-4]) << 32 - v |= uint64(data[iNdEx-3]) << 40 - v |= uint64(data[iNdEx-2]) << 48 - v |= uint64(data[iNdEx-1]) << 56 + v = uint64(dAtA[iNdEx-8]) + v |= uint64(dAtA[iNdEx-7]) << 8 + v |= uint64(dAtA[iNdEx-6]) << 16 + v |= uint64(dAtA[iNdEx-5]) << 24 + v |= uint64(dAtA[iNdEx-4]) << 32 + v |= uint64(dAtA[iNdEx-3]) << 40 + v |= uint64(dAtA[iNdEx-2]) << 48 + v |= uint64(dAtA[iNdEx-1]) << 56 m.Sum = float64(math.Float64frombits(v)) case 8: if wireType != 1 { @@ -448,14 +448,14 @@ func (m *InternalTimeSeriesSample) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - v = uint64(data[iNdEx-8]) - v |= uint64(data[iNdEx-7]) << 8 - v |= uint64(data[iNdEx-6]) << 16 - v |= uint64(data[iNdEx-5]) << 24 - v |= uint64(data[iNdEx-4]) << 32 - v |= uint64(data[iNdEx-3]) << 40 - v |= uint64(data[iNdEx-2]) << 48 - v |= uint64(data[iNdEx-1]) << 56 + v = uint64(dAtA[iNdEx-8]) + v |= uint64(dAtA[iNdEx-7]) << 8 + v |= uint64(dAtA[iNdEx-6]) << 16 + v |= uint64(dAtA[iNdEx-5]) << 24 + v |= uint64(dAtA[iNdEx-4]) << 32 + v |= uint64(dAtA[iNdEx-3]) << 40 + v |= uint64(dAtA[iNdEx-2]) << 48 + v |= uint64(dAtA[iNdEx-1]) << 56 v2 := float64(math.Float64frombits(v)) m.Max = &v2 case 9: @@ -467,19 +467,19 @@ func (m *InternalTimeSeriesSample) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - v = uint64(data[iNdEx-8]) - v |= uint64(data[iNdEx-7]) << 8 - v |= uint64(data[iNdEx-6]) << 16 - v |= uint64(data[iNdEx-5]) << 24 - v |= uint64(data[iNdEx-4]) << 32 - v |= uint64(data[iNdEx-3]) << 40 - v |= uint64(data[iNdEx-2]) << 48 - v |= uint64(data[iNdEx-1]) << 56 + v = uint64(dAtA[iNdEx-8]) + v |= uint64(dAtA[iNdEx-7]) << 8 + v |= uint64(dAtA[iNdEx-6]) << 16 + v |= uint64(dAtA[iNdEx-5]) << 24 + v |= uint64(dAtA[iNdEx-4]) << 32 + v |= uint64(dAtA[iNdEx-3]) << 40 + v |= uint64(dAtA[iNdEx-2]) << 48 + v |= uint64(dAtA[iNdEx-1]) << 56 v2 := float64(math.Float64frombits(v)) m.Min = &v2 default: iNdEx = preIndex - skippy, err := skipInternal(data[iNdEx:]) + skippy, err := skipInternal(dAtA[iNdEx:]) if err != nil { return err } @@ -498,8 +498,8 @@ func (m *InternalTimeSeriesSample) Unmarshal(data []byte) error { } return nil } -func skipInternal(data []byte) (n int, err error) { - l := len(data) +func skipInternal(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -510,7 +510,7 @@ func skipInternal(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -528,7 +528,7 @@ func skipInternal(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -545,7 +545,7 @@ func skipInternal(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -568,7 +568,7 @@ func skipInternal(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -579,7 +579,7 @@ func skipInternal(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipInternal(data[start:]) + next, err := skipInternal(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/roachpb/internal_raft.pb.go b/pkg/roachpb/internal_raft.pb.go index 6600618fba27..5881a18299c2 100644 --- a/pkg/roachpb/internal_raft.pb.go +++ b/pkg/roachpb/internal_raft.pb.go @@ -46,7 +46,7 @@ func (*RaftTombstone) Descriptor() ([]byte, []int) { return fileDescriptorIntern type RaftSnapshotData struct { // The latest RangeDescriptor RangeDescriptor RangeDescriptor `protobuf:"bytes,1,opt,name=range_descriptor,json=rangeDescriptor" json:"range_descriptor"` - KV []RaftSnapshotData_KeyValue `protobuf:"bytes,2,rep,name=KV,json=kV" json:"KV"` + KV []RaftSnapshotData_KeyValue `protobuf:"bytes,2,rep,name=KV" json:"KV"` // These are really raftpb.Entry, but we model them as raw bytes to avoid // roundtripping through memory. LogEntries [][]byte `protobuf:"bytes,3,rep,name=log_entries,json=logEntries" json:"log_entries,omitempty"` @@ -76,80 +76,80 @@ func init() { proto.RegisterType((*RaftSnapshotData)(nil), "cockroach.roachpb.RaftSnapshotData") proto.RegisterType((*RaftSnapshotData_KeyValue)(nil), "cockroach.roachpb.RaftSnapshotData.KeyValue") } -func (m *RaftTruncatedState) Marshal() (data []byte, err error) { +func (m *RaftTruncatedState) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftTruncatedState) MarshalTo(data []byte) (int, error) { +func (m *RaftTruncatedState) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintInternalRaft(data, i, uint64(m.Index)) - data[i] = 0x10 + i = encodeVarintInternalRaft(dAtA, i, uint64(m.Index)) + dAtA[i] = 0x10 i++ - i = encodeVarintInternalRaft(data, i, uint64(m.Term)) + i = encodeVarintInternalRaft(dAtA, i, uint64(m.Term)) return i, nil } -func (m *RaftTombstone) Marshal() (data []byte, err error) { +func (m *RaftTombstone) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftTombstone) MarshalTo(data []byte) (int, error) { +func (m *RaftTombstone) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintInternalRaft(data, i, uint64(m.NextReplicaID)) + i = encodeVarintInternalRaft(dAtA, i, uint64(m.NextReplicaID)) return i, nil } -func (m *RaftSnapshotData) Marshal() (data []byte, err error) { +func (m *RaftSnapshotData) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftSnapshotData) MarshalTo(data []byte) (int, error) { +func (m *RaftSnapshotData) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintInternalRaft(data, i, uint64(m.RangeDescriptor.Size())) - n1, err := m.RangeDescriptor.MarshalTo(data[i:]) + i = encodeVarintInternalRaft(dAtA, i, uint64(m.RangeDescriptor.Size())) + n1, err := m.RangeDescriptor.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 if len(m.KV) > 0 { for _, msg := range m.KV { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintInternalRaft(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintInternalRaft(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -158,46 +158,46 @@ func (m *RaftSnapshotData) MarshalTo(data []byte) (int, error) { } if len(m.LogEntries) > 0 { for _, b := range m.LogEntries { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintInternalRaft(data, i, uint64(len(b))) - i += copy(data[i:], b) + i = encodeVarintInternalRaft(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } return i, nil } -func (m *RaftSnapshotData_KeyValue) Marshal() (data []byte, err error) { +func (m *RaftSnapshotData_KeyValue) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftSnapshotData_KeyValue) MarshalTo(data []byte) (int, error) { +func (m *RaftSnapshotData_KeyValue) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Key != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintInternalRaft(data, i, uint64(len(m.Key))) - i += copy(data[i:], m.Key) + i = encodeVarintInternalRaft(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if m.Value != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintInternalRaft(data, i, uint64(len(m.Value))) - i += copy(data[i:], m.Value) + i = encodeVarintInternalRaft(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintInternalRaft(data, i, uint64(m.Timestamp.Size())) - n2, err := m.Timestamp.MarshalTo(data[i:]) + i = encodeVarintInternalRaft(dAtA, i, uint64(m.Timestamp.Size())) + n2, err := m.Timestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -205,31 +205,31 @@ func (m *RaftSnapshotData_KeyValue) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64InternalRaft(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64InternalRaft(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32InternalRaft(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32InternalRaft(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintInternalRaft(data []byte, offset int, v uint64) int { +func encodeVarintInternalRaft(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func NewPopulatedRaftTruncatedState(r randyInternalRaft, easy bool) *RaftTruncatedState { @@ -267,7 +267,7 @@ func randStringInternalRaft(r randyInternalRaft) string { } return string(tmps) } -func randUnrecognizedInternalRaft(r randyInternalRaft, maxFieldNumber int) (data []byte) { +func randUnrecognizedInternalRaft(r randyInternalRaft, maxFieldNumber int) (dAtA []byte) { l := r.Intn(5) for i := 0; i < l; i++ { wire := r.Intn(4) @@ -275,43 +275,43 @@ func randUnrecognizedInternalRaft(r randyInternalRaft, maxFieldNumber int) (data wire = 5 } fieldNumber := maxFieldNumber + r.Intn(100) - data = randFieldInternalRaft(data, r, fieldNumber, wire) + dAtA = randFieldInternalRaft(dAtA, r, fieldNumber, wire) } - return data + return dAtA } -func randFieldInternalRaft(data []byte, r randyInternalRaft, fieldNumber int, wire int) []byte { +func randFieldInternalRaft(dAtA []byte, r randyInternalRaft, fieldNumber int, wire int) []byte { key := uint32(fieldNumber)<<3 | uint32(wire) switch wire { case 0: - data = encodeVarintPopulateInternalRaft(data, uint64(key)) + dAtA = encodeVarintPopulateInternalRaft(dAtA, uint64(key)) v2 := r.Int63() if r.Intn(2) == 0 { v2 *= -1 } - data = encodeVarintPopulateInternalRaft(data, uint64(v2)) + dAtA = encodeVarintPopulateInternalRaft(dAtA, uint64(v2)) case 1: - data = encodeVarintPopulateInternalRaft(data, uint64(key)) - data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + dAtA = encodeVarintPopulateInternalRaft(dAtA, uint64(key)) + dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) case 2: - data = encodeVarintPopulateInternalRaft(data, uint64(key)) + dAtA = encodeVarintPopulateInternalRaft(dAtA, uint64(key)) ll := r.Intn(100) - data = encodeVarintPopulateInternalRaft(data, uint64(ll)) + dAtA = encodeVarintPopulateInternalRaft(dAtA, uint64(ll)) for j := 0; j < ll; j++ { - data = append(data, byte(r.Intn(256))) + dAtA = append(dAtA, byte(r.Intn(256))) } default: - data = encodeVarintPopulateInternalRaft(data, uint64(key)) - data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + dAtA = encodeVarintPopulateInternalRaft(dAtA, uint64(key)) + dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) } - return data + return dAtA } -func encodeVarintPopulateInternalRaft(data []byte, v uint64) []byte { +func encodeVarintPopulateInternalRaft(dAtA []byte, v uint64) []byte { for v >= 1<<7 { - data = append(data, uint8(uint64(v)&0x7f|0x80)) + dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80)) v >>= 7 } - data = append(data, uint8(v)) - return data + dAtA = append(dAtA, uint8(v)) + return dAtA } func (m *RaftTruncatedState) Size() (n int) { var l int @@ -377,8 +377,8 @@ func sovInternalRaft(x uint64) (n int) { func sozInternalRaft(x uint64) (n int) { return sovInternalRaft(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *RaftTruncatedState) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftTruncatedState) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -390,7 +390,7 @@ func (m *RaftTruncatedState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -418,7 +418,7 @@ func (m *RaftTruncatedState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Index |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -437,7 +437,7 @@ func (m *RaftTruncatedState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Term |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -446,7 +446,7 @@ func (m *RaftTruncatedState) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipInternalRaft(data[iNdEx:]) + skippy, err := skipInternalRaft(dAtA[iNdEx:]) if err != nil { return err } @@ -465,8 +465,8 @@ func (m *RaftTruncatedState) Unmarshal(data []byte) error { } return nil } -func (m *RaftTombstone) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftTombstone) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -478,7 +478,7 @@ func (m *RaftTombstone) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -506,7 +506,7 @@ func (m *RaftTombstone) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NextReplicaID |= (ReplicaID(b) & 0x7F) << shift if b < 0x80 { @@ -515,7 +515,7 @@ func (m *RaftTombstone) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipInternalRaft(data[iNdEx:]) + skippy, err := skipInternalRaft(dAtA[iNdEx:]) if err != nil { return err } @@ -534,8 +534,8 @@ func (m *RaftTombstone) Unmarshal(data []byte) error { } return nil } -func (m *RaftSnapshotData) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -547,7 +547,7 @@ func (m *RaftSnapshotData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -575,7 +575,7 @@ func (m *RaftSnapshotData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -589,7 +589,7 @@ func (m *RaftSnapshotData) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.RangeDescriptor.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RangeDescriptor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -605,7 +605,7 @@ func (m *RaftSnapshotData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -620,7 +620,7 @@ func (m *RaftSnapshotData) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.KV = append(m.KV, RaftSnapshotData_KeyValue{}) - if err := m.KV[len(m.KV)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.KV[len(m.KV)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -636,7 +636,7 @@ func (m *RaftSnapshotData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -651,11 +651,11 @@ func (m *RaftSnapshotData) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.LogEntries = append(m.LogEntries, make([]byte, postIndex-iNdEx)) - copy(m.LogEntries[len(m.LogEntries)-1], data[iNdEx:postIndex]) + copy(m.LogEntries[len(m.LogEntries)-1], dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipInternalRaft(data[iNdEx:]) + skippy, err := skipInternalRaft(dAtA[iNdEx:]) if err != nil { return err } @@ -674,8 +674,8 @@ func (m *RaftSnapshotData) Unmarshal(data []byte) error { } return nil } -func (m *RaftSnapshotData_KeyValue) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftSnapshotData_KeyValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -687,7 +687,7 @@ func (m *RaftSnapshotData_KeyValue) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -715,7 +715,7 @@ func (m *RaftSnapshotData_KeyValue) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -729,7 +729,7 @@ func (m *RaftSnapshotData_KeyValue) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Key = append(m.Key[:0], data[iNdEx:postIndex]...) + m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) if m.Key == nil { m.Key = []byte{} } @@ -746,7 +746,7 @@ func (m *RaftSnapshotData_KeyValue) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -760,7 +760,7 @@ func (m *RaftSnapshotData_KeyValue) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Value = append(m.Value[:0], data[iNdEx:postIndex]...) + m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) if m.Value == nil { m.Value = []byte{} } @@ -777,7 +777,7 @@ func (m *RaftSnapshotData_KeyValue) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -791,13 +791,13 @@ func (m *RaftSnapshotData_KeyValue) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Timestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipInternalRaft(data[iNdEx:]) + skippy, err := skipInternalRaft(dAtA[iNdEx:]) if err != nil { return err } @@ -816,8 +816,8 @@ func (m *RaftSnapshotData_KeyValue) Unmarshal(data []byte) error { } return nil } -func skipInternalRaft(data []byte) (n int, err error) { - l := len(data) +func skipInternalRaft(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -828,7 +828,7 @@ func skipInternalRaft(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -846,7 +846,7 @@ func skipInternalRaft(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -863,7 +863,7 @@ func skipInternalRaft(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -886,7 +886,7 @@ func skipInternalRaft(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -897,7 +897,7 @@ func skipInternalRaft(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipInternalRaft(data[start:]) + next, err := skipInternalRaft(dAtA[start:]) if err != nil { return 0, err } @@ -947,12 +947,12 @@ var fileDescriptorInternalRaft = []byte{ 0x20, 0x19, 0x8f, 0x21, 0x88, 0xa0, 0x08, 0x65, 0x92, 0xa3, 0x90, 0xea, 0x0b, 0xdd, 0x4b, 0xc7, 0xbd, 0x77, 0xab, 0xae, 0x5f, 0x49, 0xa7, 0x7b, 0x65, 0xd3, 0xe0, 0x5c, 0x1e, 0xc3, 0xf4, 0x0d, 0xd1, 0x67, 0x0b, 0x53, 0x1f, 0x19, 0xe3, 0xee, 0xe5, 0x8b, 0x93, 0x31, 0xc7, 0x5b, 0xb8, 0x33, - 0xb8, 0x5d, 0xb0, 0x74, 0x0d, 0x13, 0xd2, 0xd4, 0xd2, 0x67, 0x0b, 0x5f, 0x5f, 0x2d, 0xa8, 0x4d, + 0xb8, 0x5d, 0xb0, 0x74, 0x0d, 0x13, 0xd2, 0xd4, 0xd2, 0x67, 0x0b, 0x5f, 0x9f, 0x2d, 0xa8, 0x4d, 0xba, 0xa9, 0x88, 0x03, 0xe0, 0x28, 0x13, 0x28, 0x4c, 0x63, 0x64, 0x8c, 0x7b, 0x3e, 0x49, 0x45, 0xfc, 0xba, 0x46, 0x86, 0x6b, 0xf2, 0xf0, 0xce, 0x4c, 0x07, 0xc4, 0x58, 0xc1, 0xad, 0x5a, 0xbf, 0xe7, 0x57, 0x23, 0xbd, 0x20, 0x9d, 0xcf, 0x15, 0xa5, 0x2e, 0xbc, 0xe7, 0xd7, 0x07, 0xfa, 0x8a, 0x9c, 0xed, 0x7f, 0xb0, 0x69, 0xa8, 0xb2, 0x8f, 0x0f, 0xb6, 0xac, 0x5e, 0x81, 0xbb, 0x4c, 0x43, 0xf7, 0xea, 0x4e, 0xd4, 0xf4, 0xfc, 0xef, 0x9a, 0x3c, 0xd9, 0xfe, 0xb6, 0x5a, 0xdb, 0xd2, 0xd2, 0x7e, 0x94, 0x96, 0xf6, 0xb3, 0xb4, 0xb4, 0x5f, 0xa5, 0xa5, 0x7d, 0xf9, 0x63, 0xb5, 0x3e, 0x3e, - 0x68, 0x4a, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x70, 0x80, 0x1f, 0xc0, 0x02, 0x00, 0x00, + 0x68, 0x4a, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x00, 0x49, 0x9c, 0xc0, 0x02, 0x00, 0x00, } diff --git a/pkg/roachpb/metadata.pb.go b/pkg/roachpb/metadata.pb.go index c84ada35ac0f..053a8f03b397 100644 --- a/pkg/roachpb/metadata.pb.go +++ b/pkg/roachpb/metadata.pb.go @@ -165,88 +165,88 @@ func init() { proto.RegisterType((*Locality)(nil), "cockroach.roachpb.Locality") proto.RegisterType((*Tier)(nil), "cockroach.roachpb.Tier") } -func (m *Attributes) Marshal() (data []byte, err error) { +func (m *Attributes) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Attributes) MarshalTo(data []byte) (int, error) { +func (m *Attributes) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Attrs) > 0 { for _, s := range m.Attrs { - data[i] = 0xa + dAtA[i] = 0xa i++ l = len(s) for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } - data[i] = uint8(l) + dAtA[i] = uint8(l) i++ - i += copy(data[i:], s) + i += copy(dAtA[i:], s) } } return i, nil } -func (m *ReplicaDescriptor) Marshal() (data []byte, err error) { +func (m *ReplicaDescriptor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ReplicaDescriptor) MarshalTo(data []byte) (int, error) { +func (m *ReplicaDescriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintMetadata(data, i, uint64(m.NodeID)) - data[i] = 0x10 + i = encodeVarintMetadata(dAtA, i, uint64(m.NodeID)) + dAtA[i] = 0x10 i++ - i = encodeVarintMetadata(data, i, uint64(m.StoreID)) - data[i] = 0x18 + i = encodeVarintMetadata(dAtA, i, uint64(m.StoreID)) + dAtA[i] = 0x18 i++ - i = encodeVarintMetadata(data, i, uint64(m.ReplicaID)) + i = encodeVarintMetadata(dAtA, i, uint64(m.ReplicaID)) return i, nil } -func (m *ReplicaIdent) Marshal() (data []byte, err error) { +func (m *ReplicaIdent) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ReplicaIdent) MarshalTo(data []byte) (int, error) { +func (m *ReplicaIdent) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintMetadata(data, i, uint64(m.RangeID)) - data[i] = 0x12 + i = encodeVarintMetadata(dAtA, i, uint64(m.RangeID)) + dAtA[i] = 0x12 i++ - i = encodeVarintMetadata(data, i, uint64(m.Replica.Size())) - n1, err := m.Replica.MarshalTo(data[i:]) + i = encodeVarintMetadata(dAtA, i, uint64(m.Replica.Size())) + n1, err := m.Replica.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -254,122 +254,122 @@ func (m *ReplicaIdent) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RangeDescriptor) Marshal() (data []byte, err error) { +func (m *RangeDescriptor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RangeDescriptor) MarshalTo(data []byte) (int, error) { +func (m *RangeDescriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintMetadata(data, i, uint64(m.RangeID)) + i = encodeVarintMetadata(dAtA, i, uint64(m.RangeID)) if m.StartKey != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintMetadata(data, i, uint64(len(m.StartKey))) - i += copy(data[i:], m.StartKey) + i = encodeVarintMetadata(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if m.EndKey != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintMetadata(data, i, uint64(len(m.EndKey))) - i += copy(data[i:], m.EndKey) + i = encodeVarintMetadata(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } if len(m.Replicas) > 0 { for _, msg := range m.Replicas { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintMetadata(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintMetadata(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0x28 + dAtA[i] = 0x28 i++ - i = encodeVarintMetadata(data, i, uint64(m.NextReplicaID)) + i = encodeVarintMetadata(dAtA, i, uint64(m.NextReplicaID)) return i, nil } -func (m *StoreCapacity) Marshal() (data []byte, err error) { +func (m *StoreCapacity) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *StoreCapacity) MarshalTo(data []byte) (int, error) { +func (m *StoreCapacity) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintMetadata(data, i, uint64(m.Capacity)) - data[i] = 0x10 + i = encodeVarintMetadata(dAtA, i, uint64(m.Capacity)) + dAtA[i] = 0x10 i++ - i = encodeVarintMetadata(data, i, uint64(m.Available)) - data[i] = 0x18 + i = encodeVarintMetadata(dAtA, i, uint64(m.Available)) + dAtA[i] = 0x18 i++ - i = encodeVarintMetadata(data, i, uint64(m.RangeCount)) - data[i] = 0x20 + i = encodeVarintMetadata(dAtA, i, uint64(m.RangeCount)) + dAtA[i] = 0x20 i++ - i = encodeVarintMetadata(data, i, uint64(m.LeaseCount)) + i = encodeVarintMetadata(dAtA, i, uint64(m.LeaseCount)) return i, nil } -func (m *NodeDescriptor) Marshal() (data []byte, err error) { +func (m *NodeDescriptor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *NodeDescriptor) MarshalTo(data []byte) (int, error) { +func (m *NodeDescriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintMetadata(data, i, uint64(m.NodeID)) - data[i] = 0x12 + i = encodeVarintMetadata(dAtA, i, uint64(m.NodeID)) + dAtA[i] = 0x12 i++ - i = encodeVarintMetadata(data, i, uint64(m.Address.Size())) - n2, err := m.Address.MarshalTo(data[i:]) + i = encodeVarintMetadata(dAtA, i, uint64(m.Address.Size())) + n2, err := m.Address.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintMetadata(data, i, uint64(m.Attrs.Size())) - n3, err := m.Attrs.MarshalTo(data[i:]) + i = encodeVarintMetadata(dAtA, i, uint64(m.Attrs.Size())) + n3, err := m.Attrs.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintMetadata(data, i, uint64(m.Locality.Size())) - n4, err := m.Locality.MarshalTo(data[i:]) + i = encodeVarintMetadata(dAtA, i, uint64(m.Locality.Size())) + n4, err := m.Locality.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -377,44 +377,44 @@ func (m *NodeDescriptor) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *StoreDescriptor) Marshal() (data []byte, err error) { +func (m *StoreDescriptor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *StoreDescriptor) MarshalTo(data []byte) (int, error) { +func (m *StoreDescriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintMetadata(data, i, uint64(m.StoreID)) - data[i] = 0x12 + i = encodeVarintMetadata(dAtA, i, uint64(m.StoreID)) + dAtA[i] = 0x12 i++ - i = encodeVarintMetadata(data, i, uint64(m.Attrs.Size())) - n5, err := m.Attrs.MarshalTo(data[i:]) + i = encodeVarintMetadata(dAtA, i, uint64(m.Attrs.Size())) + n5, err := m.Attrs.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n5 - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintMetadata(data, i, uint64(m.Node.Size())) - n6, err := m.Node.MarshalTo(data[i:]) + i = encodeVarintMetadata(dAtA, i, uint64(m.Node.Size())) + n6, err := m.Node.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n6 - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintMetadata(data, i, uint64(m.Capacity.Size())) - n7, err := m.Capacity.MarshalTo(data[i:]) + i = encodeVarintMetadata(dAtA, i, uint64(m.Capacity.Size())) + n7, err := m.Capacity.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -422,30 +422,30 @@ func (m *StoreDescriptor) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *StoreDeadReplicas) Marshal() (data []byte, err error) { +func (m *StoreDeadReplicas) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *StoreDeadReplicas) MarshalTo(data []byte) (int, error) { +func (m *StoreDeadReplicas) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintMetadata(data, i, uint64(m.StoreID)) + i = encodeVarintMetadata(dAtA, i, uint64(m.StoreID)) if len(m.Replicas) > 0 { for _, msg := range m.Replicas { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintMetadata(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintMetadata(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -455,27 +455,27 @@ func (m *StoreDeadReplicas) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *Locality) Marshal() (data []byte, err error) { +func (m *Locality) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Locality) MarshalTo(data []byte) (int, error) { +func (m *Locality) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Tiers) > 0 { for _, msg := range m.Tiers { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintMetadata(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintMetadata(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -485,57 +485,57 @@ func (m *Locality) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *Tier) Marshal() (data []byte, err error) { +func (m *Tier) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Tier) MarshalTo(data []byte) (int, error) { +func (m *Tier) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintMetadata(data, i, uint64(len(m.Key))) - i += copy(data[i:], m.Key) - data[i] = 0x12 + i = encodeVarintMetadata(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) + dAtA[i] = 0x12 i++ - i = encodeVarintMetadata(data, i, uint64(len(m.Value))) - i += copy(data[i:], m.Value) + i = encodeVarintMetadata(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) return i, nil } -func encodeFixed64Metadata(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Metadata(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Metadata(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Metadata(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintMetadata(data []byte, offset int, v uint64) int { +func encodeVarintMetadata(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func NewPopulatedReplicaDescriptor(r randyMetadata, easy bool) *ReplicaDescriptor { @@ -583,7 +583,7 @@ func randStringMetadata(r randyMetadata) string { } return string(tmps) } -func randUnrecognizedMetadata(r randyMetadata, maxFieldNumber int) (data []byte) { +func randUnrecognizedMetadata(r randyMetadata, maxFieldNumber int) (dAtA []byte) { l := r.Intn(5) for i := 0; i < l; i++ { wire := r.Intn(4) @@ -591,43 +591,43 @@ func randUnrecognizedMetadata(r randyMetadata, maxFieldNumber int) (data []byte) wire = 5 } fieldNumber := maxFieldNumber + r.Intn(100) - data = randFieldMetadata(data, r, fieldNumber, wire) + dAtA = randFieldMetadata(dAtA, r, fieldNumber, wire) } - return data + return dAtA } -func randFieldMetadata(data []byte, r randyMetadata, fieldNumber int, wire int) []byte { +func randFieldMetadata(dAtA []byte, r randyMetadata, fieldNumber int, wire int) []byte { key := uint32(fieldNumber)<<3 | uint32(wire) switch wire { case 0: - data = encodeVarintPopulateMetadata(data, uint64(key)) + dAtA = encodeVarintPopulateMetadata(dAtA, uint64(key)) v2 := r.Int63() if r.Intn(2) == 0 { v2 *= -1 } - data = encodeVarintPopulateMetadata(data, uint64(v2)) + dAtA = encodeVarintPopulateMetadata(dAtA, uint64(v2)) case 1: - data = encodeVarintPopulateMetadata(data, uint64(key)) - data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + dAtA = encodeVarintPopulateMetadata(dAtA, uint64(key)) + dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) case 2: - data = encodeVarintPopulateMetadata(data, uint64(key)) + dAtA = encodeVarintPopulateMetadata(dAtA, uint64(key)) ll := r.Intn(100) - data = encodeVarintPopulateMetadata(data, uint64(ll)) + dAtA = encodeVarintPopulateMetadata(dAtA, uint64(ll)) for j := 0; j < ll; j++ { - data = append(data, byte(r.Intn(256))) + dAtA = append(dAtA, byte(r.Intn(256))) } default: - data = encodeVarintPopulateMetadata(data, uint64(key)) - data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + dAtA = encodeVarintPopulateMetadata(dAtA, uint64(key)) + dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) } - return data + return dAtA } -func encodeVarintPopulateMetadata(data []byte, v uint64) []byte { +func encodeVarintPopulateMetadata(dAtA []byte, v uint64) []byte { for v >= 1<<7 { - data = append(data, uint8(uint64(v)&0x7f|0x80)) + dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80)) v >>= 7 } - data = append(data, uint8(v)) - return data + dAtA = append(dAtA, uint8(v)) + return dAtA } func (m *Attributes) Size() (n int) { var l int @@ -765,8 +765,8 @@ func sovMetadata(x uint64) (n int) { func sozMetadata(x uint64) (n int) { return sovMetadata(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *Attributes) Unmarshal(data []byte) error { - l := len(data) +func (m *Attributes) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -778,7 +778,7 @@ func (m *Attributes) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -806,7 +806,7 @@ func (m *Attributes) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -821,11 +821,11 @@ func (m *Attributes) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Attrs = append(m.Attrs, string(data[iNdEx:postIndex])) + m.Attrs = append(m.Attrs, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipMetadata(data[iNdEx:]) + skippy, err := skipMetadata(dAtA[iNdEx:]) if err != nil { return err } @@ -844,8 +844,8 @@ func (m *Attributes) Unmarshal(data []byte) error { } return nil } -func (m *ReplicaDescriptor) Unmarshal(data []byte) error { - l := len(data) +func (m *ReplicaDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -857,7 +857,7 @@ func (m *ReplicaDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -885,7 +885,7 @@ func (m *ReplicaDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NodeID |= (NodeID(b) & 0x7F) << shift if b < 0x80 { @@ -904,7 +904,7 @@ func (m *ReplicaDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.StoreID |= (StoreID(b) & 0x7F) << shift if b < 0x80 { @@ -923,7 +923,7 @@ func (m *ReplicaDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ReplicaID |= (ReplicaID(b) & 0x7F) << shift if b < 0x80 { @@ -932,7 +932,7 @@ func (m *ReplicaDescriptor) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipMetadata(data[iNdEx:]) + skippy, err := skipMetadata(dAtA[iNdEx:]) if err != nil { return err } @@ -951,8 +951,8 @@ func (m *ReplicaDescriptor) Unmarshal(data []byte) error { } return nil } -func (m *ReplicaIdent) Unmarshal(data []byte) error { - l := len(data) +func (m *ReplicaIdent) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -964,7 +964,7 @@ func (m *ReplicaIdent) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -992,7 +992,7 @@ func (m *ReplicaIdent) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeID |= (RangeID(b) & 0x7F) << shift if b < 0x80 { @@ -1011,7 +1011,7 @@ func (m *ReplicaIdent) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1025,13 +1025,13 @@ func (m *ReplicaIdent) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Replica.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Replica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipMetadata(data[iNdEx:]) + skippy, err := skipMetadata(dAtA[iNdEx:]) if err != nil { return err } @@ -1050,8 +1050,8 @@ func (m *ReplicaIdent) Unmarshal(data []byte) error { } return nil } -func (m *RangeDescriptor) Unmarshal(data []byte) error { - l := len(data) +func (m *RangeDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1063,7 +1063,7 @@ func (m *RangeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1091,7 +1091,7 @@ func (m *RangeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeID |= (RangeID(b) & 0x7F) << shift if b < 0x80 { @@ -1110,7 +1110,7 @@ func (m *RangeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1124,7 +1124,7 @@ func (m *RangeDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.StartKey = append(m.StartKey[:0], data[iNdEx:postIndex]...) + m.StartKey = append(m.StartKey[:0], dAtA[iNdEx:postIndex]...) if m.StartKey == nil { m.StartKey = []byte{} } @@ -1141,7 +1141,7 @@ func (m *RangeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1155,7 +1155,7 @@ func (m *RangeDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EndKey = append(m.EndKey[:0], data[iNdEx:postIndex]...) + m.EndKey = append(m.EndKey[:0], dAtA[iNdEx:postIndex]...) if m.EndKey == nil { m.EndKey = []byte{} } @@ -1172,7 +1172,7 @@ func (m *RangeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1187,7 +1187,7 @@ func (m *RangeDescriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Replicas = append(m.Replicas, ReplicaDescriptor{}) - if err := m.Replicas[len(m.Replicas)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Replicas[len(m.Replicas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1203,7 +1203,7 @@ func (m *RangeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NextReplicaID |= (ReplicaID(b) & 0x7F) << shift if b < 0x80 { @@ -1212,7 +1212,7 @@ func (m *RangeDescriptor) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipMetadata(data[iNdEx:]) + skippy, err := skipMetadata(dAtA[iNdEx:]) if err != nil { return err } @@ -1231,8 +1231,8 @@ func (m *RangeDescriptor) Unmarshal(data []byte) error { } return nil } -func (m *StoreCapacity) Unmarshal(data []byte) error { - l := len(data) +func (m *StoreCapacity) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1244,7 +1244,7 @@ func (m *StoreCapacity) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1272,7 +1272,7 @@ func (m *StoreCapacity) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Capacity |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -1291,7 +1291,7 @@ func (m *StoreCapacity) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Available |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -1310,7 +1310,7 @@ func (m *StoreCapacity) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeCount |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -1329,7 +1329,7 @@ func (m *StoreCapacity) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.LeaseCount |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -1338,7 +1338,7 @@ func (m *StoreCapacity) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipMetadata(data[iNdEx:]) + skippy, err := skipMetadata(dAtA[iNdEx:]) if err != nil { return err } @@ -1357,8 +1357,8 @@ func (m *StoreCapacity) Unmarshal(data []byte) error { } return nil } -func (m *NodeDescriptor) Unmarshal(data []byte) error { - l := len(data) +func (m *NodeDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1370,7 +1370,7 @@ func (m *NodeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1398,7 +1398,7 @@ func (m *NodeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NodeID |= (NodeID(b) & 0x7F) << shift if b < 0x80 { @@ -1417,7 +1417,7 @@ func (m *NodeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1431,7 +1431,7 @@ func (m *NodeDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Address.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1447,7 +1447,7 @@ func (m *NodeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1461,7 +1461,7 @@ func (m *NodeDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Attrs.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Attrs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1477,7 +1477,7 @@ func (m *NodeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1491,13 +1491,13 @@ func (m *NodeDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Locality.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Locality.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipMetadata(data[iNdEx:]) + skippy, err := skipMetadata(dAtA[iNdEx:]) if err != nil { return err } @@ -1516,8 +1516,8 @@ func (m *NodeDescriptor) Unmarshal(data []byte) error { } return nil } -func (m *StoreDescriptor) Unmarshal(data []byte) error { - l := len(data) +func (m *StoreDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1529,7 +1529,7 @@ func (m *StoreDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1557,7 +1557,7 @@ func (m *StoreDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.StoreID |= (StoreID(b) & 0x7F) << shift if b < 0x80 { @@ -1576,7 +1576,7 @@ func (m *StoreDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1590,7 +1590,7 @@ func (m *StoreDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Attrs.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Attrs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1606,7 +1606,7 @@ func (m *StoreDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1620,7 +1620,7 @@ func (m *StoreDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Node.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Node.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1636,7 +1636,7 @@ func (m *StoreDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1650,13 +1650,13 @@ func (m *StoreDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Capacity.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Capacity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipMetadata(data[iNdEx:]) + skippy, err := skipMetadata(dAtA[iNdEx:]) if err != nil { return err } @@ -1675,8 +1675,8 @@ func (m *StoreDescriptor) Unmarshal(data []byte) error { } return nil } -func (m *StoreDeadReplicas) Unmarshal(data []byte) error { - l := len(data) +func (m *StoreDeadReplicas) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1688,7 +1688,7 @@ func (m *StoreDeadReplicas) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1716,7 +1716,7 @@ func (m *StoreDeadReplicas) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.StoreID |= (StoreID(b) & 0x7F) << shift if b < 0x80 { @@ -1735,7 +1735,7 @@ func (m *StoreDeadReplicas) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1750,13 +1750,13 @@ func (m *StoreDeadReplicas) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Replicas = append(m.Replicas, ReplicaIdent{}) - if err := m.Replicas[len(m.Replicas)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Replicas[len(m.Replicas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipMetadata(data[iNdEx:]) + skippy, err := skipMetadata(dAtA[iNdEx:]) if err != nil { return err } @@ -1775,8 +1775,8 @@ func (m *StoreDeadReplicas) Unmarshal(data []byte) error { } return nil } -func (m *Locality) Unmarshal(data []byte) error { - l := len(data) +func (m *Locality) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1788,7 +1788,7 @@ func (m *Locality) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1816,7 +1816,7 @@ func (m *Locality) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1831,13 +1831,13 @@ func (m *Locality) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Tiers = append(m.Tiers, Tier{}) - if err := m.Tiers[len(m.Tiers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Tiers[len(m.Tiers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipMetadata(data[iNdEx:]) + skippy, err := skipMetadata(dAtA[iNdEx:]) if err != nil { return err } @@ -1856,8 +1856,8 @@ func (m *Locality) Unmarshal(data []byte) error { } return nil } -func (m *Tier) Unmarshal(data []byte) error { - l := len(data) +func (m *Tier) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1869,7 +1869,7 @@ func (m *Tier) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1897,7 +1897,7 @@ func (m *Tier) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1912,7 +1912,7 @@ func (m *Tier) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Key = string(data[iNdEx:postIndex]) + m.Key = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -1926,7 +1926,7 @@ func (m *Tier) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1941,11 +1941,11 @@ func (m *Tier) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Value = string(data[iNdEx:postIndex]) + m.Value = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipMetadata(data[iNdEx:]) + skippy, err := skipMetadata(dAtA[iNdEx:]) if err != nil { return err } @@ -1964,8 +1964,8 @@ func (m *Tier) Unmarshal(data []byte) error { } return nil } -func skipMetadata(data []byte) (n int, err error) { - l := len(data) +func skipMetadata(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -1976,7 +1976,7 @@ func skipMetadata(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1994,7 +1994,7 @@ func skipMetadata(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -2011,7 +2011,7 @@ func skipMetadata(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2034,7 +2034,7 @@ func skipMetadata(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2045,7 +2045,7 @@ func skipMetadata(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipMetadata(data[start:]) + next, err := skipMetadata(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/rpc/heartbeat.pb.go b/pkg/rpc/heartbeat.pb.go index e8a5fa29dfd0..3751cd944365 100644 --- a/pkg/rpc/heartbeat.pb.go +++ b/pkg/rpc/heartbeat.pb.go @@ -166,120 +166,120 @@ var _Heartbeat_serviceDesc = grpc.ServiceDesc{ Metadata: fileDescriptorHeartbeat, } -func (m *RemoteOffset) Marshal() (data []byte, err error) { +func (m *RemoteOffset) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RemoteOffset) MarshalTo(data []byte) (int, error) { +func (m *RemoteOffset) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintHeartbeat(data, i, uint64(m.Offset)) - data[i] = 0x10 + i = encodeVarintHeartbeat(dAtA, i, uint64(m.Offset)) + dAtA[i] = 0x10 i++ - i = encodeVarintHeartbeat(data, i, uint64(m.Uncertainty)) - data[i] = 0x18 + i = encodeVarintHeartbeat(dAtA, i, uint64(m.Uncertainty)) + dAtA[i] = 0x18 i++ - i = encodeVarintHeartbeat(data, i, uint64(m.MeasuredAt)) + i = encodeVarintHeartbeat(dAtA, i, uint64(m.MeasuredAt)) return i, nil } -func (m *PingRequest) Marshal() (data []byte, err error) { +func (m *PingRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *PingRequest) MarshalTo(data []byte) (int, error) { +func (m *PingRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintHeartbeat(data, i, uint64(len(m.Ping))) - i += copy(data[i:], m.Ping) - data[i] = 0x12 + i = encodeVarintHeartbeat(dAtA, i, uint64(len(m.Ping))) + i += copy(dAtA[i:], m.Ping) + dAtA[i] = 0x12 i++ - i = encodeVarintHeartbeat(data, i, uint64(m.Offset.Size())) - n1, err := m.Offset.MarshalTo(data[i:]) + i = encodeVarintHeartbeat(dAtA, i, uint64(m.Offset.Size())) + n1, err := m.Offset.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintHeartbeat(data, i, uint64(len(m.Addr))) - i += copy(data[i:], m.Addr) - data[i] = 0x20 + i = encodeVarintHeartbeat(dAtA, i, uint64(len(m.Addr))) + i += copy(dAtA[i:], m.Addr) + dAtA[i] = 0x20 i++ - i = encodeVarintHeartbeat(data, i, uint64(m.MaxOffsetNanos)) + i = encodeVarintHeartbeat(dAtA, i, uint64(m.MaxOffsetNanos)) return i, nil } -func (m *PingResponse) Marshal() (data []byte, err error) { +func (m *PingResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *PingResponse) MarshalTo(data []byte) (int, error) { +func (m *PingResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintHeartbeat(data, i, uint64(len(m.Pong))) - i += copy(data[i:], m.Pong) - data[i] = 0x10 + i = encodeVarintHeartbeat(dAtA, i, uint64(len(m.Pong))) + i += copy(dAtA[i:], m.Pong) + dAtA[i] = 0x10 i++ - i = encodeVarintHeartbeat(data, i, uint64(m.ServerTime)) + i = encodeVarintHeartbeat(dAtA, i, uint64(m.ServerTime)) return i, nil } -func encodeFixed64Heartbeat(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Heartbeat(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Heartbeat(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Heartbeat(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintHeartbeat(data []byte, offset int, v uint64) int { +func encodeVarintHeartbeat(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *RemoteOffset) Size() (n int) { @@ -326,8 +326,8 @@ func sovHeartbeat(x uint64) (n int) { func sozHeartbeat(x uint64) (n int) { return sovHeartbeat(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *RemoteOffset) Unmarshal(data []byte) error { - l := len(data) +func (m *RemoteOffset) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -339,7 +339,7 @@ func (m *RemoteOffset) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -367,7 +367,7 @@ func (m *RemoteOffset) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Offset |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -386,7 +386,7 @@ func (m *RemoteOffset) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Uncertainty |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -405,7 +405,7 @@ func (m *RemoteOffset) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.MeasuredAt |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -414,7 +414,7 @@ func (m *RemoteOffset) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipHeartbeat(data[iNdEx:]) + skippy, err := skipHeartbeat(dAtA[iNdEx:]) if err != nil { return err } @@ -433,8 +433,8 @@ func (m *RemoteOffset) Unmarshal(data []byte) error { } return nil } -func (m *PingRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *PingRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -446,7 +446,7 @@ func (m *PingRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -474,7 +474,7 @@ func (m *PingRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -489,7 +489,7 @@ func (m *PingRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Ping = string(data[iNdEx:postIndex]) + m.Ping = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -503,7 +503,7 @@ func (m *PingRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -517,7 +517,7 @@ func (m *PingRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Offset.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Offset.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -533,7 +533,7 @@ func (m *PingRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -548,7 +548,7 @@ func (m *PingRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Addr = string(data[iNdEx:postIndex]) + m.Addr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { @@ -562,7 +562,7 @@ func (m *PingRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.MaxOffsetNanos |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -571,7 +571,7 @@ func (m *PingRequest) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipHeartbeat(data[iNdEx:]) + skippy, err := skipHeartbeat(dAtA[iNdEx:]) if err != nil { return err } @@ -590,8 +590,8 @@ func (m *PingRequest) Unmarshal(data []byte) error { } return nil } -func (m *PingResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *PingResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -603,7 +603,7 @@ func (m *PingResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -631,7 +631,7 @@ func (m *PingResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -646,7 +646,7 @@ func (m *PingResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Pong = string(data[iNdEx:postIndex]) + m.Pong = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -660,7 +660,7 @@ func (m *PingResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ServerTime |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -669,7 +669,7 @@ func (m *PingResponse) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipHeartbeat(data[iNdEx:]) + skippy, err := skipHeartbeat(dAtA[iNdEx:]) if err != nil { return err } @@ -688,8 +688,8 @@ func (m *PingResponse) Unmarshal(data []byte) error { } return nil } -func skipHeartbeat(data []byte) (n int, err error) { - l := len(data) +func skipHeartbeat(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -700,7 +700,7 @@ func skipHeartbeat(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -718,7 +718,7 @@ func skipHeartbeat(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -735,7 +735,7 @@ func skipHeartbeat(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -758,7 +758,7 @@ func skipHeartbeat(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -769,7 +769,7 @@ func skipHeartbeat(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipHeartbeat(data[start:]) + next, err := skipHeartbeat(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/server/serverpb/admin.pb.go b/pkg/server/serverpb/admin.pb.go index f68e02b28283..37971aa8929e 100644 --- a/pkg/server/serverpb/admin.pb.go +++ b/pkg/server/serverpb/admin.pb.go @@ -1233,17 +1233,17 @@ var _Admin_serviceDesc = grpc.ServiceDesc{ Metadata: fileDescriptorAdmin, } -func (m *DatabasesRequest) Marshal() (data []byte, err error) { +func (m *DatabasesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DatabasesRequest) MarshalTo(data []byte) (int, error) { +func (m *DatabasesRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -1251,84 +1251,84 @@ func (m *DatabasesRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *DatabasesResponse) Marshal() (data []byte, err error) { +func (m *DatabasesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DatabasesResponse) MarshalTo(data []byte) (int, error) { +func (m *DatabasesResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Databases) > 0 { for _, s := range m.Databases { - data[i] = 0xa + dAtA[i] = 0xa i++ l = len(s) for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } - data[i] = uint8(l) + dAtA[i] = uint8(l) i++ - i += copy(data[i:], s) + i += copy(dAtA[i:], s) } } return i, nil } -func (m *DatabaseDetailsRequest) Marshal() (data []byte, err error) { +func (m *DatabaseDetailsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DatabaseDetailsRequest) MarshalTo(data []byte) (int, error) { +func (m *DatabaseDetailsRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Database) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Database))) - i += copy(data[i:], m.Database) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Database))) + i += copy(dAtA[i:], m.Database) } return i, nil } -func (m *DatabaseDetailsResponse) Marshal() (data []byte, err error) { +func (m *DatabaseDetailsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DatabaseDetailsResponse) MarshalTo(data []byte) (int, error) { +func (m *DatabaseDetailsResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Grants) > 0 { for _, msg := range m.Grants { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintAdmin(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1337,130 +1337,130 @@ func (m *DatabaseDetailsResponse) MarshalTo(data []byte) (int, error) { } if len(m.TableNames) > 0 { for _, s := range m.TableNames { - data[i] = 0x12 + dAtA[i] = 0x12 i++ l = len(s) for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } - data[i] = uint8(l) + dAtA[i] = uint8(l) i++ - i += copy(data[i:], s) + i += copy(dAtA[i:], s) } } if m.DescriptorID != 0 { - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintAdmin(data, i, uint64(m.DescriptorID)) + i = encodeVarintAdmin(dAtA, i, uint64(m.DescriptorID)) } - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintAdmin(data, i, uint64(m.ZoneConfig.Size())) - n1, err := m.ZoneConfig.MarshalTo(data[i:]) + i = encodeVarintAdmin(dAtA, i, uint64(m.ZoneConfig.Size())) + n1, err := m.ZoneConfig.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 if m.ZoneConfigLevel != 0 { - data[i] = 0x28 + dAtA[i] = 0x28 i++ - i = encodeVarintAdmin(data, i, uint64(m.ZoneConfigLevel)) + i = encodeVarintAdmin(dAtA, i, uint64(m.ZoneConfigLevel)) } return i, nil } -func (m *DatabaseDetailsResponse_Grant) Marshal() (data []byte, err error) { +func (m *DatabaseDetailsResponse_Grant) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DatabaseDetailsResponse_Grant) MarshalTo(data []byte) (int, error) { +func (m *DatabaseDetailsResponse_Grant) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.User) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(len(m.User))) - i += copy(data[i:], m.User) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.User))) + i += copy(dAtA[i:], m.User) } if len(m.Privileges) > 0 { for _, s := range m.Privileges { - data[i] = 0x12 + dAtA[i] = 0x12 i++ l = len(s) for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } - data[i] = uint8(l) + dAtA[i] = uint8(l) i++ - i += copy(data[i:], s) + i += copy(dAtA[i:], s) } } return i, nil } -func (m *TableDetailsRequest) Marshal() (data []byte, err error) { +func (m *TableDetailsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableDetailsRequest) MarshalTo(data []byte) (int, error) { +func (m *TableDetailsRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Database) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Database))) - i += copy(data[i:], m.Database) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Database))) + i += copy(dAtA[i:], m.Database) } if len(m.Table) > 0 { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Table))) - i += copy(data[i:], m.Table) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Table))) + i += copy(dAtA[i:], m.Table) } return i, nil } -func (m *TableDetailsResponse) Marshal() (data []byte, err error) { +func (m *TableDetailsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableDetailsResponse) MarshalTo(data []byte) (int, error) { +func (m *TableDetailsResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Grants) > 0 { for _, msg := range m.Grants { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintAdmin(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1469,10 +1469,10 @@ func (m *TableDetailsResponse) MarshalTo(data []byte) (int, error) { } if len(m.Columns) > 0 { for _, msg := range m.Columns { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintAdmin(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintAdmin(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1481,10 +1481,10 @@ func (m *TableDetailsResponse) MarshalTo(data []byte) (int, error) { } if len(m.Indexes) > 0 { for _, msg := range m.Indexes { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintAdmin(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintAdmin(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1492,257 +1492,257 @@ func (m *TableDetailsResponse) MarshalTo(data []byte) (int, error) { } } if m.RangeCount != 0 { - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintAdmin(data, i, uint64(m.RangeCount)) + i = encodeVarintAdmin(dAtA, i, uint64(m.RangeCount)) } if len(m.CreateTableStatement) > 0 { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintAdmin(data, i, uint64(len(m.CreateTableStatement))) - i += copy(data[i:], m.CreateTableStatement) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.CreateTableStatement))) + i += copy(dAtA[i:], m.CreateTableStatement) } - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintAdmin(data, i, uint64(m.ZoneConfig.Size())) - n2, err := m.ZoneConfig.MarshalTo(data[i:]) + i = encodeVarintAdmin(dAtA, i, uint64(m.ZoneConfig.Size())) + n2, err := m.ZoneConfig.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 if m.ZoneConfigLevel != 0 { - data[i] = 0x38 + dAtA[i] = 0x38 i++ - i = encodeVarintAdmin(data, i, uint64(m.ZoneConfigLevel)) + i = encodeVarintAdmin(dAtA, i, uint64(m.ZoneConfigLevel)) } if m.DescriptorID != 0 { - data[i] = 0x40 + dAtA[i] = 0x40 i++ - i = encodeVarintAdmin(data, i, uint64(m.DescriptorID)) + i = encodeVarintAdmin(dAtA, i, uint64(m.DescriptorID)) } return i, nil } -func (m *TableDetailsResponse_Grant) Marshal() (data []byte, err error) { +func (m *TableDetailsResponse_Grant) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableDetailsResponse_Grant) MarshalTo(data []byte) (int, error) { +func (m *TableDetailsResponse_Grant) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.User) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(len(m.User))) - i += copy(data[i:], m.User) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.User))) + i += copy(dAtA[i:], m.User) } if len(m.Privileges) > 0 { for _, s := range m.Privileges { - data[i] = 0x12 + dAtA[i] = 0x12 i++ l = len(s) for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } - data[i] = uint8(l) + dAtA[i] = uint8(l) i++ - i += copy(data[i:], s) + i += copy(dAtA[i:], s) } } return i, nil } -func (m *TableDetailsResponse_Column) Marshal() (data []byte, err error) { +func (m *TableDetailsResponse_Column) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableDetailsResponse_Column) MarshalTo(data []byte) (int, error) { +func (m *TableDetailsResponse_Column) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Name) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } if len(m.Type) > 0 { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Type))) + i += copy(dAtA[i:], m.Type) } if m.Nullable { - data[i] = 0x18 + dAtA[i] = 0x18 i++ if m.Nullable { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ } if len(m.DefaultValue) > 0 { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintAdmin(data, i, uint64(len(m.DefaultValue))) - i += copy(data[i:], m.DefaultValue) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.DefaultValue))) + i += copy(dAtA[i:], m.DefaultValue) } return i, nil } -func (m *TableDetailsResponse_Index) Marshal() (data []byte, err error) { +func (m *TableDetailsResponse_Index) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableDetailsResponse_Index) MarshalTo(data []byte) (int, error) { +func (m *TableDetailsResponse_Index) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Name) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } if m.Unique { - data[i] = 0x10 + dAtA[i] = 0x10 i++ if m.Unique { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ } if m.Seq != 0 { - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintAdmin(data, i, uint64(m.Seq)) + i = encodeVarintAdmin(dAtA, i, uint64(m.Seq)) } if len(m.Column) > 0 { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Column))) - i += copy(data[i:], m.Column) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Column))) + i += copy(dAtA[i:], m.Column) } if len(m.Direction) > 0 { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Direction))) - i += copy(data[i:], m.Direction) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Direction))) + i += copy(dAtA[i:], m.Direction) } if m.Storing { - data[i] = 0x30 + dAtA[i] = 0x30 i++ if m.Storing { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ } return i, nil } -func (m *TableStatsRequest) Marshal() (data []byte, err error) { +func (m *TableStatsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableStatsRequest) MarshalTo(data []byte) (int, error) { +func (m *TableStatsRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Database) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Database))) - i += copy(data[i:], m.Database) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Database))) + i += copy(dAtA[i:], m.Database) } if len(m.Table) > 0 { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Table))) - i += copy(data[i:], m.Table) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Table))) + i += copy(dAtA[i:], m.Table) } return i, nil } -func (m *TableStatsResponse) Marshal() (data []byte, err error) { +func (m *TableStatsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableStatsResponse) MarshalTo(data []byte) (int, error) { +func (m *TableStatsResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.RangeCount != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintAdmin(data, i, uint64(m.RangeCount)) + i = encodeVarintAdmin(dAtA, i, uint64(m.RangeCount)) } if m.ReplicaCount != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintAdmin(data, i, uint64(m.ReplicaCount)) + i = encodeVarintAdmin(dAtA, i, uint64(m.ReplicaCount)) } if m.NodeCount != 0 { - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintAdmin(data, i, uint64(m.NodeCount)) + i = encodeVarintAdmin(dAtA, i, uint64(m.NodeCount)) } - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintAdmin(data, i, uint64(m.Stats.Size())) - n3, err := m.Stats.MarshalTo(data[i:]) + i = encodeVarintAdmin(dAtA, i, uint64(m.Stats.Size())) + n3, err := m.Stats.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 if len(m.MissingNodes) > 0 { for _, msg := range m.MissingNodes { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintAdmin(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintAdmin(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1752,47 +1752,47 @@ func (m *TableStatsResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *TableStatsResponse_MissingNode) Marshal() (data []byte, err error) { +func (m *TableStatsResponse_MissingNode) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableStatsResponse_MissingNode) MarshalTo(data []byte) (int, error) { +func (m *TableStatsResponse_MissingNode) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.NodeID) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(len(m.NodeID))) - i += copy(data[i:], m.NodeID) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.NodeID))) + i += copy(dAtA[i:], m.NodeID) } if len(m.ErrorMessage) > 0 { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintAdmin(data, i, uint64(len(m.ErrorMessage))) - i += copy(data[i:], m.ErrorMessage) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.ErrorMessage))) + i += copy(dAtA[i:], m.ErrorMessage) } return i, nil } -func (m *UsersRequest) Marshal() (data []byte, err error) { +func (m *UsersRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *UsersRequest) MarshalTo(data []byte) (int, error) { +func (m *UsersRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -1800,27 +1800,27 @@ func (m *UsersRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *UsersResponse) Marshal() (data []byte, err error) { +func (m *UsersResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *UsersResponse) MarshalTo(data []byte) (int, error) { +func (m *UsersResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Users) > 0 { for _, msg := range m.Users { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintAdmin(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1830,80 +1830,80 @@ func (m *UsersResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *UsersResponse_User) Marshal() (data []byte, err error) { +func (m *UsersResponse_User) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *UsersResponse_User) MarshalTo(data []byte) (int, error) { +func (m *UsersResponse_User) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Username) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Username))) - i += copy(data[i:], m.Username) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Username))) + i += copy(dAtA[i:], m.Username) } return i, nil } -func (m *EventsRequest) Marshal() (data []byte, err error) { +func (m *EventsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *EventsRequest) MarshalTo(data []byte) (int, error) { +func (m *EventsRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Type) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Type))) + i += copy(dAtA[i:], m.Type) } if m.TargetId != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintAdmin(data, i, uint64(m.TargetId)) + i = encodeVarintAdmin(dAtA, i, uint64(m.TargetId)) } return i, nil } -func (m *EventsResponse) Marshal() (data []byte, err error) { +func (m *EventsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *EventsResponse) MarshalTo(data []byte) (int, error) { +func (m *EventsResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Events) > 0 { for _, msg := range m.Events { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintAdmin(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1913,99 +1913,99 @@ func (m *EventsResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *EventsResponse_Event) Marshal() (data []byte, err error) { +func (m *EventsResponse_Event) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *EventsResponse_Event) MarshalTo(data []byte) (int, error) { +func (m *EventsResponse_Event) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(m.Timestamp.Size())) - n4, err := m.Timestamp.MarshalTo(data[i:]) + i = encodeVarintAdmin(dAtA, i, uint64(m.Timestamp.Size())) + n4, err := m.Timestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n4 if len(m.EventType) > 0 { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintAdmin(data, i, uint64(len(m.EventType))) - i += copy(data[i:], m.EventType) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.EventType))) + i += copy(dAtA[i:], m.EventType) } if m.TargetID != 0 { - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintAdmin(data, i, uint64(m.TargetID)) + i = encodeVarintAdmin(dAtA, i, uint64(m.TargetID)) } if m.ReportingID != 0 { - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintAdmin(data, i, uint64(m.ReportingID)) + i = encodeVarintAdmin(dAtA, i, uint64(m.ReportingID)) } if len(m.Info) > 0 { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Info))) - i += copy(data[i:], m.Info) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Info))) + i += copy(dAtA[i:], m.Info) } if len(m.UniqueID) > 0 { - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintAdmin(data, i, uint64(len(m.UniqueID))) - i += copy(data[i:], m.UniqueID) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.UniqueID))) + i += copy(dAtA[i:], m.UniqueID) } return i, nil } -func (m *EventsResponse_Event_Timestamp) Marshal() (data []byte, err error) { +func (m *EventsResponse_Event_Timestamp) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *EventsResponse_Event_Timestamp) MarshalTo(data []byte) (int, error) { +func (m *EventsResponse_Event_Timestamp) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Sec != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintAdmin(data, i, uint64(m.Sec)) + i = encodeVarintAdmin(dAtA, i, uint64(m.Sec)) } if m.Nsec != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintAdmin(data, i, uint64(m.Nsec)) + i = encodeVarintAdmin(dAtA, i, uint64(m.Nsec)) } return i, nil } -func (m *SetUIDataRequest) Marshal() (data []byte, err error) { +func (m *SetUIDataRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SetUIDataRequest) MarshalTo(data []byte) (int, error) { +func (m *SetUIDataRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -2017,7 +2017,7 @@ func (m *SetUIDataRequest) MarshalTo(data []byte) (int, error) { } github_com_gogo_protobuf_sortkeys.Strings(keysForKeyValues) for _, k := range keysForKeyValues { - data[i] = 0xa + dAtA[i] = 0xa i++ v := m.KeyValues[string(k)] byteSize := 0 @@ -2025,33 +2025,33 @@ func (m *SetUIDataRequest) MarshalTo(data []byte) (int, error) { byteSize = 1 + len(v) + sovAdmin(uint64(len(v))) } mapSize := 1 + len(k) + sovAdmin(uint64(len(k))) + byteSize - i = encodeVarintAdmin(data, i, uint64(mapSize)) - data[i] = 0xa + i = encodeVarintAdmin(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(len(k))) - i += copy(data[i:], k) + i = encodeVarintAdmin(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) if len(v) > 0 { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintAdmin(data, i, uint64(len(v))) - i += copy(data[i:], v) + i = encodeVarintAdmin(dAtA, i, uint64(len(v))) + i += copy(dAtA[i:], v) } } } return i, nil } -func (m *SetUIDataResponse) Marshal() (data []byte, err error) { +func (m *SetUIDataResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SetUIDataResponse) MarshalTo(data []byte) (int, error) { +func (m *SetUIDataResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -2059,50 +2059,50 @@ func (m *SetUIDataResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *GetUIDataRequest) Marshal() (data []byte, err error) { +func (m *GetUIDataRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *GetUIDataRequest) MarshalTo(data []byte) (int, error) { +func (m *GetUIDataRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Keys) > 0 { for _, s := range m.Keys { - data[i] = 0xa + dAtA[i] = 0xa i++ l = len(s) for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } - data[i] = uint8(l) + dAtA[i] = uint8(l) i++ - i += copy(data[i:], s) + i += copy(dAtA[i:], s) } } return i, nil } -func (m *GetUIDataResponse) Marshal() (data []byte, err error) { +func (m *GetUIDataResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *GetUIDataResponse) MarshalTo(data []byte) (int, error) { +func (m *GetUIDataResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -2114,7 +2114,7 @@ func (m *GetUIDataResponse) MarshalTo(data []byte) (int, error) { } github_com_gogo_protobuf_sortkeys.Strings(keysForKeyValues) for _, k := range keysForKeyValues { - data[i] = 0xa + dAtA[i] = 0xa i++ v := m.KeyValues[string(k)] msgSize := 0 @@ -2123,15 +2123,15 @@ func (m *GetUIDataResponse) MarshalTo(data []byte) (int, error) { msgSize += 1 + sovAdmin(uint64(msgSize)) } mapSize := 1 + len(k) + sovAdmin(uint64(len(k))) + msgSize - i = encodeVarintAdmin(data, i, uint64(mapSize)) - data[i] = 0xa + i = encodeVarintAdmin(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x12 + i = encodeVarintAdmin(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x12 i++ - i = encodeVarintAdmin(data, i, uint64((&v).Size())) - n5, err := (&v).MarshalTo(data[i:]) + i = encodeVarintAdmin(dAtA, i, uint64((&v).Size())) + n5, err := (&v).MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2141,59 +2141,59 @@ func (m *GetUIDataResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *GetUIDataResponse_Timestamp) Marshal() (data []byte, err error) { +func (m *GetUIDataResponse_Timestamp) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *GetUIDataResponse_Timestamp) MarshalTo(data []byte) (int, error) { +func (m *GetUIDataResponse_Timestamp) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Sec != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintAdmin(data, i, uint64(m.Sec)) + i = encodeVarintAdmin(dAtA, i, uint64(m.Sec)) } if m.Nsec != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintAdmin(data, i, uint64(m.Nsec)) + i = encodeVarintAdmin(dAtA, i, uint64(m.Nsec)) } return i, nil } -func (m *GetUIDataResponse_Value) Marshal() (data []byte, err error) { +func (m *GetUIDataResponse_Value) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *GetUIDataResponse_Value) MarshalTo(data []byte) (int, error) { +func (m *GetUIDataResponse_Value) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Value) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Value))) - i += copy(data[i:], m.Value) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintAdmin(data, i, uint64(m.LastUpdated.Size())) - n6, err := m.LastUpdated.MarshalTo(data[i:]) + i = encodeVarintAdmin(dAtA, i, uint64(m.LastUpdated.Size())) + n6, err := m.LastUpdated.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -2201,17 +2201,17 @@ func (m *GetUIDataResponse_Value) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ClusterRequest) Marshal() (data []byte, err error) { +func (m *ClusterRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ClusterRequest) MarshalTo(data []byte) (int, error) { +func (m *ClusterRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -2219,141 +2219,141 @@ func (m *ClusterRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ClusterResponse) Marshal() (data []byte, err error) { +func (m *ClusterResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ClusterResponse) MarshalTo(data []byte) (int, error) { +func (m *ClusterResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.ClusterID) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(len(m.ClusterID))) - i += copy(data[i:], m.ClusterID) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.ClusterID))) + i += copy(dAtA[i:], m.ClusterID) } return i, nil } -func (m *DrainRequest) Marshal() (data []byte, err error) { +func (m *DrainRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DrainRequest) MarshalTo(data []byte) (int, error) { +func (m *DrainRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.On) > 0 { - data8 := make([]byte, len(m.On)*10) + dAtA8 := make([]byte, len(m.On)*10) var j7 int for _, num1 := range m.On { num := uint64(num1) for num >= 1<<7 { - data8[j7] = uint8(uint64(num)&0x7f | 0x80) + dAtA8[j7] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 j7++ } - data8[j7] = uint8(num) + dAtA8[j7] = uint8(num) j7++ } - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(j7)) - i += copy(data[i:], data8[:j7]) + i = encodeVarintAdmin(dAtA, i, uint64(j7)) + i += copy(dAtA[i:], dAtA8[:j7]) } if len(m.Off) > 0 { - data10 := make([]byte, len(m.Off)*10) + dAtA10 := make([]byte, len(m.Off)*10) var j9 int for _, num1 := range m.Off { num := uint64(num1) for num >= 1<<7 { - data10[j9] = uint8(uint64(num)&0x7f | 0x80) + dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 j9++ } - data10[j9] = uint8(num) + dAtA10[j9] = uint8(num) j9++ } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintAdmin(data, i, uint64(j9)) - i += copy(data[i:], data10[:j9]) + i = encodeVarintAdmin(dAtA, i, uint64(j9)) + i += copy(dAtA[i:], dAtA10[:j9]) } if m.Shutdown { - data[i] = 0x18 + dAtA[i] = 0x18 i++ if m.Shutdown { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ } return i, nil } -func (m *DrainResponse) Marshal() (data []byte, err error) { +func (m *DrainResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DrainResponse) MarshalTo(data []byte) (int, error) { +func (m *DrainResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.On) > 0 { - data12 := make([]byte, len(m.On)*10) + dAtA12 := make([]byte, len(m.On)*10) var j11 int for _, num1 := range m.On { num := uint64(num1) for num >= 1<<7 { - data12[j11] = uint8(uint64(num)&0x7f | 0x80) + dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 j11++ } - data12[j11] = uint8(num) + dAtA12[j11] = uint8(num) j11++ } - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintAdmin(data, i, uint64(j11)) - i += copy(data[i:], data12[:j11]) + i = encodeVarintAdmin(dAtA, i, uint64(j11)) + i += copy(dAtA[i:], dAtA12[:j11]) } return i, nil } -func (m *HealthRequest) Marshal() (data []byte, err error) { +func (m *HealthRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *HealthRequest) MarshalTo(data []byte) (int, error) { +func (m *HealthRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -2361,17 +2361,17 @@ func (m *HealthRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *HealthResponse) Marshal() (data []byte, err error) { +func (m *HealthResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *HealthResponse) MarshalTo(data []byte) (int, error) { +func (m *HealthResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -2379,88 +2379,88 @@ func (m *HealthResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ClusterFreezeRequest) Marshal() (data []byte, err error) { +func (m *ClusterFreezeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ClusterFreezeRequest) MarshalTo(data []byte) (int, error) { +func (m *ClusterFreezeRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Freeze { - data[i] = 0x8 + dAtA[i] = 0x8 i++ if m.Freeze { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ } return i, nil } -func (m *ClusterFreezeResponse) Marshal() (data []byte, err error) { +func (m *ClusterFreezeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ClusterFreezeResponse) MarshalTo(data []byte) (int, error) { +func (m *ClusterFreezeResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.RangesAffected != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintAdmin(data, i, uint64(m.RangesAffected)) + i = encodeVarintAdmin(dAtA, i, uint64(m.RangesAffected)) } if len(m.Message) > 0 { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintAdmin(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) + i = encodeVarintAdmin(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) } return i, nil } -func encodeFixed64Admin(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Admin(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Admin(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Admin(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintAdmin(data []byte, offset int, v uint64) int { +func encodeVarintAdmin(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *DatabasesRequest) Size() (n int) { @@ -2966,8 +2966,8 @@ func sovAdmin(x uint64) (n int) { func sozAdmin(x uint64) (n int) { return sovAdmin(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *DatabasesRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *DatabasesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2979,7 +2979,7 @@ func (m *DatabasesRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2997,7 +2997,7 @@ func (m *DatabasesRequest) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -3016,8 +3016,8 @@ func (m *DatabasesRequest) Unmarshal(data []byte) error { } return nil } -func (m *DatabasesResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *DatabasesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3029,7 +3029,7 @@ func (m *DatabasesResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3057,7 +3057,7 @@ func (m *DatabasesResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3072,11 +3072,11 @@ func (m *DatabasesResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Databases = append(m.Databases, string(data[iNdEx:postIndex])) + m.Databases = append(m.Databases, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -3095,8 +3095,8 @@ func (m *DatabasesResponse) Unmarshal(data []byte) error { } return nil } -func (m *DatabaseDetailsRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *DatabaseDetailsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3108,7 +3108,7 @@ func (m *DatabaseDetailsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3136,7 +3136,7 @@ func (m *DatabaseDetailsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3151,11 +3151,11 @@ func (m *DatabaseDetailsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Database = string(data[iNdEx:postIndex]) + m.Database = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -3174,8 +3174,8 @@ func (m *DatabaseDetailsRequest) Unmarshal(data []byte) error { } return nil } -func (m *DatabaseDetailsResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *DatabaseDetailsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3187,7 +3187,7 @@ func (m *DatabaseDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3215,7 +3215,7 @@ func (m *DatabaseDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3230,7 +3230,7 @@ func (m *DatabaseDetailsResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Grants = append(m.Grants, DatabaseDetailsResponse_Grant{}) - if err := m.Grants[len(m.Grants)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Grants[len(m.Grants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3246,7 +3246,7 @@ func (m *DatabaseDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3261,7 +3261,7 @@ func (m *DatabaseDetailsResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TableNames = append(m.TableNames, string(data[iNdEx:postIndex])) + m.TableNames = append(m.TableNames, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: if wireType != 0 { @@ -3275,7 +3275,7 @@ func (m *DatabaseDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.DescriptorID |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -3294,7 +3294,7 @@ func (m *DatabaseDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3308,7 +3308,7 @@ func (m *DatabaseDetailsResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ZoneConfig.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ZoneConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3324,7 +3324,7 @@ func (m *DatabaseDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ZoneConfigLevel |= (ZoneConfigurationLevel(b) & 0x7F) << shift if b < 0x80 { @@ -3333,7 +3333,7 @@ func (m *DatabaseDetailsResponse) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -3352,8 +3352,8 @@ func (m *DatabaseDetailsResponse) Unmarshal(data []byte) error { } return nil } -func (m *DatabaseDetailsResponse_Grant) Unmarshal(data []byte) error { - l := len(data) +func (m *DatabaseDetailsResponse_Grant) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3365,7 +3365,7 @@ func (m *DatabaseDetailsResponse_Grant) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3393,7 +3393,7 @@ func (m *DatabaseDetailsResponse_Grant) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3408,7 +3408,7 @@ func (m *DatabaseDetailsResponse_Grant) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.User = string(data[iNdEx:postIndex]) + m.User = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -3422,7 +3422,7 @@ func (m *DatabaseDetailsResponse_Grant) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3437,11 +3437,11 @@ func (m *DatabaseDetailsResponse_Grant) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Privileges = append(m.Privileges, string(data[iNdEx:postIndex])) + m.Privileges = append(m.Privileges, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -3460,8 +3460,8 @@ func (m *DatabaseDetailsResponse_Grant) Unmarshal(data []byte) error { } return nil } -func (m *TableDetailsRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *TableDetailsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3473,7 +3473,7 @@ func (m *TableDetailsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3501,7 +3501,7 @@ func (m *TableDetailsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3516,7 +3516,7 @@ func (m *TableDetailsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Database = string(data[iNdEx:postIndex]) + m.Database = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -3530,7 +3530,7 @@ func (m *TableDetailsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3545,11 +3545,11 @@ func (m *TableDetailsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Table = string(data[iNdEx:postIndex]) + m.Table = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -3568,8 +3568,8 @@ func (m *TableDetailsRequest) Unmarshal(data []byte) error { } return nil } -func (m *TableDetailsResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *TableDetailsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3581,7 +3581,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3609,7 +3609,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3624,7 +3624,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Grants = append(m.Grants, TableDetailsResponse_Grant{}) - if err := m.Grants[len(m.Grants)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Grants[len(m.Grants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3640,7 +3640,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3655,7 +3655,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Columns = append(m.Columns, TableDetailsResponse_Column{}) - if err := m.Columns[len(m.Columns)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Columns[len(m.Columns)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3671,7 +3671,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3686,7 +3686,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Indexes = append(m.Indexes, TableDetailsResponse_Index{}) - if err := m.Indexes[len(m.Indexes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Indexes[len(m.Indexes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3702,7 +3702,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeCount |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -3721,7 +3721,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3736,7 +3736,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CreateTableStatement = string(data[iNdEx:postIndex]) + m.CreateTableStatement = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { @@ -3750,7 +3750,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3764,7 +3764,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ZoneConfig.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ZoneConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3780,7 +3780,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ZoneConfigLevel |= (ZoneConfigurationLevel(b) & 0x7F) << shift if b < 0x80 { @@ -3799,7 +3799,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.DescriptorID |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -3808,7 +3808,7 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -3827,8 +3827,8 @@ func (m *TableDetailsResponse) Unmarshal(data []byte) error { } return nil } -func (m *TableDetailsResponse_Grant) Unmarshal(data []byte) error { - l := len(data) +func (m *TableDetailsResponse_Grant) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3840,7 +3840,7 @@ func (m *TableDetailsResponse_Grant) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3868,7 +3868,7 @@ func (m *TableDetailsResponse_Grant) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3883,7 +3883,7 @@ func (m *TableDetailsResponse_Grant) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.User = string(data[iNdEx:postIndex]) + m.User = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -3897,7 +3897,7 @@ func (m *TableDetailsResponse_Grant) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3912,11 +3912,11 @@ func (m *TableDetailsResponse_Grant) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Privileges = append(m.Privileges, string(data[iNdEx:postIndex])) + m.Privileges = append(m.Privileges, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -3935,8 +3935,8 @@ func (m *TableDetailsResponse_Grant) Unmarshal(data []byte) error { } return nil } -func (m *TableDetailsResponse_Column) Unmarshal(data []byte) error { - l := len(data) +func (m *TableDetailsResponse_Column) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3948,7 +3948,7 @@ func (m *TableDetailsResponse_Column) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3976,7 +3976,7 @@ func (m *TableDetailsResponse_Column) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3991,7 +3991,7 @@ func (m *TableDetailsResponse_Column) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(data[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -4005,7 +4005,7 @@ func (m *TableDetailsResponse_Column) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4020,7 +4020,7 @@ func (m *TableDetailsResponse_Column) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Type = string(data[iNdEx:postIndex]) + m.Type = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 0 { @@ -4034,7 +4034,7 @@ func (m *TableDetailsResponse_Column) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4054,7 +4054,7 @@ func (m *TableDetailsResponse_Column) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4069,11 +4069,11 @@ func (m *TableDetailsResponse_Column) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.DefaultValue = string(data[iNdEx:postIndex]) + m.DefaultValue = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -4092,8 +4092,8 @@ func (m *TableDetailsResponse_Column) Unmarshal(data []byte) error { } return nil } -func (m *TableDetailsResponse_Index) Unmarshal(data []byte) error { - l := len(data) +func (m *TableDetailsResponse_Index) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4105,7 +4105,7 @@ func (m *TableDetailsResponse_Index) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4133,7 +4133,7 @@ func (m *TableDetailsResponse_Index) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4148,7 +4148,7 @@ func (m *TableDetailsResponse_Index) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(data[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -4162,7 +4162,7 @@ func (m *TableDetailsResponse_Index) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4182,7 +4182,7 @@ func (m *TableDetailsResponse_Index) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Seq |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -4201,7 +4201,7 @@ func (m *TableDetailsResponse_Index) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4216,7 +4216,7 @@ func (m *TableDetailsResponse_Index) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Column = string(data[iNdEx:postIndex]) + m.Column = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { @@ -4230,7 +4230,7 @@ func (m *TableDetailsResponse_Index) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4245,7 +4245,7 @@ func (m *TableDetailsResponse_Index) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Direction = string(data[iNdEx:postIndex]) + m.Direction = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 0 { @@ -4259,7 +4259,7 @@ func (m *TableDetailsResponse_Index) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4269,7 +4269,7 @@ func (m *TableDetailsResponse_Index) Unmarshal(data []byte) error { m.Storing = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -4288,8 +4288,8 @@ func (m *TableDetailsResponse_Index) Unmarshal(data []byte) error { } return nil } -func (m *TableStatsRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *TableStatsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4301,7 +4301,7 @@ func (m *TableStatsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4329,7 +4329,7 @@ func (m *TableStatsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4344,7 +4344,7 @@ func (m *TableStatsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Database = string(data[iNdEx:postIndex]) + m.Database = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -4358,7 +4358,7 @@ func (m *TableStatsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4373,11 +4373,11 @@ func (m *TableStatsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Table = string(data[iNdEx:postIndex]) + m.Table = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -4396,8 +4396,8 @@ func (m *TableStatsRequest) Unmarshal(data []byte) error { } return nil } -func (m *TableStatsResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *TableStatsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4409,7 +4409,7 @@ func (m *TableStatsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4437,7 +4437,7 @@ func (m *TableStatsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeCount |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -4456,7 +4456,7 @@ func (m *TableStatsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ReplicaCount |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -4475,7 +4475,7 @@ func (m *TableStatsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NodeCount |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -4494,7 +4494,7 @@ func (m *TableStatsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4508,7 +4508,7 @@ func (m *TableStatsResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Stats.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4524,7 +4524,7 @@ func (m *TableStatsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4539,13 +4539,13 @@ func (m *TableStatsResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.MissingNodes = append(m.MissingNodes, TableStatsResponse_MissingNode{}) - if err := m.MissingNodes[len(m.MissingNodes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.MissingNodes[len(m.MissingNodes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -4564,8 +4564,8 @@ func (m *TableStatsResponse) Unmarshal(data []byte) error { } return nil } -func (m *TableStatsResponse_MissingNode) Unmarshal(data []byte) error { - l := len(data) +func (m *TableStatsResponse_MissingNode) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4577,7 +4577,7 @@ func (m *TableStatsResponse_MissingNode) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4605,7 +4605,7 @@ func (m *TableStatsResponse_MissingNode) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4620,7 +4620,7 @@ func (m *TableStatsResponse_MissingNode) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NodeID = string(data[iNdEx:postIndex]) + m.NodeID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -4634,7 +4634,7 @@ func (m *TableStatsResponse_MissingNode) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4649,11 +4649,11 @@ func (m *TableStatsResponse_MissingNode) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ErrorMessage = string(data[iNdEx:postIndex]) + m.ErrorMessage = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -4672,8 +4672,8 @@ func (m *TableStatsResponse_MissingNode) Unmarshal(data []byte) error { } return nil } -func (m *UsersRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *UsersRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4685,7 +4685,7 @@ func (m *UsersRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4703,7 +4703,7 @@ func (m *UsersRequest) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -4722,8 +4722,8 @@ func (m *UsersRequest) Unmarshal(data []byte) error { } return nil } -func (m *UsersResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *UsersResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4735,7 +4735,7 @@ func (m *UsersResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4763,7 +4763,7 @@ func (m *UsersResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4778,13 +4778,13 @@ func (m *UsersResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Users = append(m.Users, UsersResponse_User{}) - if err := m.Users[len(m.Users)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Users[len(m.Users)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -4803,8 +4803,8 @@ func (m *UsersResponse) Unmarshal(data []byte) error { } return nil } -func (m *UsersResponse_User) Unmarshal(data []byte) error { - l := len(data) +func (m *UsersResponse_User) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4816,7 +4816,7 @@ func (m *UsersResponse_User) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4844,7 +4844,7 @@ func (m *UsersResponse_User) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4859,11 +4859,11 @@ func (m *UsersResponse_User) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Username = string(data[iNdEx:postIndex]) + m.Username = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -4882,8 +4882,8 @@ func (m *UsersResponse_User) Unmarshal(data []byte) error { } return nil } -func (m *EventsRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *EventsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4895,7 +4895,7 @@ func (m *EventsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4923,7 +4923,7 @@ func (m *EventsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4938,7 +4938,7 @@ func (m *EventsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Type = string(data[iNdEx:postIndex]) + m.Type = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -4952,7 +4952,7 @@ func (m *EventsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.TargetId |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -4961,7 +4961,7 @@ func (m *EventsRequest) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -4980,8 +4980,8 @@ func (m *EventsRequest) Unmarshal(data []byte) error { } return nil } -func (m *EventsResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *EventsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4993,7 +4993,7 @@ func (m *EventsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5021,7 +5021,7 @@ func (m *EventsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -5036,13 +5036,13 @@ func (m *EventsResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Events = append(m.Events, EventsResponse_Event{}) - if err := m.Events[len(m.Events)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -5061,8 +5061,8 @@ func (m *EventsResponse) Unmarshal(data []byte) error { } return nil } -func (m *EventsResponse_Event) Unmarshal(data []byte) error { - l := len(data) +func (m *EventsResponse_Event) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -5074,7 +5074,7 @@ func (m *EventsResponse_Event) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5102,7 +5102,7 @@ func (m *EventsResponse_Event) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -5116,7 +5116,7 @@ func (m *EventsResponse_Event) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Timestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5132,7 +5132,7 @@ func (m *EventsResponse_Event) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5147,7 +5147,7 @@ func (m *EventsResponse_Event) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EventType = string(data[iNdEx:postIndex]) + m.EventType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 0 { @@ -5161,7 +5161,7 @@ func (m *EventsResponse_Event) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.TargetID |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -5180,7 +5180,7 @@ func (m *EventsResponse_Event) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ReportingID |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -5199,7 +5199,7 @@ func (m *EventsResponse_Event) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5214,7 +5214,7 @@ func (m *EventsResponse_Event) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Info = string(data[iNdEx:postIndex]) + m.Info = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { @@ -5228,7 +5228,7 @@ func (m *EventsResponse_Event) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -5242,14 +5242,14 @@ func (m *EventsResponse_Event) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.UniqueID = append(m.UniqueID[:0], data[iNdEx:postIndex]...) + m.UniqueID = append(m.UniqueID[:0], dAtA[iNdEx:postIndex]...) if m.UniqueID == nil { m.UniqueID = []byte{} } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -5268,8 +5268,8 @@ func (m *EventsResponse_Event) Unmarshal(data []byte) error { } return nil } -func (m *EventsResponse_Event_Timestamp) Unmarshal(data []byte) error { - l := len(data) +func (m *EventsResponse_Event_Timestamp) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -5281,7 +5281,7 @@ func (m *EventsResponse_Event_Timestamp) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5309,7 +5309,7 @@ func (m *EventsResponse_Event_Timestamp) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Sec |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -5328,7 +5328,7 @@ func (m *EventsResponse_Event_Timestamp) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Nsec |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -5337,7 +5337,7 @@ func (m *EventsResponse_Event_Timestamp) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -5356,8 +5356,8 @@ func (m *EventsResponse_Event_Timestamp) Unmarshal(data []byte) error { } return nil } -func (m *SetUIDataRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *SetUIDataRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -5369,7 +5369,7 @@ func (m *SetUIDataRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5397,7 +5397,7 @@ func (m *SetUIDataRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -5419,7 +5419,7 @@ func (m *SetUIDataRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ keykey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5434,7 +5434,7 @@ func (m *SetUIDataRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5449,7 +5449,7 @@ func (m *SetUIDataRequest) Unmarshal(data []byte) error { if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } - mapkey := string(data[iNdEx:postStringIndexmapkey]) + mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey if m.KeyValues == nil { m.KeyValues = make(map[string][]byte) @@ -5463,7 +5463,7 @@ func (m *SetUIDataRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ valuekey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5478,7 +5478,7 @@ func (m *SetUIDataRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapbyteLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5494,7 +5494,7 @@ func (m *SetUIDataRequest) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } mapvalue := make([]byte, mapbyteLen) - copy(mapvalue, data[iNdEx:postbytesIndex]) + copy(mapvalue, dAtA[iNdEx:postbytesIndex]) iNdEx = postbytesIndex m.KeyValues[mapkey] = mapvalue } else { @@ -5504,7 +5504,7 @@ func (m *SetUIDataRequest) Unmarshal(data []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -5523,8 +5523,8 @@ func (m *SetUIDataRequest) Unmarshal(data []byte) error { } return nil } -func (m *SetUIDataResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *SetUIDataResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -5536,7 +5536,7 @@ func (m *SetUIDataResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5554,7 +5554,7 @@ func (m *SetUIDataResponse) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -5573,8 +5573,8 @@ func (m *SetUIDataResponse) Unmarshal(data []byte) error { } return nil } -func (m *GetUIDataRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *GetUIDataRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -5586,7 +5586,7 @@ func (m *GetUIDataRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5614,7 +5614,7 @@ func (m *GetUIDataRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5629,11 +5629,11 @@ func (m *GetUIDataRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keys = append(m.Keys, string(data[iNdEx:postIndex])) + m.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -5652,8 +5652,8 @@ func (m *GetUIDataRequest) Unmarshal(data []byte) error { } return nil } -func (m *GetUIDataResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *GetUIDataResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -5665,7 +5665,7 @@ func (m *GetUIDataResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5693,7 +5693,7 @@ func (m *GetUIDataResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -5715,7 +5715,7 @@ func (m *GetUIDataResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ keykey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5730,7 +5730,7 @@ func (m *GetUIDataResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5745,7 +5745,7 @@ func (m *GetUIDataResponse) Unmarshal(data []byte) error { if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } - mapkey := string(data[iNdEx:postStringIndexmapkey]) + mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey if m.KeyValues == nil { m.KeyValues = make(map[string]GetUIDataResponse_Value) @@ -5759,7 +5759,7 @@ func (m *GetUIDataResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ valuekey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5774,7 +5774,7 @@ func (m *GetUIDataResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapmsglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -5792,7 +5792,7 @@ func (m *GetUIDataResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } mapvalue := &GetUIDataResponse_Value{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } iNdEx = postmsgIndex @@ -5804,7 +5804,7 @@ func (m *GetUIDataResponse) Unmarshal(data []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -5823,8 +5823,8 @@ func (m *GetUIDataResponse) Unmarshal(data []byte) error { } return nil } -func (m *GetUIDataResponse_Timestamp) Unmarshal(data []byte) error { - l := len(data) +func (m *GetUIDataResponse_Timestamp) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -5836,7 +5836,7 @@ func (m *GetUIDataResponse_Timestamp) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5864,7 +5864,7 @@ func (m *GetUIDataResponse_Timestamp) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Sec |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -5883,7 +5883,7 @@ func (m *GetUIDataResponse_Timestamp) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Nsec |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -5892,7 +5892,7 @@ func (m *GetUIDataResponse_Timestamp) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -5911,8 +5911,8 @@ func (m *GetUIDataResponse_Timestamp) Unmarshal(data []byte) error { } return nil } -func (m *GetUIDataResponse_Value) Unmarshal(data []byte) error { - l := len(data) +func (m *GetUIDataResponse_Value) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -5924,7 +5924,7 @@ func (m *GetUIDataResponse_Value) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5952,7 +5952,7 @@ func (m *GetUIDataResponse_Value) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -5966,7 +5966,7 @@ func (m *GetUIDataResponse_Value) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Value = append(m.Value[:0], data[iNdEx:postIndex]...) + m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) if m.Value == nil { m.Value = []byte{} } @@ -5983,7 +5983,7 @@ func (m *GetUIDataResponse_Value) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -5997,13 +5997,13 @@ func (m *GetUIDataResponse_Value) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.LastUpdated.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.LastUpdated.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -6022,8 +6022,8 @@ func (m *GetUIDataResponse_Value) Unmarshal(data []byte) error { } return nil } -func (m *ClusterRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *ClusterRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6035,7 +6035,7 @@ func (m *ClusterRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6053,7 +6053,7 @@ func (m *ClusterRequest) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -6072,8 +6072,8 @@ func (m *ClusterRequest) Unmarshal(data []byte) error { } return nil } -func (m *ClusterResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *ClusterResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6085,7 +6085,7 @@ func (m *ClusterResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6113,7 +6113,7 @@ func (m *ClusterResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6128,11 +6128,11 @@ func (m *ClusterResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterID = string(data[iNdEx:postIndex]) + m.ClusterID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -6151,8 +6151,8 @@ func (m *ClusterResponse) Unmarshal(data []byte) error { } return nil } -func (m *DrainRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *DrainRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6164,7 +6164,7 @@ func (m *DrainRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6190,7 +6190,7 @@ func (m *DrainRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6213,7 +6213,7 @@ func (m *DrainRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -6231,7 +6231,7 @@ func (m *DrainRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -6252,7 +6252,7 @@ func (m *DrainRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6275,7 +6275,7 @@ func (m *DrainRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -6293,7 +6293,7 @@ func (m *DrainRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -6316,7 +6316,7 @@ func (m *DrainRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6326,7 +6326,7 @@ func (m *DrainRequest) Unmarshal(data []byte) error { m.Shutdown = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -6345,8 +6345,8 @@ func (m *DrainRequest) Unmarshal(data []byte) error { } return nil } -func (m *DrainResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *DrainResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6358,7 +6358,7 @@ func (m *DrainResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6384,7 +6384,7 @@ func (m *DrainResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6407,7 +6407,7 @@ func (m *DrainResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -6425,7 +6425,7 @@ func (m *DrainResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -6438,7 +6438,7 @@ func (m *DrainResponse) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -6457,8 +6457,8 @@ func (m *DrainResponse) Unmarshal(data []byte) error { } return nil } -func (m *HealthRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *HealthRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6470,7 +6470,7 @@ func (m *HealthRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6488,7 +6488,7 @@ func (m *HealthRequest) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -6507,8 +6507,8 @@ func (m *HealthRequest) Unmarshal(data []byte) error { } return nil } -func (m *HealthResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *HealthResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6520,7 +6520,7 @@ func (m *HealthResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6538,7 +6538,7 @@ func (m *HealthResponse) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -6557,8 +6557,8 @@ func (m *HealthResponse) Unmarshal(data []byte) error { } return nil } -func (m *ClusterFreezeRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *ClusterFreezeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6570,7 +6570,7 @@ func (m *ClusterFreezeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6598,7 +6598,7 @@ func (m *ClusterFreezeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6608,7 +6608,7 @@ func (m *ClusterFreezeRequest) Unmarshal(data []byte) error { m.Freeze = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -6627,8 +6627,8 @@ func (m *ClusterFreezeRequest) Unmarshal(data []byte) error { } return nil } -func (m *ClusterFreezeResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *ClusterFreezeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6640,7 +6640,7 @@ func (m *ClusterFreezeResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6668,7 +6668,7 @@ func (m *ClusterFreezeResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangesAffected |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -6687,7 +6687,7 @@ func (m *ClusterFreezeResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6702,11 +6702,11 @@ func (m *ClusterFreezeResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Message = string(data[iNdEx:postIndex]) + m.Message = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAdmin(data[iNdEx:]) + skippy, err := skipAdmin(dAtA[iNdEx:]) if err != nil { return err } @@ -6725,8 +6725,8 @@ func (m *ClusterFreezeResponse) Unmarshal(data []byte) error { } return nil } -func skipAdmin(data []byte) (n int, err error) { - l := len(data) +func skipAdmin(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -6737,7 +6737,7 @@ func skipAdmin(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6755,7 +6755,7 @@ func skipAdmin(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -6772,7 +6772,7 @@ func skipAdmin(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -6795,7 +6795,7 @@ func skipAdmin(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -6806,7 +6806,7 @@ func skipAdmin(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipAdmin(data[start:]) + next, err := skipAdmin(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/server/serverpb/status.pb.go b/pkg/server/serverpb/status.pb.go index 991c27a7d09c..931624300b7d 100644 --- a/pkg/server/serverpb/status.pb.go +++ b/pkg/server/serverpb/status.pb.go @@ -822,62 +822,62 @@ var _Status_serviceDesc = grpc.ServiceDesc{ Metadata: fileDescriptorStatus, } -func (m *DetailsRequest) Marshal() (data []byte, err error) { +func (m *DetailsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DetailsRequest) MarshalTo(data []byte) (int, error) { +func (m *DetailsRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.NodeId) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(m.NodeId))) - i += copy(data[i:], m.NodeId) + i = encodeVarintStatus(dAtA, i, uint64(len(m.NodeId))) + i += copy(dAtA[i:], m.NodeId) } return i, nil } -func (m *DetailsResponse) Marshal() (data []byte, err error) { +func (m *DetailsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DetailsResponse) MarshalTo(data []byte) (int, error) { +func (m *DetailsResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.NodeID != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintStatus(data, i, uint64(m.NodeID)) + i = encodeVarintStatus(dAtA, i, uint64(m.NodeID)) } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintStatus(data, i, uint64(m.Address.Size())) - n1, err := m.Address.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(m.Address.Size())) + n1, err := m.Address.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintStatus(data, i, uint64(m.BuildInfo.Size())) - n2, err := m.BuildInfo.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(m.BuildInfo.Size())) + n2, err := m.BuildInfo.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -885,17 +885,17 @@ func (m *DetailsResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *NodesRequest) Marshal() (data []byte, err error) { +func (m *NodesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *NodesRequest) MarshalTo(data []byte) (int, error) { +func (m *NodesRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -903,27 +903,27 @@ func (m *NodesRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *NodesResponse) Marshal() (data []byte, err error) { +func (m *NodesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *NodesResponse) MarshalTo(data []byte) (int, error) { +func (m *NodesResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Nodes) > 0 { for _, msg := range m.Nodes { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -933,73 +933,73 @@ func (m *NodesResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *NodeRequest) Marshal() (data []byte, err error) { +func (m *NodeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *NodeRequest) MarshalTo(data []byte) (int, error) { +func (m *NodeRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.NodeId) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(m.NodeId))) - i += copy(data[i:], m.NodeId) + i = encodeVarintStatus(dAtA, i, uint64(len(m.NodeId))) + i += copy(dAtA[i:], m.NodeId) } return i, nil } -func (m *RaftState) Marshal() (data []byte, err error) { +func (m *RaftState) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftState) MarshalTo(data []byte) (int, error) { +func (m *RaftState) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.ReplicaID != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintStatus(data, i, uint64(m.ReplicaID)) + i = encodeVarintStatus(dAtA, i, uint64(m.ReplicaID)) } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintStatus(data, i, uint64(m.HardState.Size())) - n3, err := m.HardState.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(m.HardState.Size())) + n3, err := m.HardState.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 if m.Lead != 0 { - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintStatus(data, i, uint64(m.Lead)) + i = encodeVarintStatus(dAtA, i, uint64(m.Lead)) } if len(m.State) > 0 { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintStatus(data, i, uint64(len(m.State))) - i += copy(data[i:], m.State) + i = encodeVarintStatus(dAtA, i, uint64(len(m.State))) + i += copy(dAtA[i:], m.State) } if m.Applied != 0 { - data[i] = 0x28 + dAtA[i] = 0x28 i++ - i = encodeVarintStatus(data, i, uint64(m.Applied)) + i = encodeVarintStatus(dAtA, i, uint64(m.Applied)) } if len(m.Progress) > 0 { keysForProgress := make([]uint64, 0, len(m.Progress)) @@ -1008,7 +1008,7 @@ func (m *RaftState) MarshalTo(data []byte) (int, error) { } github_com_gogo_protobuf_sortkeys.Uint64s(keysForProgress) for _, k := range keysForProgress { - data[i] = 0x32 + dAtA[i] = 0x32 i++ v := m.Progress[uint64(k)] msgSize := 0 @@ -1017,14 +1017,14 @@ func (m *RaftState) MarshalTo(data []byte) (int, error) { msgSize += 1 + sovStatus(uint64(msgSize)) } mapSize := 1 + sovStatus(uint64(k)) + msgSize - i = encodeVarintStatus(data, i, uint64(mapSize)) - data[i] = 0x8 + i = encodeVarintStatus(dAtA, i, uint64(mapSize)) + dAtA[i] = 0x8 i++ - i = encodeVarintStatus(data, i, uint64(k)) - data[i] = 0x12 + i = encodeVarintStatus(dAtA, i, uint64(k)) + dAtA[i] = 0x12 i++ - i = encodeVarintStatus(data, i, uint64((&v).Size())) - n4, err := (&v).MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64((&v).Size())) + n4, err := (&v).MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1034,90 +1034,90 @@ func (m *RaftState) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RaftState_Progress) Marshal() (data []byte, err error) { +func (m *RaftState_Progress) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftState_Progress) MarshalTo(data []byte) (int, error) { +func (m *RaftState_Progress) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Match != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintStatus(data, i, uint64(m.Match)) + i = encodeVarintStatus(dAtA, i, uint64(m.Match)) } if m.Next != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintStatus(data, i, uint64(m.Next)) + i = encodeVarintStatus(dAtA, i, uint64(m.Next)) } if len(m.State) > 0 { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintStatus(data, i, uint64(len(m.State))) - i += copy(data[i:], m.State) + i = encodeVarintStatus(dAtA, i, uint64(len(m.State))) + i += copy(dAtA[i:], m.State) } if m.Paused { - data[i] = 0x20 + dAtA[i] = 0x20 i++ if m.Paused { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ } if m.PendingSnapshot != 0 { - data[i] = 0x28 + dAtA[i] = 0x28 i++ - i = encodeVarintStatus(data, i, uint64(m.PendingSnapshot)) + i = encodeVarintStatus(dAtA, i, uint64(m.PendingSnapshot)) } return i, nil } -func (m *RangeInfo) Marshal() (data []byte, err error) { +func (m *RangeInfo) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RangeInfo) MarshalTo(data []byte) (int, error) { +func (m *RangeInfo) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(m.Span.Size())) - n5, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(m.Span.Size())) + n5, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n5 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintStatus(data, i, uint64(m.RaftState.Size())) - n6, err := m.RaftState.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(m.RaftState.Size())) + n6, err := m.RaftState.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n6 - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintStatus(data, i, uint64(m.State.Size())) - n7, err := m.State.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(m.State.Size())) + n7, err := m.State.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1125,51 +1125,51 @@ func (m *RangeInfo) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RangesRequest) Marshal() (data []byte, err error) { +func (m *RangesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RangesRequest) MarshalTo(data []byte) (int, error) { +func (m *RangesRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.NodeId) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(m.NodeId))) - i += copy(data[i:], m.NodeId) + i = encodeVarintStatus(dAtA, i, uint64(len(m.NodeId))) + i += copy(dAtA[i:], m.NodeId) } return i, nil } -func (m *RangesResponse) Marshal() (data []byte, err error) { +func (m *RangesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RangesResponse) MarshalTo(data []byte) (int, error) { +func (m *RangesResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Ranges) > 0 { for _, msg := range m.Ranges { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1179,129 +1179,129 @@ func (m *RangesResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *GossipRequest) Marshal() (data []byte, err error) { +func (m *GossipRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *GossipRequest) MarshalTo(data []byte) (int, error) { +func (m *GossipRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.NodeId) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(m.NodeId))) - i += copy(data[i:], m.NodeId) + i = encodeVarintStatus(dAtA, i, uint64(len(m.NodeId))) + i += copy(dAtA[i:], m.NodeId) } return i, nil } -func (m *JSONResponse) Marshal() (data []byte, err error) { +func (m *JSONResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *JSONResponse) MarshalTo(data []byte) (int, error) { +func (m *JSONResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Data) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(m.Data))) - i += copy(data[i:], m.Data) + i = encodeVarintStatus(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) } return i, nil } -func (m *LogsRequest) Marshal() (data []byte, err error) { +func (m *LogsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *LogsRequest) MarshalTo(data []byte) (int, error) { +func (m *LogsRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.NodeId) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(m.NodeId))) - i += copy(data[i:], m.NodeId) + i = encodeVarintStatus(dAtA, i, uint64(len(m.NodeId))) + i += copy(dAtA[i:], m.NodeId) } if len(m.Level) > 0 { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintStatus(data, i, uint64(len(m.Level))) - i += copy(data[i:], m.Level) + i = encodeVarintStatus(dAtA, i, uint64(len(m.Level))) + i += copy(dAtA[i:], m.Level) } if len(m.StartTime) > 0 { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintStatus(data, i, uint64(len(m.StartTime))) - i += copy(data[i:], m.StartTime) + i = encodeVarintStatus(dAtA, i, uint64(len(m.StartTime))) + i += copy(dAtA[i:], m.StartTime) } if len(m.EndTime) > 0 { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintStatus(data, i, uint64(len(m.EndTime))) - i += copy(data[i:], m.EndTime) + i = encodeVarintStatus(dAtA, i, uint64(len(m.EndTime))) + i += copy(dAtA[i:], m.EndTime) } if len(m.Max) > 0 { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintStatus(data, i, uint64(len(m.Max))) - i += copy(data[i:], m.Max) + i = encodeVarintStatus(dAtA, i, uint64(len(m.Max))) + i += copy(dAtA[i:], m.Max) } if len(m.Pattern) > 0 { - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintStatus(data, i, uint64(len(m.Pattern))) - i += copy(data[i:], m.Pattern) + i = encodeVarintStatus(dAtA, i, uint64(len(m.Pattern))) + i += copy(dAtA[i:], m.Pattern) } return i, nil } -func (m *LogEntriesResponse) Marshal() (data []byte, err error) { +func (m *LogEntriesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *LogEntriesResponse) MarshalTo(data []byte) (int, error) { +func (m *LogEntriesResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Entries) > 0 { for _, msg := range m.Entries { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1311,51 +1311,51 @@ func (m *LogEntriesResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *LogFilesListRequest) Marshal() (data []byte, err error) { +func (m *LogFilesListRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *LogFilesListRequest) MarshalTo(data []byte) (int, error) { +func (m *LogFilesListRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.NodeId) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(m.NodeId))) - i += copy(data[i:], m.NodeId) + i = encodeVarintStatus(dAtA, i, uint64(len(m.NodeId))) + i += copy(dAtA[i:], m.NodeId) } return i, nil } -func (m *LogFilesListResponse) Marshal() (data []byte, err error) { +func (m *LogFilesListResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *LogFilesListResponse) MarshalTo(data []byte) (int, error) { +func (m *LogFilesListResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Files) > 0 { for _, msg := range m.Files { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1365,108 +1365,108 @@ func (m *LogFilesListResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *LogFileRequest) Marshal() (data []byte, err error) { +func (m *LogFileRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *LogFileRequest) MarshalTo(data []byte) (int, error) { +func (m *LogFileRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.NodeId) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(m.NodeId))) - i += copy(data[i:], m.NodeId) + i = encodeVarintStatus(dAtA, i, uint64(len(m.NodeId))) + i += copy(dAtA[i:], m.NodeId) } if len(m.File) > 0 { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintStatus(data, i, uint64(len(m.File))) - i += copy(data[i:], m.File) + i = encodeVarintStatus(dAtA, i, uint64(len(m.File))) + i += copy(dAtA[i:], m.File) } return i, nil } -func (m *StacksRequest) Marshal() (data []byte, err error) { +func (m *StacksRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *StacksRequest) MarshalTo(data []byte) (int, error) { +func (m *StacksRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.NodeId) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(m.NodeId))) - i += copy(data[i:], m.NodeId) + i = encodeVarintStatus(dAtA, i, uint64(len(m.NodeId))) + i += copy(dAtA[i:], m.NodeId) } return i, nil } -func (m *MetricsRequest) Marshal() (data []byte, err error) { +func (m *MetricsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *MetricsRequest) MarshalTo(data []byte) (int, error) { +func (m *MetricsRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.NodeId) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(m.NodeId))) - i += copy(data[i:], m.NodeId) + i = encodeVarintStatus(dAtA, i, uint64(len(m.NodeId))) + i += copy(dAtA[i:], m.NodeId) } return i, nil } -func (m *RaftRangeNode) Marshal() (data []byte, err error) { +func (m *RaftRangeNode) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftRangeNode) MarshalTo(data []byte) (int, error) { +func (m *RaftRangeNode) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.NodeID != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintStatus(data, i, uint64(m.NodeID)) + i = encodeVarintStatus(dAtA, i, uint64(m.NodeID)) } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintStatus(data, i, uint64(m.Range.Size())) - n8, err := m.Range.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(m.Range.Size())) + n8, err := m.Range.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1474,56 +1474,56 @@ func (m *RaftRangeNode) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RaftRangeError) Marshal() (data []byte, err error) { +func (m *RaftRangeError) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftRangeError) MarshalTo(data []byte) (int, error) { +func (m *RaftRangeError) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Message) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) + i = encodeVarintStatus(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) } return i, nil } -func (m *RaftRangeStatus) Marshal() (data []byte, err error) { +func (m *RaftRangeStatus) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftRangeStatus) MarshalTo(data []byte) (int, error) { +func (m *RaftRangeStatus) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.RangeID != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintStatus(data, i, uint64(m.RangeID)) + i = encodeVarintStatus(dAtA, i, uint64(m.RangeID)) } if len(m.Errors) > 0 { for _, msg := range m.Errors { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintStatus(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1532,10 +1532,10 @@ func (m *RaftRangeStatus) MarshalTo(data []byte) (int, error) { } if len(m.Nodes) > 0 { for _, msg := range m.Nodes { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintStatus(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1545,17 +1545,17 @@ func (m *RaftRangeStatus) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RaftDebugRequest) Marshal() (data []byte, err error) { +func (m *RaftDebugRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftDebugRequest) MarshalTo(data []byte) (int, error) { +func (m *RaftDebugRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -1563,17 +1563,17 @@ func (m *RaftDebugRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RaftDebugResponse) Marshal() (data []byte, err error) { +func (m *RaftDebugResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftDebugResponse) MarshalTo(data []byte) (int, error) { +func (m *RaftDebugResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -1585,7 +1585,7 @@ func (m *RaftDebugResponse) MarshalTo(data []byte) (int, error) { } github_com_gogo_protobuf_sortkeys.Int64s(keysForRanges) for _, k := range keysForRanges { - data[i] = 0xa + dAtA[i] = 0xa i++ v := m.Ranges[github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(k)] msgSize := 0 @@ -1594,14 +1594,14 @@ func (m *RaftDebugResponse) MarshalTo(data []byte) (int, error) { msgSize += 1 + sovStatus(uint64(msgSize)) } mapSize := 1 + sovStatus(uint64(k)) + msgSize - i = encodeVarintStatus(data, i, uint64(mapSize)) - data[i] = 0x8 + i = encodeVarintStatus(dAtA, i, uint64(mapSize)) + dAtA[i] = 0x8 i++ - i = encodeVarintStatus(data, i, uint64(k)) - data[i] = 0x12 + i = encodeVarintStatus(dAtA, i, uint64(k)) + dAtA[i] = 0x12 i++ - i = encodeVarintStatus(data, i, uint64((&v).Size())) - n9, err := (&v).MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64((&v).Size())) + n9, err := (&v).MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1610,10 +1610,10 @@ func (m *RaftDebugResponse) MarshalTo(data []byte) (int, error) { } if len(m.Errors) > 0 { for _, msg := range m.Errors { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintStatus(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1623,128 +1623,128 @@ func (m *RaftDebugResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *SpanStatsRequest) Marshal() (data []byte, err error) { +func (m *SpanStatsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SpanStatsRequest) MarshalTo(data []byte) (int, error) { +func (m *SpanStatsRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.NodeID) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(m.NodeID))) - i += copy(data[i:], m.NodeID) + i = encodeVarintStatus(dAtA, i, uint64(len(m.NodeID))) + i += copy(dAtA[i:], m.NodeID) } if len(m.StartKey) > 0 { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintStatus(data, i, uint64(len(m.StartKey))) - i += copy(data[i:], m.StartKey) + i = encodeVarintStatus(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if len(m.EndKey) > 0 { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintStatus(data, i, uint64(len(m.EndKey))) - i += copy(data[i:], m.EndKey) + i = encodeVarintStatus(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } return i, nil } -func (m *SpanStatsResponse) Marshal() (data []byte, err error) { +func (m *SpanStatsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SpanStatsResponse) MarshalTo(data []byte) (int, error) { +func (m *SpanStatsResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(m.TotalStats.Size())) - n10, err := m.TotalStats.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(m.TotalStats.Size())) + n10, err := m.TotalStats.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n10 if m.RangeCount != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintStatus(data, i, uint64(m.RangeCount)) + i = encodeVarintStatus(dAtA, i, uint64(m.RangeCount)) } return i, nil } -func (m *PrettySpan) Marshal() (data []byte, err error) { +func (m *PrettySpan) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *PrettySpan) MarshalTo(data []byte) (int, error) { +func (m *PrettySpan) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.StartKey) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(m.StartKey))) - i += copy(data[i:], m.StartKey) + i = encodeVarintStatus(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if len(m.EndKey) > 0 { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintStatus(data, i, uint64(len(m.EndKey))) - i += copy(data[i:], m.EndKey) + i = encodeVarintStatus(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } return i, nil } -func encodeFixed64Status(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Status(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Status(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Status(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintStatus(data []byte, offset int, v uint64) int { +func encodeVarintStatus(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *DetailsRequest) Size() (n int) { @@ -2127,8 +2127,8 @@ func sovStatus(x uint64) (n int) { func sozStatus(x uint64) (n int) { return sovStatus(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *DetailsRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *DetailsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2140,7 +2140,7 @@ func (m *DetailsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2168,7 +2168,7 @@ func (m *DetailsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2183,11 +2183,11 @@ func (m *DetailsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NodeId = string(data[iNdEx:postIndex]) + m.NodeId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -2206,8 +2206,8 @@ func (m *DetailsRequest) Unmarshal(data []byte) error { } return nil } -func (m *DetailsResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *DetailsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2219,7 +2219,7 @@ func (m *DetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2247,7 +2247,7 @@ func (m *DetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NodeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.NodeID(b) & 0x7F) << shift if b < 0x80 { @@ -2266,7 +2266,7 @@ func (m *DetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2280,7 +2280,7 @@ func (m *DetailsResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Address.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2296,7 +2296,7 @@ func (m *DetailsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2310,13 +2310,13 @@ func (m *DetailsResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.BuildInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.BuildInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -2335,8 +2335,8 @@ func (m *DetailsResponse) Unmarshal(data []byte) error { } return nil } -func (m *NodesRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *NodesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2348,7 +2348,7 @@ func (m *NodesRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2366,7 +2366,7 @@ func (m *NodesRequest) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -2385,8 +2385,8 @@ func (m *NodesRequest) Unmarshal(data []byte) error { } return nil } -func (m *NodesResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *NodesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2398,7 +2398,7 @@ func (m *NodesResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2426,7 +2426,7 @@ func (m *NodesResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2441,13 +2441,13 @@ func (m *NodesResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Nodes = append(m.Nodes, cockroach_server_status.NodeStatus{}) - if err := m.Nodes[len(m.Nodes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Nodes[len(m.Nodes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -2466,8 +2466,8 @@ func (m *NodesResponse) Unmarshal(data []byte) error { } return nil } -func (m *NodeRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *NodeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2479,7 +2479,7 @@ func (m *NodeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2507,7 +2507,7 @@ func (m *NodeRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2522,11 +2522,11 @@ func (m *NodeRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NodeId = string(data[iNdEx:postIndex]) + m.NodeId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -2545,8 +2545,8 @@ func (m *NodeRequest) Unmarshal(data []byte) error { } return nil } -func (m *RaftState) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftState) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2558,7 +2558,7 @@ func (m *RaftState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2586,7 +2586,7 @@ func (m *RaftState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ReplicaID |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2605,7 +2605,7 @@ func (m *RaftState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2619,7 +2619,7 @@ func (m *RaftState) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.HardState.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.HardState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2635,7 +2635,7 @@ func (m *RaftState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Lead |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2654,7 +2654,7 @@ func (m *RaftState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2669,7 +2669,7 @@ func (m *RaftState) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.State = string(data[iNdEx:postIndex]) + m.State = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 0 { @@ -2683,7 +2683,7 @@ func (m *RaftState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Applied |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2702,7 +2702,7 @@ func (m *RaftState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2724,7 +2724,7 @@ func (m *RaftState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ keykey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2739,7 +2739,7 @@ func (m *RaftState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2758,7 +2758,7 @@ func (m *RaftState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ valuekey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2773,7 +2773,7 @@ func (m *RaftState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapmsglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2791,7 +2791,7 @@ func (m *RaftState) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } mapvalue := &RaftState_Progress{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } iNdEx = postmsgIndex @@ -2803,7 +2803,7 @@ func (m *RaftState) Unmarshal(data []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -2822,8 +2822,8 @@ func (m *RaftState) Unmarshal(data []byte) error { } return nil } -func (m *RaftState_Progress) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftState_Progress) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2835,7 +2835,7 @@ func (m *RaftState_Progress) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2863,7 +2863,7 @@ func (m *RaftState_Progress) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Match |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2882,7 +2882,7 @@ func (m *RaftState_Progress) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Next |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2901,7 +2901,7 @@ func (m *RaftState_Progress) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2916,7 +2916,7 @@ func (m *RaftState_Progress) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.State = string(data[iNdEx:postIndex]) + m.State = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { @@ -2930,7 +2930,7 @@ func (m *RaftState_Progress) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2950,7 +2950,7 @@ func (m *RaftState_Progress) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.PendingSnapshot |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2959,7 +2959,7 @@ func (m *RaftState_Progress) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -2978,8 +2978,8 @@ func (m *RaftState_Progress) Unmarshal(data []byte) error { } return nil } -func (m *RangeInfo) Unmarshal(data []byte) error { - l := len(data) +func (m *RangeInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2991,7 +2991,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3019,7 +3019,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3033,7 +3033,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3049,7 +3049,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3063,7 +3063,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.RaftState.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RaftState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3079,7 +3079,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3093,13 +3093,13 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.State.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -3118,8 +3118,8 @@ func (m *RangeInfo) Unmarshal(data []byte) error { } return nil } -func (m *RangesRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *RangesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3131,7 +3131,7 @@ func (m *RangesRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3159,7 +3159,7 @@ func (m *RangesRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3174,11 +3174,11 @@ func (m *RangesRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NodeId = string(data[iNdEx:postIndex]) + m.NodeId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -3197,8 +3197,8 @@ func (m *RangesRequest) Unmarshal(data []byte) error { } return nil } -func (m *RangesResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *RangesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3210,7 +3210,7 @@ func (m *RangesResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3238,7 +3238,7 @@ func (m *RangesResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3253,13 +3253,13 @@ func (m *RangesResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Ranges = append(m.Ranges, RangeInfo{}) - if err := m.Ranges[len(m.Ranges)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -3278,8 +3278,8 @@ func (m *RangesResponse) Unmarshal(data []byte) error { } return nil } -func (m *GossipRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *GossipRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3291,7 +3291,7 @@ func (m *GossipRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3319,7 +3319,7 @@ func (m *GossipRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3334,11 +3334,11 @@ func (m *GossipRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NodeId = string(data[iNdEx:postIndex]) + m.NodeId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -3357,8 +3357,8 @@ func (m *GossipRequest) Unmarshal(data []byte) error { } return nil } -func (m *JSONResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *JSONResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3370,7 +3370,7 @@ func (m *JSONResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3398,7 +3398,7 @@ func (m *JSONResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3412,14 +3412,14 @@ func (m *JSONResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Data = append(m.Data[:0], data[iNdEx:postIndex]...) + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) if m.Data == nil { m.Data = []byte{} } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -3438,8 +3438,8 @@ func (m *JSONResponse) Unmarshal(data []byte) error { } return nil } -func (m *LogsRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *LogsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3451,7 +3451,7 @@ func (m *LogsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3479,7 +3479,7 @@ func (m *LogsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3494,7 +3494,7 @@ func (m *LogsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NodeId = string(data[iNdEx:postIndex]) + m.NodeId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -3508,7 +3508,7 @@ func (m *LogsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3523,7 +3523,7 @@ func (m *LogsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Level = string(data[iNdEx:postIndex]) + m.Level = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -3537,7 +3537,7 @@ func (m *LogsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3552,7 +3552,7 @@ func (m *LogsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.StartTime = string(data[iNdEx:postIndex]) + m.StartTime = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { @@ -3566,7 +3566,7 @@ func (m *LogsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3581,7 +3581,7 @@ func (m *LogsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EndTime = string(data[iNdEx:postIndex]) + m.EndTime = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { @@ -3595,7 +3595,7 @@ func (m *LogsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3610,7 +3610,7 @@ func (m *LogsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Max = string(data[iNdEx:postIndex]) + m.Max = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { @@ -3624,7 +3624,7 @@ func (m *LogsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3639,11 +3639,11 @@ func (m *LogsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Pattern = string(data[iNdEx:postIndex]) + m.Pattern = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -3662,8 +3662,8 @@ func (m *LogsRequest) Unmarshal(data []byte) error { } return nil } -func (m *LogEntriesResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *LogEntriesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3675,7 +3675,7 @@ func (m *LogEntriesResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3703,7 +3703,7 @@ func (m *LogEntriesResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3718,13 +3718,13 @@ func (m *LogEntriesResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Entries = append(m.Entries, cockroach_util_log.Entry{}) - if err := m.Entries[len(m.Entries)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Entries[len(m.Entries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -3743,8 +3743,8 @@ func (m *LogEntriesResponse) Unmarshal(data []byte) error { } return nil } -func (m *LogFilesListRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *LogFilesListRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3756,7 +3756,7 @@ func (m *LogFilesListRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3784,7 +3784,7 @@ func (m *LogFilesListRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3799,11 +3799,11 @@ func (m *LogFilesListRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NodeId = string(data[iNdEx:postIndex]) + m.NodeId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -3822,8 +3822,8 @@ func (m *LogFilesListRequest) Unmarshal(data []byte) error { } return nil } -func (m *LogFilesListResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *LogFilesListResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3835,7 +3835,7 @@ func (m *LogFilesListResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3863,7 +3863,7 @@ func (m *LogFilesListResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3878,13 +3878,13 @@ func (m *LogFilesListResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Files = append(m.Files, cockroach_util_log.FileInfo{}) - if err := m.Files[len(m.Files)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Files[len(m.Files)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -3903,8 +3903,8 @@ func (m *LogFilesListResponse) Unmarshal(data []byte) error { } return nil } -func (m *LogFileRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *LogFileRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3916,7 +3916,7 @@ func (m *LogFileRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3944,7 +3944,7 @@ func (m *LogFileRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3959,7 +3959,7 @@ func (m *LogFileRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NodeId = string(data[iNdEx:postIndex]) + m.NodeId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -3973,7 +3973,7 @@ func (m *LogFileRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3988,11 +3988,11 @@ func (m *LogFileRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.File = string(data[iNdEx:postIndex]) + m.File = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -4011,8 +4011,8 @@ func (m *LogFileRequest) Unmarshal(data []byte) error { } return nil } -func (m *StacksRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *StacksRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4024,7 +4024,7 @@ func (m *StacksRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4052,7 +4052,7 @@ func (m *StacksRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4067,11 +4067,11 @@ func (m *StacksRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NodeId = string(data[iNdEx:postIndex]) + m.NodeId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -4090,8 +4090,8 @@ func (m *StacksRequest) Unmarshal(data []byte) error { } return nil } -func (m *MetricsRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *MetricsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4103,7 +4103,7 @@ func (m *MetricsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4131,7 +4131,7 @@ func (m *MetricsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4146,11 +4146,11 @@ func (m *MetricsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NodeId = string(data[iNdEx:postIndex]) + m.NodeId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -4169,8 +4169,8 @@ func (m *MetricsRequest) Unmarshal(data []byte) error { } return nil } -func (m *RaftRangeNode) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftRangeNode) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4182,7 +4182,7 @@ func (m *RaftRangeNode) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4210,7 +4210,7 @@ func (m *RaftRangeNode) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NodeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.NodeID(b) & 0x7F) << shift if b < 0x80 { @@ -4229,7 +4229,7 @@ func (m *RaftRangeNode) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4243,13 +4243,13 @@ func (m *RaftRangeNode) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Range.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -4268,8 +4268,8 @@ func (m *RaftRangeNode) Unmarshal(data []byte) error { } return nil } -func (m *RaftRangeError) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftRangeError) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4281,7 +4281,7 @@ func (m *RaftRangeError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4309,7 +4309,7 @@ func (m *RaftRangeError) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4324,11 +4324,11 @@ func (m *RaftRangeError) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Message = string(data[iNdEx:postIndex]) + m.Message = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -4347,8 +4347,8 @@ func (m *RaftRangeError) Unmarshal(data []byte) error { } return nil } -func (m *RaftRangeStatus) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftRangeStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4360,7 +4360,7 @@ func (m *RaftRangeStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4388,7 +4388,7 @@ func (m *RaftRangeStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift if b < 0x80 { @@ -4407,7 +4407,7 @@ func (m *RaftRangeStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4422,7 +4422,7 @@ func (m *RaftRangeStatus) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Errors = append(m.Errors, RaftRangeError{}) - if err := m.Errors[len(m.Errors)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Errors[len(m.Errors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4438,7 +4438,7 @@ func (m *RaftRangeStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4453,13 +4453,13 @@ func (m *RaftRangeStatus) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Nodes = append(m.Nodes, RaftRangeNode{}) - if err := m.Nodes[len(m.Nodes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Nodes[len(m.Nodes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -4478,8 +4478,8 @@ func (m *RaftRangeStatus) Unmarshal(data []byte) error { } return nil } -func (m *RaftDebugRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftDebugRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4491,7 +4491,7 @@ func (m *RaftDebugRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4509,7 +4509,7 @@ func (m *RaftDebugRequest) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -4528,8 +4528,8 @@ func (m *RaftDebugRequest) Unmarshal(data []byte) error { } return nil } -func (m *RaftDebugResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftDebugResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4541,7 +4541,7 @@ func (m *RaftDebugResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4569,7 +4569,7 @@ func (m *RaftDebugResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4591,7 +4591,7 @@ func (m *RaftDebugResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ keykey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4606,7 +4606,7 @@ func (m *RaftDebugResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapkey |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -4625,7 +4625,7 @@ func (m *RaftDebugResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ valuekey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4640,7 +4640,7 @@ func (m *RaftDebugResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ mapmsglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4658,7 +4658,7 @@ func (m *RaftDebugResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } mapvalue := &RaftRangeStatus{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } iNdEx = postmsgIndex @@ -4680,7 +4680,7 @@ func (m *RaftDebugResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4695,13 +4695,13 @@ func (m *RaftDebugResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Errors = append(m.Errors, RaftRangeError{}) - if err := m.Errors[len(m.Errors)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Errors[len(m.Errors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -4720,8 +4720,8 @@ func (m *RaftDebugResponse) Unmarshal(data []byte) error { } return nil } -func (m *SpanStatsRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *SpanStatsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4733,7 +4733,7 @@ func (m *SpanStatsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4761,7 +4761,7 @@ func (m *SpanStatsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4776,7 +4776,7 @@ func (m *SpanStatsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NodeID = string(data[iNdEx:postIndex]) + m.NodeID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -4790,7 +4790,7 @@ func (m *SpanStatsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4804,7 +4804,7 @@ func (m *SpanStatsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.StartKey = append(m.StartKey[:0], data[iNdEx:postIndex]...) + m.StartKey = append(m.StartKey[:0], dAtA[iNdEx:postIndex]...) if m.StartKey == nil { m.StartKey = []byte{} } @@ -4821,7 +4821,7 @@ func (m *SpanStatsRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4835,14 +4835,14 @@ func (m *SpanStatsRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EndKey = append(m.EndKey[:0], data[iNdEx:postIndex]...) + m.EndKey = append(m.EndKey[:0], dAtA[iNdEx:postIndex]...) if m.EndKey == nil { m.EndKey = []byte{} } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -4861,8 +4861,8 @@ func (m *SpanStatsRequest) Unmarshal(data []byte) error { } return nil } -func (m *SpanStatsResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *SpanStatsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4874,7 +4874,7 @@ func (m *SpanStatsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4902,7 +4902,7 @@ func (m *SpanStatsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4916,7 +4916,7 @@ func (m *SpanStatsResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.TotalStats.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TotalStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4932,7 +4932,7 @@ func (m *SpanStatsResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeCount |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -4941,7 +4941,7 @@ func (m *SpanStatsResponse) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -4960,8 +4960,8 @@ func (m *SpanStatsResponse) Unmarshal(data []byte) error { } return nil } -func (m *PrettySpan) Unmarshal(data []byte) error { - l := len(data) +func (m *PrettySpan) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4973,7 +4973,7 @@ func (m *PrettySpan) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5001,7 +5001,7 @@ func (m *PrettySpan) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5016,7 +5016,7 @@ func (m *PrettySpan) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.StartKey = string(data[iNdEx:postIndex]) + m.StartKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -5030,7 +5030,7 @@ func (m *PrettySpan) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5045,11 +5045,11 @@ func (m *PrettySpan) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EndKey = string(data[iNdEx:postIndex]) + m.EndKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -5068,8 +5068,8 @@ func (m *PrettySpan) Unmarshal(data []byte) error { } return nil } -func skipStatus(data []byte) (n int, err error) { - l := len(data) +func skipStatus(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -5080,7 +5080,7 @@ func skipStatus(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5098,7 +5098,7 @@ func skipStatus(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -5115,7 +5115,7 @@ func skipStatus(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -5138,7 +5138,7 @@ func skipStatus(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5149,7 +5149,7 @@ func skipStatus(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipStatus(data[start:]) + next, err := skipStatus(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/server/status/status.pb.go b/pkg/server/status/status.pb.go index fcce943f74a7..ba3cc84d8062 100644 --- a/pkg/server/status/status.pb.go +++ b/pkg/server/status/status.pb.go @@ -65,25 +65,25 @@ func init() { proto.RegisterType((*StoreStatus)(nil), "cockroach.server.status.StoreStatus") proto.RegisterType((*NodeStatus)(nil), "cockroach.server.status.NodeStatus") } -func (m *StoreStatus) Marshal() (data []byte, err error) { +func (m *StoreStatus) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *StoreStatus) MarshalTo(data []byte) (int, error) { +func (m *StoreStatus) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(m.Desc.Size())) - n1, err := m.Desc.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(m.Desc.Size())) + n1, err := m.Desc.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -95,60 +95,60 @@ func (m *StoreStatus) MarshalTo(data []byte) (int, error) { } github_com_gogo_protobuf_sortkeys.Strings(keysForMetrics) for _, k := range keysForMetrics { - data[i] = 0x12 + dAtA[i] = 0x12 i++ v := m.Metrics[string(k)] mapSize := 1 + len(k) + sovStatus(uint64(len(k))) + 1 + 8 - i = encodeVarintStatus(data, i, uint64(mapSize)) - data[i] = 0xa + i = encodeVarintStatus(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x11 + i = encodeVarintStatus(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x11 i++ - i = encodeFixed64Status(data, i, uint64(math.Float64bits(float64(v)))) + i = encodeFixed64Status(dAtA, i, uint64(math.Float64bits(float64(v)))) } } return i, nil } -func (m *NodeStatus) Marshal() (data []byte, err error) { +func (m *NodeStatus) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *NodeStatus) MarshalTo(data []byte) (int, error) { +func (m *NodeStatus) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(m.Desc.Size())) - n2, err := m.Desc.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(m.Desc.Size())) + n2, err := m.Desc.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintStatus(data, i, uint64(m.BuildInfo.Size())) - n3, err := m.BuildInfo.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(m.BuildInfo.Size())) + n3, err := m.BuildInfo.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintStatus(data, i, uint64(m.StartedAt)) - data[i] = 0x20 + i = encodeVarintStatus(dAtA, i, uint64(m.StartedAt)) + dAtA[i] = 0x20 i++ - i = encodeVarintStatus(data, i, uint64(m.UpdatedAt)) + i = encodeVarintStatus(dAtA, i, uint64(m.UpdatedAt)) if len(m.Metrics) > 0 { keysForMetrics := make([]string, 0, len(m.Metrics)) for k := range m.Metrics { @@ -156,26 +156,26 @@ func (m *NodeStatus) MarshalTo(data []byte) (int, error) { } github_com_gogo_protobuf_sortkeys.Strings(keysForMetrics) for _, k := range keysForMetrics { - data[i] = 0x2a + dAtA[i] = 0x2a i++ v := m.Metrics[string(k)] mapSize := 1 + len(k) + sovStatus(uint64(len(k))) + 1 + 8 - i = encodeVarintStatus(data, i, uint64(mapSize)) - data[i] = 0xa + i = encodeVarintStatus(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa i++ - i = encodeVarintStatus(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x11 + i = encodeVarintStatus(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x11 i++ - i = encodeFixed64Status(data, i, uint64(math.Float64bits(float64(v)))) + i = encodeFixed64Status(dAtA, i, uint64(math.Float64bits(float64(v)))) } } if len(m.StoreStatuses) > 0 { for _, msg := range m.StoreStatuses { - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintStatus(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStatus(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -185,31 +185,31 @@ func (m *NodeStatus) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64Status(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Status(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Status(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Status(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintStatus(data []byte, offset int, v uint64) int { +func encodeVarintStatus(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *StoreStatus) Size() (n int) { @@ -267,8 +267,8 @@ func sovStatus(x uint64) (n int) { func sozStatus(x uint64) (n int) { return sovStatus(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *StoreStatus) Unmarshal(data []byte) error { - l := len(data) +func (m *StoreStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -280,7 +280,7 @@ func (m *StoreStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -308,7 +308,7 @@ func (m *StoreStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -322,7 +322,7 @@ func (m *StoreStatus) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Desc.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Desc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -338,7 +338,7 @@ func (m *StoreStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -360,7 +360,7 @@ func (m *StoreStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ keykey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -375,7 +375,7 @@ func (m *StoreStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -390,7 +390,7 @@ func (m *StoreStatus) Unmarshal(data []byte) error { if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } - mapkey := string(data[iNdEx:postStringIndexmapkey]) + mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey if m.Metrics == nil { m.Metrics = make(map[string]float64) @@ -404,7 +404,7 @@ func (m *StoreStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ valuekey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -416,14 +416,14 @@ func (m *StoreStatus) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - mapvaluetemp = uint64(data[iNdEx-8]) - mapvaluetemp |= uint64(data[iNdEx-7]) << 8 - mapvaluetemp |= uint64(data[iNdEx-6]) << 16 - mapvaluetemp |= uint64(data[iNdEx-5]) << 24 - mapvaluetemp |= uint64(data[iNdEx-4]) << 32 - mapvaluetemp |= uint64(data[iNdEx-3]) << 40 - mapvaluetemp |= uint64(data[iNdEx-2]) << 48 - mapvaluetemp |= uint64(data[iNdEx-1]) << 56 + mapvaluetemp = uint64(dAtA[iNdEx-8]) + mapvaluetemp |= uint64(dAtA[iNdEx-7]) << 8 + mapvaluetemp |= uint64(dAtA[iNdEx-6]) << 16 + mapvaluetemp |= uint64(dAtA[iNdEx-5]) << 24 + mapvaluetemp |= uint64(dAtA[iNdEx-4]) << 32 + mapvaluetemp |= uint64(dAtA[iNdEx-3]) << 40 + mapvaluetemp |= uint64(dAtA[iNdEx-2]) << 48 + mapvaluetemp |= uint64(dAtA[iNdEx-1]) << 56 mapvalue := math.Float64frombits(mapvaluetemp) m.Metrics[mapkey] = mapvalue } else { @@ -433,7 +433,7 @@ func (m *StoreStatus) Unmarshal(data []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -452,8 +452,8 @@ func (m *StoreStatus) Unmarshal(data []byte) error { } return nil } -func (m *NodeStatus) Unmarshal(data []byte) error { - l := len(data) +func (m *NodeStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -465,7 +465,7 @@ func (m *NodeStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -493,7 +493,7 @@ func (m *NodeStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -507,7 +507,7 @@ func (m *NodeStatus) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Desc.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Desc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -523,7 +523,7 @@ func (m *NodeStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -537,7 +537,7 @@ func (m *NodeStatus) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.BuildInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.BuildInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -553,7 +553,7 @@ func (m *NodeStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.StartedAt |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -572,7 +572,7 @@ func (m *NodeStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.UpdatedAt |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -591,7 +591,7 @@ func (m *NodeStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -613,7 +613,7 @@ func (m *NodeStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ keykey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -628,7 +628,7 @@ func (m *NodeStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -643,7 +643,7 @@ func (m *NodeStatus) Unmarshal(data []byte) error { if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } - mapkey := string(data[iNdEx:postStringIndexmapkey]) + mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey if m.Metrics == nil { m.Metrics = make(map[string]float64) @@ -657,7 +657,7 @@ func (m *NodeStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ valuekey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -669,14 +669,14 @@ func (m *NodeStatus) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - mapvaluetemp = uint64(data[iNdEx-8]) - mapvaluetemp |= uint64(data[iNdEx-7]) << 8 - mapvaluetemp |= uint64(data[iNdEx-6]) << 16 - mapvaluetemp |= uint64(data[iNdEx-5]) << 24 - mapvaluetemp |= uint64(data[iNdEx-4]) << 32 - mapvaluetemp |= uint64(data[iNdEx-3]) << 40 - mapvaluetemp |= uint64(data[iNdEx-2]) << 48 - mapvaluetemp |= uint64(data[iNdEx-1]) << 56 + mapvaluetemp = uint64(dAtA[iNdEx-8]) + mapvaluetemp |= uint64(dAtA[iNdEx-7]) << 8 + mapvaluetemp |= uint64(dAtA[iNdEx-6]) << 16 + mapvaluetemp |= uint64(dAtA[iNdEx-5]) << 24 + mapvaluetemp |= uint64(dAtA[iNdEx-4]) << 32 + mapvaluetemp |= uint64(dAtA[iNdEx-3]) << 40 + mapvaluetemp |= uint64(dAtA[iNdEx-2]) << 48 + mapvaluetemp |= uint64(dAtA[iNdEx-1]) << 56 mapvalue := math.Float64frombits(mapvaluetemp) m.Metrics[mapkey] = mapvalue } else { @@ -696,7 +696,7 @@ func (m *NodeStatus) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -711,13 +711,13 @@ func (m *NodeStatus) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.StoreStatuses = append(m.StoreStatuses, StoreStatus{}) - if err := m.StoreStatuses[len(m.StoreStatuses)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.StoreStatuses[len(m.StoreStatuses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStatus(data[iNdEx:]) + skippy, err := skipStatus(dAtA[iNdEx:]) if err != nil { return err } @@ -736,8 +736,8 @@ func (m *NodeStatus) Unmarshal(data []byte) error { } return nil } -func skipStatus(data []byte) (n int, err error) { - l := len(data) +func skipStatus(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -748,7 +748,7 @@ func skipStatus(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -766,7 +766,7 @@ func skipStatus(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -783,7 +783,7 @@ func skipStatus(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -806,7 +806,7 @@ func skipStatus(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -817,7 +817,7 @@ func skipStatus(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipStatus(data[start:]) + next, err := skipStatus(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/sql/distsql/api.pb.go b/pkg/sql/distsql/api.pb.go index afb727b4175b..7bbf4143c49d 100644 --- a/pkg/sql/distsql/api.pb.go +++ b/pkg/sql/distsql/api.pb.go @@ -314,43 +314,43 @@ var _DistSQL_serviceDesc = grpc.ServiceDesc{ Metadata: fileDescriptorApi, } -func (m *SetupFlowRequest) Marshal() (data []byte, err error) { +func (m *SetupFlowRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SetupFlowRequest) MarshalTo(data []byte) (int, error) { +func (m *SetupFlowRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Txn.Size())) - n1, err := m.Txn.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Txn.Size())) + n1, err := m.Txn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 if m.TraceContext != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.TraceContext.Size())) - n2, err := m.TraceContext.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.TraceContext.Size())) + n2, err := m.TraceContext.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 } - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintApi(data, i, uint64(m.Flow.Size())) - n3, err := m.Flow.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Flow.Size())) + n3, err := m.Flow.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -358,26 +358,26 @@ func (m *SetupFlowRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *SimpleResponse) Marshal() (data []byte, err error) { +func (m *SimpleResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SimpleResponse) MarshalTo(data []byte) (int, error) { +func (m *SimpleResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Error != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.Error.Size())) - n4, err := m.Error.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Error.Size())) + n4, err := m.Error.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -386,31 +386,31 @@ func (m *SimpleResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64Api(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Api(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Api(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Api(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintApi(data []byte, offset int, v uint64) int { +func encodeVarintApi(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *SetupFlowRequest) Size() (n int) { @@ -450,8 +450,8 @@ func sovApi(x uint64) (n int) { func sozApi(x uint64) (n int) { return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *SetupFlowRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *SetupFlowRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -463,7 +463,7 @@ func (m *SetupFlowRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -491,7 +491,7 @@ func (m *SetupFlowRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -505,7 +505,7 @@ func (m *SetupFlowRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Txn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Txn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -521,7 +521,7 @@ func (m *SetupFlowRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -538,7 +538,7 @@ func (m *SetupFlowRequest) Unmarshal(data []byte) error { if m.TraceContext == nil { m.TraceContext = &cockroach_util_tracing.SpanContextCarrier{} } - if err := m.TraceContext.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TraceContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -554,7 +554,7 @@ func (m *SetupFlowRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -568,13 +568,13 @@ func (m *SetupFlowRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Flow.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Flow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -593,8 +593,8 @@ func (m *SetupFlowRequest) Unmarshal(data []byte) error { } return nil } -func (m *SimpleResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *SimpleResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -606,7 +606,7 @@ func (m *SimpleResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -634,7 +634,7 @@ func (m *SimpleResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -651,13 +651,13 @@ func (m *SimpleResponse) Unmarshal(data []byte) error { if m.Error == nil { m.Error = &cockroach_roachpb2.Error{} } - if err := m.Error.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -676,8 +676,8 @@ func (m *SimpleResponse) Unmarshal(data []byte) error { } return nil } -func skipApi(data []byte) (n int, err error) { - l := len(data) +func skipApi(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -688,7 +688,7 @@ func skipApi(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -706,7 +706,7 @@ func skipApi(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -723,7 +723,7 @@ func skipApi(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -746,7 +746,7 @@ func skipApi(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -757,7 +757,7 @@ func skipApi(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipApi(data[start:]) + next, err := skipApi(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/sql/distsql/data.pb.go b/pkg/sql/distsql/data.pb.go index 4d96f7e7d3cf..2f24a9643159 100644 --- a/pkg/sql/distsql/data.pb.go +++ b/pkg/sql/distsql/data.pb.go @@ -311,53 +311,53 @@ func init() { proto.RegisterEnum("cockroach.sql.distsql.InputSyncSpec_Type", InputSyncSpec_Type_name, InputSyncSpec_Type_value) proto.RegisterEnum("cockroach.sql.distsql.OutputRouterSpec_Type", OutputRouterSpec_Type_name, OutputRouterSpec_Type_value) } -func (m *Expression) Marshal() (data []byte, err error) { +func (m *Expression) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Expression) MarshalTo(data []byte) (int, error) { +func (m *Expression) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(len(m.Version))) - i += copy(data[i:], m.Version) - data[i] = 0x12 + i = encodeVarintData(dAtA, i, uint64(len(m.Version))) + i += copy(dAtA[i:], m.Version) + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(len(m.Expr))) - i += copy(data[i:], m.Expr) + i = encodeVarintData(dAtA, i, uint64(len(m.Expr))) + i += copy(dAtA[i:], m.Expr) return i, nil } -func (m *Ordering) Marshal() (data []byte, err error) { +func (m *Ordering) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Ordering) MarshalTo(data []byte) (int, error) { +func (m *Ordering) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Columns) > 0 { for _, msg := range m.Columns { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -367,83 +367,83 @@ func (m *Ordering) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *Ordering_Column) Marshal() (data []byte, err error) { +func (m *Ordering_Column) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Ordering_Column) MarshalTo(data []byte) (int, error) { +func (m *Ordering_Column) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintData(data, i, uint64(m.ColIdx)) - data[i] = 0x10 + i = encodeVarintData(dAtA, i, uint64(m.ColIdx)) + dAtA[i] = 0x10 i++ - i = encodeVarintData(data, i, uint64(m.Direction)) + i = encodeVarintData(dAtA, i, uint64(m.Direction)) return i, nil } -func (m *MailboxSpec) Marshal() (data []byte, err error) { +func (m *MailboxSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *MailboxSpec) MarshalTo(data []byte) (int, error) { +func (m *MailboxSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ if m.SimpleResponse { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(len(m.TargetAddr))) - i += copy(data[i:], m.TargetAddr) + i = encodeVarintData(dAtA, i, uint64(len(m.TargetAddr))) + i += copy(dAtA[i:], m.TargetAddr) return i, nil } -func (m *StreamEndpointSpec) Marshal() (data []byte, err error) { +func (m *StreamEndpointSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *StreamEndpointSpec) MarshalTo(data []byte) (int, error) { +func (m *StreamEndpointSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintData(data, i, uint64(m.StreamID)) + i = encodeVarintData(dAtA, i, uint64(m.StreamID)) if m.Mailbox != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(m.Mailbox.Size())) - n1, err := m.Mailbox.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Mailbox.Size())) + n1, err := m.Mailbox.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -452,38 +452,38 @@ func (m *StreamEndpointSpec) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *InputSyncSpec) Marshal() (data []byte, err error) { +func (m *InputSyncSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *InputSyncSpec) MarshalTo(data []byte) (int, error) { +func (m *InputSyncSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintData(data, i, uint64(m.Type)) - data[i] = 0x12 + i = encodeVarintData(dAtA, i, uint64(m.Type)) + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(m.Ordering.Size())) - n2, err := m.Ordering.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Ordering.Size())) + n2, err := m.Ordering.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 if len(m.Streams) > 0 { for _, msg := range m.Streams { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintData(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -493,30 +493,30 @@ func (m *InputSyncSpec) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *OutputRouterSpec) Marshal() (data []byte, err error) { +func (m *OutputRouterSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *OutputRouterSpec) MarshalTo(data []byte) (int, error) { +func (m *OutputRouterSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintData(data, i, uint64(m.Type)) + i = encodeVarintData(dAtA, i, uint64(m.Type)) if len(m.Streams) > 0 { for _, msg := range m.Streams { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -525,70 +525,70 @@ func (m *OutputRouterSpec) MarshalTo(data []byte) (int, error) { } if len(m.HashColumns) > 0 { for _, num := range m.HashColumns { - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintData(data, i, uint64(num)) + i = encodeVarintData(dAtA, i, uint64(num)) } } return i, nil } -func (m *DatumInfo) Marshal() (data []byte, err error) { +func (m *DatumInfo) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DatumInfo) MarshalTo(data []byte) (int, error) { +func (m *DatumInfo) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintData(data, i, uint64(m.Encoding)) - data[i] = 0x10 + i = encodeVarintData(dAtA, i, uint64(m.Encoding)) + dAtA[i] = 0x10 i++ - i = encodeVarintData(data, i, uint64(m.Type)) + i = encodeVarintData(dAtA, i, uint64(m.Type)) return i, nil } -func (m *StreamHeader) Marshal() (data []byte, err error) { +func (m *StreamHeader) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *StreamHeader) MarshalTo(data []byte) (int, error) { +func (m *StreamHeader) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(m.FlowID.Size())) - n3, err := m.FlowID.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.FlowID.Size())) + n3, err := m.FlowID.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintData(data, i, uint64(m.StreamID)) + i = encodeVarintData(dAtA, i, uint64(m.StreamID)) if len(m.Info) > 0 { for _, msg := range m.Info { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintData(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -598,50 +598,50 @@ func (m *StreamHeader) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *StreamData) Marshal() (data []byte, err error) { +func (m *StreamData) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *StreamData) MarshalTo(data []byte) (int, error) { +func (m *StreamData) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.RawBytes != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(len(m.RawBytes))) - i += copy(data[i:], m.RawBytes) + i = encodeVarintData(dAtA, i, uint64(len(m.RawBytes))) + i += copy(dAtA[i:], m.RawBytes) } return i, nil } -func (m *StreamTrailer) Marshal() (data []byte, err error) { +func (m *StreamTrailer) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *StreamTrailer) MarshalTo(data []byte) (int, error) { +func (m *StreamTrailer) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Error != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(m.Error.Size())) - n4, err := m.Error.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Error.Size())) + n4, err := m.Error.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -650,44 +650,44 @@ func (m *StreamTrailer) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *StreamMessage) Marshal() (data []byte, err error) { +func (m *StreamMessage) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *StreamMessage) MarshalTo(data []byte) (int, error) { +func (m *StreamMessage) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Header != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintData(data, i, uint64(m.Header.Size())) - n5, err := m.Header.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Header.Size())) + n5, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n5 } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintData(data, i, uint64(m.Data.Size())) - n6, err := m.Data.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Data.Size())) + n6, err := m.Data.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n6 if m.Trailer != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintData(data, i, uint64(m.Trailer.Size())) - n7, err := m.Trailer.MarshalTo(data[i:]) + i = encodeVarintData(dAtA, i, uint64(m.Trailer.Size())) + n7, err := m.Trailer.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -696,31 +696,31 @@ func (m *StreamMessage) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64Data(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Data(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Data(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Data(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintData(data []byte, offset int, v uint64) int { +func encodeVarintData(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *Expression) Size() (n int) { @@ -878,8 +878,8 @@ func sovData(x uint64) (n int) { func sozData(x uint64) (n int) { return sovData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *Expression) Unmarshal(data []byte) error { - l := len(data) +func (m *Expression) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -891,7 +891,7 @@ func (m *Expression) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -919,7 +919,7 @@ func (m *Expression) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -934,7 +934,7 @@ func (m *Expression) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Version = string(data[iNdEx:postIndex]) + m.Version = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -948,7 +948,7 @@ func (m *Expression) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -963,11 +963,11 @@ func (m *Expression) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Expr = string(data[iNdEx:postIndex]) + m.Expr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -986,8 +986,8 @@ func (m *Expression) Unmarshal(data []byte) error { } return nil } -func (m *Ordering) Unmarshal(data []byte) error { - l := len(data) +func (m *Ordering) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -999,7 +999,7 @@ func (m *Ordering) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1027,7 +1027,7 @@ func (m *Ordering) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1042,13 +1042,13 @@ func (m *Ordering) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Columns = append(m.Columns, Ordering_Column{}) - if err := m.Columns[len(m.Columns)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Columns[len(m.Columns)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -1067,8 +1067,8 @@ func (m *Ordering) Unmarshal(data []byte) error { } return nil } -func (m *Ordering_Column) Unmarshal(data []byte) error { - l := len(data) +func (m *Ordering_Column) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1080,7 +1080,7 @@ func (m *Ordering_Column) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1108,7 +1108,7 @@ func (m *Ordering_Column) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ColIdx |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -1127,7 +1127,7 @@ func (m *Ordering_Column) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Direction |= (Ordering_Column_Direction(b) & 0x7F) << shift if b < 0x80 { @@ -1136,7 +1136,7 @@ func (m *Ordering_Column) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -1155,8 +1155,8 @@ func (m *Ordering_Column) Unmarshal(data []byte) error { } return nil } -func (m *MailboxSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *MailboxSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1168,7 +1168,7 @@ func (m *MailboxSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1196,7 +1196,7 @@ func (m *MailboxSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1216,7 +1216,7 @@ func (m *MailboxSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1231,11 +1231,11 @@ func (m *MailboxSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetAddr = string(data[iNdEx:postIndex]) + m.TargetAddr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -1254,8 +1254,8 @@ func (m *MailboxSpec) Unmarshal(data []byte) error { } return nil } -func (m *StreamEndpointSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *StreamEndpointSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1267,7 +1267,7 @@ func (m *StreamEndpointSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1295,7 +1295,7 @@ func (m *StreamEndpointSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.StreamID |= (StreamID(b) & 0x7F) << shift if b < 0x80 { @@ -1314,7 +1314,7 @@ func (m *StreamEndpointSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1331,13 +1331,13 @@ func (m *StreamEndpointSpec) Unmarshal(data []byte) error { if m.Mailbox == nil { m.Mailbox = &MailboxSpec{} } - if err := m.Mailbox.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Mailbox.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -1356,8 +1356,8 @@ func (m *StreamEndpointSpec) Unmarshal(data []byte) error { } return nil } -func (m *InputSyncSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *InputSyncSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1369,7 +1369,7 @@ func (m *InputSyncSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1397,7 +1397,7 @@ func (m *InputSyncSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Type |= (InputSyncSpec_Type(b) & 0x7F) << shift if b < 0x80 { @@ -1416,7 +1416,7 @@ func (m *InputSyncSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1430,7 +1430,7 @@ func (m *InputSyncSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Ordering.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Ordering.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1446,7 +1446,7 @@ func (m *InputSyncSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1461,13 +1461,13 @@ func (m *InputSyncSpec) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Streams = append(m.Streams, StreamEndpointSpec{}) - if err := m.Streams[len(m.Streams)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Streams[len(m.Streams)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -1486,8 +1486,8 @@ func (m *InputSyncSpec) Unmarshal(data []byte) error { } return nil } -func (m *OutputRouterSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *OutputRouterSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1499,7 +1499,7 @@ func (m *OutputRouterSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1527,7 +1527,7 @@ func (m *OutputRouterSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Type |= (OutputRouterSpec_Type(b) & 0x7F) << shift if b < 0x80 { @@ -1546,7 +1546,7 @@ func (m *OutputRouterSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1561,7 +1561,7 @@ func (m *OutputRouterSpec) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Streams = append(m.Streams, StreamEndpointSpec{}) - if err := m.Streams[len(m.Streams)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Streams[len(m.Streams)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1577,7 +1577,7 @@ func (m *OutputRouterSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -1587,7 +1587,7 @@ func (m *OutputRouterSpec) Unmarshal(data []byte) error { m.HashColumns = append(m.HashColumns, v) default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -1606,8 +1606,8 @@ func (m *OutputRouterSpec) Unmarshal(data []byte) error { } return nil } -func (m *DatumInfo) Unmarshal(data []byte) error { - l := len(data) +func (m *DatumInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1619,7 +1619,7 @@ func (m *DatumInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1647,7 +1647,7 @@ func (m *DatumInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Encoding |= (cockroach_sql_sqlbase2.DatumEncoding(b) & 0x7F) << shift if b < 0x80 { @@ -1666,7 +1666,7 @@ func (m *DatumInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Type |= (cockroach_sql_sqlbase1.ColumnType_Kind(b) & 0x7F) << shift if b < 0x80 { @@ -1675,7 +1675,7 @@ func (m *DatumInfo) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -1694,8 +1694,8 @@ func (m *DatumInfo) Unmarshal(data []byte) error { } return nil } -func (m *StreamHeader) Unmarshal(data []byte) error { - l := len(data) +func (m *StreamHeader) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1707,7 +1707,7 @@ func (m *StreamHeader) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1735,7 +1735,7 @@ func (m *StreamHeader) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1749,7 +1749,7 @@ func (m *StreamHeader) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.FlowID.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.FlowID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1765,7 +1765,7 @@ func (m *StreamHeader) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.StreamID |= (StreamID(b) & 0x7F) << shift if b < 0x80 { @@ -1784,7 +1784,7 @@ func (m *StreamHeader) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1799,13 +1799,13 @@ func (m *StreamHeader) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Info = append(m.Info, DatumInfo{}) - if err := m.Info[len(m.Info)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Info[len(m.Info)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -1824,8 +1824,8 @@ func (m *StreamHeader) Unmarshal(data []byte) error { } return nil } -func (m *StreamData) Unmarshal(data []byte) error { - l := len(data) +func (m *StreamData) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1837,7 +1837,7 @@ func (m *StreamData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1865,7 +1865,7 @@ func (m *StreamData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1879,14 +1879,14 @@ func (m *StreamData) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RawBytes = append(m.RawBytes[:0], data[iNdEx:postIndex]...) + m.RawBytes = append(m.RawBytes[:0], dAtA[iNdEx:postIndex]...) if m.RawBytes == nil { m.RawBytes = []byte{} } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -1905,8 +1905,8 @@ func (m *StreamData) Unmarshal(data []byte) error { } return nil } -func (m *StreamTrailer) Unmarshal(data []byte) error { - l := len(data) +func (m *StreamTrailer) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1918,7 +1918,7 @@ func (m *StreamTrailer) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1946,7 +1946,7 @@ func (m *StreamTrailer) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1963,13 +1963,13 @@ func (m *StreamTrailer) Unmarshal(data []byte) error { if m.Error == nil { m.Error = &cockroach_roachpb2.Error{} } - if err := m.Error.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -1988,8 +1988,8 @@ func (m *StreamTrailer) Unmarshal(data []byte) error { } return nil } -func (m *StreamMessage) Unmarshal(data []byte) error { - l := len(data) +func (m *StreamMessage) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2001,7 +2001,7 @@ func (m *StreamMessage) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2029,7 +2029,7 @@ func (m *StreamMessage) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2046,7 +2046,7 @@ func (m *StreamMessage) Unmarshal(data []byte) error { if m.Header == nil { m.Header = &StreamHeader{} } - if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2062,7 +2062,7 @@ func (m *StreamMessage) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2076,7 +2076,7 @@ func (m *StreamMessage) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Data.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2092,7 +2092,7 @@ func (m *StreamMessage) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2109,13 +2109,13 @@ func (m *StreamMessage) Unmarshal(data []byte) error { if m.Trailer == nil { m.Trailer = &StreamTrailer{} } - if err := m.Trailer.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Trailer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipData(data[iNdEx:]) + skippy, err := skipData(dAtA[iNdEx:]) if err != nil { return err } @@ -2134,8 +2134,8 @@ func (m *StreamMessage) Unmarshal(data []byte) error { } return nil } -func skipData(data []byte) (n int, err error) { - l := len(data) +func skipData(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -2146,7 +2146,7 @@ func skipData(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2164,7 +2164,7 @@ func skipData(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -2181,7 +2181,7 @@ func skipData(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2204,7 +2204,7 @@ func skipData(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2215,7 +2215,7 @@ func skipData(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipData(data[start:]) + next, err := skipData(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/sql/distsql/processors.pb.go b/pkg/sql/distsql/processors.pb.go index a38dfcdfc749..b9832ff804a6 100644 --- a/pkg/sql/distsql/processors.pb.go +++ b/pkg/sql/distsql/processors.pb.go @@ -429,17 +429,17 @@ func init() { proto.RegisterEnum("cockroach.sql.distsql.JoinType", JoinType_name, JoinType_value) proto.RegisterEnum("cockroach.sql.distsql.AggregatorSpec_Func", AggregatorSpec_Func_name, AggregatorSpec_Func_value) } -func (m *NoopCoreSpec) Marshal() (data []byte, err error) { +func (m *NoopCoreSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *NoopCoreSpec) MarshalTo(data []byte) (int, error) { +func (m *NoopCoreSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -447,25 +447,25 @@ func (m *NoopCoreSpec) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *TableReaderSpan) Marshal() (data []byte, err error) { +func (m *TableReaderSpan) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableReaderSpan) MarshalTo(data []byte) (int, error) { +func (m *TableReaderSpan) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintProcessors(data, i, uint64(m.Span.Size())) - n1, err := m.Span.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.Span.Size())) + n1, err := m.Span.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -473,200 +473,200 @@ func (m *TableReaderSpan) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *TableReaderSpec) Marshal() (data []byte, err error) { +func (m *TableReaderSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableReaderSpec) MarshalTo(data []byte) (int, error) { +func (m *TableReaderSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintProcessors(data, i, uint64(m.Table.Size())) - n2, err := m.Table.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.Table.Size())) + n2, err := m.Table.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintProcessors(data, i, uint64(m.IndexIdx)) - data[i] = 0x18 + i = encodeVarintProcessors(dAtA, i, uint64(m.IndexIdx)) + dAtA[i] = 0x18 i++ if m.Reverse { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ if len(m.Spans) > 0 { for _, msg := range m.Spans { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintProcessors(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintProcessors(data, i, uint64(m.Filter.Size())) - n3, err := m.Filter.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.Filter.Size())) + n3, err := m.Filter.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 if len(m.OutputColumns) > 0 { - data5 := make([]byte, len(m.OutputColumns)*10) + dAtA5 := make([]byte, len(m.OutputColumns)*10) var j4 int for _, num := range m.OutputColumns { for num >= 1<<7 { - data5[j4] = uint8(uint64(num)&0x7f | 0x80) + dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 j4++ } - data5[j4] = uint8(num) + dAtA5[j4] = uint8(num) j4++ } - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintProcessors(data, i, uint64(j4)) - i += copy(data[i:], data5[:j4]) + i = encodeVarintProcessors(dAtA, i, uint64(j4)) + i += copy(dAtA[i:], dAtA5[:j4]) } - data[i] = 0x38 + dAtA[i] = 0x38 i++ - i = encodeVarintProcessors(data, i, uint64(m.SoftLimit)) - data[i] = 0x40 + i = encodeVarintProcessors(dAtA, i, uint64(m.SoftLimit)) + dAtA[i] = 0x40 i++ - i = encodeVarintProcessors(data, i, uint64(m.HardLimit)) + i = encodeVarintProcessors(dAtA, i, uint64(m.HardLimit)) return i, nil } -func (m *JoinReaderSpec) Marshal() (data []byte, err error) { +func (m *JoinReaderSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *JoinReaderSpec) MarshalTo(data []byte) (int, error) { +func (m *JoinReaderSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintProcessors(data, i, uint64(m.Table.Size())) - n6, err := m.Table.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.Table.Size())) + n6, err := m.Table.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n6 - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintProcessors(data, i, uint64(m.IndexIdx)) - data[i] = 0x1a + i = encodeVarintProcessors(dAtA, i, uint64(m.IndexIdx)) + dAtA[i] = 0x1a i++ - i = encodeVarintProcessors(data, i, uint64(m.Filter.Size())) - n7, err := m.Filter.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.Filter.Size())) + n7, err := m.Filter.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n7 if len(m.OutputColumns) > 0 { - data9 := make([]byte, len(m.OutputColumns)*10) + dAtA9 := make([]byte, len(m.OutputColumns)*10) var j8 int for _, num := range m.OutputColumns { for num >= 1<<7 { - data9[j8] = uint8(uint64(num)&0x7f | 0x80) + dAtA9[j8] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 j8++ } - data9[j8] = uint8(num) + dAtA9[j8] = uint8(num) j8++ } - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintProcessors(data, i, uint64(j8)) - i += copy(data[i:], data9[:j8]) + i = encodeVarintProcessors(dAtA, i, uint64(j8)) + i += copy(dAtA[i:], dAtA9[:j8]) } return i, nil } -func (m *SorterSpec) Marshal() (data []byte, err error) { +func (m *SorterSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SorterSpec) MarshalTo(data []byte) (int, error) { +func (m *SorterSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintProcessors(data, i, uint64(m.OutputOrdering.Size())) - n10, err := m.OutputOrdering.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.OutputOrdering.Size())) + n10, err := m.OutputOrdering.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n10 - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintProcessors(data, i, uint64(m.OrderingMatchLen)) - data[i] = 0x18 + i = encodeVarintProcessors(dAtA, i, uint64(m.OrderingMatchLen)) + dAtA[i] = 0x18 i++ - i = encodeVarintProcessors(data, i, uint64(m.Limit)) + i = encodeVarintProcessors(dAtA, i, uint64(m.Limit)) return i, nil } -func (m *EvaluatorSpec) Marshal() (data []byte, err error) { +func (m *EvaluatorSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *EvaluatorSpec) MarshalTo(data []byte) (int, error) { +func (m *EvaluatorSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Types) > 0 { for _, num := range m.Types { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintProcessors(data, i, uint64(num)) + i = encodeVarintProcessors(dAtA, i, uint64(num)) } } if len(m.Exprs) > 0 { for _, msg := range m.Exprs { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintProcessors(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -676,25 +676,25 @@ func (m *EvaluatorSpec) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *DistinctSpec) Marshal() (data []byte, err error) { +func (m *DistinctSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DistinctSpec) MarshalTo(data []byte) (int, error) { +func (m *DistinctSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintProcessors(data, i, uint64(m.Ordering.Size())) - n11, err := m.Ordering.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.Ordering.Size())) + n11, err := m.Ordering.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -702,211 +702,211 @@ func (m *DistinctSpec) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *MergeJoinerSpec) Marshal() (data []byte, err error) { +func (m *MergeJoinerSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *MergeJoinerSpec) MarshalTo(data []byte) (int, error) { +func (m *MergeJoinerSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintProcessors(data, i, uint64(m.LeftOrdering.Size())) - n12, err := m.LeftOrdering.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.LeftOrdering.Size())) + n12, err := m.LeftOrdering.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n12 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintProcessors(data, i, uint64(m.RightOrdering.Size())) - n13, err := m.RightOrdering.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.RightOrdering.Size())) + n13, err := m.RightOrdering.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n13 if len(m.LeftTypes) > 0 { for _, num := range m.LeftTypes { - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintProcessors(data, i, uint64(num)) + i = encodeVarintProcessors(dAtA, i, uint64(num)) } } if len(m.RightTypes) > 0 { for _, num := range m.RightTypes { - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintProcessors(data, i, uint64(num)) + i = encodeVarintProcessors(dAtA, i, uint64(num)) } } - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintProcessors(data, i, uint64(m.Expr.Size())) - n14, err := m.Expr.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.Expr.Size())) + n14, err := m.Expr.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n14 - data[i] = 0x30 + dAtA[i] = 0x30 i++ - i = encodeVarintProcessors(data, i, uint64(m.Type)) + i = encodeVarintProcessors(dAtA, i, uint64(m.Type)) if len(m.OutputColumns) > 0 { - data16 := make([]byte, len(m.OutputColumns)*10) + dAtA16 := make([]byte, len(m.OutputColumns)*10) var j15 int for _, num := range m.OutputColumns { for num >= 1<<7 { - data16[j15] = uint8(uint64(num)&0x7f | 0x80) + dAtA16[j15] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 j15++ } - data16[j15] = uint8(num) + dAtA16[j15] = uint8(num) j15++ } - data[i] = 0x3a + dAtA[i] = 0x3a i++ - i = encodeVarintProcessors(data, i, uint64(j15)) - i += copy(data[i:], data16[:j15]) + i = encodeVarintProcessors(dAtA, i, uint64(j15)) + i += copy(dAtA[i:], dAtA16[:j15]) } return i, nil } -func (m *HashJoinerSpec) Marshal() (data []byte, err error) { +func (m *HashJoinerSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *HashJoinerSpec) MarshalTo(data []byte) (int, error) { +func (m *HashJoinerSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.LeftEqColumns) > 0 { - data18 := make([]byte, len(m.LeftEqColumns)*10) + dAtA18 := make([]byte, len(m.LeftEqColumns)*10) var j17 int for _, num := range m.LeftEqColumns { for num >= 1<<7 { - data18[j17] = uint8(uint64(num)&0x7f | 0x80) + dAtA18[j17] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 j17++ } - data18[j17] = uint8(num) + dAtA18[j17] = uint8(num) j17++ } - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintProcessors(data, i, uint64(j17)) - i += copy(data[i:], data18[:j17]) + i = encodeVarintProcessors(dAtA, i, uint64(j17)) + i += copy(dAtA[i:], dAtA18[:j17]) } if len(m.RightEqColumns) > 0 { - data20 := make([]byte, len(m.RightEqColumns)*10) + dAtA20 := make([]byte, len(m.RightEqColumns)*10) var j19 int for _, num := range m.RightEqColumns { for num >= 1<<7 { - data20[j19] = uint8(uint64(num)&0x7f | 0x80) + dAtA20[j19] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 j19++ } - data20[j19] = uint8(num) + dAtA20[j19] = uint8(num) j19++ } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintProcessors(data, i, uint64(j19)) - i += copy(data[i:], data20[:j19]) + i = encodeVarintProcessors(dAtA, i, uint64(j19)) + i += copy(dAtA[i:], dAtA20[:j19]) } if len(m.LeftTypes) > 0 { for _, num := range m.LeftTypes { - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintProcessors(data, i, uint64(num)) + i = encodeVarintProcessors(dAtA, i, uint64(num)) } } if len(m.RightTypes) > 0 { for _, num := range m.RightTypes { - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintProcessors(data, i, uint64(num)) + i = encodeVarintProcessors(dAtA, i, uint64(num)) } } - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintProcessors(data, i, uint64(m.Expr.Size())) - n21, err := m.Expr.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.Expr.Size())) + n21, err := m.Expr.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n21 - data[i] = 0x30 + dAtA[i] = 0x30 i++ - i = encodeVarintProcessors(data, i, uint64(m.Type)) + i = encodeVarintProcessors(dAtA, i, uint64(m.Type)) if len(m.OutputColumns) > 0 { - data23 := make([]byte, len(m.OutputColumns)*10) + dAtA23 := make([]byte, len(m.OutputColumns)*10) var j22 int for _, num := range m.OutputColumns { for num >= 1<<7 { - data23[j22] = uint8(uint64(num)&0x7f | 0x80) + dAtA23[j22] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 j22++ } - data23[j22] = uint8(num) + dAtA23[j22] = uint8(num) j22++ } - data[i] = 0x3a + dAtA[i] = 0x3a i++ - i = encodeVarintProcessors(data, i, uint64(j22)) - i += copy(data[i:], data23[:j22]) + i = encodeVarintProcessors(dAtA, i, uint64(j22)) + i += copy(dAtA[i:], dAtA23[:j22]) } return i, nil } -func (m *AggregatorSpec) Marshal() (data []byte, err error) { +func (m *AggregatorSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *AggregatorSpec) MarshalTo(data []byte) (int, error) { +func (m *AggregatorSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Types) > 0 { for _, num := range m.Types { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintProcessors(data, i, uint64(num)) + i = encodeVarintProcessors(dAtA, i, uint64(num)) } } if len(m.GroupCols) > 0 { for _, num := range m.GroupCols { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintProcessors(data, i, uint64(num)) + i = encodeVarintProcessors(dAtA, i, uint64(num)) } } if len(m.Exprs) > 0 { for _, msg := range m.Exprs { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintProcessors(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -916,138 +916,138 @@ func (m *AggregatorSpec) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *AggregatorSpec_Expr) Marshal() (data []byte, err error) { +func (m *AggregatorSpec_Expr) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *AggregatorSpec_Expr) MarshalTo(data []byte) (int, error) { +func (m *AggregatorSpec_Expr) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintProcessors(data, i, uint64(m.Func)) - data[i] = 0x10 + i = encodeVarintProcessors(dAtA, i, uint64(m.Func)) + dAtA[i] = 0x10 i++ if m.Distinct { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintProcessors(data, i, uint64(m.ColIdx)) + i = encodeVarintProcessors(dAtA, i, uint64(m.ColIdx)) return i, nil } -func (m *ProcessorCoreUnion) Marshal() (data []byte, err error) { +func (m *ProcessorCoreUnion) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ProcessorCoreUnion) MarshalTo(data []byte) (int, error) { +func (m *ProcessorCoreUnion) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Noop != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintProcessors(data, i, uint64(m.Noop.Size())) - n24, err := m.Noop.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.Noop.Size())) + n24, err := m.Noop.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n24 } if m.TableReader != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintProcessors(data, i, uint64(m.TableReader.Size())) - n25, err := m.TableReader.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.TableReader.Size())) + n25, err := m.TableReader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n25 } if m.JoinReader != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintProcessors(data, i, uint64(m.JoinReader.Size())) - n26, err := m.JoinReader.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.JoinReader.Size())) + n26, err := m.JoinReader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n26 } if m.Sorter != nil { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintProcessors(data, i, uint64(m.Sorter.Size())) - n27, err := m.Sorter.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.Sorter.Size())) + n27, err := m.Sorter.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n27 } if m.Aggregator != nil { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintProcessors(data, i, uint64(m.Aggregator.Size())) - n28, err := m.Aggregator.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.Aggregator.Size())) + n28, err := m.Aggregator.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n28 } if m.Evaluator != nil { - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintProcessors(data, i, uint64(m.Evaluator.Size())) - n29, err := m.Evaluator.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.Evaluator.Size())) + n29, err := m.Evaluator.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n29 } if m.Distinct != nil { - data[i] = 0x3a + dAtA[i] = 0x3a i++ - i = encodeVarintProcessors(data, i, uint64(m.Distinct.Size())) - n30, err := m.Distinct.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.Distinct.Size())) + n30, err := m.Distinct.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n30 } if m.MergeJoiner != nil { - data[i] = 0x42 + dAtA[i] = 0x42 i++ - i = encodeVarintProcessors(data, i, uint64(m.MergeJoiner.Size())) - n31, err := m.MergeJoiner.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.MergeJoiner.Size())) + n31, err := m.MergeJoiner.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n31 } if m.HashJoiner != nil { - data[i] = 0x4a + dAtA[i] = 0x4a i++ - i = encodeVarintProcessors(data, i, uint64(m.HashJoiner.Size())) - n32, err := m.HashJoiner.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.HashJoiner.Size())) + n32, err := m.HashJoiner.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1056,47 +1056,47 @@ func (m *ProcessorCoreUnion) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ProcessorSpec) Marshal() (data []byte, err error) { +func (m *ProcessorSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ProcessorSpec) MarshalTo(data []byte) (int, error) { +func (m *ProcessorSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Input) > 0 { for _, msg := range m.Input { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintProcessors(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintProcessors(data, i, uint64(m.Core.Size())) - n33, err := m.Core.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.Core.Size())) + n33, err := m.Core.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n33 if len(m.Output) > 0 { for _, msg := range m.Output { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintProcessors(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1106,35 +1106,35 @@ func (m *ProcessorSpec) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *FlowSpec) Marshal() (data []byte, err error) { +func (m *FlowSpec) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *FlowSpec) MarshalTo(data []byte) (int, error) { +func (m *FlowSpec) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintProcessors(data, i, uint64(m.FlowID.Size())) - n34, err := m.FlowID.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(m.FlowID.Size())) + n34, err := m.FlowID.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n34 if len(m.Processors) > 0 { for _, msg := range m.Processors { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintProcessors(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintProcessors(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1144,31 +1144,31 @@ func (m *FlowSpec) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64Processors(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Processors(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Processors(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Processors(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintProcessors(data []byte, offset int, v uint64) int { +func encodeVarintProcessors(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *NoopCoreSpec) Size() (n int) { @@ -1511,8 +1511,8 @@ func (this *ProcessorCoreUnion) SetValue(value interface{}) bool { } return true } -func (m *NoopCoreSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *NoopCoreSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1524,7 +1524,7 @@ func (m *NoopCoreSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1542,7 +1542,7 @@ func (m *NoopCoreSpec) Unmarshal(data []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipProcessors(data[iNdEx:]) + skippy, err := skipProcessors(dAtA[iNdEx:]) if err != nil { return err } @@ -1561,8 +1561,8 @@ func (m *NoopCoreSpec) Unmarshal(data []byte) error { } return nil } -func (m *TableReaderSpan) Unmarshal(data []byte) error { - l := len(data) +func (m *TableReaderSpan) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1574,7 +1574,7 @@ func (m *TableReaderSpan) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1602,7 +1602,7 @@ func (m *TableReaderSpan) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1616,13 +1616,13 @@ func (m *TableReaderSpan) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Span.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProcessors(data[iNdEx:]) + skippy, err := skipProcessors(dAtA[iNdEx:]) if err != nil { return err } @@ -1641,8 +1641,8 @@ func (m *TableReaderSpan) Unmarshal(data []byte) error { } return nil } -func (m *TableReaderSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *TableReaderSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1654,7 +1654,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1682,7 +1682,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1696,7 +1696,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Table.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Table.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1712,7 +1712,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.IndexIdx |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -1731,7 +1731,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1751,7 +1751,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1766,7 +1766,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Spans = append(m.Spans, TableReaderSpan{}) - if err := m.Spans[len(m.Spans)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Spans[len(m.Spans)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1782,7 +1782,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1796,7 +1796,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Filter.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1810,7 +1810,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1833,7 +1833,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -1851,7 +1851,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -1874,7 +1874,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.SoftLimit |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -1893,7 +1893,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.HardLimit |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -1902,7 +1902,7 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipProcessors(data[iNdEx:]) + skippy, err := skipProcessors(dAtA[iNdEx:]) if err != nil { return err } @@ -1921,8 +1921,8 @@ func (m *TableReaderSpec) Unmarshal(data []byte) error { } return nil } -func (m *JoinReaderSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *JoinReaderSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1934,7 +1934,7 @@ func (m *JoinReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1962,7 +1962,7 @@ func (m *JoinReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1976,7 +1976,7 @@ func (m *JoinReaderSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Table.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Table.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1992,7 +1992,7 @@ func (m *JoinReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.IndexIdx |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -2011,7 +2011,7 @@ func (m *JoinReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2025,7 +2025,7 @@ func (m *JoinReaderSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Filter.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2039,7 +2039,7 @@ func (m *JoinReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2062,7 +2062,7 @@ func (m *JoinReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -2080,7 +2080,7 @@ func (m *JoinReaderSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -2093,7 +2093,7 @@ func (m *JoinReaderSpec) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipProcessors(data[iNdEx:]) + skippy, err := skipProcessors(dAtA[iNdEx:]) if err != nil { return err } @@ -2112,8 +2112,8 @@ func (m *JoinReaderSpec) Unmarshal(data []byte) error { } return nil } -func (m *SorterSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *SorterSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2125,7 +2125,7 @@ func (m *SorterSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2153,7 +2153,7 @@ func (m *SorterSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2167,7 +2167,7 @@ func (m *SorterSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.OutputOrdering.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.OutputOrdering.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2183,7 +2183,7 @@ func (m *SorterSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.OrderingMatchLen |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -2202,7 +2202,7 @@ func (m *SorterSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Limit |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -2211,7 +2211,7 @@ func (m *SorterSpec) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipProcessors(data[iNdEx:]) + skippy, err := skipProcessors(dAtA[iNdEx:]) if err != nil { return err } @@ -2230,8 +2230,8 @@ func (m *SorterSpec) Unmarshal(data []byte) error { } return nil } -func (m *EvaluatorSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *EvaluatorSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2243,7 +2243,7 @@ func (m *EvaluatorSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2271,7 +2271,7 @@ func (m *EvaluatorSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (cockroach_sql_sqlbase1.ColumnType_Kind(b) & 0x7F) << shift if b < 0x80 { @@ -2291,7 +2291,7 @@ func (m *EvaluatorSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2306,13 +2306,13 @@ func (m *EvaluatorSpec) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Exprs = append(m.Exprs, Expression{}) - if err := m.Exprs[len(m.Exprs)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Exprs[len(m.Exprs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProcessors(data[iNdEx:]) + skippy, err := skipProcessors(dAtA[iNdEx:]) if err != nil { return err } @@ -2331,8 +2331,8 @@ func (m *EvaluatorSpec) Unmarshal(data []byte) error { } return nil } -func (m *DistinctSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *DistinctSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2344,7 +2344,7 @@ func (m *DistinctSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2372,7 +2372,7 @@ func (m *DistinctSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2386,13 +2386,13 @@ func (m *DistinctSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Ordering.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Ordering.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProcessors(data[iNdEx:]) + skippy, err := skipProcessors(dAtA[iNdEx:]) if err != nil { return err } @@ -2411,8 +2411,8 @@ func (m *DistinctSpec) Unmarshal(data []byte) error { } return nil } -func (m *MergeJoinerSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *MergeJoinerSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2424,7 +2424,7 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2452,7 +2452,7 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2466,7 +2466,7 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.LeftOrdering.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.LeftOrdering.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2482,7 +2482,7 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2496,7 +2496,7 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.RightOrdering.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RightOrdering.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2512,7 +2512,7 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (cockroach_sql_sqlbase1.ColumnType_Kind(b) & 0x7F) << shift if b < 0x80 { @@ -2532,7 +2532,7 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (cockroach_sql_sqlbase1.ColumnType_Kind(b) & 0x7F) << shift if b < 0x80 { @@ -2552,7 +2552,7 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2566,7 +2566,7 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Expr.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Expr.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2582,7 +2582,7 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Type |= (JoinType(b) & 0x7F) << shift if b < 0x80 { @@ -2599,7 +2599,7 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2622,7 +2622,7 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -2640,7 +2640,7 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -2653,7 +2653,7 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipProcessors(data[iNdEx:]) + skippy, err := skipProcessors(dAtA[iNdEx:]) if err != nil { return err } @@ -2672,8 +2672,8 @@ func (m *MergeJoinerSpec) Unmarshal(data []byte) error { } return nil } -func (m *HashJoinerSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *HashJoinerSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2685,7 +2685,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2711,7 +2711,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2734,7 +2734,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -2752,7 +2752,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -2773,7 +2773,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2796,7 +2796,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -2814,7 +2814,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -2837,7 +2837,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (cockroach_sql_sqlbase1.ColumnType_Kind(b) & 0x7F) << shift if b < 0x80 { @@ -2857,7 +2857,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (cockroach_sql_sqlbase1.ColumnType_Kind(b) & 0x7F) << shift if b < 0x80 { @@ -2877,7 +2877,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2891,7 +2891,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Expr.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Expr.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2907,7 +2907,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Type |= (JoinType(b) & 0x7F) << shift if b < 0x80 { @@ -2924,7 +2924,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2947,7 +2947,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -2965,7 +2965,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -2978,7 +2978,7 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipProcessors(data[iNdEx:]) + skippy, err := skipProcessors(dAtA[iNdEx:]) if err != nil { return err } @@ -2997,8 +2997,8 @@ func (m *HashJoinerSpec) Unmarshal(data []byte) error { } return nil } -func (m *AggregatorSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *AggregatorSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3010,7 +3010,7 @@ func (m *AggregatorSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3038,7 +3038,7 @@ func (m *AggregatorSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (cockroach_sql_sqlbase1.ColumnType_Kind(b) & 0x7F) << shift if b < 0x80 { @@ -3058,7 +3058,7 @@ func (m *AggregatorSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -3078,7 +3078,7 @@ func (m *AggregatorSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3093,13 +3093,13 @@ func (m *AggregatorSpec) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Exprs = append(m.Exprs, AggregatorSpec_Expr{}) - if err := m.Exprs[len(m.Exprs)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Exprs[len(m.Exprs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProcessors(data[iNdEx:]) + skippy, err := skipProcessors(dAtA[iNdEx:]) if err != nil { return err } @@ -3118,8 +3118,8 @@ func (m *AggregatorSpec) Unmarshal(data []byte) error { } return nil } -func (m *AggregatorSpec_Expr) Unmarshal(data []byte) error { - l := len(data) +func (m *AggregatorSpec_Expr) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3131,7 +3131,7 @@ func (m *AggregatorSpec_Expr) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3159,7 +3159,7 @@ func (m *AggregatorSpec_Expr) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Func |= (AggregatorSpec_Func(b) & 0x7F) << shift if b < 0x80 { @@ -3178,7 +3178,7 @@ func (m *AggregatorSpec_Expr) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3198,7 +3198,7 @@ func (m *AggregatorSpec_Expr) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ColIdx |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -3207,7 +3207,7 @@ func (m *AggregatorSpec_Expr) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipProcessors(data[iNdEx:]) + skippy, err := skipProcessors(dAtA[iNdEx:]) if err != nil { return err } @@ -3226,8 +3226,8 @@ func (m *AggregatorSpec_Expr) Unmarshal(data []byte) error { } return nil } -func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { - l := len(data) +func (m *ProcessorCoreUnion) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3239,7 +3239,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3267,7 +3267,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3284,7 +3284,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if m.Noop == nil { m.Noop = &NoopCoreSpec{} } - if err := m.Noop.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Noop.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3300,7 +3300,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3317,7 +3317,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if m.TableReader == nil { m.TableReader = &TableReaderSpec{} } - if err := m.TableReader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TableReader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3333,7 +3333,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3350,7 +3350,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if m.JoinReader == nil { m.JoinReader = &JoinReaderSpec{} } - if err := m.JoinReader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.JoinReader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3366,7 +3366,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3383,7 +3383,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if m.Sorter == nil { m.Sorter = &SorterSpec{} } - if err := m.Sorter.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Sorter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3399,7 +3399,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3416,7 +3416,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if m.Aggregator == nil { m.Aggregator = &AggregatorSpec{} } - if err := m.Aggregator.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Aggregator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3432,7 +3432,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3449,7 +3449,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if m.Evaluator == nil { m.Evaluator = &EvaluatorSpec{} } - if err := m.Evaluator.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Evaluator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3465,7 +3465,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3482,7 +3482,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if m.Distinct == nil { m.Distinct = &DistinctSpec{} } - if err := m.Distinct.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Distinct.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3498,7 +3498,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3515,7 +3515,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if m.MergeJoiner == nil { m.MergeJoiner = &MergeJoinerSpec{} } - if err := m.MergeJoiner.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.MergeJoiner.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3531,7 +3531,7 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3548,13 +3548,13 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { if m.HashJoiner == nil { m.HashJoiner = &HashJoinerSpec{} } - if err := m.HashJoiner.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.HashJoiner.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProcessors(data[iNdEx:]) + skippy, err := skipProcessors(dAtA[iNdEx:]) if err != nil { return err } @@ -3573,8 +3573,8 @@ func (m *ProcessorCoreUnion) Unmarshal(data []byte) error { } return nil } -func (m *ProcessorSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *ProcessorSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3586,7 +3586,7 @@ func (m *ProcessorSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3614,7 +3614,7 @@ func (m *ProcessorSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3629,7 +3629,7 @@ func (m *ProcessorSpec) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Input = append(m.Input, InputSyncSpec{}) - if err := m.Input[len(m.Input)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Input[len(m.Input)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3645,7 +3645,7 @@ func (m *ProcessorSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3659,7 +3659,7 @@ func (m *ProcessorSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Core.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Core.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3675,7 +3675,7 @@ func (m *ProcessorSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3690,13 +3690,13 @@ func (m *ProcessorSpec) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Output = append(m.Output, OutputRouterSpec{}) - if err := m.Output[len(m.Output)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Output[len(m.Output)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProcessors(data[iNdEx:]) + skippy, err := skipProcessors(dAtA[iNdEx:]) if err != nil { return err } @@ -3715,8 +3715,8 @@ func (m *ProcessorSpec) Unmarshal(data []byte) error { } return nil } -func (m *FlowSpec) Unmarshal(data []byte) error { - l := len(data) +func (m *FlowSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3728,7 +3728,7 @@ func (m *FlowSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3756,7 +3756,7 @@ func (m *FlowSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3770,7 +3770,7 @@ func (m *FlowSpec) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.FlowID.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.FlowID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3786,7 +3786,7 @@ func (m *FlowSpec) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3801,13 +3801,13 @@ func (m *FlowSpec) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Processors = append(m.Processors, ProcessorSpec{}) - if err := m.Processors[len(m.Processors)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Processors[len(m.Processors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProcessors(data[iNdEx:]) + skippy, err := skipProcessors(dAtA[iNdEx:]) if err != nil { return err } @@ -3826,8 +3826,8 @@ func (m *FlowSpec) Unmarshal(data []byte) error { } return nil } -func skipProcessors(data []byte) (n int, err error) { - l := len(data) +func skipProcessors(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -3838,7 +3838,7 @@ func skipProcessors(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3856,7 +3856,7 @@ func skipProcessors(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -3873,7 +3873,7 @@ func skipProcessors(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3896,7 +3896,7 @@ func skipProcessors(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3907,7 +3907,7 @@ func skipProcessors(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipProcessors(data[start:]) + next, err := skipProcessors(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/sql/sqlbase/backup.pb.go b/pkg/sql/sqlbase/backup.pb.go index 58f54f4361cf..97c32dbc5275 100644 --- a/pkg/sql/sqlbase/backup.pb.go +++ b/pkg/sql/sqlbase/backup.pb.go @@ -89,84 +89,84 @@ func init() { proto.RegisterType((*BackupRangeDescriptor)(nil), "cockroach.sql.sqlbase.BackupRangeDescriptor") proto.RegisterType((*BackupDescriptor)(nil), "cockroach.sql.sqlbase.BackupDescriptor") } -func (m *BackupRangeDescriptor) Marshal() (data []byte, err error) { +func (m *BackupRangeDescriptor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *BackupRangeDescriptor) MarshalTo(data []byte) (int, error) { +func (m *BackupRangeDescriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Path) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintBackup(data, i, uint64(len(m.Path))) - i += copy(data[i:], m.Path) + i = encodeVarintBackup(dAtA, i, uint64(len(m.Path))) + i += copy(dAtA[i:], m.Path) } if len(m.StartKey) > 0 { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintBackup(data, i, uint64(len(m.StartKey))) - i += copy(data[i:], m.StartKey) + i = encodeVarintBackup(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if len(m.EndKey) > 0 { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintBackup(data, i, uint64(len(m.EndKey))) - i += copy(data[i:], m.EndKey) + i = encodeVarintBackup(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintBackup(data, i, uint64(m.StartTime.Size())) - n1, err := m.StartTime.MarshalTo(data[i:]) + i = encodeVarintBackup(dAtA, i, uint64(m.StartTime.Size())) + n1, err := m.StartTime.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 if m.CRC != 0 { - data[i] = 0x28 + dAtA[i] = 0x28 i++ - i = encodeVarintBackup(data, i, uint64(m.CRC)) + i = encodeVarintBackup(dAtA, i, uint64(m.CRC)) } return i, nil } -func (m *BackupDescriptor) Marshal() (data []byte, err error) { +func (m *BackupDescriptor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *BackupDescriptor) MarshalTo(data []byte) (int, error) { +func (m *BackupDescriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintBackup(data, i, uint64(m.EndTime.Size())) - n2, err := m.EndTime.MarshalTo(data[i:]) + i = encodeVarintBackup(dAtA, i, uint64(m.EndTime.Size())) + n2, err := m.EndTime.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 if len(m.Ranges) > 0 { for _, msg := range m.Ranges { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintBackup(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintBackup(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -175,10 +175,10 @@ func (m *BackupDescriptor) MarshalTo(data []byte) (int, error) { } if len(m.SQL) > 0 { for _, msg := range m.SQL { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintBackup(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintBackup(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -186,38 +186,38 @@ func (m *BackupDescriptor) MarshalTo(data []byte) (int, error) { } } if m.DataSize != 0 { - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintBackup(data, i, uint64(m.DataSize)) + i = encodeVarintBackup(dAtA, i, uint64(m.DataSize)) } return i, nil } -func encodeFixed64Backup(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Backup(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Backup(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Backup(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintBackup(data []byte, offset int, v uint64) int { +func encodeVarintBackup(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *BackupRangeDescriptor) Size() (n int) { @@ -279,8 +279,8 @@ func sovBackup(x uint64) (n int) { func sozBackup(x uint64) (n int) { return sovBackup(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *BackupRangeDescriptor) Unmarshal(data []byte) error { - l := len(data) +func (m *BackupRangeDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -292,7 +292,7 @@ func (m *BackupRangeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -320,7 +320,7 @@ func (m *BackupRangeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -335,7 +335,7 @@ func (m *BackupRangeDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Path = string(data[iNdEx:postIndex]) + m.Path = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -349,7 +349,7 @@ func (m *BackupRangeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -363,7 +363,7 @@ func (m *BackupRangeDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.StartKey = append(m.StartKey[:0], data[iNdEx:postIndex]...) + m.StartKey = append(m.StartKey[:0], dAtA[iNdEx:postIndex]...) if m.StartKey == nil { m.StartKey = []byte{} } @@ -380,7 +380,7 @@ func (m *BackupRangeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -394,7 +394,7 @@ func (m *BackupRangeDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EndKey = append(m.EndKey[:0], data[iNdEx:postIndex]...) + m.EndKey = append(m.EndKey[:0], dAtA[iNdEx:postIndex]...) if m.EndKey == nil { m.EndKey = []byte{} } @@ -411,7 +411,7 @@ func (m *BackupRangeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -425,7 +425,7 @@ func (m *BackupRangeDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.StartTime.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.StartTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -441,7 +441,7 @@ func (m *BackupRangeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.CRC |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -450,7 +450,7 @@ func (m *BackupRangeDescriptor) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipBackup(data[iNdEx:]) + skippy, err := skipBackup(dAtA[iNdEx:]) if err != nil { return err } @@ -469,8 +469,8 @@ func (m *BackupRangeDescriptor) Unmarshal(data []byte) error { } return nil } -func (m *BackupDescriptor) Unmarshal(data []byte) error { - l := len(data) +func (m *BackupDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -482,7 +482,7 @@ func (m *BackupDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -510,7 +510,7 @@ func (m *BackupDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -524,7 +524,7 @@ func (m *BackupDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.EndTime.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.EndTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -540,7 +540,7 @@ func (m *BackupDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -555,7 +555,7 @@ func (m *BackupDescriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Ranges = append(m.Ranges, BackupRangeDescriptor{}) - if err := m.Ranges[len(m.Ranges)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -571,7 +571,7 @@ func (m *BackupDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -586,7 +586,7 @@ func (m *BackupDescriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.SQL = append(m.SQL, Descriptor{}) - if err := m.SQL[len(m.SQL)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.SQL[len(m.SQL)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -602,7 +602,7 @@ func (m *BackupDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.DataSize |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -611,7 +611,7 @@ func (m *BackupDescriptor) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipBackup(data[iNdEx:]) + skippy, err := skipBackup(dAtA[iNdEx:]) if err != nil { return err } @@ -630,8 +630,8 @@ func (m *BackupDescriptor) Unmarshal(data []byte) error { } return nil } -func skipBackup(data []byte) (n int, err error) { - l := len(data) +func skipBackup(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -642,7 +642,7 @@ func skipBackup(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -660,7 +660,7 @@ func skipBackup(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -677,7 +677,7 @@ func skipBackup(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -700,7 +700,7 @@ func skipBackup(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -711,7 +711,7 @@ func skipBackup(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipBackup(data[start:]) + next, err := skipBackup(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/sql/sqlbase/privilege.pb.go b/pkg/sql/sqlbase/privilege.pb.go index 1c3edce41caa..da5984030ac6 100644 --- a/pkg/sql/sqlbase/privilege.pb.go +++ b/pkg/sql/sqlbase/privilege.pb.go @@ -42,52 +42,52 @@ func init() { proto.RegisterType((*UserPrivileges)(nil), "cockroach.sql.sqlbase.UserPrivileges") proto.RegisterType((*PrivilegeDescriptor)(nil), "cockroach.sql.sqlbase.PrivilegeDescriptor") } -func (m *UserPrivileges) Marshal() (data []byte, err error) { +func (m *UserPrivileges) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *UserPrivileges) MarshalTo(data []byte) (int, error) { +func (m *UserPrivileges) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintPrivilege(data, i, uint64(len(m.User))) - i += copy(data[i:], m.User) - data[i] = 0x10 + i = encodeVarintPrivilege(dAtA, i, uint64(len(m.User))) + i += copy(dAtA[i:], m.User) + dAtA[i] = 0x10 i++ - i = encodeVarintPrivilege(data, i, uint64(m.Privileges)) + i = encodeVarintPrivilege(dAtA, i, uint64(m.Privileges)) return i, nil } -func (m *PrivilegeDescriptor) Marshal() (data []byte, err error) { +func (m *PrivilegeDescriptor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *PrivilegeDescriptor) MarshalTo(data []byte) (int, error) { +func (m *PrivilegeDescriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Users) > 0 { for _, msg := range m.Users { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintPrivilege(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintPrivilege(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -97,31 +97,31 @@ func (m *PrivilegeDescriptor) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64Privilege(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Privilege(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Privilege(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Privilege(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintPrivilege(data []byte, offset int, v uint64) int { +func encodeVarintPrivilege(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *UserPrivileges) Size() (n int) { @@ -158,8 +158,8 @@ func sovPrivilege(x uint64) (n int) { func sozPrivilege(x uint64) (n int) { return sovPrivilege(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *UserPrivileges) Unmarshal(data []byte) error { - l := len(data) +func (m *UserPrivileges) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -171,7 +171,7 @@ func (m *UserPrivileges) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -199,7 +199,7 @@ func (m *UserPrivileges) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -214,7 +214,7 @@ func (m *UserPrivileges) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.User = string(data[iNdEx:postIndex]) + m.User = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -228,7 +228,7 @@ func (m *UserPrivileges) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Privileges |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -237,7 +237,7 @@ func (m *UserPrivileges) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipPrivilege(data[iNdEx:]) + skippy, err := skipPrivilege(dAtA[iNdEx:]) if err != nil { return err } @@ -256,8 +256,8 @@ func (m *UserPrivileges) Unmarshal(data []byte) error { } return nil } -func (m *PrivilegeDescriptor) Unmarshal(data []byte) error { - l := len(data) +func (m *PrivilegeDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -269,7 +269,7 @@ func (m *PrivilegeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -297,7 +297,7 @@ func (m *PrivilegeDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -312,13 +312,13 @@ func (m *PrivilegeDescriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Users = append(m.Users, UserPrivileges{}) - if err := m.Users[len(m.Users)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Users[len(m.Users)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipPrivilege(data[iNdEx:]) + skippy, err := skipPrivilege(dAtA[iNdEx:]) if err != nil { return err } @@ -337,8 +337,8 @@ func (m *PrivilegeDescriptor) Unmarshal(data []byte) error { } return nil } -func skipPrivilege(data []byte) (n int, err error) { - l := len(data) +func skipPrivilege(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -349,7 +349,7 @@ func skipPrivilege(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -367,7 +367,7 @@ func skipPrivilege(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -384,7 +384,7 @@ func skipPrivilege(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -407,7 +407,7 @@ func skipPrivilege(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -418,7 +418,7 @@ func skipPrivilege(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipPrivilege(data[start:]) + next, err := skipPrivilege(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/sql/sqlbase/structured.pb.go b/pkg/sql/sqlbase/structured.pb.go index b6d1f1155ca6..a2e5285e1b96 100644 --- a/pkg/sql/sqlbase/structured.pb.go +++ b/pkg/sql/sqlbase/structured.pb.go @@ -1122,190 +1122,190 @@ func init() { proto.RegisterEnum("cockroach.sql.sqlbase.DescriptorMutation_Direction", DescriptorMutation_Direction_name, DescriptorMutation_Direction_value) proto.RegisterEnum("cockroach.sql.sqlbase.TableDescriptor_State", TableDescriptor_State_name, TableDescriptor_State_value) } -func (m *ColumnType) Marshal() (data []byte, err error) { +func (m *ColumnType) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ColumnType) MarshalTo(data []byte) (int, error) { +func (m *ColumnType) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintStructured(data, i, uint64(m.Kind)) - data[i] = 0x10 + i = encodeVarintStructured(dAtA, i, uint64(m.Kind)) + dAtA[i] = 0x10 i++ - i = encodeVarintStructured(data, i, uint64(m.Width)) - data[i] = 0x18 + i = encodeVarintStructured(dAtA, i, uint64(m.Width)) + dAtA[i] = 0x18 i++ - i = encodeVarintStructured(data, i, uint64(m.Precision)) + i = encodeVarintStructured(dAtA, i, uint64(m.Precision)) return i, nil } -func (m *ForeignKeyReference) Marshal() (data []byte, err error) { +func (m *ForeignKeyReference) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ForeignKeyReference) MarshalTo(data []byte) (int, error) { +func (m *ForeignKeyReference) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintStructured(data, i, uint64(m.Table)) - data[i] = 0x10 + i = encodeVarintStructured(dAtA, i, uint64(m.Table)) + dAtA[i] = 0x10 i++ - i = encodeVarintStructured(data, i, uint64(m.Index)) - data[i] = 0x1a + i = encodeVarintStructured(dAtA, i, uint64(m.Index)) + dAtA[i] = 0x1a i++ - i = encodeVarintStructured(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - data[i] = 0x20 + i = encodeVarintStructured(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x20 i++ - i = encodeVarintStructured(data, i, uint64(m.Validity)) + i = encodeVarintStructured(dAtA, i, uint64(m.Validity)) return i, nil } -func (m *ColumnDescriptor) Marshal() (data []byte, err error) { +func (m *ColumnDescriptor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ColumnDescriptor) MarshalTo(data []byte) (int, error) { +func (m *ColumnDescriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStructured(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - data[i] = 0x10 + i = encodeVarintStructured(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x10 i++ - i = encodeVarintStructured(data, i, uint64(m.ID)) - data[i] = 0x1a + i = encodeVarintStructured(dAtA, i, uint64(m.ID)) + dAtA[i] = 0x1a i++ - i = encodeVarintStructured(data, i, uint64(m.Type.Size())) - n1, err := m.Type.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(m.Type.Size())) + n1, err := m.Type.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 - data[i] = 0x20 + dAtA[i] = 0x20 i++ if m.Nullable { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ if m.DefaultExpr != nil { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintStructured(data, i, uint64(len(*m.DefaultExpr))) - i += copy(data[i:], *m.DefaultExpr) + i = encodeVarintStructured(dAtA, i, uint64(len(*m.DefaultExpr))) + i += copy(dAtA[i:], *m.DefaultExpr) } - data[i] = 0x30 + dAtA[i] = 0x30 i++ if m.Hidden { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *ColumnFamilyDescriptor) Marshal() (data []byte, err error) { +func (m *ColumnFamilyDescriptor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ColumnFamilyDescriptor) MarshalTo(data []byte) (int, error) { +func (m *ColumnFamilyDescriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStructured(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - data[i] = 0x10 + i = encodeVarintStructured(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x10 i++ - i = encodeVarintStructured(data, i, uint64(m.ID)) + i = encodeVarintStructured(dAtA, i, uint64(m.ID)) if len(m.ColumnNames) > 0 { for _, s := range m.ColumnNames { - data[i] = 0x1a + dAtA[i] = 0x1a i++ l = len(s) for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } - data[i] = uint8(l) + dAtA[i] = uint8(l) i++ - i += copy(data[i:], s) + i += copy(dAtA[i:], s) } } if len(m.ColumnIDs) > 0 { for _, num := range m.ColumnIDs { - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintStructured(data, i, uint64(num)) + i = encodeVarintStructured(dAtA, i, uint64(num)) } } - data[i] = 0x28 + dAtA[i] = 0x28 i++ - i = encodeVarintStructured(data, i, uint64(m.DefaultColumnID)) + i = encodeVarintStructured(dAtA, i, uint64(m.DefaultColumnID)) return i, nil } -func (m *InterleaveDescriptor) Marshal() (data []byte, err error) { +func (m *InterleaveDescriptor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *InterleaveDescriptor) MarshalTo(data []byte) (int, error) { +func (m *InterleaveDescriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Ancestors) > 0 { for _, msg := range m.Ancestors { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStructured(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1315,148 +1315,148 @@ func (m *InterleaveDescriptor) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *InterleaveDescriptor_Ancestor) Marshal() (data []byte, err error) { +func (m *InterleaveDescriptor_Ancestor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *InterleaveDescriptor_Ancestor) MarshalTo(data []byte) (int, error) { +func (m *InterleaveDescriptor_Ancestor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintStructured(data, i, uint64(m.TableID)) - data[i] = 0x10 + i = encodeVarintStructured(dAtA, i, uint64(m.TableID)) + dAtA[i] = 0x10 i++ - i = encodeVarintStructured(data, i, uint64(m.IndexID)) - data[i] = 0x18 + i = encodeVarintStructured(dAtA, i, uint64(m.IndexID)) + dAtA[i] = 0x18 i++ - i = encodeVarintStructured(data, i, uint64(m.SharedPrefixLen)) + i = encodeVarintStructured(dAtA, i, uint64(m.SharedPrefixLen)) return i, nil } -func (m *IndexDescriptor) Marshal() (data []byte, err error) { +func (m *IndexDescriptor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *IndexDescriptor) MarshalTo(data []byte) (int, error) { +func (m *IndexDescriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStructured(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - data[i] = 0x10 + i = encodeVarintStructured(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x10 i++ - i = encodeVarintStructured(data, i, uint64(m.ID)) - data[i] = 0x18 + i = encodeVarintStructured(dAtA, i, uint64(m.ID)) + dAtA[i] = 0x18 i++ if m.Unique { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ if len(m.ColumnNames) > 0 { for _, s := range m.ColumnNames { - data[i] = 0x22 + dAtA[i] = 0x22 i++ l = len(s) for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } - data[i] = uint8(l) + dAtA[i] = uint8(l) i++ - i += copy(data[i:], s) + i += copy(dAtA[i:], s) } } if len(m.StoreColumnNames) > 0 { for _, s := range m.StoreColumnNames { - data[i] = 0x2a + dAtA[i] = 0x2a i++ l = len(s) for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } - data[i] = uint8(l) + dAtA[i] = uint8(l) i++ - i += copy(data[i:], s) + i += copy(dAtA[i:], s) } } if len(m.ColumnIDs) > 0 { for _, num := range m.ColumnIDs { - data[i] = 0x30 + dAtA[i] = 0x30 i++ - i = encodeVarintStructured(data, i, uint64(num)) + i = encodeVarintStructured(dAtA, i, uint64(num)) } } if len(m.ImplicitColumnIDs) > 0 { for _, num := range m.ImplicitColumnIDs { - data[i] = 0x38 + dAtA[i] = 0x38 i++ - i = encodeVarintStructured(data, i, uint64(num)) + i = encodeVarintStructured(dAtA, i, uint64(num)) } } if len(m.ColumnDirections) > 0 { for _, num := range m.ColumnDirections { - data[i] = 0x40 + dAtA[i] = 0x40 i++ - i = encodeVarintStructured(data, i, uint64(num)) + i = encodeVarintStructured(dAtA, i, uint64(num)) } } - data[i] = 0x4a + dAtA[i] = 0x4a i++ - i = encodeVarintStructured(data, i, uint64(m.ForeignKey.Size())) - n2, err := m.ForeignKey.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(m.ForeignKey.Size())) + n2, err := m.ForeignKey.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 if len(m.ReferencedBy) > 0 { for _, msg := range m.ReferencedBy { - data[i] = 0x52 + dAtA[i] = 0x52 i++ - i = encodeVarintStructured(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0x5a + dAtA[i] = 0x5a i++ - i = encodeVarintStructured(data, i, uint64(m.Interleave.Size())) - n3, err := m.Interleave.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(m.Interleave.Size())) + n3, err := m.Interleave.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 if len(m.InterleavedBy) > 0 { for _, msg := range m.InterleavedBy { - data[i] = 0x62 + dAtA[i] = 0x62 i++ - i = encodeVarintStructured(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1466,41 +1466,41 @@ func (m *IndexDescriptor) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *DescriptorMutation) Marshal() (data []byte, err error) { +func (m *DescriptorMutation) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DescriptorMutation) MarshalTo(data []byte) (int, error) { +func (m *DescriptorMutation) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Descriptor_ != nil { - nn4, err := m.Descriptor_.MarshalTo(data[i:]) + nn4, err := m.Descriptor_.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += nn4 } - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintStructured(data, i, uint64(m.State)) - data[i] = 0x20 + i = encodeVarintStructured(dAtA, i, uint64(m.State)) + dAtA[i] = 0x20 i++ - i = encodeVarintStructured(data, i, uint64(m.Direction)) - data[i] = 0x28 + i = encodeVarintStructured(dAtA, i, uint64(m.Direction)) + dAtA[i] = 0x28 i++ - i = encodeVarintStructured(data, i, uint64(m.MutationID)) - data[i] = 0x32 + i = encodeVarintStructured(dAtA, i, uint64(m.MutationID)) + dAtA[i] = 0x32 i++ - i = encodeVarintStructured(data, i, uint64(m.ResumeSpan.Size())) - n5, err := m.ResumeSpan.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(m.ResumeSpan.Size())) + n5, err := m.ResumeSpan.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1508,13 +1508,13 @@ func (m *DescriptorMutation) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *DescriptorMutation_Column) MarshalTo(data []byte) (int, error) { +func (m *DescriptorMutation_Column) MarshalTo(dAtA []byte) (int, error) { i := 0 if m.Column != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStructured(data, i, uint64(m.Column.Size())) - n6, err := m.Column.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(m.Column.Size())) + n6, err := m.Column.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1522,13 +1522,13 @@ func (m *DescriptorMutation_Column) MarshalTo(data []byte) (int, error) { } return i, nil } -func (m *DescriptorMutation_Index) MarshalTo(data []byte) (int, error) { +func (m *DescriptorMutation_Index) MarshalTo(dAtA []byte) (int, error) { i := 0 if m.Index != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintStructured(data, i, uint64(m.Index.Size())) - n7, err := m.Index.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(m.Index.Size())) + n7, err := m.Index.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1536,93 +1536,93 @@ func (m *DescriptorMutation_Index) MarshalTo(data []byte) (int, error) { } return i, nil } -func (m *TableDescriptor) Marshal() (data []byte, err error) { +func (m *TableDescriptor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableDescriptor) MarshalTo(data []byte) (int, error) { +func (m *TableDescriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStructured(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - data[i] = 0x18 + i = encodeVarintStructured(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x18 i++ - i = encodeVarintStructured(data, i, uint64(m.ID)) - data[i] = 0x20 + i = encodeVarintStructured(dAtA, i, uint64(m.ID)) + dAtA[i] = 0x20 i++ - i = encodeVarintStructured(data, i, uint64(m.ParentID)) - data[i] = 0x28 + i = encodeVarintStructured(dAtA, i, uint64(m.ParentID)) + dAtA[i] = 0x28 i++ - i = encodeVarintStructured(data, i, uint64(m.Version)) - data[i] = 0x30 + i = encodeVarintStructured(dAtA, i, uint64(m.Version)) + dAtA[i] = 0x30 i++ if m.UpVersion { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ - data[i] = 0x3a + dAtA[i] = 0x3a i++ - i = encodeVarintStructured(data, i, uint64(m.ModificationTime.Size())) - n8, err := m.ModificationTime.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(m.ModificationTime.Size())) + n8, err := m.ModificationTime.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n8 if len(m.Columns) > 0 { for _, msg := range m.Columns { - data[i] = 0x42 + dAtA[i] = 0x42 i++ - i = encodeVarintStructured(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0x48 + dAtA[i] = 0x48 i++ - i = encodeVarintStructured(data, i, uint64(m.NextColumnID)) - data[i] = 0x52 + i = encodeVarintStructured(dAtA, i, uint64(m.NextColumnID)) + dAtA[i] = 0x52 i++ - i = encodeVarintStructured(data, i, uint64(m.PrimaryIndex.Size())) - n9, err := m.PrimaryIndex.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(m.PrimaryIndex.Size())) + n9, err := m.PrimaryIndex.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n9 if len(m.Indexes) > 0 { for _, msg := range m.Indexes { - data[i] = 0x5a + dAtA[i] = 0x5a i++ - i = encodeVarintStructured(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0x60 + dAtA[i] = 0x60 i++ - i = encodeVarintStructured(data, i, uint64(m.NextIndexID)) + i = encodeVarintStructured(dAtA, i, uint64(m.NextIndexID)) if m.Privileges != nil { - data[i] = 0x6a + dAtA[i] = 0x6a i++ - i = encodeVarintStructured(data, i, uint64(m.Privileges.Size())) - n10, err := m.Privileges.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(m.Privileges.Size())) + n10, err := m.Privileges.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1630,10 +1630,10 @@ func (m *TableDescriptor) MarshalTo(data []byte) (int, error) { } if len(m.Mutations) > 0 { for _, msg := range m.Mutations { - data[i] = 0x72 + dAtA[i] = 0x72 i++ - i = encodeVarintStructured(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1641,38 +1641,38 @@ func (m *TableDescriptor) MarshalTo(data []byte) (int, error) { } } if m.Lease != nil { - data[i] = 0x7a + dAtA[i] = 0x7a i++ - i = encodeVarintStructured(data, i, uint64(m.Lease.Size())) - n11, err := m.Lease.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(m.Lease.Size())) + n11, err := m.Lease.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n11 } - data[i] = 0x80 + dAtA[i] = 0x80 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintStructured(data, i, uint64(m.NextMutationID)) - data[i] = 0x88 + i = encodeVarintStructured(dAtA, i, uint64(m.NextMutationID)) + dAtA[i] = 0x88 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintStructured(data, i, uint64(m.FormatVersion)) - data[i] = 0x98 + i = encodeVarintStructured(dAtA, i, uint64(m.FormatVersion)) + dAtA[i] = 0x98 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintStructured(data, i, uint64(m.State)) + i = encodeVarintStructured(dAtA, i, uint64(m.State)) if len(m.Checks) > 0 { for _, msg := range m.Checks { - data[i] = 0xa2 + dAtA[i] = 0xa2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintStructured(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1681,12 +1681,12 @@ func (m *TableDescriptor) MarshalTo(data []byte) (int, error) { } if len(m.Renames) > 0 { for _, msg := range m.Renames { - data[i] = 0xaa + dAtA[i] = 0xaa i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintStructured(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1695,46 +1695,46 @@ func (m *TableDescriptor) MarshalTo(data []byte) (int, error) { } if len(m.Families) > 0 { for _, msg := range m.Families { - data[i] = 0xb2 + dAtA[i] = 0xb2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintStructured(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0xb8 + dAtA[i] = 0xb8 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintStructured(data, i, uint64(m.NextFamilyID)) - data[i] = 0xc2 + i = encodeVarintStructured(dAtA, i, uint64(m.NextFamilyID)) + dAtA[i] = 0xc2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintStructured(data, i, uint64(len(m.ViewQuery))) - i += copy(data[i:], m.ViewQuery) + i = encodeVarintStructured(dAtA, i, uint64(len(m.ViewQuery))) + i += copy(dAtA[i:], m.ViewQuery) if len(m.DependsOn) > 0 { for _, num := range m.DependsOn { - data[i] = 0xc8 + dAtA[i] = 0xc8 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintStructured(data, i, uint64(num)) + i = encodeVarintStructured(dAtA, i, uint64(num)) } } if len(m.DependedOnBy) > 0 { for _, msg := range m.DependedOnBy { - data[i] = 0xd2 + dAtA[i] = 0xd2 i++ - data[i] = 0x1 + dAtA[i] = 0x1 i++ - i = encodeVarintStructured(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1744,142 +1744,142 @@ func (m *TableDescriptor) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *TableDescriptor_SchemaChangeLease) Marshal() (data []byte, err error) { +func (m *TableDescriptor_SchemaChangeLease) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableDescriptor_SchemaChangeLease) MarshalTo(data []byte) (int, error) { +func (m *TableDescriptor_SchemaChangeLease) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintStructured(data, i, uint64(m.NodeID)) - data[i] = 0x10 + i = encodeVarintStructured(dAtA, i, uint64(m.NodeID)) + dAtA[i] = 0x10 i++ - i = encodeVarintStructured(data, i, uint64(m.ExpirationTime)) + i = encodeVarintStructured(dAtA, i, uint64(m.ExpirationTime)) return i, nil } -func (m *TableDescriptor_CheckConstraint) Marshal() (data []byte, err error) { +func (m *TableDescriptor_CheckConstraint) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableDescriptor_CheckConstraint) MarshalTo(data []byte) (int, error) { +func (m *TableDescriptor_CheckConstraint) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStructured(data, i, uint64(len(m.Expr))) - i += copy(data[i:], m.Expr) - data[i] = 0x12 + i = encodeVarintStructured(dAtA, i, uint64(len(m.Expr))) + i += copy(dAtA[i:], m.Expr) + dAtA[i] = 0x12 i++ - i = encodeVarintStructured(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - data[i] = 0x18 + i = encodeVarintStructured(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x18 i++ - i = encodeVarintStructured(data, i, uint64(m.Validity)) + i = encodeVarintStructured(dAtA, i, uint64(m.Validity)) return i, nil } -func (m *TableDescriptor_RenameInfo) Marshal() (data []byte, err error) { +func (m *TableDescriptor_RenameInfo) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableDescriptor_RenameInfo) MarshalTo(data []byte) (int, error) { +func (m *TableDescriptor_RenameInfo) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintStructured(data, i, uint64(m.OldParentID)) - data[i] = 0x12 + i = encodeVarintStructured(dAtA, i, uint64(m.OldParentID)) + dAtA[i] = 0x12 i++ - i = encodeVarintStructured(data, i, uint64(len(m.OldName))) - i += copy(data[i:], m.OldName) + i = encodeVarintStructured(dAtA, i, uint64(len(m.OldName))) + i += copy(dAtA[i:], m.OldName) return i, nil } -func (m *TableDescriptor_Reference) Marshal() (data []byte, err error) { +func (m *TableDescriptor_Reference) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TableDescriptor_Reference) MarshalTo(data []byte) (int, error) { +func (m *TableDescriptor_Reference) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintStructured(data, i, uint64(m.ID)) - data[i] = 0x10 + i = encodeVarintStructured(dAtA, i, uint64(m.ID)) + dAtA[i] = 0x10 i++ - i = encodeVarintStructured(data, i, uint64(m.IndexID)) + i = encodeVarintStructured(dAtA, i, uint64(m.IndexID)) if len(m.ColumnIDs) > 0 { for _, num := range m.ColumnIDs { - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintStructured(data, i, uint64(num)) + i = encodeVarintStructured(dAtA, i, uint64(num)) } } return i, nil } -func (m *DatabaseDescriptor) Marshal() (data []byte, err error) { +func (m *DatabaseDescriptor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *DatabaseDescriptor) MarshalTo(data []byte) (int, error) { +func (m *DatabaseDescriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStructured(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - data[i] = 0x10 + i = encodeVarintStructured(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x10 i++ - i = encodeVarintStructured(data, i, uint64(m.ID)) + i = encodeVarintStructured(dAtA, i, uint64(m.ID)) if m.Privileges != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintStructured(data, i, uint64(m.Privileges.Size())) - n12, err := m.Privileges.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(m.Privileges.Size())) + n12, err := m.Privileges.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1888,23 +1888,23 @@ func (m *DatabaseDescriptor) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *Descriptor) Marshal() (data []byte, err error) { +func (m *Descriptor) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Descriptor) MarshalTo(data []byte) (int, error) { +func (m *Descriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Union != nil { - nn13, err := m.Union.MarshalTo(data[i:]) + nn13, err := m.Union.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1913,13 +1913,13 @@ func (m *Descriptor) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *Descriptor_Table) MarshalTo(data []byte) (int, error) { +func (m *Descriptor_Table) MarshalTo(dAtA []byte) (int, error) { i := 0 if m.Table != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintStructured(data, i, uint64(m.Table.Size())) - n14, err := m.Table.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(m.Table.Size())) + n14, err := m.Table.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1927,13 +1927,13 @@ func (m *Descriptor_Table) MarshalTo(data []byte) (int, error) { } return i, nil } -func (m *Descriptor_Database) MarshalTo(data []byte) (int, error) { +func (m *Descriptor_Database) MarshalTo(dAtA []byte) (int, error) { i := 0 if m.Database != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintStructured(data, i, uint64(m.Database.Size())) - n15, err := m.Database.MarshalTo(data[i:]) + i = encodeVarintStructured(dAtA, i, uint64(m.Database.Size())) + n15, err := m.Database.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -1941,31 +1941,31 @@ func (m *Descriptor_Database) MarshalTo(data []byte) (int, error) { } return i, nil } -func encodeFixed64Structured(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Structured(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Structured(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Structured(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintStructured(data []byte, offset int, v uint64) int { +func encodeVarintStructured(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *ColumnType) Size() (n int) { @@ -2306,8 +2306,8 @@ func sovStructured(x uint64) (n int) { func sozStructured(x uint64) (n int) { return sovStructured(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *ColumnType) Unmarshal(data []byte) error { - l := len(data) +func (m *ColumnType) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2319,7 +2319,7 @@ func (m *ColumnType) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2347,7 +2347,7 @@ func (m *ColumnType) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Kind |= (ColumnType_Kind(b) & 0x7F) << shift if b < 0x80 { @@ -2366,7 +2366,7 @@ func (m *ColumnType) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Width |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -2385,7 +2385,7 @@ func (m *ColumnType) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Precision |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -2394,7 +2394,7 @@ func (m *ColumnType) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -2413,8 +2413,8 @@ func (m *ColumnType) Unmarshal(data []byte) error { } return nil } -func (m *ForeignKeyReference) Unmarshal(data []byte) error { - l := len(data) +func (m *ForeignKeyReference) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2426,7 +2426,7 @@ func (m *ForeignKeyReference) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2454,7 +2454,7 @@ func (m *ForeignKeyReference) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Table |= (ID(b) & 0x7F) << shift if b < 0x80 { @@ -2473,7 +2473,7 @@ func (m *ForeignKeyReference) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Index |= (IndexID(b) & 0x7F) << shift if b < 0x80 { @@ -2492,7 +2492,7 @@ func (m *ForeignKeyReference) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2507,7 +2507,7 @@ func (m *ForeignKeyReference) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(data[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { @@ -2521,7 +2521,7 @@ func (m *ForeignKeyReference) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Validity |= (ConstraintValidity(b) & 0x7F) << shift if b < 0x80 { @@ -2530,7 +2530,7 @@ func (m *ForeignKeyReference) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -2549,8 +2549,8 @@ func (m *ForeignKeyReference) Unmarshal(data []byte) error { } return nil } -func (m *ColumnDescriptor) Unmarshal(data []byte) error { - l := len(data) +func (m *ColumnDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2562,7 +2562,7 @@ func (m *ColumnDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2590,7 +2590,7 @@ func (m *ColumnDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2605,7 +2605,7 @@ func (m *ColumnDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(data[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -2619,7 +2619,7 @@ func (m *ColumnDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ID |= (ColumnID(b) & 0x7F) << shift if b < 0x80 { @@ -2638,7 +2638,7 @@ func (m *ColumnDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2652,7 +2652,7 @@ func (m *ColumnDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Type.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Type.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2668,7 +2668,7 @@ func (m *ColumnDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2688,7 +2688,7 @@ func (m *ColumnDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2703,7 +2703,7 @@ func (m *ColumnDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - s := string(data[iNdEx:postIndex]) + s := string(dAtA[iNdEx:postIndex]) m.DefaultExpr = &s iNdEx = postIndex case 6: @@ -2718,7 +2718,7 @@ func (m *ColumnDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2728,7 +2728,7 @@ func (m *ColumnDescriptor) Unmarshal(data []byte) error { m.Hidden = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -2747,8 +2747,8 @@ func (m *ColumnDescriptor) Unmarshal(data []byte) error { } return nil } -func (m *ColumnFamilyDescriptor) Unmarshal(data []byte) error { - l := len(data) +func (m *ColumnFamilyDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2760,7 +2760,7 @@ func (m *ColumnFamilyDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2788,7 +2788,7 @@ func (m *ColumnFamilyDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2803,7 +2803,7 @@ func (m *ColumnFamilyDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(data[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -2817,7 +2817,7 @@ func (m *ColumnFamilyDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ID |= (FamilyID(b) & 0x7F) << shift if b < 0x80 { @@ -2836,7 +2836,7 @@ func (m *ColumnFamilyDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2851,7 +2851,7 @@ func (m *ColumnFamilyDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ColumnNames = append(m.ColumnNames, string(data[iNdEx:postIndex])) + m.ColumnNames = append(m.ColumnNames, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 4: if wireType != 0 { @@ -2865,7 +2865,7 @@ func (m *ColumnFamilyDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (ColumnID(b) & 0x7F) << shift if b < 0x80 { @@ -2885,7 +2885,7 @@ func (m *ColumnFamilyDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.DefaultColumnID |= (ColumnID(b) & 0x7F) << shift if b < 0x80 { @@ -2894,7 +2894,7 @@ func (m *ColumnFamilyDescriptor) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -2913,8 +2913,8 @@ func (m *ColumnFamilyDescriptor) Unmarshal(data []byte) error { } return nil } -func (m *InterleaveDescriptor) Unmarshal(data []byte) error { - l := len(data) +func (m *InterleaveDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2926,7 +2926,7 @@ func (m *InterleaveDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2954,7 +2954,7 @@ func (m *InterleaveDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2969,13 +2969,13 @@ func (m *InterleaveDescriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Ancestors = append(m.Ancestors, InterleaveDescriptor_Ancestor{}) - if err := m.Ancestors[len(m.Ancestors)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Ancestors[len(m.Ancestors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -2994,8 +2994,8 @@ func (m *InterleaveDescriptor) Unmarshal(data []byte) error { } return nil } -func (m *InterleaveDescriptor_Ancestor) Unmarshal(data []byte) error { - l := len(data) +func (m *InterleaveDescriptor_Ancestor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3007,7 +3007,7 @@ func (m *InterleaveDescriptor_Ancestor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3035,7 +3035,7 @@ func (m *InterleaveDescriptor_Ancestor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.TableID |= (ID(b) & 0x7F) << shift if b < 0x80 { @@ -3054,7 +3054,7 @@ func (m *InterleaveDescriptor_Ancestor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.IndexID |= (IndexID(b) & 0x7F) << shift if b < 0x80 { @@ -3073,7 +3073,7 @@ func (m *InterleaveDescriptor_Ancestor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.SharedPrefixLen |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -3082,7 +3082,7 @@ func (m *InterleaveDescriptor_Ancestor) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -3101,8 +3101,8 @@ func (m *InterleaveDescriptor_Ancestor) Unmarshal(data []byte) error { } return nil } -func (m *IndexDescriptor) Unmarshal(data []byte) error { - l := len(data) +func (m *IndexDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3114,7 +3114,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3142,7 +3142,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3157,7 +3157,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(data[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -3171,7 +3171,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ID |= (IndexID(b) & 0x7F) << shift if b < 0x80 { @@ -3190,7 +3190,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3210,7 +3210,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3225,7 +3225,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ColumnNames = append(m.ColumnNames, string(data[iNdEx:postIndex])) + m.ColumnNames = append(m.ColumnNames, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 5: if wireType != 2 { @@ -3239,7 +3239,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3254,7 +3254,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.StoreColumnNames = append(m.StoreColumnNames, string(data[iNdEx:postIndex])) + m.StoreColumnNames = append(m.StoreColumnNames, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 6: if wireType != 0 { @@ -3268,7 +3268,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (ColumnID(b) & 0x7F) << shift if b < 0x80 { @@ -3288,7 +3288,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (ColumnID(b) & 0x7F) << shift if b < 0x80 { @@ -3308,7 +3308,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (IndexDescriptor_Direction(b) & 0x7F) << shift if b < 0x80 { @@ -3328,7 +3328,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3342,7 +3342,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ForeignKey.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ForeignKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3358,7 +3358,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3373,7 +3373,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.ReferencedBy = append(m.ReferencedBy, ForeignKeyReference{}) - if err := m.ReferencedBy[len(m.ReferencedBy)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ReferencedBy[len(m.ReferencedBy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3389,7 +3389,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3403,7 +3403,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Interleave.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Interleave.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3419,7 +3419,7 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3434,13 +3434,13 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.InterleavedBy = append(m.InterleavedBy, ForeignKeyReference{}) - if err := m.InterleavedBy[len(m.InterleavedBy)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.InterleavedBy[len(m.InterleavedBy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -3459,8 +3459,8 @@ func (m *IndexDescriptor) Unmarshal(data []byte) error { } return nil } -func (m *DescriptorMutation) Unmarshal(data []byte) error { - l := len(data) +func (m *DescriptorMutation) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3472,7 +3472,7 @@ func (m *DescriptorMutation) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3500,7 +3500,7 @@ func (m *DescriptorMutation) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3515,7 +3515,7 @@ func (m *DescriptorMutation) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } v := &ColumnDescriptor{} - if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Descriptor_ = &DescriptorMutation_Column{v} @@ -3532,7 +3532,7 @@ func (m *DescriptorMutation) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3547,7 +3547,7 @@ func (m *DescriptorMutation) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } v := &IndexDescriptor{} - if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Descriptor_ = &DescriptorMutation_Index{v} @@ -3564,7 +3564,7 @@ func (m *DescriptorMutation) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.State |= (DescriptorMutation_State(b) & 0x7F) << shift if b < 0x80 { @@ -3583,7 +3583,7 @@ func (m *DescriptorMutation) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Direction |= (DescriptorMutation_Direction(b) & 0x7F) << shift if b < 0x80 { @@ -3602,7 +3602,7 @@ func (m *DescriptorMutation) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.MutationID |= (MutationID(b) & 0x7F) << shift if b < 0x80 { @@ -3621,7 +3621,7 @@ func (m *DescriptorMutation) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3635,13 +3635,13 @@ func (m *DescriptorMutation) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ResumeSpan.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ResumeSpan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -3660,8 +3660,8 @@ func (m *DescriptorMutation) Unmarshal(data []byte) error { } return nil } -func (m *TableDescriptor) Unmarshal(data []byte) error { - l := len(data) +func (m *TableDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -3673,7 +3673,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3701,7 +3701,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -3716,7 +3716,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(data[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 0 { @@ -3730,7 +3730,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ID |= (ID(b) & 0x7F) << shift if b < 0x80 { @@ -3749,7 +3749,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ParentID |= (ID(b) & 0x7F) << shift if b < 0x80 { @@ -3768,7 +3768,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Version |= (DescriptorVersion(b) & 0x7F) << shift if b < 0x80 { @@ -3787,7 +3787,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3807,7 +3807,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3821,7 +3821,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ModificationTime.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ModificationTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3837,7 +3837,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3852,7 +3852,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Columns = append(m.Columns, ColumnDescriptor{}) - if err := m.Columns[len(m.Columns)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Columns[len(m.Columns)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3868,7 +3868,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NextColumnID |= (ColumnID(b) & 0x7F) << shift if b < 0x80 { @@ -3887,7 +3887,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3901,7 +3901,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.PrimaryIndex.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.PrimaryIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3917,7 +3917,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3932,7 +3932,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Indexes = append(m.Indexes, IndexDescriptor{}) - if err := m.Indexes[len(m.Indexes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Indexes[len(m.Indexes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3948,7 +3948,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NextIndexID |= (IndexID(b) & 0x7F) << shift if b < 0x80 { @@ -3967,7 +3967,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -3984,7 +3984,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if m.Privileges == nil { m.Privileges = &PrivilegeDescriptor{} } - if err := m.Privileges.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Privileges.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4000,7 +4000,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4015,7 +4015,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Mutations = append(m.Mutations, DescriptorMutation{}) - if err := m.Mutations[len(m.Mutations)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Mutations[len(m.Mutations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4031,7 +4031,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4048,7 +4048,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if m.Lease == nil { m.Lease = &TableDescriptor_SchemaChangeLease{} } - if err := m.Lease.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Lease.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4064,7 +4064,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NextMutationID |= (MutationID(b) & 0x7F) << shift if b < 0x80 { @@ -4083,7 +4083,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.FormatVersion |= (FormatVersion(b) & 0x7F) << shift if b < 0x80 { @@ -4102,7 +4102,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.State |= (TableDescriptor_State(b) & 0x7F) << shift if b < 0x80 { @@ -4121,7 +4121,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4136,7 +4136,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Checks = append(m.Checks, &TableDescriptor_CheckConstraint{}) - if err := m.Checks[len(m.Checks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Checks[len(m.Checks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4152,7 +4152,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4167,7 +4167,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Renames = append(m.Renames, TableDescriptor_RenameInfo{}) - if err := m.Renames[len(m.Renames)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Renames[len(m.Renames)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4183,7 +4183,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4198,7 +4198,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Families = append(m.Families, ColumnFamilyDescriptor{}) - if err := m.Families[len(m.Families)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Families[len(m.Families)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4214,7 +4214,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NextFamilyID |= (FamilyID(b) & 0x7F) << shift if b < 0x80 { @@ -4233,7 +4233,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4248,7 +4248,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ViewQuery = string(data[iNdEx:postIndex]) + m.ViewQuery = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 25: if wireType != 0 { @@ -4262,7 +4262,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (ID(b) & 0x7F) << shift if b < 0x80 { @@ -4282,7 +4282,7 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4297,13 +4297,13 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.DependedOnBy = append(m.DependedOnBy, TableDescriptor_Reference{}) - if err := m.DependedOnBy[len(m.DependedOnBy)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.DependedOnBy[len(m.DependedOnBy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -4322,8 +4322,8 @@ func (m *TableDescriptor) Unmarshal(data []byte) error { } return nil } -func (m *TableDescriptor_SchemaChangeLease) Unmarshal(data []byte) error { - l := len(data) +func (m *TableDescriptor_SchemaChangeLease) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4335,7 +4335,7 @@ func (m *TableDescriptor_SchemaChangeLease) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4363,7 +4363,7 @@ func (m *TableDescriptor_SchemaChangeLease) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NodeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.NodeID(b) & 0x7F) << shift if b < 0x80 { @@ -4382,7 +4382,7 @@ func (m *TableDescriptor_SchemaChangeLease) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ExpirationTime |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -4391,7 +4391,7 @@ func (m *TableDescriptor_SchemaChangeLease) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -4410,8 +4410,8 @@ func (m *TableDescriptor_SchemaChangeLease) Unmarshal(data []byte) error { } return nil } -func (m *TableDescriptor_CheckConstraint) Unmarshal(data []byte) error { - l := len(data) +func (m *TableDescriptor_CheckConstraint) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4423,7 +4423,7 @@ func (m *TableDescriptor_CheckConstraint) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4451,7 +4451,7 @@ func (m *TableDescriptor_CheckConstraint) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4466,7 +4466,7 @@ func (m *TableDescriptor_CheckConstraint) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Expr = string(data[iNdEx:postIndex]) + m.Expr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -4480,7 +4480,7 @@ func (m *TableDescriptor_CheckConstraint) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4495,7 +4495,7 @@ func (m *TableDescriptor_CheckConstraint) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(data[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 0 { @@ -4509,7 +4509,7 @@ func (m *TableDescriptor_CheckConstraint) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Validity |= (ConstraintValidity(b) & 0x7F) << shift if b < 0x80 { @@ -4518,7 +4518,7 @@ func (m *TableDescriptor_CheckConstraint) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -4537,8 +4537,8 @@ func (m *TableDescriptor_CheckConstraint) Unmarshal(data []byte) error { } return nil } -func (m *TableDescriptor_RenameInfo) Unmarshal(data []byte) error { - l := len(data) +func (m *TableDescriptor_RenameInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4550,7 +4550,7 @@ func (m *TableDescriptor_RenameInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4578,7 +4578,7 @@ func (m *TableDescriptor_RenameInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.OldParentID |= (ID(b) & 0x7F) << shift if b < 0x80 { @@ -4597,7 +4597,7 @@ func (m *TableDescriptor_RenameInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4612,11 +4612,11 @@ func (m *TableDescriptor_RenameInfo) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.OldName = string(data[iNdEx:postIndex]) + m.OldName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -4635,8 +4635,8 @@ func (m *TableDescriptor_RenameInfo) Unmarshal(data []byte) error { } return nil } -func (m *TableDescriptor_Reference) Unmarshal(data []byte) error { - l := len(data) +func (m *TableDescriptor_Reference) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4648,7 +4648,7 @@ func (m *TableDescriptor_Reference) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4676,7 +4676,7 @@ func (m *TableDescriptor_Reference) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ID |= (ID(b) & 0x7F) << shift if b < 0x80 { @@ -4695,7 +4695,7 @@ func (m *TableDescriptor_Reference) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.IndexID |= (IndexID(b) & 0x7F) << shift if b < 0x80 { @@ -4714,7 +4714,7 @@ func (m *TableDescriptor_Reference) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (ColumnID(b) & 0x7F) << shift if b < 0x80 { @@ -4724,7 +4724,7 @@ func (m *TableDescriptor_Reference) Unmarshal(data []byte) error { m.ColumnIDs = append(m.ColumnIDs, v) default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -4743,8 +4743,8 @@ func (m *TableDescriptor_Reference) Unmarshal(data []byte) error { } return nil } -func (m *DatabaseDescriptor) Unmarshal(data []byte) error { - l := len(data) +func (m *DatabaseDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4756,7 +4756,7 @@ func (m *DatabaseDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4784,7 +4784,7 @@ func (m *DatabaseDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4799,7 +4799,7 @@ func (m *DatabaseDescriptor) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(data[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -4813,7 +4813,7 @@ func (m *DatabaseDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ID |= (ID(b) & 0x7F) << shift if b < 0x80 { @@ -4832,7 +4832,7 @@ func (m *DatabaseDescriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4849,13 +4849,13 @@ func (m *DatabaseDescriptor) Unmarshal(data []byte) error { if m.Privileges == nil { m.Privileges = &PrivilegeDescriptor{} } - if err := m.Privileges.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Privileges.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -4874,8 +4874,8 @@ func (m *DatabaseDescriptor) Unmarshal(data []byte) error { } return nil } -func (m *Descriptor) Unmarshal(data []byte) error { - l := len(data) +func (m *Descriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -4887,7 +4887,7 @@ func (m *Descriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -4915,7 +4915,7 @@ func (m *Descriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4930,7 +4930,7 @@ func (m *Descriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } v := &TableDescriptor{} - if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Union = &Descriptor_Table{v} @@ -4947,7 +4947,7 @@ func (m *Descriptor) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -4962,14 +4962,14 @@ func (m *Descriptor) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } v := &DatabaseDescriptor{} - if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Union = &Descriptor_Database{v} iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipStructured(data[iNdEx:]) + skippy, err := skipStructured(dAtA[iNdEx:]) if err != nil { return err } @@ -4988,8 +4988,8 @@ func (m *Descriptor) Unmarshal(data []byte) error { } return nil } -func skipStructured(data []byte) (n int, err error) { - l := len(data) +func skipStructured(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -5000,7 +5000,7 @@ func skipStructured(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5018,7 +5018,7 @@ func skipStructured(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -5035,7 +5035,7 @@ func skipStructured(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -5058,7 +5058,7 @@ func skipStructured(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -5069,7 +5069,7 @@ func skipStructured(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipStructured(data[start:]) + next, err := skipStructured(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/storage/api.pb.go b/pkg/storage/api.pb.go index 81ab439795ee..01e83774918a 100644 --- a/pkg/storage/api.pb.go +++ b/pkg/storage/api.pb.go @@ -260,91 +260,91 @@ var _Consistency_serviceDesc = grpc.ServiceDesc{ Metadata: fileDescriptorApi, } -func (m *StoreRequestHeader) Marshal() (data []byte, err error) { +func (m *StoreRequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *StoreRequestHeader) MarshalTo(data []byte) (int, error) { +func (m *StoreRequestHeader) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.NodeID != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintApi(data, i, uint64(m.NodeID)) + i = encodeVarintApi(dAtA, i, uint64(m.NodeID)) } if m.StoreID != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintApi(data, i, uint64(m.StoreID)) + i = encodeVarintApi(dAtA, i, uint64(m.StoreID)) } return i, nil } -func (m *PollFrozenRequest) Marshal() (data []byte, err error) { +func (m *PollFrozenRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *PollFrozenRequest) MarshalTo(data []byte) (int, error) { +func (m *PollFrozenRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.StoreRequestHeader.Size())) - n1, err := m.StoreRequestHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.StoreRequestHeader.Size())) + n1, err := m.StoreRequestHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 if m.CollectFrozen { - data[i] = 0x10 + dAtA[i] = 0x10 i++ if m.CollectFrozen { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ } return i, nil } -func (m *PollFrozenResponse) Marshal() (data []byte, err error) { +func (m *PollFrozenResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *PollFrozenResponse) MarshalTo(data []byte) (int, error) { +func (m *PollFrozenResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Results) > 0 { for _, msg := range m.Results { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -354,77 +354,77 @@ func (m *PollFrozenResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *CollectChecksumRequest) Marshal() (data []byte, err error) { +func (m *CollectChecksumRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *CollectChecksumRequest) MarshalTo(data []byte) (int, error) { +func (m *CollectChecksumRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(m.StoreRequestHeader.Size())) - n2, err := m.StoreRequestHeader.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.StoreRequestHeader.Size())) + n2, err := m.StoreRequestHeader.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 if m.RangeID != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintApi(data, i, uint64(m.RangeID)) + i = encodeVarintApi(dAtA, i, uint64(m.RangeID)) } - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintApi(data, i, uint64(m.ChecksumID.Size())) - n3, err := m.ChecksumID.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.ChecksumID.Size())) + n3, err := m.ChecksumID.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 if len(m.Checksum) > 0 { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintApi(data, i, uint64(len(m.Checksum))) - i += copy(data[i:], m.Checksum) + i = encodeVarintApi(dAtA, i, uint64(len(m.Checksum))) + i += copy(dAtA[i:], m.Checksum) } return i, nil } -func (m *CollectChecksumResponse) Marshal() (data []byte, err error) { +func (m *CollectChecksumResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *CollectChecksumResponse) MarshalTo(data []byte) (int, error) { +func (m *CollectChecksumResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Checksum) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintApi(data, i, uint64(len(m.Checksum))) - i += copy(data[i:], m.Checksum) + i = encodeVarintApi(dAtA, i, uint64(len(m.Checksum))) + i += copy(dAtA[i:], m.Checksum) } if m.Snapshot != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintApi(data, i, uint64(m.Snapshot.Size())) - n4, err := m.Snapshot.MarshalTo(data[i:]) + i = encodeVarintApi(dAtA, i, uint64(m.Snapshot.Size())) + n4, err := m.Snapshot.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -433,31 +433,31 @@ func (m *CollectChecksumResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64Api(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Api(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Api(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Api(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintApi(data []byte, offset int, v uint64) int { +func encodeVarintApi(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *StoreRequestHeader) Size() (n int) { @@ -539,8 +539,8 @@ func sovApi(x uint64) (n int) { func sozApi(x uint64) (n int) { return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *StoreRequestHeader) Unmarshal(data []byte) error { - l := len(data) +func (m *StoreRequestHeader) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -552,7 +552,7 @@ func (m *StoreRequestHeader) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -580,7 +580,7 @@ func (m *StoreRequestHeader) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NodeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.NodeID(b) & 0x7F) << shift if b < 0x80 { @@ -599,7 +599,7 @@ func (m *StoreRequestHeader) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.StoreID |= (github_com_cockroachdb_cockroach_pkg_roachpb.StoreID(b) & 0x7F) << shift if b < 0x80 { @@ -608,7 +608,7 @@ func (m *StoreRequestHeader) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -627,8 +627,8 @@ func (m *StoreRequestHeader) Unmarshal(data []byte) error { } return nil } -func (m *PollFrozenRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *PollFrozenRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -640,7 +640,7 @@ func (m *PollFrozenRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -668,7 +668,7 @@ func (m *PollFrozenRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -682,7 +682,7 @@ func (m *PollFrozenRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.StoreRequestHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.StoreRequestHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -698,7 +698,7 @@ func (m *PollFrozenRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -708,7 +708,7 @@ func (m *PollFrozenRequest) Unmarshal(data []byte) error { m.CollectFrozen = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -727,8 +727,8 @@ func (m *PollFrozenRequest) Unmarshal(data []byte) error { } return nil } -func (m *PollFrozenResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *PollFrozenResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -740,7 +740,7 @@ func (m *PollFrozenResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -768,7 +768,7 @@ func (m *PollFrozenResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -783,13 +783,13 @@ func (m *PollFrozenResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Results = append(m.Results, cockroach_roachpb.ReplicaDescriptor{}) - if err := m.Results[len(m.Results)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Results[len(m.Results)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -808,8 +808,8 @@ func (m *PollFrozenResponse) Unmarshal(data []byte) error { } return nil } -func (m *CollectChecksumRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *CollectChecksumRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -821,7 +821,7 @@ func (m *CollectChecksumRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -849,7 +849,7 @@ func (m *CollectChecksumRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -863,7 +863,7 @@ func (m *CollectChecksumRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.StoreRequestHeader.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.StoreRequestHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -879,7 +879,7 @@ func (m *CollectChecksumRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift if b < 0x80 { @@ -898,7 +898,7 @@ func (m *CollectChecksumRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -912,7 +912,7 @@ func (m *CollectChecksumRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ChecksumID.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ChecksumID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -928,7 +928,7 @@ func (m *CollectChecksumRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -942,14 +942,14 @@ func (m *CollectChecksumRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Checksum = append(m.Checksum[:0], data[iNdEx:postIndex]...) + m.Checksum = append(m.Checksum[:0], dAtA[iNdEx:postIndex]...) if m.Checksum == nil { m.Checksum = []byte{} } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -968,8 +968,8 @@ func (m *CollectChecksumRequest) Unmarshal(data []byte) error { } return nil } -func (m *CollectChecksumResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *CollectChecksumResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -981,7 +981,7 @@ func (m *CollectChecksumResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1009,7 +1009,7 @@ func (m *CollectChecksumResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1023,7 +1023,7 @@ func (m *CollectChecksumResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Checksum = append(m.Checksum[:0], data[iNdEx:postIndex]...) + m.Checksum = append(m.Checksum[:0], dAtA[iNdEx:postIndex]...) if m.Checksum == nil { m.Checksum = []byte{} } @@ -1040,7 +1040,7 @@ func (m *CollectChecksumResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1057,13 +1057,13 @@ func (m *CollectChecksumResponse) Unmarshal(data []byte) error { if m.Snapshot == nil { m.Snapshot = &cockroach_roachpb1.RaftSnapshotData{} } - if err := m.Snapshot.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Snapshot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(data[iNdEx:]) + skippy, err := skipApi(dAtA[iNdEx:]) if err != nil { return err } @@ -1082,8 +1082,8 @@ func (m *CollectChecksumResponse) Unmarshal(data []byte) error { } return nil } -func skipApi(data []byte) (n int, err error) { - l := len(data) +func skipApi(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -1094,7 +1094,7 @@ func skipApi(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1112,7 +1112,7 @@ func skipApi(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -1129,7 +1129,7 @@ func skipApi(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1152,7 +1152,7 @@ func skipApi(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1163,7 +1163,7 @@ func skipApi(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipApi(data[start:]) + next, err := skipApi(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/storage/engine/enginepb/mvcc.pb.go b/pkg/storage/engine/enginepb/mvcc.pb.go index d21580eb5554..ac6343afe68d 100644 --- a/pkg/storage/engine/enginepb/mvcc.pb.go +++ b/pkg/storage/engine/enginepb/mvcc.pb.go @@ -224,121 +224,121 @@ func init() { proto.RegisterType((*MVCCStats)(nil), "cockroach.storage.engine.enginepb.MVCCStats") proto.RegisterEnum("cockroach.storage.engine.enginepb.IsolationType", IsolationType_name, IsolationType_value) } -func (m *TxnMeta) Marshal() (data []byte, err error) { +func (m *TxnMeta) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TxnMeta) MarshalTo(data []byte) (int, error) { +func (m *TxnMeta) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.ID != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintMvcc(data, i, uint64(m.ID.Size())) - n1, err := m.ID.MarshalTo(data[i:]) + i = encodeVarintMvcc(dAtA, i, uint64(m.ID.Size())) + n1, err := m.ID.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 } - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintMvcc(data, i, uint64(m.Isolation)) + i = encodeVarintMvcc(dAtA, i, uint64(m.Isolation)) if m.Key != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintMvcc(data, i, uint64(len(m.Key))) - i += copy(data[i:], m.Key) + i = encodeVarintMvcc(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintMvcc(data, i, uint64(m.Epoch)) - data[i] = 0x2a + i = encodeVarintMvcc(dAtA, i, uint64(m.Epoch)) + dAtA[i] = 0x2a i++ - i = encodeVarintMvcc(data, i, uint64(m.Timestamp.Size())) - n2, err := m.Timestamp.MarshalTo(data[i:]) + i = encodeVarintMvcc(dAtA, i, uint64(m.Timestamp.Size())) + n2, err := m.Timestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 - data[i] = 0x30 + dAtA[i] = 0x30 i++ - i = encodeVarintMvcc(data, i, uint64(m.Priority)) - data[i] = 0x38 + i = encodeVarintMvcc(dAtA, i, uint64(m.Priority)) + dAtA[i] = 0x38 i++ - i = encodeVarintMvcc(data, i, uint64(m.Sequence)) - data[i] = 0x40 + i = encodeVarintMvcc(dAtA, i, uint64(m.Sequence)) + dAtA[i] = 0x40 i++ - i = encodeVarintMvcc(data, i, uint64(m.BatchIndex)) + i = encodeVarintMvcc(dAtA, i, uint64(m.BatchIndex)) return i, nil } -func (m *MVCCMetadata) Marshal() (data []byte, err error) { +func (m *MVCCMetadata) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *MVCCMetadata) MarshalTo(data []byte) (int, error) { +func (m *MVCCMetadata) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Txn != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintMvcc(data, i, uint64(m.Txn.Size())) - n3, err := m.Txn.MarshalTo(data[i:]) + i = encodeVarintMvcc(dAtA, i, uint64(m.Txn.Size())) + n3, err := m.Txn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 } - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintMvcc(data, i, uint64(m.Timestamp.Size())) - n4, err := m.Timestamp.MarshalTo(data[i:]) + i = encodeVarintMvcc(dAtA, i, uint64(m.Timestamp.Size())) + n4, err := m.Timestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n4 - data[i] = 0x18 + dAtA[i] = 0x18 i++ if m.Deleted { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintMvcc(data, i, uint64(m.KeyBytes)) - data[i] = 0x28 + i = encodeVarintMvcc(dAtA, i, uint64(m.KeyBytes)) + dAtA[i] = 0x28 i++ - i = encodeVarintMvcc(data, i, uint64(m.ValBytes)) + i = encodeVarintMvcc(dAtA, i, uint64(m.ValBytes)) if m.RawBytes != nil { - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintMvcc(data, i, uint64(len(m.RawBytes))) - i += copy(data[i:], m.RawBytes) + i = encodeVarintMvcc(dAtA, i, uint64(len(m.RawBytes))) + i += copy(dAtA[i:], m.RawBytes) } if m.MergeTimestamp != nil { - data[i] = 0x3a + dAtA[i] = 0x3a i++ - i = encodeVarintMvcc(data, i, uint64(m.MergeTimestamp.Size())) - n5, err := m.MergeTimestamp.MarshalTo(data[i:]) + i = encodeVarintMvcc(dAtA, i, uint64(m.MergeTimestamp.Size())) + n5, err := m.MergeTimestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -347,96 +347,96 @@ func (m *MVCCMetadata) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *MVCCStats) Marshal() (data []byte, err error) { +func (m *MVCCStats) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *MVCCStats) MarshalTo(data []byte) (int, error) { +func (m *MVCCStats) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x9 + dAtA[i] = 0x9 i++ - i = encodeFixed64Mvcc(data, i, uint64(m.LastUpdateNanos)) - data[i] = 0x11 + i = encodeFixed64Mvcc(dAtA, i, uint64(m.LastUpdateNanos)) + dAtA[i] = 0x11 i++ - i = encodeFixed64Mvcc(data, i, uint64(m.IntentAge)) - data[i] = 0x19 + i = encodeFixed64Mvcc(dAtA, i, uint64(m.IntentAge)) + dAtA[i] = 0x19 i++ - i = encodeFixed64Mvcc(data, i, uint64(m.GCBytesAge)) - data[i] = 0x21 + i = encodeFixed64Mvcc(dAtA, i, uint64(m.GCBytesAge)) + dAtA[i] = 0x21 i++ - i = encodeFixed64Mvcc(data, i, uint64(m.LiveBytes)) - data[i] = 0x29 + i = encodeFixed64Mvcc(dAtA, i, uint64(m.LiveBytes)) + dAtA[i] = 0x29 i++ - i = encodeFixed64Mvcc(data, i, uint64(m.LiveCount)) - data[i] = 0x31 + i = encodeFixed64Mvcc(dAtA, i, uint64(m.LiveCount)) + dAtA[i] = 0x31 i++ - i = encodeFixed64Mvcc(data, i, uint64(m.KeyBytes)) - data[i] = 0x39 + i = encodeFixed64Mvcc(dAtA, i, uint64(m.KeyBytes)) + dAtA[i] = 0x39 i++ - i = encodeFixed64Mvcc(data, i, uint64(m.KeyCount)) - data[i] = 0x41 + i = encodeFixed64Mvcc(dAtA, i, uint64(m.KeyCount)) + dAtA[i] = 0x41 i++ - i = encodeFixed64Mvcc(data, i, uint64(m.ValBytes)) - data[i] = 0x49 + i = encodeFixed64Mvcc(dAtA, i, uint64(m.ValBytes)) + dAtA[i] = 0x49 i++ - i = encodeFixed64Mvcc(data, i, uint64(m.ValCount)) - data[i] = 0x51 + i = encodeFixed64Mvcc(dAtA, i, uint64(m.ValCount)) + dAtA[i] = 0x51 i++ - i = encodeFixed64Mvcc(data, i, uint64(m.IntentBytes)) - data[i] = 0x59 + i = encodeFixed64Mvcc(dAtA, i, uint64(m.IntentBytes)) + dAtA[i] = 0x59 i++ - i = encodeFixed64Mvcc(data, i, uint64(m.IntentCount)) - data[i] = 0x61 + i = encodeFixed64Mvcc(dAtA, i, uint64(m.IntentCount)) + dAtA[i] = 0x61 i++ - i = encodeFixed64Mvcc(data, i, uint64(m.SysBytes)) - data[i] = 0x69 + i = encodeFixed64Mvcc(dAtA, i, uint64(m.SysBytes)) + dAtA[i] = 0x69 i++ - i = encodeFixed64Mvcc(data, i, uint64(m.SysCount)) - data[i] = 0x70 + i = encodeFixed64Mvcc(dAtA, i, uint64(m.SysCount)) + dAtA[i] = 0x70 i++ if m.ContainsEstimates { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func encodeFixed64Mvcc(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Mvcc(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Mvcc(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Mvcc(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintMvcc(data []byte, offset int, v uint64) int { +func encodeVarintMvcc(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func NewPopulatedTxnMeta(r randyMvcc, easy bool) *TxnMeta { @@ -589,7 +589,7 @@ func randStringMvcc(r randyMvcc) string { } return string(tmps) } -func randUnrecognizedMvcc(r randyMvcc, maxFieldNumber int) (data []byte) { +func randUnrecognizedMvcc(r randyMvcc, maxFieldNumber int) (dAtA []byte) { l := r.Intn(5) for i := 0; i < l; i++ { wire := r.Intn(4) @@ -597,43 +597,43 @@ func randUnrecognizedMvcc(r randyMvcc, maxFieldNumber int) (data []byte) { wire = 5 } fieldNumber := maxFieldNumber + r.Intn(100) - data = randFieldMvcc(data, r, fieldNumber, wire) + dAtA = randFieldMvcc(dAtA, r, fieldNumber, wire) } - return data + return dAtA } -func randFieldMvcc(data []byte, r randyMvcc, fieldNumber int, wire int) []byte { +func randFieldMvcc(dAtA []byte, r randyMvcc, fieldNumber int, wire int) []byte { key := uint32(fieldNumber)<<3 | uint32(wire) switch wire { case 0: - data = encodeVarintPopulateMvcc(data, uint64(key)) + dAtA = encodeVarintPopulateMvcc(dAtA, uint64(key)) v6 := r.Int63() if r.Intn(2) == 0 { v6 *= -1 } - data = encodeVarintPopulateMvcc(data, uint64(v6)) + dAtA = encodeVarintPopulateMvcc(dAtA, uint64(v6)) case 1: - data = encodeVarintPopulateMvcc(data, uint64(key)) - data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + dAtA = encodeVarintPopulateMvcc(dAtA, uint64(key)) + dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) case 2: - data = encodeVarintPopulateMvcc(data, uint64(key)) + dAtA = encodeVarintPopulateMvcc(dAtA, uint64(key)) ll := r.Intn(100) - data = encodeVarintPopulateMvcc(data, uint64(ll)) + dAtA = encodeVarintPopulateMvcc(dAtA, uint64(ll)) for j := 0; j < ll; j++ { - data = append(data, byte(r.Intn(256))) + dAtA = append(dAtA, byte(r.Intn(256))) } default: - data = encodeVarintPopulateMvcc(data, uint64(key)) - data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + dAtA = encodeVarintPopulateMvcc(dAtA, uint64(key)) + dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) } - return data + return dAtA } -func encodeVarintPopulateMvcc(data []byte, v uint64) []byte { +func encodeVarintPopulateMvcc(dAtA []byte, v uint64) []byte { for v >= 1<<7 { - data = append(data, uint8(uint64(v)&0x7f|0x80)) + dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80)) v >>= 7 } - data = append(data, uint8(v)) - return data + dAtA = append(dAtA, uint8(v)) + return dAtA } func (m *TxnMeta) Size() (n int) { var l int @@ -712,8 +712,8 @@ func sovMvcc(x uint64) (n int) { func sozMvcc(x uint64) (n int) { return sovMvcc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *TxnMeta) Unmarshal(data []byte) error { - l := len(data) +func (m *TxnMeta) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -725,7 +725,7 @@ func (m *TxnMeta) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -753,7 +753,7 @@ func (m *TxnMeta) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -769,7 +769,7 @@ func (m *TxnMeta) Unmarshal(data []byte) error { } var v github_com_cockroachdb_cockroach_pkg_util_uuid.UUID m.ID = &v - if err := m.ID.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -785,7 +785,7 @@ func (m *TxnMeta) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Isolation |= (IsolationType(b) & 0x7F) << shift if b < 0x80 { @@ -804,7 +804,7 @@ func (m *TxnMeta) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -818,7 +818,7 @@ func (m *TxnMeta) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Key = append(m.Key[:0], data[iNdEx:postIndex]...) + m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) if m.Key == nil { m.Key = []byte{} } @@ -835,7 +835,7 @@ func (m *TxnMeta) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Epoch |= (uint32(b) & 0x7F) << shift if b < 0x80 { @@ -854,7 +854,7 @@ func (m *TxnMeta) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -868,7 +868,7 @@ func (m *TxnMeta) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Timestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -884,7 +884,7 @@ func (m *TxnMeta) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Priority |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -903,7 +903,7 @@ func (m *TxnMeta) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Sequence |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -922,7 +922,7 @@ func (m *TxnMeta) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.BatchIndex |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -931,7 +931,7 @@ func (m *TxnMeta) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipMvcc(data[iNdEx:]) + skippy, err := skipMvcc(dAtA[iNdEx:]) if err != nil { return err } @@ -950,8 +950,8 @@ func (m *TxnMeta) Unmarshal(data []byte) error { } return nil } -func (m *MVCCMetadata) Unmarshal(data []byte) error { - l := len(data) +func (m *MVCCMetadata) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -963,7 +963,7 @@ func (m *MVCCMetadata) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -991,7 +991,7 @@ func (m *MVCCMetadata) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1008,7 +1008,7 @@ func (m *MVCCMetadata) Unmarshal(data []byte) error { if m.Txn == nil { m.Txn = &TxnMeta{} } - if err := m.Txn.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Txn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1024,7 +1024,7 @@ func (m *MVCCMetadata) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1038,7 +1038,7 @@ func (m *MVCCMetadata) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Timestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1054,7 +1054,7 @@ func (m *MVCCMetadata) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1074,7 +1074,7 @@ func (m *MVCCMetadata) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.KeyBytes |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -1093,7 +1093,7 @@ func (m *MVCCMetadata) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ValBytes |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -1112,7 +1112,7 @@ func (m *MVCCMetadata) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1126,7 +1126,7 @@ func (m *MVCCMetadata) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RawBytes = append(m.RawBytes[:0], data[iNdEx:postIndex]...) + m.RawBytes = append(m.RawBytes[:0], dAtA[iNdEx:postIndex]...) if m.RawBytes == nil { m.RawBytes = []byte{} } @@ -1143,7 +1143,7 @@ func (m *MVCCMetadata) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1160,13 +1160,13 @@ func (m *MVCCMetadata) Unmarshal(data []byte) error { if m.MergeTimestamp == nil { m.MergeTimestamp = &cockroach_util_hlc.Timestamp{} } - if err := m.MergeTimestamp.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.MergeTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipMvcc(data[iNdEx:]) + skippy, err := skipMvcc(dAtA[iNdEx:]) if err != nil { return err } @@ -1185,8 +1185,8 @@ func (m *MVCCMetadata) Unmarshal(data []byte) error { } return nil } -func (m *MVCCStats) Unmarshal(data []byte) error { - l := len(data) +func (m *MVCCStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1198,7 +1198,7 @@ func (m *MVCCStats) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1223,14 +1223,14 @@ func (m *MVCCStats) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - m.LastUpdateNanos = int64(data[iNdEx-8]) - m.LastUpdateNanos |= int64(data[iNdEx-7]) << 8 - m.LastUpdateNanos |= int64(data[iNdEx-6]) << 16 - m.LastUpdateNanos |= int64(data[iNdEx-5]) << 24 - m.LastUpdateNanos |= int64(data[iNdEx-4]) << 32 - m.LastUpdateNanos |= int64(data[iNdEx-3]) << 40 - m.LastUpdateNanos |= int64(data[iNdEx-2]) << 48 - m.LastUpdateNanos |= int64(data[iNdEx-1]) << 56 + m.LastUpdateNanos = int64(dAtA[iNdEx-8]) + m.LastUpdateNanos |= int64(dAtA[iNdEx-7]) << 8 + m.LastUpdateNanos |= int64(dAtA[iNdEx-6]) << 16 + m.LastUpdateNanos |= int64(dAtA[iNdEx-5]) << 24 + m.LastUpdateNanos |= int64(dAtA[iNdEx-4]) << 32 + m.LastUpdateNanos |= int64(dAtA[iNdEx-3]) << 40 + m.LastUpdateNanos |= int64(dAtA[iNdEx-2]) << 48 + m.LastUpdateNanos |= int64(dAtA[iNdEx-1]) << 56 case 2: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field IntentAge", wireType) @@ -1240,14 +1240,14 @@ func (m *MVCCStats) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - m.IntentAge = int64(data[iNdEx-8]) - m.IntentAge |= int64(data[iNdEx-7]) << 8 - m.IntentAge |= int64(data[iNdEx-6]) << 16 - m.IntentAge |= int64(data[iNdEx-5]) << 24 - m.IntentAge |= int64(data[iNdEx-4]) << 32 - m.IntentAge |= int64(data[iNdEx-3]) << 40 - m.IntentAge |= int64(data[iNdEx-2]) << 48 - m.IntentAge |= int64(data[iNdEx-1]) << 56 + m.IntentAge = int64(dAtA[iNdEx-8]) + m.IntentAge |= int64(dAtA[iNdEx-7]) << 8 + m.IntentAge |= int64(dAtA[iNdEx-6]) << 16 + m.IntentAge |= int64(dAtA[iNdEx-5]) << 24 + m.IntentAge |= int64(dAtA[iNdEx-4]) << 32 + m.IntentAge |= int64(dAtA[iNdEx-3]) << 40 + m.IntentAge |= int64(dAtA[iNdEx-2]) << 48 + m.IntentAge |= int64(dAtA[iNdEx-1]) << 56 case 3: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field GCBytesAge", wireType) @@ -1257,14 +1257,14 @@ func (m *MVCCStats) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - m.GCBytesAge = int64(data[iNdEx-8]) - m.GCBytesAge |= int64(data[iNdEx-7]) << 8 - m.GCBytesAge |= int64(data[iNdEx-6]) << 16 - m.GCBytesAge |= int64(data[iNdEx-5]) << 24 - m.GCBytesAge |= int64(data[iNdEx-4]) << 32 - m.GCBytesAge |= int64(data[iNdEx-3]) << 40 - m.GCBytesAge |= int64(data[iNdEx-2]) << 48 - m.GCBytesAge |= int64(data[iNdEx-1]) << 56 + m.GCBytesAge = int64(dAtA[iNdEx-8]) + m.GCBytesAge |= int64(dAtA[iNdEx-7]) << 8 + m.GCBytesAge |= int64(dAtA[iNdEx-6]) << 16 + m.GCBytesAge |= int64(dAtA[iNdEx-5]) << 24 + m.GCBytesAge |= int64(dAtA[iNdEx-4]) << 32 + m.GCBytesAge |= int64(dAtA[iNdEx-3]) << 40 + m.GCBytesAge |= int64(dAtA[iNdEx-2]) << 48 + m.GCBytesAge |= int64(dAtA[iNdEx-1]) << 56 case 4: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field LiveBytes", wireType) @@ -1274,14 +1274,14 @@ func (m *MVCCStats) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - m.LiveBytes = int64(data[iNdEx-8]) - m.LiveBytes |= int64(data[iNdEx-7]) << 8 - m.LiveBytes |= int64(data[iNdEx-6]) << 16 - m.LiveBytes |= int64(data[iNdEx-5]) << 24 - m.LiveBytes |= int64(data[iNdEx-4]) << 32 - m.LiveBytes |= int64(data[iNdEx-3]) << 40 - m.LiveBytes |= int64(data[iNdEx-2]) << 48 - m.LiveBytes |= int64(data[iNdEx-1]) << 56 + m.LiveBytes = int64(dAtA[iNdEx-8]) + m.LiveBytes |= int64(dAtA[iNdEx-7]) << 8 + m.LiveBytes |= int64(dAtA[iNdEx-6]) << 16 + m.LiveBytes |= int64(dAtA[iNdEx-5]) << 24 + m.LiveBytes |= int64(dAtA[iNdEx-4]) << 32 + m.LiveBytes |= int64(dAtA[iNdEx-3]) << 40 + m.LiveBytes |= int64(dAtA[iNdEx-2]) << 48 + m.LiveBytes |= int64(dAtA[iNdEx-1]) << 56 case 5: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field LiveCount", wireType) @@ -1291,14 +1291,14 @@ func (m *MVCCStats) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - m.LiveCount = int64(data[iNdEx-8]) - m.LiveCount |= int64(data[iNdEx-7]) << 8 - m.LiveCount |= int64(data[iNdEx-6]) << 16 - m.LiveCount |= int64(data[iNdEx-5]) << 24 - m.LiveCount |= int64(data[iNdEx-4]) << 32 - m.LiveCount |= int64(data[iNdEx-3]) << 40 - m.LiveCount |= int64(data[iNdEx-2]) << 48 - m.LiveCount |= int64(data[iNdEx-1]) << 56 + m.LiveCount = int64(dAtA[iNdEx-8]) + m.LiveCount |= int64(dAtA[iNdEx-7]) << 8 + m.LiveCount |= int64(dAtA[iNdEx-6]) << 16 + m.LiveCount |= int64(dAtA[iNdEx-5]) << 24 + m.LiveCount |= int64(dAtA[iNdEx-4]) << 32 + m.LiveCount |= int64(dAtA[iNdEx-3]) << 40 + m.LiveCount |= int64(dAtA[iNdEx-2]) << 48 + m.LiveCount |= int64(dAtA[iNdEx-1]) << 56 case 6: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field KeyBytes", wireType) @@ -1308,14 +1308,14 @@ func (m *MVCCStats) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - m.KeyBytes = int64(data[iNdEx-8]) - m.KeyBytes |= int64(data[iNdEx-7]) << 8 - m.KeyBytes |= int64(data[iNdEx-6]) << 16 - m.KeyBytes |= int64(data[iNdEx-5]) << 24 - m.KeyBytes |= int64(data[iNdEx-4]) << 32 - m.KeyBytes |= int64(data[iNdEx-3]) << 40 - m.KeyBytes |= int64(data[iNdEx-2]) << 48 - m.KeyBytes |= int64(data[iNdEx-1]) << 56 + m.KeyBytes = int64(dAtA[iNdEx-8]) + m.KeyBytes |= int64(dAtA[iNdEx-7]) << 8 + m.KeyBytes |= int64(dAtA[iNdEx-6]) << 16 + m.KeyBytes |= int64(dAtA[iNdEx-5]) << 24 + m.KeyBytes |= int64(dAtA[iNdEx-4]) << 32 + m.KeyBytes |= int64(dAtA[iNdEx-3]) << 40 + m.KeyBytes |= int64(dAtA[iNdEx-2]) << 48 + m.KeyBytes |= int64(dAtA[iNdEx-1]) << 56 case 7: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field KeyCount", wireType) @@ -1325,14 +1325,14 @@ func (m *MVCCStats) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - m.KeyCount = int64(data[iNdEx-8]) - m.KeyCount |= int64(data[iNdEx-7]) << 8 - m.KeyCount |= int64(data[iNdEx-6]) << 16 - m.KeyCount |= int64(data[iNdEx-5]) << 24 - m.KeyCount |= int64(data[iNdEx-4]) << 32 - m.KeyCount |= int64(data[iNdEx-3]) << 40 - m.KeyCount |= int64(data[iNdEx-2]) << 48 - m.KeyCount |= int64(data[iNdEx-1]) << 56 + m.KeyCount = int64(dAtA[iNdEx-8]) + m.KeyCount |= int64(dAtA[iNdEx-7]) << 8 + m.KeyCount |= int64(dAtA[iNdEx-6]) << 16 + m.KeyCount |= int64(dAtA[iNdEx-5]) << 24 + m.KeyCount |= int64(dAtA[iNdEx-4]) << 32 + m.KeyCount |= int64(dAtA[iNdEx-3]) << 40 + m.KeyCount |= int64(dAtA[iNdEx-2]) << 48 + m.KeyCount |= int64(dAtA[iNdEx-1]) << 56 case 8: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field ValBytes", wireType) @@ -1342,14 +1342,14 @@ func (m *MVCCStats) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - m.ValBytes = int64(data[iNdEx-8]) - m.ValBytes |= int64(data[iNdEx-7]) << 8 - m.ValBytes |= int64(data[iNdEx-6]) << 16 - m.ValBytes |= int64(data[iNdEx-5]) << 24 - m.ValBytes |= int64(data[iNdEx-4]) << 32 - m.ValBytes |= int64(data[iNdEx-3]) << 40 - m.ValBytes |= int64(data[iNdEx-2]) << 48 - m.ValBytes |= int64(data[iNdEx-1]) << 56 + m.ValBytes = int64(dAtA[iNdEx-8]) + m.ValBytes |= int64(dAtA[iNdEx-7]) << 8 + m.ValBytes |= int64(dAtA[iNdEx-6]) << 16 + m.ValBytes |= int64(dAtA[iNdEx-5]) << 24 + m.ValBytes |= int64(dAtA[iNdEx-4]) << 32 + m.ValBytes |= int64(dAtA[iNdEx-3]) << 40 + m.ValBytes |= int64(dAtA[iNdEx-2]) << 48 + m.ValBytes |= int64(dAtA[iNdEx-1]) << 56 case 9: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field ValCount", wireType) @@ -1359,14 +1359,14 @@ func (m *MVCCStats) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - m.ValCount = int64(data[iNdEx-8]) - m.ValCount |= int64(data[iNdEx-7]) << 8 - m.ValCount |= int64(data[iNdEx-6]) << 16 - m.ValCount |= int64(data[iNdEx-5]) << 24 - m.ValCount |= int64(data[iNdEx-4]) << 32 - m.ValCount |= int64(data[iNdEx-3]) << 40 - m.ValCount |= int64(data[iNdEx-2]) << 48 - m.ValCount |= int64(data[iNdEx-1]) << 56 + m.ValCount = int64(dAtA[iNdEx-8]) + m.ValCount |= int64(dAtA[iNdEx-7]) << 8 + m.ValCount |= int64(dAtA[iNdEx-6]) << 16 + m.ValCount |= int64(dAtA[iNdEx-5]) << 24 + m.ValCount |= int64(dAtA[iNdEx-4]) << 32 + m.ValCount |= int64(dAtA[iNdEx-3]) << 40 + m.ValCount |= int64(dAtA[iNdEx-2]) << 48 + m.ValCount |= int64(dAtA[iNdEx-1]) << 56 case 10: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field IntentBytes", wireType) @@ -1376,14 +1376,14 @@ func (m *MVCCStats) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - m.IntentBytes = int64(data[iNdEx-8]) - m.IntentBytes |= int64(data[iNdEx-7]) << 8 - m.IntentBytes |= int64(data[iNdEx-6]) << 16 - m.IntentBytes |= int64(data[iNdEx-5]) << 24 - m.IntentBytes |= int64(data[iNdEx-4]) << 32 - m.IntentBytes |= int64(data[iNdEx-3]) << 40 - m.IntentBytes |= int64(data[iNdEx-2]) << 48 - m.IntentBytes |= int64(data[iNdEx-1]) << 56 + m.IntentBytes = int64(dAtA[iNdEx-8]) + m.IntentBytes |= int64(dAtA[iNdEx-7]) << 8 + m.IntentBytes |= int64(dAtA[iNdEx-6]) << 16 + m.IntentBytes |= int64(dAtA[iNdEx-5]) << 24 + m.IntentBytes |= int64(dAtA[iNdEx-4]) << 32 + m.IntentBytes |= int64(dAtA[iNdEx-3]) << 40 + m.IntentBytes |= int64(dAtA[iNdEx-2]) << 48 + m.IntentBytes |= int64(dAtA[iNdEx-1]) << 56 case 11: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field IntentCount", wireType) @@ -1393,14 +1393,14 @@ func (m *MVCCStats) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - m.IntentCount = int64(data[iNdEx-8]) - m.IntentCount |= int64(data[iNdEx-7]) << 8 - m.IntentCount |= int64(data[iNdEx-6]) << 16 - m.IntentCount |= int64(data[iNdEx-5]) << 24 - m.IntentCount |= int64(data[iNdEx-4]) << 32 - m.IntentCount |= int64(data[iNdEx-3]) << 40 - m.IntentCount |= int64(data[iNdEx-2]) << 48 - m.IntentCount |= int64(data[iNdEx-1]) << 56 + m.IntentCount = int64(dAtA[iNdEx-8]) + m.IntentCount |= int64(dAtA[iNdEx-7]) << 8 + m.IntentCount |= int64(dAtA[iNdEx-6]) << 16 + m.IntentCount |= int64(dAtA[iNdEx-5]) << 24 + m.IntentCount |= int64(dAtA[iNdEx-4]) << 32 + m.IntentCount |= int64(dAtA[iNdEx-3]) << 40 + m.IntentCount |= int64(dAtA[iNdEx-2]) << 48 + m.IntentCount |= int64(dAtA[iNdEx-1]) << 56 case 12: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field SysBytes", wireType) @@ -1410,14 +1410,14 @@ func (m *MVCCStats) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - m.SysBytes = int64(data[iNdEx-8]) - m.SysBytes |= int64(data[iNdEx-7]) << 8 - m.SysBytes |= int64(data[iNdEx-6]) << 16 - m.SysBytes |= int64(data[iNdEx-5]) << 24 - m.SysBytes |= int64(data[iNdEx-4]) << 32 - m.SysBytes |= int64(data[iNdEx-3]) << 40 - m.SysBytes |= int64(data[iNdEx-2]) << 48 - m.SysBytes |= int64(data[iNdEx-1]) << 56 + m.SysBytes = int64(dAtA[iNdEx-8]) + m.SysBytes |= int64(dAtA[iNdEx-7]) << 8 + m.SysBytes |= int64(dAtA[iNdEx-6]) << 16 + m.SysBytes |= int64(dAtA[iNdEx-5]) << 24 + m.SysBytes |= int64(dAtA[iNdEx-4]) << 32 + m.SysBytes |= int64(dAtA[iNdEx-3]) << 40 + m.SysBytes |= int64(dAtA[iNdEx-2]) << 48 + m.SysBytes |= int64(dAtA[iNdEx-1]) << 56 case 13: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field SysCount", wireType) @@ -1427,14 +1427,14 @@ func (m *MVCCStats) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - m.SysCount = int64(data[iNdEx-8]) - m.SysCount |= int64(data[iNdEx-7]) << 8 - m.SysCount |= int64(data[iNdEx-6]) << 16 - m.SysCount |= int64(data[iNdEx-5]) << 24 - m.SysCount |= int64(data[iNdEx-4]) << 32 - m.SysCount |= int64(data[iNdEx-3]) << 40 - m.SysCount |= int64(data[iNdEx-2]) << 48 - m.SysCount |= int64(data[iNdEx-1]) << 56 + m.SysCount = int64(dAtA[iNdEx-8]) + m.SysCount |= int64(dAtA[iNdEx-7]) << 8 + m.SysCount |= int64(dAtA[iNdEx-6]) << 16 + m.SysCount |= int64(dAtA[iNdEx-5]) << 24 + m.SysCount |= int64(dAtA[iNdEx-4]) << 32 + m.SysCount |= int64(dAtA[iNdEx-3]) << 40 + m.SysCount |= int64(dAtA[iNdEx-2]) << 48 + m.SysCount |= int64(dAtA[iNdEx-1]) << 56 case 14: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ContainsEstimates", wireType) @@ -1447,7 +1447,7 @@ func (m *MVCCStats) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1457,7 +1457,7 @@ func (m *MVCCStats) Unmarshal(data []byte) error { m.ContainsEstimates = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipMvcc(data[iNdEx:]) + skippy, err := skipMvcc(dAtA[iNdEx:]) if err != nil { return err } @@ -1476,8 +1476,8 @@ func (m *MVCCStats) Unmarshal(data []byte) error { } return nil } -func skipMvcc(data []byte) (n int, err error) { - l := len(data) +func skipMvcc(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -1488,7 +1488,7 @@ func skipMvcc(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1506,7 +1506,7 @@ func skipMvcc(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -1523,7 +1523,7 @@ func skipMvcc(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1546,7 +1546,7 @@ func skipMvcc(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1557,7 +1557,7 @@ func skipMvcc(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipMvcc(data[start:]) + next, err := skipMvcc(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/storage/engine/enginepb/rocksdb.pb.go b/pkg/storage/engine/enginepb/rocksdb.pb.go index 9a7f89a13d69..3018c33e62c8 100644 --- a/pkg/storage/engine/enginepb/rocksdb.pb.go +++ b/pkg/storage/engine/enginepb/rocksdb.pb.go @@ -48,42 +48,42 @@ func init() { proto.RegisterType((*SSTUserProperties)(nil), "cockroach.storage.engine.enginepb.SSTUserProperties") proto.RegisterType((*SSTUserPropertiesCollection)(nil), "cockroach.storage.engine.enginepb.SSTUserPropertiesCollection") } -func (m *SSTUserProperties) Marshal() (data []byte, err error) { +func (m *SSTUserProperties) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SSTUserProperties) MarshalTo(data []byte) (int, error) { +func (m *SSTUserProperties) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Path) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintRocksdb(data, i, uint64(len(m.Path))) - i += copy(data[i:], m.Path) + i = encodeVarintRocksdb(dAtA, i, uint64(len(m.Path))) + i += copy(dAtA[i:], m.Path) } if m.TsMin != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintRocksdb(data, i, uint64(m.TsMin.Size())) - n1, err := m.TsMin.MarshalTo(data[i:]) + i = encodeVarintRocksdb(dAtA, i, uint64(m.TsMin.Size())) + n1, err := m.TsMin.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 } if m.TsMax != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintRocksdb(data, i, uint64(m.TsMax.Size())) - n2, err := m.TsMax.MarshalTo(data[i:]) + i = encodeVarintRocksdb(dAtA, i, uint64(m.TsMax.Size())) + n2, err := m.TsMax.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -92,27 +92,27 @@ func (m *SSTUserProperties) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *SSTUserPropertiesCollection) Marshal() (data []byte, err error) { +func (m *SSTUserPropertiesCollection) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SSTUserPropertiesCollection) MarshalTo(data []byte) (int, error) { +func (m *SSTUserPropertiesCollection) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Sst) > 0 { for _, msg := range m.Sst { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintRocksdb(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintRocksdb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -120,39 +120,39 @@ func (m *SSTUserPropertiesCollection) MarshalTo(data []byte) (int, error) { } } if len(m.Error) > 0 { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintRocksdb(data, i, uint64(len(m.Error))) - i += copy(data[i:], m.Error) + i = encodeVarintRocksdb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } return i, nil } -func encodeFixed64Rocksdb(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Rocksdb(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Rocksdb(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Rocksdb(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintRocksdb(data []byte, offset int, v uint64) int { +func encodeVarintRocksdb(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *SSTUserProperties) Size() (n int) { @@ -202,8 +202,8 @@ func sovRocksdb(x uint64) (n int) { func sozRocksdb(x uint64) (n int) { return sovRocksdb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *SSTUserProperties) Unmarshal(data []byte) error { - l := len(data) +func (m *SSTUserProperties) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -215,7 +215,7 @@ func (m *SSTUserProperties) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -243,7 +243,7 @@ func (m *SSTUserProperties) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -258,7 +258,7 @@ func (m *SSTUserProperties) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Path = string(data[iNdEx:postIndex]) + m.Path = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -272,7 +272,7 @@ func (m *SSTUserProperties) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -289,7 +289,7 @@ func (m *SSTUserProperties) Unmarshal(data []byte) error { if m.TsMin == nil { m.TsMin = &cockroach_util_hlc.Timestamp{} } - if err := m.TsMin.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TsMin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -305,7 +305,7 @@ func (m *SSTUserProperties) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -322,13 +322,13 @@ func (m *SSTUserProperties) Unmarshal(data []byte) error { if m.TsMax == nil { m.TsMax = &cockroach_util_hlc.Timestamp{} } - if err := m.TsMax.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TsMax.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRocksdb(data[iNdEx:]) + skippy, err := skipRocksdb(dAtA[iNdEx:]) if err != nil { return err } @@ -347,8 +347,8 @@ func (m *SSTUserProperties) Unmarshal(data []byte) error { } return nil } -func (m *SSTUserPropertiesCollection) Unmarshal(data []byte) error { - l := len(data) +func (m *SSTUserPropertiesCollection) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -360,7 +360,7 @@ func (m *SSTUserPropertiesCollection) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -388,7 +388,7 @@ func (m *SSTUserPropertiesCollection) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -403,7 +403,7 @@ func (m *SSTUserPropertiesCollection) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Sst = append(m.Sst, SSTUserProperties{}) - if err := m.Sst[len(m.Sst)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Sst[len(m.Sst)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -419,7 +419,7 @@ func (m *SSTUserPropertiesCollection) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -434,11 +434,11 @@ func (m *SSTUserPropertiesCollection) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Error = string(data[iNdEx:postIndex]) + m.Error = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRocksdb(data[iNdEx:]) + skippy, err := skipRocksdb(dAtA[iNdEx:]) if err != nil { return err } @@ -457,8 +457,8 @@ func (m *SSTUserPropertiesCollection) Unmarshal(data []byte) error { } return nil } -func skipRocksdb(data []byte) (n int, err error) { - l := len(data) +func skipRocksdb(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -469,7 +469,7 @@ func skipRocksdb(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -487,7 +487,7 @@ func skipRocksdb(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -504,7 +504,7 @@ func skipRocksdb(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -527,7 +527,7 @@ func skipRocksdb(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -538,7 +538,7 @@ func skipRocksdb(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipRocksdb(data[start:]) + next, err := skipRocksdb(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/data.pb.cc b/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/data.pb.cc index 7e510a6ddf41..d358c0bcfb12 100644 --- a/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/data.pb.cc +++ b/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/data.pb.cc @@ -18,82 +18,98 @@ namespace cockroach { namespace roachpb { void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto() { - delete Span::default_instance_; - delete Value::default_instance_; - delete KeyValue::default_instance_; - delete StoreIdent::default_instance_; - delete SplitTrigger::default_instance_; - delete MergeTrigger::default_instance_; - delete ChangeReplicasTrigger::default_instance_; - delete ModifiedSpanTrigger::default_instance_; - delete InternalCommitTrigger::default_instance_; - delete Transaction::default_instance_; - delete Intent::default_instance_; - delete Lease::default_instance_; - delete AbortCacheEntry::default_instance_; -} - -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl() { + Span_default_instance_.Shutdown(); + Value_default_instance_.Shutdown(); + KeyValue_default_instance_.Shutdown(); + StoreIdent_default_instance_.Shutdown(); + SplitTrigger_default_instance_.Shutdown(); + MergeTrigger_default_instance_.Shutdown(); + ChangeReplicasTrigger_default_instance_.Shutdown(); + ModifiedSpanTrigger_default_instance_.Shutdown(); + InternalCommitTrigger_default_instance_.Shutdown(); + Transaction_default_instance_.Shutdown(); + Intent_default_instance_.Shutdown(); + Lease_default_instance_.Shutdown(); + AbortCacheEntry_default_instance_.Shutdown(); +} + +void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#else -void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; + ::cockroach::roachpb::protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); + ::cockroach::storage::engine::enginepb::protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); + ::cockroach::util::hlc::protobuf_InitDefaults_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); + ::google::protobuf::internal::GetEmptyString(); + Span_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + Value_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + KeyValue_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + StoreIdent_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + SplitTrigger_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + MergeTrigger_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + ChangeReplicasTrigger_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + ModifiedSpanTrigger_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + InternalCommitTrigger_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + Transaction_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + Intent_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + Lease_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + AbortCacheEntry_default_instance_.DefaultConstruct(); + Span_default_instance_.get_mutable()->InitAsDefaultInstance(); + Value_default_instance_.get_mutable()->InitAsDefaultInstance(); + KeyValue_default_instance_.get_mutable()->InitAsDefaultInstance(); + StoreIdent_default_instance_.get_mutable()->InitAsDefaultInstance(); + SplitTrigger_default_instance_.get_mutable()->InitAsDefaultInstance(); + MergeTrigger_default_instance_.get_mutable()->InitAsDefaultInstance(); + ChangeReplicasTrigger_default_instance_.get_mutable()->InitAsDefaultInstance(); + ModifiedSpanTrigger_default_instance_.get_mutable()->InitAsDefaultInstance(); + InternalCommitTrigger_default_instance_.get_mutable()->InitAsDefaultInstance(); + Transaction_default_instance_.get_mutable()->InitAsDefaultInstance(); + Intent_default_instance_.get_mutable()->InitAsDefaultInstance(); + Lease_default_instance_.get_mutable()->InitAsDefaultInstance(); + AbortCacheEntry_default_instance_.get_mutable()->InitAsDefaultInstance(); +} + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_once_); +void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto() { + ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_once_, + &protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl); +} +void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#endif + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); ::cockroach::roachpb::protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); ::cockroach::storage::engine::enginepb::protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); ::cockroach::util::hlc::protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); - Span::default_instance_ = new Span(); - Value::default_instance_ = new Value(); - KeyValue::default_instance_ = new KeyValue(); - StoreIdent::default_instance_ = new StoreIdent(); - SplitTrigger::default_instance_ = new SplitTrigger(); - MergeTrigger::default_instance_ = new MergeTrigger(); - ChangeReplicasTrigger::default_instance_ = new ChangeReplicasTrigger(); - ModifiedSpanTrigger::default_instance_ = new ModifiedSpanTrigger(); - InternalCommitTrigger::default_instance_ = new InternalCommitTrigger(); - Transaction::default_instance_ = new Transaction(); - Intent::default_instance_ = new Intent(); - Lease::default_instance_ = new Lease(); - AbortCacheEntry::default_instance_ = new AbortCacheEntry(); - Span::default_instance_->InitAsDefaultInstance(); - Value::default_instance_->InitAsDefaultInstance(); - KeyValue::default_instance_->InitAsDefaultInstance(); - StoreIdent::default_instance_->InitAsDefaultInstance(); - SplitTrigger::default_instance_->InitAsDefaultInstance(); - MergeTrigger::default_instance_->InitAsDefaultInstance(); - ChangeReplicasTrigger::default_instance_->InitAsDefaultInstance(); - ModifiedSpanTrigger::default_instance_->InitAsDefaultInstance(); - InternalCommitTrigger::default_instance_->InitAsDefaultInstance(); - Transaction::default_instance_->InitAsDefaultInstance(); - Intent::default_instance_->InitAsDefaultInstance(); - Lease::default_instance_->InitAsDefaultInstance(); - AbortCacheEntry::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto); } -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_once_); void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto() { ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_once_, &protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl); } -#else +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_cockroach_2fpkg_2froachpb_2fdata_2eproto { StaticDescriptorInitializer_cockroach_2fpkg_2froachpb_2fdata_2eproto() { protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); } } static_descriptor_initializer_cockroach_2fpkg_2froachpb_2fdata_2eproto_; -#endif +#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER bool ValueType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -113,7 +129,7 @@ bool ValueType_IsValid(int value) { } bool ReplicaChangeType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: return true; @@ -123,7 +139,7 @@ bool ReplicaChangeType_IsValid(int value) { } bool TransactionStatus_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -134,6 +150,16 @@ bool TransactionStatus_IsValid(int value) { } +namespace { + +static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; +static void MergeFromFail(int line) { + ::google::protobuf::internal::MergeFromFail(__FILE__, line); +} + +} // namespace + + // =================================================================== static ::std::string* MutableUnknownFieldsForSpan( @@ -148,6 +174,7 @@ const int Span::kEndKeyFieldNumber; Span::Span() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.Span) } @@ -159,18 +186,16 @@ Span::Span(const Span& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.Span) } void Span::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); end_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } Span::~Span() { @@ -183,12 +208,6 @@ void Span::SharedDtor() { &::google::protobuf::internal::GetEmptyStringAlreadyInited()); key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); end_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void Span::SetCachedSize(int size) const { @@ -197,15 +216,11 @@ void Span::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const Span& Span::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); + return *internal_default_instance(); } -Span* Span::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed Span_default_instance_; Span* Span::New(::google::protobuf::Arena* arena) const { Span* n = new Span; @@ -225,7 +240,7 @@ void Span::Clear() { end_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -235,7 +250,7 @@ bool Span::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForSpan, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -312,9 +327,9 @@ void Span::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.Span) } -int Span::ByteSize() const { +size_t Span::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.Span) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 3u) { // optional bytes key = 3; @@ -334,8 +349,9 @@ int Span::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -347,9 +363,15 @@ void Span::CheckTypeAndMergeFrom( void Span::MergeFrom(const Span& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.Span) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void Span::UnsafeMergeFrom(const Span& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_key()) { set_has_key(); @@ -369,7 +391,7 @@ void Span::CopyFrom(const Span& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.Span) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool Span::IsInitialized() const { @@ -410,37 +432,37 @@ void Span::clear_key() { key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_key(); } - const ::std::string& Span::key() const { +const ::std::string& Span::key() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Span.key) return key_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void Span::set_key(const ::std::string& value) { +void Span::set_key(const ::std::string& value) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.roachpb.Span.key) } - void Span::set_key(const char* value) { +void Span::set_key(const char* value) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Span.key) } - void Span::set_key(const void* value, size_t size) { +void Span::set_key(const void* value, size_t size) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Span.key) } - ::std::string* Span::mutable_key() { +::std::string* Span::mutable_key() { set_has_key(); // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Span.key) return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* Span::release_key() { +::std::string* Span::release_key() { // @@protoc_insertion_point(field_release:cockroach.roachpb.Span.key) clear_has_key(); return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void Span::set_allocated_key(::std::string* key) { +void Span::set_allocated_key(::std::string* key) { if (key != NULL) { set_has_key(); } else { @@ -464,37 +486,37 @@ void Span::clear_end_key() { end_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_end_key(); } - const ::std::string& Span::end_key() const { +const ::std::string& Span::end_key() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Span.end_key) return end_key_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void Span::set_end_key(const ::std::string& value) { +void Span::set_end_key(const ::std::string& value) { set_has_end_key(); end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.roachpb.Span.end_key) } - void Span::set_end_key(const char* value) { +void Span::set_end_key(const char* value) { set_has_end_key(); end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Span.end_key) } - void Span::set_end_key(const void* value, size_t size) { +void Span::set_end_key(const void* value, size_t size) { set_has_end_key(); end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Span.end_key) } - ::std::string* Span::mutable_end_key() { +::std::string* Span::mutable_end_key() { set_has_end_key(); // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Span.end_key) return end_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* Span::release_end_key() { +::std::string* Span::release_end_key() { // @@protoc_insertion_point(field_release:cockroach.roachpb.Span.end_key) clear_has_end_key(); return end_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void Span::set_allocated_end_key(::std::string* end_key) { +void Span::set_allocated_end_key(::std::string* end_key) { if (end_key != NULL) { set_has_end_key(); } else { @@ -504,6 +526,9 @@ void Span::clear_end_key() { // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Span.end_key) } +inline const Span* Span::internal_default_instance() { + return &Span_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -520,35 +545,30 @@ const int Value::kTimestampFieldNumber; Value::Value() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.Value) } void Value::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER timestamp_ = const_cast< ::cockroach::util::hlc::Timestamp*>( ::cockroach::util::hlc::Timestamp::internal_default_instance()); -#else - timestamp_ = const_cast< ::cockroach::util::hlc::Timestamp*>(&::cockroach::util::hlc::Timestamp::default_instance()); -#endif } Value::Value(const Value& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.Value) } void Value::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); raw_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); timestamp_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } Value::~Value() { @@ -560,11 +580,7 @@ void Value::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); raw_bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &Value_default_instance_.get()) { delete timestamp_; } } @@ -575,15 +591,11 @@ void Value::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const Value& Value::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); + return *internal_default_instance(); } -Value* Value::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed Value_default_instance_; Value* Value::New(::google::protobuf::Arena* arena) const { Value* n = new Value; @@ -603,7 +615,7 @@ void Value::Clear() { if (timestamp_ != NULL) timestamp_->::cockroach::util::hlc::Timestamp::Clear(); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -613,7 +625,7 @@ bool Value::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForValue, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -690,9 +702,9 @@ void Value::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.Value) } -int Value::ByteSize() const { +size_t Value::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.Value) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 3u) { // optional bytes raw_bytes = 1; @@ -712,8 +724,9 @@ int Value::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -725,9 +738,15 @@ void Value::CheckTypeAndMergeFrom( void Value::MergeFrom(const Value& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.Value) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void Value::UnsafeMergeFrom(const Value& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_raw_bytes()) { set_has_raw_bytes(); @@ -746,7 +765,7 @@ void Value::CopyFrom(const Value& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.Value) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool Value::IsInitialized() const { @@ -787,37 +806,37 @@ void Value::clear_raw_bytes() { raw_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_raw_bytes(); } - const ::std::string& Value::raw_bytes() const { +const ::std::string& Value::raw_bytes() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Value.raw_bytes) return raw_bytes_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void Value::set_raw_bytes(const ::std::string& value) { +void Value::set_raw_bytes(const ::std::string& value) { set_has_raw_bytes(); raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.roachpb.Value.raw_bytes) } - void Value::set_raw_bytes(const char* value) { +void Value::set_raw_bytes(const char* value) { set_has_raw_bytes(); raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Value.raw_bytes) } - void Value::set_raw_bytes(const void* value, size_t size) { +void Value::set_raw_bytes(const void* value, size_t size) { set_has_raw_bytes(); raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Value.raw_bytes) } - ::std::string* Value::mutable_raw_bytes() { +::std::string* Value::mutable_raw_bytes() { set_has_raw_bytes(); // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Value.raw_bytes) return raw_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* Value::release_raw_bytes() { +::std::string* Value::release_raw_bytes() { // @@protoc_insertion_point(field_release:cockroach.roachpb.Value.raw_bytes) clear_has_raw_bytes(); return raw_bytes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void Value::set_allocated_raw_bytes(::std::string* raw_bytes) { +void Value::set_allocated_raw_bytes(::std::string* raw_bytes) { if (raw_bytes != NULL) { set_has_raw_bytes(); } else { @@ -843,11 +862,8 @@ void Value::clear_timestamp() { } const ::cockroach::util::hlc::Timestamp& Value::timestamp() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Value.timestamp) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return timestamp_ != NULL ? *timestamp_ : *default_instance().timestamp_; -#else - return timestamp_ != NULL ? *timestamp_ : *default_instance_->timestamp_; -#endif + return timestamp_ != NULL ? *timestamp_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } ::cockroach::util::hlc::Timestamp* Value::mutable_timestamp() { set_has_timestamp(); @@ -875,6 +891,9 @@ void Value::set_allocated_timestamp(::cockroach::util::hlc::Timestamp* timestamp // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Value.timestamp) } +inline const Value* Value::internal_default_instance() { + return &Value_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -891,35 +910,30 @@ const int KeyValue::kValueFieldNumber; KeyValue::KeyValue() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.KeyValue) } void KeyValue::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER value_ = const_cast< ::cockroach::roachpb::Value*>( ::cockroach::roachpb::Value::internal_default_instance()); -#else - value_ = const_cast< ::cockroach::roachpb::Value*>(&::cockroach::roachpb::Value::default_instance()); -#endif } KeyValue::KeyValue(const KeyValue& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.KeyValue) } void KeyValue::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); value_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } KeyValue::~KeyValue() { @@ -931,11 +945,7 @@ void KeyValue::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &KeyValue_default_instance_.get()) { delete value_; } } @@ -946,15 +956,11 @@ void KeyValue::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const KeyValue& KeyValue::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); + return *internal_default_instance(); } -KeyValue* KeyValue::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed KeyValue_default_instance_; KeyValue* KeyValue::New(::google::protobuf::Arena* arena) const { KeyValue* n = new KeyValue; @@ -974,7 +980,7 @@ void KeyValue::Clear() { if (value_ != NULL) value_->::cockroach::roachpb::Value::Clear(); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -984,7 +990,7 @@ bool KeyValue::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForKeyValue, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -1061,9 +1067,9 @@ void KeyValue::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.KeyValue) } -int KeyValue::ByteSize() const { +size_t KeyValue::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.KeyValue) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 3u) { // optional bytes key = 1; @@ -1083,8 +1089,9 @@ int KeyValue::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -1096,9 +1103,15 @@ void KeyValue::CheckTypeAndMergeFrom( void KeyValue::MergeFrom(const KeyValue& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.KeyValue) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void KeyValue::UnsafeMergeFrom(const KeyValue& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_key()) { set_has_key(); @@ -1117,7 +1130,7 @@ void KeyValue::CopyFrom(const KeyValue& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.KeyValue) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool KeyValue::IsInitialized() const { @@ -1158,37 +1171,37 @@ void KeyValue::clear_key() { key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_key(); } - const ::std::string& KeyValue::key() const { +const ::std::string& KeyValue::key() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.KeyValue.key) return key_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void KeyValue::set_key(const ::std::string& value) { +void KeyValue::set_key(const ::std::string& value) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.roachpb.KeyValue.key) } - void KeyValue::set_key(const char* value) { +void KeyValue::set_key(const char* value) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.roachpb.KeyValue.key) } - void KeyValue::set_key(const void* value, size_t size) { +void KeyValue::set_key(const void* value, size_t size) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.KeyValue.key) } - ::std::string* KeyValue::mutable_key() { +::std::string* KeyValue::mutable_key() { set_has_key(); // @@protoc_insertion_point(field_mutable:cockroach.roachpb.KeyValue.key) return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* KeyValue::release_key() { +::std::string* KeyValue::release_key() { // @@protoc_insertion_point(field_release:cockroach.roachpb.KeyValue.key) clear_has_key(); return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void KeyValue::set_allocated_key(::std::string* key) { +void KeyValue::set_allocated_key(::std::string* key) { if (key != NULL) { set_has_key(); } else { @@ -1214,11 +1227,8 @@ void KeyValue::clear_value() { } const ::cockroach::roachpb::Value& KeyValue::value() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.KeyValue.value) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return value_ != NULL ? *value_ : *default_instance().value_; -#else - return value_ != NULL ? *value_ : *default_instance_->value_; -#endif + return value_ != NULL ? *value_ + : *::cockroach::roachpb::Value::internal_default_instance(); } ::cockroach::roachpb::Value* KeyValue::mutable_value() { set_has_value(); @@ -1246,6 +1256,9 @@ void KeyValue::set_allocated_value(::cockroach::roachpb::Value* value) { // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.KeyValue.value) } +inline const KeyValue* KeyValue::internal_default_instance() { + return &KeyValue_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -1263,6 +1276,7 @@ const int StoreIdent::kStoreIdFieldNumber; StoreIdent::StoreIdent() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.StoreIdent) } @@ -1274,19 +1288,17 @@ StoreIdent::StoreIdent(const StoreIdent& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.StoreIdent) } void StoreIdent::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); cluster_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - node_id_ = 0; - store_id_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::memset(&node_id_, 0, reinterpret_cast(&store_id_) - + reinterpret_cast(&node_id_) + sizeof(store_id_)); } StoreIdent::~StoreIdent() { @@ -1298,12 +1310,6 @@ void StoreIdent::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); cluster_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void StoreIdent::SetCachedSize(int size) const { @@ -1312,15 +1318,11 @@ void StoreIdent::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const StoreIdent& StoreIdent::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); + return *internal_default_instance(); } -StoreIdent* StoreIdent::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed StoreIdent_default_instance_; StoreIdent* StoreIdent::New(::google::protobuf::Arena* arena) const { StoreIdent* n = new StoreIdent; @@ -1344,7 +1346,7 @@ void StoreIdent::Clear() { #endif #define ZR_(first, last) do {\ - ::memset(&first, 0,\ + ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) @@ -1358,7 +1360,7 @@ void StoreIdent::Clear() { #undef ZR_HELPER_ #undef ZR_ - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1368,7 +1370,7 @@ bool StoreIdent::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForStoreIdent, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -1394,10 +1396,10 @@ bool StoreIdent::MergePartialFromCodedStream( case 2: { if (tag == 16) { parse_node_id: + set_has_node_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &node_id_))); - set_has_node_id(); } else { goto handle_unusual; } @@ -1409,10 +1411,10 @@ bool StoreIdent::MergePartialFromCodedStream( case 3: { if (tag == 24) { parse_store_id: + set_has_store_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &store_id_))); - set_has_store_id(); } else { goto handle_unusual; } @@ -1466,9 +1468,9 @@ void StoreIdent::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.StoreIdent) } -int StoreIdent::ByteSize() const { +size_t StoreIdent::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.StoreIdent) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 7u) { // optional bytes cluster_id = 1; @@ -1495,8 +1497,9 @@ int StoreIdent::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -1508,9 +1511,15 @@ void StoreIdent::CheckTypeAndMergeFrom( void StoreIdent::MergeFrom(const StoreIdent& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.StoreIdent) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void StoreIdent::UnsafeMergeFrom(const StoreIdent& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_cluster_id()) { set_has_cluster_id(); @@ -1532,7 +1541,7 @@ void StoreIdent::CopyFrom(const StoreIdent& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.StoreIdent) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool StoreIdent::IsInitialized() const { @@ -1574,37 +1583,37 @@ void StoreIdent::clear_cluster_id() { cluster_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_cluster_id(); } - const ::std::string& StoreIdent::cluster_id() const { +const ::std::string& StoreIdent::cluster_id() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreIdent.cluster_id) return cluster_id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void StoreIdent::set_cluster_id(const ::std::string& value) { +void StoreIdent::set_cluster_id(const ::std::string& value) { set_has_cluster_id(); cluster_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreIdent.cluster_id) } - void StoreIdent::set_cluster_id(const char* value) { +void StoreIdent::set_cluster_id(const char* value) { set_has_cluster_id(); cluster_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.roachpb.StoreIdent.cluster_id) } - void StoreIdent::set_cluster_id(const void* value, size_t size) { +void StoreIdent::set_cluster_id(const void* value, size_t size) { set_has_cluster_id(); cluster_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.StoreIdent.cluster_id) } - ::std::string* StoreIdent::mutable_cluster_id() { +::std::string* StoreIdent::mutable_cluster_id() { set_has_cluster_id(); // @@protoc_insertion_point(field_mutable:cockroach.roachpb.StoreIdent.cluster_id) return cluster_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* StoreIdent::release_cluster_id() { +::std::string* StoreIdent::release_cluster_id() { // @@protoc_insertion_point(field_release:cockroach.roachpb.StoreIdent.cluster_id) clear_has_cluster_id(); return cluster_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void StoreIdent::set_allocated_cluster_id(::std::string* cluster_id) { +void StoreIdent::set_allocated_cluster_id(::std::string* cluster_id) { if (cluster_id != NULL) { set_has_cluster_id(); } else { @@ -1628,11 +1637,11 @@ void StoreIdent::clear_node_id() { node_id_ = 0; clear_has_node_id(); } - ::google::protobuf::int32 StoreIdent::node_id() const { +::google::protobuf::int32 StoreIdent::node_id() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreIdent.node_id) return node_id_; } - void StoreIdent::set_node_id(::google::protobuf::int32 value) { +void StoreIdent::set_node_id(::google::protobuf::int32 value) { set_has_node_id(); node_id_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreIdent.node_id) @@ -1652,16 +1661,19 @@ void StoreIdent::clear_store_id() { store_id_ = 0; clear_has_store_id(); } - ::google::protobuf::int32 StoreIdent::store_id() const { +::google::protobuf::int32 StoreIdent::store_id() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreIdent.store_id) return store_id_; } - void StoreIdent::set_store_id(::google::protobuf::int32 value) { +void StoreIdent::set_store_id(::google::protobuf::int32 value) { set_has_store_id(); store_id_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreIdent.store_id) } +inline const StoreIdent* StoreIdent::internal_default_instance() { + return &StoreIdent_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -1678,41 +1690,32 @@ const int SplitTrigger::kRightDescFieldNumber; SplitTrigger::SplitTrigger() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.SplitTrigger) } void SplitTrigger::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER left_desc_ = const_cast< ::cockroach::roachpb::RangeDescriptor*>( ::cockroach::roachpb::RangeDescriptor::internal_default_instance()); -#else - left_desc_ = const_cast< ::cockroach::roachpb::RangeDescriptor*>(&::cockroach::roachpb::RangeDescriptor::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER right_desc_ = const_cast< ::cockroach::roachpb::RangeDescriptor*>( ::cockroach::roachpb::RangeDescriptor::internal_default_instance()); -#else - right_desc_ = const_cast< ::cockroach::roachpb::RangeDescriptor*>(&::cockroach::roachpb::RangeDescriptor::default_instance()); -#endif } SplitTrigger::SplitTrigger(const SplitTrigger& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.SplitTrigger) } void SplitTrigger::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); left_desc_ = NULL; right_desc_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } SplitTrigger::~SplitTrigger() { @@ -1723,11 +1726,7 @@ SplitTrigger::~SplitTrigger() { void SplitTrigger::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &SplitTrigger_default_instance_.get()) { delete left_desc_; delete right_desc_; } @@ -1739,15 +1738,11 @@ void SplitTrigger::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const SplitTrigger& SplitTrigger::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); + return *internal_default_instance(); } -SplitTrigger* SplitTrigger::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed SplitTrigger_default_instance_; SplitTrigger* SplitTrigger::New(::google::protobuf::Arena* arena) const { SplitTrigger* n = new SplitTrigger; @@ -1767,7 +1762,7 @@ void SplitTrigger::Clear() { if (right_desc_ != NULL) right_desc_->::cockroach::roachpb::RangeDescriptor::Clear(); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1777,7 +1772,7 @@ bool SplitTrigger::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForSplitTrigger, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -1854,9 +1849,9 @@ void SplitTrigger::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.SplitTrigger) } -int SplitTrigger::ByteSize() const { +size_t SplitTrigger::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.SplitTrigger) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 3u) { // optional .cockroach.roachpb.RangeDescriptor left_desc = 1; @@ -1876,8 +1871,9 @@ int SplitTrigger::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -1889,9 +1885,15 @@ void SplitTrigger::CheckTypeAndMergeFrom( void SplitTrigger::MergeFrom(const SplitTrigger& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.SplitTrigger) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void SplitTrigger::UnsafeMergeFrom(const SplitTrigger& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_left_desc()) { mutable_left_desc()->::cockroach::roachpb::RangeDescriptor::MergeFrom(from.left_desc()); @@ -1909,7 +1911,7 @@ void SplitTrigger::CopyFrom(const SplitTrigger& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.SplitTrigger) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool SplitTrigger::IsInitialized() const { @@ -1952,11 +1954,8 @@ void SplitTrigger::clear_left_desc() { } const ::cockroach::roachpb::RangeDescriptor& SplitTrigger::left_desc() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.SplitTrigger.left_desc) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return left_desc_ != NULL ? *left_desc_ : *default_instance().left_desc_; -#else - return left_desc_ != NULL ? *left_desc_ : *default_instance_->left_desc_; -#endif + return left_desc_ != NULL ? *left_desc_ + : *::cockroach::roachpb::RangeDescriptor::internal_default_instance(); } ::cockroach::roachpb::RangeDescriptor* SplitTrigger::mutable_left_desc() { set_has_left_desc(); @@ -2000,11 +1999,8 @@ void SplitTrigger::clear_right_desc() { } const ::cockroach::roachpb::RangeDescriptor& SplitTrigger::right_desc() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.SplitTrigger.right_desc) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return right_desc_ != NULL ? *right_desc_ : *default_instance().right_desc_; -#else - return right_desc_ != NULL ? *right_desc_ : *default_instance_->right_desc_; -#endif + return right_desc_ != NULL ? *right_desc_ + : *::cockroach::roachpb::RangeDescriptor::internal_default_instance(); } ::cockroach::roachpb::RangeDescriptor* SplitTrigger::mutable_right_desc() { set_has_right_desc(); @@ -2032,6 +2028,9 @@ void SplitTrigger::set_allocated_right_desc(::cockroach::roachpb::RangeDescripto // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.SplitTrigger.right_desc) } +inline const SplitTrigger* SplitTrigger::internal_default_instance() { + return &SplitTrigger_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -2048,41 +2047,32 @@ const int MergeTrigger::kRightDescFieldNumber; MergeTrigger::MergeTrigger() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.MergeTrigger) } void MergeTrigger::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER left_desc_ = const_cast< ::cockroach::roachpb::RangeDescriptor*>( ::cockroach::roachpb::RangeDescriptor::internal_default_instance()); -#else - left_desc_ = const_cast< ::cockroach::roachpb::RangeDescriptor*>(&::cockroach::roachpb::RangeDescriptor::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER right_desc_ = const_cast< ::cockroach::roachpb::RangeDescriptor*>( ::cockroach::roachpb::RangeDescriptor::internal_default_instance()); -#else - right_desc_ = const_cast< ::cockroach::roachpb::RangeDescriptor*>(&::cockroach::roachpb::RangeDescriptor::default_instance()); -#endif } MergeTrigger::MergeTrigger(const MergeTrigger& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.MergeTrigger) } void MergeTrigger::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); left_desc_ = NULL; right_desc_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } MergeTrigger::~MergeTrigger() { @@ -2093,11 +2083,7 @@ MergeTrigger::~MergeTrigger() { void MergeTrigger::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &MergeTrigger_default_instance_.get()) { delete left_desc_; delete right_desc_; } @@ -2109,15 +2095,11 @@ void MergeTrigger::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const MergeTrigger& MergeTrigger::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); + return *internal_default_instance(); } -MergeTrigger* MergeTrigger::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed MergeTrigger_default_instance_; MergeTrigger* MergeTrigger::New(::google::protobuf::Arena* arena) const { MergeTrigger* n = new MergeTrigger; @@ -2137,7 +2119,7 @@ void MergeTrigger::Clear() { if (right_desc_ != NULL) right_desc_->::cockroach::roachpb::RangeDescriptor::Clear(); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2147,7 +2129,7 @@ bool MergeTrigger::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForMergeTrigger, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -2224,9 +2206,9 @@ void MergeTrigger::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.MergeTrigger) } -int MergeTrigger::ByteSize() const { +size_t MergeTrigger::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.MergeTrigger) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 3u) { // optional .cockroach.roachpb.RangeDescriptor left_desc = 1; @@ -2246,8 +2228,9 @@ int MergeTrigger::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -2259,9 +2242,15 @@ void MergeTrigger::CheckTypeAndMergeFrom( void MergeTrigger::MergeFrom(const MergeTrigger& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.MergeTrigger) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void MergeTrigger::UnsafeMergeFrom(const MergeTrigger& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_left_desc()) { mutable_left_desc()->::cockroach::roachpb::RangeDescriptor::MergeFrom(from.left_desc()); @@ -2279,7 +2268,7 @@ void MergeTrigger::CopyFrom(const MergeTrigger& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.MergeTrigger) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool MergeTrigger::IsInitialized() const { @@ -2322,11 +2311,8 @@ void MergeTrigger::clear_left_desc() { } const ::cockroach::roachpb::RangeDescriptor& MergeTrigger::left_desc() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.MergeTrigger.left_desc) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return left_desc_ != NULL ? *left_desc_ : *default_instance().left_desc_; -#else - return left_desc_ != NULL ? *left_desc_ : *default_instance_->left_desc_; -#endif + return left_desc_ != NULL ? *left_desc_ + : *::cockroach::roachpb::RangeDescriptor::internal_default_instance(); } ::cockroach::roachpb::RangeDescriptor* MergeTrigger::mutable_left_desc() { set_has_left_desc(); @@ -2370,11 +2356,8 @@ void MergeTrigger::clear_right_desc() { } const ::cockroach::roachpb::RangeDescriptor& MergeTrigger::right_desc() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.MergeTrigger.right_desc) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return right_desc_ != NULL ? *right_desc_ : *default_instance().right_desc_; -#else - return right_desc_ != NULL ? *right_desc_ : *default_instance_->right_desc_; -#endif + return right_desc_ != NULL ? *right_desc_ + : *::cockroach::roachpb::RangeDescriptor::internal_default_instance(); } ::cockroach::roachpb::RangeDescriptor* MergeTrigger::mutable_right_desc() { set_has_right_desc(); @@ -2402,6 +2385,9 @@ void MergeTrigger::set_allocated_right_desc(::cockroach::roachpb::RangeDescripto // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.MergeTrigger.right_desc) } +inline const MergeTrigger* MergeTrigger::internal_default_instance() { + return &MergeTrigger_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -2420,36 +2406,31 @@ const int ChangeReplicasTrigger::kNextReplicaIdFieldNumber; ChangeReplicasTrigger::ChangeReplicasTrigger() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.ChangeReplicasTrigger) } void ChangeReplicasTrigger::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER replica_ = const_cast< ::cockroach::roachpb::ReplicaDescriptor*>( ::cockroach::roachpb::ReplicaDescriptor::internal_default_instance()); -#else - replica_ = const_cast< ::cockroach::roachpb::ReplicaDescriptor*>(&::cockroach::roachpb::ReplicaDescriptor::default_instance()); -#endif } ChangeReplicasTrigger::ChangeReplicasTrigger(const ChangeReplicasTrigger& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.ChangeReplicasTrigger) } void ChangeReplicasTrigger::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - change_type_ = 0; replica_ = NULL; - next_replica_id_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::memset(&change_type_, 0, reinterpret_cast(&next_replica_id_) - + reinterpret_cast(&change_type_) + sizeof(next_replica_id_)); } ChangeReplicasTrigger::~ChangeReplicasTrigger() { @@ -2460,11 +2441,7 @@ ChangeReplicasTrigger::~ChangeReplicasTrigger() { void ChangeReplicasTrigger::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &ChangeReplicasTrigger_default_instance_.get()) { delete replica_; } } @@ -2475,15 +2452,11 @@ void ChangeReplicasTrigger::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ChangeReplicasTrigger& ChangeReplicasTrigger::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); + return *internal_default_instance(); } -ChangeReplicasTrigger* ChangeReplicasTrigger::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed ChangeReplicasTrigger_default_instance_; ChangeReplicasTrigger* ChangeReplicasTrigger::New(::google::protobuf::Arena* arena) const { ChangeReplicasTrigger* n = new ChangeReplicasTrigger; @@ -2507,7 +2480,7 @@ void ChangeReplicasTrigger::Clear() { #endif #define ZR_(first, last) do {\ - ::memset(&first, 0,\ + ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) @@ -2522,7 +2495,7 @@ void ChangeReplicasTrigger::Clear() { #undef ZR_ updated_replicas_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2532,7 +2505,7 @@ bool ChangeReplicasTrigger::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForChangeReplicasTrigger, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -2596,10 +2569,10 @@ bool ChangeReplicasTrigger::MergePartialFromCodedStream( case 4: { if (tag == 32) { parse_next_replica_id: + set_has_next_replica_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &next_replica_id_))); - set_has_next_replica_id(); } else { goto handle_unusual; } @@ -2660,9 +2633,9 @@ void ChangeReplicasTrigger::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.ChangeReplicasTrigger) } -int ChangeReplicasTrigger::ByteSize() const { +size_t ChangeReplicasTrigger::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.ChangeReplicasTrigger) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 11u) { // optional .cockroach.roachpb.ReplicaChangeType change_type = 1; @@ -2687,17 +2660,21 @@ int ChangeReplicasTrigger::ByteSize() const { } // repeated .cockroach.roachpb.ReplicaDescriptor updated_replicas = 3; - total_size += 1 * this->updated_replicas_size(); - for (int i = 0; i < this->updated_replicas_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->updated_replicas(i)); + { + unsigned int count = this->updated_replicas_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->updated_replicas(i)); + } } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -2709,9 +2686,15 @@ void ChangeReplicasTrigger::CheckTypeAndMergeFrom( void ChangeReplicasTrigger::MergeFrom(const ChangeReplicasTrigger& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.ChangeReplicasTrigger) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void ChangeReplicasTrigger::UnsafeMergeFrom(const ChangeReplicasTrigger& from) { + GOOGLE_DCHECK(&from != this); updated_replicas_.MergeFrom(from.updated_replicas_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_change_type()) { @@ -2733,7 +2716,7 @@ void ChangeReplicasTrigger::CopyFrom(const ChangeReplicasTrigger& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.ChangeReplicasTrigger) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool ChangeReplicasTrigger::IsInitialized() const { @@ -2776,11 +2759,11 @@ void ChangeReplicasTrigger::clear_change_type() { change_type_ = 0; clear_has_change_type(); } - ::cockroach::roachpb::ReplicaChangeType ChangeReplicasTrigger::change_type() const { +::cockroach::roachpb::ReplicaChangeType ChangeReplicasTrigger::change_type() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.ChangeReplicasTrigger.change_type) return static_cast< ::cockroach::roachpb::ReplicaChangeType >(change_type_); } - void ChangeReplicasTrigger::set_change_type(::cockroach::roachpb::ReplicaChangeType value) { +void ChangeReplicasTrigger::set_change_type(::cockroach::roachpb::ReplicaChangeType value) { assert(::cockroach::roachpb::ReplicaChangeType_IsValid(value)); set_has_change_type(); change_type_ = value; @@ -2803,11 +2786,8 @@ void ChangeReplicasTrigger::clear_replica() { } const ::cockroach::roachpb::ReplicaDescriptor& ChangeReplicasTrigger::replica() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.ChangeReplicasTrigger.replica) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return replica_ != NULL ? *replica_ : *default_instance().replica_; -#else - return replica_ != NULL ? *replica_ : *default_instance_->replica_; -#endif + return replica_ != NULL ? *replica_ + : *::cockroach::roachpb::ReplicaDescriptor::internal_default_instance(); } ::cockroach::roachpb::ReplicaDescriptor* ChangeReplicasTrigger::mutable_replica() { set_has_replica(); @@ -2879,16 +2859,19 @@ void ChangeReplicasTrigger::clear_next_replica_id() { next_replica_id_ = 0; clear_has_next_replica_id(); } - ::google::protobuf::int32 ChangeReplicasTrigger::next_replica_id() const { +::google::protobuf::int32 ChangeReplicasTrigger::next_replica_id() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.ChangeReplicasTrigger.next_replica_id) return next_replica_id_; } - void ChangeReplicasTrigger::set_next_replica_id(::google::protobuf::int32 value) { +void ChangeReplicasTrigger::set_next_replica_id(::google::protobuf::int32 value) { set_has_next_replica_id(); next_replica_id_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.ChangeReplicasTrigger.next_replica_id) } +inline const ChangeReplicasTrigger* ChangeReplicasTrigger::internal_default_instance() { + return &ChangeReplicasTrigger_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -2905,35 +2888,30 @@ const int ModifiedSpanTrigger::kNodeLivenessSpanFieldNumber; ModifiedSpanTrigger::ModifiedSpanTrigger() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.ModifiedSpanTrigger) } void ModifiedSpanTrigger::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER node_liveness_span_ = const_cast< ::cockroach::roachpb::Span*>( ::cockroach::roachpb::Span::internal_default_instance()); -#else - node_liveness_span_ = const_cast< ::cockroach::roachpb::Span*>(&::cockroach::roachpb::Span::default_instance()); -#endif } ModifiedSpanTrigger::ModifiedSpanTrigger(const ModifiedSpanTrigger& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.ModifiedSpanTrigger) } void ModifiedSpanTrigger::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - system_config_span_ = false; node_liveness_span_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + system_config_span_ = false; } ModifiedSpanTrigger::~ModifiedSpanTrigger() { @@ -2944,11 +2922,7 @@ ModifiedSpanTrigger::~ModifiedSpanTrigger() { void ModifiedSpanTrigger::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &ModifiedSpanTrigger_default_instance_.get()) { delete node_liveness_span_; } } @@ -2959,15 +2933,11 @@ void ModifiedSpanTrigger::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ModifiedSpanTrigger& ModifiedSpanTrigger::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); + return *internal_default_instance(); } -ModifiedSpanTrigger* ModifiedSpanTrigger::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed ModifiedSpanTrigger_default_instance_; ModifiedSpanTrigger* ModifiedSpanTrigger::New(::google::protobuf::Arena* arena) const { ModifiedSpanTrigger* n = new ModifiedSpanTrigger; @@ -2985,7 +2955,7 @@ void ModifiedSpanTrigger::Clear() { if (node_liveness_span_ != NULL) node_liveness_span_->::cockroach::roachpb::Span::Clear(); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2995,7 +2965,7 @@ bool ModifiedSpanTrigger::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForModifiedSpanTrigger, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -3008,10 +2978,10 @@ bool ModifiedSpanTrigger::MergePartialFromCodedStream( // optional bool system_config_span = 1; case 1: { if (tag == 8) { + set_has_system_config_span(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &system_config_span_))); - set_has_system_config_span(); } else { goto handle_unusual; } @@ -3073,9 +3043,9 @@ void ModifiedSpanTrigger::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.ModifiedSpanTrigger) } -int ModifiedSpanTrigger::ByteSize() const { +size_t ModifiedSpanTrigger::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.ModifiedSpanTrigger) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 3u) { // optional bool system_config_span = 1; @@ -3093,8 +3063,9 @@ int ModifiedSpanTrigger::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -3106,9 +3077,15 @@ void ModifiedSpanTrigger::CheckTypeAndMergeFrom( void ModifiedSpanTrigger::MergeFrom(const ModifiedSpanTrigger& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.ModifiedSpanTrigger) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void ModifiedSpanTrigger::UnsafeMergeFrom(const ModifiedSpanTrigger& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_system_config_span()) { set_system_config_span(from.system_config_span()); @@ -3126,7 +3103,7 @@ void ModifiedSpanTrigger::CopyFrom(const ModifiedSpanTrigger& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.ModifiedSpanTrigger) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool ModifiedSpanTrigger::IsInitialized() const { @@ -3167,11 +3144,11 @@ void ModifiedSpanTrigger::clear_system_config_span() { system_config_span_ = false; clear_has_system_config_span(); } - bool ModifiedSpanTrigger::system_config_span() const { +bool ModifiedSpanTrigger::system_config_span() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.ModifiedSpanTrigger.system_config_span) return system_config_span_; } - void ModifiedSpanTrigger::set_system_config_span(bool value) { +void ModifiedSpanTrigger::set_system_config_span(bool value) { set_has_system_config_span(); system_config_span_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.ModifiedSpanTrigger.system_config_span) @@ -3193,11 +3170,8 @@ void ModifiedSpanTrigger::clear_node_liveness_span() { } const ::cockroach::roachpb::Span& ModifiedSpanTrigger::node_liveness_span() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.ModifiedSpanTrigger.node_liveness_span) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return node_liveness_span_ != NULL ? *node_liveness_span_ : *default_instance().node_liveness_span_; -#else - return node_liveness_span_ != NULL ? *node_liveness_span_ : *default_instance_->node_liveness_span_; -#endif + return node_liveness_span_ != NULL ? *node_liveness_span_ + : *::cockroach::roachpb::Span::internal_default_instance(); } ::cockroach::roachpb::Span* ModifiedSpanTrigger::mutable_node_liveness_span() { set_has_node_liveness_span(); @@ -3225,6 +3199,9 @@ void ModifiedSpanTrigger::set_allocated_node_liveness_span(::cockroach::roachpb: // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.ModifiedSpanTrigger.node_liveness_span) } +inline const ModifiedSpanTrigger* ModifiedSpanTrigger::internal_default_instance() { + return &ModifiedSpanTrigger_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -3243,47 +3220,31 @@ const int InternalCommitTrigger::kModifiedSpanTriggerFieldNumber; InternalCommitTrigger::InternalCommitTrigger() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.InternalCommitTrigger) } void InternalCommitTrigger::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER split_trigger_ = const_cast< ::cockroach::roachpb::SplitTrigger*>( ::cockroach::roachpb::SplitTrigger::internal_default_instance()); -#else - split_trigger_ = const_cast< ::cockroach::roachpb::SplitTrigger*>(&::cockroach::roachpb::SplitTrigger::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER merge_trigger_ = const_cast< ::cockroach::roachpb::MergeTrigger*>( ::cockroach::roachpb::MergeTrigger::internal_default_instance()); -#else - merge_trigger_ = const_cast< ::cockroach::roachpb::MergeTrigger*>(&::cockroach::roachpb::MergeTrigger::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER change_replicas_trigger_ = const_cast< ::cockroach::roachpb::ChangeReplicasTrigger*>( ::cockroach::roachpb::ChangeReplicasTrigger::internal_default_instance()); -#else - change_replicas_trigger_ = const_cast< ::cockroach::roachpb::ChangeReplicasTrigger*>(&::cockroach::roachpb::ChangeReplicasTrigger::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER modified_span_trigger_ = const_cast< ::cockroach::roachpb::ModifiedSpanTrigger*>( ::cockroach::roachpb::ModifiedSpanTrigger::internal_default_instance()); -#else - modified_span_trigger_ = const_cast< ::cockroach::roachpb::ModifiedSpanTrigger*>(&::cockroach::roachpb::ModifiedSpanTrigger::default_instance()); -#endif } InternalCommitTrigger::InternalCommitTrigger(const InternalCommitTrigger& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.InternalCommitTrigger) } void InternalCommitTrigger::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -3291,7 +3252,6 @@ void InternalCommitTrigger::SharedCtor() { merge_trigger_ = NULL; change_replicas_trigger_ = NULL; modified_span_trigger_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } InternalCommitTrigger::~InternalCommitTrigger() { @@ -3302,11 +3262,7 @@ InternalCommitTrigger::~InternalCommitTrigger() { void InternalCommitTrigger::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &InternalCommitTrigger_default_instance_.get()) { delete split_trigger_; delete merge_trigger_; delete change_replicas_trigger_; @@ -3320,15 +3276,11 @@ void InternalCommitTrigger::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const InternalCommitTrigger& InternalCommitTrigger::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); + return *internal_default_instance(); } -InternalCommitTrigger* InternalCommitTrigger::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed InternalCommitTrigger_default_instance_; InternalCommitTrigger* InternalCommitTrigger::New(::google::protobuf::Arena* arena) const { InternalCommitTrigger* n = new InternalCommitTrigger; @@ -3354,7 +3306,7 @@ void InternalCommitTrigger::Clear() { if (modified_span_trigger_ != NULL) modified_span_trigger_->::cockroach::roachpb::ModifiedSpanTrigger::Clear(); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -3364,7 +3316,7 @@ bool InternalCommitTrigger::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForInternalCommitTrigger, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -3479,9 +3431,9 @@ void InternalCommitTrigger::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.InternalCommitTrigger) } -int InternalCommitTrigger::ByteSize() const { +size_t InternalCommitTrigger::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.InternalCommitTrigger) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 15u) { // optional .cockroach.roachpb.SplitTrigger split_trigger = 1; @@ -3515,8 +3467,9 @@ int InternalCommitTrigger::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -3528,9 +3481,15 @@ void InternalCommitTrigger::CheckTypeAndMergeFrom( void InternalCommitTrigger::MergeFrom(const InternalCommitTrigger& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.InternalCommitTrigger) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void InternalCommitTrigger::UnsafeMergeFrom(const InternalCommitTrigger& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_split_trigger()) { mutable_split_trigger()->::cockroach::roachpb::SplitTrigger::MergeFrom(from.split_trigger()); @@ -3554,7 +3513,7 @@ void InternalCommitTrigger::CopyFrom(const InternalCommitTrigger& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.InternalCommitTrigger) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool InternalCommitTrigger::IsInitialized() const { @@ -3599,11 +3558,8 @@ void InternalCommitTrigger::clear_split_trigger() { } const ::cockroach::roachpb::SplitTrigger& InternalCommitTrigger::split_trigger() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalCommitTrigger.split_trigger) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return split_trigger_ != NULL ? *split_trigger_ : *default_instance().split_trigger_; -#else - return split_trigger_ != NULL ? *split_trigger_ : *default_instance_->split_trigger_; -#endif + return split_trigger_ != NULL ? *split_trigger_ + : *::cockroach::roachpb::SplitTrigger::internal_default_instance(); } ::cockroach::roachpb::SplitTrigger* InternalCommitTrigger::mutable_split_trigger() { set_has_split_trigger(); @@ -3647,11 +3603,8 @@ void InternalCommitTrigger::clear_merge_trigger() { } const ::cockroach::roachpb::MergeTrigger& InternalCommitTrigger::merge_trigger() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalCommitTrigger.merge_trigger) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return merge_trigger_ != NULL ? *merge_trigger_ : *default_instance().merge_trigger_; -#else - return merge_trigger_ != NULL ? *merge_trigger_ : *default_instance_->merge_trigger_; -#endif + return merge_trigger_ != NULL ? *merge_trigger_ + : *::cockroach::roachpb::MergeTrigger::internal_default_instance(); } ::cockroach::roachpb::MergeTrigger* InternalCommitTrigger::mutable_merge_trigger() { set_has_merge_trigger(); @@ -3695,11 +3648,8 @@ void InternalCommitTrigger::clear_change_replicas_trigger() { } const ::cockroach::roachpb::ChangeReplicasTrigger& InternalCommitTrigger::change_replicas_trigger() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalCommitTrigger.change_replicas_trigger) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return change_replicas_trigger_ != NULL ? *change_replicas_trigger_ : *default_instance().change_replicas_trigger_; -#else - return change_replicas_trigger_ != NULL ? *change_replicas_trigger_ : *default_instance_->change_replicas_trigger_; -#endif + return change_replicas_trigger_ != NULL ? *change_replicas_trigger_ + : *::cockroach::roachpb::ChangeReplicasTrigger::internal_default_instance(); } ::cockroach::roachpb::ChangeReplicasTrigger* InternalCommitTrigger::mutable_change_replicas_trigger() { set_has_change_replicas_trigger(); @@ -3743,11 +3693,8 @@ void InternalCommitTrigger::clear_modified_span_trigger() { } const ::cockroach::roachpb::ModifiedSpanTrigger& InternalCommitTrigger::modified_span_trigger() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalCommitTrigger.modified_span_trigger) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return modified_span_trigger_ != NULL ? *modified_span_trigger_ : *default_instance().modified_span_trigger_; -#else - return modified_span_trigger_ != NULL ? *modified_span_trigger_ : *default_instance_->modified_span_trigger_; -#endif + return modified_span_trigger_ != NULL ? *modified_span_trigger_ + : *::cockroach::roachpb::ModifiedSpanTrigger::internal_default_instance(); } ::cockroach::roachpb::ModifiedSpanTrigger* InternalCommitTrigger::mutable_modified_span_trigger() { set_has_modified_span_trigger(); @@ -3775,6 +3722,9 @@ void InternalCommitTrigger::set_allocated_modified_span_trigger(::cockroach::roa // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.InternalCommitTrigger.modified_span_trigger) } +inline const InternalCommitTrigger* InternalCommitTrigger::internal_default_instance() { + return &InternalCommitTrigger_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -3800,60 +3750,41 @@ const int Transaction::kIntentsFieldNumber; Transaction::Transaction() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.Transaction) } void Transaction::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER meta_ = const_cast< ::cockroach::storage::engine::enginepb::TxnMeta*>( ::cockroach::storage::engine::enginepb::TxnMeta::internal_default_instance()); -#else - meta_ = const_cast< ::cockroach::storage::engine::enginepb::TxnMeta*>(&::cockroach::storage::engine::enginepb::TxnMeta::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER last_heartbeat_ = const_cast< ::cockroach::util::hlc::Timestamp*>( ::cockroach::util::hlc::Timestamp::internal_default_instance()); -#else - last_heartbeat_ = const_cast< ::cockroach::util::hlc::Timestamp*>(&::cockroach::util::hlc::Timestamp::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER orig_timestamp_ = const_cast< ::cockroach::util::hlc::Timestamp*>( ::cockroach::util::hlc::Timestamp::internal_default_instance()); -#else - orig_timestamp_ = const_cast< ::cockroach::util::hlc::Timestamp*>(&::cockroach::util::hlc::Timestamp::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER max_timestamp_ = const_cast< ::cockroach::util::hlc::Timestamp*>( ::cockroach::util::hlc::Timestamp::internal_default_instance()); -#else - max_timestamp_ = const_cast< ::cockroach::util::hlc::Timestamp*>(&::cockroach::util::hlc::Timestamp::default_instance()); -#endif } Transaction::Transaction(const Transaction& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.Transaction) } void Transaction::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - meta_ = NULL; name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - status_ = 0; + meta_ = NULL; last_heartbeat_ = NULL; orig_timestamp_ = NULL; max_timestamp_ = NULL; - writing_ = false; - write_too_old_ = false; - retry_on_push_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::memset(&status_, 0, reinterpret_cast(&retry_on_push_) - + reinterpret_cast(&status_) + sizeof(retry_on_push_)); } Transaction::~Transaction() { @@ -3865,11 +3796,7 @@ void Transaction::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &Transaction_default_instance_.get()) { delete meta_; delete last_heartbeat_; delete orig_timestamp_; @@ -3883,15 +3810,11 @@ void Transaction::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const Transaction& Transaction::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); + return *internal_default_instance(); } -Transaction* Transaction::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed Transaction_default_instance_; Transaction* Transaction::New(::google::protobuf::Arena* arena) const { Transaction* n = new Transaction; @@ -3915,7 +3838,7 @@ void Transaction::Clear() { #endif #define ZR_(first, last) do {\ - ::memset(&first, 0,\ + ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) @@ -3944,7 +3867,7 @@ void Transaction::Clear() { observed_timestamps_.Clear(); intents_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -3954,7 +3877,7 @@ bool Transaction::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForTransaction, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -4076,10 +3999,10 @@ bool Transaction::MergePartialFromCodedStream( case 9: { if (tag == 72) { parse_writing: + set_has_writing(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &writing_))); - set_has_writing(); } else { goto handle_unusual; } @@ -4108,10 +4031,10 @@ bool Transaction::MergePartialFromCodedStream( case 12: { if (tag == 96) { parse_write_too_old: + set_has_write_too_old(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &write_too_old_))); - set_has_write_too_old(); } else { goto handle_unusual; } @@ -4123,10 +4046,10 @@ bool Transaction::MergePartialFromCodedStream( case 13: { if (tag == 104) { parse_retry_on_push: + set_has_retry_on_push(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &retry_on_push_))); - set_has_retry_on_push(); } else { goto handle_unusual; } @@ -4260,9 +4183,9 @@ void Transaction::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.Transaction) } -int Transaction::ByteSize() const { +size_t Transaction::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.Transaction) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 191u) { // optional .cockroach.storage.engine.enginepb.TxnMeta meta = 1; @@ -4325,7 +4248,8 @@ int Transaction::ByteSize() const { } // map observed_timestamps = 8; - total_size += 1 * this->observed_timestamps_size(); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->observed_timestamps_size()); { ::google::protobuf::scoped_ptr entry; for (::google::protobuf::Map< ::google::protobuf::int32, ::cockroach::util::hlc::Timestamp >::const_iterator @@ -4338,17 +4262,21 @@ int Transaction::ByteSize() const { } // repeated .cockroach.roachpb.Span intents = 11; - total_size += 1 * this->intents_size(); - for (int i = 0; i < this->intents_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->intents(i)); + { + unsigned int count = this->intents_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->intents(i)); + } } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -4360,9 +4288,15 @@ void Transaction::CheckTypeAndMergeFrom( void Transaction::MergeFrom(const Transaction& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.Transaction) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void Transaction::UnsafeMergeFrom(const Transaction& from) { + GOOGLE_DCHECK(&from != this); observed_timestamps_.MergeFrom(from.observed_timestamps_); intents_.MergeFrom(from.intents_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -4406,7 +4340,7 @@ void Transaction::CopyFrom(const Transaction& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.Transaction) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool Transaction::IsInitialized() const { @@ -4458,11 +4392,8 @@ void Transaction::clear_meta() { } const ::cockroach::storage::engine::enginepb::TxnMeta& Transaction::meta() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.meta) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return meta_ != NULL ? *meta_ : *default_instance().meta_; -#else - return meta_ != NULL ? *meta_ : *default_instance_->meta_; -#endif + return meta_ != NULL ? *meta_ + : *::cockroach::storage::engine::enginepb::TxnMeta::internal_default_instance(); } ::cockroach::storage::engine::enginepb::TxnMeta* Transaction::mutable_meta() { set_has_meta(); @@ -4504,37 +4435,37 @@ void Transaction::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_name(); } - const ::std::string& Transaction::name() const { +const ::std::string& Transaction::name() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.name) return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void Transaction::set_name(const ::std::string& value) { +void Transaction::set_name(const ::std::string& value) { set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.roachpb.Transaction.name) } - void Transaction::set_name(const char* value) { +void Transaction::set_name(const char* value) { set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Transaction.name) } - void Transaction::set_name(const char* value, size_t size) { +void Transaction::set_name(const char* value, size_t size) { set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Transaction.name) } - ::std::string* Transaction::mutable_name() { +::std::string* Transaction::mutable_name() { set_has_name(); // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Transaction.name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* Transaction::release_name() { +::std::string* Transaction::release_name() { // @@protoc_insertion_point(field_release:cockroach.roachpb.Transaction.name) clear_has_name(); return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void Transaction::set_allocated_name(::std::string* name) { +void Transaction::set_allocated_name(::std::string* name) { if (name != NULL) { set_has_name(); } else { @@ -4558,11 +4489,11 @@ void Transaction::clear_status() { status_ = 0; clear_has_status(); } - ::cockroach::roachpb::TransactionStatus Transaction::status() const { +::cockroach::roachpb::TransactionStatus Transaction::status() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.status) return static_cast< ::cockroach::roachpb::TransactionStatus >(status_); } - void Transaction::set_status(::cockroach::roachpb::TransactionStatus value) { +void Transaction::set_status(::cockroach::roachpb::TransactionStatus value) { assert(::cockroach::roachpb::TransactionStatus_IsValid(value)); set_has_status(); status_ = value; @@ -4585,11 +4516,8 @@ void Transaction::clear_last_heartbeat() { } const ::cockroach::util::hlc::Timestamp& Transaction::last_heartbeat() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.last_heartbeat) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return last_heartbeat_ != NULL ? *last_heartbeat_ : *default_instance().last_heartbeat_; -#else - return last_heartbeat_ != NULL ? *last_heartbeat_ : *default_instance_->last_heartbeat_; -#endif + return last_heartbeat_ != NULL ? *last_heartbeat_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } ::cockroach::util::hlc::Timestamp* Transaction::mutable_last_heartbeat() { set_has_last_heartbeat(); @@ -4633,11 +4561,8 @@ void Transaction::clear_orig_timestamp() { } const ::cockroach::util::hlc::Timestamp& Transaction::orig_timestamp() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.orig_timestamp) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return orig_timestamp_ != NULL ? *orig_timestamp_ : *default_instance().orig_timestamp_; -#else - return orig_timestamp_ != NULL ? *orig_timestamp_ : *default_instance_->orig_timestamp_; -#endif + return orig_timestamp_ != NULL ? *orig_timestamp_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } ::cockroach::util::hlc::Timestamp* Transaction::mutable_orig_timestamp() { set_has_orig_timestamp(); @@ -4681,11 +4606,8 @@ void Transaction::clear_max_timestamp() { } const ::cockroach::util::hlc::Timestamp& Transaction::max_timestamp() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.max_timestamp) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return max_timestamp_ != NULL ? *max_timestamp_ : *default_instance().max_timestamp_; -#else - return max_timestamp_ != NULL ? *max_timestamp_ : *default_instance_->max_timestamp_; -#endif + return max_timestamp_ != NULL ? *max_timestamp_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } ::cockroach::util::hlc::Timestamp* Transaction::mutable_max_timestamp() { set_has_max_timestamp(); @@ -4745,11 +4667,11 @@ void Transaction::clear_writing() { writing_ = false; clear_has_writing(); } - bool Transaction::writing() const { +bool Transaction::writing() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.writing) return writing_; } - void Transaction::set_writing(bool value) { +void Transaction::set_writing(bool value) { set_has_writing(); writing_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.Transaction.writing) @@ -4769,11 +4691,11 @@ void Transaction::clear_write_too_old() { write_too_old_ = false; clear_has_write_too_old(); } - bool Transaction::write_too_old() const { +bool Transaction::write_too_old() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.write_too_old) return write_too_old_; } - void Transaction::set_write_too_old(bool value) { +void Transaction::set_write_too_old(bool value) { set_has_write_too_old(); write_too_old_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.Transaction.write_too_old) @@ -4793,11 +4715,11 @@ void Transaction::clear_retry_on_push() { retry_on_push_ = false; clear_has_retry_on_push(); } - bool Transaction::retry_on_push() const { +bool Transaction::retry_on_push() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.retry_on_push) return retry_on_push_; } - void Transaction::set_retry_on_push(bool value) { +void Transaction::set_retry_on_push(bool value) { set_has_retry_on_push(); retry_on_push_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.Transaction.retry_on_push) @@ -4833,6 +4755,9 @@ Transaction::intents() const { return intents_; } +inline const Transaction* Transaction::internal_default_instance() { + return &Transaction_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -4850,42 +4775,33 @@ const int Intent::kStatusFieldNumber; Intent::Intent() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.Intent) } void Intent::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER span_ = const_cast< ::cockroach::roachpb::Span*>( ::cockroach::roachpb::Span::internal_default_instance()); -#else - span_ = const_cast< ::cockroach::roachpb::Span*>(&::cockroach::roachpb::Span::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER txn_ = const_cast< ::cockroach::storage::engine::enginepb::TxnMeta*>( ::cockroach::storage::engine::enginepb::TxnMeta::internal_default_instance()); -#else - txn_ = const_cast< ::cockroach::storage::engine::enginepb::TxnMeta*>(&::cockroach::storage::engine::enginepb::TxnMeta::default_instance()); -#endif } Intent::Intent(const Intent& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.Intent) } void Intent::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); span_ = NULL; txn_ = NULL; status_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } Intent::~Intent() { @@ -4896,11 +4812,7 @@ Intent::~Intent() { void Intent::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &Intent_default_instance_.get()) { delete span_; delete txn_; } @@ -4912,15 +4824,11 @@ void Intent::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const Intent& Intent::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); + return *internal_default_instance(); } -Intent* Intent::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed Intent_default_instance_; Intent* Intent::New(::google::protobuf::Arena* arena) const { Intent* n = new Intent; @@ -4941,7 +4849,7 @@ void Intent::Clear() { } status_ = 0; } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -4951,7 +4859,7 @@ bool Intent::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForIntent, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -5055,9 +4963,9 @@ void Intent::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.Intent) } -int Intent::ByteSize() const { +size_t Intent::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.Intent) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 7u) { // optional .cockroach.roachpb.Span span = 1; @@ -5083,8 +4991,9 @@ int Intent::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -5096,9 +5005,15 @@ void Intent::CheckTypeAndMergeFrom( void Intent::MergeFrom(const Intent& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.Intent) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void Intent::UnsafeMergeFrom(const Intent& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_span()) { mutable_span()->::cockroach::roachpb::Span::MergeFrom(from.span()); @@ -5119,7 +5034,7 @@ void Intent::CopyFrom(const Intent& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.Intent) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool Intent::IsInitialized() const { @@ -5163,11 +5078,8 @@ void Intent::clear_span() { } const ::cockroach::roachpb::Span& Intent::span() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Intent.span) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return span_ != NULL ? *span_ : *default_instance().span_; -#else - return span_ != NULL ? *span_ : *default_instance_->span_; -#endif + return span_ != NULL ? *span_ + : *::cockroach::roachpb::Span::internal_default_instance(); } ::cockroach::roachpb::Span* Intent::mutable_span() { set_has_span(); @@ -5211,11 +5123,8 @@ void Intent::clear_txn() { } const ::cockroach::storage::engine::enginepb::TxnMeta& Intent::txn() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Intent.txn) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return txn_ != NULL ? *txn_ : *default_instance().txn_; -#else - return txn_ != NULL ? *txn_ : *default_instance_->txn_; -#endif + return txn_ != NULL ? *txn_ + : *::cockroach::storage::engine::enginepb::TxnMeta::internal_default_instance(); } ::cockroach::storage::engine::enginepb::TxnMeta* Intent::mutable_txn() { set_has_txn(); @@ -5257,17 +5166,20 @@ void Intent::clear_status() { status_ = 0; clear_has_status(); } - ::cockroach::roachpb::TransactionStatus Intent::status() const { +::cockroach::roachpb::TransactionStatus Intent::status() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Intent.status) return static_cast< ::cockroach::roachpb::TransactionStatus >(status_); } - void Intent::set_status(::cockroach::roachpb::TransactionStatus value) { +void Intent::set_status(::cockroach::roachpb::TransactionStatus value) { assert(::cockroach::roachpb::TransactionStatus_IsValid(value)); set_has_status(); status_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.Intent.status) } +inline const Intent* Intent::internal_default_instance() { + return &Intent_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -5286,47 +5198,31 @@ const int Lease::kReplicaFieldNumber; Lease::Lease() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.Lease) } void Lease::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER start_ = const_cast< ::cockroach::util::hlc::Timestamp*>( ::cockroach::util::hlc::Timestamp::internal_default_instance()); -#else - start_ = const_cast< ::cockroach::util::hlc::Timestamp*>(&::cockroach::util::hlc::Timestamp::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER start_stasis_ = const_cast< ::cockroach::util::hlc::Timestamp*>( ::cockroach::util::hlc::Timestamp::internal_default_instance()); -#else - start_stasis_ = const_cast< ::cockroach::util::hlc::Timestamp*>(&::cockroach::util::hlc::Timestamp::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER expiration_ = const_cast< ::cockroach::util::hlc::Timestamp*>( ::cockroach::util::hlc::Timestamp::internal_default_instance()); -#else - expiration_ = const_cast< ::cockroach::util::hlc::Timestamp*>(&::cockroach::util::hlc::Timestamp::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER replica_ = const_cast< ::cockroach::roachpb::ReplicaDescriptor*>( ::cockroach::roachpb::ReplicaDescriptor::internal_default_instance()); -#else - replica_ = const_cast< ::cockroach::roachpb::ReplicaDescriptor*>(&::cockroach::roachpb::ReplicaDescriptor::default_instance()); -#endif } Lease::Lease(const Lease& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.Lease) } void Lease::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -5334,7 +5230,6 @@ void Lease::SharedCtor() { start_stasis_ = NULL; expiration_ = NULL; replica_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } Lease::~Lease() { @@ -5345,11 +5240,7 @@ Lease::~Lease() { void Lease::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &Lease_default_instance_.get()) { delete start_; delete start_stasis_; delete expiration_; @@ -5363,15 +5254,11 @@ void Lease::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const Lease& Lease::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); + return *internal_default_instance(); } -Lease* Lease::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed Lease_default_instance_; Lease* Lease::New(::google::protobuf::Arena* arena) const { Lease* n = new Lease; @@ -5397,7 +5284,7 @@ void Lease::Clear() { if (replica_ != NULL) replica_->::cockroach::roachpb::ReplicaDescriptor::Clear(); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -5407,7 +5294,7 @@ bool Lease::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForLease, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -5522,9 +5409,9 @@ void Lease::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.Lease) } -int Lease::ByteSize() const { +size_t Lease::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.Lease) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 15u) { // optional .cockroach.util.hlc.Timestamp start = 1; @@ -5558,8 +5445,9 @@ int Lease::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -5571,9 +5459,15 @@ void Lease::CheckTypeAndMergeFrom( void Lease::MergeFrom(const Lease& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.Lease) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void Lease::UnsafeMergeFrom(const Lease& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_start()) { mutable_start()->::cockroach::util::hlc::Timestamp::MergeFrom(from.start()); @@ -5597,7 +5491,7 @@ void Lease::CopyFrom(const Lease& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.Lease) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool Lease::IsInitialized() const { @@ -5642,11 +5536,8 @@ void Lease::clear_start() { } const ::cockroach::util::hlc::Timestamp& Lease::start() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.start) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return start_ != NULL ? *start_ : *default_instance().start_; -#else - return start_ != NULL ? *start_ : *default_instance_->start_; -#endif + return start_ != NULL ? *start_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } ::cockroach::util::hlc::Timestamp* Lease::mutable_start() { set_has_start(); @@ -5690,11 +5581,8 @@ void Lease::clear_start_stasis() { } const ::cockroach::util::hlc::Timestamp& Lease::start_stasis() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.start_stasis) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return start_stasis_ != NULL ? *start_stasis_ : *default_instance().start_stasis_; -#else - return start_stasis_ != NULL ? *start_stasis_ : *default_instance_->start_stasis_; -#endif + return start_stasis_ != NULL ? *start_stasis_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } ::cockroach::util::hlc::Timestamp* Lease::mutable_start_stasis() { set_has_start_stasis(); @@ -5738,11 +5626,8 @@ void Lease::clear_expiration() { } const ::cockroach::util::hlc::Timestamp& Lease::expiration() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.expiration) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return expiration_ != NULL ? *expiration_ : *default_instance().expiration_; -#else - return expiration_ != NULL ? *expiration_ : *default_instance_->expiration_; -#endif + return expiration_ != NULL ? *expiration_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } ::cockroach::util::hlc::Timestamp* Lease::mutable_expiration() { set_has_expiration(); @@ -5786,11 +5671,8 @@ void Lease::clear_replica() { } const ::cockroach::roachpb::ReplicaDescriptor& Lease::replica() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.replica) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return replica_ != NULL ? *replica_ : *default_instance().replica_; -#else - return replica_ != NULL ? *replica_ : *default_instance_->replica_; -#endif + return replica_ != NULL ? *replica_ + : *::cockroach::roachpb::ReplicaDescriptor::internal_default_instance(); } ::cockroach::roachpb::ReplicaDescriptor* Lease::mutable_replica() { set_has_replica(); @@ -5818,6 +5700,9 @@ void Lease::set_allocated_replica(::cockroach::roachpb::ReplicaDescriptor* repli // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Lease.replica) } +inline const Lease* Lease::internal_default_instance() { + return &Lease_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -5835,36 +5720,31 @@ const int AbortCacheEntry::kPriorityFieldNumber; AbortCacheEntry::AbortCacheEntry() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.AbortCacheEntry) } void AbortCacheEntry::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER timestamp_ = const_cast< ::cockroach::util::hlc::Timestamp*>( ::cockroach::util::hlc::Timestamp::internal_default_instance()); -#else - timestamp_ = const_cast< ::cockroach::util::hlc::Timestamp*>(&::cockroach::util::hlc::Timestamp::default_instance()); -#endif } AbortCacheEntry::AbortCacheEntry(const AbortCacheEntry& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.AbortCacheEntry) } void AbortCacheEntry::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); timestamp_ = NULL; priority_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } AbortCacheEntry::~AbortCacheEntry() { @@ -5876,11 +5756,7 @@ void AbortCacheEntry::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &AbortCacheEntry_default_instance_.get()) { delete timestamp_; } } @@ -5891,15 +5767,11 @@ void AbortCacheEntry::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const AbortCacheEntry& AbortCacheEntry::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); + return *internal_default_instance(); } -AbortCacheEntry* AbortCacheEntry::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed AbortCacheEntry_default_instance_; AbortCacheEntry* AbortCacheEntry::New(::google::protobuf::Arena* arena) const { AbortCacheEntry* n = new AbortCacheEntry; @@ -5920,7 +5792,7 @@ void AbortCacheEntry::Clear() { } priority_ = 0; } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -5930,7 +5802,7 @@ bool AbortCacheEntry::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForAbortCacheEntry, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -5969,10 +5841,10 @@ bool AbortCacheEntry::MergePartialFromCodedStream( case 3: { if (tag == 24) { parse_priority: + set_has_priority(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &priority_))); - set_has_priority(); } else { goto handle_unusual; } @@ -6027,9 +5899,9 @@ void AbortCacheEntry::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.AbortCacheEntry) } -int AbortCacheEntry::ByteSize() const { +size_t AbortCacheEntry::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.AbortCacheEntry) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 7u) { // optional bytes key = 1; @@ -6056,8 +5928,9 @@ int AbortCacheEntry::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -6069,9 +5942,15 @@ void AbortCacheEntry::CheckTypeAndMergeFrom( void AbortCacheEntry::MergeFrom(const AbortCacheEntry& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.AbortCacheEntry) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void AbortCacheEntry::UnsafeMergeFrom(const AbortCacheEntry& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_key()) { set_has_key(); @@ -6093,7 +5972,7 @@ void AbortCacheEntry::CopyFrom(const AbortCacheEntry& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.AbortCacheEntry) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool AbortCacheEntry::IsInitialized() const { @@ -6135,37 +6014,37 @@ void AbortCacheEntry::clear_key() { key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_key(); } - const ::std::string& AbortCacheEntry::key() const { +const ::std::string& AbortCacheEntry::key() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.AbortCacheEntry.key) return key_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void AbortCacheEntry::set_key(const ::std::string& value) { +void AbortCacheEntry::set_key(const ::std::string& value) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.roachpb.AbortCacheEntry.key) } - void AbortCacheEntry::set_key(const char* value) { +void AbortCacheEntry::set_key(const char* value) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.roachpb.AbortCacheEntry.key) } - void AbortCacheEntry::set_key(const void* value, size_t size) { +void AbortCacheEntry::set_key(const void* value, size_t size) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.AbortCacheEntry.key) } - ::std::string* AbortCacheEntry::mutable_key() { +::std::string* AbortCacheEntry::mutable_key() { set_has_key(); // @@protoc_insertion_point(field_mutable:cockroach.roachpb.AbortCacheEntry.key) return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* AbortCacheEntry::release_key() { +::std::string* AbortCacheEntry::release_key() { // @@protoc_insertion_point(field_release:cockroach.roachpb.AbortCacheEntry.key) clear_has_key(); return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void AbortCacheEntry::set_allocated_key(::std::string* key) { +void AbortCacheEntry::set_allocated_key(::std::string* key) { if (key != NULL) { set_has_key(); } else { @@ -6191,11 +6070,8 @@ void AbortCacheEntry::clear_timestamp() { } const ::cockroach::util::hlc::Timestamp& AbortCacheEntry::timestamp() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.AbortCacheEntry.timestamp) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return timestamp_ != NULL ? *timestamp_ : *default_instance().timestamp_; -#else - return timestamp_ != NULL ? *timestamp_ : *default_instance_->timestamp_; -#endif + return timestamp_ != NULL ? *timestamp_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } ::cockroach::util::hlc::Timestamp* AbortCacheEntry::mutable_timestamp() { set_has_timestamp(); @@ -6237,16 +6113,19 @@ void AbortCacheEntry::clear_priority() { priority_ = 0; clear_has_priority(); } - ::google::protobuf::int32 AbortCacheEntry::priority() const { +::google::protobuf::int32 AbortCacheEntry::priority() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.AbortCacheEntry.priority) return priority_; } - void AbortCacheEntry::set_priority(::google::protobuf::int32 value) { +void AbortCacheEntry::set_priority(::google::protobuf::int32 value) { set_has_priority(); priority_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.AbortCacheEntry.priority) } +inline const AbortCacheEntry* AbortCacheEntry::internal_default_instance() { + return &AbortCacheEntry_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) diff --git a/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/data.pb.h b/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/data.pb.h index edf8d83a8c49..b9f9e78c1146 100644 --- a/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/data.pb.h +++ b/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/data.pb.h @@ -8,12 +8,12 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3000000 +#if GOOGLE_PROTOBUF_VERSION < 3001000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -38,6 +38,7 @@ namespace roachpb { // Internal implementation detail -- do not call these. void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); +void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto(); @@ -119,15 +120,7 @@ class Span : public ::google::protobuf::MessageLite /* @@protoc_insertion_point( static const Span& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const Span* internal_default_instance() { - return default_instance_; - } - #endif + static const Span* internal_default_instance(); void Swap(Span* other); @@ -142,7 +135,7 @@ class Span : public ::google::protobuf::MessageLite /* @@protoc_insertion_point( void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -154,6 +147,7 @@ class Span : public ::google::protobuf::MessageLite /* @@protoc_insertion_point( void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(Span* other); + void UnsafeMergeFrom(const Span& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -203,21 +197,19 @@ class Span : public ::google::protobuf::MessageLite /* @@protoc_insertion_point( ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::internal::ArenaStringPtr key_; ::google::protobuf::internal::ArenaStringPtr end_key_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void InitAsDefaultInstance(); - static Span* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed Span_default_instance_; + // ------------------------------------------------------------------- class Value : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Value) */ { @@ -244,15 +236,7 @@ class Value : public ::google::protobuf::MessageLite /* @@protoc_insertion_point static const Value& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const Value* internal_default_instance() { - return default_instance_; - } - #endif + static const Value* internal_default_instance(); void Swap(Value* other); @@ -267,7 +251,7 @@ class Value : public ::google::protobuf::MessageLite /* @@protoc_insertion_point void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -279,6 +263,7 @@ class Value : public ::google::protobuf::MessageLite /* @@protoc_insertion_point void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(Value* other); + void UnsafeMergeFrom(const Value& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -325,21 +310,19 @@ class Value : public ::google::protobuf::MessageLite /* @@protoc_insertion_point ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::internal::ArenaStringPtr raw_bytes_; ::cockroach::util::hlc::Timestamp* timestamp_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void InitAsDefaultInstance(); - static Value* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed Value_default_instance_; + // ------------------------------------------------------------------- class KeyValue : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.KeyValue) */ { @@ -366,15 +349,7 @@ class KeyValue : public ::google::protobuf::MessageLite /* @@protoc_insertion_po static const KeyValue& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const KeyValue* internal_default_instance() { - return default_instance_; - } - #endif + static const KeyValue* internal_default_instance(); void Swap(KeyValue* other); @@ -389,7 +364,7 @@ class KeyValue : public ::google::protobuf::MessageLite /* @@protoc_insertion_po void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -401,6 +376,7 @@ class KeyValue : public ::google::protobuf::MessageLite /* @@protoc_insertion_po void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(KeyValue* other); + void UnsafeMergeFrom(const KeyValue& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -447,21 +423,19 @@ class KeyValue : public ::google::protobuf::MessageLite /* @@protoc_insertion_po ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::internal::ArenaStringPtr key_; ::cockroach::roachpb::Value* value_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void InitAsDefaultInstance(); - static KeyValue* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed KeyValue_default_instance_; + // ------------------------------------------------------------------- class StoreIdent : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.StoreIdent) */ { @@ -488,15 +462,7 @@ class StoreIdent : public ::google::protobuf::MessageLite /* @@protoc_insertion_ static const StoreIdent& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const StoreIdent* internal_default_instance() { - return default_instance_; - } - #endif + static const StoreIdent* internal_default_instance(); void Swap(StoreIdent* other); @@ -511,7 +477,7 @@ class StoreIdent : public ::google::protobuf::MessageLite /* @@protoc_insertion_ void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -523,6 +489,7 @@ class StoreIdent : public ::google::protobuf::MessageLite /* @@protoc_insertion_ void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(StoreIdent* other); + void UnsafeMergeFrom(const StoreIdent& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -576,22 +543,20 @@ class StoreIdent : public ::google::protobuf::MessageLite /* @@protoc_insertion_ ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::internal::ArenaStringPtr cluster_id_; ::google::protobuf::int32 node_id_; ::google::protobuf::int32 store_id_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void InitAsDefaultInstance(); - static StoreIdent* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed StoreIdent_default_instance_; + // ------------------------------------------------------------------- class SplitTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.SplitTrigger) */ { @@ -618,15 +583,7 @@ class SplitTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertio static const SplitTrigger& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const SplitTrigger* internal_default_instance() { - return default_instance_; - } - #endif + static const SplitTrigger* internal_default_instance(); void Swap(SplitTrigger* other); @@ -641,7 +598,7 @@ class SplitTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertio void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -653,6 +610,7 @@ class SplitTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertio void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(SplitTrigger* other); + void UnsafeMergeFrom(const SplitTrigger& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -696,21 +654,19 @@ class SplitTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertio ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::cockroach::roachpb::RangeDescriptor* left_desc_; ::cockroach::roachpb::RangeDescriptor* right_desc_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void InitAsDefaultInstance(); - static SplitTrigger* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed SplitTrigger_default_instance_; + // ------------------------------------------------------------------- class MergeTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.MergeTrigger) */ { @@ -737,15 +693,7 @@ class MergeTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertio static const MergeTrigger& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const MergeTrigger* internal_default_instance() { - return default_instance_; - } - #endif + static const MergeTrigger* internal_default_instance(); void Swap(MergeTrigger* other); @@ -760,7 +708,7 @@ class MergeTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertio void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -772,6 +720,7 @@ class MergeTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertio void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(MergeTrigger* other); + void UnsafeMergeFrom(const MergeTrigger& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -815,21 +764,19 @@ class MergeTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertio ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::cockroach::roachpb::RangeDescriptor* left_desc_; ::cockroach::roachpb::RangeDescriptor* right_desc_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void InitAsDefaultInstance(); - static MergeTrigger* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed MergeTrigger_default_instance_; + // ------------------------------------------------------------------- class ChangeReplicasTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ChangeReplicasTrigger) */ { @@ -856,15 +803,7 @@ class ChangeReplicasTrigger : public ::google::protobuf::MessageLite /* @@protoc static const ChangeReplicasTrigger& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const ChangeReplicasTrigger* internal_default_instance() { - return default_instance_; - } - #endif + static const ChangeReplicasTrigger* internal_default_instance(); void Swap(ChangeReplicasTrigger* other); @@ -879,7 +818,7 @@ class ChangeReplicasTrigger : public ::google::protobuf::MessageLite /* @@protoc void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -891,6 +830,7 @@ class ChangeReplicasTrigger : public ::google::protobuf::MessageLite /* @@protoc void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(ChangeReplicasTrigger* other); + void UnsafeMergeFrom(const ChangeReplicasTrigger& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -953,23 +893,21 @@ class ChangeReplicasTrigger : public ::google::protobuf::MessageLite /* @@protoc ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; + ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor > updated_replicas_; ::cockroach::roachpb::ReplicaDescriptor* replica_; int change_type_; ::google::protobuf::int32 next_replica_id_; - ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor > updated_replicas_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void InitAsDefaultInstance(); - static ChangeReplicasTrigger* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed ChangeReplicasTrigger_default_instance_; + // ------------------------------------------------------------------- class ModifiedSpanTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ModifiedSpanTrigger) */ { @@ -996,15 +934,7 @@ class ModifiedSpanTrigger : public ::google::protobuf::MessageLite /* @@protoc_i static const ModifiedSpanTrigger& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const ModifiedSpanTrigger* internal_default_instance() { - return default_instance_; - } - #endif + static const ModifiedSpanTrigger* internal_default_instance(); void Swap(ModifiedSpanTrigger* other); @@ -1019,7 +949,7 @@ class ModifiedSpanTrigger : public ::google::protobuf::MessageLite /* @@protoc_i void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -1031,6 +961,7 @@ class ModifiedSpanTrigger : public ::google::protobuf::MessageLite /* @@protoc_i void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(ModifiedSpanTrigger* other); + void UnsafeMergeFrom(const ModifiedSpanTrigger& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -1072,21 +1003,19 @@ class ModifiedSpanTrigger : public ::google::protobuf::MessageLite /* @@protoc_i ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::cockroach::roachpb::Span* node_liveness_span_; bool system_config_span_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void InitAsDefaultInstance(); - static ModifiedSpanTrigger* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed ModifiedSpanTrigger_default_instance_; + // ------------------------------------------------------------------- class InternalCommitTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.InternalCommitTrigger) */ { @@ -1113,15 +1042,7 @@ class InternalCommitTrigger : public ::google::protobuf::MessageLite /* @@protoc static const InternalCommitTrigger& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const InternalCommitTrigger* internal_default_instance() { - return default_instance_; - } - #endif + static const InternalCommitTrigger* internal_default_instance(); void Swap(InternalCommitTrigger* other); @@ -1136,7 +1057,7 @@ class InternalCommitTrigger : public ::google::protobuf::MessageLite /* @@protoc void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -1148,6 +1069,7 @@ class InternalCommitTrigger : public ::google::protobuf::MessageLite /* @@protoc void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(InternalCommitTrigger* other); + void UnsafeMergeFrom(const InternalCommitTrigger& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -1213,23 +1135,21 @@ class InternalCommitTrigger : public ::google::protobuf::MessageLite /* @@protoc ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::cockroach::roachpb::SplitTrigger* split_trigger_; ::cockroach::roachpb::MergeTrigger* merge_trigger_; ::cockroach::roachpb::ChangeReplicasTrigger* change_replicas_trigger_; ::cockroach::roachpb::ModifiedSpanTrigger* modified_span_trigger_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void InitAsDefaultInstance(); - static InternalCommitTrigger* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed InternalCommitTrigger_default_instance_; + // ------------------------------------------------------------------- class Transaction : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Transaction) */ { @@ -1256,15 +1176,7 @@ class Transaction : public ::google::protobuf::MessageLite /* @@protoc_insertion static const Transaction& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const Transaction* internal_default_instance() { - return default_instance_; - } - #endif + static const Transaction* internal_default_instance(); void Swap(Transaction* other); @@ -1279,7 +1191,7 @@ class Transaction : public ::google::protobuf::MessageLite /* @@protoc_insertion void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -1291,6 +1203,7 @@ class Transaction : public ::google::protobuf::MessageLite /* @@protoc_insertion void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(Transaction* other); + void UnsafeMergeFrom(const Transaction& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -1428,13 +1341,8 @@ class Transaction : public ::google::protobuf::MessageLite /* @@protoc_insertion ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; - ::cockroach::storage::engine::enginepb::TxnMeta* meta_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::cockroach::util::hlc::Timestamp* last_heartbeat_; - ::cockroach::util::hlc::Timestamp* orig_timestamp_; - ::cockroach::util::hlc::Timestamp* max_timestamp_; typedef ::google::protobuf::internal::MapEntryLite< ::google::protobuf::int32, ::cockroach::util::hlc::Timestamp, ::google::protobuf::internal::WireFormatLite::TYPE_INT32, @@ -1446,22 +1354,25 @@ class Transaction : public ::google::protobuf::MessageLite /* @@protoc_insertion ::google::protobuf::internal::WireFormatLite::TYPE_INT32, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0 > observed_timestamps_; + ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span > intents_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::cockroach::storage::engine::enginepb::TxnMeta* meta_; + ::cockroach::util::hlc::Timestamp* last_heartbeat_; + ::cockroach::util::hlc::Timestamp* orig_timestamp_; + ::cockroach::util::hlc::Timestamp* max_timestamp_; int status_; bool writing_; bool write_too_old_; bool retry_on_push_; - ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span > intents_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void InitAsDefaultInstance(); - static Transaction* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed Transaction_default_instance_; + // ------------------------------------------------------------------- class Intent : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Intent) */ { @@ -1488,15 +1399,7 @@ class Intent : public ::google::protobuf::MessageLite /* @@protoc_insertion_poin static const Intent& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const Intent* internal_default_instance() { - return default_instance_; - } - #endif + static const Intent* internal_default_instance(); void Swap(Intent* other); @@ -1511,7 +1414,7 @@ class Intent : public ::google::protobuf::MessageLite /* @@protoc_insertion_poin void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -1523,6 +1426,7 @@ class Intent : public ::google::protobuf::MessageLite /* @@protoc_insertion_poin void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(Intent* other); + void UnsafeMergeFrom(const Intent& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -1575,22 +1479,20 @@ class Intent : public ::google::protobuf::MessageLite /* @@protoc_insertion_poin ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::cockroach::roachpb::Span* span_; ::cockroach::storage::engine::enginepb::TxnMeta* txn_; int status_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void InitAsDefaultInstance(); - static Intent* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed Intent_default_instance_; + // ------------------------------------------------------------------- class Lease : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Lease) */ { @@ -1617,15 +1519,7 @@ class Lease : public ::google::protobuf::MessageLite /* @@protoc_insertion_point static const Lease& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const Lease* internal_default_instance() { - return default_instance_; - } - #endif + static const Lease* internal_default_instance(); void Swap(Lease* other); @@ -1640,7 +1534,7 @@ class Lease : public ::google::protobuf::MessageLite /* @@protoc_insertion_point void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -1652,6 +1546,7 @@ class Lease : public ::google::protobuf::MessageLite /* @@protoc_insertion_point void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(Lease* other); + void UnsafeMergeFrom(const Lease& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -1717,23 +1612,21 @@ class Lease : public ::google::protobuf::MessageLite /* @@protoc_insertion_point ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::cockroach::util::hlc::Timestamp* start_; ::cockroach::util::hlc::Timestamp* start_stasis_; ::cockroach::util::hlc::Timestamp* expiration_; ::cockroach::roachpb::ReplicaDescriptor* replica_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void InitAsDefaultInstance(); - static Lease* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed Lease_default_instance_; + // ------------------------------------------------------------------- class AbortCacheEntry : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.AbortCacheEntry) */ { @@ -1760,15 +1653,7 @@ class AbortCacheEntry : public ::google::protobuf::MessageLite /* @@protoc_inser static const AbortCacheEntry& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const AbortCacheEntry* internal_default_instance() { - return default_instance_; - } - #endif + static const AbortCacheEntry* internal_default_instance(); void Swap(AbortCacheEntry* other); @@ -1783,7 +1668,7 @@ class AbortCacheEntry : public ::google::protobuf::MessageLite /* @@protoc_inser void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -1795,6 +1680,7 @@ class AbortCacheEntry : public ::google::protobuf::MessageLite /* @@protoc_inser void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(AbortCacheEntry* other); + void UnsafeMergeFrom(const AbortCacheEntry& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -1850,22 +1736,20 @@ class AbortCacheEntry : public ::google::protobuf::MessageLite /* @@protoc_inser ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::internal::ArenaStringPtr key_; ::cockroach::util::hlc::Timestamp* timestamp_; ::google::protobuf::int32 priority_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fdata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fdata_2eproto(); void InitAsDefaultInstance(); - static AbortCacheEntry* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed AbortCacheEntry_default_instance_; + // =================================================================== @@ -1982,6 +1866,9 @@ inline void Span::set_allocated_end_key(::std::string* end_key) { // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Span.end_key) } +inline const Span* Span::internal_default_instance() { + return &Span_default_instance_.get(); +} // ------------------------------------------------------------------- // Value @@ -2056,11 +1943,8 @@ inline void Value::clear_timestamp() { } inline const ::cockroach::util::hlc::Timestamp& Value::timestamp() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Value.timestamp) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return timestamp_ != NULL ? *timestamp_ : *default_instance().timestamp_; -#else - return timestamp_ != NULL ? *timestamp_ : *default_instance_->timestamp_; -#endif + return timestamp_ != NULL ? *timestamp_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } inline ::cockroach::util::hlc::Timestamp* Value::mutable_timestamp() { set_has_timestamp(); @@ -2088,6 +1972,9 @@ inline void Value::set_allocated_timestamp(::cockroach::util::hlc::Timestamp* ti // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Value.timestamp) } +inline const Value* Value::internal_default_instance() { + return &Value_default_instance_.get(); +} // ------------------------------------------------------------------- // KeyValue @@ -2162,11 +2049,8 @@ inline void KeyValue::clear_value() { } inline const ::cockroach::roachpb::Value& KeyValue::value() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.KeyValue.value) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return value_ != NULL ? *value_ : *default_instance().value_; -#else - return value_ != NULL ? *value_ : *default_instance_->value_; -#endif + return value_ != NULL ? *value_ + : *::cockroach::roachpb::Value::internal_default_instance(); } inline ::cockroach::roachpb::Value* KeyValue::mutable_value() { set_has_value(); @@ -2194,6 +2078,9 @@ inline void KeyValue::set_allocated_value(::cockroach::roachpb::Value* value) { // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.KeyValue.value) } +inline const KeyValue* KeyValue::internal_default_instance() { + return &KeyValue_default_instance_.get(); +} // ------------------------------------------------------------------- // StoreIdent @@ -2300,6 +2187,9 @@ inline void StoreIdent::set_store_id(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreIdent.store_id) } +inline const StoreIdent* StoreIdent::internal_default_instance() { + return &StoreIdent_default_instance_.get(); +} // ------------------------------------------------------------------- // SplitTrigger @@ -2320,11 +2210,8 @@ inline void SplitTrigger::clear_left_desc() { } inline const ::cockroach::roachpb::RangeDescriptor& SplitTrigger::left_desc() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.SplitTrigger.left_desc) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return left_desc_ != NULL ? *left_desc_ : *default_instance().left_desc_; -#else - return left_desc_ != NULL ? *left_desc_ : *default_instance_->left_desc_; -#endif + return left_desc_ != NULL ? *left_desc_ + : *::cockroach::roachpb::RangeDescriptor::internal_default_instance(); } inline ::cockroach::roachpb::RangeDescriptor* SplitTrigger::mutable_left_desc() { set_has_left_desc(); @@ -2368,11 +2255,8 @@ inline void SplitTrigger::clear_right_desc() { } inline const ::cockroach::roachpb::RangeDescriptor& SplitTrigger::right_desc() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.SplitTrigger.right_desc) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return right_desc_ != NULL ? *right_desc_ : *default_instance().right_desc_; -#else - return right_desc_ != NULL ? *right_desc_ : *default_instance_->right_desc_; -#endif + return right_desc_ != NULL ? *right_desc_ + : *::cockroach::roachpb::RangeDescriptor::internal_default_instance(); } inline ::cockroach::roachpb::RangeDescriptor* SplitTrigger::mutable_right_desc() { set_has_right_desc(); @@ -2400,6 +2284,9 @@ inline void SplitTrigger::set_allocated_right_desc(::cockroach::roachpb::RangeDe // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.SplitTrigger.right_desc) } +inline const SplitTrigger* SplitTrigger::internal_default_instance() { + return &SplitTrigger_default_instance_.get(); +} // ------------------------------------------------------------------- // MergeTrigger @@ -2420,11 +2307,8 @@ inline void MergeTrigger::clear_left_desc() { } inline const ::cockroach::roachpb::RangeDescriptor& MergeTrigger::left_desc() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.MergeTrigger.left_desc) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return left_desc_ != NULL ? *left_desc_ : *default_instance().left_desc_; -#else - return left_desc_ != NULL ? *left_desc_ : *default_instance_->left_desc_; -#endif + return left_desc_ != NULL ? *left_desc_ + : *::cockroach::roachpb::RangeDescriptor::internal_default_instance(); } inline ::cockroach::roachpb::RangeDescriptor* MergeTrigger::mutable_left_desc() { set_has_left_desc(); @@ -2468,11 +2352,8 @@ inline void MergeTrigger::clear_right_desc() { } inline const ::cockroach::roachpb::RangeDescriptor& MergeTrigger::right_desc() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.MergeTrigger.right_desc) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return right_desc_ != NULL ? *right_desc_ : *default_instance().right_desc_; -#else - return right_desc_ != NULL ? *right_desc_ : *default_instance_->right_desc_; -#endif + return right_desc_ != NULL ? *right_desc_ + : *::cockroach::roachpb::RangeDescriptor::internal_default_instance(); } inline ::cockroach::roachpb::RangeDescriptor* MergeTrigger::mutable_right_desc() { set_has_right_desc(); @@ -2500,6 +2381,9 @@ inline void MergeTrigger::set_allocated_right_desc(::cockroach::roachpb::RangeDe // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.MergeTrigger.right_desc) } +inline const MergeTrigger* MergeTrigger::internal_default_instance() { + return &MergeTrigger_default_instance_.get(); +} // ------------------------------------------------------------------- // ChangeReplicasTrigger @@ -2545,11 +2429,8 @@ inline void ChangeReplicasTrigger::clear_replica() { } inline const ::cockroach::roachpb::ReplicaDescriptor& ChangeReplicasTrigger::replica() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.ChangeReplicasTrigger.replica) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return replica_ != NULL ? *replica_ : *default_instance().replica_; -#else - return replica_ != NULL ? *replica_ : *default_instance_->replica_; -#endif + return replica_ != NULL ? *replica_ + : *::cockroach::roachpb::ReplicaDescriptor::internal_default_instance(); } inline ::cockroach::roachpb::ReplicaDescriptor* ChangeReplicasTrigger::mutable_replica() { set_has_replica(); @@ -2631,6 +2512,9 @@ inline void ChangeReplicasTrigger::set_next_replica_id(::google::protobuf::int32 // @@protoc_insertion_point(field_set:cockroach.roachpb.ChangeReplicasTrigger.next_replica_id) } +inline const ChangeReplicasTrigger* ChangeReplicasTrigger::internal_default_instance() { + return &ChangeReplicasTrigger_default_instance_.get(); +} // ------------------------------------------------------------------- // ModifiedSpanTrigger @@ -2675,11 +2559,8 @@ inline void ModifiedSpanTrigger::clear_node_liveness_span() { } inline const ::cockroach::roachpb::Span& ModifiedSpanTrigger::node_liveness_span() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.ModifiedSpanTrigger.node_liveness_span) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return node_liveness_span_ != NULL ? *node_liveness_span_ : *default_instance().node_liveness_span_; -#else - return node_liveness_span_ != NULL ? *node_liveness_span_ : *default_instance_->node_liveness_span_; -#endif + return node_liveness_span_ != NULL ? *node_liveness_span_ + : *::cockroach::roachpb::Span::internal_default_instance(); } inline ::cockroach::roachpb::Span* ModifiedSpanTrigger::mutable_node_liveness_span() { set_has_node_liveness_span(); @@ -2707,6 +2588,9 @@ inline void ModifiedSpanTrigger::set_allocated_node_liveness_span(::cockroach::r // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.ModifiedSpanTrigger.node_liveness_span) } +inline const ModifiedSpanTrigger* ModifiedSpanTrigger::internal_default_instance() { + return &ModifiedSpanTrigger_default_instance_.get(); +} // ------------------------------------------------------------------- // InternalCommitTrigger @@ -2727,11 +2611,8 @@ inline void InternalCommitTrigger::clear_split_trigger() { } inline const ::cockroach::roachpb::SplitTrigger& InternalCommitTrigger::split_trigger() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalCommitTrigger.split_trigger) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return split_trigger_ != NULL ? *split_trigger_ : *default_instance().split_trigger_; -#else - return split_trigger_ != NULL ? *split_trigger_ : *default_instance_->split_trigger_; -#endif + return split_trigger_ != NULL ? *split_trigger_ + : *::cockroach::roachpb::SplitTrigger::internal_default_instance(); } inline ::cockroach::roachpb::SplitTrigger* InternalCommitTrigger::mutable_split_trigger() { set_has_split_trigger(); @@ -2775,11 +2656,8 @@ inline void InternalCommitTrigger::clear_merge_trigger() { } inline const ::cockroach::roachpb::MergeTrigger& InternalCommitTrigger::merge_trigger() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalCommitTrigger.merge_trigger) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return merge_trigger_ != NULL ? *merge_trigger_ : *default_instance().merge_trigger_; -#else - return merge_trigger_ != NULL ? *merge_trigger_ : *default_instance_->merge_trigger_; -#endif + return merge_trigger_ != NULL ? *merge_trigger_ + : *::cockroach::roachpb::MergeTrigger::internal_default_instance(); } inline ::cockroach::roachpb::MergeTrigger* InternalCommitTrigger::mutable_merge_trigger() { set_has_merge_trigger(); @@ -2823,11 +2701,8 @@ inline void InternalCommitTrigger::clear_change_replicas_trigger() { } inline const ::cockroach::roachpb::ChangeReplicasTrigger& InternalCommitTrigger::change_replicas_trigger() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalCommitTrigger.change_replicas_trigger) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return change_replicas_trigger_ != NULL ? *change_replicas_trigger_ : *default_instance().change_replicas_trigger_; -#else - return change_replicas_trigger_ != NULL ? *change_replicas_trigger_ : *default_instance_->change_replicas_trigger_; -#endif + return change_replicas_trigger_ != NULL ? *change_replicas_trigger_ + : *::cockroach::roachpb::ChangeReplicasTrigger::internal_default_instance(); } inline ::cockroach::roachpb::ChangeReplicasTrigger* InternalCommitTrigger::mutable_change_replicas_trigger() { set_has_change_replicas_trigger(); @@ -2871,11 +2746,8 @@ inline void InternalCommitTrigger::clear_modified_span_trigger() { } inline const ::cockroach::roachpb::ModifiedSpanTrigger& InternalCommitTrigger::modified_span_trigger() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalCommitTrigger.modified_span_trigger) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return modified_span_trigger_ != NULL ? *modified_span_trigger_ : *default_instance().modified_span_trigger_; -#else - return modified_span_trigger_ != NULL ? *modified_span_trigger_ : *default_instance_->modified_span_trigger_; -#endif + return modified_span_trigger_ != NULL ? *modified_span_trigger_ + : *::cockroach::roachpb::ModifiedSpanTrigger::internal_default_instance(); } inline ::cockroach::roachpb::ModifiedSpanTrigger* InternalCommitTrigger::mutable_modified_span_trigger() { set_has_modified_span_trigger(); @@ -2903,6 +2775,9 @@ inline void InternalCommitTrigger::set_allocated_modified_span_trigger(::cockroa // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.InternalCommitTrigger.modified_span_trigger) } +inline const InternalCommitTrigger* InternalCommitTrigger::internal_default_instance() { + return &InternalCommitTrigger_default_instance_.get(); +} // ------------------------------------------------------------------- // Transaction @@ -2923,11 +2798,8 @@ inline void Transaction::clear_meta() { } inline const ::cockroach::storage::engine::enginepb::TxnMeta& Transaction::meta() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.meta) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return meta_ != NULL ? *meta_ : *default_instance().meta_; -#else - return meta_ != NULL ? *meta_ : *default_instance_->meta_; -#endif + return meta_ != NULL ? *meta_ + : *::cockroach::storage::engine::enginepb::TxnMeta::internal_default_instance(); } inline ::cockroach::storage::engine::enginepb::TxnMeta* Transaction::mutable_meta() { set_has_meta(); @@ -3050,11 +2922,8 @@ inline void Transaction::clear_last_heartbeat() { } inline const ::cockroach::util::hlc::Timestamp& Transaction::last_heartbeat() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.last_heartbeat) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return last_heartbeat_ != NULL ? *last_heartbeat_ : *default_instance().last_heartbeat_; -#else - return last_heartbeat_ != NULL ? *last_heartbeat_ : *default_instance_->last_heartbeat_; -#endif + return last_heartbeat_ != NULL ? *last_heartbeat_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } inline ::cockroach::util::hlc::Timestamp* Transaction::mutable_last_heartbeat() { set_has_last_heartbeat(); @@ -3098,11 +2967,8 @@ inline void Transaction::clear_orig_timestamp() { } inline const ::cockroach::util::hlc::Timestamp& Transaction::orig_timestamp() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.orig_timestamp) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return orig_timestamp_ != NULL ? *orig_timestamp_ : *default_instance().orig_timestamp_; -#else - return orig_timestamp_ != NULL ? *orig_timestamp_ : *default_instance_->orig_timestamp_; -#endif + return orig_timestamp_ != NULL ? *orig_timestamp_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } inline ::cockroach::util::hlc::Timestamp* Transaction::mutable_orig_timestamp() { set_has_orig_timestamp(); @@ -3146,11 +3012,8 @@ inline void Transaction::clear_max_timestamp() { } inline const ::cockroach::util::hlc::Timestamp& Transaction::max_timestamp() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.max_timestamp) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return max_timestamp_ != NULL ? *max_timestamp_ : *default_instance().max_timestamp_; -#else - return max_timestamp_ != NULL ? *max_timestamp_ : *default_instance_->max_timestamp_; -#endif + return max_timestamp_ != NULL ? *max_timestamp_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } inline ::cockroach::util::hlc::Timestamp* Transaction::mutable_max_timestamp() { set_has_max_timestamp(); @@ -3298,6 +3161,9 @@ Transaction::intents() const { return intents_; } +inline const Transaction* Transaction::internal_default_instance() { + return &Transaction_default_instance_.get(); +} // ------------------------------------------------------------------- // Intent @@ -3318,11 +3184,8 @@ inline void Intent::clear_span() { } inline const ::cockroach::roachpb::Span& Intent::span() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Intent.span) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return span_ != NULL ? *span_ : *default_instance().span_; -#else - return span_ != NULL ? *span_ : *default_instance_->span_; -#endif + return span_ != NULL ? *span_ + : *::cockroach::roachpb::Span::internal_default_instance(); } inline ::cockroach::roachpb::Span* Intent::mutable_span() { set_has_span(); @@ -3366,11 +3229,8 @@ inline void Intent::clear_txn() { } inline const ::cockroach::storage::engine::enginepb::TxnMeta& Intent::txn() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Intent.txn) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return txn_ != NULL ? *txn_ : *default_instance().txn_; -#else - return txn_ != NULL ? *txn_ : *default_instance_->txn_; -#endif + return txn_ != NULL ? *txn_ + : *::cockroach::storage::engine::enginepb::TxnMeta::internal_default_instance(); } inline ::cockroach::storage::engine::enginepb::TxnMeta* Intent::mutable_txn() { set_has_txn(); @@ -3423,6 +3283,9 @@ inline void Intent::set_status(::cockroach::roachpb::TransactionStatus value) { // @@protoc_insertion_point(field_set:cockroach.roachpb.Intent.status) } +inline const Intent* Intent::internal_default_instance() { + return &Intent_default_instance_.get(); +} // ------------------------------------------------------------------- // Lease @@ -3443,11 +3306,8 @@ inline void Lease::clear_start() { } inline const ::cockroach::util::hlc::Timestamp& Lease::start() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.start) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return start_ != NULL ? *start_ : *default_instance().start_; -#else - return start_ != NULL ? *start_ : *default_instance_->start_; -#endif + return start_ != NULL ? *start_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } inline ::cockroach::util::hlc::Timestamp* Lease::mutable_start() { set_has_start(); @@ -3491,11 +3351,8 @@ inline void Lease::clear_start_stasis() { } inline const ::cockroach::util::hlc::Timestamp& Lease::start_stasis() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.start_stasis) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return start_stasis_ != NULL ? *start_stasis_ : *default_instance().start_stasis_; -#else - return start_stasis_ != NULL ? *start_stasis_ : *default_instance_->start_stasis_; -#endif + return start_stasis_ != NULL ? *start_stasis_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } inline ::cockroach::util::hlc::Timestamp* Lease::mutable_start_stasis() { set_has_start_stasis(); @@ -3539,11 +3396,8 @@ inline void Lease::clear_expiration() { } inline const ::cockroach::util::hlc::Timestamp& Lease::expiration() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.expiration) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return expiration_ != NULL ? *expiration_ : *default_instance().expiration_; -#else - return expiration_ != NULL ? *expiration_ : *default_instance_->expiration_; -#endif + return expiration_ != NULL ? *expiration_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } inline ::cockroach::util::hlc::Timestamp* Lease::mutable_expiration() { set_has_expiration(); @@ -3587,11 +3441,8 @@ inline void Lease::clear_replica() { } inline const ::cockroach::roachpb::ReplicaDescriptor& Lease::replica() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.replica) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return replica_ != NULL ? *replica_ : *default_instance().replica_; -#else - return replica_ != NULL ? *replica_ : *default_instance_->replica_; -#endif + return replica_ != NULL ? *replica_ + : *::cockroach::roachpb::ReplicaDescriptor::internal_default_instance(); } inline ::cockroach::roachpb::ReplicaDescriptor* Lease::mutable_replica() { set_has_replica(); @@ -3619,6 +3470,9 @@ inline void Lease::set_allocated_replica(::cockroach::roachpb::ReplicaDescriptor // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Lease.replica) } +inline const Lease* Lease::internal_default_instance() { + return &Lease_default_instance_.get(); +} // ------------------------------------------------------------------- // AbortCacheEntry @@ -3693,11 +3547,8 @@ inline void AbortCacheEntry::clear_timestamp() { } inline const ::cockroach::util::hlc::Timestamp& AbortCacheEntry::timestamp() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.AbortCacheEntry.timestamp) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return timestamp_ != NULL ? *timestamp_ : *default_instance().timestamp_; -#else - return timestamp_ != NULL ? *timestamp_ : *default_instance_->timestamp_; -#endif + return timestamp_ != NULL ? *timestamp_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } inline ::cockroach::util::hlc::Timestamp* AbortCacheEntry::mutable_timestamp() { set_has_timestamp(); @@ -3749,6 +3600,9 @@ inline void AbortCacheEntry::set_priority(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:cockroach.roachpb.AbortCacheEntry.priority) } +inline const AbortCacheEntry* AbortCacheEntry::internal_default_instance() { + return &AbortCacheEntry_default_instance_.get(); +} #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- diff --git a/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/internal.pb.cc b/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/internal.pb.cc index fc3566e5a1c0..9cd6e15cf49a 100644 --- a/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/internal.pb.cc +++ b/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/internal.pb.cc @@ -18,44 +18,56 @@ namespace cockroach { namespace roachpb { void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2finternal_2eproto() { - delete InternalTimeSeriesData::default_instance_; - delete InternalTimeSeriesSample::default_instance_; + InternalTimeSeriesData_default_instance_.Shutdown(); + InternalTimeSeriesSample_default_instance_.Shutdown(); } -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto_impl() { +void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2finternal_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#else -void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; + ::google::protobuf::internal::GetEmptyString(); + InternalTimeSeriesData_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + InternalTimeSeriesSample_default_instance_.DefaultConstruct(); + InternalTimeSeriesData_default_instance_.get_mutable()->InitAsDefaultInstance(); + InternalTimeSeriesSample_default_instance_.get_mutable()->InitAsDefaultInstance(); +} + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2finternal_2eproto_once_); +void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2finternal_2eproto() { + ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2finternal_2eproto_once_, + &protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2finternal_2eproto_impl); +} +void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#endif - InternalTimeSeriesData::default_instance_ = new InternalTimeSeriesData(); - InternalTimeSeriesSample::default_instance_ = new InternalTimeSeriesSample(); - InternalTimeSeriesData::default_instance_->InitAsDefaultInstance(); - InternalTimeSeriesSample::default_instance_->InitAsDefaultInstance(); + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2finternal_2eproto(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2finternal_2eproto); } -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto_once_); void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto() { ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto_once_, &protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto_impl); } -#else +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_cockroach_2fpkg_2froachpb_2finternal_2eproto { StaticDescriptorInitializer_cockroach_2fpkg_2froachpb_2finternal_2eproto() { protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto(); } } static_descriptor_initializer_cockroach_2fpkg_2froachpb_2finternal_2eproto_; -#endif +#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + +namespace { + +static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; +static void MergeFromFail(int line) { + ::google::protobuf::internal::MergeFromFail(__FILE__, line); +} + +} // namespace + // =================================================================== @@ -72,6 +84,7 @@ const int InternalTimeSeriesData::kSamplesFieldNumber; InternalTimeSeriesData::InternalTimeSeriesData() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2finternal_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.InternalTimeSeriesData) } @@ -83,18 +96,16 @@ InternalTimeSeriesData::InternalTimeSeriesData(const InternalTimeSeriesData& fro : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.InternalTimeSeriesData) } void InternalTimeSeriesData::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - start_timestamp_nanos_ = GOOGLE_LONGLONG(0); - sample_duration_nanos_ = GOOGLE_LONGLONG(0); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::memset(&start_timestamp_nanos_, 0, reinterpret_cast(&sample_duration_nanos_) - + reinterpret_cast(&start_timestamp_nanos_) + sizeof(sample_duration_nanos_)); } InternalTimeSeriesData::~InternalTimeSeriesData() { @@ -105,12 +116,6 @@ InternalTimeSeriesData::~InternalTimeSeriesData() { void InternalTimeSeriesData::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void InternalTimeSeriesData::SetCachedSize(int size) const { @@ -119,15 +124,11 @@ void InternalTimeSeriesData::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const InternalTimeSeriesData& InternalTimeSeriesData::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2finternal_2eproto(); + return *internal_default_instance(); } -InternalTimeSeriesData* InternalTimeSeriesData::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed InternalTimeSeriesData_default_instance_; InternalTimeSeriesData* InternalTimeSeriesData::New(::google::protobuf::Arena* arena) const { InternalTimeSeriesData* n = new InternalTimeSeriesData; @@ -151,7 +152,7 @@ void InternalTimeSeriesData::Clear() { #endif #define ZR_(first, last) do {\ - ::memset(&first, 0,\ + ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) @@ -161,7 +162,7 @@ void InternalTimeSeriesData::Clear() { #undef ZR_ samples_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -171,7 +172,7 @@ bool InternalTimeSeriesData::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForInternalTimeSeriesData, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -184,10 +185,10 @@ bool InternalTimeSeriesData::MergePartialFromCodedStream( // optional int64 start_timestamp_nanos = 1; case 1: { if (tag == 8) { + set_has_start_timestamp_nanos(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &start_timestamp_nanos_))); - set_has_start_timestamp_nanos(); } else { goto handle_unusual; } @@ -199,10 +200,10 @@ bool InternalTimeSeriesData::MergePartialFromCodedStream( case 2: { if (tag == 16) { parse_sample_duration_nanos: + set_has_sample_duration_nanos(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &sample_duration_nanos_))); - set_has_sample_duration_nanos(); } else { goto handle_unusual; } @@ -273,9 +274,9 @@ void InternalTimeSeriesData::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.InternalTimeSeriesData) } -int InternalTimeSeriesData::ByteSize() const { +size_t InternalTimeSeriesData::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.InternalTimeSeriesData) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 3u) { // optional int64 start_timestamp_nanos = 1; @@ -294,17 +295,21 @@ int InternalTimeSeriesData::ByteSize() const { } // repeated .cockroach.roachpb.InternalTimeSeriesSample samples = 3; - total_size += 1 * this->samples_size(); - for (int i = 0; i < this->samples_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->samples(i)); + { + unsigned int count = this->samples_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->samples(i)); + } } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -316,9 +321,15 @@ void InternalTimeSeriesData::CheckTypeAndMergeFrom( void InternalTimeSeriesData::MergeFrom(const InternalTimeSeriesData& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.InternalTimeSeriesData) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void InternalTimeSeriesData::UnsafeMergeFrom(const InternalTimeSeriesData& from) { + GOOGLE_DCHECK(&from != this); samples_.MergeFrom(from.samples_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_start_timestamp_nanos()) { @@ -337,7 +348,7 @@ void InternalTimeSeriesData::CopyFrom(const InternalTimeSeriesData& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.InternalTimeSeriesData) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool InternalTimeSeriesData::IsInitialized() const { @@ -379,11 +390,11 @@ void InternalTimeSeriesData::clear_start_timestamp_nanos() { start_timestamp_nanos_ = GOOGLE_LONGLONG(0); clear_has_start_timestamp_nanos(); } - ::google::protobuf::int64 InternalTimeSeriesData::start_timestamp_nanos() const { +::google::protobuf::int64 InternalTimeSeriesData::start_timestamp_nanos() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalTimeSeriesData.start_timestamp_nanos) return start_timestamp_nanos_; } - void InternalTimeSeriesData::set_start_timestamp_nanos(::google::protobuf::int64 value) { +void InternalTimeSeriesData::set_start_timestamp_nanos(::google::protobuf::int64 value) { set_has_start_timestamp_nanos(); start_timestamp_nanos_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.InternalTimeSeriesData.start_timestamp_nanos) @@ -403,11 +414,11 @@ void InternalTimeSeriesData::clear_sample_duration_nanos() { sample_duration_nanos_ = GOOGLE_LONGLONG(0); clear_has_sample_duration_nanos(); } - ::google::protobuf::int64 InternalTimeSeriesData::sample_duration_nanos() const { +::google::protobuf::int64 InternalTimeSeriesData::sample_duration_nanos() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalTimeSeriesData.sample_duration_nanos) return sample_duration_nanos_; } - void InternalTimeSeriesData::set_sample_duration_nanos(::google::protobuf::int64 value) { +void InternalTimeSeriesData::set_sample_duration_nanos(::google::protobuf::int64 value) { set_has_sample_duration_nanos(); sample_duration_nanos_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.InternalTimeSeriesData.sample_duration_nanos) @@ -443,6 +454,9 @@ InternalTimeSeriesData::samples() const { return samples_; } +inline const InternalTimeSeriesData* InternalTimeSeriesData::internal_default_instance() { + return &InternalTimeSeriesData_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -462,6 +476,7 @@ const int InternalTimeSeriesSample::kMinFieldNumber; InternalTimeSeriesSample::InternalTimeSeriesSample() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2finternal_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.InternalTimeSeriesSample) } @@ -473,21 +488,16 @@ InternalTimeSeriesSample::InternalTimeSeriesSample(const InternalTimeSeriesSampl : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.InternalTimeSeriesSample) } void InternalTimeSeriesSample::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - offset_ = 0; - sum_ = 0; - count_ = 0u; - max_ = 0; - min_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::memset(&sum_, 0, reinterpret_cast(&min_) - + reinterpret_cast(&sum_) + sizeof(min_)); } InternalTimeSeriesSample::~InternalTimeSeriesSample() { @@ -498,12 +508,6 @@ InternalTimeSeriesSample::~InternalTimeSeriesSample() { void InternalTimeSeriesSample::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void InternalTimeSeriesSample::SetCachedSize(int size) const { @@ -512,15 +516,11 @@ void InternalTimeSeriesSample::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const InternalTimeSeriesSample& InternalTimeSeriesSample::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2finternal_2eproto(); + return *internal_default_instance(); } -InternalTimeSeriesSample* InternalTimeSeriesSample::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed InternalTimeSeriesSample_default_instance_; InternalTimeSeriesSample* InternalTimeSeriesSample::New(::google::protobuf::Arena* arena) const { InternalTimeSeriesSample* n = new InternalTimeSeriesSample; @@ -544,18 +544,16 @@ void InternalTimeSeriesSample::Clear() { #endif #define ZR_(first, last) do {\ - ::memset(&first, 0,\ + ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) - if (_has_bits_[0 / 32] & 31u) { - ZR_(sum_, min_); - } + ZR_(sum_, min_); #undef ZR_HELPER_ #undef ZR_ - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -565,7 +563,7 @@ bool InternalTimeSeriesSample::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForInternalTimeSeriesSample, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -578,10 +576,10 @@ bool InternalTimeSeriesSample::MergePartialFromCodedStream( // optional int32 offset = 1; case 1: { if (tag == 8) { + set_has_offset(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &offset_))); - set_has_offset(); } else { goto handle_unusual; } @@ -593,10 +591,10 @@ bool InternalTimeSeriesSample::MergePartialFromCodedStream( case 6: { if (tag == 48) { parse_count: + set_has_count(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( input, &count_))); - set_has_count(); } else { goto handle_unusual; } @@ -608,10 +606,10 @@ bool InternalTimeSeriesSample::MergePartialFromCodedStream( case 7: { if (tag == 57) { parse_sum: + set_has_sum(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &sum_))); - set_has_sum(); } else { goto handle_unusual; } @@ -623,10 +621,10 @@ bool InternalTimeSeriesSample::MergePartialFromCodedStream( case 8: { if (tag == 65) { parse_max: + set_has_max(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &max_))); - set_has_max(); } else { goto handle_unusual; } @@ -638,10 +636,10 @@ bool InternalTimeSeriesSample::MergePartialFromCodedStream( case 9: { if (tag == 73) { parse_min: + set_has_min(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &min_))); - set_has_min(); } else { goto handle_unusual; } @@ -704,9 +702,9 @@ void InternalTimeSeriesSample::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.InternalTimeSeriesSample) } -int InternalTimeSeriesSample::ByteSize() const { +size_t InternalTimeSeriesSample::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.InternalTimeSeriesSample) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 31u) { // optional int32 offset = 1; @@ -741,8 +739,9 @@ int InternalTimeSeriesSample::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -754,9 +753,15 @@ void InternalTimeSeriesSample::CheckTypeAndMergeFrom( void InternalTimeSeriesSample::MergeFrom(const InternalTimeSeriesSample& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.InternalTimeSeriesSample) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void InternalTimeSeriesSample::UnsafeMergeFrom(const InternalTimeSeriesSample& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_offset()) { set_offset(from.offset()); @@ -783,7 +788,7 @@ void InternalTimeSeriesSample::CopyFrom(const InternalTimeSeriesSample& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.InternalTimeSeriesSample) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool InternalTimeSeriesSample::IsInitialized() const { @@ -827,11 +832,11 @@ void InternalTimeSeriesSample::clear_offset() { offset_ = 0; clear_has_offset(); } - ::google::protobuf::int32 InternalTimeSeriesSample::offset() const { +::google::protobuf::int32 InternalTimeSeriesSample::offset() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalTimeSeriesSample.offset) return offset_; } - void InternalTimeSeriesSample::set_offset(::google::protobuf::int32 value) { +void InternalTimeSeriesSample::set_offset(::google::protobuf::int32 value) { set_has_offset(); offset_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.InternalTimeSeriesSample.offset) @@ -851,11 +856,11 @@ void InternalTimeSeriesSample::clear_sum() { sum_ = 0; clear_has_sum(); } - double InternalTimeSeriesSample::sum() const { +double InternalTimeSeriesSample::sum() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalTimeSeriesSample.sum) return sum_; } - void InternalTimeSeriesSample::set_sum(double value) { +void InternalTimeSeriesSample::set_sum(double value) { set_has_sum(); sum_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.InternalTimeSeriesSample.sum) @@ -875,11 +880,11 @@ void InternalTimeSeriesSample::clear_count() { count_ = 0u; clear_has_count(); } - ::google::protobuf::uint32 InternalTimeSeriesSample::count() const { +::google::protobuf::uint32 InternalTimeSeriesSample::count() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalTimeSeriesSample.count) return count_; } - void InternalTimeSeriesSample::set_count(::google::protobuf::uint32 value) { +void InternalTimeSeriesSample::set_count(::google::protobuf::uint32 value) { set_has_count(); count_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.InternalTimeSeriesSample.count) @@ -899,11 +904,11 @@ void InternalTimeSeriesSample::clear_max() { max_ = 0; clear_has_max(); } - double InternalTimeSeriesSample::max() const { +double InternalTimeSeriesSample::max() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalTimeSeriesSample.max) return max_; } - void InternalTimeSeriesSample::set_max(double value) { +void InternalTimeSeriesSample::set_max(double value) { set_has_max(); max_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.InternalTimeSeriesSample.max) @@ -923,16 +928,19 @@ void InternalTimeSeriesSample::clear_min() { min_ = 0; clear_has_min(); } - double InternalTimeSeriesSample::min() const { +double InternalTimeSeriesSample::min() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalTimeSeriesSample.min) return min_; } - void InternalTimeSeriesSample::set_min(double value) { +void InternalTimeSeriesSample::set_min(double value) { set_has_min(); min_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.InternalTimeSeriesSample.min) } +inline const InternalTimeSeriesSample* InternalTimeSeriesSample::internal_default_instance() { + return &InternalTimeSeriesSample_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) diff --git a/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/internal.pb.h b/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/internal.pb.h index 71f707821b66..7a280cfe5a6f 100644 --- a/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/internal.pb.h +++ b/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/internal.pb.h @@ -8,12 +8,12 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3000000 +#if GOOGLE_PROTOBUF_VERSION < 3001000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -32,6 +32,7 @@ namespace roachpb { // Internal implementation detail -- do not call these. void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto(); +void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2finternal_2eproto(); void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto(); void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2finternal_2eproto(); @@ -64,15 +65,7 @@ class InternalTimeSeriesData : public ::google::protobuf::MessageLite /* @@proto static const InternalTimeSeriesData& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const InternalTimeSeriesData* internal_default_instance() { - return default_instance_; - } - #endif + static const InternalTimeSeriesData* internal_default_instance(); void Swap(InternalTimeSeriesData* other); @@ -87,7 +80,7 @@ class InternalTimeSeriesData : public ::google::protobuf::MessageLite /* @@proto void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -99,6 +92,7 @@ class InternalTimeSeriesData : public ::google::protobuf::MessageLite /* @@proto void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(InternalTimeSeriesData* other); + void UnsafeMergeFrom(const InternalTimeSeriesData& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -150,22 +144,20 @@ class InternalTimeSeriesData : public ::google::protobuf::MessageLite /* @@proto ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; + ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::InternalTimeSeriesSample > samples_; ::google::protobuf::int64 start_timestamp_nanos_; ::google::protobuf::int64 sample_duration_nanos_; - ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::InternalTimeSeriesSample > samples_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2finternal_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2finternal_2eproto(); void InitAsDefaultInstance(); - static InternalTimeSeriesData* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed InternalTimeSeriesData_default_instance_; + // ------------------------------------------------------------------- class InternalTimeSeriesSample : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.InternalTimeSeriesSample) */ { @@ -192,15 +184,7 @@ class InternalTimeSeriesSample : public ::google::protobuf::MessageLite /* @@pro static const InternalTimeSeriesSample& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const InternalTimeSeriesSample* internal_default_instance() { - return default_instance_; - } - #endif + static const InternalTimeSeriesSample* internal_default_instance(); void Swap(InternalTimeSeriesSample* other); @@ -215,7 +199,7 @@ class InternalTimeSeriesSample : public ::google::protobuf::MessageLite /* @@pro void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -227,6 +211,7 @@ class InternalTimeSeriesSample : public ::google::protobuf::MessageLite /* @@pro void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(InternalTimeSeriesSample* other); + void UnsafeMergeFrom(const InternalTimeSeriesSample& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -293,24 +278,22 @@ class InternalTimeSeriesSample : public ::google::protobuf::MessageLite /* @@pro ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; double sum_; ::google::protobuf::int32 offset_; ::google::protobuf::uint32 count_; double max_; double min_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2finternal_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2finternal_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2finternal_2eproto(); void InitAsDefaultInstance(); - static InternalTimeSeriesSample* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed InternalTimeSeriesSample_default_instance_; + // =================================================================== @@ -397,6 +380,9 @@ InternalTimeSeriesData::samples() const { return samples_; } +inline const InternalTimeSeriesData* InternalTimeSeriesData::internal_default_instance() { + return &InternalTimeSeriesData_default_instance_.get(); +} // ------------------------------------------------------------------- // InternalTimeSeriesSample @@ -521,6 +507,9 @@ inline void InternalTimeSeriesSample::set_min(double value) { // @@protoc_insertion_point(field_set:cockroach.roachpb.InternalTimeSeriesSample.min) } +inline const InternalTimeSeriesSample* InternalTimeSeriesSample::internal_default_instance() { + return &InternalTimeSeriesSample_default_instance_.get(); +} #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- diff --git a/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/metadata.pb.cc b/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/metadata.pb.cc index 4c0aac727f94..10155ff16372 100644 --- a/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/metadata.pb.cc +++ b/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/metadata.pb.cc @@ -18,69 +18,90 @@ namespace cockroach { namespace roachpb { void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fmetadata_2eproto() { - delete Attributes::default_instance_; - delete ReplicaDescriptor::default_instance_; - delete ReplicaIdent::default_instance_; - delete RangeDescriptor::default_instance_; - delete StoreCapacity::default_instance_; - delete NodeDescriptor::default_instance_; - delete StoreDescriptor::default_instance_; - delete StoreDeadReplicas::default_instance_; - delete Locality::default_instance_; - delete Tier::default_instance_; -} - -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl() { + Attributes_default_instance_.Shutdown(); + ReplicaDescriptor_default_instance_.Shutdown(); + ReplicaIdent_default_instance_.Shutdown(); + RangeDescriptor_default_instance_.Shutdown(); + StoreCapacity_default_instance_.Shutdown(); + NodeDescriptor_default_instance_.Shutdown(); + StoreDescriptor_default_instance_.Shutdown(); + StoreDeadReplicas_default_instance_.Shutdown(); + Locality_default_instance_.Shutdown(); + Tier_default_instance_.Shutdown(); +} + +void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#else -void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; + ::cockroach::util::protobuf_InitDefaults_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); + ::google::protobuf::internal::GetEmptyString(); + Attributes_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + ReplicaDescriptor_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + ReplicaIdent_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + RangeDescriptor_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + StoreCapacity_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + NodeDescriptor_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + StoreDescriptor_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + StoreDeadReplicas_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + Locality_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + Tier_default_instance_.DefaultConstruct(); + Attributes_default_instance_.get_mutable()->InitAsDefaultInstance(); + ReplicaDescriptor_default_instance_.get_mutable()->InitAsDefaultInstance(); + ReplicaIdent_default_instance_.get_mutable()->InitAsDefaultInstance(); + RangeDescriptor_default_instance_.get_mutable()->InitAsDefaultInstance(); + StoreCapacity_default_instance_.get_mutable()->InitAsDefaultInstance(); + NodeDescriptor_default_instance_.get_mutable()->InitAsDefaultInstance(); + StoreDescriptor_default_instance_.get_mutable()->InitAsDefaultInstance(); + StoreDeadReplicas_default_instance_.get_mutable()->InitAsDefaultInstance(); + Locality_default_instance_.get_mutable()->InitAsDefaultInstance(); + Tier_default_instance_.get_mutable()->InitAsDefaultInstance(); +} + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_once_); +void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto() { + ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_once_, + &protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl); +} +void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#endif + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); ::cockroach::util::protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); - Attributes::default_instance_ = new Attributes(); - ReplicaDescriptor::default_instance_ = new ReplicaDescriptor(); - ReplicaIdent::default_instance_ = new ReplicaIdent(); - RangeDescriptor::default_instance_ = new RangeDescriptor(); - StoreCapacity::default_instance_ = new StoreCapacity(); - NodeDescriptor::default_instance_ = new NodeDescriptor(); - StoreDescriptor::default_instance_ = new StoreDescriptor(); - StoreDeadReplicas::default_instance_ = new StoreDeadReplicas(); - Locality::default_instance_ = new Locality(); - Tier::default_instance_ = new Tier(); - Attributes::default_instance_->InitAsDefaultInstance(); - ReplicaDescriptor::default_instance_->InitAsDefaultInstance(); - ReplicaIdent::default_instance_->InitAsDefaultInstance(); - RangeDescriptor::default_instance_->InitAsDefaultInstance(); - StoreCapacity::default_instance_->InitAsDefaultInstance(); - NodeDescriptor::default_instance_->InitAsDefaultInstance(); - StoreDescriptor::default_instance_->InitAsDefaultInstance(); - StoreDeadReplicas::default_instance_->InitAsDefaultInstance(); - Locality::default_instance_->InitAsDefaultInstance(); - Tier::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fmetadata_2eproto); } -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_once_); void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto() { ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_once_, &protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl); } -#else +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_cockroach_2fpkg_2froachpb_2fmetadata_2eproto { StaticDescriptorInitializer_cockroach_2fpkg_2froachpb_2fmetadata_2eproto() { protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); } } static_descriptor_initializer_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_; -#endif +#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + +namespace { + +static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; +static void MergeFromFail(int line) { + ::google::protobuf::internal::MergeFromFail(__FILE__, line); +} + +} // namespace + // =================================================================== @@ -95,6 +116,7 @@ const int Attributes::kAttrsFieldNumber; Attributes::Attributes() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.Attributes) } @@ -106,16 +128,14 @@ Attributes::Attributes(const Attributes& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.Attributes) } void Attributes::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } Attributes::~Attributes() { @@ -126,12 +146,6 @@ Attributes::~Attributes() { void Attributes::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void Attributes::SetCachedSize(int size) const { @@ -140,15 +154,11 @@ void Attributes::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const Attributes& Attributes::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); + return *internal_default_instance(); } -Attributes* Attributes::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed Attributes_default_instance_; Attributes* Attributes::New(::google::protobuf::Arena* arena) const { Attributes* n = new Attributes; @@ -161,7 +171,7 @@ Attributes* Attributes::New(::google::protobuf::Arena* arena) const { void Attributes::Clear() { // @@protoc_insertion_point(message_clear_start:cockroach.roachpb.Attributes) attrs_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -171,7 +181,7 @@ bool Attributes::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForAttributes, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -231,12 +241,13 @@ void Attributes::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.Attributes) } -int Attributes::ByteSize() const { +size_t Attributes::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.Attributes) - int total_size = 0; + size_t total_size = 0; // repeated string attrs = 1; - total_size += 1 * this->attrs_size(); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->attrs_size()); for (int i = 0; i < this->attrs_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->attrs(i)); @@ -244,8 +255,9 @@ int Attributes::ByteSize() const { total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -257,10 +269,16 @@ void Attributes::CheckTypeAndMergeFrom( void Attributes::MergeFrom(const Attributes& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.Attributes) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } - attrs_.MergeFrom(from.attrs_); +} + +void Attributes::UnsafeMergeFrom(const Attributes& from) { + GOOGLE_DCHECK(&from != this); + attrs_.UnsafeMergeFrom(from.attrs_); if (!from.unknown_fields().empty()) { mutable_unknown_fields()->append(from.unknown_fields()); } @@ -270,7 +288,7 @@ void Attributes::CopyFrom(const Attributes& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.Attributes) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool Attributes::IsInitialized() const { @@ -303,54 +321,57 @@ int Attributes::attrs_size() const { void Attributes::clear_attrs() { attrs_.Clear(); } - const ::std::string& Attributes::attrs(int index) const { +const ::std::string& Attributes::attrs(int index) const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Attributes.attrs) return attrs_.Get(index); } - ::std::string* Attributes::mutable_attrs(int index) { +::std::string* Attributes::mutable_attrs(int index) { // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Attributes.attrs) return attrs_.Mutable(index); } - void Attributes::set_attrs(int index, const ::std::string& value) { +void Attributes::set_attrs(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:cockroach.roachpb.Attributes.attrs) attrs_.Mutable(index)->assign(value); } - void Attributes::set_attrs(int index, const char* value) { +void Attributes::set_attrs(int index, const char* value) { attrs_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Attributes.attrs) } - void Attributes::set_attrs(int index, const char* value, size_t size) { +void Attributes::set_attrs(int index, const char* value, size_t size) { attrs_.Mutable(index)->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Attributes.attrs) } - ::std::string* Attributes::add_attrs() { +::std::string* Attributes::add_attrs() { // @@protoc_insertion_point(field_add_mutable:cockroach.roachpb.Attributes.attrs) return attrs_.Add(); } - void Attributes::add_attrs(const ::std::string& value) { +void Attributes::add_attrs(const ::std::string& value) { attrs_.Add()->assign(value); // @@protoc_insertion_point(field_add:cockroach.roachpb.Attributes.attrs) } - void Attributes::add_attrs(const char* value) { +void Attributes::add_attrs(const char* value) { attrs_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:cockroach.roachpb.Attributes.attrs) } - void Attributes::add_attrs(const char* value, size_t size) { +void Attributes::add_attrs(const char* value, size_t size) { attrs_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:cockroach.roachpb.Attributes.attrs) } - const ::google::protobuf::RepeatedPtrField< ::std::string>& +const ::google::protobuf::RepeatedPtrField< ::std::string>& Attributes::attrs() const { // @@protoc_insertion_point(field_list:cockroach.roachpb.Attributes.attrs) return attrs_; } - ::google::protobuf::RepeatedPtrField< ::std::string>* +::google::protobuf::RepeatedPtrField< ::std::string>* Attributes::mutable_attrs() { // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.Attributes.attrs) return &attrs_; } +inline const Attributes* Attributes::internal_default_instance() { + return &Attributes_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -368,6 +389,7 @@ const int ReplicaDescriptor::kReplicaIdFieldNumber; ReplicaDescriptor::ReplicaDescriptor() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.ReplicaDescriptor) } @@ -379,19 +401,16 @@ ReplicaDescriptor::ReplicaDescriptor(const ReplicaDescriptor& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.ReplicaDescriptor) } void ReplicaDescriptor::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - node_id_ = 0; - store_id_ = 0; - replica_id_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::memset(&node_id_, 0, reinterpret_cast(&replica_id_) - + reinterpret_cast(&node_id_) + sizeof(replica_id_)); } ReplicaDescriptor::~ReplicaDescriptor() { @@ -402,12 +421,6 @@ ReplicaDescriptor::~ReplicaDescriptor() { void ReplicaDescriptor::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void ReplicaDescriptor::SetCachedSize(int size) const { @@ -416,15 +429,11 @@ void ReplicaDescriptor::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ReplicaDescriptor& ReplicaDescriptor::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); + return *internal_default_instance(); } -ReplicaDescriptor* ReplicaDescriptor::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed ReplicaDescriptor_default_instance_; ReplicaDescriptor* ReplicaDescriptor::New(::google::protobuf::Arena* arena) const { ReplicaDescriptor* n = new ReplicaDescriptor; @@ -448,7 +457,7 @@ void ReplicaDescriptor::Clear() { #endif #define ZR_(first, last) do {\ - ::memset(&first, 0,\ + ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) @@ -457,7 +466,7 @@ void ReplicaDescriptor::Clear() { #undef ZR_HELPER_ #undef ZR_ - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -467,7 +476,7 @@ bool ReplicaDescriptor::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForReplicaDescriptor, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -480,10 +489,10 @@ bool ReplicaDescriptor::MergePartialFromCodedStream( // optional int32 node_id = 1; case 1: { if (tag == 8) { + set_has_node_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &node_id_))); - set_has_node_id(); } else { goto handle_unusual; } @@ -495,10 +504,10 @@ bool ReplicaDescriptor::MergePartialFromCodedStream( case 2: { if (tag == 16) { parse_store_id: + set_has_store_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &store_id_))); - set_has_store_id(); } else { goto handle_unusual; } @@ -510,10 +519,10 @@ bool ReplicaDescriptor::MergePartialFromCodedStream( case 3: { if (tag == 24) { parse_replica_id: + set_has_replica_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &replica_id_))); - set_has_replica_id(); } else { goto handle_unusual; } @@ -566,9 +575,9 @@ void ReplicaDescriptor::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.ReplicaDescriptor) } -int ReplicaDescriptor::ByteSize() const { +size_t ReplicaDescriptor::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.ReplicaDescriptor) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 7u) { // optional int32 node_id = 1; @@ -595,8 +604,9 @@ int ReplicaDescriptor::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -608,9 +618,15 @@ void ReplicaDescriptor::CheckTypeAndMergeFrom( void ReplicaDescriptor::MergeFrom(const ReplicaDescriptor& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.ReplicaDescriptor) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void ReplicaDescriptor::UnsafeMergeFrom(const ReplicaDescriptor& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_node_id()) { set_node_id(from.node_id()); @@ -631,7 +647,7 @@ void ReplicaDescriptor::CopyFrom(const ReplicaDescriptor& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.ReplicaDescriptor) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool ReplicaDescriptor::IsInitialized() const { @@ -673,11 +689,11 @@ void ReplicaDescriptor::clear_node_id() { node_id_ = 0; clear_has_node_id(); } - ::google::protobuf::int32 ReplicaDescriptor::node_id() const { +::google::protobuf::int32 ReplicaDescriptor::node_id() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaDescriptor.node_id) return node_id_; } - void ReplicaDescriptor::set_node_id(::google::protobuf::int32 value) { +void ReplicaDescriptor::set_node_id(::google::protobuf::int32 value) { set_has_node_id(); node_id_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicaDescriptor.node_id) @@ -697,11 +713,11 @@ void ReplicaDescriptor::clear_store_id() { store_id_ = 0; clear_has_store_id(); } - ::google::protobuf::int32 ReplicaDescriptor::store_id() const { +::google::protobuf::int32 ReplicaDescriptor::store_id() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaDescriptor.store_id) return store_id_; } - void ReplicaDescriptor::set_store_id(::google::protobuf::int32 value) { +void ReplicaDescriptor::set_store_id(::google::protobuf::int32 value) { set_has_store_id(); store_id_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicaDescriptor.store_id) @@ -721,16 +737,19 @@ void ReplicaDescriptor::clear_replica_id() { replica_id_ = 0; clear_has_replica_id(); } - ::google::protobuf::int32 ReplicaDescriptor::replica_id() const { +::google::protobuf::int32 ReplicaDescriptor::replica_id() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaDescriptor.replica_id) return replica_id_; } - void ReplicaDescriptor::set_replica_id(::google::protobuf::int32 value) { +void ReplicaDescriptor::set_replica_id(::google::protobuf::int32 value) { set_has_replica_id(); replica_id_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicaDescriptor.replica_id) } +inline const ReplicaDescriptor* ReplicaDescriptor::internal_default_instance() { + return &ReplicaDescriptor_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -747,35 +766,30 @@ const int ReplicaIdent::kReplicaFieldNumber; ReplicaIdent::ReplicaIdent() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.ReplicaIdent) } void ReplicaIdent::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER replica_ = const_cast< ::cockroach::roachpb::ReplicaDescriptor*>( ::cockroach::roachpb::ReplicaDescriptor::internal_default_instance()); -#else - replica_ = const_cast< ::cockroach::roachpb::ReplicaDescriptor*>(&::cockroach::roachpb::ReplicaDescriptor::default_instance()); -#endif } ReplicaIdent::ReplicaIdent(const ReplicaIdent& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.ReplicaIdent) } void ReplicaIdent::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - range_id_ = GOOGLE_LONGLONG(0); replica_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + range_id_ = GOOGLE_LONGLONG(0); } ReplicaIdent::~ReplicaIdent() { @@ -786,11 +800,7 @@ ReplicaIdent::~ReplicaIdent() { void ReplicaIdent::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &ReplicaIdent_default_instance_.get()) { delete replica_; } } @@ -801,15 +811,11 @@ void ReplicaIdent::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ReplicaIdent& ReplicaIdent::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); + return *internal_default_instance(); } -ReplicaIdent* ReplicaIdent::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed ReplicaIdent_default_instance_; ReplicaIdent* ReplicaIdent::New(::google::protobuf::Arena* arena) const { ReplicaIdent* n = new ReplicaIdent; @@ -827,7 +833,7 @@ void ReplicaIdent::Clear() { if (replica_ != NULL) replica_->::cockroach::roachpb::ReplicaDescriptor::Clear(); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -837,7 +843,7 @@ bool ReplicaIdent::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForReplicaIdent, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -850,10 +856,10 @@ bool ReplicaIdent::MergePartialFromCodedStream( // optional int64 range_id = 1; case 1: { if (tag == 8) { + set_has_range_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &range_id_))); - set_has_range_id(); } else { goto handle_unusual; } @@ -915,9 +921,9 @@ void ReplicaIdent::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.ReplicaIdent) } -int ReplicaIdent::ByteSize() const { +size_t ReplicaIdent::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.ReplicaIdent) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 3u) { // optional int64 range_id = 1; @@ -937,8 +943,9 @@ int ReplicaIdent::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -950,9 +957,15 @@ void ReplicaIdent::CheckTypeAndMergeFrom( void ReplicaIdent::MergeFrom(const ReplicaIdent& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.ReplicaIdent) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void ReplicaIdent::UnsafeMergeFrom(const ReplicaIdent& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_range_id()) { set_range_id(from.range_id()); @@ -970,7 +983,7 @@ void ReplicaIdent::CopyFrom(const ReplicaIdent& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.ReplicaIdent) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool ReplicaIdent::IsInitialized() const { @@ -1011,11 +1024,11 @@ void ReplicaIdent::clear_range_id() { range_id_ = GOOGLE_LONGLONG(0); clear_has_range_id(); } - ::google::protobuf::int64 ReplicaIdent::range_id() const { +::google::protobuf::int64 ReplicaIdent::range_id() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaIdent.range_id) return range_id_; } - void ReplicaIdent::set_range_id(::google::protobuf::int64 value) { +void ReplicaIdent::set_range_id(::google::protobuf::int64 value) { set_has_range_id(); range_id_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicaIdent.range_id) @@ -1037,11 +1050,8 @@ void ReplicaIdent::clear_replica() { } const ::cockroach::roachpb::ReplicaDescriptor& ReplicaIdent::replica() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaIdent.replica) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return replica_ != NULL ? *replica_ : *default_instance().replica_; -#else - return replica_ != NULL ? *replica_ : *default_instance_->replica_; -#endif + return replica_ != NULL ? *replica_ + : *::cockroach::roachpb::ReplicaDescriptor::internal_default_instance(); } ::cockroach::roachpb::ReplicaDescriptor* ReplicaIdent::mutable_replica() { set_has_replica(); @@ -1069,6 +1079,9 @@ void ReplicaIdent::set_allocated_replica(::cockroach::roachpb::ReplicaDescriptor // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.ReplicaIdent.replica) } +inline const ReplicaIdent* ReplicaIdent::internal_default_instance() { + return &ReplicaIdent_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -1088,6 +1101,7 @@ const int RangeDescriptor::kNextReplicaIdFieldNumber; RangeDescriptor::RangeDescriptor() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.RangeDescriptor) } @@ -1099,20 +1113,18 @@ RangeDescriptor::RangeDescriptor(const RangeDescriptor& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.RangeDescriptor) } void RangeDescriptor::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - range_id_ = GOOGLE_LONGLONG(0); start_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); end_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - next_replica_id_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::memset(&range_id_, 0, reinterpret_cast(&next_replica_id_) - + reinterpret_cast(&range_id_) + sizeof(next_replica_id_)); } RangeDescriptor::~RangeDescriptor() { @@ -1125,12 +1137,6 @@ void RangeDescriptor::SharedDtor() { &::google::protobuf::internal::GetEmptyStringAlreadyInited()); start_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); end_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void RangeDescriptor::SetCachedSize(int size) const { @@ -1139,15 +1145,11 @@ void RangeDescriptor::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const RangeDescriptor& RangeDescriptor::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); + return *internal_default_instance(); } -RangeDescriptor* RangeDescriptor::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed RangeDescriptor_default_instance_; RangeDescriptor* RangeDescriptor::New(::google::protobuf::Arena* arena) const { RangeDescriptor* n = new RangeDescriptor; @@ -1159,18 +1161,37 @@ RangeDescriptor* RangeDescriptor::New(::google::protobuf::Arena* arena) const { void RangeDescriptor::Clear() { // @@protoc_insertion_point(message_clear_start:cockroach.roachpb.RangeDescriptor) +#if defined(__clang__) +#define ZR_HELPER_(f) \ + _Pragma("clang diagnostic push") \ + _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ + __builtin_offsetof(RangeDescriptor, f) \ + _Pragma("clang diagnostic pop") +#else +#define ZR_HELPER_(f) reinterpret_cast(\ + &reinterpret_cast(16)->f) +#endif + +#define ZR_(first, last) do {\ + ::memset(&(first), 0,\ + ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ +} while (0) + if (_has_bits_[0 / 32] & 23u) { - range_id_ = GOOGLE_LONGLONG(0); + ZR_(range_id_, next_replica_id_); if (has_start_key()) { start_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } if (has_end_key()) { end_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - next_replica_id_ = 0; } + +#undef ZR_HELPER_ +#undef ZR_ + replicas_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1180,7 +1201,7 @@ bool RangeDescriptor::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForRangeDescriptor, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -1193,10 +1214,10 @@ bool RangeDescriptor::MergePartialFromCodedStream( // optional int64 range_id = 1; case 1: { if (tag == 8) { + set_has_range_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &range_id_))); - set_has_range_id(); } else { goto handle_unusual; } @@ -1251,10 +1272,10 @@ bool RangeDescriptor::MergePartialFromCodedStream( case 5: { if (tag == 40) { parse_next_replica_id: + set_has_next_replica_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &next_replica_id_))); - set_has_next_replica_id(); } else { goto handle_unusual; } @@ -1320,9 +1341,9 @@ void RangeDescriptor::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.RangeDescriptor) } -int RangeDescriptor::ByteSize() const { +size_t RangeDescriptor::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.RangeDescriptor) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 23u) { // optional int64 range_id = 1; @@ -1355,17 +1376,21 @@ int RangeDescriptor::ByteSize() const { } // repeated .cockroach.roachpb.ReplicaDescriptor replicas = 4; - total_size += 1 * this->replicas_size(); - for (int i = 0; i < this->replicas_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->replicas(i)); + { + unsigned int count = this->replicas_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->replicas(i)); + } } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -1377,9 +1402,15 @@ void RangeDescriptor::CheckTypeAndMergeFrom( void RangeDescriptor::MergeFrom(const RangeDescriptor& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.RangeDescriptor) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void RangeDescriptor::UnsafeMergeFrom(const RangeDescriptor& from) { + GOOGLE_DCHECK(&from != this); replicas_.MergeFrom(from.replicas_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_range_id()) { @@ -1406,7 +1437,7 @@ void RangeDescriptor::CopyFrom(const RangeDescriptor& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.RangeDescriptor) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool RangeDescriptor::IsInitialized() const { @@ -1450,11 +1481,11 @@ void RangeDescriptor::clear_range_id() { range_id_ = GOOGLE_LONGLONG(0); clear_has_range_id(); } - ::google::protobuf::int64 RangeDescriptor::range_id() const { +::google::protobuf::int64 RangeDescriptor::range_id() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeDescriptor.range_id) return range_id_; } - void RangeDescriptor::set_range_id(::google::protobuf::int64 value) { +void RangeDescriptor::set_range_id(::google::protobuf::int64 value) { set_has_range_id(); range_id_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeDescriptor.range_id) @@ -1474,37 +1505,37 @@ void RangeDescriptor::clear_start_key() { start_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_start_key(); } - const ::std::string& RangeDescriptor::start_key() const { +const ::std::string& RangeDescriptor::start_key() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeDescriptor.start_key) return start_key_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void RangeDescriptor::set_start_key(const ::std::string& value) { +void RangeDescriptor::set_start_key(const ::std::string& value) { set_has_start_key(); start_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeDescriptor.start_key) } - void RangeDescriptor::set_start_key(const char* value) { +void RangeDescriptor::set_start_key(const char* value) { set_has_start_key(); start_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.roachpb.RangeDescriptor.start_key) } - void RangeDescriptor::set_start_key(const void* value, size_t size) { +void RangeDescriptor::set_start_key(const void* value, size_t size) { set_has_start_key(); start_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.RangeDescriptor.start_key) } - ::std::string* RangeDescriptor::mutable_start_key() { +::std::string* RangeDescriptor::mutable_start_key() { set_has_start_key(); // @@protoc_insertion_point(field_mutable:cockroach.roachpb.RangeDescriptor.start_key) return start_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* RangeDescriptor::release_start_key() { +::std::string* RangeDescriptor::release_start_key() { // @@protoc_insertion_point(field_release:cockroach.roachpb.RangeDescriptor.start_key) clear_has_start_key(); return start_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void RangeDescriptor::set_allocated_start_key(::std::string* start_key) { +void RangeDescriptor::set_allocated_start_key(::std::string* start_key) { if (start_key != NULL) { set_has_start_key(); } else { @@ -1528,37 +1559,37 @@ void RangeDescriptor::clear_end_key() { end_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_end_key(); } - const ::std::string& RangeDescriptor::end_key() const { +const ::std::string& RangeDescriptor::end_key() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeDescriptor.end_key) return end_key_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void RangeDescriptor::set_end_key(const ::std::string& value) { +void RangeDescriptor::set_end_key(const ::std::string& value) { set_has_end_key(); end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeDescriptor.end_key) } - void RangeDescriptor::set_end_key(const char* value) { +void RangeDescriptor::set_end_key(const char* value) { set_has_end_key(); end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.roachpb.RangeDescriptor.end_key) } - void RangeDescriptor::set_end_key(const void* value, size_t size) { +void RangeDescriptor::set_end_key(const void* value, size_t size) { set_has_end_key(); end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.RangeDescriptor.end_key) } - ::std::string* RangeDescriptor::mutable_end_key() { +::std::string* RangeDescriptor::mutable_end_key() { set_has_end_key(); // @@protoc_insertion_point(field_mutable:cockroach.roachpb.RangeDescriptor.end_key) return end_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* RangeDescriptor::release_end_key() { +::std::string* RangeDescriptor::release_end_key() { // @@protoc_insertion_point(field_release:cockroach.roachpb.RangeDescriptor.end_key) clear_has_end_key(); return end_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void RangeDescriptor::set_allocated_end_key(::std::string* end_key) { +void RangeDescriptor::set_allocated_end_key(::std::string* end_key) { if (end_key != NULL) { set_has_end_key(); } else { @@ -1612,16 +1643,19 @@ void RangeDescriptor::clear_next_replica_id() { next_replica_id_ = 0; clear_has_next_replica_id(); } - ::google::protobuf::int32 RangeDescriptor::next_replica_id() const { +::google::protobuf::int32 RangeDescriptor::next_replica_id() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeDescriptor.next_replica_id) return next_replica_id_; } - void RangeDescriptor::set_next_replica_id(::google::protobuf::int32 value) { +void RangeDescriptor::set_next_replica_id(::google::protobuf::int32 value) { set_has_next_replica_id(); next_replica_id_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeDescriptor.next_replica_id) } +inline const RangeDescriptor* RangeDescriptor::internal_default_instance() { + return &RangeDescriptor_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -1640,6 +1674,7 @@ const int StoreCapacity::kLeaseCountFieldNumber; StoreCapacity::StoreCapacity() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.StoreCapacity) } @@ -1651,20 +1686,16 @@ StoreCapacity::StoreCapacity(const StoreCapacity& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.StoreCapacity) } void StoreCapacity::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - capacity_ = GOOGLE_LONGLONG(0); - available_ = GOOGLE_LONGLONG(0); - range_count_ = 0; - lease_count_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::memset(&capacity_, 0, reinterpret_cast(&lease_count_) - + reinterpret_cast(&capacity_) + sizeof(lease_count_)); } StoreCapacity::~StoreCapacity() { @@ -1675,12 +1706,6 @@ StoreCapacity::~StoreCapacity() { void StoreCapacity::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void StoreCapacity::SetCachedSize(int size) const { @@ -1689,15 +1714,11 @@ void StoreCapacity::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const StoreCapacity& StoreCapacity::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); + return *internal_default_instance(); } -StoreCapacity* StoreCapacity::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed StoreCapacity_default_instance_; StoreCapacity* StoreCapacity::New(::google::protobuf::Arena* arena) const { StoreCapacity* n = new StoreCapacity; @@ -1721,7 +1742,7 @@ void StoreCapacity::Clear() { #endif #define ZR_(first, last) do {\ - ::memset(&first, 0,\ + ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) @@ -1730,7 +1751,7 @@ void StoreCapacity::Clear() { #undef ZR_HELPER_ #undef ZR_ - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1740,7 +1761,7 @@ bool StoreCapacity::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForStoreCapacity, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -1753,10 +1774,10 @@ bool StoreCapacity::MergePartialFromCodedStream( // optional int64 capacity = 1; case 1: { if (tag == 8) { + set_has_capacity(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &capacity_))); - set_has_capacity(); } else { goto handle_unusual; } @@ -1768,10 +1789,10 @@ bool StoreCapacity::MergePartialFromCodedStream( case 2: { if (tag == 16) { parse_available: + set_has_available(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &available_))); - set_has_available(); } else { goto handle_unusual; } @@ -1783,10 +1804,10 @@ bool StoreCapacity::MergePartialFromCodedStream( case 3: { if (tag == 24) { parse_range_count: + set_has_range_count(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &range_count_))); - set_has_range_count(); } else { goto handle_unusual; } @@ -1798,10 +1819,10 @@ bool StoreCapacity::MergePartialFromCodedStream( case 4: { if (tag == 32) { parse_lease_count: + set_has_lease_count(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &lease_count_))); - set_has_lease_count(); } else { goto handle_unusual; } @@ -1859,9 +1880,9 @@ void StoreCapacity::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.StoreCapacity) } -int StoreCapacity::ByteSize() const { +size_t StoreCapacity::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.StoreCapacity) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 15u) { // optional int64 capacity = 1; @@ -1895,8 +1916,9 @@ int StoreCapacity::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -1908,9 +1930,15 @@ void StoreCapacity::CheckTypeAndMergeFrom( void StoreCapacity::MergeFrom(const StoreCapacity& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.StoreCapacity) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void StoreCapacity::UnsafeMergeFrom(const StoreCapacity& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_capacity()) { set_capacity(from.capacity()); @@ -1934,7 +1962,7 @@ void StoreCapacity::CopyFrom(const StoreCapacity& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.StoreCapacity) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool StoreCapacity::IsInitialized() const { @@ -1977,11 +2005,11 @@ void StoreCapacity::clear_capacity() { capacity_ = GOOGLE_LONGLONG(0); clear_has_capacity(); } - ::google::protobuf::int64 StoreCapacity::capacity() const { +::google::protobuf::int64 StoreCapacity::capacity() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreCapacity.capacity) return capacity_; } - void StoreCapacity::set_capacity(::google::protobuf::int64 value) { +void StoreCapacity::set_capacity(::google::protobuf::int64 value) { set_has_capacity(); capacity_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreCapacity.capacity) @@ -2001,11 +2029,11 @@ void StoreCapacity::clear_available() { available_ = GOOGLE_LONGLONG(0); clear_has_available(); } - ::google::protobuf::int64 StoreCapacity::available() const { +::google::protobuf::int64 StoreCapacity::available() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreCapacity.available) return available_; } - void StoreCapacity::set_available(::google::protobuf::int64 value) { +void StoreCapacity::set_available(::google::protobuf::int64 value) { set_has_available(); available_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreCapacity.available) @@ -2025,11 +2053,11 @@ void StoreCapacity::clear_range_count() { range_count_ = 0; clear_has_range_count(); } - ::google::protobuf::int32 StoreCapacity::range_count() const { +::google::protobuf::int32 StoreCapacity::range_count() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreCapacity.range_count) return range_count_; } - void StoreCapacity::set_range_count(::google::protobuf::int32 value) { +void StoreCapacity::set_range_count(::google::protobuf::int32 value) { set_has_range_count(); range_count_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreCapacity.range_count) @@ -2049,16 +2077,19 @@ void StoreCapacity::clear_lease_count() { lease_count_ = 0; clear_has_lease_count(); } - ::google::protobuf::int32 StoreCapacity::lease_count() const { +::google::protobuf::int32 StoreCapacity::lease_count() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreCapacity.lease_count) return lease_count_; } - void StoreCapacity::set_lease_count(::google::protobuf::int32 value) { +void StoreCapacity::set_lease_count(::google::protobuf::int32 value) { set_has_lease_count(); lease_count_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreCapacity.lease_count) } +inline const StoreCapacity* StoreCapacity::internal_default_instance() { + return &StoreCapacity_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -2077,49 +2108,36 @@ const int NodeDescriptor::kLocalityFieldNumber; NodeDescriptor::NodeDescriptor() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.NodeDescriptor) } void NodeDescriptor::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER address_ = const_cast< ::cockroach::util::UnresolvedAddr*>( ::cockroach::util::UnresolvedAddr::internal_default_instance()); -#else - address_ = const_cast< ::cockroach::util::UnresolvedAddr*>(&::cockroach::util::UnresolvedAddr::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER attrs_ = const_cast< ::cockroach::roachpb::Attributes*>( ::cockroach::roachpb::Attributes::internal_default_instance()); -#else - attrs_ = const_cast< ::cockroach::roachpb::Attributes*>(&::cockroach::roachpb::Attributes::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER locality_ = const_cast< ::cockroach::roachpb::Locality*>( ::cockroach::roachpb::Locality::internal_default_instance()); -#else - locality_ = const_cast< ::cockroach::roachpb::Locality*>(&::cockroach::roachpb::Locality::default_instance()); -#endif } NodeDescriptor::NodeDescriptor(const NodeDescriptor& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.NodeDescriptor) } void NodeDescriptor::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - node_id_ = 0; address_ = NULL; attrs_ = NULL; locality_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + node_id_ = 0; } NodeDescriptor::~NodeDescriptor() { @@ -2130,11 +2148,7 @@ NodeDescriptor::~NodeDescriptor() { void NodeDescriptor::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &NodeDescriptor_default_instance_.get()) { delete address_; delete attrs_; delete locality_; @@ -2147,15 +2161,11 @@ void NodeDescriptor::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const NodeDescriptor& NodeDescriptor::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); + return *internal_default_instance(); } -NodeDescriptor* NodeDescriptor::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed NodeDescriptor_default_instance_; NodeDescriptor* NodeDescriptor::New(::google::protobuf::Arena* arena) const { NodeDescriptor* n = new NodeDescriptor; @@ -2179,7 +2189,7 @@ void NodeDescriptor::Clear() { if (locality_ != NULL) locality_->::cockroach::roachpb::Locality::Clear(); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2189,7 +2199,7 @@ bool NodeDescriptor::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForNodeDescriptor, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -2202,10 +2212,10 @@ bool NodeDescriptor::MergePartialFromCodedStream( // optional int32 node_id = 1; case 1: { if (tag == 8) { + set_has_node_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &node_id_))); - set_has_node_id(); } else { goto handle_unusual; } @@ -2305,9 +2315,9 @@ void NodeDescriptor::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.NodeDescriptor) } -int NodeDescriptor::ByteSize() const { +size_t NodeDescriptor::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.NodeDescriptor) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 15u) { // optional int32 node_id = 1; @@ -2341,8 +2351,9 @@ int NodeDescriptor::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -2354,9 +2365,15 @@ void NodeDescriptor::CheckTypeAndMergeFrom( void NodeDescriptor::MergeFrom(const NodeDescriptor& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.NodeDescriptor) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void NodeDescriptor::UnsafeMergeFrom(const NodeDescriptor& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_node_id()) { set_node_id(from.node_id()); @@ -2380,7 +2397,7 @@ void NodeDescriptor::CopyFrom(const NodeDescriptor& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.NodeDescriptor) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool NodeDescriptor::IsInitialized() const { @@ -2423,11 +2440,11 @@ void NodeDescriptor::clear_node_id() { node_id_ = 0; clear_has_node_id(); } - ::google::protobuf::int32 NodeDescriptor::node_id() const { +::google::protobuf::int32 NodeDescriptor::node_id() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.node_id) return node_id_; } - void NodeDescriptor::set_node_id(::google::protobuf::int32 value) { +void NodeDescriptor::set_node_id(::google::protobuf::int32 value) { set_has_node_id(); node_id_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.NodeDescriptor.node_id) @@ -2449,11 +2466,8 @@ void NodeDescriptor::clear_address() { } const ::cockroach::util::UnresolvedAddr& NodeDescriptor::address() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.address) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return address_ != NULL ? *address_ : *default_instance().address_; -#else - return address_ != NULL ? *address_ : *default_instance_->address_; -#endif + return address_ != NULL ? *address_ + : *::cockroach::util::UnresolvedAddr::internal_default_instance(); } ::cockroach::util::UnresolvedAddr* NodeDescriptor::mutable_address() { set_has_address(); @@ -2497,11 +2511,8 @@ void NodeDescriptor::clear_attrs() { } const ::cockroach::roachpb::Attributes& NodeDescriptor::attrs() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.attrs) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return attrs_ != NULL ? *attrs_ : *default_instance().attrs_; -#else - return attrs_ != NULL ? *attrs_ : *default_instance_->attrs_; -#endif + return attrs_ != NULL ? *attrs_ + : *::cockroach::roachpb::Attributes::internal_default_instance(); } ::cockroach::roachpb::Attributes* NodeDescriptor::mutable_attrs() { set_has_attrs(); @@ -2545,11 +2556,8 @@ void NodeDescriptor::clear_locality() { } const ::cockroach::roachpb::Locality& NodeDescriptor::locality() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.locality) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return locality_ != NULL ? *locality_ : *default_instance().locality_; -#else - return locality_ != NULL ? *locality_ : *default_instance_->locality_; -#endif + return locality_ != NULL ? *locality_ + : *::cockroach::roachpb::Locality::internal_default_instance(); } ::cockroach::roachpb::Locality* NodeDescriptor::mutable_locality() { set_has_locality(); @@ -2577,6 +2585,9 @@ void NodeDescriptor::set_allocated_locality(::cockroach::roachpb::Locality* loca // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.NodeDescriptor.locality) } +inline const NodeDescriptor* NodeDescriptor::internal_default_instance() { + return &NodeDescriptor_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -2595,49 +2606,36 @@ const int StoreDescriptor::kCapacityFieldNumber; StoreDescriptor::StoreDescriptor() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.StoreDescriptor) } void StoreDescriptor::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER attrs_ = const_cast< ::cockroach::roachpb::Attributes*>( ::cockroach::roachpb::Attributes::internal_default_instance()); -#else - attrs_ = const_cast< ::cockroach::roachpb::Attributes*>(&::cockroach::roachpb::Attributes::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER node_ = const_cast< ::cockroach::roachpb::NodeDescriptor*>( ::cockroach::roachpb::NodeDescriptor::internal_default_instance()); -#else - node_ = const_cast< ::cockroach::roachpb::NodeDescriptor*>(&::cockroach::roachpb::NodeDescriptor::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER capacity_ = const_cast< ::cockroach::roachpb::StoreCapacity*>( ::cockroach::roachpb::StoreCapacity::internal_default_instance()); -#else - capacity_ = const_cast< ::cockroach::roachpb::StoreCapacity*>(&::cockroach::roachpb::StoreCapacity::default_instance()); -#endif } StoreDescriptor::StoreDescriptor(const StoreDescriptor& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.StoreDescriptor) } void StoreDescriptor::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - store_id_ = 0; attrs_ = NULL; node_ = NULL; capacity_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + store_id_ = 0; } StoreDescriptor::~StoreDescriptor() { @@ -2648,11 +2646,7 @@ StoreDescriptor::~StoreDescriptor() { void StoreDescriptor::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &StoreDescriptor_default_instance_.get()) { delete attrs_; delete node_; delete capacity_; @@ -2665,15 +2659,11 @@ void StoreDescriptor::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const StoreDescriptor& StoreDescriptor::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); + return *internal_default_instance(); } -StoreDescriptor* StoreDescriptor::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed StoreDescriptor_default_instance_; StoreDescriptor* StoreDescriptor::New(::google::protobuf::Arena* arena) const { StoreDescriptor* n = new StoreDescriptor; @@ -2697,7 +2687,7 @@ void StoreDescriptor::Clear() { if (capacity_ != NULL) capacity_->::cockroach::roachpb::StoreCapacity::Clear(); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -2707,7 +2697,7 @@ bool StoreDescriptor::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForStoreDescriptor, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -2720,10 +2710,10 @@ bool StoreDescriptor::MergePartialFromCodedStream( // optional int32 store_id = 1; case 1: { if (tag == 8) { + set_has_store_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &store_id_))); - set_has_store_id(); } else { goto handle_unusual; } @@ -2823,9 +2813,9 @@ void StoreDescriptor::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.StoreDescriptor) } -int StoreDescriptor::ByteSize() const { +size_t StoreDescriptor::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.StoreDescriptor) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 15u) { // optional int32 store_id = 1; @@ -2859,8 +2849,9 @@ int StoreDescriptor::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -2872,9 +2863,15 @@ void StoreDescriptor::CheckTypeAndMergeFrom( void StoreDescriptor::MergeFrom(const StoreDescriptor& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.StoreDescriptor) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void StoreDescriptor::UnsafeMergeFrom(const StoreDescriptor& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_store_id()) { set_store_id(from.store_id()); @@ -2898,7 +2895,7 @@ void StoreDescriptor::CopyFrom(const StoreDescriptor& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.StoreDescriptor) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool StoreDescriptor::IsInitialized() const { @@ -2941,11 +2938,11 @@ void StoreDescriptor::clear_store_id() { store_id_ = 0; clear_has_store_id(); } - ::google::protobuf::int32 StoreDescriptor::store_id() const { +::google::protobuf::int32 StoreDescriptor::store_id() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreDescriptor.store_id) return store_id_; } - void StoreDescriptor::set_store_id(::google::protobuf::int32 value) { +void StoreDescriptor::set_store_id(::google::protobuf::int32 value) { set_has_store_id(); store_id_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreDescriptor.store_id) @@ -2967,11 +2964,8 @@ void StoreDescriptor::clear_attrs() { } const ::cockroach::roachpb::Attributes& StoreDescriptor::attrs() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreDescriptor.attrs) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return attrs_ != NULL ? *attrs_ : *default_instance().attrs_; -#else - return attrs_ != NULL ? *attrs_ : *default_instance_->attrs_; -#endif + return attrs_ != NULL ? *attrs_ + : *::cockroach::roachpb::Attributes::internal_default_instance(); } ::cockroach::roachpb::Attributes* StoreDescriptor::mutable_attrs() { set_has_attrs(); @@ -3015,11 +3009,8 @@ void StoreDescriptor::clear_node() { } const ::cockroach::roachpb::NodeDescriptor& StoreDescriptor::node() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreDescriptor.node) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return node_ != NULL ? *node_ : *default_instance().node_; -#else - return node_ != NULL ? *node_ : *default_instance_->node_; -#endif + return node_ != NULL ? *node_ + : *::cockroach::roachpb::NodeDescriptor::internal_default_instance(); } ::cockroach::roachpb::NodeDescriptor* StoreDescriptor::mutable_node() { set_has_node(); @@ -3063,11 +3054,8 @@ void StoreDescriptor::clear_capacity() { } const ::cockroach::roachpb::StoreCapacity& StoreDescriptor::capacity() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreDescriptor.capacity) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return capacity_ != NULL ? *capacity_ : *default_instance().capacity_; -#else - return capacity_ != NULL ? *capacity_ : *default_instance_->capacity_; -#endif + return capacity_ != NULL ? *capacity_ + : *::cockroach::roachpb::StoreCapacity::internal_default_instance(); } ::cockroach::roachpb::StoreCapacity* StoreDescriptor::mutable_capacity() { set_has_capacity(); @@ -3095,6 +3083,9 @@ void StoreDescriptor::set_allocated_capacity(::cockroach::roachpb::StoreCapacity // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.StoreDescriptor.capacity) } +inline const StoreDescriptor* StoreDescriptor::internal_default_instance() { + return &StoreDescriptor_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -3111,6 +3102,7 @@ const int StoreDeadReplicas::kReplicasFieldNumber; StoreDeadReplicas::StoreDeadReplicas() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.StoreDeadReplicas) } @@ -3122,17 +3114,15 @@ StoreDeadReplicas::StoreDeadReplicas(const StoreDeadReplicas& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.StoreDeadReplicas) } void StoreDeadReplicas::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); store_id_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } StoreDeadReplicas::~StoreDeadReplicas() { @@ -3143,12 +3133,6 @@ StoreDeadReplicas::~StoreDeadReplicas() { void StoreDeadReplicas::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void StoreDeadReplicas::SetCachedSize(int size) const { @@ -3157,15 +3141,11 @@ void StoreDeadReplicas::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const StoreDeadReplicas& StoreDeadReplicas::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); + return *internal_default_instance(); } -StoreDeadReplicas* StoreDeadReplicas::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed StoreDeadReplicas_default_instance_; StoreDeadReplicas* StoreDeadReplicas::New(::google::protobuf::Arena* arena) const { StoreDeadReplicas* n = new StoreDeadReplicas; @@ -3179,7 +3159,7 @@ void StoreDeadReplicas::Clear() { // @@protoc_insertion_point(message_clear_start:cockroach.roachpb.StoreDeadReplicas) store_id_ = 0; replicas_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -3189,7 +3169,7 @@ bool StoreDeadReplicas::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForStoreDeadReplicas, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -3202,10 +3182,10 @@ bool StoreDeadReplicas::MergePartialFromCodedStream( // optional int32 store_id = 1; case 1: { if (tag == 8) { + set_has_store_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &store_id_))); - set_has_store_id(); } else { goto handle_unusual; } @@ -3271,9 +3251,9 @@ void StoreDeadReplicas::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.StoreDeadReplicas) } -int StoreDeadReplicas::ByteSize() const { +size_t StoreDeadReplicas::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.StoreDeadReplicas) - int total_size = 0; + size_t total_size = 0; // optional int32 store_id = 1; if (has_store_id()) { @@ -3283,17 +3263,21 @@ int StoreDeadReplicas::ByteSize() const { } // repeated .cockroach.roachpb.ReplicaIdent replicas = 2; - total_size += 1 * this->replicas_size(); - for (int i = 0; i < this->replicas_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->replicas(i)); + { + unsigned int count = this->replicas_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->replicas(i)); + } } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -3305,9 +3289,15 @@ void StoreDeadReplicas::CheckTypeAndMergeFrom( void StoreDeadReplicas::MergeFrom(const StoreDeadReplicas& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.StoreDeadReplicas) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void StoreDeadReplicas::UnsafeMergeFrom(const StoreDeadReplicas& from) { + GOOGLE_DCHECK(&from != this); replicas_.MergeFrom(from.replicas_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_store_id()) { @@ -3323,7 +3313,7 @@ void StoreDeadReplicas::CopyFrom(const StoreDeadReplicas& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.StoreDeadReplicas) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool StoreDeadReplicas::IsInitialized() const { @@ -3364,11 +3354,11 @@ void StoreDeadReplicas::clear_store_id() { store_id_ = 0; clear_has_store_id(); } - ::google::protobuf::int32 StoreDeadReplicas::store_id() const { +::google::protobuf::int32 StoreDeadReplicas::store_id() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreDeadReplicas.store_id) return store_id_; } - void StoreDeadReplicas::set_store_id(::google::protobuf::int32 value) { +void StoreDeadReplicas::set_store_id(::google::protobuf::int32 value) { set_has_store_id(); store_id_ = value; // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreDeadReplicas.store_id) @@ -3404,6 +3394,9 @@ StoreDeadReplicas::replicas() const { return replicas_; } +inline const StoreDeadReplicas* StoreDeadReplicas::internal_default_instance() { + return &StoreDeadReplicas_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -3419,6 +3412,7 @@ const int Locality::kTiersFieldNumber; Locality::Locality() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.Locality) } @@ -3430,16 +3424,14 @@ Locality::Locality(const Locality& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.Locality) } void Locality::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } Locality::~Locality() { @@ -3450,12 +3442,6 @@ Locality::~Locality() { void Locality::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void Locality::SetCachedSize(int size) const { @@ -3464,15 +3450,11 @@ void Locality::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const Locality& Locality::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); + return *internal_default_instance(); } -Locality* Locality::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed Locality_default_instance_; Locality* Locality::New(::google::protobuf::Arena* arena) const { Locality* n = new Locality; @@ -3485,7 +3467,7 @@ Locality* Locality::New(::google::protobuf::Arena* arena) const { void Locality::Clear() { // @@protoc_insertion_point(message_clear_start:cockroach.roachpb.Locality) tiers_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -3495,7 +3477,7 @@ bool Locality::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForLocality, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -3557,22 +3539,26 @@ void Locality::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.Locality) } -int Locality::ByteSize() const { +size_t Locality::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.Locality) - int total_size = 0; + size_t total_size = 0; // repeated .cockroach.roachpb.Tier tiers = 1; - total_size += 1 * this->tiers_size(); - for (int i = 0; i < this->tiers_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->tiers(i)); + { + unsigned int count = this->tiers_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->tiers(i)); + } } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -3584,9 +3570,15 @@ void Locality::CheckTypeAndMergeFrom( void Locality::MergeFrom(const Locality& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.Locality) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void Locality::UnsafeMergeFrom(const Locality& from) { + GOOGLE_DCHECK(&from != this); tiers_.MergeFrom(from.tiers_); if (!from.unknown_fields().empty()) { mutable_unknown_fields()->append(from.unknown_fields()); @@ -3597,7 +3589,7 @@ void Locality::CopyFrom(const Locality& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.Locality) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool Locality::IsInitialized() const { @@ -3653,6 +3645,9 @@ Locality::tiers() const { return tiers_; } +inline const Locality* Locality::internal_default_instance() { + return &Locality_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -3669,6 +3664,7 @@ const int Tier::kValueFieldNumber; Tier::Tier() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.roachpb.Tier) } @@ -3680,18 +3676,16 @@ Tier::Tier(const Tier& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.Tier) } void Tier::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } Tier::~Tier() { @@ -3704,12 +3698,6 @@ void Tier::SharedDtor() { &::google::protobuf::internal::GetEmptyStringAlreadyInited()); key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void Tier::SetCachedSize(int size) const { @@ -3718,15 +3706,11 @@ void Tier::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const Tier& Tier::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); + return *internal_default_instance(); } -Tier* Tier::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed Tier_default_instance_; Tier* Tier::New(::google::protobuf::Arena* arena) const { Tier* n = new Tier; @@ -3746,7 +3730,7 @@ void Tier::Clear() { value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -3756,7 +3740,7 @@ bool Tier::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForTier, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -3833,9 +3817,9 @@ void Tier::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.roachpb.Tier) } -int Tier::ByteSize() const { +size_t Tier::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.Tier) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 3u) { // optional string key = 1; @@ -3855,8 +3839,9 @@ int Tier::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -3868,9 +3853,15 @@ void Tier::CheckTypeAndMergeFrom( void Tier::MergeFrom(const Tier& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.Tier) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void Tier::UnsafeMergeFrom(const Tier& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_key()) { set_has_key(); @@ -3890,7 +3881,7 @@ void Tier::CopyFrom(const Tier& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.Tier) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool Tier::IsInitialized() const { @@ -3931,37 +3922,37 @@ void Tier::clear_key() { key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_key(); } - const ::std::string& Tier::key() const { +const ::std::string& Tier::key() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Tier.key) return key_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void Tier::set_key(const ::std::string& value) { +void Tier::set_key(const ::std::string& value) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.roachpb.Tier.key) } - void Tier::set_key(const char* value) { +void Tier::set_key(const char* value) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Tier.key) } - void Tier::set_key(const char* value, size_t size) { +void Tier::set_key(const char* value, size_t size) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Tier.key) } - ::std::string* Tier::mutable_key() { +::std::string* Tier::mutable_key() { set_has_key(); // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Tier.key) return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* Tier::release_key() { +::std::string* Tier::release_key() { // @@protoc_insertion_point(field_release:cockroach.roachpb.Tier.key) clear_has_key(); return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void Tier::set_allocated_key(::std::string* key) { +void Tier::set_allocated_key(::std::string* key) { if (key != NULL) { set_has_key(); } else { @@ -3985,37 +3976,37 @@ void Tier::clear_value() { value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_value(); } - const ::std::string& Tier::value() const { +const ::std::string& Tier::value() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.Tier.value) return value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void Tier::set_value(const ::std::string& value) { +void Tier::set_value(const ::std::string& value) { set_has_value(); value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.roachpb.Tier.value) } - void Tier::set_value(const char* value) { +void Tier::set_value(const char* value) { set_has_value(); value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Tier.value) } - void Tier::set_value(const char* value, size_t size) { +void Tier::set_value(const char* value, size_t size) { set_has_value(); value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Tier.value) } - ::std::string* Tier::mutable_value() { +::std::string* Tier::mutable_value() { set_has_value(); // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Tier.value) return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* Tier::release_value() { +::std::string* Tier::release_value() { // @@protoc_insertion_point(field_release:cockroach.roachpb.Tier.value) clear_has_value(); return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void Tier::set_allocated_value(::std::string* value) { +void Tier::set_allocated_value(::std::string* value) { if (value != NULL) { set_has_value(); } else { @@ -4025,6 +4016,9 @@ void Tier::clear_value() { // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Tier.value) } +inline const Tier* Tier::internal_default_instance() { + return &Tier_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) diff --git a/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/metadata.pb.h b/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/metadata.pb.h index 4265a50ab55e..b681a22b193f 100644 --- a/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/metadata.pb.h +++ b/pkg/storage/engine/rocksdb/cockroach/pkg/roachpb/metadata.pb.h @@ -8,12 +8,12 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3000000 +#if GOOGLE_PROTOBUF_VERSION < 3001000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -33,6 +33,7 @@ namespace roachpb { // Internal implementation detail -- do not call these. void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); +void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); @@ -73,15 +74,7 @@ class Attributes : public ::google::protobuf::MessageLite /* @@protoc_insertion_ static const Attributes& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const Attributes* internal_default_instance() { - return default_instance_; - } - #endif + static const Attributes* internal_default_instance(); void Swap(Attributes* other); @@ -96,7 +89,7 @@ class Attributes : public ::google::protobuf::MessageLite /* @@protoc_insertion_ void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -108,6 +101,7 @@ class Attributes : public ::google::protobuf::MessageLite /* @@protoc_insertion_ void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(Attributes* other); + void UnsafeMergeFrom(const Attributes& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -145,20 +139,18 @@ class Attributes : public ::google::protobuf::MessageLite /* @@protoc_insertion_ ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::RepeatedPtrField< ::std::string> attrs_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); void InitAsDefaultInstance(); - static Attributes* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed Attributes_default_instance_; + // ------------------------------------------------------------------- class ReplicaDescriptor : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ReplicaDescriptor) */ { @@ -185,15 +177,7 @@ class ReplicaDescriptor : public ::google::protobuf::MessageLite /* @@protoc_ins static const ReplicaDescriptor& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const ReplicaDescriptor* internal_default_instance() { - return default_instance_; - } - #endif + static const ReplicaDescriptor* internal_default_instance(); void Swap(ReplicaDescriptor* other); @@ -208,7 +192,7 @@ class ReplicaDescriptor : public ::google::protobuf::MessageLite /* @@protoc_ins void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -220,6 +204,7 @@ class ReplicaDescriptor : public ::google::protobuf::MessageLite /* @@protoc_ins void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(ReplicaDescriptor* other); + void UnsafeMergeFrom(const ReplicaDescriptor& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -268,22 +253,20 @@ class ReplicaDescriptor : public ::google::protobuf::MessageLite /* @@protoc_ins ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::int32 node_id_; ::google::protobuf::int32 store_id_; ::google::protobuf::int32 replica_id_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); void InitAsDefaultInstance(); - static ReplicaDescriptor* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed ReplicaDescriptor_default_instance_; + // ------------------------------------------------------------------- class ReplicaIdent : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ReplicaIdent) */ { @@ -310,15 +293,7 @@ class ReplicaIdent : public ::google::protobuf::MessageLite /* @@protoc_insertio static const ReplicaIdent& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const ReplicaIdent* internal_default_instance() { - return default_instance_; - } - #endif + static const ReplicaIdent* internal_default_instance(); void Swap(ReplicaIdent* other); @@ -333,7 +308,7 @@ class ReplicaIdent : public ::google::protobuf::MessageLite /* @@protoc_insertio void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -345,6 +320,7 @@ class ReplicaIdent : public ::google::protobuf::MessageLite /* @@protoc_insertio void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(ReplicaIdent* other); + void UnsafeMergeFrom(const ReplicaIdent& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -386,21 +362,19 @@ class ReplicaIdent : public ::google::protobuf::MessageLite /* @@protoc_insertio ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; - ::google::protobuf::int64 range_id_; ::cockroach::roachpb::ReplicaDescriptor* replica_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::google::protobuf::int64 range_id_; + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); void InitAsDefaultInstance(); - static ReplicaIdent* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed ReplicaIdent_default_instance_; + // ------------------------------------------------------------------- class RangeDescriptor : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.RangeDescriptor) */ { @@ -427,15 +401,7 @@ class RangeDescriptor : public ::google::protobuf::MessageLite /* @@protoc_inser static const RangeDescriptor& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const RangeDescriptor* internal_default_instance() { - return default_instance_; - } - #endif + static const RangeDescriptor* internal_default_instance(); void Swap(RangeDescriptor* other); @@ -450,7 +416,7 @@ class RangeDescriptor : public ::google::protobuf::MessageLite /* @@protoc_inser void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -462,6 +428,7 @@ class RangeDescriptor : public ::google::protobuf::MessageLite /* @@protoc_inser void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(RangeDescriptor* other); + void UnsafeMergeFrom(const RangeDescriptor& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -541,24 +508,22 @@ class RangeDescriptor : public ::google::protobuf::MessageLite /* @@protoc_inser ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; - ::google::protobuf::int64 range_id_; + ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor > replicas_; ::google::protobuf::internal::ArenaStringPtr start_key_; ::google::protobuf::internal::ArenaStringPtr end_key_; - ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor > replicas_; + ::google::protobuf::int64 range_id_; ::google::protobuf::int32 next_replica_id_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); void InitAsDefaultInstance(); - static RangeDescriptor* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed RangeDescriptor_default_instance_; + // ------------------------------------------------------------------- class StoreCapacity : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.StoreCapacity) */ { @@ -585,15 +550,7 @@ class StoreCapacity : public ::google::protobuf::MessageLite /* @@protoc_inserti static const StoreCapacity& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const StoreCapacity* internal_default_instance() { - return default_instance_; - } - #endif + static const StoreCapacity* internal_default_instance(); void Swap(StoreCapacity* other); @@ -608,7 +565,7 @@ class StoreCapacity : public ::google::protobuf::MessageLite /* @@protoc_inserti void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -620,6 +577,7 @@ class StoreCapacity : public ::google::protobuf::MessageLite /* @@protoc_inserti void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(StoreCapacity* other); + void UnsafeMergeFrom(const StoreCapacity& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -677,23 +635,21 @@ class StoreCapacity : public ::google::protobuf::MessageLite /* @@protoc_inserti ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::int64 capacity_; ::google::protobuf::int64 available_; ::google::protobuf::int32 range_count_; ::google::protobuf::int32 lease_count_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); void InitAsDefaultInstance(); - static StoreCapacity* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed StoreCapacity_default_instance_; + // ------------------------------------------------------------------- class NodeDescriptor : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.NodeDescriptor) */ { @@ -720,15 +676,7 @@ class NodeDescriptor : public ::google::protobuf::MessageLite /* @@protoc_insert static const NodeDescriptor& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const NodeDescriptor* internal_default_instance() { - return default_instance_; - } - #endif + static const NodeDescriptor* internal_default_instance(); void Swap(NodeDescriptor* other); @@ -743,7 +691,7 @@ class NodeDescriptor : public ::google::protobuf::MessageLite /* @@protoc_insert void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -755,6 +703,7 @@ class NodeDescriptor : public ::google::protobuf::MessageLite /* @@protoc_insert void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(NodeDescriptor* other); + void UnsafeMergeFrom(const NodeDescriptor& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -818,23 +767,21 @@ class NodeDescriptor : public ::google::protobuf::MessageLite /* @@protoc_insert ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::cockroach::util::UnresolvedAddr* address_; ::cockroach::roachpb::Attributes* attrs_; ::cockroach::roachpb::Locality* locality_; ::google::protobuf::int32 node_id_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); void InitAsDefaultInstance(); - static NodeDescriptor* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed NodeDescriptor_default_instance_; + // ------------------------------------------------------------------- class StoreDescriptor : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.StoreDescriptor) */ { @@ -861,15 +808,7 @@ class StoreDescriptor : public ::google::protobuf::MessageLite /* @@protoc_inser static const StoreDescriptor& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const StoreDescriptor* internal_default_instance() { - return default_instance_; - } - #endif + static const StoreDescriptor* internal_default_instance(); void Swap(StoreDescriptor* other); @@ -884,7 +823,7 @@ class StoreDescriptor : public ::google::protobuf::MessageLite /* @@protoc_inser void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -896,6 +835,7 @@ class StoreDescriptor : public ::google::protobuf::MessageLite /* @@protoc_inser void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(StoreDescriptor* other); + void UnsafeMergeFrom(const StoreDescriptor& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -959,23 +899,21 @@ class StoreDescriptor : public ::google::protobuf::MessageLite /* @@protoc_inser ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::cockroach::roachpb::Attributes* attrs_; ::cockroach::roachpb::NodeDescriptor* node_; ::cockroach::roachpb::StoreCapacity* capacity_; ::google::protobuf::int32 store_id_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); void InitAsDefaultInstance(); - static StoreDescriptor* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed StoreDescriptor_default_instance_; + // ------------------------------------------------------------------- class StoreDeadReplicas : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.StoreDeadReplicas) */ { @@ -1002,15 +940,7 @@ class StoreDeadReplicas : public ::google::protobuf::MessageLite /* @@protoc_ins static const StoreDeadReplicas& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const StoreDeadReplicas* internal_default_instance() { - return default_instance_; - } - #endif + static const StoreDeadReplicas* internal_default_instance(); void Swap(StoreDeadReplicas* other); @@ -1025,7 +955,7 @@ class StoreDeadReplicas : public ::google::protobuf::MessageLite /* @@protoc_ins void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -1037,6 +967,7 @@ class StoreDeadReplicas : public ::google::protobuf::MessageLite /* @@protoc_ins void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(StoreDeadReplicas* other); + void UnsafeMergeFrom(const StoreDeadReplicas& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -1079,21 +1010,19 @@ class StoreDeadReplicas : public ::google::protobuf::MessageLite /* @@protoc_ins ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaIdent > replicas_; ::google::protobuf::int32 store_id_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); void InitAsDefaultInstance(); - static StoreDeadReplicas* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed StoreDeadReplicas_default_instance_; + // ------------------------------------------------------------------- class Locality : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Locality) */ { @@ -1120,15 +1049,7 @@ class Locality : public ::google::protobuf::MessageLite /* @@protoc_insertion_po static const Locality& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const Locality* internal_default_instance() { - return default_instance_; - } - #endif + static const Locality* internal_default_instance(); void Swap(Locality* other); @@ -1143,7 +1064,7 @@ class Locality : public ::google::protobuf::MessageLite /* @@protoc_insertion_po void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -1155,6 +1076,7 @@ class Locality : public ::google::protobuf::MessageLite /* @@protoc_insertion_po void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(Locality* other); + void UnsafeMergeFrom(const Locality& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -1188,20 +1110,18 @@ class Locality : public ::google::protobuf::MessageLite /* @@protoc_insertion_po ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Tier > tiers_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); void InitAsDefaultInstance(); - static Locality* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed Locality_default_instance_; + // ------------------------------------------------------------------- class Tier : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Tier) */ { @@ -1228,15 +1148,7 @@ class Tier : public ::google::protobuf::MessageLite /* @@protoc_insertion_point( static const Tier& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const Tier* internal_default_instance() { - return default_instance_; - } - #endif + static const Tier* internal_default_instance(); void Swap(Tier* other); @@ -1251,7 +1163,7 @@ class Tier : public ::google::protobuf::MessageLite /* @@protoc_insertion_point( void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -1263,6 +1175,7 @@ class Tier : public ::google::protobuf::MessageLite /* @@protoc_insertion_point( void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(Tier* other); + void UnsafeMergeFrom(const Tier& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -1312,21 +1225,19 @@ class Tier : public ::google::protobuf::MessageLite /* @@protoc_insertion_point( ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::internal::ArenaStringPtr key_; ::google::protobuf::internal::ArenaStringPtr value_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2froachpb_2fmetadata_2eproto(); void InitAsDefaultInstance(); - static Tier* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed Tier_default_instance_; + // =================================================================== @@ -1390,6 +1301,9 @@ Attributes::mutable_attrs() { return &attrs_; } +inline const Attributes* Attributes::internal_default_instance() { + return &Attributes_default_instance_.get(); +} // ------------------------------------------------------------------- // ReplicaDescriptor @@ -1466,6 +1380,9 @@ inline void ReplicaDescriptor::set_replica_id(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicaDescriptor.replica_id) } +inline const ReplicaDescriptor* ReplicaDescriptor::internal_default_instance() { + return &ReplicaDescriptor_default_instance_.get(); +} // ------------------------------------------------------------------- // ReplicaIdent @@ -1510,11 +1427,8 @@ inline void ReplicaIdent::clear_replica() { } inline const ::cockroach::roachpb::ReplicaDescriptor& ReplicaIdent::replica() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaIdent.replica) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return replica_ != NULL ? *replica_ : *default_instance().replica_; -#else - return replica_ != NULL ? *replica_ : *default_instance_->replica_; -#endif + return replica_ != NULL ? *replica_ + : *::cockroach::roachpb::ReplicaDescriptor::internal_default_instance(); } inline ::cockroach::roachpb::ReplicaDescriptor* ReplicaIdent::mutable_replica() { set_has_replica(); @@ -1542,6 +1456,9 @@ inline void ReplicaIdent::set_allocated_replica(::cockroach::roachpb::ReplicaDes // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.ReplicaIdent.replica) } +inline const ReplicaIdent* ReplicaIdent::internal_default_instance() { + return &ReplicaIdent_default_instance_.get(); +} // ------------------------------------------------------------------- // RangeDescriptor @@ -1732,6 +1649,9 @@ inline void RangeDescriptor::set_next_replica_id(::google::protobuf::int32 value // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeDescriptor.next_replica_id) } +inline const RangeDescriptor* RangeDescriptor::internal_default_instance() { + return &RangeDescriptor_default_instance_.get(); +} // ------------------------------------------------------------------- // StoreCapacity @@ -1832,6 +1752,9 @@ inline void StoreCapacity::set_lease_count(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreCapacity.lease_count) } +inline const StoreCapacity* StoreCapacity::internal_default_instance() { + return &StoreCapacity_default_instance_.get(); +} // ------------------------------------------------------------------- // NodeDescriptor @@ -1876,11 +1799,8 @@ inline void NodeDescriptor::clear_address() { } inline const ::cockroach::util::UnresolvedAddr& NodeDescriptor::address() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.address) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return address_ != NULL ? *address_ : *default_instance().address_; -#else - return address_ != NULL ? *address_ : *default_instance_->address_; -#endif + return address_ != NULL ? *address_ + : *::cockroach::util::UnresolvedAddr::internal_default_instance(); } inline ::cockroach::util::UnresolvedAddr* NodeDescriptor::mutable_address() { set_has_address(); @@ -1924,11 +1844,8 @@ inline void NodeDescriptor::clear_attrs() { } inline const ::cockroach::roachpb::Attributes& NodeDescriptor::attrs() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.attrs) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return attrs_ != NULL ? *attrs_ : *default_instance().attrs_; -#else - return attrs_ != NULL ? *attrs_ : *default_instance_->attrs_; -#endif + return attrs_ != NULL ? *attrs_ + : *::cockroach::roachpb::Attributes::internal_default_instance(); } inline ::cockroach::roachpb::Attributes* NodeDescriptor::mutable_attrs() { set_has_attrs(); @@ -1972,11 +1889,8 @@ inline void NodeDescriptor::clear_locality() { } inline const ::cockroach::roachpb::Locality& NodeDescriptor::locality() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.locality) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return locality_ != NULL ? *locality_ : *default_instance().locality_; -#else - return locality_ != NULL ? *locality_ : *default_instance_->locality_; -#endif + return locality_ != NULL ? *locality_ + : *::cockroach::roachpb::Locality::internal_default_instance(); } inline ::cockroach::roachpb::Locality* NodeDescriptor::mutable_locality() { set_has_locality(); @@ -2004,6 +1918,9 @@ inline void NodeDescriptor::set_allocated_locality(::cockroach::roachpb::Localit // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.NodeDescriptor.locality) } +inline const NodeDescriptor* NodeDescriptor::internal_default_instance() { + return &NodeDescriptor_default_instance_.get(); +} // ------------------------------------------------------------------- // StoreDescriptor @@ -2048,11 +1965,8 @@ inline void StoreDescriptor::clear_attrs() { } inline const ::cockroach::roachpb::Attributes& StoreDescriptor::attrs() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreDescriptor.attrs) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return attrs_ != NULL ? *attrs_ : *default_instance().attrs_; -#else - return attrs_ != NULL ? *attrs_ : *default_instance_->attrs_; -#endif + return attrs_ != NULL ? *attrs_ + : *::cockroach::roachpb::Attributes::internal_default_instance(); } inline ::cockroach::roachpb::Attributes* StoreDescriptor::mutable_attrs() { set_has_attrs(); @@ -2096,11 +2010,8 @@ inline void StoreDescriptor::clear_node() { } inline const ::cockroach::roachpb::NodeDescriptor& StoreDescriptor::node() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreDescriptor.node) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return node_ != NULL ? *node_ : *default_instance().node_; -#else - return node_ != NULL ? *node_ : *default_instance_->node_; -#endif + return node_ != NULL ? *node_ + : *::cockroach::roachpb::NodeDescriptor::internal_default_instance(); } inline ::cockroach::roachpb::NodeDescriptor* StoreDescriptor::mutable_node() { set_has_node(); @@ -2144,11 +2055,8 @@ inline void StoreDescriptor::clear_capacity() { } inline const ::cockroach::roachpb::StoreCapacity& StoreDescriptor::capacity() const { // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreDescriptor.capacity) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return capacity_ != NULL ? *capacity_ : *default_instance().capacity_; -#else - return capacity_ != NULL ? *capacity_ : *default_instance_->capacity_; -#endif + return capacity_ != NULL ? *capacity_ + : *::cockroach::roachpb::StoreCapacity::internal_default_instance(); } inline ::cockroach::roachpb::StoreCapacity* StoreDescriptor::mutable_capacity() { set_has_capacity(); @@ -2176,6 +2084,9 @@ inline void StoreDescriptor::set_allocated_capacity(::cockroach::roachpb::StoreC // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.StoreDescriptor.capacity) } +inline const StoreDescriptor* StoreDescriptor::internal_default_instance() { + return &StoreDescriptor_default_instance_.get(); +} // ------------------------------------------------------------------- // StoreDeadReplicas @@ -2234,6 +2145,9 @@ StoreDeadReplicas::replicas() const { return replicas_; } +inline const StoreDeadReplicas* StoreDeadReplicas::internal_default_instance() { + return &StoreDeadReplicas_default_instance_.get(); +} // ------------------------------------------------------------------- // Locality @@ -2268,6 +2182,9 @@ Locality::tiers() const { return tiers_; } +inline const Locality* Locality::internal_default_instance() { + return &Locality_default_instance_.get(); +} // ------------------------------------------------------------------- // Tier @@ -2380,6 +2297,9 @@ inline void Tier::set_allocated_value(::std::string* value) { // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Tier.value) } +inline const Tier* Tier::internal_default_instance() { + return &Tier_default_instance_.get(); +} #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- diff --git a/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/mvcc.pb.cc b/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/mvcc.pb.cc index c755f912055a..49827867f33f 100644 --- a/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/mvcc.pb.cc +++ b/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/mvcc.pb.cc @@ -20,50 +20,54 @@ namespace engine { namespace enginepb { void protobuf_ShutdownFile_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto() { - delete TxnMeta::default_instance_; - delete MVCCMetadata::default_instance_; - delete MVCCStats::default_instance_; + TxnMeta_default_instance_.Shutdown(); + MVCCMetadata_default_instance_.Shutdown(); + MVCCStats_default_instance_.Shutdown(); } -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_impl() { +void protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#else -void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; + ::cockroach::util::hlc::protobuf_InitDefaults_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); + ::google::protobuf::internal::GetEmptyString(); + TxnMeta_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + MVCCMetadata_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + MVCCStats_default_instance_.DefaultConstruct(); + TxnMeta_default_instance_.get_mutable()->InitAsDefaultInstance(); + MVCCMetadata_default_instance_.get_mutable()->InitAsDefaultInstance(); + MVCCStats_default_instance_.get_mutable()->InitAsDefaultInstance(); +} + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_once_); +void protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto() { + ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_once_, + &protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_impl); +} +void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#endif + protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); ::cockroach::util::hlc::protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); - TxnMeta::default_instance_ = new TxnMeta(); - MVCCMetadata::default_instance_ = new MVCCMetadata(); - MVCCStats::default_instance_ = new MVCCStats(); - TxnMeta::default_instance_->InitAsDefaultInstance(); - MVCCMetadata::default_instance_->InitAsDefaultInstance(); - MVCCStats::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto); } -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_once_); void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto() { ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_once_, &protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_impl); } -#else +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto { StaticDescriptorInitializer_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto() { protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); } } static_descriptor_initializer_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_; -#endif +#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER bool IsolationType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: return true; @@ -73,6 +77,16 @@ bool IsolationType_IsValid(int value) { } +namespace { + +static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; +static void MergeFromFail(int line) { + ::google::protobuf::internal::MergeFromFail(__FILE__, line); +} + +} // namespace + + // =================================================================== static ::std::string* MutableUnknownFieldsForTxnMeta( @@ -93,41 +107,33 @@ const int TxnMeta::kBatchIndexFieldNumber; TxnMeta::TxnMeta() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.storage.engine.enginepb.TxnMeta) } void TxnMeta::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER timestamp_ = const_cast< ::cockroach::util::hlc::Timestamp*>( ::cockroach::util::hlc::Timestamp::internal_default_instance()); -#else - timestamp_ = const_cast< ::cockroach::util::hlc::Timestamp*>(&::cockroach::util::hlc::Timestamp::default_instance()); -#endif } TxnMeta::TxnMeta(const TxnMeta& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.storage.engine.enginepb.TxnMeta) } void TxnMeta::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - isolation_ = 0; key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - epoch_ = 0u; timestamp_ = NULL; - priority_ = 0; - sequence_ = 0; - batch_index_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::memset(&isolation_, 0, reinterpret_cast(&batch_index_) - + reinterpret_cast(&isolation_) + sizeof(batch_index_)); } TxnMeta::~TxnMeta() { @@ -140,11 +146,7 @@ void TxnMeta::SharedDtor() { &::google::protobuf::internal::GetEmptyStringAlreadyInited()); id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &TxnMeta_default_instance_.get()) { delete timestamp_; } } @@ -155,15 +157,11 @@ void TxnMeta::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const TxnMeta& TxnMeta::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); + return *internal_default_instance(); } -TxnMeta* TxnMeta::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed TxnMeta_default_instance_; TxnMeta* TxnMeta::New(::google::protobuf::Arena* arena) const { TxnMeta* n = new TxnMeta; @@ -187,13 +185,12 @@ void TxnMeta::Clear() { #endif #define ZR_(first, last) do {\ - ::memset(&first, 0,\ + ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) if (_has_bits_[0 / 32] & 255u) { - ZR_(isolation_, epoch_); - ZR_(priority_, batch_index_); + ZR_(isolation_, batch_index_); if (has_id()) { id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -208,7 +205,7 @@ void TxnMeta::Clear() { #undef ZR_HELPER_ #undef ZR_ - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -218,7 +215,7 @@ bool TxnMeta::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForTxnMeta, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -278,10 +275,10 @@ bool TxnMeta::MergePartialFromCodedStream( case 4: { if (tag == 32) { parse_epoch: + set_has_epoch(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( input, &epoch_))); - set_has_epoch(); } else { goto handle_unusual; } @@ -306,10 +303,10 @@ bool TxnMeta::MergePartialFromCodedStream( case 6: { if (tag == 48) { parse_priority: + set_has_priority(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &priority_))); - set_has_priority(); } else { goto handle_unusual; } @@ -321,10 +318,10 @@ bool TxnMeta::MergePartialFromCodedStream( case 7: { if (tag == 56) { parse_sequence: + set_has_sequence(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &sequence_))); - set_has_sequence(); } else { goto handle_unusual; } @@ -336,10 +333,10 @@ bool TxnMeta::MergePartialFromCodedStream( case 8: { if (tag == 64) { parse_batch_index: + set_has_batch_index(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &batch_index_))); - set_has_batch_index(); } else { goto handle_unusual; } @@ -421,9 +418,9 @@ void TxnMeta::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.storage.engine.enginepb.TxnMeta) } -int TxnMeta::ByteSize() const { +size_t TxnMeta::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.storage.engine.enginepb.TxnMeta) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 255u) { // optional bytes id = 1; @@ -484,8 +481,9 @@ int TxnMeta::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -497,9 +495,15 @@ void TxnMeta::CheckTypeAndMergeFrom( void TxnMeta::MergeFrom(const TxnMeta& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.storage.engine.enginepb.TxnMeta) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void TxnMeta::UnsafeMergeFrom(const TxnMeta& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_id()) { set_has_id(); @@ -537,7 +541,7 @@ void TxnMeta::CopyFrom(const TxnMeta& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.storage.engine.enginepb.TxnMeta) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool TxnMeta::IsInitialized() const { @@ -584,37 +588,37 @@ void TxnMeta::clear_id() { id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_id(); } - const ::std::string& TxnMeta::id() const { +const ::std::string& TxnMeta::id() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.TxnMeta.id) return id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void TxnMeta::set_id(const ::std::string& value) { +void TxnMeta::set_id(const ::std::string& value) { set_has_id(); id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.TxnMeta.id) } - void TxnMeta::set_id(const char* value) { +void TxnMeta::set_id(const char* value) { set_has_id(); id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.storage.engine.enginepb.TxnMeta.id) } - void TxnMeta::set_id(const void* value, size_t size) { +void TxnMeta::set_id(const void* value, size_t size) { set_has_id(); id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.storage.engine.enginepb.TxnMeta.id) } - ::std::string* TxnMeta::mutable_id() { +::std::string* TxnMeta::mutable_id() { set_has_id(); // @@protoc_insertion_point(field_mutable:cockroach.storage.engine.enginepb.TxnMeta.id) return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* TxnMeta::release_id() { +::std::string* TxnMeta::release_id() { // @@protoc_insertion_point(field_release:cockroach.storage.engine.enginepb.TxnMeta.id) clear_has_id(); return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void TxnMeta::set_allocated_id(::std::string* id) { +void TxnMeta::set_allocated_id(::std::string* id) { if (id != NULL) { set_has_id(); } else { @@ -638,11 +642,11 @@ void TxnMeta::clear_isolation() { isolation_ = 0; clear_has_isolation(); } - ::cockroach::storage::engine::enginepb::IsolationType TxnMeta::isolation() const { +::cockroach::storage::engine::enginepb::IsolationType TxnMeta::isolation() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.TxnMeta.isolation) return static_cast< ::cockroach::storage::engine::enginepb::IsolationType >(isolation_); } - void TxnMeta::set_isolation(::cockroach::storage::engine::enginepb::IsolationType value) { +void TxnMeta::set_isolation(::cockroach::storage::engine::enginepb::IsolationType value) { assert(::cockroach::storage::engine::enginepb::IsolationType_IsValid(value)); set_has_isolation(); isolation_ = value; @@ -663,37 +667,37 @@ void TxnMeta::clear_key() { key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_key(); } - const ::std::string& TxnMeta::key() const { +const ::std::string& TxnMeta::key() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.TxnMeta.key) return key_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void TxnMeta::set_key(const ::std::string& value) { +void TxnMeta::set_key(const ::std::string& value) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.TxnMeta.key) } - void TxnMeta::set_key(const char* value) { +void TxnMeta::set_key(const char* value) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.storage.engine.enginepb.TxnMeta.key) } - void TxnMeta::set_key(const void* value, size_t size) { +void TxnMeta::set_key(const void* value, size_t size) { set_has_key(); key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.storage.engine.enginepb.TxnMeta.key) } - ::std::string* TxnMeta::mutable_key() { +::std::string* TxnMeta::mutable_key() { set_has_key(); // @@protoc_insertion_point(field_mutable:cockroach.storage.engine.enginepb.TxnMeta.key) return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* TxnMeta::release_key() { +::std::string* TxnMeta::release_key() { // @@protoc_insertion_point(field_release:cockroach.storage.engine.enginepb.TxnMeta.key) clear_has_key(); return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void TxnMeta::set_allocated_key(::std::string* key) { +void TxnMeta::set_allocated_key(::std::string* key) { if (key != NULL) { set_has_key(); } else { @@ -717,11 +721,11 @@ void TxnMeta::clear_epoch() { epoch_ = 0u; clear_has_epoch(); } - ::google::protobuf::uint32 TxnMeta::epoch() const { +::google::protobuf::uint32 TxnMeta::epoch() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.TxnMeta.epoch) return epoch_; } - void TxnMeta::set_epoch(::google::protobuf::uint32 value) { +void TxnMeta::set_epoch(::google::protobuf::uint32 value) { set_has_epoch(); epoch_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.TxnMeta.epoch) @@ -743,11 +747,8 @@ void TxnMeta::clear_timestamp() { } const ::cockroach::util::hlc::Timestamp& TxnMeta::timestamp() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.TxnMeta.timestamp) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return timestamp_ != NULL ? *timestamp_ : *default_instance().timestamp_; -#else - return timestamp_ != NULL ? *timestamp_ : *default_instance_->timestamp_; -#endif + return timestamp_ != NULL ? *timestamp_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } ::cockroach::util::hlc::Timestamp* TxnMeta::mutable_timestamp() { set_has_timestamp(); @@ -789,11 +790,11 @@ void TxnMeta::clear_priority() { priority_ = 0; clear_has_priority(); } - ::google::protobuf::int32 TxnMeta::priority() const { +::google::protobuf::int32 TxnMeta::priority() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.TxnMeta.priority) return priority_; } - void TxnMeta::set_priority(::google::protobuf::int32 value) { +void TxnMeta::set_priority(::google::protobuf::int32 value) { set_has_priority(); priority_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.TxnMeta.priority) @@ -813,11 +814,11 @@ void TxnMeta::clear_sequence() { sequence_ = 0; clear_has_sequence(); } - ::google::protobuf::int32 TxnMeta::sequence() const { +::google::protobuf::int32 TxnMeta::sequence() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.TxnMeta.sequence) return sequence_; } - void TxnMeta::set_sequence(::google::protobuf::int32 value) { +void TxnMeta::set_sequence(::google::protobuf::int32 value) { set_has_sequence(); sequence_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.TxnMeta.sequence) @@ -837,16 +838,19 @@ void TxnMeta::clear_batch_index() { batch_index_ = 0; clear_has_batch_index(); } - ::google::protobuf::int32 TxnMeta::batch_index() const { +::google::protobuf::int32 TxnMeta::batch_index() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.TxnMeta.batch_index) return batch_index_; } - void TxnMeta::set_batch_index(::google::protobuf::int32 value) { +void TxnMeta::set_batch_index(::google::protobuf::int32 value) { set_has_batch_index(); batch_index_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.TxnMeta.batch_index) } +inline const TxnMeta* TxnMeta::internal_default_instance() { + return &TxnMeta_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -868,52 +872,38 @@ const int MVCCMetadata::kMergeTimestampFieldNumber; MVCCMetadata::MVCCMetadata() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.storage.engine.enginepb.MVCCMetadata) } void MVCCMetadata::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER txn_ = const_cast< ::cockroach::storage::engine::enginepb::TxnMeta*>( ::cockroach::storage::engine::enginepb::TxnMeta::internal_default_instance()); -#else - txn_ = const_cast< ::cockroach::storage::engine::enginepb::TxnMeta*>(&::cockroach::storage::engine::enginepb::TxnMeta::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER timestamp_ = const_cast< ::cockroach::util::hlc::Timestamp*>( ::cockroach::util::hlc::Timestamp::internal_default_instance()); -#else - timestamp_ = const_cast< ::cockroach::util::hlc::Timestamp*>(&::cockroach::util::hlc::Timestamp::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER merge_timestamp_ = const_cast< ::cockroach::util::hlc::Timestamp*>( ::cockroach::util::hlc::Timestamp::internal_default_instance()); -#else - merge_timestamp_ = const_cast< ::cockroach::util::hlc::Timestamp*>(&::cockroach::util::hlc::Timestamp::default_instance()); -#endif } MVCCMetadata::MVCCMetadata(const MVCCMetadata& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.storage.engine.enginepb.MVCCMetadata) } void MVCCMetadata::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + raw_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); txn_ = NULL; timestamp_ = NULL; - deleted_ = false; - key_bytes_ = GOOGLE_LONGLONG(0); - val_bytes_ = GOOGLE_LONGLONG(0); - raw_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); merge_timestamp_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::memset(&key_bytes_, 0, reinterpret_cast(&deleted_) - + reinterpret_cast(&key_bytes_) + sizeof(deleted_)); } MVCCMetadata::~MVCCMetadata() { @@ -925,11 +915,7 @@ void MVCCMetadata::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); raw_bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &MVCCMetadata_default_instance_.get()) { delete txn_; delete timestamp_; delete merge_timestamp_; @@ -942,15 +928,11 @@ void MVCCMetadata::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const MVCCMetadata& MVCCMetadata::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); + return *internal_default_instance(); } -MVCCMetadata* MVCCMetadata::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed MVCCMetadata_default_instance_; MVCCMetadata* MVCCMetadata::New(::google::protobuf::Arena* arena) const { MVCCMetadata* n = new MVCCMetadata; @@ -974,19 +956,18 @@ void MVCCMetadata::Clear() { #endif #define ZR_(first, last) do {\ - ::memset(&first, 0,\ + ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) if (_has_bits_[0 / 32] & 127u) { - ZR_(key_bytes_, val_bytes_); + ZR_(key_bytes_, deleted_); if (has_txn()) { if (txn_ != NULL) txn_->::cockroach::storage::engine::enginepb::TxnMeta::Clear(); } if (has_timestamp()) { if (timestamp_ != NULL) timestamp_->::cockroach::util::hlc::Timestamp::Clear(); } - deleted_ = false; if (has_raw_bytes()) { raw_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -998,7 +979,7 @@ void MVCCMetadata::Clear() { #undef ZR_HELPER_ #undef ZR_ - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1008,7 +989,7 @@ bool MVCCMetadata::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForMVCCMetadata, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -1047,10 +1028,10 @@ bool MVCCMetadata::MergePartialFromCodedStream( case 3: { if (tag == 24) { parse_deleted: + set_has_deleted(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &deleted_))); - set_has_deleted(); } else { goto handle_unusual; } @@ -1062,10 +1043,10 @@ bool MVCCMetadata::MergePartialFromCodedStream( case 4: { if (tag == 32) { parse_key_bytes: + set_has_key_bytes(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &key_bytes_))); - set_has_key_bytes(); } else { goto handle_unusual; } @@ -1077,10 +1058,10 @@ bool MVCCMetadata::MergePartialFromCodedStream( case 5: { if (tag == 40) { parse_val_bytes: + set_has_val_bytes(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &val_bytes_))); - set_has_val_bytes(); } else { goto handle_unusual; } @@ -1183,9 +1164,9 @@ void MVCCMetadata::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.storage.engine.enginepb.MVCCMetadata) } -int MVCCMetadata::ByteSize() const { +size_t MVCCMetadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.storage.engine.enginepb.MVCCMetadata) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 127u) { // optional .cockroach.storage.engine.enginepb.TxnMeta txn = 1; @@ -1238,8 +1219,9 @@ int MVCCMetadata::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -1251,9 +1233,15 @@ void MVCCMetadata::CheckTypeAndMergeFrom( void MVCCMetadata::MergeFrom(const MVCCMetadata& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.storage.engine.enginepb.MVCCMetadata) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void MVCCMetadata::UnsafeMergeFrom(const MVCCMetadata& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_txn()) { mutable_txn()->::cockroach::storage::engine::enginepb::TxnMeta::MergeFrom(from.txn()); @@ -1287,7 +1275,7 @@ void MVCCMetadata::CopyFrom(const MVCCMetadata& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.storage.engine.enginepb.MVCCMetadata) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool MVCCMetadata::IsInitialized() const { @@ -1335,11 +1323,8 @@ void MVCCMetadata::clear_txn() { } const ::cockroach::storage::engine::enginepb::TxnMeta& MVCCMetadata::txn() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCMetadata.txn) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return txn_ != NULL ? *txn_ : *default_instance().txn_; -#else - return txn_ != NULL ? *txn_ : *default_instance_->txn_; -#endif + return txn_ != NULL ? *txn_ + : *::cockroach::storage::engine::enginepb::TxnMeta::internal_default_instance(); } ::cockroach::storage::engine::enginepb::TxnMeta* MVCCMetadata::mutable_txn() { set_has_txn(); @@ -1383,11 +1368,8 @@ void MVCCMetadata::clear_timestamp() { } const ::cockroach::util::hlc::Timestamp& MVCCMetadata::timestamp() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCMetadata.timestamp) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return timestamp_ != NULL ? *timestamp_ : *default_instance().timestamp_; -#else - return timestamp_ != NULL ? *timestamp_ : *default_instance_->timestamp_; -#endif + return timestamp_ != NULL ? *timestamp_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } ::cockroach::util::hlc::Timestamp* MVCCMetadata::mutable_timestamp() { set_has_timestamp(); @@ -1429,11 +1411,11 @@ void MVCCMetadata::clear_deleted() { deleted_ = false; clear_has_deleted(); } - bool MVCCMetadata::deleted() const { +bool MVCCMetadata::deleted() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCMetadata.deleted) return deleted_; } - void MVCCMetadata::set_deleted(bool value) { +void MVCCMetadata::set_deleted(bool value) { set_has_deleted(); deleted_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCMetadata.deleted) @@ -1453,11 +1435,11 @@ void MVCCMetadata::clear_key_bytes() { key_bytes_ = GOOGLE_LONGLONG(0); clear_has_key_bytes(); } - ::google::protobuf::int64 MVCCMetadata::key_bytes() const { +::google::protobuf::int64 MVCCMetadata::key_bytes() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCMetadata.key_bytes) return key_bytes_; } - void MVCCMetadata::set_key_bytes(::google::protobuf::int64 value) { +void MVCCMetadata::set_key_bytes(::google::protobuf::int64 value) { set_has_key_bytes(); key_bytes_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCMetadata.key_bytes) @@ -1477,11 +1459,11 @@ void MVCCMetadata::clear_val_bytes() { val_bytes_ = GOOGLE_LONGLONG(0); clear_has_val_bytes(); } - ::google::protobuf::int64 MVCCMetadata::val_bytes() const { +::google::protobuf::int64 MVCCMetadata::val_bytes() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCMetadata.val_bytes) return val_bytes_; } - void MVCCMetadata::set_val_bytes(::google::protobuf::int64 value) { +void MVCCMetadata::set_val_bytes(::google::protobuf::int64 value) { set_has_val_bytes(); val_bytes_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCMetadata.val_bytes) @@ -1501,37 +1483,37 @@ void MVCCMetadata::clear_raw_bytes() { raw_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_raw_bytes(); } - const ::std::string& MVCCMetadata::raw_bytes() const { +const ::std::string& MVCCMetadata::raw_bytes() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCMetadata.raw_bytes) return raw_bytes_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void MVCCMetadata::set_raw_bytes(const ::std::string& value) { +void MVCCMetadata::set_raw_bytes(const ::std::string& value) { set_has_raw_bytes(); raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCMetadata.raw_bytes) } - void MVCCMetadata::set_raw_bytes(const char* value) { +void MVCCMetadata::set_raw_bytes(const char* value) { set_has_raw_bytes(); raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.storage.engine.enginepb.MVCCMetadata.raw_bytes) } - void MVCCMetadata::set_raw_bytes(const void* value, size_t size) { +void MVCCMetadata::set_raw_bytes(const void* value, size_t size) { set_has_raw_bytes(); raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.storage.engine.enginepb.MVCCMetadata.raw_bytes) } - ::std::string* MVCCMetadata::mutable_raw_bytes() { +::std::string* MVCCMetadata::mutable_raw_bytes() { set_has_raw_bytes(); // @@protoc_insertion_point(field_mutable:cockroach.storage.engine.enginepb.MVCCMetadata.raw_bytes) return raw_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* MVCCMetadata::release_raw_bytes() { +::std::string* MVCCMetadata::release_raw_bytes() { // @@protoc_insertion_point(field_release:cockroach.storage.engine.enginepb.MVCCMetadata.raw_bytes) clear_has_raw_bytes(); return raw_bytes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void MVCCMetadata::set_allocated_raw_bytes(::std::string* raw_bytes) { +void MVCCMetadata::set_allocated_raw_bytes(::std::string* raw_bytes) { if (raw_bytes != NULL) { set_has_raw_bytes(); } else { @@ -1557,11 +1539,8 @@ void MVCCMetadata::clear_merge_timestamp() { } const ::cockroach::util::hlc::Timestamp& MVCCMetadata::merge_timestamp() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCMetadata.merge_timestamp) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return merge_timestamp_ != NULL ? *merge_timestamp_ : *default_instance().merge_timestamp_; -#else - return merge_timestamp_ != NULL ? *merge_timestamp_ : *default_instance_->merge_timestamp_; -#endif + return merge_timestamp_ != NULL ? *merge_timestamp_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } ::cockroach::util::hlc::Timestamp* MVCCMetadata::mutable_merge_timestamp() { set_has_merge_timestamp(); @@ -1589,6 +1568,9 @@ void MVCCMetadata::set_allocated_merge_timestamp(::cockroach::util::hlc::Timesta // @@protoc_insertion_point(field_set_allocated:cockroach.storage.engine.enginepb.MVCCMetadata.merge_timestamp) } +inline const MVCCMetadata* MVCCMetadata::internal_default_instance() { + return &MVCCMetadata_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -1617,6 +1599,7 @@ const int MVCCStats::kSysCountFieldNumber; MVCCStats::MVCCStats() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.storage.engine.enginepb.MVCCStats) } @@ -1628,30 +1611,16 @@ MVCCStats::MVCCStats(const MVCCStats& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.storage.engine.enginepb.MVCCStats) } void MVCCStats::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - contains_estimates_ = false; - last_update_nanos_ = GOOGLE_LONGLONG(0); - intent_age_ = GOOGLE_LONGLONG(0); - gc_bytes_age_ = GOOGLE_LONGLONG(0); - live_bytes_ = GOOGLE_LONGLONG(0); - live_count_ = GOOGLE_LONGLONG(0); - key_bytes_ = GOOGLE_LONGLONG(0); - key_count_ = GOOGLE_LONGLONG(0); - val_bytes_ = GOOGLE_LONGLONG(0); - val_count_ = GOOGLE_LONGLONG(0); - intent_bytes_ = GOOGLE_LONGLONG(0); - intent_count_ = GOOGLE_LONGLONG(0); - sys_bytes_ = GOOGLE_LONGLONG(0); - sys_count_ = GOOGLE_LONGLONG(0); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::memset(&last_update_nanos_, 0, reinterpret_cast(&contains_estimates_) - + reinterpret_cast(&last_update_nanos_) + sizeof(contains_estimates_)); } MVCCStats::~MVCCStats() { @@ -1662,12 +1631,6 @@ MVCCStats::~MVCCStats() { void MVCCStats::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void MVCCStats::SetCachedSize(int size) const { @@ -1676,15 +1639,11 @@ void MVCCStats::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const MVCCStats& MVCCStats::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); + return *internal_default_instance(); } -MVCCStats* MVCCStats::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed MVCCStats_default_instance_; MVCCStats* MVCCStats::New(::google::protobuf::Arena* arena) const { MVCCStats* n = new MVCCStats; @@ -1708,7 +1667,7 @@ void MVCCStats::Clear() { #endif #define ZR_(first, last) do {\ - ::memset(&first, 0,\ + ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) @@ -1716,14 +1675,12 @@ void MVCCStats::Clear() { ZR_(last_update_nanos_, key_count_); contains_estimates_ = false; } - if (_has_bits_[8 / 32] & 16128u) { - ZR_(val_bytes_, sys_count_); - } + ZR_(val_bytes_, sys_count_); #undef ZR_HELPER_ #undef ZR_ - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -1733,7 +1690,7 @@ bool MVCCStats::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForMVCCStats, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -1746,10 +1703,10 @@ bool MVCCStats::MergePartialFromCodedStream( // optional sfixed64 last_update_nanos = 1; case 1: { if (tag == 9) { + set_has_last_update_nanos(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( input, &last_update_nanos_))); - set_has_last_update_nanos(); } else { goto handle_unusual; } @@ -1761,10 +1718,10 @@ bool MVCCStats::MergePartialFromCodedStream( case 2: { if (tag == 17) { parse_intent_age: + set_has_intent_age(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( input, &intent_age_))); - set_has_intent_age(); } else { goto handle_unusual; } @@ -1776,10 +1733,10 @@ bool MVCCStats::MergePartialFromCodedStream( case 3: { if (tag == 25) { parse_gc_bytes_age: + set_has_gc_bytes_age(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( input, &gc_bytes_age_))); - set_has_gc_bytes_age(); } else { goto handle_unusual; } @@ -1791,10 +1748,10 @@ bool MVCCStats::MergePartialFromCodedStream( case 4: { if (tag == 33) { parse_live_bytes: + set_has_live_bytes(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( input, &live_bytes_))); - set_has_live_bytes(); } else { goto handle_unusual; } @@ -1806,10 +1763,10 @@ bool MVCCStats::MergePartialFromCodedStream( case 5: { if (tag == 41) { parse_live_count: + set_has_live_count(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( input, &live_count_))); - set_has_live_count(); } else { goto handle_unusual; } @@ -1821,10 +1778,10 @@ bool MVCCStats::MergePartialFromCodedStream( case 6: { if (tag == 49) { parse_key_bytes: + set_has_key_bytes(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( input, &key_bytes_))); - set_has_key_bytes(); } else { goto handle_unusual; } @@ -1836,10 +1793,10 @@ bool MVCCStats::MergePartialFromCodedStream( case 7: { if (tag == 57) { parse_key_count: + set_has_key_count(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( input, &key_count_))); - set_has_key_count(); } else { goto handle_unusual; } @@ -1851,10 +1808,10 @@ bool MVCCStats::MergePartialFromCodedStream( case 8: { if (tag == 65) { parse_val_bytes: + set_has_val_bytes(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( input, &val_bytes_))); - set_has_val_bytes(); } else { goto handle_unusual; } @@ -1866,10 +1823,10 @@ bool MVCCStats::MergePartialFromCodedStream( case 9: { if (tag == 73) { parse_val_count: + set_has_val_count(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( input, &val_count_))); - set_has_val_count(); } else { goto handle_unusual; } @@ -1881,10 +1838,10 @@ bool MVCCStats::MergePartialFromCodedStream( case 10: { if (tag == 81) { parse_intent_bytes: + set_has_intent_bytes(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( input, &intent_bytes_))); - set_has_intent_bytes(); } else { goto handle_unusual; } @@ -1896,10 +1853,10 @@ bool MVCCStats::MergePartialFromCodedStream( case 11: { if (tag == 89) { parse_intent_count: + set_has_intent_count(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( input, &intent_count_))); - set_has_intent_count(); } else { goto handle_unusual; } @@ -1911,10 +1868,10 @@ bool MVCCStats::MergePartialFromCodedStream( case 12: { if (tag == 97) { parse_sys_bytes: + set_has_sys_bytes(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( input, &sys_bytes_))); - set_has_sys_bytes(); } else { goto handle_unusual; } @@ -1926,10 +1883,10 @@ bool MVCCStats::MergePartialFromCodedStream( case 13: { if (tag == 105) { parse_sys_count: + set_has_sys_count(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( input, &sys_count_))); - set_has_sys_count(); } else { goto handle_unusual; } @@ -1941,10 +1898,10 @@ bool MVCCStats::MergePartialFromCodedStream( case 14: { if (tag == 112) { parse_contains_estimates: + set_has_contains_estimates(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &contains_estimates_))); - set_has_contains_estimates(); } else { goto handle_unusual; } @@ -2052,9 +2009,9 @@ void MVCCStats::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.storage.engine.enginepb.MVCCStats) } -int MVCCStats::ByteSize() const { +size_t MVCCStats::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.storage.engine.enginepb.MVCCStats) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 255u) { // optional bool contains_estimates = 14; @@ -2132,8 +2089,9 @@ int MVCCStats::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -2145,9 +2103,15 @@ void MVCCStats::CheckTypeAndMergeFrom( void MVCCStats::MergeFrom(const MVCCStats& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.storage.engine.enginepb.MVCCStats) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void MVCCStats::UnsafeMergeFrom(const MVCCStats& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_contains_estimates()) { set_contains_estimates(from.contains_estimates()); @@ -2203,7 +2167,7 @@ void MVCCStats::CopyFrom(const MVCCStats& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.storage.engine.enginepb.MVCCStats) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool MVCCStats::IsInitialized() const { @@ -2256,11 +2220,11 @@ void MVCCStats::clear_contains_estimates() { contains_estimates_ = false; clear_has_contains_estimates(); } - bool MVCCStats::contains_estimates() const { +bool MVCCStats::contains_estimates() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCStats.contains_estimates) return contains_estimates_; } - void MVCCStats::set_contains_estimates(bool value) { +void MVCCStats::set_contains_estimates(bool value) { set_has_contains_estimates(); contains_estimates_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.contains_estimates) @@ -2280,11 +2244,11 @@ void MVCCStats::clear_last_update_nanos() { last_update_nanos_ = GOOGLE_LONGLONG(0); clear_has_last_update_nanos(); } - ::google::protobuf::int64 MVCCStats::last_update_nanos() const { +::google::protobuf::int64 MVCCStats::last_update_nanos() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCStats.last_update_nanos) return last_update_nanos_; } - void MVCCStats::set_last_update_nanos(::google::protobuf::int64 value) { +void MVCCStats::set_last_update_nanos(::google::protobuf::int64 value) { set_has_last_update_nanos(); last_update_nanos_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.last_update_nanos) @@ -2304,11 +2268,11 @@ void MVCCStats::clear_intent_age() { intent_age_ = GOOGLE_LONGLONG(0); clear_has_intent_age(); } - ::google::protobuf::int64 MVCCStats::intent_age() const { +::google::protobuf::int64 MVCCStats::intent_age() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCStats.intent_age) return intent_age_; } - void MVCCStats::set_intent_age(::google::protobuf::int64 value) { +void MVCCStats::set_intent_age(::google::protobuf::int64 value) { set_has_intent_age(); intent_age_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.intent_age) @@ -2328,11 +2292,11 @@ void MVCCStats::clear_gc_bytes_age() { gc_bytes_age_ = GOOGLE_LONGLONG(0); clear_has_gc_bytes_age(); } - ::google::protobuf::int64 MVCCStats::gc_bytes_age() const { +::google::protobuf::int64 MVCCStats::gc_bytes_age() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCStats.gc_bytes_age) return gc_bytes_age_; } - void MVCCStats::set_gc_bytes_age(::google::protobuf::int64 value) { +void MVCCStats::set_gc_bytes_age(::google::protobuf::int64 value) { set_has_gc_bytes_age(); gc_bytes_age_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.gc_bytes_age) @@ -2352,11 +2316,11 @@ void MVCCStats::clear_live_bytes() { live_bytes_ = GOOGLE_LONGLONG(0); clear_has_live_bytes(); } - ::google::protobuf::int64 MVCCStats::live_bytes() const { +::google::protobuf::int64 MVCCStats::live_bytes() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCStats.live_bytes) return live_bytes_; } - void MVCCStats::set_live_bytes(::google::protobuf::int64 value) { +void MVCCStats::set_live_bytes(::google::protobuf::int64 value) { set_has_live_bytes(); live_bytes_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.live_bytes) @@ -2376,11 +2340,11 @@ void MVCCStats::clear_live_count() { live_count_ = GOOGLE_LONGLONG(0); clear_has_live_count(); } - ::google::protobuf::int64 MVCCStats::live_count() const { +::google::protobuf::int64 MVCCStats::live_count() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCStats.live_count) return live_count_; } - void MVCCStats::set_live_count(::google::protobuf::int64 value) { +void MVCCStats::set_live_count(::google::protobuf::int64 value) { set_has_live_count(); live_count_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.live_count) @@ -2400,11 +2364,11 @@ void MVCCStats::clear_key_bytes() { key_bytes_ = GOOGLE_LONGLONG(0); clear_has_key_bytes(); } - ::google::protobuf::int64 MVCCStats::key_bytes() const { +::google::protobuf::int64 MVCCStats::key_bytes() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCStats.key_bytes) return key_bytes_; } - void MVCCStats::set_key_bytes(::google::protobuf::int64 value) { +void MVCCStats::set_key_bytes(::google::protobuf::int64 value) { set_has_key_bytes(); key_bytes_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.key_bytes) @@ -2424,11 +2388,11 @@ void MVCCStats::clear_key_count() { key_count_ = GOOGLE_LONGLONG(0); clear_has_key_count(); } - ::google::protobuf::int64 MVCCStats::key_count() const { +::google::protobuf::int64 MVCCStats::key_count() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCStats.key_count) return key_count_; } - void MVCCStats::set_key_count(::google::protobuf::int64 value) { +void MVCCStats::set_key_count(::google::protobuf::int64 value) { set_has_key_count(); key_count_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.key_count) @@ -2448,11 +2412,11 @@ void MVCCStats::clear_val_bytes() { val_bytes_ = GOOGLE_LONGLONG(0); clear_has_val_bytes(); } - ::google::protobuf::int64 MVCCStats::val_bytes() const { +::google::protobuf::int64 MVCCStats::val_bytes() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCStats.val_bytes) return val_bytes_; } - void MVCCStats::set_val_bytes(::google::protobuf::int64 value) { +void MVCCStats::set_val_bytes(::google::protobuf::int64 value) { set_has_val_bytes(); val_bytes_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.val_bytes) @@ -2472,11 +2436,11 @@ void MVCCStats::clear_val_count() { val_count_ = GOOGLE_LONGLONG(0); clear_has_val_count(); } - ::google::protobuf::int64 MVCCStats::val_count() const { +::google::protobuf::int64 MVCCStats::val_count() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCStats.val_count) return val_count_; } - void MVCCStats::set_val_count(::google::protobuf::int64 value) { +void MVCCStats::set_val_count(::google::protobuf::int64 value) { set_has_val_count(); val_count_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.val_count) @@ -2496,11 +2460,11 @@ void MVCCStats::clear_intent_bytes() { intent_bytes_ = GOOGLE_LONGLONG(0); clear_has_intent_bytes(); } - ::google::protobuf::int64 MVCCStats::intent_bytes() const { +::google::protobuf::int64 MVCCStats::intent_bytes() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCStats.intent_bytes) return intent_bytes_; } - void MVCCStats::set_intent_bytes(::google::protobuf::int64 value) { +void MVCCStats::set_intent_bytes(::google::protobuf::int64 value) { set_has_intent_bytes(); intent_bytes_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.intent_bytes) @@ -2520,11 +2484,11 @@ void MVCCStats::clear_intent_count() { intent_count_ = GOOGLE_LONGLONG(0); clear_has_intent_count(); } - ::google::protobuf::int64 MVCCStats::intent_count() const { +::google::protobuf::int64 MVCCStats::intent_count() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCStats.intent_count) return intent_count_; } - void MVCCStats::set_intent_count(::google::protobuf::int64 value) { +void MVCCStats::set_intent_count(::google::protobuf::int64 value) { set_has_intent_count(); intent_count_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.intent_count) @@ -2544,11 +2508,11 @@ void MVCCStats::clear_sys_bytes() { sys_bytes_ = GOOGLE_LONGLONG(0); clear_has_sys_bytes(); } - ::google::protobuf::int64 MVCCStats::sys_bytes() const { +::google::protobuf::int64 MVCCStats::sys_bytes() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCStats.sys_bytes) return sys_bytes_; } - void MVCCStats::set_sys_bytes(::google::protobuf::int64 value) { +void MVCCStats::set_sys_bytes(::google::protobuf::int64 value) { set_has_sys_bytes(); sys_bytes_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.sys_bytes) @@ -2568,16 +2532,19 @@ void MVCCStats::clear_sys_count() { sys_count_ = GOOGLE_LONGLONG(0); clear_has_sys_count(); } - ::google::protobuf::int64 MVCCStats::sys_count() const { +::google::protobuf::int64 MVCCStats::sys_count() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCStats.sys_count) return sys_count_; } - void MVCCStats::set_sys_count(::google::protobuf::int64 value) { +void MVCCStats::set_sys_count(::google::protobuf::int64 value) { set_has_sys_count(); sys_count_ = value; // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.sys_count) } +inline const MVCCStats* MVCCStats::internal_default_instance() { + return &MVCCStats_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) diff --git a/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/mvcc.pb.h b/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/mvcc.pb.h index ebed5a52221d..8dc60ee13ff8 100644 --- a/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/mvcc.pb.h +++ b/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/mvcc.pb.h @@ -8,12 +8,12 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3000000 +#if GOOGLE_PROTOBUF_VERSION < 3001000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -36,6 +36,7 @@ namespace enginepb { // Internal implementation detail -- do not call these. void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); +void protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); void protobuf_AssignDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); void protobuf_ShutdownFile_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); @@ -78,15 +79,7 @@ class TxnMeta : public ::google::protobuf::MessageLite /* @@protoc_insertion_poi static const TxnMeta& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const TxnMeta* internal_default_instance() { - return default_instance_; - } - #endif + static const TxnMeta* internal_default_instance(); void Swap(TxnMeta* other); @@ -101,7 +94,7 @@ class TxnMeta : public ::google::protobuf::MessageLite /* @@protoc_insertion_poi void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -113,6 +106,7 @@ class TxnMeta : public ::google::protobuf::MessageLite /* @@protoc_insertion_poi void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(TxnMeta* other); + void UnsafeMergeFrom(const TxnMeta& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -218,27 +212,25 @@ class TxnMeta : public ::google::protobuf::MessageLite /* @@protoc_insertion_poi ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::internal::ArenaStringPtr id_; ::google::protobuf::internal::ArenaStringPtr key_; + ::cockroach::util::hlc::Timestamp* timestamp_; int isolation_; ::google::protobuf::uint32 epoch_; - ::cockroach::util::hlc::Timestamp* timestamp_; ::google::protobuf::int32 priority_; ::google::protobuf::int32 sequence_; ::google::protobuf::int32 batch_index_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); void InitAsDefaultInstance(); - static TxnMeta* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed TxnMeta_default_instance_; + // ------------------------------------------------------------------- class MVCCMetadata : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.storage.engine.enginepb.MVCCMetadata) */ { @@ -265,15 +257,7 @@ class MVCCMetadata : public ::google::protobuf::MessageLite /* @@protoc_insertio static const MVCCMetadata& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const MVCCMetadata* internal_default_instance() { - return default_instance_; - } - #endif + static const MVCCMetadata* internal_default_instance(); void Swap(MVCCMetadata* other); @@ -288,7 +272,7 @@ class MVCCMetadata : public ::google::protobuf::MessageLite /* @@protoc_insertio void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -300,6 +284,7 @@ class MVCCMetadata : public ::google::protobuf::MessageLite /* @@protoc_insertio void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(MVCCMetadata* other); + void UnsafeMergeFrom(const MVCCMetadata& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -395,26 +380,24 @@ class MVCCMetadata : public ::google::protobuf::MessageLite /* @@protoc_insertio ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; + ::google::protobuf::internal::ArenaStringPtr raw_bytes_; ::cockroach::storage::engine::enginepb::TxnMeta* txn_; ::cockroach::util::hlc::Timestamp* timestamp_; + ::cockroach::util::hlc::Timestamp* merge_timestamp_; ::google::protobuf::int64 key_bytes_; ::google::protobuf::int64 val_bytes_; - ::google::protobuf::internal::ArenaStringPtr raw_bytes_; - ::cockroach::util::hlc::Timestamp* merge_timestamp_; bool deleted_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); void InitAsDefaultInstance(); - static MVCCMetadata* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed MVCCMetadata_default_instance_; + // ------------------------------------------------------------------- class MVCCStats : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.storage.engine.enginepb.MVCCStats) */ { @@ -441,15 +424,7 @@ class MVCCStats : public ::google::protobuf::MessageLite /* @@protoc_insertion_p static const MVCCStats& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const MVCCStats* internal_default_instance() { - return default_instance_; - } - #endif + static const MVCCStats* internal_default_instance(); void Swap(MVCCStats* other); @@ -464,7 +439,7 @@ class MVCCStats : public ::google::protobuf::MessageLite /* @@protoc_insertion_p void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -476,6 +451,7 @@ class MVCCStats : public ::google::protobuf::MessageLite /* @@protoc_insertion_p void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(MVCCStats* other); + void UnsafeMergeFrom(const MVCCStats& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -623,7 +599,7 @@ class MVCCStats : public ::google::protobuf::MessageLite /* @@protoc_insertion_p ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::int64 last_update_nanos_; ::google::protobuf::int64 intent_age_; @@ -639,17 +615,15 @@ class MVCCStats : public ::google::protobuf::MessageLite /* @@protoc_insertion_p ::google::protobuf::int64 sys_bytes_; ::google::protobuf::int64 sys_count_; bool contains_estimates_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2fmvcc_2eproto(); void InitAsDefaultInstance(); - static MVCCStats* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed MVCCStats_default_instance_; + // =================================================================== @@ -831,11 +805,8 @@ inline void TxnMeta::clear_timestamp() { } inline const ::cockroach::util::hlc::Timestamp& TxnMeta::timestamp() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.TxnMeta.timestamp) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return timestamp_ != NULL ? *timestamp_ : *default_instance().timestamp_; -#else - return timestamp_ != NULL ? *timestamp_ : *default_instance_->timestamp_; -#endif + return timestamp_ != NULL ? *timestamp_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } inline ::cockroach::util::hlc::Timestamp* TxnMeta::mutable_timestamp() { set_has_timestamp(); @@ -935,6 +906,9 @@ inline void TxnMeta::set_batch_index(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.TxnMeta.batch_index) } +inline const TxnMeta* TxnMeta::internal_default_instance() { + return &TxnMeta_default_instance_.get(); +} // ------------------------------------------------------------------- // MVCCMetadata @@ -955,11 +929,8 @@ inline void MVCCMetadata::clear_txn() { } inline const ::cockroach::storage::engine::enginepb::TxnMeta& MVCCMetadata::txn() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCMetadata.txn) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return txn_ != NULL ? *txn_ : *default_instance().txn_; -#else - return txn_ != NULL ? *txn_ : *default_instance_->txn_; -#endif + return txn_ != NULL ? *txn_ + : *::cockroach::storage::engine::enginepb::TxnMeta::internal_default_instance(); } inline ::cockroach::storage::engine::enginepb::TxnMeta* MVCCMetadata::mutable_txn() { set_has_txn(); @@ -1003,11 +974,8 @@ inline void MVCCMetadata::clear_timestamp() { } inline const ::cockroach::util::hlc::Timestamp& MVCCMetadata::timestamp() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCMetadata.timestamp) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return timestamp_ != NULL ? *timestamp_ : *default_instance().timestamp_; -#else - return timestamp_ != NULL ? *timestamp_ : *default_instance_->timestamp_; -#endif + return timestamp_ != NULL ? *timestamp_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } inline ::cockroach::util::hlc::Timestamp* MVCCMetadata::mutable_timestamp() { set_has_timestamp(); @@ -1177,11 +1145,8 @@ inline void MVCCMetadata::clear_merge_timestamp() { } inline const ::cockroach::util::hlc::Timestamp& MVCCMetadata::merge_timestamp() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.MVCCMetadata.merge_timestamp) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return merge_timestamp_ != NULL ? *merge_timestamp_ : *default_instance().merge_timestamp_; -#else - return merge_timestamp_ != NULL ? *merge_timestamp_ : *default_instance_->merge_timestamp_; -#endif + return merge_timestamp_ != NULL ? *merge_timestamp_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } inline ::cockroach::util::hlc::Timestamp* MVCCMetadata::mutable_merge_timestamp() { set_has_merge_timestamp(); @@ -1209,6 +1174,9 @@ inline void MVCCMetadata::set_allocated_merge_timestamp(::cockroach::util::hlc:: // @@protoc_insertion_point(field_set_allocated:cockroach.storage.engine.enginepb.MVCCMetadata.merge_timestamp) } +inline const MVCCMetadata* MVCCMetadata::internal_default_instance() { + return &MVCCMetadata_default_instance_.get(); +} // ------------------------------------------------------------------- // MVCCStats @@ -1549,6 +1517,9 @@ inline void MVCCStats::set_sys_count(::google::protobuf::int64 value) { // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.MVCCStats.sys_count) } +inline const MVCCStats* MVCCStats::internal_default_instance() { + return &MVCCStats_default_instance_.get(); +} #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- diff --git a/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/rocksdb.pb.cc b/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/rocksdb.pb.cc index 07d771572a49..c749031d74cb 100644 --- a/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/rocksdb.pb.cc +++ b/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/rocksdb.pb.cc @@ -20,45 +20,58 @@ namespace engine { namespace enginepb { void protobuf_ShutdownFile_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto() { - delete SSTUserProperties::default_instance_; - delete SSTUserPropertiesCollection::default_instance_; + SSTUserProperties_default_instance_.Shutdown(); + SSTUserPropertiesCollection_default_instance_.Shutdown(); } -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto_impl() { +void protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#else -void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; + ::cockroach::util::hlc::protobuf_InitDefaults_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); + ::google::protobuf::internal::GetEmptyString(); + SSTUserProperties_default_instance_.DefaultConstruct(); + ::google::protobuf::internal::GetEmptyString(); + SSTUserPropertiesCollection_default_instance_.DefaultConstruct(); + SSTUserProperties_default_instance_.get_mutable()->InitAsDefaultInstance(); + SSTUserPropertiesCollection_default_instance_.get_mutable()->InitAsDefaultInstance(); +} + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto_once_); +void protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto() { + ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto_once_, + &protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto_impl); +} +void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#endif + protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); ::cockroach::util::hlc::protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); - SSTUserProperties::default_instance_ = new SSTUserProperties(); - SSTUserPropertiesCollection::default_instance_ = new SSTUserPropertiesCollection(); - SSTUserProperties::default_instance_->InitAsDefaultInstance(); - SSTUserPropertiesCollection::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto); } -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto_once_); void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto() { ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto_once_, &protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto_impl); } -#else +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto { StaticDescriptorInitializer_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto() { protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); } } static_descriptor_initializer_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto_; -#endif +#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + +namespace { + +static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; +static void MergeFromFail(int line) { + ::google::protobuf::internal::MergeFromFail(__FILE__, line); +} + +} // namespace + // =================================================================== @@ -70,41 +83,31 @@ const int SSTUserProperties::kTsMaxFieldNumber; SSTUserProperties::SSTUserProperties() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.storage.engine.enginepb.SSTUserProperties) } void SSTUserProperties::InitAsDefaultInstance() { - _is_default_instance_ = true; -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER ts_min_ = const_cast< ::cockroach::util::hlc::Timestamp*>( ::cockroach::util::hlc::Timestamp::internal_default_instance()); -#else - ts_min_ = const_cast< ::cockroach::util::hlc::Timestamp*>(&::cockroach::util::hlc::Timestamp::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER ts_max_ = const_cast< ::cockroach::util::hlc::Timestamp*>( ::cockroach::util::hlc::Timestamp::internal_default_instance()); -#else - ts_max_ = const_cast< ::cockroach::util::hlc::Timestamp*>(&::cockroach::util::hlc::Timestamp::default_instance()); -#endif } SSTUserProperties::SSTUserProperties(const SSTUserProperties& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.storage.engine.enginepb.SSTUserProperties) } void SSTUserProperties::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ts_min_ = NULL; ts_max_ = NULL; + _cached_size_ = 0; } SSTUserProperties::~SSTUserProperties() { @@ -114,11 +117,7 @@ SSTUserProperties::~SSTUserProperties() { void SSTUserProperties::SharedDtor() { path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif + if (this != &SSTUserProperties_default_instance_.get()) { delete ts_min_; delete ts_max_; } @@ -130,15 +129,11 @@ void SSTUserProperties::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const SSTUserProperties& SSTUserProperties::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); + return *internal_default_instance(); } -SSTUserProperties* SSTUserProperties::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed SSTUserProperties_default_instance_; SSTUserProperties* SSTUserProperties::New(::google::protobuf::Arena* arena) const { SSTUserProperties* n = new SSTUserProperties; @@ -258,9 +253,9 @@ void SSTUserProperties::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.storage.engine.enginepb.SSTUserProperties) } -int SSTUserProperties::ByteSize() const { +size_t SSTUserProperties::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.storage.engine.enginepb.SSTUserProperties) - int total_size = 0; + size_t total_size = 0; // optional string path = 1; if (this->path().size() > 0) { @@ -283,8 +278,9 @@ int SSTUserProperties::ByteSize() const { *this->ts_max_); } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -296,9 +292,15 @@ void SSTUserProperties::CheckTypeAndMergeFrom( void SSTUserProperties::MergeFrom(const SSTUserProperties& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.storage.engine.enginepb.SSTUserProperties) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void SSTUserProperties::UnsafeMergeFrom(const SSTUserProperties& from) { + GOOGLE_DCHECK(&from != this); if (from.path().size() > 0) { path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.path_); @@ -315,7 +317,7 @@ void SSTUserProperties::CopyFrom(const SSTUserProperties& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.storage.engine.enginepb.SSTUserProperties) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool SSTUserProperties::IsInitialized() const { @@ -346,37 +348,37 @@ ::std::string SSTUserProperties::GetTypeName() const { void SSTUserProperties::clear_path() { path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - const ::std::string& SSTUserProperties::path() const { +const ::std::string& SSTUserProperties::path() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.SSTUserProperties.path) return path_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void SSTUserProperties::set_path(const ::std::string& value) { +void SSTUserProperties::set_path(const ::std::string& value) { path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.SSTUserProperties.path) } - void SSTUserProperties::set_path(const char* value) { +void SSTUserProperties::set_path(const char* value) { path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.storage.engine.enginepb.SSTUserProperties.path) } - void SSTUserProperties::set_path(const char* value, size_t size) { +void SSTUserProperties::set_path(const char* value, size_t size) { path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.storage.engine.enginepb.SSTUserProperties.path) } - ::std::string* SSTUserProperties::mutable_path() { +::std::string* SSTUserProperties::mutable_path() { // @@protoc_insertion_point(field_mutable:cockroach.storage.engine.enginepb.SSTUserProperties.path) return path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* SSTUserProperties::release_path() { +::std::string* SSTUserProperties::release_path() { // @@protoc_insertion_point(field_release:cockroach.storage.engine.enginepb.SSTUserProperties.path) return path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void SSTUserProperties::set_allocated_path(::std::string* path) { +void SSTUserProperties::set_allocated_path(::std::string* path) { if (path != NULL) { } else { @@ -388,7 +390,7 @@ void SSTUserProperties::clear_path() { // optional .cockroach.util.hlc.Timestamp ts_min = 2; bool SSTUserProperties::has_ts_min() const { - return !_is_default_instance_ && ts_min_ != NULL; + return this != internal_default_instance() && ts_min_ != NULL; } void SSTUserProperties::clear_ts_min() { if (GetArenaNoVirtual() == NULL && ts_min_ != NULL) delete ts_min_; @@ -396,11 +398,8 @@ void SSTUserProperties::clear_ts_min() { } const ::cockroach::util::hlc::Timestamp& SSTUserProperties::ts_min() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.SSTUserProperties.ts_min) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return ts_min_ != NULL ? *ts_min_ : *default_instance().ts_min_; -#else - return ts_min_ != NULL ? *ts_min_ : *default_instance_->ts_min_; -#endif + return ts_min_ != NULL ? *ts_min_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } ::cockroach::util::hlc::Timestamp* SSTUserProperties::mutable_ts_min() { @@ -430,7 +429,7 @@ void SSTUserProperties::set_allocated_ts_min(::cockroach::util::hlc::Timestamp* // optional .cockroach.util.hlc.Timestamp ts_max = 3; bool SSTUserProperties::has_ts_max() const { - return !_is_default_instance_ && ts_max_ != NULL; + return this != internal_default_instance() && ts_max_ != NULL; } void SSTUserProperties::clear_ts_max() { if (GetArenaNoVirtual() == NULL && ts_max_ != NULL) delete ts_max_; @@ -438,11 +437,8 @@ void SSTUserProperties::clear_ts_max() { } const ::cockroach::util::hlc::Timestamp& SSTUserProperties::ts_max() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.SSTUserProperties.ts_max) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return ts_max_ != NULL ? *ts_max_ : *default_instance().ts_max_; -#else - return ts_max_ != NULL ? *ts_max_ : *default_instance_->ts_max_; -#endif + return ts_max_ != NULL ? *ts_max_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } ::cockroach::util::hlc::Timestamp* SSTUserProperties::mutable_ts_max() { @@ -470,6 +466,9 @@ void SSTUserProperties::set_allocated_ts_max(::cockroach::util::hlc::Timestamp* // @@protoc_insertion_point(field_set_allocated:cockroach.storage.engine.enginepb.SSTUserProperties.ts_max) } +inline const SSTUserProperties* SSTUserProperties::internal_default_instance() { + return &SSTUserProperties_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== @@ -481,27 +480,25 @@ const int SSTUserPropertiesCollection::kErrorFieldNumber; SSTUserPropertiesCollection::SSTUserPropertiesCollection() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection) } void SSTUserPropertiesCollection::InitAsDefaultInstance() { - _is_default_instance_ = true; } SSTUserPropertiesCollection::SSTUserPropertiesCollection(const SSTUserPropertiesCollection& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection) } void SSTUserPropertiesCollection::SharedCtor() { - _is_default_instance_ = false; - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } SSTUserPropertiesCollection::~SSTUserPropertiesCollection() { @@ -511,12 +508,6 @@ SSTUserPropertiesCollection::~SSTUserPropertiesCollection() { void SSTUserPropertiesCollection::SharedDtor() { error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void SSTUserPropertiesCollection::SetCachedSize(int size) const { @@ -525,15 +516,11 @@ void SSTUserPropertiesCollection::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const SSTUserPropertiesCollection& SSTUserPropertiesCollection::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); + return *internal_default_instance(); } -SSTUserPropertiesCollection* SSTUserPropertiesCollection::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed SSTUserPropertiesCollection_default_instance_; SSTUserPropertiesCollection* SSTUserPropertiesCollection::New(::google::protobuf::Arena* arena) const { SSTUserPropertiesCollection* n = new SSTUserPropertiesCollection; @@ -635,9 +622,9 @@ void SSTUserPropertiesCollection::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection) } -int SSTUserPropertiesCollection::ByteSize() const { +size_t SSTUserPropertiesCollection::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection) - int total_size = 0; + size_t total_size = 0; // optional string error = 2; if (this->error().size() > 0) { @@ -647,15 +634,19 @@ int SSTUserPropertiesCollection::ByteSize() const { } // repeated .cockroach.storage.engine.enginepb.SSTUserProperties sst = 1; - total_size += 1 * this->sst_size(); - for (int i = 0; i < this->sst_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->sst(i)); + { + unsigned int count = this->sst_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->sst(i)); + } } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -667,9 +658,15 @@ void SSTUserPropertiesCollection::CheckTypeAndMergeFrom( void SSTUserPropertiesCollection::MergeFrom(const SSTUserPropertiesCollection& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void SSTUserPropertiesCollection::UnsafeMergeFrom(const SSTUserPropertiesCollection& from) { + GOOGLE_DCHECK(&from != this); sst_.MergeFrom(from.sst_); if (from.error().size() > 0) { @@ -681,7 +678,7 @@ void SSTUserPropertiesCollection::CopyFrom(const SSTUserPropertiesCollection& fr // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool SSTUserPropertiesCollection::IsInitialized() const { @@ -741,37 +738,37 @@ SSTUserPropertiesCollection::sst() const { void SSTUserPropertiesCollection::clear_error() { error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - const ::std::string& SSTUserPropertiesCollection::error() const { +const ::std::string& SSTUserPropertiesCollection::error() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection.error) return error_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void SSTUserPropertiesCollection::set_error(const ::std::string& value) { +void SSTUserPropertiesCollection::set_error(const ::std::string& value) { error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection.error) } - void SSTUserPropertiesCollection::set_error(const char* value) { +void SSTUserPropertiesCollection::set_error(const char* value) { error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection.error) } - void SSTUserPropertiesCollection::set_error(const char* value, size_t size) { +void SSTUserPropertiesCollection::set_error(const char* value, size_t size) { error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection.error) } - ::std::string* SSTUserPropertiesCollection::mutable_error() { +::std::string* SSTUserPropertiesCollection::mutable_error() { // @@protoc_insertion_point(field_mutable:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection.error) return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* SSTUserPropertiesCollection::release_error() { +::std::string* SSTUserPropertiesCollection::release_error() { // @@protoc_insertion_point(field_release:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection.error) return error_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void SSTUserPropertiesCollection::set_allocated_error(::std::string* error) { +void SSTUserPropertiesCollection::set_allocated_error(::std::string* error) { if (error != NULL) { } else { @@ -781,6 +778,9 @@ void SSTUserPropertiesCollection::clear_error() { // @@protoc_insertion_point(field_set_allocated:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection.error) } +inline const SSTUserPropertiesCollection* SSTUserPropertiesCollection::internal_default_instance() { + return &SSTUserPropertiesCollection_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) diff --git a/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/rocksdb.pb.h b/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/rocksdb.pb.h index 7d36363be40d..7ddd5fbd3a50 100644 --- a/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/rocksdb.pb.h +++ b/pkg/storage/engine/rocksdb/cockroach/pkg/storage/engine/enginepb/rocksdb.pb.h @@ -8,12 +8,12 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3000000 +#if GOOGLE_PROTOBUF_VERSION < 3001000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -35,6 +35,7 @@ namespace enginepb { // Internal implementation detail -- do not call these. void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); +void protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); void protobuf_AssignDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); void protobuf_ShutdownFile_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); @@ -57,15 +58,7 @@ class SSTUserProperties : public ::google::protobuf::MessageLite /* @@protoc_ins static const SSTUserProperties& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const SSTUserProperties* internal_default_instance() { - return default_instance_; - } - #endif + static const SSTUserProperties* internal_default_instance(); void Swap(SSTUserProperties* other); @@ -80,7 +73,7 @@ class SSTUserProperties : public ::google::protobuf::MessageLite /* @@protoc_ins void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -92,6 +85,7 @@ class SSTUserProperties : public ::google::protobuf::MessageLite /* @@protoc_ins void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(SSTUserProperties* other); + void UnsafeMergeFrom(const SSTUserProperties& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -142,22 +136,19 @@ class SSTUserProperties : public ::google::protobuf::MessageLite /* @@protoc_ins ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - bool _is_default_instance_; ::google::protobuf::internal::ArenaStringPtr path_; ::cockroach::util::hlc::Timestamp* ts_min_; ::cockroach::util::hlc::Timestamp* ts_max_; mutable int _cached_size_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); void InitAsDefaultInstance(); - static SSTUserProperties* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed SSTUserProperties_default_instance_; + // ------------------------------------------------------------------- class SSTUserPropertiesCollection : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection) */ { @@ -174,15 +165,7 @@ class SSTUserPropertiesCollection : public ::google::protobuf::MessageLite /* @@ static const SSTUserPropertiesCollection& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const SSTUserPropertiesCollection* internal_default_instance() { - return default_instance_; - } - #endif + static const SSTUserPropertiesCollection* internal_default_instance(); void Swap(SSTUserPropertiesCollection* other); @@ -197,7 +180,7 @@ class SSTUserPropertiesCollection : public ::google::protobuf::MessageLite /* @@ void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -209,6 +192,7 @@ class SSTUserPropertiesCollection : public ::google::protobuf::MessageLite /* @@ void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(SSTUserPropertiesCollection* other); + void UnsafeMergeFrom(const SSTUserPropertiesCollection& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -253,21 +237,18 @@ class SSTUserPropertiesCollection : public ::google::protobuf::MessageLite /* @@ ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - bool _is_default_instance_; ::google::protobuf::RepeatedPtrField< ::cockroach::storage::engine::enginepb::SSTUserProperties > sst_; ::google::protobuf::internal::ArenaStringPtr error_; mutable int _cached_size_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2fstorage_2fengine_2fenginepb_2frocksdb_2eproto(); void InitAsDefaultInstance(); - static SSTUserPropertiesCollection* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed SSTUserPropertiesCollection_default_instance_; + // =================================================================== @@ -322,7 +303,7 @@ inline void SSTUserProperties::set_allocated_path(::std::string* path) { // optional .cockroach.util.hlc.Timestamp ts_min = 2; inline bool SSTUserProperties::has_ts_min() const { - return !_is_default_instance_ && ts_min_ != NULL; + return this != internal_default_instance() && ts_min_ != NULL; } inline void SSTUserProperties::clear_ts_min() { if (GetArenaNoVirtual() == NULL && ts_min_ != NULL) delete ts_min_; @@ -330,11 +311,8 @@ inline void SSTUserProperties::clear_ts_min() { } inline const ::cockroach::util::hlc::Timestamp& SSTUserProperties::ts_min() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.SSTUserProperties.ts_min) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return ts_min_ != NULL ? *ts_min_ : *default_instance().ts_min_; -#else - return ts_min_ != NULL ? *ts_min_ : *default_instance_->ts_min_; -#endif + return ts_min_ != NULL ? *ts_min_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } inline ::cockroach::util::hlc::Timestamp* SSTUserProperties::mutable_ts_min() { @@ -364,7 +342,7 @@ inline void SSTUserProperties::set_allocated_ts_min(::cockroach::util::hlc::Time // optional .cockroach.util.hlc.Timestamp ts_max = 3; inline bool SSTUserProperties::has_ts_max() const { - return !_is_default_instance_ && ts_max_ != NULL; + return this != internal_default_instance() && ts_max_ != NULL; } inline void SSTUserProperties::clear_ts_max() { if (GetArenaNoVirtual() == NULL && ts_max_ != NULL) delete ts_max_; @@ -372,11 +350,8 @@ inline void SSTUserProperties::clear_ts_max() { } inline const ::cockroach::util::hlc::Timestamp& SSTUserProperties::ts_max() const { // @@protoc_insertion_point(field_get:cockroach.storage.engine.enginepb.SSTUserProperties.ts_max) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return ts_max_ != NULL ? *ts_max_ : *default_instance().ts_max_; -#else - return ts_max_ != NULL ? *ts_max_ : *default_instance_->ts_max_; -#endif + return ts_max_ != NULL ? *ts_max_ + : *::cockroach::util::hlc::Timestamp::internal_default_instance(); } inline ::cockroach::util::hlc::Timestamp* SSTUserProperties::mutable_ts_max() { @@ -404,6 +379,9 @@ inline void SSTUserProperties::set_allocated_ts_max(::cockroach::util::hlc::Time // @@protoc_insertion_point(field_set_allocated:cockroach.storage.engine.enginepb.SSTUserProperties.ts_max) } +inline const SSTUserProperties* SSTUserProperties::internal_default_instance() { + return &SSTUserProperties_default_instance_.get(); +} // ------------------------------------------------------------------- // SSTUserPropertiesCollection @@ -482,6 +460,9 @@ inline void SSTUserPropertiesCollection::set_allocated_error(::std::string* erro // @@protoc_insertion_point(field_set_allocated:cockroach.storage.engine.enginepb.SSTUserPropertiesCollection.error) } +inline const SSTUserPropertiesCollection* SSTUserPropertiesCollection::internal_default_instance() { + return &SSTUserPropertiesCollection_default_instance_.get(); +} #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- diff --git a/pkg/storage/engine/rocksdb/cockroach/pkg/util/hlc/timestamp.pb.cc b/pkg/storage/engine/rocksdb/cockroach/pkg/util/hlc/timestamp.pb.cc index 44c1fdc5c8fa..4375098d79f4 100644 --- a/pkg/storage/engine/rocksdb/cockroach/pkg/util/hlc/timestamp.pb.cc +++ b/pkg/storage/engine/rocksdb/cockroach/pkg/util/hlc/timestamp.pb.cc @@ -19,41 +19,52 @@ namespace util { namespace hlc { void protobuf_ShutdownFile_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto() { - delete Timestamp::default_instance_; + Timestamp_default_instance_.Shutdown(); } -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -void protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto_impl() { +void protobuf_InitDefaults_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#else -void protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; + ::google::protobuf::internal::GetEmptyString(); + Timestamp_default_instance_.DefaultConstruct(); + Timestamp_default_instance_.get_mutable()->InitAsDefaultInstance(); +} + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto_once_); +void protobuf_InitDefaults_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto() { + ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto_once_, + &protobuf_InitDefaults_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto_impl); +} +void protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#endif - Timestamp::default_instance_ = new Timestamp(); - Timestamp::default_instance_->InitAsDefaultInstance(); + protobuf_InitDefaults_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto); } -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto_once_); void protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto() { ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto_once_, &protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto_impl); } -#else +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto { StaticDescriptorInitializer_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto() { protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); } } static_descriptor_initializer_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto_; -#endif +#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + +namespace { + +static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; +static void MergeFromFail(int line) { + ::google::protobuf::internal::MergeFromFail(__FILE__, line); +} + +} // namespace + // =================================================================== @@ -69,6 +80,7 @@ const int Timestamp::kLogicalFieldNumber; Timestamp::Timestamp() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.util.hlc.Timestamp) } @@ -80,18 +92,16 @@ Timestamp::Timestamp(const Timestamp& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.util.hlc.Timestamp) } void Timestamp::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - wall_time_ = GOOGLE_LONGLONG(0); - logical_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::memset(&wall_time_, 0, reinterpret_cast(&logical_) - + reinterpret_cast(&wall_time_) + sizeof(logical_)); } Timestamp::~Timestamp() { @@ -102,12 +112,6 @@ Timestamp::~Timestamp() { void Timestamp::SharedDtor() { _unknown_fields_.DestroyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void Timestamp::SetCachedSize(int size) const { @@ -116,15 +120,11 @@ void Timestamp::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const Timestamp& Timestamp::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); + return *internal_default_instance(); } -Timestamp* Timestamp::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed Timestamp_default_instance_; Timestamp* Timestamp::New(::google::protobuf::Arena* arena) const { Timestamp* n = new Timestamp; @@ -148,7 +148,7 @@ void Timestamp::Clear() { #endif #define ZR_(first, last) do {\ - ::memset(&first, 0,\ + ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) @@ -157,7 +157,7 @@ void Timestamp::Clear() { #undef ZR_HELPER_ #undef ZR_ - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -167,7 +167,7 @@ bool Timestamp::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForTimestamp, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -180,10 +180,10 @@ bool Timestamp::MergePartialFromCodedStream( // optional int64 wall_time = 1; case 1: { if (tag == 8) { + set_has_wall_time(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &wall_time_))); - set_has_wall_time(); } else { goto handle_unusual; } @@ -195,10 +195,10 @@ bool Timestamp::MergePartialFromCodedStream( case 2: { if (tag == 16) { parse_logical: + set_has_logical(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &logical_))); - set_has_logical(); } else { goto handle_unusual; } @@ -246,9 +246,9 @@ void Timestamp::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.util.hlc.Timestamp) } -int Timestamp::ByteSize() const { +size_t Timestamp::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.util.hlc.Timestamp) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 3u) { // optional int64 wall_time = 1; @@ -268,8 +268,9 @@ int Timestamp::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -281,9 +282,15 @@ void Timestamp::CheckTypeAndMergeFrom( void Timestamp::MergeFrom(const Timestamp& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.util.hlc.Timestamp) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void Timestamp::UnsafeMergeFrom(const Timestamp& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_wall_time()) { set_wall_time(from.wall_time()); @@ -301,7 +308,7 @@ void Timestamp::CopyFrom(const Timestamp& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.util.hlc.Timestamp) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool Timestamp::IsInitialized() const { @@ -342,11 +349,11 @@ void Timestamp::clear_wall_time() { wall_time_ = GOOGLE_LONGLONG(0); clear_has_wall_time(); } - ::google::protobuf::int64 Timestamp::wall_time() const { +::google::protobuf::int64 Timestamp::wall_time() const { // @@protoc_insertion_point(field_get:cockroach.util.hlc.Timestamp.wall_time) return wall_time_; } - void Timestamp::set_wall_time(::google::protobuf::int64 value) { +void Timestamp::set_wall_time(::google::protobuf::int64 value) { set_has_wall_time(); wall_time_ = value; // @@protoc_insertion_point(field_set:cockroach.util.hlc.Timestamp.wall_time) @@ -366,16 +373,19 @@ void Timestamp::clear_logical() { logical_ = 0; clear_has_logical(); } - ::google::protobuf::int32 Timestamp::logical() const { +::google::protobuf::int32 Timestamp::logical() const { // @@protoc_insertion_point(field_get:cockroach.util.hlc.Timestamp.logical) return logical_; } - void Timestamp::set_logical(::google::protobuf::int32 value) { +void Timestamp::set_logical(::google::protobuf::int32 value) { set_has_logical(); logical_ = value; // @@protoc_insertion_point(field_set:cockroach.util.hlc.Timestamp.logical) } +inline const Timestamp* Timestamp::internal_default_instance() { + return &Timestamp_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) diff --git a/pkg/storage/engine/rocksdb/cockroach/pkg/util/hlc/timestamp.pb.h b/pkg/storage/engine/rocksdb/cockroach/pkg/util/hlc/timestamp.pb.h index 93dbea03ef67..2158b9801481 100644 --- a/pkg/storage/engine/rocksdb/cockroach/pkg/util/hlc/timestamp.pb.h +++ b/pkg/storage/engine/rocksdb/cockroach/pkg/util/hlc/timestamp.pb.h @@ -8,12 +8,12 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3000000 +#if GOOGLE_PROTOBUF_VERSION < 3001000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -33,6 +33,7 @@ namespace hlc { // Internal implementation detail -- do not call these. void protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); +void protobuf_InitDefaults_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); void protobuf_AssignDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); void protobuf_ShutdownFile_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); @@ -64,15 +65,7 @@ class Timestamp : public ::google::protobuf::MessageLite /* @@protoc_insertion_p static const Timestamp& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const Timestamp* internal_default_instance() { - return default_instance_; - } - #endif + static const Timestamp* internal_default_instance(); void Swap(Timestamp* other); @@ -87,7 +80,7 @@ class Timestamp : public ::google::protobuf::MessageLite /* @@protoc_insertion_p void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -99,6 +92,7 @@ class Timestamp : public ::google::protobuf::MessageLite /* @@protoc_insertion_p void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(Timestamp* other); + void UnsafeMergeFrom(const Timestamp& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -138,21 +132,19 @@ class Timestamp : public ::google::protobuf::MessageLite /* @@protoc_insertion_p ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::int64 wall_time_; ::google::protobuf::int32 logical_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2futil_2fhlc_2ftimestamp_2eproto(); void InitAsDefaultInstance(); - static Timestamp* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed Timestamp_default_instance_; + // =================================================================== @@ -209,6 +201,9 @@ inline void Timestamp::set_logical(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:cockroach.util.hlc.Timestamp.logical) } +inline const Timestamp* Timestamp::internal_default_instance() { + return &Timestamp_default_instance_.get(); +} #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) diff --git a/pkg/storage/engine/rocksdb/cockroach/pkg/util/unresolved_addr.pb.cc b/pkg/storage/engine/rocksdb/cockroach/pkg/util/unresolved_addr.pb.cc index 4fae2fd8d41a..f131daf069f0 100644 --- a/pkg/storage/engine/rocksdb/cockroach/pkg/util/unresolved_addr.pb.cc +++ b/pkg/storage/engine/rocksdb/cockroach/pkg/util/unresolved_addr.pb.cc @@ -18,41 +18,52 @@ namespace cockroach { namespace util { void protobuf_ShutdownFile_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto() { - delete UnresolvedAddr::default_instance_; + UnresolvedAddr_default_instance_.Shutdown(); } -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -void protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto_impl() { +void protobuf_InitDefaults_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#else -void protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; + ::google::protobuf::internal::GetEmptyString(); + UnresolvedAddr_default_instance_.DefaultConstruct(); + UnresolvedAddr_default_instance_.get_mutable()->InitAsDefaultInstance(); +} + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto_once_); +void protobuf_InitDefaults_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto() { + ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto_once_, + &protobuf_InitDefaults_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto_impl); +} +void protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#endif - UnresolvedAddr::default_instance_ = new UnresolvedAddr(); - UnresolvedAddr::default_instance_->InitAsDefaultInstance(); + protobuf_InitDefaults_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto); } -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto_once_); void protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto() { ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto_once_, &protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto_impl); } -#else +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto { StaticDescriptorInitializer_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto() { protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); } } static_descriptor_initializer_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto_; -#endif +#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + +namespace { + +static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; +static void MergeFromFail(int line) { + ::google::protobuf::internal::MergeFromFail(__FILE__, line); +} + +} // namespace + // =================================================================== @@ -68,6 +79,7 @@ const int UnresolvedAddr::kAddressFieldFieldNumber; UnresolvedAddr::UnresolvedAddr() : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { + if (this != internal_default_instance()) protobuf_InitDefaults_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:cockroach.util.UnresolvedAddr) } @@ -79,18 +91,16 @@ UnresolvedAddr::UnresolvedAddr(const UnresolvedAddr& from) : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { SharedCtor(); - MergeFrom(from); + UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:cockroach.util.UnresolvedAddr) } void UnresolvedAddr::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; _unknown_fields_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); network_field_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); address_field_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } UnresolvedAddr::~UnresolvedAddr() { @@ -103,12 +113,6 @@ void UnresolvedAddr::SharedDtor() { &::google::protobuf::internal::GetEmptyStringAlreadyInited()); network_field_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); address_field_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } } void UnresolvedAddr::SetCachedSize(int size) const { @@ -117,15 +121,11 @@ void UnresolvedAddr::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const UnresolvedAddr& UnresolvedAddr::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); -#endif - return *default_instance_; + protobuf_InitDefaults_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); + return *internal_default_instance(); } -UnresolvedAddr* UnresolvedAddr::default_instance_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed UnresolvedAddr_default_instance_; UnresolvedAddr* UnresolvedAddr::New(::google::protobuf::Arena* arena) const { UnresolvedAddr* n = new UnresolvedAddr; @@ -145,7 +145,7 @@ void UnresolvedAddr::Clear() { address_field_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); _unknown_fields_.ClearToEmptyNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -155,7 +155,7 @@ bool UnresolvedAddr::MergePartialFromCodedStream( #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( - ::google::protobuf::internal::NewPermanentCallback( + ::google::protobuf::NewPermanentCallback( &MutableUnknownFieldsForUnresolvedAddr, this)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); @@ -232,9 +232,9 @@ void UnresolvedAddr::SerializeWithCachedSizes( // @@protoc_insertion_point(serialize_end:cockroach.util.UnresolvedAddr) } -int UnresolvedAddr::ByteSize() const { +size_t UnresolvedAddr::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:cockroach.util.UnresolvedAddr) - int total_size = 0; + size_t total_size = 0; if (_has_bits_[0 / 32] & 3u) { // optional string network_field = 1; @@ -254,8 +254,9 @@ int UnresolvedAddr::ByteSize() const { } total_size += unknown_fields().size(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; + _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -267,9 +268,15 @@ void UnresolvedAddr::CheckTypeAndMergeFrom( void UnresolvedAddr::MergeFrom(const UnresolvedAddr& from) { // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.util.UnresolvedAddr) - if (GOOGLE_PREDICT_FALSE(&from == this)) { - ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); + if (GOOGLE_PREDICT_TRUE(&from != this)) { + UnsafeMergeFrom(from); + } else { + MergeFromFail(__LINE__); } +} + +void UnresolvedAddr::UnsafeMergeFrom(const UnresolvedAddr& from) { + GOOGLE_DCHECK(&from != this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_network_field()) { set_has_network_field(); @@ -289,7 +296,7 @@ void UnresolvedAddr::CopyFrom(const UnresolvedAddr& from) { // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.util.UnresolvedAddr) if (&from == this) return; Clear(); - MergeFrom(from); + UnsafeMergeFrom(from); } bool UnresolvedAddr::IsInitialized() const { @@ -330,37 +337,37 @@ void UnresolvedAddr::clear_network_field() { network_field_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_network_field(); } - const ::std::string& UnresolvedAddr::network_field() const { +const ::std::string& UnresolvedAddr::network_field() const { // @@protoc_insertion_point(field_get:cockroach.util.UnresolvedAddr.network_field) return network_field_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void UnresolvedAddr::set_network_field(const ::std::string& value) { +void UnresolvedAddr::set_network_field(const ::std::string& value) { set_has_network_field(); network_field_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.util.UnresolvedAddr.network_field) } - void UnresolvedAddr::set_network_field(const char* value) { +void UnresolvedAddr::set_network_field(const char* value) { set_has_network_field(); network_field_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.util.UnresolvedAddr.network_field) } - void UnresolvedAddr::set_network_field(const char* value, size_t size) { +void UnresolvedAddr::set_network_field(const char* value, size_t size) { set_has_network_field(); network_field_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.util.UnresolvedAddr.network_field) } - ::std::string* UnresolvedAddr::mutable_network_field() { +::std::string* UnresolvedAddr::mutable_network_field() { set_has_network_field(); // @@protoc_insertion_point(field_mutable:cockroach.util.UnresolvedAddr.network_field) return network_field_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* UnresolvedAddr::release_network_field() { +::std::string* UnresolvedAddr::release_network_field() { // @@protoc_insertion_point(field_release:cockroach.util.UnresolvedAddr.network_field) clear_has_network_field(); return network_field_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void UnresolvedAddr::set_allocated_network_field(::std::string* network_field) { +void UnresolvedAddr::set_allocated_network_field(::std::string* network_field) { if (network_field != NULL) { set_has_network_field(); } else { @@ -384,37 +391,37 @@ void UnresolvedAddr::clear_address_field() { address_field_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_address_field(); } - const ::std::string& UnresolvedAddr::address_field() const { +const ::std::string& UnresolvedAddr::address_field() const { // @@protoc_insertion_point(field_get:cockroach.util.UnresolvedAddr.address_field) return address_field_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void UnresolvedAddr::set_address_field(const ::std::string& value) { +void UnresolvedAddr::set_address_field(const ::std::string& value) { set_has_address_field(); address_field_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:cockroach.util.UnresolvedAddr.address_field) } - void UnresolvedAddr::set_address_field(const char* value) { +void UnresolvedAddr::set_address_field(const char* value) { set_has_address_field(); address_field_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:cockroach.util.UnresolvedAddr.address_field) } - void UnresolvedAddr::set_address_field(const char* value, size_t size) { +void UnresolvedAddr::set_address_field(const char* value, size_t size) { set_has_address_field(); address_field_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:cockroach.util.UnresolvedAddr.address_field) } - ::std::string* UnresolvedAddr::mutable_address_field() { +::std::string* UnresolvedAddr::mutable_address_field() { set_has_address_field(); // @@protoc_insertion_point(field_mutable:cockroach.util.UnresolvedAddr.address_field) return address_field_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - ::std::string* UnresolvedAddr::release_address_field() { +::std::string* UnresolvedAddr::release_address_field() { // @@protoc_insertion_point(field_release:cockroach.util.UnresolvedAddr.address_field) clear_has_address_field(); return address_field_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - void UnresolvedAddr::set_allocated_address_field(::std::string* address_field) { +void UnresolvedAddr::set_allocated_address_field(::std::string* address_field) { if (address_field != NULL) { set_has_address_field(); } else { @@ -424,6 +431,9 @@ void UnresolvedAddr::clear_address_field() { // @@protoc_insertion_point(field_set_allocated:cockroach.util.UnresolvedAddr.address_field) } +inline const UnresolvedAddr* UnresolvedAddr::internal_default_instance() { + return &UnresolvedAddr_default_instance_.get(); +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) diff --git a/pkg/storage/engine/rocksdb/cockroach/pkg/util/unresolved_addr.pb.h b/pkg/storage/engine/rocksdb/cockroach/pkg/util/unresolved_addr.pb.h index 2952f103a82f..8972f66db319 100644 --- a/pkg/storage/engine/rocksdb/cockroach/pkg/util/unresolved_addr.pb.h +++ b/pkg/storage/engine/rocksdb/cockroach/pkg/util/unresolved_addr.pb.h @@ -8,12 +8,12 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3000000 +#if GOOGLE_PROTOBUF_VERSION < 3001000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -32,6 +32,7 @@ namespace util { // Internal implementation detail -- do not call these. void protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); +void protobuf_InitDefaults_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); void protobuf_AssignDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); void protobuf_ShutdownFile_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); @@ -63,15 +64,7 @@ class UnresolvedAddr : public ::google::protobuf::MessageLite /* @@protoc_insert static const UnresolvedAddr& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const UnresolvedAddr* internal_default_instance() { - return default_instance_; - } - #endif + static const UnresolvedAddr* internal_default_instance(); void Swap(UnresolvedAddr* other); @@ -86,7 +79,7 @@ class UnresolvedAddr : public ::google::protobuf::MessageLite /* @@protoc_insert void Clear(); bool IsInitialized() const; - int ByteSize() const; + size_t ByteSizeLong() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( @@ -98,6 +91,7 @@ class UnresolvedAddr : public ::google::protobuf::MessageLite /* @@protoc_insert void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(UnresolvedAddr* other); + void UnsafeMergeFrom(const UnresolvedAddr& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _arena_ptr_; @@ -147,21 +141,19 @@ class UnresolvedAddr : public ::google::protobuf::MessageLite /* @@protoc_insert ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; ::google::protobuf::Arena* _arena_ptr_; - ::google::protobuf::uint32 _has_bits_[1]; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::internal::ArenaStringPtr network_field_; ::google::protobuf::internal::ArenaStringPtr address_field_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_InitDefaults_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto_impl(); friend void protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto_impl(); - #else - friend void protobuf_AddDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); - #endif friend void protobuf_AssignDesc_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); friend void protobuf_ShutdownFile_cockroach_2fpkg_2futil_2funresolved_5faddr_2eproto(); void InitAsDefaultInstance(); - static UnresolvedAddr* default_instance_; }; +extern ::google::protobuf::internal::ExplicitlyConstructed UnresolvedAddr_default_instance_; + // =================================================================== @@ -278,6 +270,9 @@ inline void UnresolvedAddr::set_allocated_address_field(::std::string* address_f // @@protoc_insertion_point(field_set_allocated:cockroach.util.UnresolvedAddr.address_field) } +inline const UnresolvedAddr* UnresolvedAddr::internal_default_instance() { + return &UnresolvedAddr_default_instance_.get(); +} #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) diff --git a/pkg/storage/liveness.pb.go b/pkg/storage/liveness.pb.go index 96cb03ad9fe4..21cd088987ce 100644 --- a/pkg/storage/liveness.pb.go +++ b/pkg/storage/liveness.pb.go @@ -37,35 +37,35 @@ func (*Liveness) Descriptor() ([]byte, []int) { return fileDescriptorLiveness, [ func init() { proto.RegisterType((*Liveness)(nil), "cockroach.storage.Liveness") } -func (m *Liveness) Marshal() (data []byte, err error) { +func (m *Liveness) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Liveness) MarshalTo(data []byte) (int, error) { +func (m *Liveness) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.NodeID != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintLiveness(data, i, uint64(m.NodeID)) + i = encodeVarintLiveness(dAtA, i, uint64(m.NodeID)) } if m.Epoch != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintLiveness(data, i, uint64(m.Epoch)) + i = encodeVarintLiveness(dAtA, i, uint64(m.Epoch)) } - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintLiveness(data, i, uint64(m.Expiration.Size())) - n1, err := m.Expiration.MarshalTo(data[i:]) + i = encodeVarintLiveness(dAtA, i, uint64(m.Expiration.Size())) + n1, err := m.Expiration.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -73,31 +73,31 @@ func (m *Liveness) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64Liveness(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Liveness(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Liveness(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Liveness(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintLiveness(data []byte, offset int, v uint64) int { +func encodeVarintLiveness(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *Liveness) Size() (n int) { @@ -127,8 +127,8 @@ func sovLiveness(x uint64) (n int) { func sozLiveness(x uint64) (n int) { return sovLiveness(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *Liveness) Unmarshal(data []byte) error { - l := len(data) +func (m *Liveness) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -140,7 +140,7 @@ func (m *Liveness) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -168,7 +168,7 @@ func (m *Liveness) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NodeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.NodeID(b) & 0x7F) << shift if b < 0x80 { @@ -187,7 +187,7 @@ func (m *Liveness) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Epoch |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -206,7 +206,7 @@ func (m *Liveness) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -220,13 +220,13 @@ func (m *Liveness) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Expiration.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Expiration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipLiveness(data[iNdEx:]) + skippy, err := skipLiveness(dAtA[iNdEx:]) if err != nil { return err } @@ -245,8 +245,8 @@ func (m *Liveness) Unmarshal(data []byte) error { } return nil } -func skipLiveness(data []byte) (n int, err error) { - l := len(data) +func skipLiveness(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -257,7 +257,7 @@ func skipLiveness(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -275,7 +275,7 @@ func skipLiveness(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -292,7 +292,7 @@ func skipLiveness(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -315,7 +315,7 @@ func skipLiveness(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -326,7 +326,7 @@ func skipLiveness(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipLiveness(data[start:]) + next, err := skipLiveness(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/storage/raft.pb.go b/pkg/storage/raft.pb.go index 937926185877..fe9ed4d5624d 100644 --- a/pkg/storage/raft.pb.go +++ b/pkg/storage/raft.pb.go @@ -396,103 +396,103 @@ var _MultiRaft_serviceDesc = grpc.ServiceDesc{ Metadata: fileDescriptorRaft, } -func (m *RaftHeartbeat) Marshal() (data []byte, err error) { +func (m *RaftHeartbeat) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftHeartbeat) MarshalTo(data []byte) (int, error) { +func (m *RaftHeartbeat) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintRaft(data, i, uint64(m.RangeID)) - data[i] = 0x10 + i = encodeVarintRaft(dAtA, i, uint64(m.RangeID)) + dAtA[i] = 0x10 i++ - i = encodeVarintRaft(data, i, uint64(m.FromReplicaID)) - data[i] = 0x18 + i = encodeVarintRaft(dAtA, i, uint64(m.FromReplicaID)) + dAtA[i] = 0x18 i++ - i = encodeVarintRaft(data, i, uint64(m.ToReplicaID)) - data[i] = 0x20 + i = encodeVarintRaft(dAtA, i, uint64(m.ToReplicaID)) + dAtA[i] = 0x20 i++ - i = encodeVarintRaft(data, i, uint64(m.Term)) - data[i] = 0x28 + i = encodeVarintRaft(dAtA, i, uint64(m.Term)) + dAtA[i] = 0x28 i++ - i = encodeVarintRaft(data, i, uint64(m.Commit)) - data[i] = 0x30 + i = encodeVarintRaft(dAtA, i, uint64(m.Commit)) + dAtA[i] = 0x30 i++ if m.Quiesce { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *RaftMessageRequest) Marshal() (data []byte, err error) { +func (m *RaftMessageRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftMessageRequest) MarshalTo(data []byte) (int, error) { +func (m *RaftMessageRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintRaft(data, i, uint64(m.RangeID)) - data[i] = 0x12 + i = encodeVarintRaft(dAtA, i, uint64(m.RangeID)) + dAtA[i] = 0x12 i++ - i = encodeVarintRaft(data, i, uint64(m.FromReplica.Size())) - n1, err := m.FromReplica.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(m.FromReplica.Size())) + n1, err := m.FromReplica.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintRaft(data, i, uint64(m.ToReplica.Size())) - n2, err := m.ToReplica.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(m.ToReplica.Size())) + n2, err := m.ToReplica.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintRaft(data, i, uint64(m.Message.Size())) - n3, err := m.Message.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(m.Message.Size())) + n3, err := m.Message.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 - data[i] = 0x28 + dAtA[i] = 0x28 i++ if m.Quiesce { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ if len(m.Heartbeats) > 0 { for _, msg := range m.Heartbeats { - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintRaft(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -501,10 +501,10 @@ func (m *RaftMessageRequest) MarshalTo(data []byte) (int, error) { } if len(m.HeartbeatResps) > 0 { for _, msg := range m.HeartbeatResps { - data[i] = 0x3a + dAtA[i] = 0x3a i++ - i = encodeVarintRaft(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -514,27 +514,27 @@ func (m *RaftMessageRequest) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RaftMessageRequestBatch) Marshal() (data []byte, err error) { +func (m *RaftMessageRequestBatch) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftMessageRequestBatch) MarshalTo(data []byte) (int, error) { +func (m *RaftMessageRequestBatch) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Requests) > 0 { for _, msg := range m.Requests { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintRaft(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -544,26 +544,26 @@ func (m *RaftMessageRequestBatch) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RaftMessageResponseUnion) Marshal() (data []byte, err error) { +func (m *RaftMessageResponseUnion) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftMessageResponseUnion) MarshalTo(data []byte) (int, error) { +func (m *RaftMessageResponseUnion) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Error != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintRaft(data, i, uint64(m.Error.Size())) - n4, err := m.Error.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(m.Error.Size())) + n4, err := m.Error.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -572,44 +572,44 @@ func (m *RaftMessageResponseUnion) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RaftMessageResponse) Marshal() (data []byte, err error) { +func (m *RaftMessageResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RaftMessageResponse) MarshalTo(data []byte) (int, error) { +func (m *RaftMessageResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintRaft(data, i, uint64(m.RangeID)) - data[i] = 0x12 + i = encodeVarintRaft(dAtA, i, uint64(m.RangeID)) + dAtA[i] = 0x12 i++ - i = encodeVarintRaft(data, i, uint64(m.FromReplica.Size())) - n5, err := m.FromReplica.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(m.FromReplica.Size())) + n5, err := m.FromReplica.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n5 - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintRaft(data, i, uint64(m.ToReplica.Size())) - n6, err := m.ToReplica.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(m.ToReplica.Size())) + n6, err := m.ToReplica.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n6 - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintRaft(data, i, uint64(m.Union.Size())) - n7, err := m.Union.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(m.Union.Size())) + n7, err := m.Union.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -617,128 +617,128 @@ func (m *RaftMessageResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *SnapshotRequest) Marshal() (data []byte, err error) { +func (m *SnapshotRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SnapshotRequest) MarshalTo(data []byte) (int, error) { +func (m *SnapshotRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Header != nil { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintRaft(data, i, uint64(m.Header.Size())) - n8, err := m.Header.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(m.Header.Size())) + n8, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n8 } if m.KVBatch != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintRaft(data, i, uint64(len(m.KVBatch))) - i += copy(data[i:], m.KVBatch) + i = encodeVarintRaft(dAtA, i, uint64(len(m.KVBatch))) + i += copy(dAtA[i:], m.KVBatch) } if len(m.LogEntries) > 0 { for _, b := range m.LogEntries { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintRaft(data, i, uint64(len(b))) - i += copy(data[i:], b) + i = encodeVarintRaft(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - data[i] = 0x20 + dAtA[i] = 0x20 i++ if m.Final { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *SnapshotRequest_Header) Marshal() (data []byte, err error) { +func (m *SnapshotRequest_Header) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SnapshotRequest_Header) MarshalTo(data []byte) (int, error) { +func (m *SnapshotRequest_Header) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintRaft(data, i, uint64(m.RangeDescriptor.Size())) - n9, err := m.RangeDescriptor.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(m.RangeDescriptor.Size())) + n9, err := m.RangeDescriptor.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n9 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintRaft(data, i, uint64(m.RaftMessageRequest.Size())) - n10, err := m.RaftMessageRequest.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(m.RaftMessageRequest.Size())) + n10, err := m.RaftMessageRequest.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n10 - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintRaft(data, i, uint64(m.RangeSize)) - data[i] = 0x20 + i = encodeVarintRaft(dAtA, i, uint64(m.RangeSize)) + dAtA[i] = 0x20 i++ if m.CanDecline { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ return i, nil } -func (m *SnapshotResponse) Marshal() (data []byte, err error) { +func (m *SnapshotResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SnapshotResponse) MarshalTo(data []byte) (int, error) { +func (m *SnapshotResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintRaft(data, i, uint64(m.Status)) - data[i] = 0x12 + i = encodeVarintRaft(dAtA, i, uint64(m.Status)) + dAtA[i] = 0x12 i++ - i = encodeVarintRaft(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) + i = encodeVarintRaft(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) if m.StoreCapacity != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintRaft(data, i, uint64(m.StoreCapacity.Size())) - n11, err := m.StoreCapacity.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(m.StoreCapacity.Size())) + n11, err := m.StoreCapacity.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -747,35 +747,35 @@ func (m *SnapshotResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ConfChangeContext) Marshal() (data []byte, err error) { +func (m *ConfChangeContext) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ConfChangeContext) MarshalTo(data []byte) (int, error) { +func (m *ConfChangeContext) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintRaft(data, i, uint64(len(m.CommandID))) - i += copy(data[i:], m.CommandID) + i = encodeVarintRaft(dAtA, i, uint64(len(m.CommandID))) + i += copy(dAtA[i:], m.CommandID) if m.Payload != nil { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintRaft(data, i, uint64(len(m.Payload))) - i += copy(data[i:], m.Payload) + i = encodeVarintRaft(dAtA, i, uint64(len(m.Payload))) + i += copy(dAtA[i:], m.Payload) } - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintRaft(data, i, uint64(m.Replica.Size())) - n12, err := m.Replica.MarshalTo(data[i:]) + i = encodeVarintRaft(dAtA, i, uint64(m.Replica.Size())) + n12, err := m.Replica.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -783,31 +783,31 @@ func (m *ConfChangeContext) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64Raft(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Raft(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Raft(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Raft(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintRaft(data []byte, offset int, v uint64) int { +func encodeVarintRaft(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *RaftHeartbeat) Size() (n int) { @@ -972,8 +972,8 @@ func (this *RaftMessageResponseUnion) SetValue(value interface{}) bool { } return true } -func (m *RaftHeartbeat) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftHeartbeat) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -985,7 +985,7 @@ func (m *RaftHeartbeat) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1013,7 +1013,7 @@ func (m *RaftHeartbeat) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift if b < 0x80 { @@ -1032,7 +1032,7 @@ func (m *RaftHeartbeat) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.FromReplicaID |= (github_com_cockroachdb_cockroach_pkg_roachpb.ReplicaID(b) & 0x7F) << shift if b < 0x80 { @@ -1051,7 +1051,7 @@ func (m *RaftHeartbeat) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ToReplicaID |= (github_com_cockroachdb_cockroach_pkg_roachpb.ReplicaID(b) & 0x7F) << shift if b < 0x80 { @@ -1070,7 +1070,7 @@ func (m *RaftHeartbeat) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Term |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1089,7 +1089,7 @@ func (m *RaftHeartbeat) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Commit |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1108,7 +1108,7 @@ func (m *RaftHeartbeat) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1118,7 +1118,7 @@ func (m *RaftHeartbeat) Unmarshal(data []byte) error { m.Quiesce = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipRaft(data[iNdEx:]) + skippy, err := skipRaft(dAtA[iNdEx:]) if err != nil { return err } @@ -1137,8 +1137,8 @@ func (m *RaftHeartbeat) Unmarshal(data []byte) error { } return nil } -func (m *RaftMessageRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftMessageRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1150,7 +1150,7 @@ func (m *RaftMessageRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1178,7 +1178,7 @@ func (m *RaftMessageRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift if b < 0x80 { @@ -1197,7 +1197,7 @@ func (m *RaftMessageRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1211,7 +1211,7 @@ func (m *RaftMessageRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.FromReplica.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.FromReplica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1227,7 +1227,7 @@ func (m *RaftMessageRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1241,7 +1241,7 @@ func (m *RaftMessageRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ToReplica.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ToReplica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1257,7 +1257,7 @@ func (m *RaftMessageRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1271,7 +1271,7 @@ func (m *RaftMessageRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Message.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1287,7 +1287,7 @@ func (m *RaftMessageRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1307,7 +1307,7 @@ func (m *RaftMessageRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1322,7 +1322,7 @@ func (m *RaftMessageRequest) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Heartbeats = append(m.Heartbeats, RaftHeartbeat{}) - if err := m.Heartbeats[len(m.Heartbeats)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Heartbeats[len(m.Heartbeats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1338,7 +1338,7 @@ func (m *RaftMessageRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1353,13 +1353,13 @@ func (m *RaftMessageRequest) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.HeartbeatResps = append(m.HeartbeatResps, RaftHeartbeat{}) - if err := m.HeartbeatResps[len(m.HeartbeatResps)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.HeartbeatResps[len(m.HeartbeatResps)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRaft(data[iNdEx:]) + skippy, err := skipRaft(dAtA[iNdEx:]) if err != nil { return err } @@ -1378,8 +1378,8 @@ func (m *RaftMessageRequest) Unmarshal(data []byte) error { } return nil } -func (m *RaftMessageRequestBatch) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftMessageRequestBatch) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1391,7 +1391,7 @@ func (m *RaftMessageRequestBatch) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1419,7 +1419,7 @@ func (m *RaftMessageRequestBatch) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1434,13 +1434,13 @@ func (m *RaftMessageRequestBatch) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Requests = append(m.Requests, RaftMessageRequest{}) - if err := m.Requests[len(m.Requests)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Requests[len(m.Requests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRaft(data[iNdEx:]) + skippy, err := skipRaft(dAtA[iNdEx:]) if err != nil { return err } @@ -1459,8 +1459,8 @@ func (m *RaftMessageRequestBatch) Unmarshal(data []byte) error { } return nil } -func (m *RaftMessageResponseUnion) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftMessageResponseUnion) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1472,7 +1472,7 @@ func (m *RaftMessageResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1500,7 +1500,7 @@ func (m *RaftMessageResponseUnion) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1517,13 +1517,13 @@ func (m *RaftMessageResponseUnion) Unmarshal(data []byte) error { if m.Error == nil { m.Error = &cockroach_roachpb3.Error{} } - if err := m.Error.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRaft(data[iNdEx:]) + skippy, err := skipRaft(dAtA[iNdEx:]) if err != nil { return err } @@ -1542,8 +1542,8 @@ func (m *RaftMessageResponseUnion) Unmarshal(data []byte) error { } return nil } -func (m *RaftMessageResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *RaftMessageResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1555,7 +1555,7 @@ func (m *RaftMessageResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1583,7 +1583,7 @@ func (m *RaftMessageResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift if b < 0x80 { @@ -1602,7 +1602,7 @@ func (m *RaftMessageResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1616,7 +1616,7 @@ func (m *RaftMessageResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.FromReplica.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.FromReplica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1632,7 +1632,7 @@ func (m *RaftMessageResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1646,7 +1646,7 @@ func (m *RaftMessageResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ToReplica.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ToReplica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1662,7 +1662,7 @@ func (m *RaftMessageResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1676,13 +1676,13 @@ func (m *RaftMessageResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Union.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Union.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRaft(data[iNdEx:]) + skippy, err := skipRaft(dAtA[iNdEx:]) if err != nil { return err } @@ -1701,8 +1701,8 @@ func (m *RaftMessageResponse) Unmarshal(data []byte) error { } return nil } -func (m *SnapshotRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1714,7 +1714,7 @@ func (m *SnapshotRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1742,7 +1742,7 @@ func (m *SnapshotRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1759,7 +1759,7 @@ func (m *SnapshotRequest) Unmarshal(data []byte) error { if m.Header == nil { m.Header = &SnapshotRequest_Header{} } - if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1775,7 +1775,7 @@ func (m *SnapshotRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1789,7 +1789,7 @@ func (m *SnapshotRequest) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.KVBatch = append(m.KVBatch[:0], data[iNdEx:postIndex]...) + m.KVBatch = append(m.KVBatch[:0], dAtA[iNdEx:postIndex]...) if m.KVBatch == nil { m.KVBatch = []byte{} } @@ -1806,7 +1806,7 @@ func (m *SnapshotRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1821,7 +1821,7 @@ func (m *SnapshotRequest) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.LogEntries = append(m.LogEntries, make([]byte, postIndex-iNdEx)) - copy(m.LogEntries[len(m.LogEntries)-1], data[iNdEx:postIndex]) + copy(m.LogEntries[len(m.LogEntries)-1], dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { @@ -1835,7 +1835,7 @@ func (m *SnapshotRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1845,7 +1845,7 @@ func (m *SnapshotRequest) Unmarshal(data []byte) error { m.Final = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipRaft(data[iNdEx:]) + skippy, err := skipRaft(dAtA[iNdEx:]) if err != nil { return err } @@ -1864,8 +1864,8 @@ func (m *SnapshotRequest) Unmarshal(data []byte) error { } return nil } -func (m *SnapshotRequest_Header) Unmarshal(data []byte) error { - l := len(data) +func (m *SnapshotRequest_Header) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1877,7 +1877,7 @@ func (m *SnapshotRequest_Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1905,7 +1905,7 @@ func (m *SnapshotRequest_Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1919,7 +1919,7 @@ func (m *SnapshotRequest_Header) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.RangeDescriptor.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RangeDescriptor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1935,7 +1935,7 @@ func (m *SnapshotRequest_Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1949,7 +1949,7 @@ func (m *SnapshotRequest_Header) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.RaftMessageRequest.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RaftMessageRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1965,7 +1965,7 @@ func (m *SnapshotRequest_Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeSize |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -1984,7 +1984,7 @@ func (m *SnapshotRequest_Header) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1994,7 +1994,7 @@ func (m *SnapshotRequest_Header) Unmarshal(data []byte) error { m.CanDecline = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipRaft(data[iNdEx:]) + skippy, err := skipRaft(dAtA[iNdEx:]) if err != nil { return err } @@ -2013,8 +2013,8 @@ func (m *SnapshotRequest_Header) Unmarshal(data []byte) error { } return nil } -func (m *SnapshotResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *SnapshotResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2026,7 +2026,7 @@ func (m *SnapshotResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2054,7 +2054,7 @@ func (m *SnapshotResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Status |= (SnapshotResponse_Status(b) & 0x7F) << shift if b < 0x80 { @@ -2073,7 +2073,7 @@ func (m *SnapshotResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2088,7 +2088,7 @@ func (m *SnapshotResponse) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Message = string(data[iNdEx:postIndex]) + m.Message = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -2102,7 +2102,7 @@ func (m *SnapshotResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2119,13 +2119,13 @@ func (m *SnapshotResponse) Unmarshal(data []byte) error { if m.StoreCapacity == nil { m.StoreCapacity = &cockroach_roachpb.StoreCapacity{} } - if err := m.StoreCapacity.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.StoreCapacity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRaft(data[iNdEx:]) + skippy, err := skipRaft(dAtA[iNdEx:]) if err != nil { return err } @@ -2144,8 +2144,8 @@ func (m *SnapshotResponse) Unmarshal(data []byte) error { } return nil } -func (m *ConfChangeContext) Unmarshal(data []byte) error { - l := len(data) +func (m *ConfChangeContext) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -2157,7 +2157,7 @@ func (m *ConfChangeContext) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2185,7 +2185,7 @@ func (m *ConfChangeContext) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2200,7 +2200,7 @@ func (m *ConfChangeContext) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CommandID = string(data[iNdEx:postIndex]) + m.CommandID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -2214,7 +2214,7 @@ func (m *ConfChangeContext) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2228,7 +2228,7 @@ func (m *ConfChangeContext) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Payload = append(m.Payload[:0], data[iNdEx:postIndex]...) + m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) if m.Payload == nil { m.Payload = []byte{} } @@ -2245,7 +2245,7 @@ func (m *ConfChangeContext) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2259,13 +2259,13 @@ func (m *ConfChangeContext) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Replica.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Replica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRaft(data[iNdEx:]) + skippy, err := skipRaft(dAtA[iNdEx:]) if err != nil { return err } @@ -2284,8 +2284,8 @@ func (m *ConfChangeContext) Unmarshal(data []byte) error { } return nil } -func skipRaft(data []byte) (n int, err error) { - l := len(data) +func skipRaft(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -2296,7 +2296,7 @@ func skipRaft(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2314,7 +2314,7 @@ func skipRaft(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -2331,7 +2331,7 @@ func skipRaft(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -2354,7 +2354,7 @@ func skipRaft(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -2365,7 +2365,7 @@ func skipRaft(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipRaft(data[start:]) + next, err := skipRaft(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/storage/storagebase/proposer_kv.pb.go b/pkg/storage/storagebase/proposer_kv.pb.go index 628ef4c2696e..7996eadabffe 100644 --- a/pkg/storage/storagebase/proposer_kv.pb.go +++ b/pkg/storage/storagebase/proposer_kv.pb.go @@ -134,33 +134,33 @@ func init() { proto.RegisterType((*Merge)(nil), "cockroach.storage.storagebase.Merge") proto.RegisterType((*ReplicatedProposalData)(nil), "cockroach.storage.storagebase.ReplicatedProposalData") } -func (m *Split) Marshal() (data []byte, err error) { +func (m *Split) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Split) MarshalTo(data []byte) (int, error) { +func (m *Split) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintProposerKv(data, i, uint64(m.SplitTrigger.Size())) - n1, err := m.SplitTrigger.MarshalTo(data[i:]) + i = encodeVarintProposerKv(dAtA, i, uint64(m.SplitTrigger.Size())) + n1, err := m.SplitTrigger.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintProposerKv(data, i, uint64(m.RHSDelta.Size())) - n2, err := m.RHSDelta.MarshalTo(data[i:]) + i = encodeVarintProposerKv(dAtA, i, uint64(m.RHSDelta.Size())) + n2, err := m.RHSDelta.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -168,25 +168,25 @@ func (m *Split) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *Merge) Marshal() (data []byte, err error) { +func (m *Merge) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Merge) MarshalTo(data []byte) (int, error) { +func (m *Merge) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintProposerKv(data, i, uint64(m.MergeTrigger.Size())) - n3, err := m.MergeTrigger.MarshalTo(data[i:]) + i = encodeVarintProposerKv(dAtA, i, uint64(m.MergeTrigger.Size())) + n3, err := m.MergeTrigger.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -194,106 +194,106 @@ func (m *Merge) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ReplicatedProposalData) Marshal() (data []byte, err error) { +func (m *ReplicatedProposalData) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ReplicatedProposalData) MarshalTo(data []byte) (int, error) { +func (m *ReplicatedProposalData) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintProposerKv(data, i, uint64(m.RangeID)) - data[i] = 0x12 + i = encodeVarintProposerKv(dAtA, i, uint64(m.RangeID)) + dAtA[i] = 0x12 i++ - i = encodeVarintProposerKv(data, i, uint64(m.OriginReplica.Size())) - n4, err := m.OriginReplica.MarshalTo(data[i:]) + i = encodeVarintProposerKv(dAtA, i, uint64(m.OriginReplica.Size())) + n4, err := m.OriginReplica.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n4 if m.Cmd != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintProposerKv(data, i, uint64(m.Cmd.Size())) - n5, err := m.Cmd.MarshalTo(data[i:]) + i = encodeVarintProposerKv(dAtA, i, uint64(m.Cmd.Size())) + n5, err := m.Cmd.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n5 } - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintProposerKv(data, i, uint64(m.MaxLeaseIndex)) - data[i] = 0x88 + i = encodeVarintProposerKv(dAtA, i, uint64(m.MaxLeaseIndex)) + dAtA[i] = 0x88 i++ - data[i] = 0xf1 + dAtA[i] = 0xf1 i++ - data[i] = 0x4 + dAtA[i] = 0x4 i++ if m.BlockReads { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ - data[i] = 0x92 + dAtA[i] = 0x92 i++ - data[i] = 0xf1 + dAtA[i] = 0xf1 i++ - data[i] = 0x4 + dAtA[i] = 0x4 i++ - i = encodeVarintProposerKv(data, i, uint64(m.State.Size())) - n6, err := m.State.MarshalTo(data[i:]) + i = encodeVarintProposerKv(dAtA, i, uint64(m.State.Size())) + n6, err := m.State.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n6 if m.Split != nil { - data[i] = 0x9a + dAtA[i] = 0x9a i++ - data[i] = 0xf1 + dAtA[i] = 0xf1 i++ - data[i] = 0x4 + dAtA[i] = 0x4 i++ - i = encodeVarintProposerKv(data, i, uint64(m.Split.Size())) - n7, err := m.Split.MarshalTo(data[i:]) + i = encodeVarintProposerKv(dAtA, i, uint64(m.Split.Size())) + n7, err := m.Split.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n7 } if m.Merge != nil { - data[i] = 0xa2 + dAtA[i] = 0xa2 i++ - data[i] = 0xf1 + dAtA[i] = 0xf1 i++ - data[i] = 0x4 + dAtA[i] = 0x4 i++ - i = encodeVarintProposerKv(data, i, uint64(m.Merge.Size())) - n8, err := m.Merge.MarshalTo(data[i:]) + i = encodeVarintProposerKv(dAtA, i, uint64(m.Merge.Size())) + n8, err := m.Merge.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n8 } if m.ComputeChecksum != nil { - data[i] = 0xaa + dAtA[i] = 0xaa i++ - data[i] = 0xf1 + dAtA[i] = 0xf1 i++ - data[i] = 0x4 + dAtA[i] = 0x4 i++ - i = encodeVarintProposerKv(data, i, uint64(m.ComputeChecksum.Size())) - n9, err := m.ComputeChecksum.MarshalTo(data[i:]) + i = encodeVarintProposerKv(dAtA, i, uint64(m.ComputeChecksum.Size())) + n9, err := m.ComputeChecksum.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -302,31 +302,31 @@ func (m *ReplicatedProposalData) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64ProposerKv(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64ProposerKv(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32ProposerKv(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32ProposerKv(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintProposerKv(data []byte, offset int, v uint64) int { +func encodeVarintProposerKv(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *Split) Size() (n int) { @@ -389,8 +389,8 @@ func sovProposerKv(x uint64) (n int) { func sozProposerKv(x uint64) (n int) { return sovProposerKv(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *Split) Unmarshal(data []byte) error { - l := len(data) +func (m *Split) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -402,7 +402,7 @@ func (m *Split) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -430,7 +430,7 @@ func (m *Split) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -444,7 +444,7 @@ func (m *Split) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.SplitTrigger.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.SplitTrigger.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -460,7 +460,7 @@ func (m *Split) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -474,13 +474,13 @@ func (m *Split) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.RHSDelta.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.RHSDelta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProposerKv(data[iNdEx:]) + skippy, err := skipProposerKv(dAtA[iNdEx:]) if err != nil { return err } @@ -499,8 +499,8 @@ func (m *Split) Unmarshal(data []byte) error { } return nil } -func (m *Merge) Unmarshal(data []byte) error { - l := len(data) +func (m *Merge) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -512,7 +512,7 @@ func (m *Merge) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -540,7 +540,7 @@ func (m *Merge) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -554,13 +554,13 @@ func (m *Merge) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.MergeTrigger.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.MergeTrigger.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProposerKv(data[iNdEx:]) + skippy, err := skipProposerKv(dAtA[iNdEx:]) if err != nil { return err } @@ -579,8 +579,8 @@ func (m *Merge) Unmarshal(data []byte) error { } return nil } -func (m *ReplicatedProposalData) Unmarshal(data []byte) error { - l := len(data) +func (m *ReplicatedProposalData) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -592,7 +592,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -620,7 +620,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RangeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift if b < 0x80 { @@ -639,7 +639,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -653,7 +653,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.OriginReplica.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.OriginReplica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -669,7 +669,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -686,7 +686,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if m.Cmd == nil { m.Cmd = &cockroach_roachpb3.BatchRequest{} } - if err := m.Cmd.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Cmd.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -702,7 +702,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.MaxLeaseIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -721,7 +721,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -741,7 +741,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -755,7 +755,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.State.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -771,7 +771,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -788,7 +788,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if m.Split == nil { m.Split = &Split{} } - if err := m.Split.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Split.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -804,7 +804,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -821,7 +821,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if m.Merge == nil { m.Merge = &Merge{} } - if err := m.Merge.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Merge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -837,7 +837,7 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -854,13 +854,13 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { if m.ComputeChecksum == nil { m.ComputeChecksum = &cockroach_roachpb3.ComputeChecksumRequest{} } - if err := m.ComputeChecksum.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ComputeChecksum.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipProposerKv(data[iNdEx:]) + skippy, err := skipProposerKv(dAtA[iNdEx:]) if err != nil { return err } @@ -879,8 +879,8 @@ func (m *ReplicatedProposalData) Unmarshal(data []byte) error { } return nil } -func skipProposerKv(data []byte) (n int, err error) { - l := len(data) +func skipProposerKv(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -891,7 +891,7 @@ func skipProposerKv(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -909,7 +909,7 @@ func skipProposerKv(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -926,7 +926,7 @@ func skipProposerKv(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -949,7 +949,7 @@ func skipProposerKv(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -960,7 +960,7 @@ func skipProposerKv(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipProposerKv(data[start:]) + next, err := skipProposerKv(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/storage/storagebase/state.pb.go b/pkg/storage/storagebase/state.pb.go index 37c9b997e164..9681c8ead792 100644 --- a/pkg/storage/storagebase/state.pb.go +++ b/pkg/storage/storagebase/state.pb.go @@ -122,164 +122,164 @@ func init() { proto.RegisterType((*RangeInfo)(nil), "cockroach.storage.storagebase.RangeInfo") proto.RegisterEnum("cockroach.storage.storagebase.ReplicaState_FrozenEnum", ReplicaState_FrozenEnum_name, ReplicaState_FrozenEnum_value) } -func (m *ReplicaState) Marshal() (data []byte, err error) { +func (m *ReplicaState) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *ReplicaState) MarshalTo(data []byte) (int, error) { +func (m *ReplicaState) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.RaftAppliedIndex != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintState(data, i, uint64(m.RaftAppliedIndex)) + i = encodeVarintState(dAtA, i, uint64(m.RaftAppliedIndex)) } if m.LeaseAppliedIndex != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintState(data, i, uint64(m.LeaseAppliedIndex)) + i = encodeVarintState(dAtA, i, uint64(m.LeaseAppliedIndex)) } if m.Desc != nil { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintState(data, i, uint64(m.Desc.Size())) - n1, err := m.Desc.MarshalTo(data[i:]) + i = encodeVarintState(dAtA, i, uint64(m.Desc.Size())) + n1, err := m.Desc.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 } if m.Lease != nil { - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintState(data, i, uint64(m.Lease.Size())) - n2, err := m.Lease.MarshalTo(data[i:]) + i = encodeVarintState(dAtA, i, uint64(m.Lease.Size())) + n2, err := m.Lease.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 } if m.TruncatedState != nil { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintState(data, i, uint64(m.TruncatedState.Size())) - n3, err := m.TruncatedState.MarshalTo(data[i:]) + i = encodeVarintState(dAtA, i, uint64(m.TruncatedState.Size())) + n3, err := m.TruncatedState.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 } - data[i] = 0x32 + dAtA[i] = 0x32 i++ - i = encodeVarintState(data, i, uint64(m.GCThreshold.Size())) - n4, err := m.GCThreshold.MarshalTo(data[i:]) + i = encodeVarintState(dAtA, i, uint64(m.GCThreshold.Size())) + n4, err := m.GCThreshold.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n4 - data[i] = 0x3a + dAtA[i] = 0x3a i++ - i = encodeVarintState(data, i, uint64(m.Stats.Size())) - n5, err := m.Stats.MarshalTo(data[i:]) + i = encodeVarintState(dAtA, i, uint64(m.Stats.Size())) + n5, err := m.Stats.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n5 - data[i] = 0x4a + dAtA[i] = 0x4a i++ - i = encodeVarintState(data, i, uint64(m.TxnSpanGCThreshold.Size())) - n6, err := m.TxnSpanGCThreshold.MarshalTo(data[i:]) + i = encodeVarintState(dAtA, i, uint64(m.TxnSpanGCThreshold.Size())) + n6, err := m.TxnSpanGCThreshold.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n6 if m.Frozen != 0 { - data[i] = 0x50 + dAtA[i] = 0x50 i++ - i = encodeVarintState(data, i, uint64(m.Frozen)) + i = encodeVarintState(dAtA, i, uint64(m.Frozen)) } return i, nil } -func (m *RangeInfo) Marshal() (data []byte, err error) { +func (m *RangeInfo) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *RangeInfo) MarshalTo(data []byte) (int, error) { +func (m *RangeInfo) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintState(data, i, uint64(m.ReplicaState.Size())) - n7, err := m.ReplicaState.MarshalTo(data[i:]) + i = encodeVarintState(dAtA, i, uint64(m.ReplicaState.Size())) + n7, err := m.ReplicaState.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n7 if m.LastIndex != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintState(data, i, uint64(m.LastIndex)) + i = encodeVarintState(dAtA, i, uint64(m.LastIndex)) } if m.NumPending != 0 { - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintState(data, i, uint64(m.NumPending)) + i = encodeVarintState(dAtA, i, uint64(m.NumPending)) } if m.NumDropped != 0 { - data[i] = 0x28 + dAtA[i] = 0x28 i++ - i = encodeVarintState(data, i, uint64(m.NumDropped)) + i = encodeVarintState(dAtA, i, uint64(m.NumDropped)) } if m.RaftLogSize != 0 { - data[i] = 0x30 + dAtA[i] = 0x30 i++ - i = encodeVarintState(data, i, uint64(m.RaftLogSize)) + i = encodeVarintState(dAtA, i, uint64(m.RaftLogSize)) } return i, nil } -func encodeFixed64State(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64State(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32State(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32State(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintState(data []byte, offset int, v uint64) int { +func encodeVarintState(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *ReplicaState) Size() (n int) { @@ -348,8 +348,8 @@ func sovState(x uint64) (n int) { func sozState(x uint64) (n int) { return sovState(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *ReplicaState) Unmarshal(data []byte) error { - l := len(data) +func (m *ReplicaState) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -361,7 +361,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -389,7 +389,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RaftAppliedIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -408,7 +408,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.LeaseAppliedIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -427,7 +427,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -444,7 +444,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if m.Desc == nil { m.Desc = &cockroach_roachpb.RangeDescriptor{} } - if err := m.Desc.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Desc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -460,7 +460,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -477,7 +477,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if m.Lease == nil { m.Lease = &cockroach_roachpb1.Lease{} } - if err := m.Lease.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Lease.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -493,7 +493,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -510,7 +510,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if m.TruncatedState == nil { m.TruncatedState = &cockroach_roachpb4.RaftTruncatedState{} } - if err := m.TruncatedState.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TruncatedState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -526,7 +526,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -540,7 +540,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.GCThreshold.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.GCThreshold.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -556,7 +556,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -570,7 +570,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Stats.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -586,7 +586,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -600,7 +600,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.TxnSpanGCThreshold.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.TxnSpanGCThreshold.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -616,7 +616,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Frozen |= (ReplicaState_FrozenEnum(b) & 0x7F) << shift if b < 0x80 { @@ -625,7 +625,7 @@ func (m *ReplicaState) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipState(data[iNdEx:]) + skippy, err := skipState(dAtA[iNdEx:]) if err != nil { return err } @@ -644,8 +644,8 @@ func (m *ReplicaState) Unmarshal(data []byte) error { } return nil } -func (m *RangeInfo) Unmarshal(data []byte) error { - l := len(data) +func (m *RangeInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -657,7 +657,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -685,7 +685,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -699,7 +699,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ReplicaState.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.ReplicaState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -715,7 +715,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.LastIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -734,7 +734,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NumPending |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -753,7 +753,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.NumDropped |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -772,7 +772,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.RaftLogSize |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -781,7 +781,7 @@ func (m *RangeInfo) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipState(data[iNdEx:]) + skippy, err := skipState(dAtA[iNdEx:]) if err != nil { return err } @@ -800,8 +800,8 @@ func (m *RangeInfo) Unmarshal(data []byte) error { } return nil } -func skipState(data []byte) (n int, err error) { - l := len(data) +func skipState(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -812,7 +812,7 @@ func skipState(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -830,7 +830,7 @@ func skipState(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -847,7 +847,7 @@ func skipState(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -870,7 +870,7 @@ func skipState(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -881,7 +881,7 @@ func skipState(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipState(data[start:]) + next, err := skipState(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/ts/tspb/timeseries.pb.go b/pkg/ts/tspb/timeseries.pb.go index 35c79b81f3de..bbf2f901079b 100644 --- a/pkg/ts/tspb/timeseries.pb.go +++ b/pkg/ts/tspb/timeseries.pb.go @@ -373,59 +373,59 @@ var _TimeSeries_serviceDesc = grpc.ServiceDesc{ Metadata: fileDescriptorTimeseries, } -func (m *TimeSeriesDatapoint) Marshal() (data []byte, err error) { +func (m *TimeSeriesDatapoint) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TimeSeriesDatapoint) MarshalTo(data []byte) (int, error) { +func (m *TimeSeriesDatapoint) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintTimeseries(data, i, uint64(m.TimestampNanos)) - data[i] = 0x11 + i = encodeVarintTimeseries(dAtA, i, uint64(m.TimestampNanos)) + dAtA[i] = 0x11 i++ - i = encodeFixed64Timeseries(data, i, uint64(math.Float64bits(float64(m.Value)))) + i = encodeFixed64Timeseries(dAtA, i, uint64(math.Float64bits(float64(m.Value)))) return i, nil } -func (m *TimeSeriesData) Marshal() (data []byte, err error) { +func (m *TimeSeriesData) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TimeSeriesData) MarshalTo(data []byte) (int, error) { +func (m *TimeSeriesData) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintTimeseries(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - data[i] = 0x12 + i = encodeVarintTimeseries(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x12 i++ - i = encodeVarintTimeseries(data, i, uint64(len(m.Source))) - i += copy(data[i:], m.Source) + i = encodeVarintTimeseries(dAtA, i, uint64(len(m.Source))) + i += copy(dAtA[i:], m.Source) if len(m.Datapoints) > 0 { for _, msg := range m.Datapoints { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintTimeseries(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintTimeseries(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -435,118 +435,118 @@ func (m *TimeSeriesData) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *Query) Marshal() (data []byte, err error) { +func (m *Query) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Query) MarshalTo(data []byte) (int, error) { +func (m *Query) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintTimeseries(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) + i = encodeVarintTimeseries(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) if m.Downsampler != nil { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintTimeseries(data, i, uint64(*m.Downsampler)) + i = encodeVarintTimeseries(dAtA, i, uint64(*m.Downsampler)) } if m.SourceAggregator != nil { - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintTimeseries(data, i, uint64(*m.SourceAggregator)) + i = encodeVarintTimeseries(dAtA, i, uint64(*m.SourceAggregator)) } if m.Derivative != nil { - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintTimeseries(data, i, uint64(*m.Derivative)) + i = encodeVarintTimeseries(dAtA, i, uint64(*m.Derivative)) } if len(m.Sources) > 0 { for _, s := range m.Sources { - data[i] = 0x2a + dAtA[i] = 0x2a i++ l = len(s) for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } - data[i] = uint8(l) + dAtA[i] = uint8(l) i++ - i += copy(data[i:], s) + i += copy(dAtA[i:], s) } } return i, nil } -func (m *TimeSeriesQueryRequest) Marshal() (data []byte, err error) { +func (m *TimeSeriesQueryRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TimeSeriesQueryRequest) MarshalTo(data []byte) (int, error) { +func (m *TimeSeriesQueryRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintTimeseries(data, i, uint64(m.StartNanos)) - data[i] = 0x10 + i = encodeVarintTimeseries(dAtA, i, uint64(m.StartNanos)) + dAtA[i] = 0x10 i++ - i = encodeVarintTimeseries(data, i, uint64(m.EndNanos)) + i = encodeVarintTimeseries(dAtA, i, uint64(m.EndNanos)) if len(m.Queries) > 0 { for _, msg := range m.Queries { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintTimeseries(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintTimeseries(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintTimeseries(data, i, uint64(m.SampleNanos)) + i = encodeVarintTimeseries(dAtA, i, uint64(m.SampleNanos)) return i, nil } -func (m *TimeSeriesQueryResponse) Marshal() (data []byte, err error) { +func (m *TimeSeriesQueryResponse) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TimeSeriesQueryResponse) MarshalTo(data []byte) (int, error) { +func (m *TimeSeriesQueryResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Results) > 0 { for _, msg := range m.Results { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintTimeseries(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintTimeseries(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -556,35 +556,35 @@ func (m *TimeSeriesQueryResponse) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *TimeSeriesQueryResponse_Result) Marshal() (data []byte, err error) { +func (m *TimeSeriesQueryResponse_Result) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *TimeSeriesQueryResponse_Result) MarshalTo(data []byte) (int, error) { +func (m *TimeSeriesQueryResponse_Result) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintTimeseries(data, i, uint64(m.Query.Size())) - n1, err := m.Query.MarshalTo(data[i:]) + i = encodeVarintTimeseries(dAtA, i, uint64(m.Query.Size())) + n1, err := m.Query.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 if len(m.Datapoints) > 0 { for _, msg := range m.Datapoints { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintTimeseries(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) + i = encodeVarintTimeseries(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -594,31 +594,31 @@ func (m *TimeSeriesQueryResponse_Result) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64Timeseries(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Timeseries(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Timeseries(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Timeseries(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintTimeseries(data []byte, offset int, v uint64) int { +func encodeVarintTimeseries(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *TimeSeriesDatapoint) Size() (n int) { @@ -722,8 +722,8 @@ func sovTimeseries(x uint64) (n int) { func sozTimeseries(x uint64) (n int) { return sovTimeseries(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *TimeSeriesDatapoint) Unmarshal(data []byte) error { - l := len(data) +func (m *TimeSeriesDatapoint) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -735,7 +735,7 @@ func (m *TimeSeriesDatapoint) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -763,7 +763,7 @@ func (m *TimeSeriesDatapoint) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.TimestampNanos |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -779,18 +779,18 @@ func (m *TimeSeriesDatapoint) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } iNdEx += 8 - v = uint64(data[iNdEx-8]) - v |= uint64(data[iNdEx-7]) << 8 - v |= uint64(data[iNdEx-6]) << 16 - v |= uint64(data[iNdEx-5]) << 24 - v |= uint64(data[iNdEx-4]) << 32 - v |= uint64(data[iNdEx-3]) << 40 - v |= uint64(data[iNdEx-2]) << 48 - v |= uint64(data[iNdEx-1]) << 56 + v = uint64(dAtA[iNdEx-8]) + v |= uint64(dAtA[iNdEx-7]) << 8 + v |= uint64(dAtA[iNdEx-6]) << 16 + v |= uint64(dAtA[iNdEx-5]) << 24 + v |= uint64(dAtA[iNdEx-4]) << 32 + v |= uint64(dAtA[iNdEx-3]) << 40 + v |= uint64(dAtA[iNdEx-2]) << 48 + v |= uint64(dAtA[iNdEx-1]) << 56 m.Value = float64(math.Float64frombits(v)) default: iNdEx = preIndex - skippy, err := skipTimeseries(data[iNdEx:]) + skippy, err := skipTimeseries(dAtA[iNdEx:]) if err != nil { return err } @@ -809,8 +809,8 @@ func (m *TimeSeriesDatapoint) Unmarshal(data []byte) error { } return nil } -func (m *TimeSeriesData) Unmarshal(data []byte) error { - l := len(data) +func (m *TimeSeriesData) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -822,7 +822,7 @@ func (m *TimeSeriesData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -850,7 +850,7 @@ func (m *TimeSeriesData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -865,7 +865,7 @@ func (m *TimeSeriesData) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(data[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -879,7 +879,7 @@ func (m *TimeSeriesData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -894,7 +894,7 @@ func (m *TimeSeriesData) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Source = string(data[iNdEx:postIndex]) + m.Source = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -908,7 +908,7 @@ func (m *TimeSeriesData) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -923,13 +923,13 @@ func (m *TimeSeriesData) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Datapoints = append(m.Datapoints, TimeSeriesDatapoint{}) - if err := m.Datapoints[len(m.Datapoints)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Datapoints[len(m.Datapoints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTimeseries(data[iNdEx:]) + skippy, err := skipTimeseries(dAtA[iNdEx:]) if err != nil { return err } @@ -948,8 +948,8 @@ func (m *TimeSeriesData) Unmarshal(data []byte) error { } return nil } -func (m *Query) Unmarshal(data []byte) error { - l := len(data) +func (m *Query) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -961,7 +961,7 @@ func (m *Query) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -989,7 +989,7 @@ func (m *Query) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1004,7 +1004,7 @@ func (m *Query) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(data[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -1018,7 +1018,7 @@ func (m *Query) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (TimeSeriesQueryAggregator(b) & 0x7F) << shift if b < 0x80 { @@ -1038,7 +1038,7 @@ func (m *Query) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (TimeSeriesQueryAggregator(b) & 0x7F) << shift if b < 0x80 { @@ -1058,7 +1058,7 @@ func (m *Query) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (TimeSeriesQueryDerivative(b) & 0x7F) << shift if b < 0x80 { @@ -1078,7 +1078,7 @@ func (m *Query) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1093,11 +1093,11 @@ func (m *Query) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Sources = append(m.Sources, string(data[iNdEx:postIndex])) + m.Sources = append(m.Sources, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTimeseries(data[iNdEx:]) + skippy, err := skipTimeseries(dAtA[iNdEx:]) if err != nil { return err } @@ -1116,8 +1116,8 @@ func (m *Query) Unmarshal(data []byte) error { } return nil } -func (m *TimeSeriesQueryRequest) Unmarshal(data []byte) error { - l := len(data) +func (m *TimeSeriesQueryRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1129,7 +1129,7 @@ func (m *TimeSeriesQueryRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1157,7 +1157,7 @@ func (m *TimeSeriesQueryRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.StartNanos |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -1176,7 +1176,7 @@ func (m *TimeSeriesQueryRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.EndNanos |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -1195,7 +1195,7 @@ func (m *TimeSeriesQueryRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1210,7 +1210,7 @@ func (m *TimeSeriesQueryRequest) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Queries = append(m.Queries, Query{}) - if err := m.Queries[len(m.Queries)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Queries[len(m.Queries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1226,7 +1226,7 @@ func (m *TimeSeriesQueryRequest) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.SampleNanos |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -1235,7 +1235,7 @@ func (m *TimeSeriesQueryRequest) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipTimeseries(data[iNdEx:]) + skippy, err := skipTimeseries(dAtA[iNdEx:]) if err != nil { return err } @@ -1254,8 +1254,8 @@ func (m *TimeSeriesQueryRequest) Unmarshal(data []byte) error { } return nil } -func (m *TimeSeriesQueryResponse) Unmarshal(data []byte) error { - l := len(data) +func (m *TimeSeriesQueryResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1267,7 +1267,7 @@ func (m *TimeSeriesQueryResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1295,7 +1295,7 @@ func (m *TimeSeriesQueryResponse) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1310,13 +1310,13 @@ func (m *TimeSeriesQueryResponse) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Results = append(m.Results, TimeSeriesQueryResponse_Result{}) - if err := m.Results[len(m.Results)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Results[len(m.Results)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTimeseries(data[iNdEx:]) + skippy, err := skipTimeseries(dAtA[iNdEx:]) if err != nil { return err } @@ -1335,8 +1335,8 @@ func (m *TimeSeriesQueryResponse) Unmarshal(data []byte) error { } return nil } -func (m *TimeSeriesQueryResponse_Result) Unmarshal(data []byte) error { - l := len(data) +func (m *TimeSeriesQueryResponse_Result) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -1348,7 +1348,7 @@ func (m *TimeSeriesQueryResponse_Result) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1376,7 +1376,7 @@ func (m *TimeSeriesQueryResponse_Result) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1390,7 +1390,7 @@ func (m *TimeSeriesQueryResponse_Result) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Query.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Query.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1406,7 +1406,7 @@ func (m *TimeSeriesQueryResponse_Result) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1421,13 +1421,13 @@ func (m *TimeSeriesQueryResponse_Result) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } m.Datapoints = append(m.Datapoints, TimeSeriesDatapoint{}) - if err := m.Datapoints[len(m.Datapoints)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Datapoints[len(m.Datapoints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTimeseries(data[iNdEx:]) + skippy, err := skipTimeseries(dAtA[iNdEx:]) if err != nil { return err } @@ -1446,8 +1446,8 @@ func (m *TimeSeriesQueryResponse_Result) Unmarshal(data []byte) error { } return nil } -func skipTimeseries(data []byte) (n int, err error) { - l := len(data) +func skipTimeseries(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -1458,7 +1458,7 @@ func skipTimeseries(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1476,7 +1476,7 @@ func skipTimeseries(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -1493,7 +1493,7 @@ func skipTimeseries(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -1516,7 +1516,7 @@ func skipTimeseries(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -1527,7 +1527,7 @@ func skipTimeseries(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipTimeseries(data[start:]) + next, err := skipTimeseries(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/util/hlc/timestamp.pb.go b/pkg/util/hlc/timestamp.pb.go index a270be7bec93..899b2725bdac 100644 --- a/pkg/util/hlc/timestamp.pb.go +++ b/pkg/util/hlc/timestamp.pb.go @@ -49,55 +49,55 @@ func (*Timestamp) Descriptor() ([]byte, []int) { return fileDescriptorTimestamp, func init() { proto.RegisterType((*Timestamp)(nil), "cockroach.util.hlc.Timestamp") } -func (m *Timestamp) Marshal() (data []byte, err error) { +func (m *Timestamp) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Timestamp) MarshalTo(data []byte) (int, error) { +func (m *Timestamp) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintTimestamp(data, i, uint64(m.WallTime)) - data[i] = 0x10 + i = encodeVarintTimestamp(dAtA, i, uint64(m.WallTime)) + dAtA[i] = 0x10 i++ - i = encodeVarintTimestamp(data, i, uint64(m.Logical)) + i = encodeVarintTimestamp(dAtA, i, uint64(m.Logical)) return i, nil } -func encodeFixed64Timestamp(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Timestamp(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Timestamp(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Timestamp(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintTimestamp(data []byte, offset int, v uint64) int { +func encodeVarintTimestamp(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func NewPopulatedTimestamp(r randyTimestamp, easy bool) *Timestamp { @@ -141,7 +141,7 @@ func randStringTimestamp(r randyTimestamp) string { } return string(tmps) } -func randUnrecognizedTimestamp(r randyTimestamp, maxFieldNumber int) (data []byte) { +func randUnrecognizedTimestamp(r randyTimestamp, maxFieldNumber int) (dAtA []byte) { l := r.Intn(5) for i := 0; i < l; i++ { wire := r.Intn(4) @@ -149,43 +149,43 @@ func randUnrecognizedTimestamp(r randyTimestamp, maxFieldNumber int) (data []byt wire = 5 } fieldNumber := maxFieldNumber + r.Intn(100) - data = randFieldTimestamp(data, r, fieldNumber, wire) + dAtA = randFieldTimestamp(dAtA, r, fieldNumber, wire) } - return data + return dAtA } -func randFieldTimestamp(data []byte, r randyTimestamp, fieldNumber int, wire int) []byte { +func randFieldTimestamp(dAtA []byte, r randyTimestamp, fieldNumber int, wire int) []byte { key := uint32(fieldNumber)<<3 | uint32(wire) switch wire { case 0: - data = encodeVarintPopulateTimestamp(data, uint64(key)) + dAtA = encodeVarintPopulateTimestamp(dAtA, uint64(key)) v2 := r.Int63() if r.Intn(2) == 0 { v2 *= -1 } - data = encodeVarintPopulateTimestamp(data, uint64(v2)) + dAtA = encodeVarintPopulateTimestamp(dAtA, uint64(v2)) case 1: - data = encodeVarintPopulateTimestamp(data, uint64(key)) - data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + dAtA = encodeVarintPopulateTimestamp(dAtA, uint64(key)) + dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) case 2: - data = encodeVarintPopulateTimestamp(data, uint64(key)) + dAtA = encodeVarintPopulateTimestamp(dAtA, uint64(key)) ll := r.Intn(100) - data = encodeVarintPopulateTimestamp(data, uint64(ll)) + dAtA = encodeVarintPopulateTimestamp(dAtA, uint64(ll)) for j := 0; j < ll; j++ { - data = append(data, byte(r.Intn(256))) + dAtA = append(dAtA, byte(r.Intn(256))) } default: - data = encodeVarintPopulateTimestamp(data, uint64(key)) - data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + dAtA = encodeVarintPopulateTimestamp(dAtA, uint64(key)) + dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) } - return data + return dAtA } -func encodeVarintPopulateTimestamp(data []byte, v uint64) []byte { +func encodeVarintPopulateTimestamp(dAtA []byte, v uint64) []byte { for v >= 1<<7 { - data = append(data, uint8(uint64(v)&0x7f|0x80)) + dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80)) v >>= 7 } - data = append(data, uint8(v)) - return data + dAtA = append(dAtA, uint8(v)) + return dAtA } func (m *Timestamp) Size() (n int) { var l int @@ -208,8 +208,8 @@ func sovTimestamp(x uint64) (n int) { func sozTimestamp(x uint64) (n int) { return sovTimestamp(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *Timestamp) Unmarshal(data []byte) error { - l := len(data) +func (m *Timestamp) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -221,7 +221,7 @@ func (m *Timestamp) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -249,7 +249,7 @@ func (m *Timestamp) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.WallTime |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -268,7 +268,7 @@ func (m *Timestamp) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Logical |= (int32(b) & 0x7F) << shift if b < 0x80 { @@ -277,7 +277,7 @@ func (m *Timestamp) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipTimestamp(data[iNdEx:]) + skippy, err := skipTimestamp(dAtA[iNdEx:]) if err != nil { return err } @@ -296,8 +296,8 @@ func (m *Timestamp) Unmarshal(data []byte) error { } return nil } -func skipTimestamp(data []byte) (n int, err error) { - l := len(data) +func skipTimestamp(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -308,7 +308,7 @@ func skipTimestamp(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -326,7 +326,7 @@ func skipTimestamp(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -343,7 +343,7 @@ func skipTimestamp(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -366,7 +366,7 @@ func skipTimestamp(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -377,7 +377,7 @@ func skipTimestamp(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipTimestamp(data[start:]) + next, err := skipTimestamp(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/util/log/log.pb.go b/pkg/util/log/log.pb.go index e0010d66dbe3..7c07fb1e9677 100644 --- a/pkg/util/log/log.pb.go +++ b/pkg/util/log/log.pb.go @@ -117,142 +117,142 @@ func init() { proto.RegisterType((*FileInfo)(nil), "cockroach.util.log.FileInfo") proto.RegisterEnum("cockroach.util.log.Severity", Severity_name, Severity_value) } -func (m *Entry) Marshal() (data []byte, err error) { +func (m *Entry) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *Entry) MarshalTo(data []byte) (int, error) { +func (m *Entry) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Severity != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintLog(data, i, uint64(m.Severity)) + i = encodeVarintLog(dAtA, i, uint64(m.Severity)) } if m.Time != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintLog(data, i, uint64(m.Time)) + i = encodeVarintLog(dAtA, i, uint64(m.Time)) } if len(m.File) > 0 { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintLog(data, i, uint64(len(m.File))) - i += copy(data[i:], m.File) + i = encodeVarintLog(dAtA, i, uint64(len(m.File))) + i += copy(dAtA[i:], m.File) } if m.Line != 0 { - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintLog(data, i, uint64(m.Line)) + i = encodeVarintLog(dAtA, i, uint64(m.Line)) } if len(m.Message) > 0 { - data[i] = 0x2a + dAtA[i] = 0x2a i++ - i = encodeVarintLog(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) + i = encodeVarintLog(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) } if m.Goroutine != 0 { - data[i] = 0x30 + dAtA[i] = 0x30 i++ - i = encodeVarintLog(data, i, uint64(m.Goroutine)) + i = encodeVarintLog(dAtA, i, uint64(m.Goroutine)) } return i, nil } -func (m *FileDetails) Marshal() (data []byte, err error) { +func (m *FileDetails) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *FileDetails) MarshalTo(data []byte) (int, error) { +func (m *FileDetails) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Program) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintLog(data, i, uint64(len(m.Program))) - i += copy(data[i:], m.Program) + i = encodeVarintLog(dAtA, i, uint64(len(m.Program))) + i += copy(dAtA[i:], m.Program) } if len(m.Host) > 0 { - data[i] = 0x12 + dAtA[i] = 0x12 i++ - i = encodeVarintLog(data, i, uint64(len(m.Host))) - i += copy(data[i:], m.Host) + i = encodeVarintLog(dAtA, i, uint64(len(m.Host))) + i += copy(dAtA[i:], m.Host) } if len(m.UserName) > 0 { - data[i] = 0x1a + dAtA[i] = 0x1a i++ - i = encodeVarintLog(data, i, uint64(len(m.UserName))) - i += copy(data[i:], m.UserName) + i = encodeVarintLog(dAtA, i, uint64(len(m.UserName))) + i += copy(dAtA[i:], m.UserName) } if m.Severity != 0 { - data[i] = 0x20 + dAtA[i] = 0x20 i++ - i = encodeVarintLog(data, i, uint64(m.Severity)) + i = encodeVarintLog(dAtA, i, uint64(m.Severity)) } if m.Time != 0 { - data[i] = 0x28 + dAtA[i] = 0x28 i++ - i = encodeVarintLog(data, i, uint64(m.Time)) + i = encodeVarintLog(dAtA, i, uint64(m.Time)) } if m.PID != 0 { - data[i] = 0x30 + dAtA[i] = 0x30 i++ - i = encodeVarintLog(data, i, uint64(m.PID)) + i = encodeVarintLog(dAtA, i, uint64(m.PID)) } return i, nil } -func (m *FileInfo) Marshal() (data []byte, err error) { +func (m *FileInfo) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *FileInfo) MarshalTo(data []byte) (int, error) { +func (m *FileInfo) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Name) > 0 { - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintLog(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) + i = encodeVarintLog(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } if m.SizeBytes != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintLog(data, i, uint64(m.SizeBytes)) + i = encodeVarintLog(dAtA, i, uint64(m.SizeBytes)) } if m.ModTimeNanos != 0 { - data[i] = 0x18 + dAtA[i] = 0x18 i++ - i = encodeVarintLog(data, i, uint64(m.ModTimeNanos)) + i = encodeVarintLog(dAtA, i, uint64(m.ModTimeNanos)) } - data[i] = 0x22 + dAtA[i] = 0x22 i++ - i = encodeVarintLog(data, i, uint64(m.Details.Size())) - n1, err := m.Details.MarshalTo(data[i:]) + i = encodeVarintLog(dAtA, i, uint64(m.Details.Size())) + n1, err := m.Details.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -260,31 +260,31 @@ func (m *FileInfo) MarshalTo(data []byte) (int, error) { return i, nil } -func encodeFixed64Log(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64Log(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Log(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32Log(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintLog(data []byte, offset int, v uint64) int { +func encodeVarintLog(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *Entry) Size() (n int) { @@ -371,8 +371,8 @@ func sovLog(x uint64) (n int) { func sozLog(x uint64) (n int) { return sovLog(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *Entry) Unmarshal(data []byte) error { - l := len(data) +func (m *Entry) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -384,7 +384,7 @@ func (m *Entry) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -412,7 +412,7 @@ func (m *Entry) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Severity |= (Severity(b) & 0x7F) << shift if b < 0x80 { @@ -431,7 +431,7 @@ func (m *Entry) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Time |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -450,7 +450,7 @@ func (m *Entry) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -465,7 +465,7 @@ func (m *Entry) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.File = string(data[iNdEx:postIndex]) + m.File = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { @@ -479,7 +479,7 @@ func (m *Entry) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Line |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -498,7 +498,7 @@ func (m *Entry) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -513,7 +513,7 @@ func (m *Entry) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Message = string(data[iNdEx:postIndex]) + m.Message = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 0 { @@ -527,7 +527,7 @@ func (m *Entry) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Goroutine |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -536,7 +536,7 @@ func (m *Entry) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipLog(data[iNdEx:]) + skippy, err := skipLog(dAtA[iNdEx:]) if err != nil { return err } @@ -555,8 +555,8 @@ func (m *Entry) Unmarshal(data []byte) error { } return nil } -func (m *FileDetails) Unmarshal(data []byte) error { - l := len(data) +func (m *FileDetails) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -568,7 +568,7 @@ func (m *FileDetails) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -596,7 +596,7 @@ func (m *FileDetails) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -611,7 +611,7 @@ func (m *FileDetails) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Program = string(data[iNdEx:postIndex]) + m.Program = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -625,7 +625,7 @@ func (m *FileDetails) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -640,7 +640,7 @@ func (m *FileDetails) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Host = string(data[iNdEx:postIndex]) + m.Host = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -654,7 +654,7 @@ func (m *FileDetails) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -669,7 +669,7 @@ func (m *FileDetails) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.UserName = string(data[iNdEx:postIndex]) + m.UserName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { @@ -683,7 +683,7 @@ func (m *FileDetails) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Severity |= (Severity(b) & 0x7F) << shift if b < 0x80 { @@ -702,7 +702,7 @@ func (m *FileDetails) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.Time |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -721,7 +721,7 @@ func (m *FileDetails) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.PID |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -730,7 +730,7 @@ func (m *FileDetails) Unmarshal(data []byte) error { } default: iNdEx = preIndex - skippy, err := skipLog(data[iNdEx:]) + skippy, err := skipLog(dAtA[iNdEx:]) if err != nil { return err } @@ -749,8 +749,8 @@ func (m *FileDetails) Unmarshal(data []byte) error { } return nil } -func (m *FileInfo) Unmarshal(data []byte) error { - l := len(data) +func (m *FileInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -762,7 +762,7 @@ func (m *FileInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -790,7 +790,7 @@ func (m *FileInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -805,7 +805,7 @@ func (m *FileInfo) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(data[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -819,7 +819,7 @@ func (m *FileInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.SizeBytes |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -838,7 +838,7 @@ func (m *FileInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.ModTimeNanos |= (int64(b) & 0x7F) << shift if b < 0x80 { @@ -857,7 +857,7 @@ func (m *FileInfo) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -871,13 +871,13 @@ func (m *FileInfo) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Details.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipLog(data[iNdEx:]) + skippy, err := skipLog(dAtA[iNdEx:]) if err != nil { return err } @@ -896,8 +896,8 @@ func (m *FileInfo) Unmarshal(data []byte) error { } return nil } -func skipLog(data []byte) (n int, err error) { - l := len(data) +func skipLog(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -908,7 +908,7 @@ func skipLog(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -926,7 +926,7 @@ func skipLog(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -943,7 +943,7 @@ func skipLog(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -966,7 +966,7 @@ func skipLog(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -977,7 +977,7 @@ func skipLog(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipLog(data[start:]) + next, err := skipLog(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/util/tracing/span_context_carrier.pb.go b/pkg/util/tracing/span_context_carrier.pb.go index c229ea49e632..dd095029689b 100644 --- a/pkg/util/tracing/span_context_carrier.pb.go +++ b/pkg/util/tracing/span_context_carrier.pb.go @@ -52,38 +52,38 @@ func (*SpanContextCarrier) Descriptor() ([]byte, []int) { func init() { proto.RegisterType((*SpanContextCarrier)(nil), "cockroach.util.tracing.SpanContextCarrier") } -func (m *SpanContextCarrier) Marshal() (data []byte, err error) { +func (m *SpanContextCarrier) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *SpanContextCarrier) MarshalTo(data []byte) (int, error) { +func (m *SpanContextCarrier) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.TraceID != 0 { - data[i] = 0x8 + dAtA[i] = 0x8 i++ - i = encodeVarintSpanContextCarrier(data, i, uint64(m.TraceID)) + i = encodeVarintSpanContextCarrier(dAtA, i, uint64(m.TraceID)) } if m.SpanID != 0 { - data[i] = 0x10 + dAtA[i] = 0x10 i++ - i = encodeVarintSpanContextCarrier(data, i, uint64(m.SpanID)) + i = encodeVarintSpanContextCarrier(dAtA, i, uint64(m.SpanID)) } if m.Sampled { - data[i] = 0x18 + dAtA[i] = 0x18 i++ if m.Sampled { - data[i] = 1 + dAtA[i] = 1 } else { - data[i] = 0 + dAtA[i] = 0 } i++ } @@ -94,49 +94,49 @@ func (m *SpanContextCarrier) MarshalTo(data []byte) (int, error) { } github_com_gogo_protobuf_sortkeys.Strings(keysForBaggage) for _, k := range keysForBaggage { - data[i] = 0x22 + dAtA[i] = 0x22 i++ v := m.Baggage[string(k)] mapSize := 1 + len(k) + sovSpanContextCarrier(uint64(len(k))) + 1 + len(v) + sovSpanContextCarrier(uint64(len(v))) - i = encodeVarintSpanContextCarrier(data, i, uint64(mapSize)) - data[i] = 0xa + i = encodeVarintSpanContextCarrier(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa i++ - i = encodeVarintSpanContextCarrier(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x12 + i = encodeVarintSpanContextCarrier(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x12 i++ - i = encodeVarintSpanContextCarrier(data, i, uint64(len(v))) - i += copy(data[i:], v) + i = encodeVarintSpanContextCarrier(dAtA, i, uint64(len(v))) + i += copy(dAtA[i:], v) } } return i, nil } -func encodeFixed64SpanContextCarrier(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64SpanContextCarrier(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32SpanContextCarrier(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32SpanContextCarrier(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintSpanContextCarrier(data []byte, offset int, v uint64) int { +func encodeVarintSpanContextCarrier(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *SpanContextCarrier) Size() (n int) { @@ -175,8 +175,8 @@ func sovSpanContextCarrier(x uint64) (n int) { func sozSpanContextCarrier(x uint64) (n int) { return sovSpanContextCarrier(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *SpanContextCarrier) Unmarshal(data []byte) error { - l := len(data) +func (m *SpanContextCarrier) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -188,7 +188,7 @@ func (m *SpanContextCarrier) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -216,7 +216,7 @@ func (m *SpanContextCarrier) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.TraceID |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -235,7 +235,7 @@ func (m *SpanContextCarrier) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ m.SpanID |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -254,7 +254,7 @@ func (m *SpanContextCarrier) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ v |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -274,7 +274,7 @@ func (m *SpanContextCarrier) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -296,7 +296,7 @@ func (m *SpanContextCarrier) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ keykey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -311,7 +311,7 @@ func (m *SpanContextCarrier) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -326,7 +326,7 @@ func (m *SpanContextCarrier) Unmarshal(data []byte) error { if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } - mapkey := string(data[iNdEx:postStringIndexmapkey]) + mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey if m.Baggage == nil { m.Baggage = make(map[string]string) @@ -340,7 +340,7 @@ func (m *SpanContextCarrier) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ valuekey |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -355,7 +355,7 @@ func (m *SpanContextCarrier) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLenmapvalue |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -370,7 +370,7 @@ func (m *SpanContextCarrier) Unmarshal(data []byte) error { if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } - mapvalue := string(data[iNdEx:postStringIndexmapvalue]) + mapvalue := string(dAtA[iNdEx:postStringIndexmapvalue]) iNdEx = postStringIndexmapvalue m.Baggage[mapkey] = mapvalue } else { @@ -380,7 +380,7 @@ func (m *SpanContextCarrier) Unmarshal(data []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipSpanContextCarrier(data[iNdEx:]) + skippy, err := skipSpanContextCarrier(dAtA[iNdEx:]) if err != nil { return err } @@ -399,8 +399,8 @@ func (m *SpanContextCarrier) Unmarshal(data []byte) error { } return nil } -func skipSpanContextCarrier(data []byte) (n int, err error) { - l := len(data) +func skipSpanContextCarrier(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -411,7 +411,7 @@ func skipSpanContextCarrier(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -429,7 +429,7 @@ func skipSpanContextCarrier(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -446,7 +446,7 @@ func skipSpanContextCarrier(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -469,7 +469,7 @@ func skipSpanContextCarrier(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -480,7 +480,7 @@ func skipSpanContextCarrier(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipSpanContextCarrier(data[start:]) + next, err := skipSpanContextCarrier(dAtA[start:]) if err != nil { return 0, err } diff --git a/pkg/util/unresolved_addr.pb.go b/pkg/util/unresolved_addr.pb.go index 906415b70adb..145832b82586 100644 --- a/pkg/util/unresolved_addr.pb.go +++ b/pkg/util/unresolved_addr.pb.go @@ -43,57 +43,57 @@ func (*UnresolvedAddr) Descriptor() ([]byte, []int) { return fileDescriptorUnres func init() { proto.RegisterType((*UnresolvedAddr)(nil), "cockroach.util.UnresolvedAddr") } -func (m *UnresolvedAddr) Marshal() (data []byte, err error) { +func (m *UnresolvedAddr) Marshal() (dAtA []byte, err error) { size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return data[:n], nil + return dAtA[:n], nil } -func (m *UnresolvedAddr) MarshalTo(data []byte) (int, error) { +func (m *UnresolvedAddr) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - data[i] = 0xa + dAtA[i] = 0xa i++ - i = encodeVarintUnresolvedAddr(data, i, uint64(len(m.NetworkField))) - i += copy(data[i:], m.NetworkField) - data[i] = 0x12 + i = encodeVarintUnresolvedAddr(dAtA, i, uint64(len(m.NetworkField))) + i += copy(dAtA[i:], m.NetworkField) + dAtA[i] = 0x12 i++ - i = encodeVarintUnresolvedAddr(data, i, uint64(len(m.AddressField))) - i += copy(data[i:], m.AddressField) + i = encodeVarintUnresolvedAddr(dAtA, i, uint64(len(m.AddressField))) + i += copy(dAtA[i:], m.AddressField) return i, nil } -func encodeFixed64UnresolvedAddr(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) +func encodeFixed64UnresolvedAddr(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32UnresolvedAddr(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) +func encodeFixed32UnresolvedAddr(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintUnresolvedAddr(data []byte, offset int, v uint64) int { +func encodeVarintUnresolvedAddr(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) + dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } - data[offset] = uint8(v) + dAtA[offset] = uint8(v) return offset + 1 } func (m *UnresolvedAddr) Size() (n int) { @@ -119,8 +119,8 @@ func sovUnresolvedAddr(x uint64) (n int) { func sozUnresolvedAddr(x uint64) (n int) { return sovUnresolvedAddr(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *UnresolvedAddr) Unmarshal(data []byte) error { - l := len(data) +func (m *UnresolvedAddr) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -132,7 +132,7 @@ func (m *UnresolvedAddr) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -160,7 +160,7 @@ func (m *UnresolvedAddr) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -175,7 +175,7 @@ func (m *UnresolvedAddr) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NetworkField = string(data[iNdEx:postIndex]) + m.NetworkField = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -189,7 +189,7 @@ func (m *UnresolvedAddr) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -204,11 +204,11 @@ func (m *UnresolvedAddr) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AddressField = string(data[iNdEx:postIndex]) + m.AddressField = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipUnresolvedAddr(data[iNdEx:]) + skippy, err := skipUnresolvedAddr(dAtA[iNdEx:]) if err != nil { return err } @@ -227,8 +227,8 @@ func (m *UnresolvedAddr) Unmarshal(data []byte) error { } return nil } -func skipUnresolvedAddr(data []byte) (n int, err error) { - l := len(data) +func skipUnresolvedAddr(dAtA []byte) (n int, err error) { + l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 @@ -239,7 +239,7 @@ func skipUnresolvedAddr(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -257,7 +257,7 @@ func skipUnresolvedAddr(data []byte) (n int, err error) { return 0, io.ErrUnexpectedEOF } iNdEx++ - if data[iNdEx-1] < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } @@ -274,7 +274,7 @@ func skipUnresolvedAddr(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { @@ -297,7 +297,7 @@ func skipUnresolvedAddr(data []byte) (n int, err error) { if iNdEx >= l { return 0, io.ErrUnexpectedEOF } - b := data[iNdEx] + b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { @@ -308,7 +308,7 @@ func skipUnresolvedAddr(data []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipUnresolvedAddr(data[start:]) + next, err := skipUnresolvedAddr(dAtA[start:]) if err != nil { return 0, err }