From 647ba061199fa561b340318f7652fbffa86c6e5c Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 1 Dec 2026 18:27:53 -0800 Subject: [PATCH 01/12] master: cluster format level (FORMAT-GATE): reads_level, finalize, level-0 v1.0 semantics, retire Hosts report the format they read (heartbeat reads_level). The cluster's format level is the master's attestation file's form: v1.0's bare map is level 0, the envelope (format 2, format_level 1) level 1. At level 0 the master keeps v1.0's semantics, so a v1.0.x master started on the store stays safe: renewals clamp to the persisted horizon and an extender keeps it current; forced moves and re-grants wait for the later of horizon and deadline plus skew; records are envelope version 1. sw-block cluster finalize-format raises the level in one durable step (the envelope write), refused while a registered host has not reported that it reads level 1; then the publisher switches under both its locks. At any level no new work goes to a host that reads below it; its heartbeat is refused binary_too_old; every assignment carries the level. sw-block cluster retire-host removes a host that holds no volume. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/cmd/sw-block/cluster_format.go | 114 + .../cmd/sw-block/cluster_format_test.go | 94 + seaweed-block/cmd/sw-block/main.go | 3 + seaweed-block/core/authority/authority.go | 13 + .../core/authority/authority_store.go | 11 +- seaweed-block/core/authority/workspace.go | 8 +- .../authority/workspace_delete_guard_test.go | 7 +- .../authority/workspace_format_level_test.go | 167 ++ .../core/authority/workspace_lease_v100.go | 195 ++ .../core/authority/workspace_lease_view.go | 34 +- seaweed-block/core/host/master/authz.go | 2 + seaweed-block/core/host/master/authz_test.go | 8 +- seaweed-block/core/host/master/format_gate.go | 207 ++ .../core/host/master/format_gate_test.go | 282 ++ .../core/host/master/golden_v100_test.go | 121 +- seaweed-block/core/host/master/host.go | 14 +- .../core/host/master/journal_isolation.go | 44 +- seaweed-block/core/host/master/services.go | 8 + .../core/host/master/store_attestation.go | 89 +- .../core/host/master/workspace_binding.go | 5 + .../workspace_lease_refusal_kind_test.go | 9 +- .../core/host/master/workspace_service.go | 2 + .../master/workspace_unclaimed_grant_test.go | 9 +- seaweed-block/core/host/volume/host.go | 6 + seaweed-block/core/rpc/control/control.pb.go | 2427 ++++++++++------- .../core/rpc/control/control_grpc.pb.go | 98 + .../core/rpc/lifecycleclient/reason.go | 10 + seaweed-block/core/rpc/proto/control.proto | 43 + 28 files changed, 2873 insertions(+), 1157 deletions(-) create mode 100644 seaweed-block/cmd/sw-block/cluster_format.go create mode 100644 seaweed-block/cmd/sw-block/cluster_format_test.go create mode 100644 seaweed-block/core/authority/workspace_format_level_test.go create mode 100644 seaweed-block/core/authority/workspace_lease_v100.go create mode 100644 seaweed-block/core/host/master/format_gate.go create mode 100644 seaweed-block/core/host/master/format_gate_test.go diff --git a/seaweed-block/cmd/sw-block/cluster_format.go b/seaweed-block/cmd/sw-block/cluster_format.go new file mode 100644 index 0000000000..33cdaa8fb4 --- /dev/null +++ b/seaweed-block/cmd/sw-block/cluster_format.go @@ -0,0 +1,114 @@ +package main + +import ( + "context" + "flag" + "fmt" + "io" + "time" + + "github.com/seaweedfs/seaweed-block/core/ops" + control "github.com/seaweedfs/seaweed-block/core/rpc/control" + "github.com/seaweedfs/seaweed-block/core/rpc/link" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +// clusterLifecycleDial opens the master's lifecycle service; a test +// replaces it. +var clusterLifecycleDial = func(addr string) (control.LifecycleServiceClient, func() error, error) { + conn, err := link.DialMasterFromEnv(addr) + if err != nil { + return nil, nil, err + } + return control.NewLifecycleServiceClient(conn), conn.Close, nil +} + +// runCluster is "sw-block cluster finalize-format|retire-host". +func runCluster(args []string, stdout, stderr io.Writer) int { + if len(args) == 0 { + fmt.Fprintln(stderr, "sw-block: expected subcommand cluster finalize-format|retire-host") + return ops.VolumeStatusExitInvalid + } + switch args[0] { + case "finalize-format": + return runClusterFinalizeFormat(args[1:], stdout, stderr) + case "retire-host": + return runClusterRetireHost(args[1:], stdout, stderr) + } + fmt.Fprintf(stderr, "sw-block: unknown subcommand cluster %q\n", args[0]) + return ops.VolumeStatusExitInvalid +} + +// runClusterFinalizeFormat raises the cluster's format level to 1. Going +// back to v1.0.x works only before it: afterwards a v1.0.x master or holder +// refuses the store (an expected refusal, not damage). The master refuses +// it while any registered host does not read level 1, naming each one. +func runClusterFinalizeFormat(args []string, stdout, stderr io.Writer) int { + fs := flag.NewFlagSet("sw-block cluster finalize-format", flag.ContinueOnError) + fs.SetOutput(stderr) + master := fs.String("master", "", "blockmaster gRPC address (required)") + timeout := fs.Duration("timeout", 30*time.Second, "how long to wait for the master's answer") + if err := fs.Parse(args); err != nil || fs.NArg() != 0 || *master == "" { + fmt.Fprintln(stderr, "usage: sw-block cluster finalize-format --master host:port [--timeout 30s]") + return ops.VolumeStatusExitInvalid + } + c, closeFn, err := clusterLifecycleDial(*master) + if err != nil { + fmt.Fprintln(stderr, "sw-block: cluster finalize-format:", err) + return ops.VolumeStatusExitUnhealthy + } + defer closeFn() + ctx, cancel := context.WithTimeout(context.Background(), *timeout) + defer cancel() + resp, err := c.FinalizeFormat(ctx, &control.FinalizeFormatRequest{Level: 1}, grpc.WaitForReady(false)) + if err != nil { + fmt.Fprintln(stderr, "sw-block: cluster finalize-format:", status.Convert(err).Message()) + return clusterExit(err) + } + if resp.GetAlready() { + fmt.Fprintf(stdout, "format level %d (already finalized; nothing written)\n", resp.GetFormatLevel()) + return ops.VolumeStatusExitOK + } + fmt.Fprintf(stdout, "format level %d finalized: v1.0.x binaries now refuse this cluster's stores\n", resp.GetFormatLevel()) + return ops.VolumeStatusExitOK +} + +// runClusterRetireHost removes a registered host from the node inventory. +// The master refuses it while the host holds a lease or an assignment. +func runClusterRetireHost(args []string, stdout, stderr io.Writer) int { + fs := flag.NewFlagSet("sw-block cluster retire-host", flag.ContinueOnError) + fs.SetOutput(stderr) + master := fs.String("master", "", "blockmaster gRPC address (required)") + server := fs.String("server", "", "the server id to retire (required)") + confirm := fs.String("confirm", "", "the same server id again (required)") + timeout := fs.Duration("timeout", 30*time.Second, "how long to wait for the master's answer") + if err := fs.Parse(args); err != nil || fs.NArg() != 0 || *master == "" || *server == "" || *confirm == "" { + fmt.Fprintln(stderr, "usage: sw-block cluster retire-host --master host:port --server ID --confirm ID [--timeout 30s]") + return ops.VolumeStatusExitInvalid + } + c, closeFn, err := clusterLifecycleDial(*master) + if err != nil { + fmt.Fprintln(stderr, "sw-block: cluster retire-host:", err) + return ops.VolumeStatusExitUnhealthy + } + defer closeFn() + ctx, cancel := context.WithTimeout(context.Background(), *timeout) + defer cancel() + if _, err := c.RetireHost(ctx, &control.RetireHostRequest{ServerId: *server, Confirm: *confirm}); err != nil { + fmt.Fprintln(stderr, "sw-block: cluster retire-host:", status.Convert(err).Message()) + return clusterExit(err) + } + fmt.Fprintf(stdout, "host %s retired\n", *server) + return ops.VolumeStatusExitOK +} + +// clusterExit maps a master error to the CLI's exit codes: a malformed +// request is 2 (as a usage error); a refusal or an unreachable master is 1. +func clusterExit(err error) int { + if status.Code(err) == codes.InvalidArgument { + return ops.VolumeStatusExitInvalid + } + return ops.VolumeStatusExitUnhealthy +} diff --git a/seaweed-block/cmd/sw-block/cluster_format_test.go b/seaweed-block/cmd/sw-block/cluster_format_test.go new file mode 100644 index 0000000000..18ad1504df --- /dev/null +++ b/seaweed-block/cmd/sw-block/cluster_format_test.go @@ -0,0 +1,94 @@ +package main + +import ( + "bytes" + "context" + "strings" + "testing" + + control "github.com/seaweedfs/seaweed-block/core/rpc/control" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +type fakeClusterMaster struct { + control.LifecycleServiceClient + finalize func(*control.FinalizeFormatRequest) (*control.FinalizeFormatResponse, error) + retire func(*control.RetireHostRequest) (*control.RetireHostResponse, error) +} + +func (f *fakeClusterMaster) FinalizeFormat(_ context.Context, r *control.FinalizeFormatRequest, _ ...grpc.CallOption) (*control.FinalizeFormatResponse, error) { + return f.finalize(r) +} + +func (f *fakeClusterMaster) RetireHost(_ context.Context, r *control.RetireHostRequest, _ ...grpc.CallOption) (*control.RetireHostResponse, error) { + return f.retire(r) +} + +func withClusterMaster(t *testing.T, f *fakeClusterMaster) { + t.Helper() + saved := clusterLifecycleDial + t.Cleanup(func() { clusterLifecycleDial = saved }) + clusterLifecycleDial = func(string) (control.LifecycleServiceClient, func() error, error) { + return f, func() error { return nil }, nil + } +} + +// finalize-format asks level 1; a refusal names the old hosts and exits 1, +// a finalize and an already-finalized cluster exit 0, a malformed command 2. +func TestClusterFinalizeFormat(t *testing.T) { + refuse := true + f := &fakeClusterMaster{finalize: func(r *control.FinalizeFormatRequest) (*control.FinalizeFormatResponse, error) { + if r.GetLevel() != 1 { + t.Errorf("finalize asked level %d", r.GetLevel()) + } + if refuse { + return nil, status.Error(codes.FailedPrecondition, "format finalize refused: registered hosts do not read format level 1: node-b (no report)") + } + return &control.FinalizeFormatResponse{FormatLevel: 1}, nil + }} + withClusterMaster(t, f) + var out, errOut bytes.Buffer + if code := run([]string{"cluster", "finalize-format", "--master", "m:1"}, &out, &errOut); code != 1 || !strings.Contains(errOut.String(), "node-b (no report)") { + t.Fatalf("refused finalize: exit %d, stderr %q", code, errOut.String()) + } + refuse = false + out.Reset() + if code := run([]string{"cluster", "finalize-format", "--master", "m:1"}, &out, &errOut); code != 0 || !strings.Contains(out.String(), "format level 1 finalized") { + t.Fatalf("finalize: exit %d, stdout %q", code, out.String()) + } + f.finalize = func(*control.FinalizeFormatRequest) (*control.FinalizeFormatResponse, error) { + return &control.FinalizeFormatResponse{FormatLevel: 1, Already: true}, nil + } + out.Reset() + if code := run([]string{"cluster", "finalize-format", "--master", "m:1"}, &out, &errOut); code != 0 || !strings.Contains(out.String(), "already finalized") { + t.Fatalf("already finalized: exit %d, stdout %q", code, out.String()) + } + if code := run([]string{"cluster", "finalize-format"}, &out, &errOut); code != 2 { + t.Fatalf("finalize without --master: exit %d, want 2", code) + } +} + +// retire-host sends the server id and its confirm; a refusal exits 1. +func TestClusterRetireHost(t *testing.T) { + var got *control.RetireHostRequest + f := &fakeClusterMaster{retire: func(r *control.RetireHostRequest) (*control.RetireHostResponse, error) { + got = r + if r.GetServerId() == "busy" { + return nil, status.Error(codes.FailedPrecondition, `retire refused: host "busy" holds a lease or an assignment for volumes v1; move them first`) + } + return &control.RetireHostResponse{ServerId: r.GetServerId()}, nil + }} + withClusterMaster(t, f) + var out, errOut bytes.Buffer + if code := run([]string{"cluster", "retire-host", "--master", "m:1", "--server", "node-c", "--confirm", "node-c"}, &out, &errOut); code != 0 || got.GetConfirm() != "node-c" || !strings.Contains(out.String(), "host node-c retired") { + t.Fatalf("retire: exit %d, request %+v, stdout %q", code, got, out.String()) + } + if code := run([]string{"cluster", "retire-host", "--master", "m:1", "--server", "busy", "--confirm", "busy"}, &out, &errOut); code != 1 || !strings.Contains(errOut.String(), "holds a lease or an assignment for volumes v1") { + t.Fatalf("refused retire: exit %d, stderr %q", code, errOut.String()) + } + if code := run([]string{"cluster", "retire-host", "--master", "m:1", "--server", "node-c"}, &out, &errOut); code != 2 { + t.Fatalf("retire without --confirm: exit %d, want 2", code) + } +} diff --git a/seaweed-block/cmd/sw-block/main.go b/seaweed-block/cmd/sw-block/main.go index ac26704bce..0bcdf7af0d 100644 --- a/seaweed-block/cmd/sw-block/main.go +++ b/seaweed-block/cmd/sw-block/main.go @@ -102,6 +102,9 @@ func run(args []string, stdout, stderr io.Writer) int { if args[0] == "shell" { return runShell(args[1:], os.Stdin, stdout, stderr) } + if args[0] == "cluster" { + return runCluster(args[1:], stdout, stderr) + } if args[0] != "ops" { fmt.Fprintf(stderr, "sw-block: unknown command %q\n", args[0]) usage(stderr) diff --git a/seaweed-block/core/authority/authority.go b/seaweed-block/core/authority/authority.go index 79056bafe3..c1c20b06c8 100644 --- a/seaweed-block/core/authority/authority.go +++ b/seaweed-block/core/authority/authority.go @@ -182,6 +182,16 @@ type Publisher struct { leaseMu sync.Mutex leaseViews map[string]*leaseView + // formatLevel is the cluster's format level (workspace_lease_v100.go): + // 0 keeps v1.0's master semantics (a current lease horizon, version-1 + // records), 1 is v1.1's. Written under mu and leaseMu, read under + // either. + formatLevel uint32 + // Level 0's horizon extender (workspace_lease_v100.go). + leaseClosing bool // guarded by mu and leaseMu + extWG sync.WaitGroup // admitted extenders + extendFailures map[string]int // guarded by mu + // testAfterIssuePublish, when set by a test, runs under mu right after // an issued move's lease view is published. testAfterIssuePublish func(volume string) @@ -256,6 +266,8 @@ func NewPublisher(dir Directive, opts ...PublisherOption) *Publisher { workspaceNow: time.Now, workspaceTTL: 30 * time.Second, leaseViews: map[string]*leaseView{}, + formatLevel: 1, + extendFailures: map[string]int{}, } for _, opt := range opts { if opt != nil { @@ -702,6 +714,7 @@ func (p *Publisher) applyWithWorkspaceMove(ask AssignmentAsk, grant *workspaceGr if issuedWorkspace != nil { record.Workspace = cloneWorkspace(issuedWorkspace) } + record.EnvelopeVersion = p.envelopeVersionLocked() if err := p.store.Put(record); err != nil { // State mutation hasn't happened yet; nothing to // unwind. Just report the failure. diff --git a/seaweed-block/core/authority/authority_store.go b/seaweed-block/core/authority/authority_store.go index 42e31125c0..86856bce45 100644 --- a/seaweed-block/core/authority/authority_store.go +++ b/seaweed-block/core/authority/authority_store.go @@ -39,6 +39,11 @@ import ( // lease time gates serving and forced moves; it never erases the last authored // line. Only Publisher can mint its replacement. type DurableRecord struct { + // EnvelopeVersion is the envelope version the store writes the record + // in (0: storeEnvelopeVersion). Not part of the body or its checksum: a + // master at format level 0 writes version 1, the one a v1.0.x master + // reads. + EnvelopeVersion int `json:"-"` VolumeID string ReplicaID string Epoch uint64 @@ -150,8 +155,12 @@ func computeChecksum(r DurableRecord) string { // encodeEnvelope serializes a record + checksum into the on-disk // JSON envelope format. func encodeEnvelope(r DurableRecord) ([]byte, error) { + version := r.EnvelopeVersion + if version == 0 { + version = storeEnvelopeVersion + } env := storeEnvelope{ - Version: storeEnvelopeVersion, + Version: version, Body: r, Checksum: computeChecksum(r), } diff --git a/seaweed-block/core/authority/workspace.go b/seaweed-block/core/authority/workspace.go index 86ff2809d2..70e4af6dcf 100644 --- a/seaweed-block/core/authority/workspace.go +++ b/seaweed-block/core/authority/workspace.go @@ -336,7 +336,7 @@ func (p *Publisher) AckWorkspaceRevocation(ctx context.Context, volume string, a if !ok || line.info.ReplicaID != ack.ReplicaID || line.info.Epoch != ack.Epoch || ack.Holder == "" || s == nil || s.Lease == nil || !s.Lease.Revoking { return fmt.Errorf("workspace revoke ACK: stale or unsolicited") } - if p.deadlineValidity(p.leaseDeadlineLocked(volume), s.Lease.MaxClockSkewNS, p.workspaceNow()) == 0 { + if p.ackValidityLocked(volume, s.Lease) == 0 { return fmt.Errorf("workspace revoke ACK: lease expired; forced move required") } s.Ack = &ack @@ -405,6 +405,7 @@ func (p *Publisher) persistWorkspaceTimedLocked(volume string, s *WorkspaceState i := line.info record := DurableRecord{VolumeID: volume, ReplicaID: i.ReplicaID, Epoch: i.Epoch, EndpointVersion: i.EndpointVersion, DataAddr: i.DataAddr, CtrlAddr: i.CtrlAddr, WriteSeq: p.writeSeqByVolume[volume] + 1, Workspace: cloneWorkspace(s), Incarnation: i.Incarnation} + record.EnvelopeVersion = p.envelopeVersionLocked() start := time.Now() err = p.store.Put(record) write = time.Since(start) @@ -482,6 +483,11 @@ func (p *Publisher) forcedMoveBarrierLocked(volume string, lease *WorkspaceLease skew := p.workspaceSkew(lease) deadline := p.leaseDeadlineLocked(volume) lostUntil = deadline.Add(skew).UnixNano() + if p.formatLevel == 0 { + // Level 0 keeps v1.0's barrier: the later of the persisted horizon + // and the deadline, each plus skew. + return p.forcedMoveBarrierV100Locked(lease, deadline, skew, now) + } if now.Before(deadline.Add(skew)) { return lostUntil, now, fmt.Errorf("workspace forced move lease expiry plus clock-skew margin has not elapsed") } diff --git a/seaweed-block/core/authority/workspace_delete_guard_test.go b/seaweed-block/core/authority/workspace_delete_guard_test.go index d4179c59f4..321d3f1bdf 100644 --- a/seaweed-block/core/authority/workspace_delete_guard_test.go +++ b/seaweed-block/core/authority/workspace_delete_guard_test.go @@ -17,12 +17,17 @@ func TestDeletionReservationGuardSites(t *testing.T) { "applyWithWorkspaceMove": true, "MoveWorkspace": true, "RenewWorkspaceLease": true, "firstWorkspaceGrant": true, "regrantWorkspaceLease": true, + // Format level 0's horizon extender rechecks the reservation. + "extendWorkspaceLease": true, } boundSites := map[string]bool{ "publishIssuedLeaseLocked": true, "setLeaseDeadlineLocked": true, "RenewWorkspaceLease": true, "regrantWorkspaceLease": true, // Reply-only copies never increase published validity. - "WorkspaceLeaseReply": true, + "WorkspaceLeaseReply": true, "ackValidityLocked": true, + // Format level 0 (v1.0's semantics): the clamped grant and the + // horizon extender, which raises the persisted horizon only. + "renewV100Locked": true, "extendWorkspaceLease": true, // Copies the persisted lease into the leaf view under mu -> leaseMu. "deriveLeaseLocked": true, // Positive lease construction and publication, or a plain clone. diff --git a/seaweed-block/core/authority/workspace_format_level_test.go b/seaweed-block/core/authority/workspace_format_level_test.go new file mode 100644 index 0000000000..de33288848 --- /dev/null +++ b/seaweed-block/core/authority/workspace_format_level_test.go @@ -0,0 +1,167 @@ +package authority + +import ( + "bytes" + "context" + "os" + "path/filepath" + "testing" + "time" +) + +// level0Publisher is a publisher at format level 0 over store, joining its +// extenders on cleanup before the store closes. +func level0Publisher(t *testing.T, store AuthorityStore, ttl time.Duration, c *testClock) *Publisher { + t.Helper() + p := NewPublisher(nil, WithStore(store), WithWorkspaceLeaseConfig(ttl, c.now), WithWorkspaceMaxClockSkew(4*time.Second), WithFormatLevel(0)) + t.Cleanup(p.CloseWorkspaceExtenders) + return p +} + +// awaitHorizon waits (bounded) until v's persisted horizon is want: an +// admitted extender writes it in the background. +func awaitHorizon(t *testing.T, p *Publisher, v string, want time.Time) { + t.Helper() + for end := time.Now().Add(5 * time.Second); time.Now().Before(end); time.Sleep(5 * time.Millisecond) { + if st := p.WorkspaceState(v); st != nil && st.Lease != nil && st.Lease.ExpiresAtNS == want.UnixNano() { + return + } + } + st := p.WorkspaceState(v) + t.Fatalf("the horizon of %s stayed %d, want %d", v, st.Lease.ExpiresAtNS, want.UnixNano()) +} + +// recordVersion is the envelope version of v's record on disk. +func recordVersion(t *testing.T, dir, v string) string { + t.Helper() + b, err := os.ReadFile(filepath.Join(dir, v+".v3auth.json")) + if err != nil { + t.Fatal(err) + } + switch { + case bytes.HasPrefix(b, []byte(`{"v":1,`)): + return "1" + case bytes.HasPrefix(b, []byte(`{"v":2,`)): + return "2" + } + return string(b[:min(len(b), 12)]) +} + +// At format level 0 the master's records are v1.0's (envelope version 1); +// after the finalize they are version 2 (FormatGateMaster: the one durable +// step; a v1.0.x master reads version 1 only). +func TestRecordEnvelopeVersionFollowsTheFormatLevel(t *testing.T) { + disk, dir := newTempStore(t) + c := newTestClock() + p := level0Publisher(t, disk, 30*time.Second, c) + bindAndGrant(t, p, "v", "r") + if got := recordVersion(t, dir, "v"); got != "1" { + t.Fatalf("level 0 wrote record envelope version %s, want 1", got) + } + p.FinalizeFormatLevel() + if err := p.BeginWorkspaceRevocation(context.Background(), "v", "r", 1); err != nil { + t.Fatal(err) + } + if got := recordVersion(t, dir, "v"); got != "2" { + t.Fatalf("level 1 wrote record envelope version %s, want 2", got) + } +} + +// At format level 0 a renewal keeps the persisted horizon current (v1.0's +// extender writes trigger + 1.5 TTL once the horizon is less than 1.25 TTL +// ahead) and a grant never passes it; at level 1 a renewal writes nothing +// (FormatGateMaster level0_no_horizon: without it a v1.0.x master started +// on the store trusts a stale horizon). +func TestALevel0RenewalKeepsTheHorizonCurrent(t *testing.T) { + disk, _ := newTempStore(t) + c := newTestClock() + p := level0Publisher(t, disk, 30*time.Second, c) + bindAndGrant(t, p, "v", "r") // t=0: horizon 45 + if h := p.WorkspaceState("v").Lease.ExpiresAtNS; h != c.sec(45).UnixNano() { + t.Fatalf("first grant's horizon %d, want t=45", h) + } + c.at(10) // horizon 45 < 10 + 37.5: an extension to 10 + 45 = 55 + l, err := p.RenewWorkspaceLease(context.Background(), "v", "r", 1) + if err != nil || l.ExpiresAtNS != c.sec(40).UnixNano() { + t.Fatalf("renewal at t=10: %+v %v, want the grant t=40", l, err) + } + awaitHorizon(t, p, "v", c.sec(55)) + + // Level 1: the same renewal writes nothing. + disk1, _ := newTempStore(t) + c1 := newTestClock() + p1 := newLeasePublisher(t, disk1, 30*time.Second, c1) + bindAndGrant(t, p1, "v", "r") + c1.at(10) + if _, err := p1.RenewWorkspaceLease(context.Background(), "v", "r", 1); err != nil { + t.Fatal(err) + } + p1.CloseWorkspaceExtenders() + if h := p1.WorkspaceState("v").Lease.ExpiresAtNS; h != c1.sec(45).UnixNano() { + t.Fatalf("level 1: a renewal changed the persisted lease to t=%v", time.Unix(0, h).Sub(c1.sec(0))) + } +} + +// At format level 0 a grant is clamped to the persisted horizon. +func TestALevel0GrantIsClampedToTheHorizon(t *testing.T) { + disk, _ := newTempStore(t) + c := newTestClock() + p := level0Publisher(t, disk, 30*time.Second, c) + p.CloseWorkspaceExtenders() // no extension: the horizon stays t=45 + bindAndGrant(t, p, "v", "r") + c.at(20) + l, err := p.RenewWorkspaceLease(context.Background(), "v", "r", 1) + if err != nil || l.ExpiresAtNS != c.sec(45).UnixNano() { + t.Fatalf("renewal at t=20 with horizon t=45: %+v %v, want the grant clamped to t=45", l, err) + } +} + +// At format level 0 the forced-move barrier is v1.0's (the later of the +// horizon and the deadline, plus skew); after the finalize it is the +// deadline plus skew, and the deadline covers the last level-0 grant +// (condition 3: a forced move right after the finalize still waits for it). +func TestTheForcedBarrierFollowsTheFormatLevel(t *testing.T) { + disk, _ := newTempStore(t) + c := newTestClock() + p := level0Publisher(t, disk, 30*time.Second, c) + p.CloseWorkspaceExtenders() // horizon stays t=45 + bindAndGrant(t, p, "v", "r") // deadline t=30, horizon t=45, skew 4 + c.at(40) + if err := p.WorkspaceForcedMoveAdmitted(context.Background(), "v", "f", "r", 1); err == nil { + t.Fatal("level 0: a forced move admitted at t=40, before the horizon t=45 plus skew") + } + c.at(48.9) + if err := p.WorkspaceForcedMoveAdmitted(context.Background(), "v", "f", "r", 1); err == nil { + t.Fatal("level 0: a forced move admitted at t=48.9, before t=49") + } + p.FinalizeFormatLevel() + if err := p.WorkspaceForcedMoveAdmitted(context.Background(), "v", "f", "r", 1); err != nil { + t.Fatalf("level 1 at t=48.9, past the deadline t=30 plus skew: %v", err) + } + + // The last level-0 grant at t=20 (deadline t=50): right after the + // finalize a forced move still waits for t=54. The first renewal at + // t=20 is clamped to the horizon t=45 and admits an extension to t=65; + // once it is written, the renewal at t=20 grants t=50. + disk2, _ := newTempStore(t) + c2 := newTestClock() + p2 := level0Publisher(t, disk2, 30*time.Second, c2) + bindAndGrant(t, p2, "v", "r") + c2.at(20) + if l, err := p2.RenewWorkspaceLease(context.Background(), "v", "r", 1); err != nil || l.ExpiresAtNS != c2.sec(45).UnixNano() { + t.Fatalf("renewal at t=20 under horizon t=45: %+v %v, want t=45", l, err) + } + awaitHorizon(t, p2, "v", c2.sec(65)) + if l, err := p2.RenewWorkspaceLease(context.Background(), "v", "r", 1); err != nil || l.ExpiresAtNS != c2.sec(50).UnixNano() { + t.Fatalf("renewal at t=20 under horizon t=65: %+v %v, want t=50", l, err) + } + p2.FinalizeFormatLevel() + c2.at(53.9) + if err := p2.WorkspaceForcedMoveAdmitted(context.Background(), "v", "f", "r", 1); err == nil { + t.Fatal("after the finalize a forced move was admitted before the last level-0 grant (t=50) plus skew") + } + c2.at(54) + if err := p2.WorkspaceForcedMoveAdmitted(context.Background(), "v", "f", "r", 1); err != nil { + t.Fatalf("after the finalize at t=54 (level 0 would wait for the horizon t=65 plus skew): %v", err) + } +} diff --git a/seaweed-block/core/authority/workspace_lease_v100.go b/seaweed-block/core/authority/workspace_lease_v100.go new file mode 100644 index 0000000000..7db6b7821b --- /dev/null +++ b/seaweed-block/core/authority/workspace_lease_v100.go @@ -0,0 +1,195 @@ +package authority + +import ( + "fmt" + "log" + "time" +) + +// The cluster format level (FORMAT-GATE). Until the operator finalizes the +// v1.1 format the master keeps v1.0's semantics, so a v1.0.x master started +// on its store is safe: renewals keep the persisted lease horizon current +// (a background extender writes it ahead, and a grant is clamped to it), +// the forced-move barrier is the later of that horizon and the grant +// deadline plus skew, and records are written in envelope version 1. The +// finalize raises the level to 1, v1.1's semantics, in one step. + +// WithFormatLevel sets the publisher's starting format level (0 or 1; the +// default is 1). A master sets it from its store before it serves. +func WithFormatLevel(level uint32) PublisherOption { + return func(p *Publisher) { + if level <= 1 { + p.formatLevel = level + } + } +} + +// SetFormatLevelBeforeServing sets the format level a master read from its +// store. It is called before anything is served (no renewal, write or +// move has run); afterwards only FinalizeFormatLevel changes the level. +func (p *Publisher) SetFormatLevelBeforeServing(level uint32) { + if level > 1 { + return + } + p.mu.Lock() + defer p.mu.Unlock() + p.leaseMu.Lock() + defer p.leaseMu.Unlock() + p.formatLevel = level +} + +// FormatLevel is the publisher's format level. +func (p *Publisher) FormatLevel() uint32 { + p.leaseMu.Lock() + defer p.leaseMu.Unlock() + return p.formatLevel +} + +// FinalizeFormatLevel switches the publisher to level 1. The caller has +// already made the level durable. It flips under mu and leaseMu, so forced +// moves (mu) and renewals (leaseMu, which read the level, grant and raise +// the deadline in one section) see one level. Every lease's deadline was +// raised by every grant at level 0 as well, so the level-1 barrier +// (deadline plus skew) still covers every grant made before the switch. An +// extender already admitted finds level 1 and writes nothing. +func (p *Publisher) FinalizeFormatLevel() { + p.mu.Lock() + defer p.mu.Unlock() + p.leaseMu.Lock() + defer p.leaseMu.Unlock() + p.formatLevel = 1 +} + +// envelopeVersionLocked is the record envelope version the level writes: +// v1.0's (1) at level 0. Caller holds mu. +func (p *Publisher) envelopeVersionLocked() int { + if p.formatLevel == 0 { + return storeEnvelopeVersionV100 + } + return storeEnvelopeVersion +} + +// ackValidityLocked is the host validity a revocation ACK is judged by: at +// level 0 v1.0's (the granted deadline, never above the persisted horizon), +// at level 1 the deadline's. Caller holds mu. +func (p *Publisher) ackValidityLocked(volume string, lease *WorkspaceLease) time.Duration { + deadline := p.leaseDeadlineLocked(volume) + if p.formatLevel == 0 { + l := *lease + l.ExpiresAtNS = min(l.ExpiresAtNS, deadline.UnixNano()) + return p.WorkspaceLeaseValidity(l) + } + return p.deadlineValidity(deadline, lease.MaxClockSkewNS, p.workspaceNow()) +} + +// forcedMoveBarrierV100Locked is v1.0's forced-move barrier: the later of +// the persisted horizon and the grant (or restart) deadline, each plus +// skew. The audit bound is in wall time; the admission keeps both +// predicates, the deadline's monotonic reading included. Caller holds mu. +func (p *Publisher) forcedMoveBarrierV100Locked(lease *WorkspaceLease, deadline time.Time, skew time.Duration, now time.Time) (int64, time.Time, error) { + lostUntil := time.Unix(0, lease.ExpiresAtNS).Add(skew).UnixNano() + if d := deadline.Add(skew).UnixNano(); d > lostUntil { + lostUntil = d + } + if now.Before(time.Unix(0, lease.ExpiresAtNS).Add(skew)) || now.Before(deadline.Add(skew)) { + return lostUntil, now, fmt.Errorf("workspace forced move lease expiry plus clock-skew margin has not elapsed") + } + return lostUntil, now, nil +} + +// renewV100Locked is a level-0 renewal of a live lease, v1.0's: the grant +// is min(now+TTL, horizon), it raises the deadline, and once the horizon is +// less than 1.25 TTL ahead an extender is admitted to write it ahead. It +// releases leaseMu. Caller holds leaseMu and has checked the lease. +func (p *Publisher) renewV100Locked(volume, holder string, epoch uint64, lv *leaseView, now time.Time) (WorkspaceLease, error) { + grant := now.Add(p.workspaceTTL) + if h := time.Unix(0, lv.d.horizon); grant.After(h) { + grant = h + } + // A grant without positive host validity would make the host fence on an + // invalid reply; refuse with an error instead. + if p.workspaceLeaseValidityAt(WorkspaceLease{ExpiresAtNS: grant.UnixNano(), MaxClockSkewNS: lv.d.maxSkewNS}, now) == 0 { + horizon := lv.d.horizon + p.leaseMu.Unlock() + return WorkspaceLease{}, fmt.Errorf("workspace lease: durable horizon %s leaves no host validity", time.Unix(0, horizon).UTC().Format(time.RFC3339Nano)) + } + if grant.After(lv.deadline) { + lv.deadline = grant + } + if lv.d.horizon < now.Add(p.workspaceTTL+p.workspaceTTL/4).UnixNano() && !lv.extending && !p.leaseClosing { + lv.extending = true + p.extWG.Add(1) // under leaseMu with !closing: no Add can follow CloseWorkspaceExtenders + go p.extendWorkspaceLease(volume, holder, epoch, now) + } + l := WorkspaceLease{ReplicaID: holder, Epoch: epoch, ExpiresAtNS: grant.UnixNano(), MaxClockSkewNS: lv.d.maxSkewNS} + p.leaseMu.Unlock() + return l, nil +} + +// extendWorkspaceLease is an ordinary writer: under mu it rechecks the +// lease (and that the level is still 0) and writes horizon H = trigger + +// 1.5 TTL through persistWorkspaceLocked, so its write and its publication +// are one mu section. A write error latches uncertainty +// (INV-AUTH-UNCERTAIN-001); a failed recheck is a known no-write. +func (p *Publisher) extendWorkspaceLease(volume, holder string, epoch uint64, trigger time.Time) { + defer p.extWG.Done() + p.beforeWorkspaceGrantLock("extension") + var note string + defer func() { + if note != "" { + log.Print(note) + } + }() + p.mu.Lock() + defer p.mu.Unlock() + defer func() { + p.leaseMu.Lock() + if lv := p.leaseViews[volume]; lv != nil { + lv.extending = false + } + p.leaseMu.Unlock() + }() + if p.leaseClosing || p.formatLevel != 0 || p.deleteReserved[volume] { + return + } + _, line, ok := p.workspaceLineLocked(volume) + s := cloneWorkspace(p.workspace[volume]) + if !ok || line.info.ReplicaID != holder || line.info.Epoch != epoch || s == nil || s.Lease == nil || s.Lease.Revoking || + s.Lease.ReplicaID != holder || s.Lease.Epoch != epoch || (len(s.Moves) > 0 && !s.Moves[len(s.Moves)-1].Issued) || + p.workspaceUncertain[volume] || p.store == nil { + return + } + h := trigger.Add(p.workspaceTTL + p.workspaceTTL/2).UnixNano() + old := s.Lease.ExpiresAtNS + if h <= old { + return + } + s.Lease.ExpiresAtNS = h + write, _, err := p.persistWorkspaceTimedLocked(volume, s) + took := write.Round(time.Millisecond) + if err != nil { + if p.extendFailures[volume] == 0 { + note = fmt.Sprintf("workspace lease: extension of volume=%s failed after %s (horizon %s, %s remaining); the volume is now uncertain and its renewals are refused: %v", + volume, took, time.Unix(0, old).UTC().Format(time.RFC3339Nano), time.Until(time.Unix(0, old)).Round(time.Millisecond), err) + } + p.extendFailures[volume]++ + return + } + if n := p.extendFailures[volume]; n > 0 { + note = fmt.Sprintf("workspace lease: extension of volume=%s recovered after %d failures, took %s, horizon now %s", volume, n, took, time.Unix(0, h).UTC().Format(time.RFC3339Nano)) + delete(p.extendFailures, volume) + } +} + +// CloseWorkspaceExtenders stops admitting lease extensions and joins every +// admitted extender. Owners call it before closing the authority store: +// closing is set under mu and leaseMu, so an extender either finished its +// write before or sees closing and does not write. +func (p *Publisher) CloseWorkspaceExtenders() { + p.mu.Lock() + p.leaseMu.Lock() + p.leaseClosing = true + p.leaseMu.Unlock() + p.mu.Unlock() + p.extWG.Wait() +} diff --git a/seaweed-block/core/authority/workspace_lease_view.go b/seaweed-block/core/authority/workspace_lease_view.go index 197096a797..716dce95a9 100644 --- a/seaweed-block/core/authority/workspace_lease_view.go +++ b/seaweed-block/core/authority/workspace_lease_view.go @@ -37,8 +37,9 @@ type leaseDerived struct { // restart+TTL; a barrier adds the skew bound to it) is owned by the view; d // is derived. type leaseView struct { - d leaseDerived - deadline time.Time + d leaseDerived + deadline time.Time + extending bool // format level 0: an extender of this volume's horizon is admitted } // deriveLeaseLocked computes the derived lease view from published state. @@ -125,7 +126,16 @@ func (p *Publisher) setLeaseDeadlineLocked(volume string, t time.Time, raise boo // deadline), never a persisted value. Without a deadline (a published lease // always has one) it reports 0, which gives the host no validity: fail // closed. -func (lv *leaseView) replyExpiryNS() int64 { +// +// At format level 0 it is v1.0's: the granted deadline, never above the +// persisted horizon (min(horizon, deadline)). +func (lv *leaseView) replyExpiryNS(level uint32) int64 { + if level == 0 { + if lv.deadline.IsZero() { + return lv.d.horizon + } + return min(lv.deadline.UnixNano(), lv.d.horizon) + } if lv.deadline.IsZero() { return 0 } @@ -152,7 +162,7 @@ func (p *Publisher) WorkspaceLeaseReply(volume string) (WorkspaceLease, bool) { return WorkspaceLease{}, false } l := lv.d.lease - l.ExpiresAtNS = lv.replyExpiryNS() + l.ExpiresAtNS = lv.replyExpiryNS(p.formatLevel) return l, true } @@ -262,11 +272,11 @@ func (p *Publisher) RenewWorkspaceLease(ctx context.Context, volume, holder stri } if lv.d.revoking { // tell the host to drain; never extend l := lv.d.lease - l.ExpiresAtNS = lv.replyExpiryNS() + l.ExpiresAtNS = lv.replyExpiryNS(p.formatLevel) unlock() return l, nil } - if !now.Before(lv.deadline) { + if !now.Before(lv.deadline) || (p.formatLevel == 0 && now.UnixNano() >= lv.d.horizon) { unlock() return p.regrantWorkspaceLease(ctx, volume, holder, epoch) } @@ -276,6 +286,9 @@ func (p *Publisher) RenewWorkspaceLease(ctx context.Context, volume, holder stri unlock() return WorkspaceLease{}, fmt.Errorf("workspace durable store unavailable or uncertain") } + if p.formatLevel == 0 { + return p.renewV100Locked(volume, holder, epoch, lv, now) // releases leaseMu + } // The grant stays a time.Time with its monotonic reading: the deadline // it raises is what admission compares (this process's own clock); only // the reply carries wall nanoseconds. @@ -284,8 +297,9 @@ func (p *Publisher) RenewWorkspaceLease(ctx context.Context, volume, holder stri // bound, leaseFact) would make the host fence on an invalid reply and lose // its remaining validity; refuse with an error instead. if p.deadlineValidity(grant, lv.d.maxSkewNS, now) == 0 { + skew := lv.d.maxSkewNS // the view is leaseMu's: read it before the unlock unlock() - return WorkspaceLease{}, fmt.Errorf("workspace lease: a grant of %s leaves no host validity under skew bound %s", p.workspaceTTL, time.Duration(lv.d.maxSkewNS)) + return WorkspaceLease{}, fmt.Errorf("workspace lease: a grant of %s leaves no host validity under skew bound %s", p.workspaceTTL, time.Duration(skew)) } if grant.After(lv.deadline) { lv.deadline = grant @@ -376,9 +390,15 @@ func (p *Publisher) regrantWorkspaceLease(ctx context.Context, volume, holder st // start; it never compares clocks. skew := p.workspaceSkew(s.Lease) retry := max(p.leaseDeadlineLocked(volume).Add(skew).Sub(now), 0) + if p.formatLevel == 0 { + retry = max(retry, time.Unix(0, s.Lease.ExpiresAtNS).Add(skew).Sub(now)) + } return WorkspaceLease{}, &LeaseBarrierError{Until: now.Add(retry), RetryAfter: retry, err: err} } lease, grant := p.newWorkspaceLease(holder, epoch, now) + if p.formatLevel == 0 { + lease.ExpiresAtNS = max(lease.ExpiresAtNS, s.Lease.ExpiresAtNS) // v1.0: the horizon never drops + } lease.MaxClockSkewNS = int64(p.workspaceSkew(s.Lease)) s.Lease = lease if err := p.persistWorkspaceLocked(volume, s); err != nil { diff --git a/seaweed-block/core/host/master/authz.go b/seaweed-block/core/host/master/authz.go index 99ca4b9eec..d30eb74e5d 100644 --- a/seaweed-block/core/host/master/authz.go +++ b/seaweed-block/core/host/master/authz.go @@ -19,6 +19,8 @@ var masterRules = map[string]auth.Rule{ control.LifecycleService_GetVolume_FullMethodName: {Min: auth.RoleViewer}, control.LifecycleService_ReserveVolumeDeletion_FullMethodName: {Min: auth.RoleAdmin, Strict: true}, control.LifecycleService_CheckVolumeNoLiveLease_FullMethodName: {Min: auth.RoleViewer}, + control.LifecycleService_FinalizeFormat_FullMethodName: {Min: auth.RoleAdmin, Strict: true}, + control.LifecycleService_RetireHost_FullMethodName: {Min: auth.RoleAdmin, Strict: true}, control.ObservationService_ReportHeartbeat_FullMethodName: {Node: true}, control.ObservationService_ReportClusterEvent_FullMethodName: {Min: auth.RoleOperator}, diff --git a/seaweed-block/core/host/master/authz_test.go b/seaweed-block/core/host/master/authz_test.go index 31939c8312..2b2a76563a 100644 --- a/seaweed-block/core/host/master/authz_test.go +++ b/seaweed-block/core/host/master/authz_test.go @@ -42,8 +42,8 @@ func TestMasterAuthorizationTableCoversEveryMethod(t *testing.T) { } // SubscribeProbeRounds and AnswerProbe (the promotion probe round) are // node-only, each for the caller's own server id. - if len(registered) != 29 { - t.Fatalf("%d registered methods; the table was written for 29: review the new ones", len(registered)) + if len(registered) != 31 { + t.Fatalf("%d registered methods; the table was written for 31 (FinalizeFormat and RetireHost added, admin and strict): review the new ones", len(registered)) } } @@ -77,7 +77,7 @@ func TestMasterOperatorMethodsAreStrict(t *testing.T) { t.Errorf("%s is named in notStrict but is not a non-strict operator method: drop the entry", m) } } - if strict != 11 { - t.Errorf("%d strict methods; the phase 0 set is 11 (update this count with the change that adds one)", strict) + if strict != 13 { + t.Errorf("%d strict methods; the phase 0 set is 11, plus FinalizeFormat and RetireHost: 13 (update this count with the change that adds one)", strict) } } diff --git a/seaweed-block/core/host/master/format_gate.go b/seaweed-block/core/host/master/format_gate.go new file mode 100644 index 0000000000..a9f30741f2 --- /dev/null +++ b/seaweed-block/core/host/master/format_gate.go @@ -0,0 +1,207 @@ +package master + +import ( + "context" + "errors" + "fmt" + "sort" + "strings" + "sync" + "sync/atomic" + + control "github.com/seaweedfs/seaweed-block/core/rpc/control" + "github.com/seaweedfs/seaweed-block/core/rpc/lifecycleclient" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +// readsLevels holds each server's reported format read level (its latest +// heartbeat's reads_level), in memory only. A registered server with no +// report since this master started reads level 0: unknown counts as old, so +// a silent host never lets the format be finalized past it. +type readsLevels struct { + mu sync.Mutex + level map[string]uint32 +} + +func newReadsLevels() *readsLevels { return &readsLevels{level: map[string]uint32{}} } + +func (r *readsLevels) note(server string, level uint32) { + r.mu.Lock() + defer r.mu.Unlock() + r.level[server] = level +} + +// of is server's reported read level and whether it has reported. +func (r *readsLevels) of(server string) (uint32, bool) { + r.mu.Lock() + defer r.mu.Unlock() + l, ok := r.level[server] + return l, ok +} + +// formatLevelState is the cluster's format level in memory: 0 until the +// operator finalizes the v1.1 format. +type formatLevelState struct{ v atomic.Uint32 } + +// formatLevel is the cluster's format level: 0 until the operator +// finalizes the v1.1 format. +func (h *Host) formatLevel() uint32 { return h.format.v.Load() } + +// formatEligible reports whether server may be given new work (placement, a +// move, a failover) at the cluster's format level: its binary reads that +// level. At level 0 every server is. +func (h *Host) formatEligible(server string) bool { + level := h.formatLevel() + if level == 0 { + return true + } + reads, ok := h.reads.of(server) + return ok && reads >= level +} + +// formatTooOld names why server is not format-eligible, or "" when it is. +func (h *Host) formatTooOld(server string) string { + if h.formatEligible(server) { + return "" + } + reads, ok := h.reads.of(server) + if !ok { + return fmt.Sprintf("node %q has not reported its format read level; the cluster's format level is %d", server, h.formatLevel()) + } + return fmt.Sprintf("node %q reads format level %d; the cluster's format level is %d (binary_too_old)", server, reads, h.formatLevel()) +} + +// belowLevel lists the given servers whose reported read level is below +// level, or that have not reported, sorted, each with what it reported. +func (h *Host) belowLevel(servers []string, level uint32) []string { + var out []string + for _, s := range servers { + reads, ok := h.reads.of(s) + switch { + case !ok: + out = append(out, fmt.Sprintf("%s (no report)", s)) + case reads < level: + out = append(out, fmt.Sprintf("%s (reads level %d)", s, reads)) + } + } + sort.Strings(out) + return out +} + +// errFormatHostsTooOld is a finalize refused for registered hosts that do +// not read the new level; errHostHoldsWork a retire refused for a host that +// holds work. Both name what refused them. +type errFormatHostsTooOld struct{ hosts []string } + +func (e errFormatHostsTooOld) Error() string { + return fmt.Sprintf("format finalize refused: registered hosts do not read format level 1: %s; upgrade each one, or retire it (sw-block cluster retire-host)", strings.Join(e.hosts, ", ")) +} + +type errHostHoldsWork struct { + server string + volumes []string +} + +func (e errHostHoldsWork) Error() string { + return fmt.Sprintf("retire refused: host %q holds a lease or an assignment for volumes %s; move them first", e.server, strings.Join(e.volumes, ", ")) +} + +// FinalizeFormat raises the cluster's format level to 1 (FormatGate: +// Finalize; FormatGateMaster: the one durable step). It is refused while any +// registered host has not reported reads_level >= 1 since this master +// started. Otherwise, in order: the attestation envelope is written durably +// (the level, and the fence against v1.0.x masters, in one write); the +// publisher switches to level 1 under its locks; then the answer. At level +// 1 it writes nothing (already). +func (h *Host) FinalizeFormat(level uint32) (already bool, err error) { + if level != 1 { + return false, fmt.Errorf("format finalize: level %d; the only level to finalize is 1", level) + } + h.finalizeMu.Lock() + defer h.finalizeMu.Unlock() + if h.formatLevel() >= 1 { + return true, nil + } + var registered []string + if h.lifecycle != nil { + for _, n := range h.lifecycle.Nodes.ListNodes() { + registered = append(registered, n.ServerID) + } + } + if below := h.belowLevel(registered, 1); len(below) > 0 { + return false, errFormatHostsTooOld{hosts: below} + } + if _, err := h.attest.finalize(); err != nil { + return false, fmt.Errorf("format finalize: %w", err) + } + h.Publisher().FinalizeFormatLevel() + h.format.v.Store(1) + h.log.Printf("blockmaster: cluster format level finalized at 1 (%d registered hosts read it)", len(registered)) + return false, nil +} + +// RetireHost removes server from the node inventory, so it no longer counts +// for the format finalize or for placement. It is refused while server +// holds a lease or an assignment for any volume (FormatGate r2: a retire +// of a holding host breaks OneServer). A retired host that returns +// registers again (the spec import) and is judged at its reported level. +func (h *Host) RetireHost(server, confirm string) error { + if server == "" || confirm != server { + return fmt.Errorf("retire refused: confirm must repeat the server id %q", server) + } + if h.lifecycle == nil { + return fmt.Errorf("retire refused: this master keeps no node inventory") + } + h.finalizeMu.Lock() + defer h.finalizeMu.Unlock() + if _, ok := h.lifecycle.Nodes.GetNode(server); !ok { + return fmt.Errorf("retire refused: host %q is not registered", server) + } + if vols := h.volumesServedBy(server); len(vols) > 0 { + return errHostHoldsWork{server: server, volumes: vols} + } + if err := h.lifecycle.Nodes.RemoveNode(server); err != nil { + return fmt.Errorf("retire: %w", err) + } + h.log.Printf("blockmaster: host %s retired from the node inventory", server) + return nil +} + +// FinalizeFormat is the RPC of Host.FinalizeFormat. +func (s *services) FinalizeFormat(ctx context.Context, req *control.FinalizeFormatRequest) (*control.FinalizeFormatResponse, error) { + if err := ctx.Err(); err != nil { + return nil, err + } + already, err := s.host.FinalizeFormat(req.GetLevel()) + var old errFormatHostsTooOld + switch { + case errors.As(err, &old): + return nil, lifecycleclient.WithReason(status.New(codes.FailedPrecondition, err.Error()), lifecycleclient.ReasonFormatHostsTooOld).Err() + case err != nil && req.GetLevel() != 1: + return nil, status.Error(codes.InvalidArgument, err.Error()) + case err != nil: + return nil, status.Error(codes.Unavailable, err.Error()) + } + return &control.FinalizeFormatResponse{FormatLevel: s.host.formatLevel(), Already: already}, nil +} + +// RetireHost is the RPC of Host.RetireHost. It holds the workspace lock, as +// a placement does, so no placement onto the host lands between its check +// and the removal. +func (s *services) RetireHost(ctx context.Context, req *control.RetireHostRequest) (*control.RetireHostResponse, error) { + if err := ctx.Err(); err != nil { + return nil, err + } + s.host.workspaceMu.Lock() + defer s.host.workspaceMu.Unlock() + err := s.host.RetireHost(req.GetServerId(), req.GetConfirm()) + var holds errHostHoldsWork + switch { + case errors.As(err, &holds): + return nil, lifecycleclient.WithReason(status.New(codes.FailedPrecondition, err.Error()), lifecycleclient.ReasonHostHoldsWork).Err() + case err != nil: + return nil, status.Error(codes.FailedPrecondition, err.Error()) + } + return &control.RetireHostResponse{ServerId: req.GetServerId()}, nil +} diff --git a/seaweed-block/core/host/master/format_gate_test.go b/seaweed-block/core/host/master/format_gate_test.go new file mode 100644 index 0000000000..69a45d5bcb --- /dev/null +++ b/seaweed-block/core/host/master/format_gate_test.go @@ -0,0 +1,282 @@ +package master + +import ( + "bytes" + "errors" + "os" + "path/filepath" + "strings" + "testing" + + "github.com/seaweedfs/seaweed-block/core/adapter" + "github.com/seaweedfs/seaweed-block/core/lifecycle" + control "github.com/seaweedfs/seaweed-block/core/rpc/control" + "github.com/seaweedfs/seaweed-block/core/rpc/lifecycleclient" + "google.golang.org/genproto/googleapis/rpc/errdetails" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/types/known/timestamppb" +) + +// fgHeartbeat sends server's heartbeat reporting reads (its binary's format +// read level). +func (r *isolationRig) fgHeartbeat(server string, reads uint32) error { + _, err := r.obs.ReportHeartbeat(r.ctx, &control.HeartbeatReport{ServerId: server, SentAt: timestamppb.Now(), Reachable: true, Eligible: true, ReadsLevel: reads, + Slots: []*control.HeartbeatSlot{{VolumeId: "hb-" + server, ReplicaId: "r-" + server, DataAddr: hbPorts[server][0], CtrlAddr: hbPorts[server][1]}}}) + return err +} + +func binaryTooOld(err error) bool { + st := status.Convert(err) + if st.Code() != codes.FailedPrecondition { + return false + } + for _, d := range st.Details() { + if info, ok := d.(*errdetails.ErrorInfo); ok && info.Reason == lifecycleclient.ReasonBinaryTooOld { + return true + } + } + return false +} + +// At level 0 every binary's heartbeat is taken; at level 1 one that reads +// only level 0 (or reports nothing: a v1.0.x binary) is refused, typed +// binary_too_old, and one that reads level 1 is taken (FormatGate: Join, +// Eligible). +func TestFormatGateRefusesAnOldBinarysHeartbeatAtLevel1(t *testing.T) { + r := newIsolationRig(t, false, t.TempDir(), t.TempDir()) + if err := r.fgHeartbeat("node-a", 0); err != nil { + t.Fatalf("level 0: an old binary's heartbeat was refused: %v", err) + } + r.m.format.v.Store(1) + if err := r.fgHeartbeat("node-a", 0); !binaryTooOld(err) || !strings.Contains(status.Convert(err).Message(), "reads format level 0") { + t.Fatalf("level 1: an old binary's heartbeat: %v, want FailedPrecondition with reason %s", err, lifecycleclient.ReasonBinaryTooOld) + } + if err := r.fgHeartbeat("node-b", 1); err != nil { + t.Fatalf("level 1: a binary that reads level 1 was refused: %v", err) + } +} + +// At level 1 no new work goes to a host that does not read it: a workspace +// placement and a move onto an old host (or one that never reported) are +// refused; at level 0 they are not refused for the format (FormatGate: +// Assign, NoStrand). +func TestFormatGateRefusesPlacementAndMoveOntoAnOldHost(t *testing.T) { + for _, level := range []uint32{1, 0} { + for _, reported := range []bool{true, false} { + name := map[uint32]string{1: "level1", 0: "level0"}[level] + map[bool]string{true: "-old", false: "-silent"}[reported] + t.Run(name, func(t *testing.T) { + r := newIsolationRig(t, false, t.TempDir(), t.TempDir()) + if reported { + if err := r.fgHeartbeat("node-b", 0); err != nil { + t.Fatal(err) + } + } + r.m.format.v.Store(level) + r.createVolume(t, "placed") + r.place(t, "placed", "node-a") + r.createVolume(t, "fresh") + if _, err := r.ws.RegisterWorkspaceBinding(r.ctx, &control.WorkspaceBinding{VolumeId: "fresh", ServerId: "node-b", DataAddr: "127.0.0.1:19321", CtrlAddr: "127.0.0.1:19322"}); err != nil { + t.Fatal(err) + } + _, placeErr := r.ws.PlaceWorkspace(r.ctx, &control.WorkspacePlacement{VolumeId: "fresh", ServerId: "node-b", ReplicaId: "r1"}) + _, moveErr := r.ws.MoveWorkspace(r.ctx, &control.WorkspaceMove{RequestId: "m1", VolumeId: "placed", ExpectedReplicaId: "r1", ExpectedEpoch: 1, TargetReplicaId: "r1", + TargetServerId: "node-b", TargetDataAddr: "127.0.0.1:19301", TargetCtrlAddr: "127.0.0.1:19302", Kind: "clean"}) + why := map[bool]string{true: "reads format level 0", false: "has not reported its format read level"}[reported] + if level == 0 { + if placeErr != nil { + t.Fatalf("level 0: placement refused: %v", placeErr) + } + if moveErr != nil && strings.Contains(moveErr.Error(), "format") { + t.Fatalf("level 0: move refused for the format: %v", moveErr) + } + return + } + if status.Code(placeErr) != codes.FailedPrecondition || !strings.Contains(status.Convert(placeErr).Message(), why) { + t.Fatalf("level 1: PlaceWorkspace onto node-b: %v, want %q", placeErr, why) + } + if _, ok := r.m.Lifecycle().Placements.GetPlacement("fresh"); ok { + t.Fatal("a refused placement was recorded") + } + if status.Code(moveErr) != codes.FailedPrecondition || !strings.Contains(status.Convert(moveErr).Message(), "move target node \"node-b\" "+why) { + t.Fatalf("level 1: MoveWorkspace onto node-b: %v, want %q", moveErr, why) + } + }) + } + } +} + +// At level 1 the product loop never places a new volume on a host that does +// not read it, and does on one that does. +func TestFormatGateProductLoopPlacesOnlyOnHostsThatReadTheLevel(t *testing.T) { + for _, reads := range []uint32{0, 1} { + t.Run(map[uint32]string{0: "old", 1: "new"}[reads], func(t *testing.T) { + r := newIsolationRig(t, false, t.TempDir(), t.TempDir()) + if _, err := r.m.Lifecycle().Nodes.RegisterNode(lifecycle.NodeRegistration{ServerID: "node-c", DataAddr: "127.0.0.1:19501", CtrlAddr: "127.0.0.1:19502", + Pools: []lifecycle.StoragePool{{PoolID: "p1", TotalBytes: 1 << 30, FreeBytes: 1 << 30, BlockSize: 4096}}}); err != nil { + t.Fatal(err) + } + if err := r.fgHeartbeat("node-c", reads); err != nil { + t.Fatal(err) + } + r.m.format.v.Store(1) + r.createVolume(t, "auto") + if _, err := r.m.RunLifecycleProductTick(); err != nil { + t.Fatal(err) + } + p, ok := r.m.Lifecycle().Placements.GetPlacement("auto") + if reads == 0 && ok { + t.Fatalf("level 1: the product loop placed a new volume on a host that reads level 0: %+v", p) + } + if reads == 1 && (!ok || p.Slots[0].ServerID != "node-c") { + t.Fatalf("level 1: the product loop did not place on node-c, which reads level 1: %+v ok=%v", p, ok) + } + }) + } +} + +// Every assignment carries the cluster's format level. +func TestAssignmentFactCarriesTheFormatLevel(t *testing.T) { + r := newIsolationRig(t, false, t.TempDir(), t.TempDir()) + svc := &services{host: r.m} + for _, level := range []uint32{0, 1} { + r.m.format.v.Store(level) + if got := svc.assignmentFact(adapter.AssignmentInfo{VolumeID: "v", ReplicaID: "r1", Epoch: 1}).GetFormatLevel(); got != level { + t.Fatalf("level %d: AssignmentFact.format_level = %d", level, got) + } + } +} + +func reasonOf(err error) string { + for _, d := range status.Convert(err).Details() { + if info, ok := d.(*errdetails.ErrorInfo); ok { + return info.Reason + } + } + return "" +} + +// The finalize is refused, naming each one, while a registered host has not +// reported or reads level 0, and leaves the attestation file in v1.0.x's +// form (level 0). Once every registered host reads level 1 it writes the +// envelope (format_level 1), switches the publisher, and a second finalize +// writes nothing. A restarted master is still at level 1 (FormatGate: +// Finalize, FinalizeKeepsHosts, OneWay). +func TestFinalizeFormatNeedsEveryRegisteredHostAndIsDurable(t *testing.T) { + authDir, lcDir := t.TempDir(), t.TempDir() + r := newIsolationRig(t, false, authDir, lcDir) + file := filepath.Join(authDir, storeAttestationFile) + finalize := func() (*control.FinalizeFormatResponse, error) { + return r.lc.FinalizeFormat(r.ctx, &control.FinalizeFormatRequest{Level: 1}) + } + if err := r.fgHeartbeat("node-a", 1); err != nil { + t.Fatal(err) + } + for _, step := range []struct { + reads *uint32 + want string + }{{nil, "node-b (no report)"}, {ptr(uint32(0)), "node-b (reads level 0)"}} { + if step.reads != nil { + if err := r.fgHeartbeat("node-b", *step.reads); err != nil { + t.Fatal(err) + } + } + _, err := finalize() + if status.Code(err) != codes.FailedPrecondition || reasonOf(err) != lifecycleclient.ReasonFormatHostsTooOld || !strings.Contains(status.Convert(err).Message(), step.want) { + t.Fatalf("finalize with %s: %v (reason %q)", step.want, err, reasonOf(err)) + } + if r.m.formatLevel() != 0 || r.m.Publisher().FormatLevel() != 0 { + t.Fatal("a refused finalize changed the level") + } + if b, err := os.ReadFile(file); err == nil && bytes.Contains(b, []byte(`"format"`)) { + t.Fatalf("a refused finalize wrote the envelope: %s", b) + } + } + if err := r.fgHeartbeat("node-b", 1); err != nil { + t.Fatal(err) + } + resp, err := finalize() + if err != nil || resp.GetFormatLevel() != 1 || resp.GetAlready() { + t.Fatalf("finalize with every host at level 1: %+v %v", resp, err) + } + if r.m.formatLevel() != 1 || r.m.Publisher().FormatLevel() != 1 { + t.Fatal("the finalize did not switch the master and the publisher to level 1") + } + b, err := os.ReadFile(file) + if err != nil || !bytes.Contains(b, []byte(`"format":2`)) || !bytes.Contains(b, []byte(`"format_level":1`)) { + t.Fatalf("the attestation file after the finalize: %s %v", b, err) + } + if resp, err := finalize(); err != nil || !resp.GetAlready() { + t.Fatalf("a second finalize: %+v %v, want already", resp, err) + } + r.close(t) + r2 := newIsolationRig(t, false, authDir, lcDir) + if r2.m.formatLevel() != 1 || r2.m.Publisher().FormatLevel() != 1 { + t.Fatal("a restarted master is not at level 1") + } +} + +func ptr[T any](v T) *T { return &v } + +// An envelope that says a level below 1 is refused at start: the level +// never drops. +func TestAnAttestationEnvelopeBelowLevel1IsRefused(t *testing.T) { + dir := t.TempDir() + if err := os.WriteFile(filepath.Join(dir, storeAttestationFile), []byte(`{"format":2,"format_level":0,"volumes":{}}`), 0o644); err != nil { + t.Fatal(err) + } + if _, err := loadStoreAttestations(dir); err == nil { + t.Fatal("an envelope at format_level 0 was read") + } +} + +// A retire is refused, naming the volume, while the host holds an +// assignment, and when confirm does not repeat the server id. A host +// holding nothing is retired, and the finalize no longer counts it. +func TestRetireHostRefusesAHostThatHoldsWork(t *testing.T) { + r := newIsolationRig(t, false, t.TempDir(), t.TempDir()) + r.createVolume(t, "held") + r.place(t, "held", "node-b") + _, err := r.lc.RetireHost(r.ctx, &control.RetireHostRequest{ServerId: "node-b", Confirm: "node-b"}) + if status.Code(err) != codes.FailedPrecondition || reasonOf(err) != lifecycleclient.ReasonHostHoldsWork || !strings.Contains(status.Convert(err).Message(), "held") { + t.Fatalf("retire of a host holding a placement: %v (reason %q)", err, reasonOf(err)) + } + if _, err := r.lc.RetireHost(r.ctx, &control.RetireHostRequest{ServerId: "node-a", Confirm: "node-b"}); status.Code(err) != codes.FailedPrecondition { + t.Fatalf("retire with a confirm that does not match: %v", err) + } + if _, err := r.lc.RetireHost(r.ctx, &control.RetireHostRequest{ServerId: "node-a", Confirm: "node-a"}); err != nil { + t.Fatalf("retire of a host holding nothing: %v", err) + } + if _, ok := r.m.Lifecycle().Nodes.GetNode("node-a"); ok { + t.Fatal("the retired host is still registered") + } + // node-b (holding "held") reports level 1; node-a, retired, never + // reported: the finalize goes through. + if err := r.fgHeartbeat("node-b", 1); err != nil { + t.Fatal(err) + } + if _, err := r.lc.FinalizeFormat(r.ctx, &control.FinalizeFormatRequest{Level: 1}); err != nil { + t.Fatalf("finalize after the silent host was retired: %v", err) + } +} + +// A finalize whose durable write fails changes no level: the publisher and +// the master stay at 0 (the switch follows the write; FormatGateMaster +// finalize_not_atomic). +func TestAFailedFinalizeWriteLeavesLevel0(t *testing.T) { + r := newIsolationRig(t, false, t.TempDir(), t.TempDir()) + for _, s := range []string{"node-a", "node-b"} { + if err := r.fgHeartbeat(s, 1); err != nil { + t.Fatal(err) + } + } + saved := syncAttestationDir + t.Cleanup(func() { syncAttestationDir = saved }) + syncAttestationDir = func(string) error { return errors.New("injected directory fsync failure") } + if _, err := r.lc.FinalizeFormat(r.ctx, &control.FinalizeFormatRequest{Level: 1}); err == nil { + t.Fatal("a finalize whose envelope write failed succeeded") + } + if r.m.formatLevel() != 0 || r.m.Publisher().FormatLevel() != 0 { + t.Fatalf("a failed finalize switched the level: master %d, publisher %d", r.m.formatLevel(), r.m.Publisher().FormatLevel()) + } +} diff --git a/seaweed-block/core/host/master/golden_v100_test.go b/seaweed-block/core/host/master/golden_v100_test.go index a85a40f5a4..eaff498be9 100644 --- a/seaweed-block/core/host/master/golden_v100_test.go +++ b/seaweed-block/core/host/master/golden_v100_test.go @@ -79,29 +79,45 @@ func TestAttestationGoldenFileIsTheV100File(t *testing.T) { } } -// Today's store writes the v1.0.0 file's volumes for the same steps, inside -// this version's envelope: {"format":2,"volumes":}. The -// one change since v1.0.0, by the format path: a v1.0.x master refuses the -// envelope at start (TestAV100MasterRefusesTheAttestationEnvelope). -func TestAttestationsWriteTheV100FileInTheEnvelope(t *testing.T) { +// Until the format finalize (level 0) today's store writes the v1.0.0 file +// itself, byte for byte. The finalize writes this version's envelope around +// the same volumes, {"format":2,"format_level":1,"volumes":}: the one change since v1.0.0, by the format path, and a v1.0.x +// master refuses it at start (TestAV100MasterRefusesTheAttestationEnvelope). +func TestAttestationsWriteTheV100FileUntilTheFinalize(t *testing.T) { dir := t.TempDir() goldenAttestations(t, dir) got, err := os.ReadFile(filepath.Join(dir, storeAttestationFile)) if err != nil { t.Fatal(err) } - want := append(append([]byte(`{"format":2,"volumes":`), readGoldenAttestations(t)...), '}') + if want := readGoldenAttestations(t); !bytes.Equal(got, want) { + t.Fatalf("level 0: %s\n got %s\n want %s", goldenAttestationFix, got, want) + } + s, err := loadStoreAttestations(dir) + if err != nil { + t.Fatal(err) + } + if _, err := s.finalize(); err != nil { + t.Fatal(err) + } + got, err = os.ReadFile(filepath.Join(dir, storeAttestationFile)) + if err != nil { + t.Fatal(err) + } + want := append(append([]byte(`{"format":2,"format_level":1,"volumes":`), readGoldenAttestations(t)...), '}') if !bytes.Equal(got, want) { - t.Fatalf("%s\n got %s\n want %s", goldenAttestationFix, got, want) + t.Fatalf("after the finalize: %s\n got %s\n want %s", goldenAttestationFix, got, want) } } // A v1.0.x master decodes store-attestations.json as a bare map of volume // records (json.Unmarshal into map[string]attestedStores, its // loadStoreAttestations), and its New returns that error before it listens -// or publishes. The envelope fails that decode; today's master reads both -// forms, and a master started on a v1.0.x store rewrites it as the envelope -// before it serves. +// or publishes. Until the finalize the file is that map, so a v1.0.x master +// starts (going back works); the finalize's envelope fails that decode. +// Today's master reads both forms, and a start (ensureEnvelope) leaves a +// v1.0.x store in its form. func TestAV100MasterRefusesTheAttestationEnvelope(t *testing.T) { dir := t.TempDir() goldenAttestations(t, dir) @@ -110,39 +126,38 @@ func TestAV100MasterRefusesTheAttestationEnvelope(t *testing.T) { t.Fatal(err) } var v100 map[string]attestedStores // v1.0.x's decode, verbatim - if err := json.Unmarshal(b, &v100); err == nil { - t.Fatalf("a v1.0.x master's decode accepted the file written now: %v", v100) + if err := json.Unmarshal(b, &v100); err != nil { + t.Fatalf("level 0: a v1.0.x master's decode refused the file written now: %v", err) } - if bad := readAttestations(dir); len(bad) != 0 { - t.Fatalf("today's master does not read its own envelope: %v", bad) - } - // A v1.0.x store (the bare map) is read, and ensureEnvelope rewrites it. - old := t.TempDir() - if err := os.WriteFile(filepath.Join(old, storeAttestationFile), readGoldenAttestations(t), 0o644); err != nil { - t.Fatal(err) - } - s, err := loadStoreAttestations(old) + s, err := loadStoreAttestations(dir) if err != nil { t.Fatal(err) } - if bad := readAttestations(old); len(bad) != 0 { - t.Fatalf("today's master does not read the v1.0.x form: %v", bad) - } if err := s.ensureEnvelope(); err != nil { t.Fatal(err) } - b, err = os.ReadFile(filepath.Join(old, storeAttestationFile)) + if after, _ := os.ReadFile(filepath.Join(dir, storeAttestationFile)); !bytes.Equal(after, b) { + t.Fatalf("a level-0 start rewrote the v1.0.x file: %s", after) + } + if _, err := s.finalize(); err != nil { + t.Fatal(err) + } + b, err = os.ReadFile(filepath.Join(dir, storeAttestationFile)) if err != nil { t.Fatal(err) } + v100 = nil if err := json.Unmarshal(b, &v100); err == nil { - t.Fatal("after ensureEnvelope, a v1.0.x master's decode still accepts the store") + t.Fatalf("after the finalize, a v1.0.x master's decode accepted the file: %v", v100) + } + if bad := readAttestations(dir); len(bad) != 0 { + t.Fatalf("today's master does not read its own envelope: %v", bad) } // An envelope of a later format is refused by this master too. - if err := os.WriteFile(filepath.Join(old, storeAttestationFile), []byte(`{"format":3,"volumes":{}}`), 0o644); err != nil { + if err := os.WriteFile(filepath.Join(dir, storeAttestationFile), []byte(`{"format":3,"volumes":{}}`), 0o644); err != nil { t.Fatal(err) } - if _, err := loadStoreAttestations(old); err == nil { + if _, err := loadStoreAttestations(dir); err == nil { t.Fatal("this master accepted attestation format 3") } } @@ -243,10 +258,11 @@ func TestAttestationEnvelopeNeedsItsVolumesObject(t *testing.T) { } } -// An envelope already on disk is fsynced again (file and directory) on every -// start: a start that renamed it in and then failed its directory fsync must -// not leave the next start serving on an envelope that may not survive a -// crash. +// The finalize's envelope write fails when its directory fsync fails, and +// an envelope already on disk is fsynced again (file and directory) on every +// start: a finalize (or start) that renamed it in and then failed its +// directory fsync must not leave the next start serving on an envelope that +// may not survive a crash. func TestAttestationEnvelopeIsSyncedAtEveryStart(t *testing.T) { dir := t.TempDir() if err := os.WriteFile(filepath.Join(dir, storeAttestationFile), readGoldenAttestations(t), 0o644); err != nil { @@ -260,8 +276,8 @@ func TestAttestationEnvelopeIsSyncedAtEveryStart(t *testing.T) { if err != nil { t.Fatal(err) } - if err := s.ensureEnvelope(); err == nil { - t.Fatal("a failed directory fsync of the first envelope write was not an error (the master would serve)") + if _, err := s.finalize(); err == nil || s.level() != 0 { + t.Fatalf("a failed directory fsync of the finalize's envelope: err=%v level=%d (want an error, level 0)", err, s.level()) } // The process restarts: the envelope is on disk (the rename happened). s, err = loadStoreAttestations(dir) @@ -284,11 +300,18 @@ func TestAttestationEnvelopeIsSyncedAtEveryStart(t *testing.T) { func TestAttestationEnvelopeRoundTrips(t *testing.T) { dir := t.TempDir() goldenAttestations(t, dir) + s, err := loadStoreAttestations(dir) + if err != nil { + t.Fatal(err) + } + if _, err := s.finalize(); err != nil { + t.Fatal(err) + } first, err := os.ReadFile(filepath.Join(dir, storeAttestationFile)) if err != nil { t.Fatal(err) } - s, err := loadStoreAttestations(dir) + s, err = loadStoreAttestations(dir) if err != nil { t.Fatal(err) } @@ -304,14 +327,19 @@ func TestAttestationEnvelopeRoundTrips(t *testing.T) { } } -// master.New refuses to serve when the attestation envelope cannot be made -// durable: it returns the error before it listens. +// master.New at level 1 refuses to serve when the attestation envelope +// cannot be made durable: it returns the error before it listens. func TestMasterNewRefusesWhenTheEnvelopeIsNotDurable(t *testing.T) { + dir := t.TempDir() + if err := os.WriteFile(filepath.Join(dir, storeAttestationFile), []byte(`{"format":2,"format_level":1,"volumes":{}}`), 0o644); err != nil { + t.Fatal(err) + } saved := syncAttestationDir t.Cleanup(func() { syncAttestationDir = saved }) syncAttestationDir = func(string) error { return errors.New("injected directory fsync failure") } - h, err := New(Config{AuthorityStoreDir: t.TempDir(), Listen: "127.0.0.1:0"}) + h, err := New(Config{AuthorityStoreDir: dir, Listen: "127.0.0.1:0"}) if err == nil { + h.Start() closeTestMaster(t, h) t.Fatal("master.New served with a failed attestation envelope fsync") } @@ -320,8 +348,9 @@ func TestMasterNewRefusesWhenTheEnvelopeIsNotDurable(t *testing.T) { } } -// A v1.0.x file that is null holds no attestations (as v1.0.x read it): it -// migrates to an envelope with an explicit {} that the next start reads. +// A v1.0.x file that is null holds no attestations (as v1.0.x read it); a +// level-0 start leaves it as it is, and the finalize writes an envelope +// with an explicit {} that the next start reads. func TestAV100NullAttestationFileMigrates(t *testing.T) { dir := t.TempDir() if err := os.WriteFile(filepath.Join(dir, storeAttestationFile), []byte("null"), 0o644); err != nil { @@ -334,11 +363,17 @@ func TestAV100NullAttestationFileMigrates(t *testing.T) { if err := s.ensureEnvelope(); err != nil { t.Fatal(err) } + if b, _ := os.ReadFile(filepath.Join(dir, storeAttestationFile)); string(b) != "null" { + t.Fatalf("a level-0 start rewrote the null file: %s", b) + } + if _, err := s.finalize(); err != nil { + t.Fatal(err) + } b, err := os.ReadFile(filepath.Join(dir, storeAttestationFile)) - if err != nil || string(b) != `{"format":2,"volumes":{}}` { - t.Fatalf("migrated to %s (%v)", b, err) + if err != nil || string(b) != `{"format":2,"format_level":1,"volumes":{}}` { + t.Fatalf("finalized to %s (%v)", b, err) } if _, err := loadStoreAttestations(dir); err != nil { - t.Fatalf("the next start refuses the migrated file: %v", err) + t.Fatalf("the next start refuses the finalized file: %v", err) } } diff --git a/seaweed-block/core/host/master/host.go b/seaweed-block/core/host/master/host.go index a96e23ca2a..555ca204b6 100644 --- a/seaweed-block/core/host/master/host.go +++ b/seaweed-block/core/host/master/host.go @@ -152,6 +152,9 @@ type Host struct { statusLn net.Listener statusHTTP *http.Server journal *journalIsolation + reads *readsLevels // each server's reported format read level (format_gate.go) + format formatLevelState // the cluster's format level (format_gate.go) + finalizeMu sync.Mutex // serializes the format finalize and host retires (format_gate.go) grpc *grpc.Server topo authority.AcceptedTopology lifecycle *LifecycleStores @@ -267,6 +270,7 @@ func New(cfg Config) (*Host, error) { topo: cfg.Topology, events: newEventRing(1024), journal: newJournalIsolation(storeident.Identity{}), // sampled once the store exists + reads: newReadsLevels(), } boot, err := bootstrap.BootstrapWithOptions(cfg.AuthorityStoreDir, ctrl, bootstrap.Options{ @@ -287,12 +291,16 @@ func New(cfg Config) (*Host, error) { return nil, fmt.Errorf("master.New: %w", err) } // Under the authority store's lock and before anything is served: the - // attestation file in this version's envelope, which a v1.0.x master - // refuses at start (store_attestation.go). + // cluster's format level is the attestation file's form (the envelope + // is level 1, re-fsynced here; v1.0.x's form is level 0, where this + // master keeps v1.0's semantics: store_attestation.go, format_gate.go). if err := h.attest.ensureEnvelope(); err != nil { _ = boot.Close() return nil, fmt.Errorf("master.New: %w", err) } + level := h.attest.level() + boot.Publisher.SetFormatLevelBeforeServing(level) + h.format.v.Store(level) var sink authority.ControllerSink = ctrl if len(cfg.Topology.Volumes) == 0 { @@ -635,6 +643,8 @@ func (h *Host) Close(ctx context.Context) error { } h.wg.Wait() + // Level 0's horizon extenders write through the store: join them first. + h.boot.Publisher.CloseWorkspaceExtenders() return errors.Join(statusErr, h.boot.Close()) } diff --git a/seaweed-block/core/host/master/journal_isolation.go b/seaweed-block/core/host/master/journal_isolation.go index aa634a45ef..126c79717f 100644 --- a/seaweed-block/core/host/master/journal_isolation.go +++ b/seaweed-block/core/host/master/journal_isolation.go @@ -1,6 +1,7 @@ package master import ( + "sort" "encoding/json" "fmt" "net" @@ -73,19 +74,25 @@ func (j *journalIsolation) setSelf(id storeident.Identity) { // takes neither workspaceMu nor the publisher lock (held across authority // store writes), only the published authority lines and the lifecycle // stores, whose locks cover only their own file I/O. -func (h *Host) nodeServesVolumes(server string) bool { +func (h *Host) nodeServesVolumes(server string) bool { return len(h.volumesServedBy(server)) > 0 } + +// volumesServedBy names, sorted and once each, every volume server holds +// work for: a placement slot (also every line it sources), a live line a +// move issued to it, or a static topology line on it. +func (h *Host) volumesServedBy(server string) []string { + seen := map[string]bool{} lines := h.Publisher().PublishedAuthorityLines() if h.lifecycle != nil { for _, p := range h.lifecycle.Placements.ListPlacements() { for _, slot := range p.Slots { if slot.ServerID == server { - return true // also every line a placement slot sources + seen[p.VolumeID] = true } } } for volume, line := range lines { if _, live := h.lifecycle.Volumes.GetVolumeSnapshot(volume); live && line.IssuedHost == server { - return true + seen[volume] = true } } } @@ -96,11 +103,16 @@ func (h *Host) nodeServesVolumes(server string) bool { } for _, slot := range v.Slots { if slot.ServerID == server && slot.ReplicaID == line.ReplicaID { - return true + seen[v.VolumeID] = true } } } - return false + out := make([]string, 0, len(seen)) + for v := range seen { + out = append(out, v) + } + sort.Strings(out) + return out } // refuseColocatedHeartbeat is the strict heartbeat rule: a co-located node @@ -122,13 +134,21 @@ func (h *Host) colocatedTargetRefused(server string) bool { return h.cfg.StrictJournalIsolation && h.journal.isColocated(server) } -// reconcilePlacements runs the product loop's placement reconcile. Under -// strict isolation each volume plans against the nodes without co-located -// ones, except the nodes its existing placement already names: a placement -// on a co-located node is kept (re-planning it away would move a serving -// volume), and no new placement chooses a co-located node. +// newWorkRefused reports whether server may not be given new work: strict +// isolation refuses a co-located node, and the format gate a node whose +// binary does not read the cluster's format level. +func (h *Host) newWorkRefused(server string) bool { + return h.colocatedTargetRefused(server) || !h.formatEligible(server) +} + +// reconcilePlacements runs the product loop's placement reconcile. Each +// volume plans against the nodes new work may go to (newWorkRefused: not +// co-located under strict isolation, reading the cluster's format level), +// plus the nodes its existing placement already names: such a placement is +// kept (re-planning it away would move a serving volume), and no new +// placement chooses a refused node. func (h *Host) reconcilePlacements(stores *LifecycleStores, nodes []lifecycle.NodeRegistration) []lifecycle.ReconcileResult { - if !h.cfg.StrictJournalIsolation { + if !h.cfg.StrictJournalIsolation && h.formatLevel() == 0 { return lifecycle.ReconcilePlacement(h.readyVolumeRecords(stores.liveVolumes()), nodes, stores.Placements) } var out []lifecycle.ReconcileResult @@ -141,7 +161,7 @@ func (h *Host) reconcilePlacements(stores *LifecycleStores, nodes []lifecycle.No } allowed := make([]lifecycle.NodeRegistration, 0, len(nodes)) for _, n := range nodes { - if placed[n.ServerID] || !h.journal.isColocated(n.ServerID) { + if placed[n.ServerID] || !h.newWorkRefused(n.ServerID) { allowed = append(allowed, n) } } diff --git a/seaweed-block/core/host/master/services.go b/seaweed-block/core/host/master/services.go index d94e7b3e3a..a07a4194fe 100644 --- a/seaweed-block/core/host/master/services.go +++ b/seaweed-block/core/host/master/services.go @@ -537,6 +537,13 @@ func (s *services) ReportHeartbeat(ctx context.Context, r *control.HeartbeatRepo if err := s.host.refuseServerIDFromOtherHost(r); err != nil { return nil, status.Error(codes.FailedPrecondition, err.Error()) } + // The format gate: the server's read level, recorded before it is + // judged; a binary that cannot read the cluster's format level is + // refused, so it is never observed as a candidate. + s.host.reads.note(r.GetServerId(), r.GetReadsLevel()) + if why := s.host.formatTooOld(r.GetServerId()); why != "" { + return nil, lifecycleclient.WithReason(status.New(codes.FailedPrecondition, "heartbeat refused: "+why), lifecycleclient.ReasonBinaryTooOld).Err() + } msg := heartbeatFromWire(r) if err := s.host.ingestHeartbeatRecordingHealth(msg); err != nil { return nil, fmt.Errorf("ingest: %w", err) @@ -1266,6 +1273,7 @@ func (s *services) assignmentFact(info adapter.AssignmentInfo) *control.Assignme EvidenceFirstLsn: info.Primary.DataFirstLSN, LineIncarnation: info.Incarnation, AckProfile: s.host.lineAckProfile(), + FormatLevel: s.host.formatLevel(), } if info.Primary.StoreID != ([16]byte{}) { id := info.Primary.StoreID diff --git a/seaweed-block/core/host/master/store_attestation.go b/seaweed-block/core/host/master/store_attestation.go index 7e8e9b09b3..b00355386c 100644 --- a/seaweed-block/core/host/master/store_attestation.go +++ b/seaweed-block/core/host/master/store_attestation.go @@ -1,6 +1,7 @@ package master import ( + "bytes" "encoding/hex" "encoding/json" "errors" @@ -19,17 +20,19 @@ import ( // write (temp file, fsync, rename, directory fsync). const storeAttestationFile = "store-attestations.json" -// storeAttestationFormat is the envelope this master writes: -// {"format": 2, "volumes": {...}}. A v1.0.x master decodes the file as a -// bare map of volume records, so the number under "format" fails its whole -// start (before any listener or authority publication): the downgrade guard -// for what this version stops keeping current (the lease horizon). The -// bare map (v1.0.x's form) is still read. +// storeAttestationFormat is the envelope the format finalize writes: +// {"format": 2, "format_level": 1, "volumes": {...}}. The file's form IS the +// cluster's format level: v1.0.x's bare map is level 0, the envelope level +// 1. A v1.0.x master decodes the file as a bare map of volume records, so +// the number under "format" fails its whole start (before any listener or +// authority publication): the finalize's one durable write raises the level +// and fences v1.0.x masters together. const storeAttestationFormat = 2 type storeAttestationEnvelope struct { - Format int `json:"format"` - Volumes map[string]attestedStores `json:"volumes"` + Format int `json:"format"` + FormatLevel int `json:"format_level"` + Volumes map[string]attestedStores `json:"volumes"` } // attestedStores is one volume's last attestation: the primary line that @@ -68,8 +71,8 @@ type storeAttestations struct { mu sync.Mutex path string // "" = memory only vols map[string]attestedStores - // enveloped: the file on disk is this version's envelope (persist always - // writes it; ensureEnvelope writes it at start). + // enveloped: the file on disk is the envelope, so the cluster's format + // level is 1 (persist then keeps that form; finalize writes it first). enveloped bool // changed[vol] is closed (and dropped) when vol's record changes. changed map[string]chan struct{} @@ -119,6 +122,12 @@ func decodeStoreAttestations(b []byte) (map[string]attestedStores, bool, error) if env.Volumes == nil { return nil, false, fmt.Errorf("format %d without a volumes object", format) } + // format_level is 1 (an envelope written before the level was + // recorded in it says nothing, and is level 1 too); anything else + // is refused: the level never drops. + if lv, ok := probe["format_level"]; ok && string(bytes.TrimSpace(lv)) != "1" { + return nil, false, fmt.Errorf("format %d with format_level %s, this master reads level 1", format, bytes.TrimSpace(lv)) + } return env.Volumes, true, nil } } @@ -134,23 +143,44 @@ func decodeStoreAttestations(b []byte) (map[string]attestedStores, bool, error) return vols, false, nil } -// ensureEnvelope makes the file in this version's envelope durable before -// the master serves anything, so a v1.0.x master started on this store -// afterwards refuses its whole start: it writes the envelope when the file is -// absent or in v1.0.x's form, and fsyncs an envelope already there (file and -// directory) on every start, since an earlier start may have renamed it in -// and then failed its directory fsync. +// level is the cluster's format level the file holds: 1 with the envelope, +// 0 with v1.0.x's form (or no file). +func (s *storeAttestations) level() uint32 { + s.mu.Lock() + defer s.mu.Unlock() + if s.enveloped { + return 1 + } + return 0 +} + +// finalize writes the envelope durably (file and directory fsync): the one +// write that raises the cluster's format level to 1 and makes a v1.0.x +// master refuse this store. At level 1 it writes nothing (already true). +// On a failed write the level stays 0 in memory; the file may hold either +// form, and the next start reads whichever it holds. +func (s *storeAttestations) finalize() (already bool, err error) { + s.mu.Lock() + defer s.mu.Unlock() + if s.enveloped { + return true, nil + } + s.enveloped = true + if err := s.persist(s.vols); err != nil { + s.enveloped = false + return false, err + } + return false, nil +} + +// ensureEnvelope, at level 1, fsyncs the envelope (file and directory) at +// every start before the master serves anything, since an earlier start (or +// the finalize) may have renamed it in and then failed its directory fsync. +// At level 0 it does nothing: the file stays v1.0.x's form. func (s *storeAttestations) ensureEnvelope() error { s.mu.Lock() defer s.mu.Unlock() - if s.path == "" { - return nil - } - if !s.enveloped { - if err := s.persist(s.vols); err != nil { - return err - } - s.enveloped = true + if s.path == "" || !s.enveloped { return nil } f, err := os.OpenFile(s.path, os.O_RDWR, 0) @@ -437,7 +467,16 @@ func (s *storeAttestations) persist(vols map[string]attestedStores) error { if s.path == "" { return nil } - payload, err := json.Marshal(storeAttestationEnvelope{Format: storeAttestationFormat, Volumes: vols}) + if vols == nil { + vols = map[string]attestedStores{} + } + var payload []byte + var err error + if s.enveloped { + payload, err = json.Marshal(storeAttestationEnvelope{Format: storeAttestationFormat, FormatLevel: 1, Volumes: vols}) + } else { + payload, err = json.Marshal(vols) // level 0: v1.0.x's form + } if err != nil { return err } diff --git a/seaweed-block/core/host/master/workspace_binding.go b/seaweed-block/core/host/master/workspace_binding.go index 3bde3751ac..245165720b 100644 --- a/seaweed-block/core/host/master/workspace_binding.go +++ b/seaweed-block/core/host/master/workspace_binding.go @@ -220,6 +220,11 @@ func (s *services) PlaceWorkspace(ctx context.Context, q *control.WorkspacePlace if p, ok := s.host.lifecycle.Placements.GetPlacement(q.GetVolumeId()); !(ok && identical(p)) && s.host.colocatedTargetRefused(binding.ServerID) { return nil, workspaceError(fmt.Errorf("workspace placement: node %q shares the authority store's file system (strict journal isolation)", binding.ServerID)) } + if p, ok := s.host.lifecycle.Placements.GetPlacement(q.GetVolumeId()); !(ok && identical(p)) { + if why := s.host.formatTooOld(binding.ServerID); why != "" { + return nil, workspaceError(fmt.Errorf("workspace placement: %s", why)) + } + } err = s.host.Publisher().RecordWorkspacePlacement(ctx, q.GetVolumeId(), func() error { if p, ok := s.host.lifecycle.Placements.GetPlacement(q.GetVolumeId()); ok { if identical(p) { diff --git a/seaweed-block/core/host/master/workspace_lease_refusal_kind_test.go b/seaweed-block/core/host/master/workspace_lease_refusal_kind_test.go index b9849c3dd5..ed2edb95d3 100644 --- a/seaweed-block/core/host/master/workspace_lease_refusal_kind_test.go +++ b/seaweed-block/core/host/master/workspace_lease_refusal_kind_test.go @@ -86,15 +86,16 @@ func TestLeaseRefusalKinds(t *testing.T) { t.Fatal("first grant:", err) } - // BARRIER: past the grant (TTL, 30 s) but before it plus the default - // skew (2/3 TTL), i.e. 50 s after the grant. + // BARRIER: past the grant (TTL, 30 s) but before the barrier. A fresh + // master is at format level 0, whose barrier is v1.0's: the persisted + // horizon (1.5 TTL) plus the default skew (2/3 TTL), 65 s after the grant. nowNS.Add(int64(40 * time.Second)) text, r := refusalOf(t, "expired re-grant before the barrier", func() error { _, err := ws.RenewWorkspaceLease(ctx, e1); return err }()) if r == nil || r.GetKind() != control.WorkspaceLeaseRefusal_BARRIER { t.Fatalf("re-grant before the barrier: detail %v; want BARRIER", r) } - if left := time.Duration(r.GetRetryAfterNs()); left < 9*time.Second || left > 11*time.Second { - t.Fatalf("BARRIER retry_after %v; want 10 s (the barrier 50 s after the grant, now +40 s)", left) + if left := time.Duration(r.GetRetryAfterNs()); left < 24*time.Second || left > 26*time.Second { + t.Fatalf("BARRIER retry_after %v; want 25 s (level 0: the barrier 65 s after the grant, now +40 s)", left) } if !strings.HasPrefix(text, "workspace forced move lease expiry plus clock-skew margin has not elapsed") || !strings.Contains(text, "re-grant refused until") { t.Fatalf("BARRIER text %q: want the barrier text with its time", text) diff --git a/seaweed-block/core/host/master/workspace_service.go b/seaweed-block/core/host/master/workspace_service.go index 95fa2e3c07..401c570c2c 100644 --- a/seaweed-block/core/host/master/workspace_service.go +++ b/seaweed-block/core/host/master/workspace_service.go @@ -455,6 +455,8 @@ func (s *services) workspaceMoveCheckLocked(q *control.WorkspaceMove) (req autho // after these endpoint and binding checks, also for a same-host target. case !replay && s.host.colocatedTargetRefused(target.ServerID): refusal = fmt.Sprintf("move target node %q shares the authority store's file system (strict journal isolation)", target.ServerID) + case !replay && s.host.formatTooOld(target.ServerID) != "": + refusal = "move target " + s.host.formatTooOld(target.ServerID) case !matched: refusal = fmt.Sprintf("move target endpoints %s/%s on %q are not registered (%s)", q.GetTargetDataAddr(), q.GetTargetCtrlAddr(), target.ServerID, registeredTargetEndpoints(target, bindings, explicit)) } diff --git a/seaweed-block/core/host/master/workspace_unclaimed_grant_test.go b/seaweed-block/core/host/master/workspace_unclaimed_grant_test.go index 32d2a9c35a..bbef6450fa 100644 --- a/seaweed-block/core/host/master/workspace_unclaimed_grant_test.go +++ b/seaweed-block/core/host/master/workspace_unclaimed_grant_test.go @@ -35,7 +35,8 @@ func seedDetachedHead(t *testing.T, ctx context.Context, remote *storage.MemChun // then) and is granted on the predecessor's unchanged HEAD. A late claim by // the dead grantee never displaces the new owner's higher epoch. func TestWorkspaceUnclaimedGrantForcedReassignOverRPC(t *testing.T) { - // The real lease (the 30 s TTL) plus skew takes ~50 s. + // The real lease horizon (1.5 x the 30 s TTL, format level 0) plus skew + // takes ~65 s. ctx, cancel := context.WithTimeout(context.Background(), 180*time.Second) defer cancel() remote := storage.NewMemChunkRemote() @@ -114,8 +115,10 @@ func TestWorkspaceUnclaimedGrantForcedReassignOverRPC(t *testing.T) { if st == nil || st.Lease == nil || st.Lease.ReplicaID != "r1" || st.Lease.Epoch != grantee || st.Lease.Revoking { t.Fatalf("the issued move must start node-b's lease: %+v", st) } - granted, _ := m.Publisher().WorkspaceLeaseReply("vol-a") // the issue's deadline, not the record's - barrier := time.Unix(0, granted.ExpiresAtNS).Add(skew) + // The barrier at either format level: the later of the granted deadline + // and (level 0, v1.0's rule) the persisted horizon, plus skew. + granted, _ := m.Publisher().WorkspaceLeaseReply("vol-a") + barrier := time.Unix(0, max(granted.ExpiresAtNS, st.Lease.ExpiresAtNS)).Add(skew) if q, err := ws.QueryWorkspace(ctx, &control.WorkspaceVolume{VolumeId: "vol-a"}); err != nil || q.GetLease() == nil || q.GetLease().GetEpoch() != grantee { t.Fatalf("QueryWorkspace after the issue: %+v %v", q.GetLease(), err) } diff --git a/seaweed-block/core/host/volume/host.go b/seaweed-block/core/host/volume/host.go index 19183f7efe..b136f254d6 100644 --- a/seaweed-block/core/host/volume/host.go +++ b/seaweed-block/core/host/volume/host.go @@ -810,6 +810,11 @@ func (h *Host) runHeartbeat(ctx context.Context) { } } +// ReadsFormatLevel is the highest cluster format level this binary reads +// (the v1.1 format is level 1), reported on every heartbeat as reads_level: +// the master finalizes the format only when every registered host reads it. +const ReadsFormatLevel = 1 + // buildReport collects local slot facts into a wire HeartbeatReport. // T0 single-volume-per-process simplicity: one replica slot. func (h *Host) buildReport() *control.HeartbeatReport { @@ -825,6 +830,7 @@ func (h *Host) buildReport() *control.HeartbeatReport { DurableRootDev: h.cfg.StorageIdentity.Dev, DurableRootFsid: h.cfg.StorageIdentity.FSID, StoreAttestation: h.storeAttestation(), + ReadsLevel: ReadsFormatLevel, Slots: []*control.HeartbeatSlot{ { VolumeId: h.cfg.VolumeID, diff --git a/seaweed-block/core/rpc/control/control.pb.go b/seaweed-block/core/rpc/control/control.pb.go index d83b037501..4bb6895e17 100644 --- a/seaweed-block/core/rpc/control/control.pb.go +++ b/seaweed-block/core/rpc/control/control.pb.go @@ -96,6 +96,210 @@ func (PrimaryKind) EnumDescriptor() ([]byte, []int) { return file_control_proto_rawDescGZIP(), []int{0} } +type FinalizeFormatRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Level uint32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"` // the level to finalize: 1 +} + +func (x *FinalizeFormatRequest) Reset() { + *x = FinalizeFormatRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_control_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FinalizeFormatRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FinalizeFormatRequest) ProtoMessage() {} + +func (x *FinalizeFormatRequest) ProtoReflect() protoreflect.Message { + mi := &file_control_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FinalizeFormatRequest.ProtoReflect.Descriptor instead. +func (*FinalizeFormatRequest) Descriptor() ([]byte, []int) { + return file_control_proto_rawDescGZIP(), []int{0} +} + +func (x *FinalizeFormatRequest) GetLevel() uint32 { + if x != nil { + return x.Level + } + return 0 +} + +type FinalizeFormatResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FormatLevel uint32 `protobuf:"varint,1,opt,name=format_level,json=formatLevel,proto3" json:"format_level,omitempty"` + Already bool `protobuf:"varint,2,opt,name=already,proto3" json:"already,omitempty"` // the cluster was already at this level: nothing written +} + +func (x *FinalizeFormatResponse) Reset() { + *x = FinalizeFormatResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_control_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FinalizeFormatResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FinalizeFormatResponse) ProtoMessage() {} + +func (x *FinalizeFormatResponse) ProtoReflect() protoreflect.Message { + mi := &file_control_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FinalizeFormatResponse.ProtoReflect.Descriptor instead. +func (*FinalizeFormatResponse) Descriptor() ([]byte, []int) { + return file_control_proto_rawDescGZIP(), []int{1} +} + +func (x *FinalizeFormatResponse) GetFormatLevel() uint32 { + if x != nil { + return x.FormatLevel + } + return 0 +} + +func (x *FinalizeFormatResponse) GetAlready() bool { + if x != nil { + return x.Already + } + return false +} + +type RetireHostRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` + Confirm string `protobuf:"bytes,2,opt,name=confirm,proto3" json:"confirm,omitempty"` // must equal server_id +} + +func (x *RetireHostRequest) Reset() { + *x = RetireHostRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_control_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RetireHostRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RetireHostRequest) ProtoMessage() {} + +func (x *RetireHostRequest) ProtoReflect() protoreflect.Message { + mi := &file_control_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RetireHostRequest.ProtoReflect.Descriptor instead. +func (*RetireHostRequest) Descriptor() ([]byte, []int) { + return file_control_proto_rawDescGZIP(), []int{2} +} + +func (x *RetireHostRequest) GetServerId() string { + if x != nil { + return x.ServerId + } + return "" +} + +func (x *RetireHostRequest) GetConfirm() string { + if x != nil { + return x.Confirm + } + return "" +} + +type RetireHostResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` +} + +func (x *RetireHostResponse) Reset() { + *x = RetireHostResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_control_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RetireHostResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RetireHostResponse) ProtoMessage() {} + +func (x *RetireHostResponse) ProtoReflect() protoreflect.Message { + mi := &file_control_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RetireHostResponse.ProtoReflect.Descriptor instead. +func (*RetireHostResponse) Descriptor() ([]byte, []int) { + return file_control_proto_rawDescGZIP(), []int{3} +} + +func (x *RetireHostResponse) GetServerId() string { + if x != nil { + return x.ServerId + } + return "" +} + // HeartbeatReport — volume -> master observation fact. Field set // field-compatible with authority.HeartbeatMessage (P14 S4 wire). // No authority-mutation fields of any kind. @@ -126,12 +330,18 @@ type HeartbeatReport struct { // the server that holds the volume's current primary line at that // epoch. A replica's own report of its store never sets it. StoreAttestation *StoreAttestation `protobuf:"bytes,9,opt,name=store_attestation,json=storeAttestation,proto3" json:"store_attestation,omitempty"` + // reads_level is the highest cluster format level the reporting + // binary reads: 1 for a binary that reads the v1.1 format. A v1.0.x + // binary sends none (0). The master finalizes the cluster's format only + // when every registered host reports at least the new level, and places, + // moves and fails volumes over only to hosts that read the current one. + ReadsLevel uint32 `protobuf:"varint,10,opt,name=reads_level,json=readsLevel,proto3" json:"reads_level,omitempty"` } func (x *HeartbeatReport) Reset() { *x = HeartbeatReport{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[0] + mi := &file_control_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -144,7 +354,7 @@ func (x *HeartbeatReport) String() string { func (*HeartbeatReport) ProtoMessage() {} func (x *HeartbeatReport) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[0] + mi := &file_control_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -157,7 +367,7 @@ func (x *HeartbeatReport) ProtoReflect() protoreflect.Message { // Deprecated: Use HeartbeatReport.ProtoReflect.Descriptor instead. func (*HeartbeatReport) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{0} + return file_control_proto_rawDescGZIP(), []int{4} } func (x *HeartbeatReport) GetServerId() string { @@ -223,6 +433,13 @@ func (x *HeartbeatReport) GetStoreAttestation() *StoreAttestation { return nil } +func (x *HeartbeatReport) GetReadsLevel() uint32 { + if x != nil { + return x.ReadsLevel + } + return 0 +} + // StoreAttestation is a primary's attestation of its write-ACK set at one // epoch: every replica in it with the store id (the store's superblock // UUID) of the store that answered its barriers, the primary's own store @@ -242,7 +459,7 @@ type StoreAttestation struct { func (x *StoreAttestation) Reset() { *x = StoreAttestation{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[1] + mi := &file_control_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -255,7 +472,7 @@ func (x *StoreAttestation) String() string { func (*StoreAttestation) ProtoMessage() {} func (x *StoreAttestation) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[1] + mi := &file_control_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -268,7 +485,7 @@ func (x *StoreAttestation) ProtoReflect() protoreflect.Message { // Deprecated: Use StoreAttestation.ProtoReflect.Descriptor instead. func (*StoreAttestation) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{1} + return file_control_proto_rawDescGZIP(), []int{5} } func (x *StoreAttestation) GetVolumeId() string { @@ -311,7 +528,7 @@ type AttestedStore struct { func (x *AttestedStore) Reset() { *x = AttestedStore{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[2] + mi := &file_control_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -324,7 +541,7 @@ func (x *AttestedStore) String() string { func (*AttestedStore) ProtoMessage() {} func (x *AttestedStore) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[2] + mi := &file_control_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -337,7 +554,7 @@ func (x *AttestedStore) ProtoReflect() protoreflect.Message { // Deprecated: Use AttestedStore.ProtoReflect.Descriptor instead. func (*AttestedStore) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{2} + return file_control_proto_rawDescGZIP(), []int{6} } func (x *AttestedStore) GetReplicaId() string { @@ -389,7 +606,7 @@ type HeartbeatSlot struct { func (x *HeartbeatSlot) Reset() { *x = HeartbeatSlot{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[3] + mi := &file_control_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -402,7 +619,7 @@ func (x *HeartbeatSlot) String() string { func (*HeartbeatSlot) ProtoMessage() {} func (x *HeartbeatSlot) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[3] + mi := &file_control_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -415,7 +632,7 @@ func (x *HeartbeatSlot) ProtoReflect() protoreflect.Message { // Deprecated: Use HeartbeatSlot.ProtoReflect.Descriptor instead. func (*HeartbeatSlot) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{3} + return file_control_proto_rawDescGZIP(), []int{7} } func (x *HeartbeatSlot) GetVolumeId() string { @@ -535,7 +752,7 @@ type FrontendTarget struct { func (x *FrontendTarget) Reset() { *x = FrontendTarget{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[4] + mi := &file_control_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -548,7 +765,7 @@ func (x *FrontendTarget) String() string { func (*FrontendTarget) ProtoMessage() {} func (x *FrontendTarget) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[4] + mi := &file_control_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -561,7 +778,7 @@ func (x *FrontendTarget) ProtoReflect() protoreflect.Message { // Deprecated: Use FrontendTarget.ProtoReflect.Descriptor instead. func (*FrontendTarget) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{4} + return file_control_proto_rawDescGZIP(), []int{8} } func (x *FrontendTarget) GetProtocol() string { @@ -632,7 +849,7 @@ type HeartbeatAck struct { func (x *HeartbeatAck) Reset() { *x = HeartbeatAck{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[5] + mi := &file_control_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -645,7 +862,7 @@ func (x *HeartbeatAck) String() string { func (*HeartbeatAck) ProtoMessage() {} func (x *HeartbeatAck) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[5] + mi := &file_control_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -658,7 +875,7 @@ func (x *HeartbeatAck) ProtoReflect() protoreflect.Message { // Deprecated: Use HeartbeatAck.ProtoReflect.Descriptor instead. func (*HeartbeatAck) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{5} + return file_control_proto_rawDescGZIP(), []int{9} } func (x *HeartbeatAck) GetAcceptedAt() *timestamppb.Timestamp { @@ -687,7 +904,7 @@ type ClusterEventAck struct { func (x *ClusterEventAck) Reset() { *x = ClusterEventAck{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[6] + mi := &file_control_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -700,7 +917,7 @@ func (x *ClusterEventAck) String() string { func (*ClusterEventAck) ProtoMessage() {} func (x *ClusterEventAck) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[6] + mi := &file_control_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -713,7 +930,7 @@ func (x *ClusterEventAck) ProtoReflect() protoreflect.Message { // Deprecated: Use ClusterEventAck.ProtoReflect.Descriptor instead. func (*ClusterEventAck) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{6} + return file_control_proto_rawDescGZIP(), []int{10} } func (x *ClusterEventAck) GetAcceptedAt() *timestamppb.Timestamp { @@ -746,7 +963,7 @@ type SubscribeRequest struct { func (x *SubscribeRequest) Reset() { *x = SubscribeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[7] + mi := &file_control_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -759,7 +976,7 @@ func (x *SubscribeRequest) String() string { func (*SubscribeRequest) ProtoMessage() {} func (x *SubscribeRequest) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[7] + mi := &file_control_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -772,7 +989,7 @@ func (x *SubscribeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead. func (*SubscribeRequest) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{7} + return file_control_proto_rawDescGZIP(), []int{11} } func (x *SubscribeRequest) GetVolumeId() string { @@ -830,7 +1047,7 @@ type ReplicaDescriptor struct { func (x *ReplicaDescriptor) Reset() { *x = ReplicaDescriptor{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[8] + mi := &file_control_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -843,7 +1060,7 @@ func (x *ReplicaDescriptor) String() string { func (*ReplicaDescriptor) ProtoMessage() {} func (x *ReplicaDescriptor) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[8] + mi := &file_control_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -856,7 +1073,7 @@ func (x *ReplicaDescriptor) ProtoReflect() protoreflect.Message { // Deprecated: Use ReplicaDescriptor.ProtoReflect.Descriptor instead. func (*ReplicaDescriptor) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{8} + return file_control_proto_rawDescGZIP(), []int{12} } func (x *ReplicaDescriptor) GetReplicaId() string { @@ -969,12 +1186,17 @@ type AssignmentFact struct { // is another one does not serve: a later failover reads its // acknowledged writes by this profile's rules. AckProfile string `protobuf:"bytes,18,opt,name=ack_profile,json=ackProfile,proto3" json:"ack_profile,omitempty"` + // The cluster's format level (0 until the operator finalizes the v1.1 + // format, then 1). A holder upgrades a store and writes the v1.1 format + // only at level 1; absent (an older master, or no assignment yet) means + // level 0. + FormatLevel uint32 `protobuf:"varint,19,opt,name=format_level,json=formatLevel,proto3" json:"format_level,omitempty"` } func (x *AssignmentFact) Reset() { *x = AssignmentFact{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[9] + mi := &file_control_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -987,7 +1209,7 @@ func (x *AssignmentFact) String() string { func (*AssignmentFact) ProtoMessage() {} func (x *AssignmentFact) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[9] + mi := &file_control_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1000,7 +1222,7 @@ func (x *AssignmentFact) ProtoReflect() protoreflect.Message { // Deprecated: Use AssignmentFact.ProtoReflect.Descriptor instead. func (*AssignmentFact) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{9} + return file_control_proto_rawDescGZIP(), []int{13} } func (x *AssignmentFact) GetVolumeId() string { @@ -1129,6 +1351,13 @@ func (x *AssignmentFact) GetAckProfile() string { return "" } +func (x *AssignmentFact) GetFormatLevel() uint32 { + if x != nil { + return x.FormatLevel + } + return 0 +} + type StatusRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1140,7 +1369,7 @@ type StatusRequest struct { func (x *StatusRequest) Reset() { *x = StatusRequest{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[10] + mi := &file_control_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1153,7 +1382,7 @@ func (x *StatusRequest) String() string { func (*StatusRequest) ProtoMessage() {} func (x *StatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[10] + mi := &file_control_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1166,7 +1395,7 @@ func (x *StatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead. func (*StatusRequest) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{10} + return file_control_proto_rawDescGZIP(), []int{14} } func (x *StatusRequest) GetVolumeId() string { @@ -1200,7 +1429,7 @@ type StatusResponse struct { func (x *StatusResponse) Reset() { *x = StatusResponse{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[11] + mi := &file_control_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1213,7 +1442,7 @@ func (x *StatusResponse) String() string { func (*StatusResponse) ProtoMessage() {} func (x *StatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[11] + mi := &file_control_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1226,7 +1455,7 @@ func (x *StatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead. func (*StatusResponse) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{11} + return file_control_proto_rawDescGZIP(), []int{15} } func (x *StatusResponse) GetVolumeId() string { @@ -1304,7 +1533,7 @@ type ReplicaUnhealthy struct { func (x *ReplicaUnhealthy) Reset() { *x = ReplicaUnhealthy{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[12] + mi := &file_control_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1317,7 +1546,7 @@ func (x *ReplicaUnhealthy) String() string { func (*ReplicaUnhealthy) ProtoMessage() {} func (x *ReplicaUnhealthy) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[12] + mi := &file_control_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1330,7 +1559,7 @@ func (x *ReplicaUnhealthy) ProtoReflect() protoreflect.Message { // Deprecated: Use ReplicaUnhealthy.ProtoReflect.Descriptor instead. func (*ReplicaUnhealthy) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{12} + return file_control_proto_rawDescGZIP(), []int{16} } func (x *ReplicaUnhealthy) GetReplicaId() string { @@ -1356,7 +1585,7 @@ type GetClusterStatusRequest struct { func (x *GetClusterStatusRequest) Reset() { *x = GetClusterStatusRequest{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[13] + mi := &file_control_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1369,7 +1598,7 @@ func (x *GetClusterStatusRequest) String() string { func (*GetClusterStatusRequest) ProtoMessage() {} func (x *GetClusterStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[13] + mi := &file_control_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1382,7 +1611,7 @@ func (x *GetClusterStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetClusterStatusRequest.ProtoReflect.Descriptor instead. func (*GetClusterStatusRequest) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{13} + return file_control_proto_rawDescGZIP(), []int{17} } type ListVolumesRequest struct { @@ -1394,7 +1623,7 @@ type ListVolumesRequest struct { func (x *ListVolumesRequest) Reset() { *x = ListVolumesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[14] + mi := &file_control_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1407,7 +1636,7 @@ func (x *ListVolumesRequest) String() string { func (*ListVolumesRequest) ProtoMessage() {} func (x *ListVolumesRequest) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[14] + mi := &file_control_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1420,7 +1649,7 @@ func (x *ListVolumesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListVolumesRequest.ProtoReflect.Descriptor instead. func (*ListVolumesRequest) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{14} + return file_control_proto_rawDescGZIP(), []int{18} } type GetVolumeStatusRequest struct { @@ -1434,7 +1663,7 @@ type GetVolumeStatusRequest struct { func (x *GetVolumeStatusRequest) Reset() { *x = GetVolumeStatusRequest{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[15] + mi := &file_control_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1447,7 +1676,7 @@ func (x *GetVolumeStatusRequest) String() string { func (*GetVolumeStatusRequest) ProtoMessage() {} func (x *GetVolumeStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[15] + mi := &file_control_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1460,7 +1689,7 @@ func (x *GetVolumeStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetVolumeStatusRequest.ProtoReflect.Descriptor instead. func (*GetVolumeStatusRequest) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{15} + return file_control_proto_rawDescGZIP(), []int{19} } func (x *GetVolumeStatusRequest) GetVolumeId() string { @@ -1481,7 +1710,7 @@ type GetVolumeTimelineRequest struct { func (x *GetVolumeTimelineRequest) Reset() { *x = GetVolumeTimelineRequest{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[16] + mi := &file_control_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1494,7 +1723,7 @@ func (x *GetVolumeTimelineRequest) String() string { func (*GetVolumeTimelineRequest) ProtoMessage() {} func (x *GetVolumeTimelineRequest) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[16] + mi := &file_control_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1507,7 +1736,7 @@ func (x *GetVolumeTimelineRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetVolumeTimelineRequest.ProtoReflect.Descriptor instead. func (*GetVolumeTimelineRequest) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{16} + return file_control_proto_rawDescGZIP(), []int{20} } func (x *GetVolumeTimelineRequest) GetVolumeId() string { @@ -1528,7 +1757,7 @@ type WatchClusterEventsRequest struct { func (x *WatchClusterEventsRequest) Reset() { *x = WatchClusterEventsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[17] + mi := &file_control_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1541,7 +1770,7 @@ func (x *WatchClusterEventsRequest) String() string { func (*WatchClusterEventsRequest) ProtoMessage() {} func (x *WatchClusterEventsRequest) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[17] + mi := &file_control_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1554,7 +1783,7 @@ func (x *WatchClusterEventsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WatchClusterEventsRequest.ProtoReflect.Descriptor instead. func (*WatchClusterEventsRequest) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{17} + return file_control_proto_rawDescGZIP(), []int{21} } func (x *WatchClusterEventsRequest) GetSinceEventId() string { @@ -1579,7 +1808,7 @@ type ObservationCondition struct { func (x *ObservationCondition) Reset() { *x = ObservationCondition{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[18] + mi := &file_control_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1592,7 +1821,7 @@ func (x *ObservationCondition) String() string { func (*ObservationCondition) ProtoMessage() {} func (x *ObservationCondition) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[18] + mi := &file_control_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1605,7 +1834,7 @@ func (x *ObservationCondition) ProtoReflect() protoreflect.Message { // Deprecated: Use ObservationCondition.ProtoReflect.Descriptor instead. func (*ObservationCondition) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{18} + return file_control_proto_rawDescGZIP(), []int{22} } func (x *ObservationCondition) GetType() string { @@ -1662,7 +1891,7 @@ type ClusterStatusResponse struct { func (x *ClusterStatusResponse) Reset() { *x = ClusterStatusResponse{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[19] + mi := &file_control_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1675,7 +1904,7 @@ func (x *ClusterStatusResponse) String() string { func (*ClusterStatusResponse) ProtoMessage() {} func (x *ClusterStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[19] + mi := &file_control_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1688,7 +1917,7 @@ func (x *ClusterStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ClusterStatusResponse.ProtoReflect.Descriptor instead. func (*ClusterStatusResponse) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{19} + return file_control_proto_rawDescGZIP(), []int{23} } func (x *ClusterStatusResponse) GetSchemaVersion() string { @@ -1777,7 +2006,7 @@ type NodeEvidence struct { func (x *NodeEvidence) Reset() { *x = NodeEvidence{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[20] + mi := &file_control_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1790,7 +2019,7 @@ func (x *NodeEvidence) String() string { func (*NodeEvidence) ProtoMessage() {} func (x *NodeEvidence) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[20] + mi := &file_control_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1803,7 +2032,7 @@ func (x *NodeEvidence) ProtoReflect() protoreflect.Message { // Deprecated: Use NodeEvidence.ProtoReflect.Descriptor instead. func (*NodeEvidence) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{20} + return file_control_proto_rawDescGZIP(), []int{24} } func (x *NodeEvidence) GetNodeName() string { @@ -1927,7 +2156,7 @@ type VolumeEvidence struct { func (x *VolumeEvidence) Reset() { *x = VolumeEvidence{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[21] + mi := &file_control_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1940,7 +2169,7 @@ func (x *VolumeEvidence) String() string { func (*VolumeEvidence) ProtoMessage() {} func (x *VolumeEvidence) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[21] + mi := &file_control_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1953,7 +2182,7 @@ func (x *VolumeEvidence) ProtoReflect() protoreflect.Message { // Deprecated: Use VolumeEvidence.ProtoReflect.Descriptor instead. func (*VolumeEvidence) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{21} + return file_control_proto_rawDescGZIP(), []int{25} } func (x *VolumeEvidence) GetVolumeId() string { @@ -2127,7 +2356,7 @@ type ReplicaEvidence struct { func (x *ReplicaEvidence) Reset() { *x = ReplicaEvidence{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[22] + mi := &file_control_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2140,7 +2369,7 @@ func (x *ReplicaEvidence) String() string { func (*ReplicaEvidence) ProtoMessage() {} func (x *ReplicaEvidence) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[22] + mi := &file_control_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2153,7 +2382,7 @@ func (x *ReplicaEvidence) ProtoReflect() protoreflect.Message { // Deprecated: Use ReplicaEvidence.ProtoReflect.Descriptor instead. func (*ReplicaEvidence) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{22} + return file_control_proto_rawDescGZIP(), []int{26} } func (x *ReplicaEvidence) GetReplicaId() string { @@ -2328,7 +2557,7 @@ type ClusterEvent struct { func (x *ClusterEvent) Reset() { *x = ClusterEvent{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[23] + mi := &file_control_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2341,7 +2570,7 @@ func (x *ClusterEvent) String() string { func (*ClusterEvent) ProtoMessage() {} func (x *ClusterEvent) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[23] + mi := &file_control_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2354,7 +2583,7 @@ func (x *ClusterEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use ClusterEvent.ProtoReflect.Descriptor instead. func (*ClusterEvent) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{23} + return file_control_proto_rawDescGZIP(), []int{27} } func (x *ClusterEvent) GetEventId() string { @@ -2475,7 +2704,7 @@ type ListVolumesResponse struct { func (x *ListVolumesResponse) Reset() { *x = ListVolumesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[24] + mi := &file_control_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2488,7 +2717,7 @@ func (x *ListVolumesResponse) String() string { func (*ListVolumesResponse) ProtoMessage() {} func (x *ListVolumesResponse) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[24] + mi := &file_control_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2501,7 +2730,7 @@ func (x *ListVolumesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListVolumesResponse.ProtoReflect.Descriptor instead. func (*ListVolumesResponse) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{24} + return file_control_proto_rawDescGZIP(), []int{28} } func (x *ListVolumesResponse) GetSchemaVersion() string { @@ -2539,7 +2768,7 @@ type VolumeTimelineResponse struct { func (x *VolumeTimelineResponse) Reset() { *x = VolumeTimelineResponse{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[25] + mi := &file_control_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2552,7 +2781,7 @@ func (x *VolumeTimelineResponse) String() string { func (*VolumeTimelineResponse) ProtoMessage() {} func (x *VolumeTimelineResponse) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[25] + mi := &file_control_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2565,7 +2794,7 @@ func (x *VolumeTimelineResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use VolumeTimelineResponse.ProtoReflect.Descriptor instead. func (*VolumeTimelineResponse) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{25} + return file_control_proto_rawDescGZIP(), []int{29} } func (x *VolumeTimelineResponse) GetSchemaVersion() string { @@ -2620,7 +2849,7 @@ type CreateVolumeRequest struct { func (x *CreateVolumeRequest) Reset() { *x = CreateVolumeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[26] + mi := &file_control_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2633,7 +2862,7 @@ func (x *CreateVolumeRequest) String() string { func (*CreateVolumeRequest) ProtoMessage() {} func (x *CreateVolumeRequest) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[26] + mi := &file_control_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2646,7 +2875,7 @@ func (x *CreateVolumeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateVolumeRequest.ProtoReflect.Descriptor instead. func (*CreateVolumeRequest) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{26} + return file_control_proto_rawDescGZIP(), []int{30} } func (x *CreateVolumeRequest) GetVolumeId() string { @@ -2776,7 +3005,7 @@ type CreateVolumeResponse struct { func (x *CreateVolumeResponse) Reset() { *x = CreateVolumeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[27] + mi := &file_control_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2789,7 +3018,7 @@ func (x *CreateVolumeResponse) String() string { func (*CreateVolumeResponse) ProtoMessage() {} func (x *CreateVolumeResponse) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[27] + mi := &file_control_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2802,7 +3031,7 @@ func (x *CreateVolumeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateVolumeResponse.ProtoReflect.Descriptor instead. func (*CreateVolumeResponse) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{27} + return file_control_proto_rawDescGZIP(), []int{31} } func (x *CreateVolumeResponse) GetVolumeId() string { @@ -2928,7 +3157,7 @@ type GetLifecycleVolumeRequest struct { func (x *GetLifecycleVolumeRequest) Reset() { *x = GetLifecycleVolumeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[28] + mi := &file_control_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2941,7 +3170,7 @@ func (x *GetLifecycleVolumeRequest) String() string { func (*GetLifecycleVolumeRequest) ProtoMessage() {} func (x *GetLifecycleVolumeRequest) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[28] + mi := &file_control_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2954,7 +3183,7 @@ func (x *GetLifecycleVolumeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetLifecycleVolumeRequest.ProtoReflect.Descriptor instead. func (*GetLifecycleVolumeRequest) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{28} + return file_control_proto_rawDescGZIP(), []int{32} } func (x *GetLifecycleVolumeRequest) GetVolumeId() string { @@ -2975,7 +3204,7 @@ type DeleteVolumeRequest struct { func (x *DeleteVolumeRequest) Reset() { *x = DeleteVolumeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[29] + mi := &file_control_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2988,7 +3217,7 @@ func (x *DeleteVolumeRequest) String() string { func (*DeleteVolumeRequest) ProtoMessage() {} func (x *DeleteVolumeRequest) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[29] + mi := &file_control_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3001,7 +3230,7 @@ func (x *DeleteVolumeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteVolumeRequest.ProtoReflect.Descriptor instead. func (*DeleteVolumeRequest) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{29} + return file_control_proto_rawDescGZIP(), []int{33} } func (x *DeleteVolumeRequest) GetVolumeId() string { @@ -3020,7 +3249,7 @@ type DeleteVolumeResponse struct { func (x *DeleteVolumeResponse) Reset() { *x = DeleteVolumeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[30] + mi := &file_control_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3033,7 +3262,7 @@ func (x *DeleteVolumeResponse) String() string { func (*DeleteVolumeResponse) ProtoMessage() {} func (x *DeleteVolumeResponse) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[30] + mi := &file_control_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3046,7 +3275,7 @@ func (x *DeleteVolumeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteVolumeResponse.ProtoReflect.Descriptor instead. func (*DeleteVolumeResponse) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{30} + return file_control_proto_rawDescGZIP(), []int{34} } type MarkVolumeDeletingRequest struct { @@ -3062,7 +3291,7 @@ type MarkVolumeDeletingRequest struct { func (x *MarkVolumeDeletingRequest) Reset() { *x = MarkVolumeDeletingRequest{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[31] + mi := &file_control_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3075,7 +3304,7 @@ func (x *MarkVolumeDeletingRequest) String() string { func (*MarkVolumeDeletingRequest) ProtoMessage() {} func (x *MarkVolumeDeletingRequest) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[31] + mi := &file_control_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3088,7 +3317,7 @@ func (x *MarkVolumeDeletingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use MarkVolumeDeletingRequest.ProtoReflect.Descriptor instead. func (*MarkVolumeDeletingRequest) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{31} + return file_control_proto_rawDescGZIP(), []int{35} } func (x *MarkVolumeDeletingRequest) GetVolumeId() string { @@ -3121,7 +3350,7 @@ type MarkVolumeDeletingResponse struct { func (x *MarkVolumeDeletingResponse) Reset() { *x = MarkVolumeDeletingResponse{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[32] + mi := &file_control_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3134,7 +3363,7 @@ func (x *MarkVolumeDeletingResponse) String() string { func (*MarkVolumeDeletingResponse) ProtoMessage() {} func (x *MarkVolumeDeletingResponse) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[32] + mi := &file_control_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3147,7 +3376,7 @@ func (x *MarkVolumeDeletingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use MarkVolumeDeletingResponse.ProtoReflect.Descriptor instead. func (*MarkVolumeDeletingResponse) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{32} + return file_control_proto_rawDescGZIP(), []int{36} } func (x *MarkVolumeDeletingResponse) GetKnown() bool { @@ -3185,7 +3414,7 @@ type FailbackRequest struct { func (x *FailbackRequest) Reset() { *x = FailbackRequest{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[33] + mi := &file_control_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3198,7 +3427,7 @@ func (x *FailbackRequest) String() string { func (*FailbackRequest) ProtoMessage() {} func (x *FailbackRequest) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[33] + mi := &file_control_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3211,7 +3440,7 @@ func (x *FailbackRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use FailbackRequest.ProtoReflect.Descriptor instead. func (*FailbackRequest) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{33} + return file_control_proto_rawDescGZIP(), []int{37} } func (x *FailbackRequest) GetVolumeId() string { @@ -3308,7 +3537,7 @@ type FailbackResponse struct { func (x *FailbackResponse) Reset() { *x = FailbackResponse{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[34] + mi := &file_control_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3321,7 +3550,7 @@ func (x *FailbackResponse) String() string { func (*FailbackResponse) ProtoMessage() {} func (x *FailbackResponse) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[34] + mi := &file_control_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3334,7 +3563,7 @@ func (x *FailbackResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use FailbackResponse.ProtoReflect.Descriptor instead. func (*FailbackResponse) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{34} + return file_control_proto_rawDescGZIP(), []int{38} } func (x *FailbackResponse) GetFailbackStarted() bool { @@ -3398,7 +3627,7 @@ type ProbeRoundSubscription struct { func (x *ProbeRoundSubscription) Reset() { *x = ProbeRoundSubscription{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[35] + mi := &file_control_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3411,7 +3640,7 @@ func (x *ProbeRoundSubscription) String() string { func (*ProbeRoundSubscription) ProtoMessage() {} func (x *ProbeRoundSubscription) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[35] + mi := &file_control_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3424,7 +3653,7 @@ func (x *ProbeRoundSubscription) ProtoReflect() protoreflect.Message { // Deprecated: Use ProbeRoundSubscription.ProtoReflect.Descriptor instead. func (*ProbeRoundSubscription) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{35} + return file_control_proto_rawDescGZIP(), []int{39} } func (x *ProbeRoundSubscription) GetServerId() string { @@ -3456,7 +3685,7 @@ type ProbeRound struct { func (x *ProbeRound) Reset() { *x = ProbeRound{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[36] + mi := &file_control_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3469,7 +3698,7 @@ func (x *ProbeRound) String() string { func (*ProbeRound) ProtoMessage() {} func (x *ProbeRound) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[36] + mi := &file_control_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3482,7 +3711,7 @@ func (x *ProbeRound) ProtoReflect() protoreflect.Message { // Deprecated: Use ProbeRound.ProtoReflect.Descriptor instead. func (*ProbeRound) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{36} + return file_control_proto_rawDescGZIP(), []int{40} } func (x *ProbeRound) GetVolumeId() string { @@ -3560,7 +3789,7 @@ type ProbeAnswer struct { func (x *ProbeAnswer) Reset() { *x = ProbeAnswer{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[37] + mi := &file_control_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3573,7 +3802,7 @@ func (x *ProbeAnswer) String() string { func (*ProbeAnswer) ProtoMessage() {} func (x *ProbeAnswer) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[37] + mi := &file_control_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3586,7 +3815,7 @@ func (x *ProbeAnswer) ProtoReflect() protoreflect.Message { // Deprecated: Use ProbeAnswer.ProtoReflect.Descriptor instead. func (*ProbeAnswer) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{37} + return file_control_proto_rawDescGZIP(), []int{41} } func (x *ProbeAnswer) GetServerId() string { @@ -3703,7 +3932,7 @@ type ProbeAck struct { func (x *ProbeAck) Reset() { *x = ProbeAck{} if protoimpl.UnsafeEnabled { - mi := &file_control_proto_msgTypes[38] + mi := &file_control_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3716,7 +3945,7 @@ func (x *ProbeAck) String() string { func (*ProbeAck) ProtoMessage() {} func (x *ProbeAck) ProtoReflect() protoreflect.Message { - mi := &file_control_proto_msgTypes[38] + mi := &file_control_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3729,7 +3958,7 @@ func (x *ProbeAck) ProtoReflect() protoreflect.Message { // Deprecated: Use ProbeAck.ProtoReflect.Descriptor instead. func (*ProbeAck) Descriptor() ([]byte, []int) { - return file_control_proto_rawDescGZIP(), []int{38} + return file_control_proto_rawDescGZIP(), []int{42} } var File_control_proto protoreflect.FileDescriptor @@ -3739,823 +3968,857 @@ var file_control_proto_rawDesc = []byte{ 0x17, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa8, 0x03, 0x0a, 0x0f, 0x48, 0x65, - 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1b, 0x0a, - 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, - 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x12, - 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1a, 0x0a, - 0x08, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x08, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x3c, 0x0a, 0x05, 0x73, 0x6c, 0x6f, - 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, - 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x6f, 0x6c, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x53, 0x6c, 0x6f, 0x74, - 0x52, 0x05, 0x73, 0x6c, 0x6f, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x63, 0x68, 0x69, - 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x63, - 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, - 0x65, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x64, 0x65, 0x76, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0e, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x44, 0x65, 0x76, - 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x6f, 0x74, - 0x5f, 0x66, 0x73, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x64, 0x75, 0x72, - 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x46, 0x73, 0x69, 0x64, 0x12, 0x56, 0x0a, 0x11, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, - 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, - 0x6c, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x10, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa4, 0x01, 0x0a, 0x10, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x41, 0x74, - 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, - 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x3e, 0x0a, 0x06, 0x73, - 0x74, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73, 0x65, - 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, - 0x6f, 0x72, 0x65, 0x52, 0x06, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x22, 0x49, 0x0a, 0x0d, 0x41, - 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x1d, 0x0a, 0x0a, - 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, - 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, - 0x74, 0x6f, 0x72, 0x65, 0x49, 0x64, 0x22, 0xee, 0x03, 0x0a, 0x0d, 0x48, 0x65, 0x61, 0x72, 0x74, - 0x62, 0x65, 0x61, 0x74, 0x53, 0x6c, 0x6f, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, - 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, - 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x41, 0x64, 0x64, - 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x74, 0x72, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x74, 0x72, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1c, - 0x0a, 0x09, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x09, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2a, 0x0a, 0x11, - 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, - 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x72, 0x65, 0x61, 0x64, 0x79, 0x46, 0x6f, - 0x72, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6c, 0x69, 0x67, - 0x69, 0x62, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x65, 0x6c, 0x69, 0x67, - 0x69, 0x62, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, - 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, - 0x77, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x73, - 0x63, 0x6f, 0x72, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x65, 0x76, 0x69, 0x64, - 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x52, 0x6f, 0x6c, 0x65, 0x43, 0x6c, - 0x61, 0x69, 0x6d, 0x12, 0x45, 0x0a, 0x09, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x73, - 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, - 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x2e, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, - 0x09, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x6e, - 0x63, 0x61, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x69, 0x6e, 0x63, 0x61, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, - 0x75, 0x6e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x6e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, - 0x79, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0xc7, 0x01, 0x0a, 0x0e, 0x46, 0x72, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x71, - 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x71, 0x6e, 0x12, 0x10, 0x0a, 0x03, - 0x6e, 0x71, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6e, 0x71, 0x6e, 0x12, 0x10, - 0x0a, 0x03, 0x6c, 0x75, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6c, 0x75, 0x6e, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x73, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, - 0x6e, 0x73, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, - 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, - 0x72, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, - 0x64, 0x22, 0x67, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x41, 0x63, - 0x6b, 0x12, 0x3b, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x69, 0x0a, 0x0f, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x6b, 0x12, 0x3b, 0x0a, - 0x0b, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, - 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x8e, 0x01, 0x0a, 0x10, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x65, - 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x72, 0x65, - 0x73, 0x75, 0x6d, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x22, 0xc8, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, - 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, - 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, - 0x68, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x65, 0x6e, 0x64, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, - 0x64, 0x61, 0x74, 0x61, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x64, 0x61, 0x74, 0x61, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x74, 0x72, - 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x74, - 0x72, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x49, - 0x64, 0x22, 0x8a, 0x06, 0x0a, 0x0e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, - 0x46, 0x61, 0x63, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, - 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, - 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, - 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1b, - 0x0a, 0x09, 0x63, 0x74, 0x72, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x63, 0x74, 0x72, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x12, 0x40, 0x0a, 0x05, 0x70, - 0x65, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x73, 0x65, 0x61, - 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x44, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x05, 0x70, 0x65, 0x65, 0x72, 0x73, 0x12, 0x2e, 0x0a, - 0x13, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x70, 0x65, 0x65, 0x72, - 0x53, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, - 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x0c, 0x70, 0x72, - 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x24, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x61, - 0x72, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0b, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, - 0x69, 0x6e, 0x64, 0x12, 0x30, 0x0a, 0x14, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, - 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x73, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x12, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x44, 0x75, 0x72, 0x61, 0x62, - 0x6c, 0x65, 0x4c, 0x73, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, - 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x65, - 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x2c, 0x0a, 0x12, - 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6c, - 0x73, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, - 0x63, 0x65, 0x46, 0x69, 0x72, 0x73, 0x74, 0x4c, 0x73, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x65, 0x76, - 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x64, 0x18, - 0x0e, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x53, - 0x74, 0x6f, 0x72, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x77, 0x61, 0x69, 0x74, 0x65, 0x64, - 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x14, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, - 0x74, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x77, 0x61, 0x69, 0x74, 0x65, 0x64, 0x12, 0x34, 0x0a, 0x16, - 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x5f, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x14, 0x72, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x49, 0x6e, 0x69, 0x74, 0x69, - 0x61, 0x6c, 0x12, 0x29, 0x0a, 0x10, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x6e, 0x63, 0x61, 0x72, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x69, - 0x6e, 0x65, 0x49, 0x6e, 0x63, 0x61, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, - 0x0b, 0x61, 0x63, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x12, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x2c, - 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x22, 0xbd, 0x03, 0x0a, - 0x0e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2d, 0x0a, 0x15, 0x46, 0x69, 0x6e, + 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x55, 0x0a, 0x16, 0x46, 0x69, 0x6e, 0x61, + 0x6c, 0x69, 0x7a, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x5f, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, + 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x22, + 0x4a, 0x0a, 0x11, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x22, 0x31, 0x0a, 0x12, 0x52, + 0x65, 0x74, 0x69, 0x72, 0x65, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x22, 0xc9, + 0x03, 0x0a, 0x0f, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x33, 0x0a, 0x07, 0x73, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x73, 0x65, + 0x6e, 0x74, 0x41, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, + 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x3c, + 0x0a, 0x05, 0x73, 0x6c, 0x6f, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, + 0x74, 0x53, 0x6c, 0x6f, 0x74, 0x52, 0x05, 0x73, 0x6c, 0x6f, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, + 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x64, + 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x64, 0x65, 0x76, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, + 0x6f, 0x74, 0x44, 0x65, 0x76, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x66, 0x73, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0f, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x46, 0x73, 0x69, + 0x64, 0x12, 0x56, 0x0a, 0x11, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, + 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x41, 0x74, 0x74, 0x65, + 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x41, 0x74, + 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x61, + 0x64, 0x73, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, + 0x72, 0x65, 0x61, 0x64, 0x73, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xa4, 0x01, 0x0a, 0x10, 0x53, + 0x74, 0x6f, 0x72, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, - 0x68, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x65, 0x6e, 0x64, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, - 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, - 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x6c, 0x61, 0x73, 0x74, - 0x5f, 0x75, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x61, - 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x6c, 0x61, 0x73, 0x74, 0x55, - 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x12, 0x39, 0x0a, 0x19, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x67, - 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x75, 0x63, 0x6b, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x16, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x67, - 0x65, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x75, 0x63, 0x6b, 0x41, 0x74, 0x12, 0x45, 0x0a, 0x09, 0x66, - 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, - 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x09, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x64, 0x73, 0x12, 0x58, 0x0a, 0x12, 0x75, 0x6e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x5f, - 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, - 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x55, 0x6e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x52, 0x11, 0x75, 0x6e, 0x68, 0x65, 0x61, - 0x6c, 0x74, 0x68, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x22, 0x49, 0x0a, 0x10, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x55, 0x6e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, - 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, - 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x19, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x35, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x56, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x22, - 0x37, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x54, 0x69, 0x6d, 0x65, - 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x22, 0x41, 0x0a, 0x19, 0x57, 0x61, 0x74, 0x63, - 0x68, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, - 0x69, 0x6e, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x90, 0x01, 0x0a, 0x14, - 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x64, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, - 0x72, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, - 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xeb, - 0x03, 0x0a, 0x15, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x3b, 0x0a, 0x0b, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x0a, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x29, 0x0a, 0x10, - 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x52, - 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x3b, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x76, 0x69, - 0x64, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x41, 0x0a, 0x07, - 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, - 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x45, 0x76, - 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x07, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x12, - 0x4d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4f, 0x62, - 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3d, - 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1d, 0x0a, - 0x0a, 0x6e, 0x6f, 0x6e, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x09, 0x6e, 0x6f, 0x6e, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x22, 0xb5, 0x04, 0x0a, - 0x0c, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, - 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6b, 0x75, - 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x4e, - 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x5f, - 0x68, 0x6f, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x68, 0x79, 0x73, - 0x69, 0x63, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x70, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x63, 0x68, - 0x65, 0x64, 0x75, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, - 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, - 0x65, 0x61, 0x64, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 0x61, 0x64, - 0x79, 0x12, 0x46, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, - 0x65, 0x61, 0x74, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x68, 0x12, 0x3e, 0x0a, 0x06, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x41, 0x74, 0x74, 0x65, + 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x06, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x73, 0x22, 0x49, 0x0a, 0x0d, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, + 0x72, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, + 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x64, 0x22, 0xee, 0x03, 0x0a, + 0x0d, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x53, 0x6c, 0x6f, 0x74, 0x12, 0x1b, + 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, + 0x74, 0x61, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, + 0x61, 0x74, 0x61, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x74, 0x72, 0x6c, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x74, 0x72, 0x6c, + 0x41, 0x64, 0x64, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, + 0x6c, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x66, 0x6f, 0x72, 0x5f, + 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x72, + 0x65, 0x61, 0x64, 0x79, 0x46, 0x6f, 0x72, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x1a, + 0x0a, 0x08, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x08, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x77, 0x69, + 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x77, + 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x76, 0x69, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0d, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, + 0x28, 0x0a, 0x10, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x63, 0x6c, + 0x61, 0x69, 0x6d, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, + 0x52, 0x6f, 0x6c, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x12, 0x45, 0x0a, 0x09, 0x66, 0x72, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, + 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x54, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x09, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x73, + 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x6e, 0x63, 0x61, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x6e, 0x63, 0x61, 0x72, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x5f, + 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x6e, + 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0xc7, 0x01, + 0x0a, 0x0e, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, + 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, + 0x12, 0x10, 0x0a, 0x03, 0x69, 0x71, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, + 0x71, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x71, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6e, 0x71, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x75, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x03, 0x6c, 0x75, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x73, 0x69, 0x64, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x6e, 0x73, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, + 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x22, 0x67, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x72, 0x74, + 0x62, 0x65, 0x61, 0x74, 0x41, 0x63, 0x6b, 0x12, 0x3b, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x70, + 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x48, 0x65, - 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x41, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x27, - 0x0a, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, - 0x64, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6e, 0x67, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, 0x4d, - 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0b, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4f, 0x62, 0x73, - 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x0a, - 0x0b, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x69, 0x70, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x49, 0x70, 0x12, 0x34, - 0x0a, 0x16, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, - 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x22, 0x98, 0x06, 0x0a, 0x0e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x45, - 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, - 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x76, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x76, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, - 0x07, 0x70, 0x76, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x70, 0x76, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, - 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x6b, 0x5f, 0x70, 0x72, 0x6f, - 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x6b, 0x50, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x5f, - 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, - 0x6c, 0x61, 0x69, 0x6d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x64, - 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x64, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x10, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, - 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, - 0x73, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x72, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, - 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x12, 0x21, 0x0a, 0x0c, - 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x0d, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x12, - 0x25, 0x0a, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, - 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, - 0x0f, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x29, 0x0a, 0x10, - 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x65, 0x61, 0x77, - 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x45, 0x76, 0x69, 0x64, 0x65, - 0x6e, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x4d, 0x0a, - 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4f, 0x62, 0x73, 0x65, - 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x21, 0x0a, 0x0c, - 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x13, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x2e, 0x0a, 0x13, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x5f, 0x68, 0x69, 0x6e, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x73, 0x75, - 0x70, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x48, 0x69, 0x6e, 0x74, 0x22, - 0x81, 0x07, 0x0a, 0x0f, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x45, 0x76, 0x69, 0x64, 0x65, - 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, - 0x27, 0x0a, 0x0f, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x6e, 0x6f, - 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, - 0x65, 0x74, 0x65, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x68, 0x79, 0x73, - 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x1a, 0x0a, - 0x08, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x08, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x29, 0x0a, - 0x10, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x6c, - 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x75, 0x72, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0e, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x61, 0x74, 0x63, 0x68, 0x65, - 0x64, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x66, 0x72, 0x6f, - 0x6e, 0x74, 0x69, 0x65, 0x72, 0x5f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x14, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x69, - 0x65, 0x72, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x75, 0x72, 0x61, 0x62, - 0x6c, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x69, 0x65, 0x72, 0x5f, 0x6c, 0x73, 0x6e, 0x18, - 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x72, - 0x6f, 0x6e, 0x74, 0x69, 0x65, 0x72, 0x4c, 0x73, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x61, 0x6e, - 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x0b, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0e, 0x63, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, - 0x64, 0x79, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x14, 0x63, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, - 0x64, 0x79, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x11, 0x66, 0x72, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x0d, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x72, - 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x41, 0x64, 0x64, 0x72, 0x12, 0x30, 0x0a, 0x14, 0x73, - 0x74, 0x61, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x66, 0x65, 0x6e, - 0x63, 0x65, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x73, 0x74, 0x61, 0x6c, 0x65, - 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x46, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x12, 0x4d, 0x0a, - 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4f, 0x62, 0x73, 0x65, - 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2e, 0x0a, 0x13, - 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x70, - 0x61, 0x74, 0x68, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x73, 0x75, 0x70, 0x70, 0x6f, - 0x72, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x21, 0x0a, 0x0c, - 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x6e, 0x71, 0x6e, 0x18, 0x13, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x4e, 0x71, 0x6e, 0x12, - 0x23, 0x0a, 0x0d, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x6e, 0x73, 0x69, 0x64, - 0x18, 0x14, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, - 0x4e, 0x73, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, - 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x11, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, - 0x6f, 0x72, 0x74, 0x22, 0xf8, 0x03, 0x0a, 0x0c, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, - 0x39, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, - 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x61, 0x73, - 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, - 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x6c, 0x64, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x6c, - 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x6e, 0x64, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x72, 0x72, 0x65, 0x6c, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, - 0x72, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x65, - 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x0f, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x66, 0x22, 0xbc, - 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, - 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, - 0x0b, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, - 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x41, 0x0a, 0x07, 0x76, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x65, - 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x45, 0x76, 0x69, 0x64, - 0x65, 0x6e, 0x63, 0x65, 0x52, 0x07, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x22, 0xd8, 0x01, - 0x0a, 0x16, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x3b, 0x0a, 0x0b, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x0a, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1b, 0x0a, 0x09, - 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x06, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x65, 0x61, 0x77, - 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xf7, 0x03, 0x0a, 0x13, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, + 0x65, 0x64, 0x41, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, + 0x22, 0x69, 0x0a, 0x0f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x41, 0x63, 0x6b, 0x12, 0x3b, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x12, 0x19, 0x0a, 0x08, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x8e, 0x01, 0x0a, 0x10, + 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, - 0x0a, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x09, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x2d, 0x0a, 0x12, - 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x63, 0x74, - 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x70, - 0x76, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, - 0x76, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x76, 0x63, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, - 0x76, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x70, - 0x76, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x76, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x76, 0x63, 0x5f, 0x75, 0x69, 0x64, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x76, 0x63, 0x55, 0x69, 0x64, 0x12, 0x1a, 0x0a, - 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x66, 0x72, 0x6f, - 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x68, 0x75, 0x6e, 0x6b, - 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x63, 0x68, - 0x75, 0x6e, 0x6b, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x27, 0x0a, - 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x49, 0x64, 0x22, 0xb6, 0x04, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, - 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, + 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, + 0x72, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, + 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x22, 0xc8, 0x01, 0x0a, + 0x11, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, + 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x6e, 0x64, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x41, 0x64, 0x64, 0x72, 0x12, + 0x1b, 0x0a, 0x09, 0x63, 0x74, 0x72, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x63, 0x74, 0x72, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x12, 0x19, 0x0a, 0x08, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x64, 0x22, 0xad, 0x06, 0x0a, 0x0e, 0x41, 0x73, 0x73, 0x69, + 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x61, 0x63, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x29, 0x0a, 0x10, + 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, + 0x41, 0x64, 0x64, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x74, 0x72, 0x6c, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x74, 0x72, 0x6c, 0x41, 0x64, 0x64, + 0x72, 0x12, 0x40, 0x0a, 0x05, 0x70, 0x65, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x2a, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x05, 0x70, 0x65, + 0x65, 0x72, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x5f, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x11, 0x70, 0x65, 0x65, 0x72, 0x53, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x47, 0x0a, 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6b, 0x69, 0x6e, 0x64, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, + 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0b, 0x70, 0x72, + 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x30, 0x0a, 0x14, 0x65, 0x76, 0x69, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x73, + 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x44, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x73, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x65, + 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0d, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x45, 0x70, 0x6f, + 0x63, 0x68, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x66, + 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6c, 0x73, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, + 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x72, 0x73, 0x74, 0x4c, 0x73, 0x6e, + 0x12, 0x2a, 0x0a, 0x11, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x65, 0x76, 0x69, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x16, + 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x5f, 0x61, + 0x77, 0x61, 0x69, 0x74, 0x65, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x14, 0x72, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x77, 0x61, 0x69, 0x74, + 0x65, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x18, 0x10, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x14, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, + 0x73, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x29, 0x0a, 0x10, 0x6c, 0x69, 0x6e, 0x65, + 0x5f, 0x69, 0x6e, 0x63, 0x61, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x11, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x6e, 0x63, 0x61, 0x72, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, + 0x6c, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x6b, 0x50, 0x72, 0x6f, + 0x66, 0x69, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x5f, 0x6c, + 0x65, 0x76, 0x65, 0x6c, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x74, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x2c, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x49, 0x64, 0x22, 0xbd, 0x03, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x6e, + 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x64, 0x12, 0x36, 0x0a, 0x17, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x6e, 0x73, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x15, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x64, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x19, 0x6c, 0x61, 0x73, + 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, + 0x75, 0x63, 0x6b, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x6c, 0x61, + 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x75, + 0x63, 0x6b, 0x41, 0x74, 0x12, 0x45, 0x0a, 0x09, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, + 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, + 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x2e, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x52, 0x09, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x73, 0x12, 0x58, 0x0a, 0x12, 0x75, + 0x6e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, + 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x55, 0x6e, 0x68, 0x65, 0x61, 0x6c, 0x74, + 0x68, 0x79, 0x52, 0x11, 0x75, 0x6e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x73, 0x22, 0x49, 0x0a, 0x10, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x55, 0x6e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x22, 0x19, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x4c, + 0x69, 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x35, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x69, 0x7a, 0x65, - 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, 0x69, - 0x7a, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x76, 0x63, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x76, 0x63, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x76, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x76, 0x63, 0x4e, 0x61, 0x6d, - 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x76, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x76, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x17, 0x0a, 0x07, 0x70, 0x76, 0x63, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x70, 0x76, 0x63, 0x55, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, - 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x11, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, - 0x6f, 0x72, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x49, 0x64, - 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0b, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x69, 0x7a, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0c, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x42, 0x79, 0x74, 0x65, 0x73, - 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, - 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x61, 0x64, - 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x76, 0x6f, 0x6c, 0x75, - 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x22, 0x37, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, + 0x64, 0x22, 0x41, 0x0a, 0x19, 0x57, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, + 0x0a, 0x0e, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x49, 0x64, 0x22, 0x90, 0x01, 0x0a, 0x14, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xeb, 0x03, 0x0a, 0x15, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x61, 0x70, 0x74, + 0x75, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x61, 0x70, 0x74, 0x75, + 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, + 0x5f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3b, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, + 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x05, + 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x41, 0x0a, 0x07, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, + 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x52, + 0x07, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, + 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, + 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x6f, 0x6e, 0x5f, 0x63, 0x6c, + 0x61, 0x69, 0x6d, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x6f, 0x6e, 0x43, + 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x22, 0xb5, 0x04, 0x0a, 0x0c, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x76, + 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, + 0x73, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6b, 0x75, + 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, + 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x48, 0x6f, 0x73, + 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x70, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x49, 0x70, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x61, 0x62, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x12, 0x46, 0x0a, 0x11, 0x6c, 0x61, + 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x61, 0x74, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, + 0x41, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, + 0x72, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, + 0x12, 0x25, 0x0a, 0x0e, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, + 0x67, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x65, + 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x64, 0x5f, 0x69, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x72, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x49, 0x70, 0x12, 0x34, 0x0a, 0x16, 0x66, 0x72, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x64, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, + 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x22, 0x98, 0x06, + 0x0a, 0x0e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, + 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x70, + 0x76, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, + 0x76, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x76, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x76, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, + 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1f, + 0x0a, 0x0b, 0x61, 0x63, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, + 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x50, 0x72, 0x6f, + 0x66, 0x69, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x5f, + 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, + 0x64, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, + 0x2b, 0x0a, 0x11, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x6f, 0x62, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x16, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0f, + 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, + 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x69, + 0x6d, 0x61, 0x72, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x73, 0x68, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, + 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x44, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x11, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x4d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x65, 0x61, + 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x78, + 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x68, 0x69, 0x6e, 0x74, 0x18, + 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x48, 0x69, 0x6e, 0x74, 0x22, 0x81, 0x07, 0x0a, 0x0f, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6b, 0x75, 0x62, 0x65, + 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0e, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x4e, 0x6f, 0x64, + 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x68, 0x6f, + 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, + 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, + 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x61, 0x74, + 0x63, 0x68, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x75, 0x72, 0x61, + 0x62, 0x6c, 0x65, 0x4c, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x75, + 0x72, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x69, 0x65, 0x72, 0x5f, 0x6b, + 0x6e, 0x6f, 0x77, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x64, 0x75, 0x72, 0x61, + 0x62, 0x6c, 0x65, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x69, 0x65, 0x72, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, + 0x12, 0x30, 0x0a, 0x14, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6e, + 0x74, 0x69, 0x65, 0x72, 0x5f, 0x6c, 0x73, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, + 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x69, 0x65, 0x72, 0x4c, + 0x73, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, + 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x63, 0x61, 0x6e, + 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x34, 0x0a, 0x16, 0x63, + 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x72, + 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x63, 0x61, 0x6e, + 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, 0x64, 0x79, 0x52, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x12, 0x2b, 0x0a, 0x11, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x72, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, + 0x0a, 0x0d, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, + 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x41, + 0x64, 0x64, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x41, 0x64, 0x64, 0x72, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x5f, 0x70, 0x72, + 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x66, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x18, 0x10, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x12, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, + 0x46, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x12, 0x4d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x65, 0x61, + 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, + 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x12, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x11, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, + 0x64, 0x5f, 0x6e, 0x71, 0x6e, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x72, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x4e, 0x71, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x72, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x6e, 0x73, 0x69, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x0c, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x4e, 0x73, 0x69, 0x64, 0x12, 0x2d, 0x0a, + 0x12, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, + 0x6f, 0x72, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x66, 0x72, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x22, 0xf8, 0x03, 0x0a, + 0x0c, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, + 0x08, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, + 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, + 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, + 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, + 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x43, 0x6f, + 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x6c, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x6c, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x65, 0x6e, + 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, + 0x0e, 0x63, 0x6f, 0x72, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x72, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x5f, 0x72, 0x65, 0x66, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x76, 0x69, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x66, 0x22, 0xbc, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, + 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, + 0x64, 0x41, 0x74, 0x12, 0x41, 0x0a, 0x07, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, + 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x07, 0x76, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x22, 0xd8, 0x01, 0x0a, 0x16, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x61, 0x70, 0x74, + 0x75, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x61, 0x70, 0x74, 0x75, + 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x22, 0xf7, 0x03, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x62, + 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, 0x69, 0x7a, 0x65, + 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, + 0x63, 0x74, 0x6f, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x76, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x76, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x23, 0x0a, 0x0d, 0x70, 0x76, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x76, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x76, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x76, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, + 0x07, 0x70, 0x76, 0x63, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x70, 0x76, 0x63, 0x55, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x74, + 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, + 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x69, 0x7a, 0x65, + 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x42, 0x79, 0x74, 0x65, + 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x38, 0x0a, 0x19, 0x47, - 0x65, 0x74, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xb6, 0x04, 0x0a, 0x14, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, + 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, + 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x72, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, + 0x19, 0x0a, 0x08, 0x70, 0x76, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x70, 0x76, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x76, + 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x70, 0x76, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, + 0x17, 0x0a, 0x07, 0x70, 0x76, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x70, 0x76, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x76, 0x63, 0x5f, + 0x75, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x76, 0x63, 0x55, 0x69, + 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x2d, 0x0a, + 0x12, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, + 0x6f, 0x72, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x66, 0x72, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1b, 0x0a, 0x09, + 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x68, 0x75, 0x6e, + 0x6b, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x63, + 0x68, 0x75, 0x6e, 0x6b, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, + 0x27, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x10, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x49, 0x64, 0x22, 0x38, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x66, 0x65, 0x63, + 0x79, 0x63, 0x6c, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x22, 0x32, + 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x49, 0x64, 0x22, 0x16, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x0a, 0x19, 0x4d, 0x61, + 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x48, 0x0a, 0x1a, 0x4d, 0x61, + 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6b, 0x6e, 0x6f, 0x77, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x12, 0x14, + 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x22, 0xa5, 0x04, 0x0a, 0x0f, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, + 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, - 0x75, 0x6d, 0x65, 0x49, 0x64, 0x22, 0x32, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, + 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x41, 0x64, 0x64, 0x72, 0x12, 0x28, + 0x0a, 0x10, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x74, 0x72, 0x6c, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x43, 0x74, 0x72, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x12, 0x3d, 0x0a, 0x1b, 0x65, 0x78, 0x70, 0x65, + 0x63, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x65, + 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x65, 0x78, 0x70, 0x65, 0x63, + 0x74, 0x65, 0x64, 0x5f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, + 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x21, 0x0a, + 0x0c, 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0b, 0x61, 0x63, 0x6b, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x6c, 0x65, + 0x12, 0x45, 0x0a, 0x1f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x66, 0x65, 0x6e, + 0x63, 0x65, 0x64, 0x5f, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x62, + 0x61, 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1c, 0x66, 0x72, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x64, 0x46, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x46, + 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x75, 0x72, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x69, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x76, 0x65, + 0x72, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x75, 0x72, 0x61, 0x62, + 0x6c, 0x65, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x69, 0x65, 0x72, 0x43, 0x6f, 0x76, 0x65, 0x72, 0x65, + 0x64, 0x12, 0x44, 0x0a, 0x1f, 0x6e, 0x6f, 0x5f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x5f, 0x76, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1b, 0x6e, 0x6f, 0x43, 0x72, + 0x6f, 0x73, 0x73, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x76, 0x69, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, + 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x66, 0x73, 0x22, 0xa7, 0x03, 0x0a, + 0x10, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x29, 0x0a, 0x10, 0x66, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x66, 0x61, 0x69, + 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x18, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, + 0x61, 0x64, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x41, 0x64, + 0x76, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x12, 0x41, 0x0a, 0x1d, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x66, + 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x73, + 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x41, 0x66, 0x74, 0x65, + 0x72, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x50, 0x0a, 0x25, 0x70, 0x75, 0x62, + 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x77, 0x61, 0x70, + 0x70, 0x65, 0x64, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x62, 0x61, + 0x63, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x21, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, + 0x68, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x77, 0x61, 0x70, 0x70, 0x65, 0x64, 0x41, 0x66, + 0x74, 0x65, 0x72, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x2e, 0x0a, 0x13, 0x6e, + 0x6f, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x6e, 0x6f, 0x53, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x1f, 0x6e, + 0x6f, 0x5f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x1b, 0x6e, 0x6f, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x56, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x72, 0x65, + 0x66, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x66, 0x73, 0x22, 0x35, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, + 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x22, 0xb0, 0x01, + 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x22, 0x16, 0x0a, 0x14, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x4e, 0x0a, 0x19, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, - 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x22, 0x48, 0x0a, 0x1a, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x14, 0x0a, 0x05, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, - 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xa5, 0x04, 0x0a, 0x0f, - 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, - 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x61, 0x74, - 0x61, 0x41, 0x64, 0x64, 0x72, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, - 0x63, 0x74, 0x72, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x43, 0x74, 0x72, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x12, - 0x3d, 0x0a, 0x1b, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x75, 0x72, 0x72, - 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x43, 0x75, - 0x72, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x34, - 0x0a, 0x16, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x75, 0x72, 0x72, 0x65, - 0x6e, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, - 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, - 0x70, 0x6f, 0x63, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x6c, 0x69, 0x67, - 0x69, 0x62, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x61, 0x63, 0x6b, 0x45, - 0x6c, 0x69, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x45, 0x0a, 0x1f, 0x66, 0x72, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x64, 0x5f, 0x66, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x62, 0x65, 0x66, 0x6f, 0x72, - 0x65, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x1c, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x46, 0x65, 0x6e, 0x63, 0x65, 0x64, - 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x38, - 0x0a, 0x18, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x69, - 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x16, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x69, 0x65, - 0x72, 0x43, 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64, 0x12, 0x44, 0x0a, 0x1f, 0x6e, 0x6f, 0x5f, 0x63, - 0x72, 0x6f, 0x73, 0x73, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x1b, 0x6e, 0x6f, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x23, - 0x0a, 0x0d, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x73, 0x18, - 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x52, - 0x65, 0x66, 0x73, 0x22, 0xa7, 0x03, 0x0a, 0x10, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x66, 0x61, 0x69, 0x6c, - 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0f, 0x66, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x18, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, - 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x61, 0x64, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, - 0x45, 0x70, 0x6f, 0x63, 0x68, 0x41, 0x64, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x12, 0x41, 0x0a, - 0x1d, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, - 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x50, 0x72, 0x69, 0x6d, - 0x61, 0x72, 0x79, 0x41, 0x66, 0x74, 0x65, 0x72, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, - 0x12, 0x50, 0x0a, 0x25, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, - 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x21, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x77, - 0x61, 0x70, 0x70, 0x65, 0x64, 0x41, 0x66, 0x74, 0x65, 0x72, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, - 0x63, 0x6b, 0x12, 0x2e, 0x0a, 0x13, 0x6e, 0x6f, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x5f, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x11, 0x6e, 0x6f, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x1f, 0x6e, 0x6f, 0x5f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x5f, 0x76, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1b, 0x6e, 0x6f, 0x43, - 0x72, 0x6f, 0x73, 0x73, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x76, 0x69, 0x64, - 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0c, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x66, 0x73, 0x22, 0x35, 0x0a, - 0x16, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x75, 0x62, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x49, 0x64, 0x22, 0xb0, 0x01, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x6f, - 0x75, 0x6e, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, - 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, - 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x07, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x65, - 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0a, 0x66, 0x65, 0x6e, 0x63, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x2a, 0x0a, 0x11, 0x65, - 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, - 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x64, 0x22, 0x9e, 0x04, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x62, - 0x65, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, - 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, - 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x07, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, - 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, - 0x74, 0x6f, 0x72, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, - 0x65, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x64, 0x75, 0x72, - 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x5f, - 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, - 0x2d, 0x0a, 0x13, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x66, 0x69, 0x72, - 0x73, 0x74, 0x5f, 0x6c, 0x73, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x6c, 0x61, - 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x46, 0x69, 0x72, 0x73, 0x74, 0x4c, 0x73, 0x6e, 0x12, 0x23, - 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x73, - 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, - 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x69, - 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x66, - 0x6c, 0x6f, 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x1d, 0x61, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, - 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x5f, - 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x1a, 0x61, 0x77, 0x61, - 0x69, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x74, 0x6f, 0x72, - 0x65, 0x73, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x6b, 0x5f, 0x70, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, - 0x6b, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x0a, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x62, - 0x65, 0x41, 0x63, 0x6b, 0x2a, 0x7c, 0x0a, 0x0b, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, - 0x69, 0x6e, 0x64, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52, 0x49, 0x4d, 0x41, 0x52, 0x59, 0x5f, 0x4b, - 0x49, 0x4e, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x49, 0x4d, 0x41, 0x52, 0x59, 0x5f, 0x4b, 0x49, 0x4e, - 0x44, 0x5f, 0x42, 0x4f, 0x4f, 0x54, 0x53, 0x54, 0x52, 0x41, 0x50, 0x10, 0x01, 0x12, 0x1a, 0x0a, - 0x16, 0x50, 0x52, 0x49, 0x4d, 0x41, 0x52, 0x59, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x50, 0x52, - 0x4f, 0x4d, 0x4f, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x52, 0x49, - 0x4d, 0x41, 0x52, 0x59, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x44, - 0x10, 0x03, 0x32, 0xb7, 0x02, 0x0a, 0x12, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x62, 0x0a, 0x0f, 0x52, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x28, 0x2e, 0x73, - 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, - 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x41, 0x63, 0x6b, 0x12, 0x56, 0x0a, - 0x0b, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x12, 0x24, 0x2e, 0x73, - 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x41, 0x6e, 0x73, 0x77, - 0x65, 0x72, 0x1a, 0x21, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x50, 0x72, 0x6f, - 0x62, 0x65, 0x41, 0x63, 0x6b, 0x12, 0x65, 0x0a, 0x12, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x73, 0x65, + 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x6e, + 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x72, 0x6f, 0x75, 0x6e, + 0x64, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x66, 0x65, 0x6e, 0x63, 0x65, 0x45, + 0x70, 0x6f, 0x63, 0x68, 0x12, 0x2a, 0x0a, 0x11, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, + 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0f, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x64, + 0x22, 0x9e, 0x04, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, + 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, + 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, + 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x72, 0x6f, 0x75, + 0x6e, 0x64, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x64, 0x12, + 0x1f, 0x0a, 0x0b, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x64, + 0x12, 0x26, 0x0a, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x44, + 0x61, 0x74, 0x61, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x2d, 0x0a, 0x13, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6c, 0x73, 0x6e, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x46, + 0x69, 0x72, 0x73, 0x74, 0x4c, 0x73, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x12, 0x23, 0x0a, + 0x0d, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x52, 0x65, 0x61, + 0x64, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x72, 0x65, + 0x61, 0x64, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x6f, 0x6f, 0x72, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x12, 0x41, 0x0a, + 0x1d, 0x61, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x0e, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x1a, 0x61, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x45, 0x70, 0x6f, 0x63, 0x68, + 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, + 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, + 0x65, 0x22, 0x0a, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x41, 0x63, 0x6b, 0x2a, 0x7c, 0x0a, + 0x0b, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x1c, 0x0a, 0x18, + 0x50, 0x52, 0x49, 0x4d, 0x41, 0x52, 0x59, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, + 0x49, 0x4d, 0x41, 0x52, 0x59, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x42, 0x4f, 0x4f, 0x54, 0x53, + 0x54, 0x52, 0x41, 0x50, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x49, 0x4d, 0x41, 0x52, + 0x59, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x50, 0x52, 0x4f, 0x4d, 0x4f, 0x54, 0x49, 0x4f, 0x4e, + 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x52, 0x49, 0x4d, 0x41, 0x52, 0x59, 0x5f, 0x4b, 0x49, + 0x4e, 0x44, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x44, 0x10, 0x03, 0x32, 0xb7, 0x02, 0x0a, 0x12, + 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x62, 0x0a, 0x0f, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x65, 0x61, 0x72, + 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x28, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, + 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, + 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x1a, + 0x25, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, + 0x65, 0x61, 0x74, 0x41, 0x63, 0x6b, 0x12, 0x56, 0x0a, 0x0b, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, + 0x50, 0x72, 0x6f, 0x62, 0x65, 0x12, 0x24, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, + 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, + 0x50, 0x72, 0x6f, 0x62, 0x65, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x1a, 0x21, 0x2e, 0x73, 0x65, + 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x41, 0x63, 0x6b, 0x12, 0x65, + 0x0a, 0x12, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, + 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x1a, 0x28, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x1a, 0x28, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x6b, 0x32, 0xf1, 0x01, 0x0a, - 0x11, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x14, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x41, - 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x29, 0x2e, 0x73, 0x65, 0x61, - 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, - 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, - 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x61, 0x63, 0x74, 0x30, 0x01, - 0x12, 0x6e, 0x0a, 0x14, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x50, 0x72, 0x6f, - 0x62, 0x65, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, - 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x6f, 0x6c, 0x2e, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x23, 0x2e, 0x73, 0x65, 0x61, 0x77, + 0x6e, 0x74, 0x41, 0x63, 0x6b, 0x32, 0xf1, 0x01, 0x0a, 0x11, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x14, 0x53, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x12, 0x29, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x53, 0x75, + 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, + 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x46, 0x61, 0x63, 0x74, 0x30, 0x01, 0x12, 0x6e, 0x0a, 0x14, 0x53, 0x75, 0x62, + 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x6f, 0x75, 0x6e, 0x64, + 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x50, 0x72, 0x6f, 0x62, + 0x65, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x1a, 0x23, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x50, 0x72, 0x6f, + 0x62, 0x65, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x30, 0x01, 0x32, 0x77, 0x0a, 0x0f, 0x45, 0x76, 0x69, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x64, 0x0a, 0x11, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x26, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x2e, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x30, 0x01, - 0x32, 0x77, 0x0a, 0x0f, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x64, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x6c, 0x75, - 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, - 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x6f, 0x6c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x27, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xd1, 0x04, 0x0a, 0x16, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x74, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x30, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, - 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x6f, 0x6c, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x65, 0x61, - 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0b, 0x4c, 0x69, - 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x61, 0x77, - 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, - 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, - 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, - 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, - 0x6c, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, - 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x6f, 0x6c, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, - 0x65, 0x12, 0x77, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x54, 0x69, - 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x31, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, - 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x2e, 0x47, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, - 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x65, 0x61, 0x77, - 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, - 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x12, 0x57, 0x61, - 0x74, 0x63, 0x68, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, - 0x12, 0x32, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, - 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x30, 0x01, 0x32, 0xe3, 0x07, - 0x0a, 0x10, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x6b, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, - 0x6d, 0x65, 0x12, 0x2c, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2d, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x6e, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x32, 0x2e, 0x73, - 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, - 0x63, 0x6c, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2d, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x6b, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, + 0x72, 0x6f, 0x6c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x32, 0xd1, 0x04, 0x0a, 0x16, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, + 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x74, 0x0a, + 0x10, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x30, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x47, 0x65, 0x74, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, + 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, + 0x0f, 0x47, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x2f, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x56, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x77, 0x0a, 0x11, 0x47, 0x65, + 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, + 0x31, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x56, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x12, 0x57, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x32, 0x2e, 0x73, 0x65, 0x61, 0x77, + 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7d, 0x0a, 0x12, - 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, - 0x6e, 0x67, 0x12, 0x32, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, 0x72, - 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x30, 0x01, 0x32, 0xbd, 0x09, 0x0a, 0x10, 0x4c, 0x69, 0x66, 0x65, 0x63, + 0x79, 0x63, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, 0x0c, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2c, 0x2e, 0x73, 0x65, + 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x65, 0x61, 0x77, + 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x32, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, + 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, + 0x47, 0x65, 0x74, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x56, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x65, 0x61, 0x77, + 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2c, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, + 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x13, 0x41, - 0x62, 0x6f, 0x72, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, - 0x6e, 0x67, 0x12, 0x32, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, 0x72, - 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, - 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7f, 0x0a, 0x14, 0x43, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x69, 0x6e, 0x67, 0x12, 0x32, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, + 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7d, 0x0a, 0x12, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x32, 0x2e, 0x73, 0x65, + 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x33, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x13, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x56, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x32, 0x2e, 0x73, 0x65, + 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x33, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7f, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x32, 0x2e, 0x73, + 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x33, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x32, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, + 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x4e, 0x6f, 0x4c, 0x69, 0x76, 0x65, 0x4c, 0x65, + 0x61, 0x73, 0x65, 0x12, 0x32, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, - 0x15, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, - 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x73, 0x65, 0x61, - 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x81, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x4e, - 0x6f, 0x4c, 0x69, 0x76, 0x65, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x32, 0x2e, 0x73, 0x65, 0x61, - 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, + 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0e, + 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x2e, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x56, 0x6f, 0x6c, - 0x75, 0x6d, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x32, 0x79, 0x0a, 0x0f, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x66, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x65, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x28, 0x2e, 0x73, 0x65, 0x61, 0x77, + 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, + 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, + 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, + 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x65, 0x0a, 0x0a, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x2a, 0x2e, + 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x48, 0x6f, + 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x46, 0x61, - 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3d, - 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x61, - 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x2d, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x3b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x6f, 0x6c, 0x2e, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x79, 0x0a, 0x0f, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, + 0x63, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x66, 0x0a, 0x0f, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x65, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x28, 0x2e, 0x73, + 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, + 0x66, 0x73, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x42, 0x3d, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, + 0x64, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x72, 0x70, 0x63, + 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x3b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -4571,119 +4834,127 @@ func file_control_proto_rawDescGZIP() []byte { } var file_control_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_control_proto_msgTypes = make([]protoimpl.MessageInfo, 39) +var file_control_proto_msgTypes = make([]protoimpl.MessageInfo, 43) var file_control_proto_goTypes = []interface{}{ (PrimaryKind)(0), // 0: seaweedfs.block.control.PrimaryKind - (*HeartbeatReport)(nil), // 1: seaweedfs.block.control.HeartbeatReport - (*StoreAttestation)(nil), // 2: seaweedfs.block.control.StoreAttestation - (*AttestedStore)(nil), // 3: seaweedfs.block.control.AttestedStore - (*HeartbeatSlot)(nil), // 4: seaweedfs.block.control.HeartbeatSlot - (*FrontendTarget)(nil), // 5: seaweedfs.block.control.FrontendTarget - (*HeartbeatAck)(nil), // 6: seaweedfs.block.control.HeartbeatAck - (*ClusterEventAck)(nil), // 7: seaweedfs.block.control.ClusterEventAck - (*SubscribeRequest)(nil), // 8: seaweedfs.block.control.SubscribeRequest - (*ReplicaDescriptor)(nil), // 9: seaweedfs.block.control.ReplicaDescriptor - (*AssignmentFact)(nil), // 10: seaweedfs.block.control.AssignmentFact - (*StatusRequest)(nil), // 11: seaweedfs.block.control.StatusRequest - (*StatusResponse)(nil), // 12: seaweedfs.block.control.StatusResponse - (*ReplicaUnhealthy)(nil), // 13: seaweedfs.block.control.ReplicaUnhealthy - (*GetClusterStatusRequest)(nil), // 14: seaweedfs.block.control.GetClusterStatusRequest - (*ListVolumesRequest)(nil), // 15: seaweedfs.block.control.ListVolumesRequest - (*GetVolumeStatusRequest)(nil), // 16: seaweedfs.block.control.GetVolumeStatusRequest - (*GetVolumeTimelineRequest)(nil), // 17: seaweedfs.block.control.GetVolumeTimelineRequest - (*WatchClusterEventsRequest)(nil), // 18: seaweedfs.block.control.WatchClusterEventsRequest - (*ObservationCondition)(nil), // 19: seaweedfs.block.control.ObservationCondition - (*ClusterStatusResponse)(nil), // 20: seaweedfs.block.control.ClusterStatusResponse - (*NodeEvidence)(nil), // 21: seaweedfs.block.control.NodeEvidence - (*VolumeEvidence)(nil), // 22: seaweedfs.block.control.VolumeEvidence - (*ReplicaEvidence)(nil), // 23: seaweedfs.block.control.ReplicaEvidence - (*ClusterEvent)(nil), // 24: seaweedfs.block.control.ClusterEvent - (*ListVolumesResponse)(nil), // 25: seaweedfs.block.control.ListVolumesResponse - (*VolumeTimelineResponse)(nil), // 26: seaweedfs.block.control.VolumeTimelineResponse - (*CreateVolumeRequest)(nil), // 27: seaweedfs.block.control.CreateVolumeRequest - (*CreateVolumeResponse)(nil), // 28: seaweedfs.block.control.CreateVolumeResponse - (*GetLifecycleVolumeRequest)(nil), // 29: seaweedfs.block.control.GetLifecycleVolumeRequest - (*DeleteVolumeRequest)(nil), // 30: seaweedfs.block.control.DeleteVolumeRequest - (*DeleteVolumeResponse)(nil), // 31: seaweedfs.block.control.DeleteVolumeResponse - (*MarkVolumeDeletingRequest)(nil), // 32: seaweedfs.block.control.MarkVolumeDeletingRequest - (*MarkVolumeDeletingResponse)(nil), // 33: seaweedfs.block.control.MarkVolumeDeletingResponse - (*FailbackRequest)(nil), // 34: seaweedfs.block.control.FailbackRequest - (*FailbackResponse)(nil), // 35: seaweedfs.block.control.FailbackResponse - (*ProbeRoundSubscription)(nil), // 36: seaweedfs.block.control.ProbeRoundSubscription - (*ProbeRound)(nil), // 37: seaweedfs.block.control.ProbeRound - (*ProbeAnswer)(nil), // 38: seaweedfs.block.control.ProbeAnswer - (*ProbeAck)(nil), // 39: seaweedfs.block.control.ProbeAck - (*timestamppb.Timestamp)(nil), // 40: google.protobuf.Timestamp + (*FinalizeFormatRequest)(nil), // 1: seaweedfs.block.control.FinalizeFormatRequest + (*FinalizeFormatResponse)(nil), // 2: seaweedfs.block.control.FinalizeFormatResponse + (*RetireHostRequest)(nil), // 3: seaweedfs.block.control.RetireHostRequest + (*RetireHostResponse)(nil), // 4: seaweedfs.block.control.RetireHostResponse + (*HeartbeatReport)(nil), // 5: seaweedfs.block.control.HeartbeatReport + (*StoreAttestation)(nil), // 6: seaweedfs.block.control.StoreAttestation + (*AttestedStore)(nil), // 7: seaweedfs.block.control.AttestedStore + (*HeartbeatSlot)(nil), // 8: seaweedfs.block.control.HeartbeatSlot + (*FrontendTarget)(nil), // 9: seaweedfs.block.control.FrontendTarget + (*HeartbeatAck)(nil), // 10: seaweedfs.block.control.HeartbeatAck + (*ClusterEventAck)(nil), // 11: seaweedfs.block.control.ClusterEventAck + (*SubscribeRequest)(nil), // 12: seaweedfs.block.control.SubscribeRequest + (*ReplicaDescriptor)(nil), // 13: seaweedfs.block.control.ReplicaDescriptor + (*AssignmentFact)(nil), // 14: seaweedfs.block.control.AssignmentFact + (*StatusRequest)(nil), // 15: seaweedfs.block.control.StatusRequest + (*StatusResponse)(nil), // 16: seaweedfs.block.control.StatusResponse + (*ReplicaUnhealthy)(nil), // 17: seaweedfs.block.control.ReplicaUnhealthy + (*GetClusterStatusRequest)(nil), // 18: seaweedfs.block.control.GetClusterStatusRequest + (*ListVolumesRequest)(nil), // 19: seaweedfs.block.control.ListVolumesRequest + (*GetVolumeStatusRequest)(nil), // 20: seaweedfs.block.control.GetVolumeStatusRequest + (*GetVolumeTimelineRequest)(nil), // 21: seaweedfs.block.control.GetVolumeTimelineRequest + (*WatchClusterEventsRequest)(nil), // 22: seaweedfs.block.control.WatchClusterEventsRequest + (*ObservationCondition)(nil), // 23: seaweedfs.block.control.ObservationCondition + (*ClusterStatusResponse)(nil), // 24: seaweedfs.block.control.ClusterStatusResponse + (*NodeEvidence)(nil), // 25: seaweedfs.block.control.NodeEvidence + (*VolumeEvidence)(nil), // 26: seaweedfs.block.control.VolumeEvidence + (*ReplicaEvidence)(nil), // 27: seaweedfs.block.control.ReplicaEvidence + (*ClusterEvent)(nil), // 28: seaweedfs.block.control.ClusterEvent + (*ListVolumesResponse)(nil), // 29: seaweedfs.block.control.ListVolumesResponse + (*VolumeTimelineResponse)(nil), // 30: seaweedfs.block.control.VolumeTimelineResponse + (*CreateVolumeRequest)(nil), // 31: seaweedfs.block.control.CreateVolumeRequest + (*CreateVolumeResponse)(nil), // 32: seaweedfs.block.control.CreateVolumeResponse + (*GetLifecycleVolumeRequest)(nil), // 33: seaweedfs.block.control.GetLifecycleVolumeRequest + (*DeleteVolumeRequest)(nil), // 34: seaweedfs.block.control.DeleteVolumeRequest + (*DeleteVolumeResponse)(nil), // 35: seaweedfs.block.control.DeleteVolumeResponse + (*MarkVolumeDeletingRequest)(nil), // 36: seaweedfs.block.control.MarkVolumeDeletingRequest + (*MarkVolumeDeletingResponse)(nil), // 37: seaweedfs.block.control.MarkVolumeDeletingResponse + (*FailbackRequest)(nil), // 38: seaweedfs.block.control.FailbackRequest + (*FailbackResponse)(nil), // 39: seaweedfs.block.control.FailbackResponse + (*ProbeRoundSubscription)(nil), // 40: seaweedfs.block.control.ProbeRoundSubscription + (*ProbeRound)(nil), // 41: seaweedfs.block.control.ProbeRound + (*ProbeAnswer)(nil), // 42: seaweedfs.block.control.ProbeAnswer + (*ProbeAck)(nil), // 43: seaweedfs.block.control.ProbeAck + (*timestamppb.Timestamp)(nil), // 44: google.protobuf.Timestamp } var file_control_proto_depIdxs = []int32{ - 40, // 0: seaweedfs.block.control.HeartbeatReport.sent_at:type_name -> google.protobuf.Timestamp - 4, // 1: seaweedfs.block.control.HeartbeatReport.slots:type_name -> seaweedfs.block.control.HeartbeatSlot - 2, // 2: seaweedfs.block.control.HeartbeatReport.store_attestation:type_name -> seaweedfs.block.control.StoreAttestation - 3, // 3: seaweedfs.block.control.StoreAttestation.stores:type_name -> seaweedfs.block.control.AttestedStore - 5, // 4: seaweedfs.block.control.HeartbeatSlot.frontends:type_name -> seaweedfs.block.control.FrontendTarget - 40, // 5: seaweedfs.block.control.HeartbeatAck.accepted_at:type_name -> google.protobuf.Timestamp - 40, // 6: seaweedfs.block.control.ClusterEventAck.accepted_at:type_name -> google.protobuf.Timestamp - 9, // 7: seaweedfs.block.control.AssignmentFact.peers:type_name -> seaweedfs.block.control.ReplicaDescriptor + 44, // 0: seaweedfs.block.control.HeartbeatReport.sent_at:type_name -> google.protobuf.Timestamp + 8, // 1: seaweedfs.block.control.HeartbeatReport.slots:type_name -> seaweedfs.block.control.HeartbeatSlot + 6, // 2: seaweedfs.block.control.HeartbeatReport.store_attestation:type_name -> seaweedfs.block.control.StoreAttestation + 7, // 3: seaweedfs.block.control.StoreAttestation.stores:type_name -> seaweedfs.block.control.AttestedStore + 9, // 4: seaweedfs.block.control.HeartbeatSlot.frontends:type_name -> seaweedfs.block.control.FrontendTarget + 44, // 5: seaweedfs.block.control.HeartbeatAck.accepted_at:type_name -> google.protobuf.Timestamp + 44, // 6: seaweedfs.block.control.ClusterEventAck.accepted_at:type_name -> google.protobuf.Timestamp + 13, // 7: seaweedfs.block.control.AssignmentFact.peers:type_name -> seaweedfs.block.control.ReplicaDescriptor 0, // 8: seaweedfs.block.control.AssignmentFact.primary_kind:type_name -> seaweedfs.block.control.PrimaryKind - 5, // 9: seaweedfs.block.control.StatusResponse.frontends:type_name -> seaweedfs.block.control.FrontendTarget - 13, // 10: seaweedfs.block.control.StatusResponse.unhealthy_replicas:type_name -> seaweedfs.block.control.ReplicaUnhealthy - 40, // 11: seaweedfs.block.control.ClusterStatusResponse.captured_at:type_name -> google.protobuf.Timestamp - 21, // 12: seaweedfs.block.control.ClusterStatusResponse.nodes:type_name -> seaweedfs.block.control.NodeEvidence - 22, // 13: seaweedfs.block.control.ClusterStatusResponse.volumes:type_name -> seaweedfs.block.control.VolumeEvidence - 19, // 14: seaweedfs.block.control.ClusterStatusResponse.conditions:type_name -> seaweedfs.block.control.ObservationCondition - 24, // 15: seaweedfs.block.control.ClusterStatusResponse.events:type_name -> seaweedfs.block.control.ClusterEvent - 40, // 16: seaweedfs.block.control.NodeEvidence.last_heartbeat_at:type_name -> google.protobuf.Timestamp - 19, // 17: seaweedfs.block.control.NodeEvidence.conditions:type_name -> seaweedfs.block.control.ObservationCondition - 23, // 18: seaweedfs.block.control.VolumeEvidence.replicas:type_name -> seaweedfs.block.control.ReplicaEvidence - 19, // 19: seaweedfs.block.control.VolumeEvidence.conditions:type_name -> seaweedfs.block.control.ObservationCondition - 19, // 20: seaweedfs.block.control.ReplicaEvidence.conditions:type_name -> seaweedfs.block.control.ObservationCondition - 40, // 21: seaweedfs.block.control.ClusterEvent.event_time:type_name -> google.protobuf.Timestamp - 40, // 22: seaweedfs.block.control.ListVolumesResponse.captured_at:type_name -> google.protobuf.Timestamp - 22, // 23: seaweedfs.block.control.ListVolumesResponse.volumes:type_name -> seaweedfs.block.control.VolumeEvidence - 40, // 24: seaweedfs.block.control.VolumeTimelineResponse.captured_at:type_name -> google.protobuf.Timestamp - 24, // 25: seaweedfs.block.control.VolumeTimelineResponse.events:type_name -> seaweedfs.block.control.ClusterEvent - 1, // 26: seaweedfs.block.control.ObservationService.ReportHeartbeat:input_type -> seaweedfs.block.control.HeartbeatReport - 38, // 27: seaweedfs.block.control.ObservationService.AnswerProbe:input_type -> seaweedfs.block.control.ProbeAnswer - 24, // 28: seaweedfs.block.control.ObservationService.ReportClusterEvent:input_type -> seaweedfs.block.control.ClusterEvent - 8, // 29: seaweedfs.block.control.AssignmentService.SubscribeAssignments:input_type -> seaweedfs.block.control.SubscribeRequest - 36, // 30: seaweedfs.block.control.AssignmentService.SubscribeProbeRounds:input_type -> seaweedfs.block.control.ProbeRoundSubscription - 11, // 31: seaweedfs.block.control.EvidenceService.QueryVolumeStatus:input_type -> seaweedfs.block.control.StatusRequest - 14, // 32: seaweedfs.block.control.ClusterEvidenceService.GetClusterStatus:input_type -> seaweedfs.block.control.GetClusterStatusRequest - 15, // 33: seaweedfs.block.control.ClusterEvidenceService.ListVolumes:input_type -> seaweedfs.block.control.ListVolumesRequest - 16, // 34: seaweedfs.block.control.ClusterEvidenceService.GetVolumeStatus:input_type -> seaweedfs.block.control.GetVolumeStatusRequest - 17, // 35: seaweedfs.block.control.ClusterEvidenceService.GetVolumeTimeline:input_type -> seaweedfs.block.control.GetVolumeTimelineRequest - 18, // 36: seaweedfs.block.control.ClusterEvidenceService.WatchClusterEvents:input_type -> seaweedfs.block.control.WatchClusterEventsRequest - 27, // 37: seaweedfs.block.control.LifecycleService.CreateVolume:input_type -> seaweedfs.block.control.CreateVolumeRequest - 29, // 38: seaweedfs.block.control.LifecycleService.GetVolume:input_type -> seaweedfs.block.control.GetLifecycleVolumeRequest - 30, // 39: seaweedfs.block.control.LifecycleService.DeleteVolume:input_type -> seaweedfs.block.control.DeleteVolumeRequest - 32, // 40: seaweedfs.block.control.LifecycleService.MarkVolumeDeleting:input_type -> seaweedfs.block.control.MarkVolumeDeletingRequest - 32, // 41: seaweedfs.block.control.LifecycleService.AbortVolumeDeleting:input_type -> seaweedfs.block.control.MarkVolumeDeletingRequest - 32, // 42: seaweedfs.block.control.LifecycleService.CommitVolumeDeleting:input_type -> seaweedfs.block.control.MarkVolumeDeletingRequest - 32, // 43: seaweedfs.block.control.LifecycleService.ReserveVolumeDeletion:input_type -> seaweedfs.block.control.MarkVolumeDeletingRequest - 32, // 44: seaweedfs.block.control.LifecycleService.CheckVolumeNoLiveLease:input_type -> seaweedfs.block.control.MarkVolumeDeletingRequest - 34, // 45: seaweedfs.block.control.FailbackService.ExecuteFailback:input_type -> seaweedfs.block.control.FailbackRequest - 6, // 46: seaweedfs.block.control.ObservationService.ReportHeartbeat:output_type -> seaweedfs.block.control.HeartbeatAck - 39, // 47: seaweedfs.block.control.ObservationService.AnswerProbe:output_type -> seaweedfs.block.control.ProbeAck - 7, // 48: seaweedfs.block.control.ObservationService.ReportClusterEvent:output_type -> seaweedfs.block.control.ClusterEventAck - 10, // 49: seaweedfs.block.control.AssignmentService.SubscribeAssignments:output_type -> seaweedfs.block.control.AssignmentFact - 37, // 50: seaweedfs.block.control.AssignmentService.SubscribeProbeRounds:output_type -> seaweedfs.block.control.ProbeRound - 12, // 51: seaweedfs.block.control.EvidenceService.QueryVolumeStatus:output_type -> seaweedfs.block.control.StatusResponse - 20, // 52: seaweedfs.block.control.ClusterEvidenceService.GetClusterStatus:output_type -> seaweedfs.block.control.ClusterStatusResponse - 25, // 53: seaweedfs.block.control.ClusterEvidenceService.ListVolumes:output_type -> seaweedfs.block.control.ListVolumesResponse - 22, // 54: seaweedfs.block.control.ClusterEvidenceService.GetVolumeStatus:output_type -> seaweedfs.block.control.VolumeEvidence - 26, // 55: seaweedfs.block.control.ClusterEvidenceService.GetVolumeTimeline:output_type -> seaweedfs.block.control.VolumeTimelineResponse - 24, // 56: seaweedfs.block.control.ClusterEvidenceService.WatchClusterEvents:output_type -> seaweedfs.block.control.ClusterEvent - 28, // 57: seaweedfs.block.control.LifecycleService.CreateVolume:output_type -> seaweedfs.block.control.CreateVolumeResponse - 28, // 58: seaweedfs.block.control.LifecycleService.GetVolume:output_type -> seaweedfs.block.control.CreateVolumeResponse - 31, // 59: seaweedfs.block.control.LifecycleService.DeleteVolume:output_type -> seaweedfs.block.control.DeleteVolumeResponse - 33, // 60: seaweedfs.block.control.LifecycleService.MarkVolumeDeleting:output_type -> seaweedfs.block.control.MarkVolumeDeletingResponse - 33, // 61: seaweedfs.block.control.LifecycleService.AbortVolumeDeleting:output_type -> seaweedfs.block.control.MarkVolumeDeletingResponse - 33, // 62: seaweedfs.block.control.LifecycleService.CommitVolumeDeleting:output_type -> seaweedfs.block.control.MarkVolumeDeletingResponse - 33, // 63: seaweedfs.block.control.LifecycleService.ReserveVolumeDeletion:output_type -> seaweedfs.block.control.MarkVolumeDeletingResponse - 33, // 64: seaweedfs.block.control.LifecycleService.CheckVolumeNoLiveLease:output_type -> seaweedfs.block.control.MarkVolumeDeletingResponse - 35, // 65: seaweedfs.block.control.FailbackService.ExecuteFailback:output_type -> seaweedfs.block.control.FailbackResponse - 46, // [46:66] is the sub-list for method output_type - 26, // [26:46] is the sub-list for method input_type + 9, // 9: seaweedfs.block.control.StatusResponse.frontends:type_name -> seaweedfs.block.control.FrontendTarget + 17, // 10: seaweedfs.block.control.StatusResponse.unhealthy_replicas:type_name -> seaweedfs.block.control.ReplicaUnhealthy + 44, // 11: seaweedfs.block.control.ClusterStatusResponse.captured_at:type_name -> google.protobuf.Timestamp + 25, // 12: seaweedfs.block.control.ClusterStatusResponse.nodes:type_name -> seaweedfs.block.control.NodeEvidence + 26, // 13: seaweedfs.block.control.ClusterStatusResponse.volumes:type_name -> seaweedfs.block.control.VolumeEvidence + 23, // 14: seaweedfs.block.control.ClusterStatusResponse.conditions:type_name -> seaweedfs.block.control.ObservationCondition + 28, // 15: seaweedfs.block.control.ClusterStatusResponse.events:type_name -> seaweedfs.block.control.ClusterEvent + 44, // 16: seaweedfs.block.control.NodeEvidence.last_heartbeat_at:type_name -> google.protobuf.Timestamp + 23, // 17: seaweedfs.block.control.NodeEvidence.conditions:type_name -> seaweedfs.block.control.ObservationCondition + 27, // 18: seaweedfs.block.control.VolumeEvidence.replicas:type_name -> seaweedfs.block.control.ReplicaEvidence + 23, // 19: seaweedfs.block.control.VolumeEvidence.conditions:type_name -> seaweedfs.block.control.ObservationCondition + 23, // 20: seaweedfs.block.control.ReplicaEvidence.conditions:type_name -> seaweedfs.block.control.ObservationCondition + 44, // 21: seaweedfs.block.control.ClusterEvent.event_time:type_name -> google.protobuf.Timestamp + 44, // 22: seaweedfs.block.control.ListVolumesResponse.captured_at:type_name -> google.protobuf.Timestamp + 26, // 23: seaweedfs.block.control.ListVolumesResponse.volumes:type_name -> seaweedfs.block.control.VolumeEvidence + 44, // 24: seaweedfs.block.control.VolumeTimelineResponse.captured_at:type_name -> google.protobuf.Timestamp + 28, // 25: seaweedfs.block.control.VolumeTimelineResponse.events:type_name -> seaweedfs.block.control.ClusterEvent + 5, // 26: seaweedfs.block.control.ObservationService.ReportHeartbeat:input_type -> seaweedfs.block.control.HeartbeatReport + 42, // 27: seaweedfs.block.control.ObservationService.AnswerProbe:input_type -> seaweedfs.block.control.ProbeAnswer + 28, // 28: seaweedfs.block.control.ObservationService.ReportClusterEvent:input_type -> seaweedfs.block.control.ClusterEvent + 12, // 29: seaweedfs.block.control.AssignmentService.SubscribeAssignments:input_type -> seaweedfs.block.control.SubscribeRequest + 40, // 30: seaweedfs.block.control.AssignmentService.SubscribeProbeRounds:input_type -> seaweedfs.block.control.ProbeRoundSubscription + 15, // 31: seaweedfs.block.control.EvidenceService.QueryVolumeStatus:input_type -> seaweedfs.block.control.StatusRequest + 18, // 32: seaweedfs.block.control.ClusterEvidenceService.GetClusterStatus:input_type -> seaweedfs.block.control.GetClusterStatusRequest + 19, // 33: seaweedfs.block.control.ClusterEvidenceService.ListVolumes:input_type -> seaweedfs.block.control.ListVolumesRequest + 20, // 34: seaweedfs.block.control.ClusterEvidenceService.GetVolumeStatus:input_type -> seaweedfs.block.control.GetVolumeStatusRequest + 21, // 35: seaweedfs.block.control.ClusterEvidenceService.GetVolumeTimeline:input_type -> seaweedfs.block.control.GetVolumeTimelineRequest + 22, // 36: seaweedfs.block.control.ClusterEvidenceService.WatchClusterEvents:input_type -> seaweedfs.block.control.WatchClusterEventsRequest + 31, // 37: seaweedfs.block.control.LifecycleService.CreateVolume:input_type -> seaweedfs.block.control.CreateVolumeRequest + 33, // 38: seaweedfs.block.control.LifecycleService.GetVolume:input_type -> seaweedfs.block.control.GetLifecycleVolumeRequest + 34, // 39: seaweedfs.block.control.LifecycleService.DeleteVolume:input_type -> seaweedfs.block.control.DeleteVolumeRequest + 36, // 40: seaweedfs.block.control.LifecycleService.MarkVolumeDeleting:input_type -> seaweedfs.block.control.MarkVolumeDeletingRequest + 36, // 41: seaweedfs.block.control.LifecycleService.AbortVolumeDeleting:input_type -> seaweedfs.block.control.MarkVolumeDeletingRequest + 36, // 42: seaweedfs.block.control.LifecycleService.CommitVolumeDeleting:input_type -> seaweedfs.block.control.MarkVolumeDeletingRequest + 36, // 43: seaweedfs.block.control.LifecycleService.ReserveVolumeDeletion:input_type -> seaweedfs.block.control.MarkVolumeDeletingRequest + 36, // 44: seaweedfs.block.control.LifecycleService.CheckVolumeNoLiveLease:input_type -> seaweedfs.block.control.MarkVolumeDeletingRequest + 1, // 45: seaweedfs.block.control.LifecycleService.FinalizeFormat:input_type -> seaweedfs.block.control.FinalizeFormatRequest + 3, // 46: seaweedfs.block.control.LifecycleService.RetireHost:input_type -> seaweedfs.block.control.RetireHostRequest + 38, // 47: seaweedfs.block.control.FailbackService.ExecuteFailback:input_type -> seaweedfs.block.control.FailbackRequest + 10, // 48: seaweedfs.block.control.ObservationService.ReportHeartbeat:output_type -> seaweedfs.block.control.HeartbeatAck + 43, // 49: seaweedfs.block.control.ObservationService.AnswerProbe:output_type -> seaweedfs.block.control.ProbeAck + 11, // 50: seaweedfs.block.control.ObservationService.ReportClusterEvent:output_type -> seaweedfs.block.control.ClusterEventAck + 14, // 51: seaweedfs.block.control.AssignmentService.SubscribeAssignments:output_type -> seaweedfs.block.control.AssignmentFact + 41, // 52: seaweedfs.block.control.AssignmentService.SubscribeProbeRounds:output_type -> seaweedfs.block.control.ProbeRound + 16, // 53: seaweedfs.block.control.EvidenceService.QueryVolumeStatus:output_type -> seaweedfs.block.control.StatusResponse + 24, // 54: seaweedfs.block.control.ClusterEvidenceService.GetClusterStatus:output_type -> seaweedfs.block.control.ClusterStatusResponse + 29, // 55: seaweedfs.block.control.ClusterEvidenceService.ListVolumes:output_type -> seaweedfs.block.control.ListVolumesResponse + 26, // 56: seaweedfs.block.control.ClusterEvidenceService.GetVolumeStatus:output_type -> seaweedfs.block.control.VolumeEvidence + 30, // 57: seaweedfs.block.control.ClusterEvidenceService.GetVolumeTimeline:output_type -> seaweedfs.block.control.VolumeTimelineResponse + 28, // 58: seaweedfs.block.control.ClusterEvidenceService.WatchClusterEvents:output_type -> seaweedfs.block.control.ClusterEvent + 32, // 59: seaweedfs.block.control.LifecycleService.CreateVolume:output_type -> seaweedfs.block.control.CreateVolumeResponse + 32, // 60: seaweedfs.block.control.LifecycleService.GetVolume:output_type -> seaweedfs.block.control.CreateVolumeResponse + 35, // 61: seaweedfs.block.control.LifecycleService.DeleteVolume:output_type -> seaweedfs.block.control.DeleteVolumeResponse + 37, // 62: seaweedfs.block.control.LifecycleService.MarkVolumeDeleting:output_type -> seaweedfs.block.control.MarkVolumeDeletingResponse + 37, // 63: seaweedfs.block.control.LifecycleService.AbortVolumeDeleting:output_type -> seaweedfs.block.control.MarkVolumeDeletingResponse + 37, // 64: seaweedfs.block.control.LifecycleService.CommitVolumeDeleting:output_type -> seaweedfs.block.control.MarkVolumeDeletingResponse + 37, // 65: seaweedfs.block.control.LifecycleService.ReserveVolumeDeletion:output_type -> seaweedfs.block.control.MarkVolumeDeletingResponse + 37, // 66: seaweedfs.block.control.LifecycleService.CheckVolumeNoLiveLease:output_type -> seaweedfs.block.control.MarkVolumeDeletingResponse + 2, // 67: seaweedfs.block.control.LifecycleService.FinalizeFormat:output_type -> seaweedfs.block.control.FinalizeFormatResponse + 4, // 68: seaweedfs.block.control.LifecycleService.RetireHost:output_type -> seaweedfs.block.control.RetireHostResponse + 39, // 69: seaweedfs.block.control.FailbackService.ExecuteFailback:output_type -> seaweedfs.block.control.FailbackResponse + 48, // [48:70] is the sub-list for method output_type + 26, // [26:48] is the sub-list for method input_type 26, // [26:26] is the sub-list for extension type_name 26, // [26:26] is the sub-list for extension extendee 0, // [0:26] is the sub-list for field type_name @@ -4696,7 +4967,7 @@ func file_control_proto_init() { } if !protoimpl.UnsafeEnabled { file_control_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HeartbeatReport); i { + switch v := v.(*FinalizeFormatRequest); i { case 0: return &v.state case 1: @@ -4708,7 +4979,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StoreAttestation); i { + switch v := v.(*FinalizeFormatResponse); i { case 0: return &v.state case 1: @@ -4720,7 +4991,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttestedStore); i { + switch v := v.(*RetireHostRequest); i { case 0: return &v.state case 1: @@ -4732,7 +5003,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HeartbeatSlot); i { + switch v := v.(*RetireHostResponse); i { case 0: return &v.state case 1: @@ -4744,7 +5015,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FrontendTarget); i { + switch v := v.(*HeartbeatReport); i { case 0: return &v.state case 1: @@ -4756,7 +5027,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HeartbeatAck); i { + switch v := v.(*StoreAttestation); i { case 0: return &v.state case 1: @@ -4768,7 +5039,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterEventAck); i { + switch v := v.(*AttestedStore); i { case 0: return &v.state case 1: @@ -4780,7 +5051,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubscribeRequest); i { + switch v := v.(*HeartbeatSlot); i { case 0: return &v.state case 1: @@ -4792,7 +5063,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReplicaDescriptor); i { + switch v := v.(*FrontendTarget); i { case 0: return &v.state case 1: @@ -4804,7 +5075,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssignmentFact); i { + switch v := v.(*HeartbeatAck); i { case 0: return &v.state case 1: @@ -4816,7 +5087,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatusRequest); i { + switch v := v.(*ClusterEventAck); i { case 0: return &v.state case 1: @@ -4828,7 +5099,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatusResponse); i { + switch v := v.(*SubscribeRequest); i { case 0: return &v.state case 1: @@ -4840,7 +5111,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReplicaUnhealthy); i { + switch v := v.(*ReplicaDescriptor); i { case 0: return &v.state case 1: @@ -4852,7 +5123,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetClusterStatusRequest); i { + switch v := v.(*AssignmentFact); i { case 0: return &v.state case 1: @@ -4864,7 +5135,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListVolumesRequest); i { + switch v := v.(*StatusRequest); i { case 0: return &v.state case 1: @@ -4876,7 +5147,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVolumeStatusRequest); i { + switch v := v.(*StatusResponse); i { case 0: return &v.state case 1: @@ -4888,7 +5159,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVolumeTimelineRequest); i { + switch v := v.(*ReplicaUnhealthy); i { case 0: return &v.state case 1: @@ -4900,7 +5171,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WatchClusterEventsRequest); i { + switch v := v.(*GetClusterStatusRequest); i { case 0: return &v.state case 1: @@ -4912,7 +5183,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationCondition); i { + switch v := v.(*ListVolumesRequest); i { case 0: return &v.state case 1: @@ -4924,7 +5195,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterStatusResponse); i { + switch v := v.(*GetVolumeStatusRequest); i { case 0: return &v.state case 1: @@ -4936,7 +5207,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeEvidence); i { + switch v := v.(*GetVolumeTimelineRequest); i { case 0: return &v.state case 1: @@ -4948,7 +5219,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VolumeEvidence); i { + switch v := v.(*WatchClusterEventsRequest); i { case 0: return &v.state case 1: @@ -4960,7 +5231,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReplicaEvidence); i { + switch v := v.(*ObservationCondition); i { case 0: return &v.state case 1: @@ -4972,7 +5243,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterEvent); i { + switch v := v.(*ClusterStatusResponse); i { case 0: return &v.state case 1: @@ -4984,7 +5255,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListVolumesResponse); i { + switch v := v.(*NodeEvidence); i { case 0: return &v.state case 1: @@ -4996,7 +5267,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VolumeTimelineResponse); i { + switch v := v.(*VolumeEvidence); i { case 0: return &v.state case 1: @@ -5008,7 +5279,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateVolumeRequest); i { + switch v := v.(*ReplicaEvidence); i { case 0: return &v.state case 1: @@ -5020,7 +5291,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateVolumeResponse); i { + switch v := v.(*ClusterEvent); i { case 0: return &v.state case 1: @@ -5032,7 +5303,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLifecycleVolumeRequest); i { + switch v := v.(*ListVolumesResponse); i { case 0: return &v.state case 1: @@ -5044,7 +5315,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteVolumeRequest); i { + switch v := v.(*VolumeTimelineResponse); i { case 0: return &v.state case 1: @@ -5056,7 +5327,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteVolumeResponse); i { + switch v := v.(*CreateVolumeRequest); i { case 0: return &v.state case 1: @@ -5068,7 +5339,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarkVolumeDeletingRequest); i { + switch v := v.(*CreateVolumeResponse); i { case 0: return &v.state case 1: @@ -5080,7 +5351,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarkVolumeDeletingResponse); i { + switch v := v.(*GetLifecycleVolumeRequest); i { case 0: return &v.state case 1: @@ -5092,7 +5363,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FailbackRequest); i { + switch v := v.(*DeleteVolumeRequest); i { case 0: return &v.state case 1: @@ -5104,7 +5375,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FailbackResponse); i { + switch v := v.(*DeleteVolumeResponse); i { case 0: return &v.state case 1: @@ -5116,7 +5387,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProbeRoundSubscription); i { + switch v := v.(*MarkVolumeDeletingRequest); i { case 0: return &v.state case 1: @@ -5128,7 +5399,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProbeRound); i { + switch v := v.(*MarkVolumeDeletingResponse); i { case 0: return &v.state case 1: @@ -5140,7 +5411,7 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProbeAnswer); i { + switch v := v.(*FailbackRequest); i { case 0: return &v.state case 1: @@ -5152,6 +5423,54 @@ func file_control_proto_init() { } } file_control_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FailbackResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_control_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProbeRoundSubscription); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_control_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProbeRound); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_control_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProbeAnswer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_control_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ProbeAck); i { case 0: return &v.state @@ -5170,7 +5489,7 @@ func file_control_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_control_proto_rawDesc, NumEnums: 1, - NumMessages: 39, + NumMessages: 43, NumExtensions: 0, NumServices: 6, }, diff --git a/seaweed-block/core/rpc/control/control_grpc.pb.go b/seaweed-block/core/rpc/control/control_grpc.pb.go index b6bf6b9803..b5442c7951 100644 --- a/seaweed-block/core/rpc/control/control_grpc.pb.go +++ b/seaweed-block/core/rpc/control/control_grpc.pb.go @@ -790,6 +790,8 @@ const ( LifecycleService_CommitVolumeDeleting_FullMethodName = "/seaweedfs.block.control.LifecycleService/CommitVolumeDeleting" LifecycleService_ReserveVolumeDeletion_FullMethodName = "/seaweedfs.block.control.LifecycleService/ReserveVolumeDeletion" LifecycleService_CheckVolumeNoLiveLease_FullMethodName = "/seaweedfs.block.control.LifecycleService/CheckVolumeNoLiveLease" + LifecycleService_FinalizeFormat_FullMethodName = "/seaweedfs.block.control.LifecycleService/FinalizeFormat" + LifecycleService_RetireHost_FullMethodName = "/seaweedfs.block.control.LifecycleService/RetireHost" ) // LifecycleServiceClient is the client API for LifecycleService service. @@ -821,6 +823,20 @@ type LifecycleServiceClient interface { // HEAD read and its update: OK only with the committed reservation and // no live lease on any line of the volume (granted lines included). CheckVolumeNoLiveLease(ctx context.Context, in *MarkVolumeDeletingRequest, opts ...grpc.CallOption) (*MarkVolumeDeletingResponse, error) + // FinalizeFormat raises the cluster's format level to 1 (the v1.1 + // format), durably and one-way: a v1.0.x master refuses the store from + // then on, and holders may upgrade. Refused (FAILED_PRECONDITION, reason + // FORMAT_HOSTS_TOO_OLD) while any registered host has not reported + // reads_level >= 1 since the master started; the refusal names each one. + // At level 1 it succeeds without writing. + FinalizeFormat(ctx context.Context, in *FinalizeFormatRequest, opts ...grpc.CallOption) (*FinalizeFormatResponse, error) + // RetireHost removes a registered host from the node inventory, so it no + // longer counts for the format finalize or for placement. Refused + // (FAILED_PRECONDITION, reason HOST_HOLDS_WORK) while the host holds a + // lease or an assignment for any volume; the refusal names them. confirm + // must repeat server_id. A retired host that returns registers again and + // is judged at its reported read level. + RetireHost(ctx context.Context, in *RetireHostRequest, opts ...grpc.CallOption) (*RetireHostResponse, error) } type lifecycleServiceClient struct { @@ -903,6 +919,24 @@ func (c *lifecycleServiceClient) CheckVolumeNoLiveLease(ctx context.Context, in return out, nil } +func (c *lifecycleServiceClient) FinalizeFormat(ctx context.Context, in *FinalizeFormatRequest, opts ...grpc.CallOption) (*FinalizeFormatResponse, error) { + out := new(FinalizeFormatResponse) + err := c.cc.Invoke(ctx, LifecycleService_FinalizeFormat_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *lifecycleServiceClient) RetireHost(ctx context.Context, in *RetireHostRequest, opts ...grpc.CallOption) (*RetireHostResponse, error) { + out := new(RetireHostResponse) + err := c.cc.Invoke(ctx, LifecycleService_RetireHost_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // LifecycleServiceServer is the server API for LifecycleService service. // All implementations must embed UnimplementedLifecycleServiceServer // for forward compatibility @@ -932,6 +966,20 @@ type LifecycleServiceServer interface { // HEAD read and its update: OK only with the committed reservation and // no live lease on any line of the volume (granted lines included). CheckVolumeNoLiveLease(context.Context, *MarkVolumeDeletingRequest) (*MarkVolumeDeletingResponse, error) + // FinalizeFormat raises the cluster's format level to 1 (the v1.1 + // format), durably and one-way: a v1.0.x master refuses the store from + // then on, and holders may upgrade. Refused (FAILED_PRECONDITION, reason + // FORMAT_HOSTS_TOO_OLD) while any registered host has not reported + // reads_level >= 1 since the master started; the refusal names each one. + // At level 1 it succeeds without writing. + FinalizeFormat(context.Context, *FinalizeFormatRequest) (*FinalizeFormatResponse, error) + // RetireHost removes a registered host from the node inventory, so it no + // longer counts for the format finalize or for placement. Refused + // (FAILED_PRECONDITION, reason HOST_HOLDS_WORK) while the host holds a + // lease or an assignment for any volume; the refusal names them. confirm + // must repeat server_id. A retired host that returns registers again and + // is judged at its reported read level. + RetireHost(context.Context, *RetireHostRequest) (*RetireHostResponse, error) mustEmbedUnimplementedLifecycleServiceServer() } @@ -963,6 +1011,12 @@ func (UnimplementedLifecycleServiceServer) ReserveVolumeDeletion(context.Context func (UnimplementedLifecycleServiceServer) CheckVolumeNoLiveLease(context.Context, *MarkVolumeDeletingRequest) (*MarkVolumeDeletingResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckVolumeNoLiveLease not implemented") } +func (UnimplementedLifecycleServiceServer) FinalizeFormat(context.Context, *FinalizeFormatRequest) (*FinalizeFormatResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FinalizeFormat not implemented") +} +func (UnimplementedLifecycleServiceServer) RetireHost(context.Context, *RetireHostRequest) (*RetireHostResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RetireHost not implemented") +} func (UnimplementedLifecycleServiceServer) mustEmbedUnimplementedLifecycleServiceServer() {} // UnsafeLifecycleServiceServer may be embedded to opt out of forward compatibility for this service. @@ -1120,6 +1174,42 @@ func _LifecycleService_CheckVolumeNoLiveLease_Handler(srv interface{}, ctx conte return interceptor(ctx, in, info, handler) } +func _LifecycleService_FinalizeFormat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FinalizeFormatRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LifecycleServiceServer).FinalizeFormat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: LifecycleService_FinalizeFormat_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LifecycleServiceServer).FinalizeFormat(ctx, req.(*FinalizeFormatRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LifecycleService_RetireHost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RetireHostRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LifecycleServiceServer).RetireHost(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: LifecycleService_RetireHost_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LifecycleServiceServer).RetireHost(ctx, req.(*RetireHostRequest)) + } + return interceptor(ctx, in, info, handler) +} + // LifecycleService_ServiceDesc is the grpc.ServiceDesc for LifecycleService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -1159,6 +1249,14 @@ var LifecycleService_ServiceDesc = grpc.ServiceDesc{ MethodName: "CheckVolumeNoLiveLease", Handler: _LifecycleService_CheckVolumeNoLiveLease_Handler, }, + { + MethodName: "FinalizeFormat", + Handler: _LifecycleService_FinalizeFormat_Handler, + }, + { + MethodName: "RetireHost", + Handler: _LifecycleService_RetireHost_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "control.proto", diff --git a/seaweed-block/core/rpc/lifecycleclient/reason.go b/seaweed-block/core/rpc/lifecycleclient/reason.go index c6eb41c0a6..6fa801ee9b 100644 --- a/seaweed-block/core/rpc/lifecycleclient/reason.go +++ b/seaweed-block/core/rpc/lifecycleclient/reason.go @@ -16,6 +16,16 @@ const ( // names chunks of a volume other than its source (a restore target's // snapshot cannot be restored again). ReasonRestoreSourceNotOwn = "RESTORE_SOURCE_NOT_OWN" + // ReasonBinaryTooOld: the caller's binary does not read the cluster's + // format level (its heartbeat's reads_level is below it), so the master + // refuses it and gives it no work. + ReasonBinaryTooOld = "BINARY_TOO_OLD" + // ReasonFormatHostsTooOld: the format finalize was refused because a + // registered host has not reported that it reads the new level. + ReasonFormatHostsTooOld = "FORMAT_HOSTS_TOO_OLD" + // ReasonHostHoldsWork: a host retire was refused because the host still + // holds a lease or an assignment for a volume. + ReasonHostHoldsWork = "HOST_HOLDS_WORK" ) // WithReason returns st with an ErrorInfo detail carrying reason in diff --git a/seaweed-block/core/rpc/proto/control.proto b/seaweed-block/core/rpc/proto/control.proto index ec3c00a3a2..3f1eebcca7 100644 --- a/seaweed-block/core/rpc/proto/control.proto +++ b/seaweed-block/core/rpc/proto/control.proto @@ -119,6 +119,38 @@ service LifecycleService { // HEAD read and its update: OK only with the committed reservation and // no live lease on any line of the volume (granted lines included). rpc CheckVolumeNoLiveLease(MarkVolumeDeletingRequest) returns (MarkVolumeDeletingResponse); + // FinalizeFormat raises the cluster's format level to 1 (the v1.1 + // format), durably and one-way: a v1.0.x master refuses the store from + // then on, and holders may upgrade. Refused (FAILED_PRECONDITION, reason + // FORMAT_HOSTS_TOO_OLD) while any registered host has not reported + // reads_level >= 1 since the master started; the refusal names each one. + // At level 1 it succeeds without writing. + rpc FinalizeFormat(FinalizeFormatRequest) returns (FinalizeFormatResponse); + // RetireHost removes a registered host from the node inventory, so it no + // longer counts for the format finalize or for placement. Refused + // (FAILED_PRECONDITION, reason HOST_HOLDS_WORK) while the host holds a + // lease or an assignment for any volume; the refusal names them. confirm + // must repeat server_id. A retired host that returns registers again and + // is judged at its reported read level. + rpc RetireHost(RetireHostRequest) returns (RetireHostResponse); +} + +message FinalizeFormatRequest { + uint32 level = 1; // the level to finalize: 1 +} + +message FinalizeFormatResponse { + uint32 format_level = 1; + bool already = 2; // the cluster was already at this level: nothing written +} + +message RetireHostRequest { + string server_id = 1; + string confirm = 2; // must equal server_id +} + +message RetireHostResponse { + string server_id = 1; } // FailbackService — disabled-by-default authority failback endpoint. @@ -156,6 +188,12 @@ message HeartbeatReport { // the server that holds the volume's current primary line at that // epoch. A replica's own report of its store never sets it. StoreAttestation store_attestation = 9; + // reads_level is the highest cluster format level the reporting + // binary reads: 1 for a binary that reads the v1.1 format. A v1.0.x + // binary sends none (0). The master finalizes the cluster's format only + // when every registered host reports at least the new level, and places, + // moves and fails volumes over only to hosts that read the current one. + uint32 reads_level = 10; } // StoreAttestation is a primary's attestation of its write-ACK set at one @@ -329,6 +367,11 @@ message AssignmentFact { // is another one does not serve: a later failover reads its // acknowledged writes by this profile's rules. string ack_profile = 18; + // The cluster's format level (0 until the operator finalizes the v1.1 + // format, then 1). A holder upgrades a store and writes the v1.1 format + // only at level 1; absent (an older master, or no assignment yet) means + // level 0. + uint32 format_level = 19; } // PrimaryKind is how a line made its primary the primary. From 9cf074d480e6e49a380cc84631584af3a46b7cf4 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 1 Dec 2026 18:27:56 -0800 Subject: [PATCH 02/12] docs: format-gate invariants; v1.1 note: going back works until the format finalize Co-Authored-By: Claude Opus 5.5 --- seaweed-block/docs/design/invariants.md | 9 +++++++-- seaweed-block/docs/releases/v1.1.md | 15 +++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/seaweed-block/docs/design/invariants.md b/seaweed-block/docs/design/invariants.md index 8bf7250c0e..2e5e99bbd0 100644 --- a/seaweed-block/docs/design/invariants.md +++ b/seaweed-block/docs/design/invariants.md @@ -813,8 +813,13 @@ Notes: | `INV-WS-LEASE-HORIZON-001` | Retired: v1.1 keeps no lease horizon current; renewals write nothing and a restarted master waits for its own restart floor (`INV-WS-RESTART-GRACE-001`). | legacy M2 Granted → Granted | — | — | — | ARCHIVED | | `INV-WS-LEASE-HORIZON-MONO-001` | Retired with the lease horizon (`INV-WS-RESTART-GRACE-001`). | legacy M2 Granted → Granted | — | — | — | ARCHIVED | | `INV-WS-RENEW-NONBLOCKING-001` | Live renewals take only the leaf lease lock and lock-free lifecycle snapshots; they never wait on publisher/store locks. First grants and expired re-grants persist synchronously; an expired re-grant refuses immediately if the publisher lock is busy. | M2 Granted → Granted | `core/authority/workspace_lease_view.go` `RenewWorkspaceLease`; `core/host/master/workspace_service.go` `workspaceVolumeForRenewal` ; `core/lifecycle/placement_intent.go` `GetPlacementSnapshot`; `core/host/master/workspace_service.go` `RenewWorkspaceLease`; `core/lifecycle/node_inventory.go` `GetNodeSnapshot` (the holder host check) | `TestWorkspaceRenewalDoesNotWaitForSlowStore`, `TestWorkspaceConcurrentRenewalsDoNotSerializeOnStore`, `TestWorkspaceRenewalDoesNotWaitForUnrelatedHeldWrite` (`core/authority/workspace_renewal_slowstore_test.go`); `TestWorkspaceLeaseGuardSurvivesSlowAuthorityStore`, `TestWorkspaceRenewalRPCDoesNotWaitForHeldReservationWrite` (`core/host/master/workspace_renewal_slowstore_test.go`) ; `TestPlacementSnapshotDoesNotWaitForWriter`, `TestPlacementSnapshotFailedCommitStaysCommitted` (`core/lifecycle/placement_snapshot_test.go`); `TestNodeSnapshotDoesNotWaitForARegistrationWrite` (`core/lifecycle/node_snapshot_test.go`); `TestLiveRenewalDoesNotWaitForAHeldRegistrationWrite` (`core/host/master/server_host_identity_test.go`) | — | ACTIVE | -| `INV-WS-RESTART-GRACE-001` | A renewal writes nothing durable. A forced move, an expired re-grant and a delete's no-live-lease proof wait for this process's deadline plus skew: its latest grant, or after a restart the restart floor (restart + TTL, own monotonic clock); no lease value an earlier process wrote is read. | M2 Granted → Granted; Expired → Moved (forced); Expired → Granted; any → DeleteReserved | `core/authority/workspace_lease_view.go` `RenewWorkspaceLease`, `regrantWorkspaceLease`, `newWorkspaceLease`; `core/authority/workspace.go` `forcedMoveBarrierLocked`, `AckWorkspaceRevocation`; `core/authority/authority.go` `reloadFromStore` (the restart floor) | `TestRenewalWritesNothingDurable`, `TestForcedAdmissionIgnoresAPersistedHorizon` (`core/authority/workspace_restart_grace_test.go`); `TestWorkspaceLeaseGuardServesThroughAStalledStore` (`core/host/master/workspace_lease_horizon_test.go`); `TestAfterARestartADifferentHolderIsRefusedUntilTheRestartFloor`, `TestAfterARestartTheSameLiveHolderRenewsAtOnce` (`core/authority/workspace_restart_barrier_test.go`) | `LeaseRestart` `OneServer` (grace design) | ACTIVE | -| `INV-WS-AUTH-RECORD-V2-001` | Before it serves, this master writes the store's attestation file as format 2, on which a v1.0.x master refuses its whole start; its authority records are envelope version 2 (a v1.0.x master would skip them). It reads both forms of each. | M2 every workspace write; master start | `core/host/master/store_attestation.go` `ensureEnvelope`, `decodeStoreAttestations`; `core/host/master/host.go` `New`; `core/authority/authority_store.go` `storeEnvelopeVersion`, `encodeEnvelope`, `decodeEnvelope` | `TestAV100MasterRefusesTheAttestationEnvelope`, `TestAttestationsWriteTheV100FileInTheEnvelope`, `TestAttestationsReadTheV100File` (`core/host/master/golden_v100_test.go`); `TestARecordWrittenNowFailsTheV100Decoder` (`core/authority/workspace_restart_grace_test.go`); `TestAuthorityStoreWritesTheV100Files`, `TestAuthorityStoreReadsTheV100Files` (`core/authority/golden_v100_test.go`) | — | ACTIVE | +| `INV-WS-RESTART-GRACE-001` | At format level 1, a renewal writes nothing durable. A forced move, an expired re-grant and a no-live-lease proof wait for this process's deadline plus skew: its latest grant, or after a restart the restart floor (restart + TTL); no lease value an earlier process wrote is read. | M2 Granted → Granted; Expired → Moved (forced); Expired → Granted; any → DeleteReserved | `core/authority/workspace_lease_view.go` `RenewWorkspaceLease`, `regrantWorkspaceLease`, `newWorkspaceLease`; `core/authority/workspace.go` `forcedMoveBarrierLocked`, `AckWorkspaceRevocation`; `core/authority/authority.go` `reloadFromStore` (the restart floor) | `TestRenewalWritesNothingDurable`, `TestForcedAdmissionIgnoresAPersistedHorizon` (`core/authority/workspace_restart_grace_test.go`); `TestWorkspaceLeaseGuardServesThroughAStalledStore` (`core/host/master/workspace_lease_horizon_test.go`); `TestAfterARestartADifferentHolderIsRefusedUntilTheRestartFloor`, `TestAfterARestartTheSameLiveHolderRenewsAtOnce` (`core/authority/workspace_restart_barrier_test.go`) | `LeaseRestart` `OneServer` (grace design) | ACTIVE | +| `INV-WS-AUTH-RECORD-V2-001` | The format finalize writes the store's attestation file as format 2 (`INV-FMT-LEVEL-001`), on which a v1.0.x master refuses its whole start; from then on its authority records are envelope version 2 (a v1.0.x master would skip them); before it, both are v1.0's. It reads both forms of each. | M2 every workspace write; master start | `core/host/master/store_attestation.go` `ensureEnvelope`, `decodeStoreAttestations`; `core/host/master/host.go` `New`; `core/authority/authority_store.go` `storeEnvelopeVersion`, `encodeEnvelope`, `decodeEnvelope` | `TestAV100MasterRefusesTheAttestationEnvelope`, `TestAttestationsWriteTheV100FileUntilTheFinalize`, `TestAttestationsReadTheV100File` (`core/host/master/golden_v100_test.go`); `TestARecordWrittenNowFailsTheV100Decoder` (`core/authority/workspace_restart_grace_test.go`); `TestAuthorityStoreWritesTheV100Files`, `TestAuthorityStoreReadsTheV100Files` (`core/authority/golden_v100_test.go`) | — | ACTIVE | +| `INV-FMT-LEVEL-001` | The cluster's format level is the attestation file's form: v1.0.x's bare map is level 0, the envelope (format 2, format_level 1) level 1. It only rises: the finalize is its only writer, and an envelope below level 1 is refused at start. | FormatGate Finalize (level 0 → 1) | `core/host/master/store_attestation.go` `decodeStoreAttestations`, `finalize`, `persist`, `level`; `core/host/master/host.go` `New` | `TestFinalizeFormatNeedsEveryRegisteredHostAndIsDurable`, `TestAnAttestationEnvelopeBelowLevel1IsRefused` (`core/host/master/format_gate_test.go`); `TestAttestationsWriteTheV100FileUntilTheFinalize`, `TestAV100MasterRefusesTheAttestationEnvelope` (`core/host/master/golden_v100_test.go`) | `FormatGate` `OneWay` (mutation `level_lowered`) | ACTIVE | +| `INV-FMT-FINALIZE-001` | The finalize is refused, naming them, while a registered host has not reported reads_level >= 1 since the master started. Else it writes the envelope durably, then switches the publisher under both its locks, then answers; a failed write leaves level 0. | FormatGate Finalize | `core/host/master/format_gate.go` `FinalizeFormat`, `belowLevel`; `core/authority/workspace_lease_v100.go` `FinalizeFormatLevel` | `TestFinalizeFormatNeedsEveryRegisteredHostAndIsDurable`, `TestAFailedFinalizeWriteLeavesLevel0` (`core/host/master/format_gate_test.go`); `TestClusterFinalizeFormat` (`cmd/sw-block/cluster_format_test.go`) | `FormatGate` `FinalizeKeepsHosts` (mutation `finalize_ignores_reports`); `FormatGateMaster` (mutations `old_starts_after_finalize`, `finalize_not_atomic`) | ACTIVE | +| `INV-FMT-ELIGIBLE-001` | At format level L no new work goes to a server that reads below L or has not reported: no placement, workspace placement or move target, and its heartbeat is refused binary_too_old. Placed work stays. Every assignment carries L. | FormatGate Assign (placement, move, failover) | `core/host/master/format_gate.go` `formatEligible`, `formatTooOld`; `core/host/master/journal_isolation.go` `newWorkRefused`, `reconcilePlacements`; `core/host/master/workspace_binding.go` `PlaceWorkspace`; `core/host/master/workspace_service.go` `workspaceMoveCheckLocked`; `core/host/master/services.go` `ReportHeartbeat`, `assignmentFact` | `TestFormatGateRefusesAnOldBinarysHeartbeatAtLevel1`, `TestFormatGateRefusesPlacementAndMoveOntoAnOldHost`, `TestFormatGateProductLoopPlacesOnlyOnHostsThatReadTheLevel`, `TestAssignmentFactCarriesTheFormatLevel` (`core/host/master/format_gate_test.go`) | `FormatGate` `NoStrand` (mutation `place_ignores_reads_level`) | ACTIVE | +| `INV-FMT-LEVEL0-V100-001` | At format level 0 the master writes as v1.0: grants clamp to the persisted horizon, an extender keeps it current, forced moves and re-grants wait for the later of horizon and deadline plus skew, records are version 1. Every grant raises the deadline at both levels. | M2 Granted → Granted; Expired → Moved (forced); Expired → Granted (level 0) | `core/authority/workspace_lease_v100.go` `renewV100Locked`, `extendWorkspaceLease`, `forcedMoveBarrierV100Locked`, `ackValidityLocked`, `envelopeVersionLocked`; `core/authority/workspace_lease_view.go` `RenewWorkspaceLease` | `TestALevel0RenewalKeepsTheHorizonCurrent`, `TestALevel0GrantIsClampedToTheHorizon`, `TestTheForcedBarrierFollowsTheFormatLevel`, `TestRecordEnvelopeVersionFollowsTheFormatLevel` (`core/authority/workspace_format_level_test.go`) | `FormatGateMaster` `OneServer`, `GraceOnlyFinal` (mutations `level0_no_horizon`, `old_starts_after_finalize`) | ACTIVE | +| `INV-FMT-RETIRE-001` | A host retire is refused, naming the volumes, while the host holds a placement or a live line, and unless confirm repeats the server id. A retired host leaves the inventory; if it returns it registers again and is judged at its reported level. | FormatGate Retire | `core/host/master/format_gate.go` `RetireHost`; `core/host/master/journal_isolation.go` `volumesServedBy` | `TestRetireHostRefusesAHostThatHoldsWork` (`core/host/master/format_gate_test.go`); `TestClusterRetireHost` (`cmd/sw-block/cluster_format_test.go`) | `FormatGate` r2 `OneServer` (mutation `retire_holding_host`) | ACTIVE | | `INV-LIFECYCLE-SNAPSHOT-001` | The Volumes and deletion-reservation snapshots read by the renewal path equal the store records after every change of the records, including load, delete and a protective reservation kept in memory on an unknown write outcome; a published snapshot is never mutated. | M2 Bound → Deleting (renewal reads) | `core/lifecycle/store.go` `publishLocked`, `GetVolumeSnapshot`; `core/lifecycle/deletion_reservations.go` `publishLocked`, `ReservedSnapshot` | `TestDeletionReservationSnapshotFollowsRecords`, `TestFileStoreSnapshotFollowsRecords`, `TestLifecycleSnapshotReadsDoNotTakeStoreMutex`, `TestLifecycleSnapshotConcurrentWriters` (`core/lifecycle/renewal_snapshot_test.go`); `TestWorkspaceRenewalRPCDuringHeldSameVolumeReservation` (`core/host/master/workspace_lease_horizon_test.go`) | — | ACTIVE | | `INV-LIFECYCLE-STORE-DURABLE-001` | Node registration, volume record and placement-intent puts/replacements are atomic and durable: after a crash the record file is the complete old or the complete new record; a put that returned nil has fsynced the file and its directory. | M2 lifecycle record publication | `core/lifecycle/record_file.go` `writeRecordDurably`; `node_inventory.go`, `store.go`, `placement_intent.go` `putLocked` | `TestNodeInventoryCrashKeepsCompleteRegistration` (`core/lifecycle/node_inventory_crash_test.go`); `TestFileStoreCrashKeepsCompleteRecord`, `TestPlacementStoreCrashKeepsCompleteRecord`, `TestLifecyclePutSyncOrderAndFailure` (`core/lifecycle/store_crash_test.go`); `TestLifecycleStoreParentSync` (`core/lifecycle/store_parent_sync_test.go`) | � | ACTIVE | | `INV-VOL-ID-NO-REUSE-001` | A deleted volume id is never created or attached again. | M2 Deleting; M6 purging → deleted | `core/host/master/services.go` `MarkVolumeDeleting`; `core/frontend/chunkstore/layout/create.go` `createVolume` | `TestMarkVolumeDeleting_ReservesUnknownIdsAndSurvivesDeleteAndRestart` (`core/host/master/volume_deleting_test.go`); `TestCreateVolume_OverAnExistingHeadByState` (`core/frontend/chunkstore/layout/create_test.go`) | `ChunkLifecycleFixed` `NoIdReuse` | ACTIVE | diff --git a/seaweed-block/docs/releases/v1.1.md b/seaweed-block/docs/releases/v1.1.md index 13c0502601..e2e5bd8749 100644 --- a/seaweed-block/docs/releases/v1.1.md +++ b/seaweed-block/docs/releases/v1.1.md @@ -26,3 +26,18 @@ These notes collect v1.1's changes as they land; v1.1 is not released. created with, and v1.1's differ. Upgrade such a host whole: stop every process using the directory, remove `/configuration.json`, then start them all on v1.1. Until then a new process refuses the directory, naming the file and this cure, and a host that mixes old and new processes skips background cuts with an alarm. +- **The v1.1 format is switched on by the operator, and going back works until then.** v1.1 keeps writing the v1.0 + format, and blockmaster keeps v1.0's lease semantics, until `sw-block cluster finalize-format --master `. Each + host reports the format its binary reads; the finalize refuses while a registered host has not reported that it + reads v1.1, and names each one: upgrade it, or retire it (`sw-block cluster retire-host --server --confirm + --master `, refused while the host still holds a volume). + - Before the finalize, going back to v1.0.x works: stop the v1.1 binaries and start v1.0.x. Name-only snapshot + deletes keep v1.0's semantics until then (a retry after a lost answer may act twice). + - The finalize is one-way. Afterwards a v1.0.x blockmaster refuses to start on the store, and a v1.0.x holder that + meets a volume v1.1 has opened refuses it and writes nothing to it, but exits with a status its systemd unit + treats as retryable, so the unit restarts it until its start limit. With its local store it answers `invalid + superblock`; without one, `HEAD written by a newer version` (v1.0.0 and v1.0.1 report that HEAD as malformed). + None of these means damage: do not rebuild the volume; start v1.1 again. + - After the finalize, a host whose binary does not read v1.1 is refused (`binary_too_old`) and gets no volume. + - v1.1 answers the reverse case, a store or HEAD written by a later version, with a final exit 78 + (`store_format_newer`, `head_newer_version`), which the unit does not restart. From 767d498301df9da85aab02656aa647f01c848b92 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 1 Dec 2026 18:53:57 -0800 Subject: [PATCH 03/12] blockmaster: the node registry guard allows the host retire's removal After start the registry only loses entries: the operator's retire removes a host that holds no volume, and a retired id is then unregistered, so the identity checks only get stricter. Adders stay start-up only. Co-Authored-By: Claude Opus 5.5 --- .../blockmaster/node_registry_guard_test.go | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/seaweed-block/cmd/blockmaster/node_registry_guard_test.go b/seaweed-block/cmd/blockmaster/node_registry_guard_test.go index 08f6512bdc..77b785079e 100644 --- a/seaweed-block/cmd/blockmaster/node_registry_guard_test.go +++ b/seaweed-block/cmd/blockmaster/node_registry_guard_test.go @@ -11,11 +11,15 @@ import ( "testing" ) -// The node registry (server id -> registered host) is static after start: -// the identity checks (the registered-host refusal beside the certificate -// identity) assume no one rewrites it while blockmaster serves. Its only -// writer is the cluster-spec import at start-up. This guard fails when a -// new non-test caller of RegisterNode or RemoveNode appears anywhere. +// The node registry (server id -> registered host) only ever loses entries +// after start: the identity checks (the registered-host refusal beside the +// certificate identity) assume no one adds or rebinds a server id while +// blockmaster serves. Its only adder is the cluster-spec import at start-up. +// Its one remover after start is the operator's host retire, which takes +// only a host that holds no volume: a retired id is then unregistered, so a +// holder RPC under it is refused (refuseWorkspaceHolderHost) and the checks +// only get stricter. This guard fails when any other non-test caller of +// RegisterNode or RemoveNode appears anywhere. func TestNodeRegistryIsWrittenOnlyAtStartup(t *testing.T) { root, err := filepath.Abs(filepath.Join("..", "..")) if err != nil { @@ -64,8 +68,8 @@ func TestNodeRegistryIsWrittenOnlyAtStartup(t *testing.T) { t.Fatal(err) } sort.Strings(sites) - want := []string{"cmd/blockmaster/main.go:importLifecycleNodeInventory.RegisterNode"} + want := []string{"cmd/blockmaster/main.go:importLifecycleNodeInventory.RegisterNode", "core/host/master/format_gate.go:RetireHost.RemoveNode"} if strings.Join(sites, ",") != strings.Join(want, ",") { - t.Fatalf("node registry writers = %v, want only %v: a writer after start breaks the static-registry assumption of the identity checks", sites, want) + t.Fatalf("node registry writers = %v, want only %v: an adder after start, or another remover, breaks the identity checks' assumption", sites, want) } } From 349fc1ba5a095dca11c079a4fea8d1584a620a8e Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 1 Dec 2026 18:54:37 -0800 Subject: [PATCH 04/12] docs: INV-FMT-RETIRE-001 names the retire as the registry's only writer after start Co-Authored-By: Claude Opus 5.5 --- seaweed-block/docs/design/invariants.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seaweed-block/docs/design/invariants.md b/seaweed-block/docs/design/invariants.md index 2e5e99bbd0..822e218020 100644 --- a/seaweed-block/docs/design/invariants.md +++ b/seaweed-block/docs/design/invariants.md @@ -819,7 +819,7 @@ Notes: | `INV-FMT-FINALIZE-001` | The finalize is refused, naming them, while a registered host has not reported reads_level >= 1 since the master started. Else it writes the envelope durably, then switches the publisher under both its locks, then answers; a failed write leaves level 0. | FormatGate Finalize | `core/host/master/format_gate.go` `FinalizeFormat`, `belowLevel`; `core/authority/workspace_lease_v100.go` `FinalizeFormatLevel` | `TestFinalizeFormatNeedsEveryRegisteredHostAndIsDurable`, `TestAFailedFinalizeWriteLeavesLevel0` (`core/host/master/format_gate_test.go`); `TestClusterFinalizeFormat` (`cmd/sw-block/cluster_format_test.go`) | `FormatGate` `FinalizeKeepsHosts` (mutation `finalize_ignores_reports`); `FormatGateMaster` (mutations `old_starts_after_finalize`, `finalize_not_atomic`) | ACTIVE | | `INV-FMT-ELIGIBLE-001` | At format level L no new work goes to a server that reads below L or has not reported: no placement, workspace placement or move target, and its heartbeat is refused binary_too_old. Placed work stays. Every assignment carries L. | FormatGate Assign (placement, move, failover) | `core/host/master/format_gate.go` `formatEligible`, `formatTooOld`; `core/host/master/journal_isolation.go` `newWorkRefused`, `reconcilePlacements`; `core/host/master/workspace_binding.go` `PlaceWorkspace`; `core/host/master/workspace_service.go` `workspaceMoveCheckLocked`; `core/host/master/services.go` `ReportHeartbeat`, `assignmentFact` | `TestFormatGateRefusesAnOldBinarysHeartbeatAtLevel1`, `TestFormatGateRefusesPlacementAndMoveOntoAnOldHost`, `TestFormatGateProductLoopPlacesOnlyOnHostsThatReadTheLevel`, `TestAssignmentFactCarriesTheFormatLevel` (`core/host/master/format_gate_test.go`) | `FormatGate` `NoStrand` (mutation `place_ignores_reads_level`) | ACTIVE | | `INV-FMT-LEVEL0-V100-001` | At format level 0 the master writes as v1.0: grants clamp to the persisted horizon, an extender keeps it current, forced moves and re-grants wait for the later of horizon and deadline plus skew, records are version 1. Every grant raises the deadline at both levels. | M2 Granted → Granted; Expired → Moved (forced); Expired → Granted (level 0) | `core/authority/workspace_lease_v100.go` `renewV100Locked`, `extendWorkspaceLease`, `forcedMoveBarrierV100Locked`, `ackValidityLocked`, `envelopeVersionLocked`; `core/authority/workspace_lease_view.go` `RenewWorkspaceLease` | `TestALevel0RenewalKeepsTheHorizonCurrent`, `TestALevel0GrantIsClampedToTheHorizon`, `TestTheForcedBarrierFollowsTheFormatLevel`, `TestRecordEnvelopeVersionFollowsTheFormatLevel` (`core/authority/workspace_format_level_test.go`) | `FormatGateMaster` `OneServer`, `GraceOnlyFinal` (mutations `level0_no_horizon`, `old_starts_after_finalize`) | ACTIVE | -| `INV-FMT-RETIRE-001` | A host retire is refused, naming the volumes, while the host holds a placement or a live line, and unless confirm repeats the server id. A retired host leaves the inventory; if it returns it registers again and is judged at its reported level. | FormatGate Retire | `core/host/master/format_gate.go` `RetireHost`; `core/host/master/journal_isolation.go` `volumesServedBy` | `TestRetireHostRefusesAHostThatHoldsWork` (`core/host/master/format_gate_test.go`); `TestClusterRetireHost` (`cmd/sw-block/cluster_format_test.go`) | `FormatGate` r2 `OneServer` (mutation `retire_holding_host`) | ACTIVE | +| `INV-FMT-RETIRE-001` | A host retire, the node registry's only writer after start, is refused, naming the volumes, while the host holds a placement or a live line, and unless confirm repeats the id. A retired id is unregistered; if the host returns it registers again at its reported level. | FormatGate Retire | `core/host/master/format_gate.go` `RetireHost`; `core/host/master/journal_isolation.go` `volumesServedBy` | `TestRetireHostRefusesAHostThatHoldsWork` (`core/host/master/format_gate_test.go`); `TestClusterRetireHost` (`cmd/sw-block/cluster_format_test.go`); `TestNodeRegistryIsWrittenOnlyAtStartup` (`cmd/blockmaster/node_registry_guard_test.go`) | `FormatGate` r2 `OneServer` (mutation `retire_holding_host`) | ACTIVE | | `INV-LIFECYCLE-SNAPSHOT-001` | The Volumes and deletion-reservation snapshots read by the renewal path equal the store records after every change of the records, including load, delete and a protective reservation kept in memory on an unknown write outcome; a published snapshot is never mutated. | M2 Bound → Deleting (renewal reads) | `core/lifecycle/store.go` `publishLocked`, `GetVolumeSnapshot`; `core/lifecycle/deletion_reservations.go` `publishLocked`, `ReservedSnapshot` | `TestDeletionReservationSnapshotFollowsRecords`, `TestFileStoreSnapshotFollowsRecords`, `TestLifecycleSnapshotReadsDoNotTakeStoreMutex`, `TestLifecycleSnapshotConcurrentWriters` (`core/lifecycle/renewal_snapshot_test.go`); `TestWorkspaceRenewalRPCDuringHeldSameVolumeReservation` (`core/host/master/workspace_lease_horizon_test.go`) | — | ACTIVE | | `INV-LIFECYCLE-STORE-DURABLE-001` | Node registration, volume record and placement-intent puts/replacements are atomic and durable: after a crash the record file is the complete old or the complete new record; a put that returned nil has fsynced the file and its directory. | M2 lifecycle record publication | `core/lifecycle/record_file.go` `writeRecordDurably`; `node_inventory.go`, `store.go`, `placement_intent.go` `putLocked` | `TestNodeInventoryCrashKeepsCompleteRegistration` (`core/lifecycle/node_inventory_crash_test.go`); `TestFileStoreCrashKeepsCompleteRecord`, `TestPlacementStoreCrashKeepsCompleteRecord`, `TestLifecyclePutSyncOrderAndFailure` (`core/lifecycle/store_crash_test.go`); `TestLifecycleStoreParentSync` (`core/lifecycle/store_parent_sync_test.go`) | � | ACTIVE | | `INV-VOL-ID-NO-REUSE-001` | A deleted volume id is never created or attached again. | M2 Deleting; M6 purging → deleted | `core/host/master/services.go` `MarkVolumeDeleting`; `core/frontend/chunkstore/layout/create.go` `createVolume` | `TestMarkVolumeDeleting_ReservesUnknownIdsAndSurvivesDeleteAndRestart` (`core/host/master/volume_deleting_test.go`); `TestCreateVolume_OverAnExistingHeadByState` (`core/frontend/chunkstore/layout/create_test.go`) | `ChunkLifecycleFixed` `NoIdReuse` | ACTIVE | From fadc4f03450fbd4d537abb9be26f9c7792b256b1 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 1 Dec 2026 20:01:10 -0800 Subject: [PATCH 05/12] format gate: per-process read levels, the publication boundary checks them, the clamped grant stays monotonic A server's per-volume processes may run different binaries: the read level is kept per process (its heartbeat slot's incarnation) and a server reads the lowest any of its processes reported within the freshness window. A heartbeat is judged on its own process's level. The final publication boundary and the promotion gate check the target server's current level, so an ask decided before an old process reported is not published. A level-0 grant clamped to the horizon is now + the time left to it, so the deadline (read by the level-1 barrier after a finalize) keeps the monotonic reading. Co-Authored-By: Claude Opus 5.5 --- .../authority/workspace_format_level_test.go | 35 ++++++- .../core/authority/workspace_lease_v100.go | 6 +- seaweed-block/core/host/master/format_gate.go | 89 ++++++++++++++--- .../core/host/master/format_gate_test.go | 99 ++++++++++++++++++- seaweed-block/core/host/master/host.go | 2 +- .../core/host/master/product_loop.go | 4 +- seaweed-block/core/host/master/services.go | 10 +- .../core/host/master/workspace_binding.go | 5 + 8 files changed, 226 insertions(+), 24 deletions(-) diff --git a/seaweed-block/core/authority/workspace_format_level_test.go b/seaweed-block/core/authority/workspace_format_level_test.go index de33288848..9ed9208a0c 100644 --- a/seaweed-block/core/authority/workspace_format_level_test.go +++ b/seaweed-block/core/authority/workspace_format_level_test.go @@ -5,6 +5,8 @@ import ( "context" "os" "path/filepath" + "strings" + "sync/atomic" "testing" "time" ) @@ -124,7 +126,7 @@ func TestTheForcedBarrierFollowsTheFormatLevel(t *testing.T) { disk, _ := newTempStore(t) c := newTestClock() p := level0Publisher(t, disk, 30*time.Second, c) - p.CloseWorkspaceExtenders() // horizon stays t=45 + p.CloseWorkspaceExtenders() // horizon stays t=45 bindAndGrant(t, p, "v", "r") // deadline t=30, horizon t=45, skew 4 c.at(40) if err := p.WorkspaceForcedMoveAdmitted(context.Background(), "v", "f", "r", 1); err == nil { @@ -165,3 +167,34 @@ func TestTheForcedBarrierFollowsTheFormatLevel(t *testing.T) { t.Fatalf("after the finalize at t=54 (level 0 would wait for the horizon t=65 plus skew): %v", err) } } + +// A clamped level-0 grant raises the deadline with this process's monotonic +// reading, so the level-1 barrier after a finalize (with no renewal after +// it) cannot be moved by a wall-clock step (codex01's AMEND P1 1). +func TestAClampedLevel0GrantKeepsTheMonotonicReading(t *testing.T) { + disk, _ := newTempStore(t) + base := time.Now() // monotonic + var offset atomic.Int64 + clock := func() time.Time { return base.Add(time.Duration(offset.Load())) } + p := NewPublisher(nil, WithStore(disk), WithWorkspaceLeaseConfig(30*time.Second, clock), WithWorkspaceMaxClockSkew(4*time.Second), WithFormatLevel(0)) + p.CloseWorkspaceExtenders() // no extension: the horizon stays first grant + 45 s + bindAndGrant(t, p, "v", "r") + offset.Store(int64(20 * time.Second)) + l, err := p.RenewWorkspaceLease(context.Background(), "v", "r", 1) + if err != nil { + t.Fatal(err) + } + if want := base.Add(45 * time.Second).UnixNano(); l.ExpiresAtNS != want { + t.Fatalf("renewal at +20 s: grant %d, want the horizon %d (clamped)", l.ExpiresAtNS, want) + } + p.FinalizeFormatLevel() + p.mu.Lock() + d := p.leaseDeadlineLocked("v") + p.mu.Unlock() + if !strings.Contains(d.String(), "m=") { + t.Fatalf("the clamped deadline %s has no monotonic reading: a wall-clock step after the finalize would move the barrier", d) + } + if !d.Equal(base.Add(45 * time.Second)) { + t.Fatalf("the clamped deadline %s, want base + 45 s", d) + } +} diff --git a/seaweed-block/core/authority/workspace_lease_v100.go b/seaweed-block/core/authority/workspace_lease_v100.go index 7db6b7821b..7ec3f576b6 100644 --- a/seaweed-block/core/authority/workspace_lease_v100.go +++ b/seaweed-block/core/authority/workspace_lease_v100.go @@ -104,7 +104,11 @@ func (p *Publisher) forcedMoveBarrierV100Locked(lease *WorkspaceLease, deadline func (p *Publisher) renewV100Locked(volume, holder string, epoch uint64, lv *leaseView, now time.Time) (WorkspaceLease, error) { grant := now.Add(p.workspaceTTL) if h := time.Unix(0, lv.d.horizon); grant.After(h) { - grant = h + // Clamped to the horizon, as the time left to it from now: the grant + // (and the deadline it raises, which the level-1 barrier reads after + // a finalize) keeps now's monotonic reading, so a wall-clock step + // cannot move it. + grant = now.Add(h.Sub(now)) } // A grant without positive host validity would make the host fence on an // invalid reply; refuse with an error instead. diff --git a/seaweed-block/core/host/master/format_gate.go b/seaweed-block/core/host/master/format_gate.go index a9f30741f2..d4fd49add8 100644 --- a/seaweed-block/core/host/master/format_gate.go +++ b/seaweed-block/core/host/master/format_gate.go @@ -8,6 +8,7 @@ import ( "strings" "sync" "sync/atomic" + "time" control "github.com/seaweedfs/seaweed-block/core/rpc/control" "github.com/seaweedfs/seaweed-block/core/rpc/lifecycleclient" @@ -15,29 +16,89 @@ import ( "google.golang.org/grpc/status" ) -// readsLevels holds each server's reported format read level (its latest -// heartbeat's reads_level), in memory only. A registered server with no -// report since this master started reads level 0: unknown counts as old, so -// a silent host never lets the format be finalized past it. +// readsLevels holds the format read level each reporting process of a +// server sent (its latest heartbeat's reads_level), in memory only. One +// server id is shared by its per-volume processes, which may run different +// binaries, so a server reads the lowest level any of its processes reported +// within the freshness window (a process silent longer has gone). A +// registered server with no such report reads level 0: unknown counts as +// old, so a silent host never lets the format be finalized past it. type readsLevels struct { - mu sync.Mutex - level map[string]uint32 + mu sync.Mutex + window time.Duration + now func() time.Time + procs map[string]map[string]procLevel // server -> process -> report } -func newReadsLevels() *readsLevels { return &readsLevels{level: map[string]uint32{}} } +type procLevel struct { + level uint32 + seen time.Time +} -func (r *readsLevels) note(server string, level uint32) { +func newReadsLevels(window time.Duration) *readsLevels { + return &readsLevels{window: window, now: time.Now, procs: map[string]map[string]procLevel{}} +} + +// note records the level process (of server) reported now. +func (r *readsLevels) note(server, process string, level uint32) { r.mu.Lock() defer r.mu.Unlock() - r.level[server] = level + if r.procs[server] == nil { + r.procs[server] = map[string]procLevel{} + } + r.procs[server][process] = procLevel{level: level, seen: r.now()} } -// of is server's reported read level and whether it has reported. +// of is the lowest level server's processes reported within the window, +// and whether any did. func (r *readsLevels) of(server string) (uint32, bool) { r.mu.Lock() defer r.mu.Unlock() - l, ok := r.level[server] - return l, ok + cutoff := r.now().Add(-r.window) + var low uint32 + found := false + for p, e := range r.procs[server] { + if e.seen.Before(cutoff) { + delete(r.procs[server], p) + continue + } + if !found || e.level < low { + low, found = e.level, true + } + } + return low, found +} + +// below names server's processes that reported a level below level within +// the window, sorted, each as "process (reads level N)". +func (r *readsLevels) below(server string, level uint32) []string { + r.mu.Lock() + defer r.mu.Unlock() + cutoff := r.now().Add(-r.window) + var out []string + for p, e := range r.procs[server] { + if !e.seen.Before(cutoff) && e.level < level { + out = append(out, fmt.Sprintf("%s (reads level %d)", p, e.level)) + } + } + sort.Strings(out) + return out +} + +// heartbeatProcess names the reporting process of a heartbeat: its slot's +// incarnation (new on every process start), else its slot's data address. +func heartbeatProcess(slots []*control.HeartbeatSlot) string { + for _, s := range slots { + if s.GetIncarnation() != "" { + return s.GetIncarnation() + } + } + for _, s := range slots { + if s.GetDataAddr() != "" { + return s.GetDataAddr() + } + } + return "" } // formatLevelState is the cluster's format level in memory: 0 until the @@ -69,7 +130,7 @@ func (h *Host) formatTooOld(server string) string { if !ok { return fmt.Sprintf("node %q has not reported its format read level; the cluster's format level is %d", server, h.formatLevel()) } - return fmt.Sprintf("node %q reads format level %d; the cluster's format level is %d (binary_too_old)", server, reads, h.formatLevel()) + return fmt.Sprintf("node %q reads format level %d (the lowest of its processes); the cluster's format level is %d (binary_too_old)", server, reads, h.formatLevel()) } // belowLevel lists the given servers whose reported read level is below @@ -82,7 +143,7 @@ func (h *Host) belowLevel(servers []string, level uint32) []string { case !ok: out = append(out, fmt.Sprintf("%s (no report)", s)) case reads < level: - out = append(out, fmt.Sprintf("%s (reads level %d)", s, reads)) + out = append(out, fmt.Sprintf("%s (process %s)", s, strings.Join(h.reads.below(s, level), ", "))) } } sort.Strings(out) diff --git a/seaweed-block/core/host/master/format_gate_test.go b/seaweed-block/core/host/master/format_gate_test.go index 69a45d5bcb..5458934e3c 100644 --- a/seaweed-block/core/host/master/format_gate_test.go +++ b/seaweed-block/core/host/master/format_gate_test.go @@ -7,6 +7,7 @@ import ( "path/filepath" "strings" "testing" + "time" "github.com/seaweedfs/seaweed-block/core/adapter" "github.com/seaweedfs/seaweed-block/core/lifecycle" @@ -175,7 +176,7 @@ func TestFinalizeFormatNeedsEveryRegisteredHostAndIsDurable(t *testing.T) { for _, step := range []struct { reads *uint32 want string - }{{nil, "node-b (no report)"}, {ptr(uint32(0)), "node-b (reads level 0)"}} { + }{{nil, "node-b (no report)"}, {ptr(uint32(0)), "node-b (process 127.0.0.1:19311 (reads level 0))"}} { if step.reads != nil { if err := r.fgHeartbeat("node-b", *step.reads); err != nil { t.Fatal(err) @@ -280,3 +281,99 @@ func TestAFailedFinalizeWriteLeavesLevel0(t *testing.T) { t.Fatalf("a failed finalize switched the level: master %d, publisher %d", r.m.formatLevel(), r.m.Publisher().FormatLevel()) } } + +// fgProcessHeartbeat sends a heartbeat of one of server's processes (its +// incarnation) for vol, reporting reads. +func (r *isolationRig) fgProcessHeartbeat(server, incarnation, vol string, reads uint32) error { + _, err := r.obs.ReportHeartbeat(r.ctx, &control.HeartbeatReport{ServerId: server, SentAt: timestamppb.Now(), Reachable: true, Eligible: true, ReadsLevel: reads, + Slots: []*control.HeartbeatSlot{{VolumeId: vol, ReplicaId: "r-" + incarnation, DataAddr: hbPorts[server][0], CtrlAddr: hbPorts[server][1], Incarnation: incarnation}}}) + return err +} + +// One server id is shared by its per-volume processes, which may run +// different binaries: an old process's level 0 is not hidden by a new +// process's later level 1. The finalize is refused naming the old process; +// at level 1 the server takes no new work while the old process is live, +// and the new process's own heartbeat is taken (FormatGate: a host is a +// process; codex01's AMEND P1 3). +func TestAServerReadsTheLowestLevelOfItsProcesses(t *testing.T) { + r := newIsolationRig(t, false, t.TempDir(), t.TempDir()) + if err := r.fgHeartbeat("node-a", 1); err != nil { + t.Fatal(err) + } + if err := r.fgProcessHeartbeat("node-b", "old-proc", "va", 0); err != nil { + t.Fatal(err) + } + if err := r.fgProcessHeartbeat("node-b", "new-proc", "vb", 1); err != nil { + t.Fatal(err) + } + _, err := r.lc.FinalizeFormat(r.ctx, &control.FinalizeFormatRequest{Level: 1}) + if reasonOf(err) != lifecycleclient.ReasonFormatHostsTooOld || !strings.Contains(status.Convert(err).Message(), "old-proc (reads level 0)") { + t.Fatalf("finalize with an old process beside a new one on node-b: %v", err) + } + r.m.format.v.Store(1) + if r.m.formatEligible("node-b") { + t.Fatal("level 1: node-b is eligible while its old process is live") + } + if err := r.fgProcessHeartbeat("node-b", "new-proc", "vb", 1); err != nil { + t.Fatalf("level 1: the new process's own heartbeat was refused: %v", err) + } + if err := r.fgProcessHeartbeat("node-b", "old-proc", "va", 0); !binaryTooOld(err) { + t.Fatalf("level 1: the old process's heartbeat: %v", err) + } +} + +// A process silent longer than the freshness window has gone: it no longer +// holds its server's level down. +func TestAGoneProcessNoLongerHoldsItsServersLevel(t *testing.T) { + rl := newReadsLevels(time.Minute) + now := time.Unix(1000, 0) + rl.now = func() time.Time { return now } + rl.note("s", "old", 0) + rl.note("s", "new", 1) + if l, ok := rl.of("s"); !ok || l != 0 { + t.Fatalf("both live: level %d %v, want 0", l, ok) + } + now = now.Add(2 * time.Minute) + rl.note("s", "new", 1) + if l, ok := rl.of("s"); !ok || l != 1 { + t.Fatalf("the old process silent past the window: level %d %v, want 1", l, ok) + } +} + +// A bind decided on a server's observations is not published once another +// of that server's processes reports a lower read level: the publication +// boundary judges the server's current capability (codex01's AMEND P1 2). +// The control, with no old process, binds. +func TestAPublicationToAServerThatTurnedOutOldIsRefused(t *testing.T) { + for _, old := range []bool{true, false} { + t.Run(map[bool]string{true: "old-process", false: "control"}[old], func(t *testing.T) { + r := newIsolationRig(t, false, t.TempDir(), t.TempDir()) + if old { + if err := r.fgProcessHeartbeat("node-b", "old-proc", "other", 0); err != nil { + t.Fatal(err) + } + } + r.m.format.v.Store(1) + r.createVolume(t, "v") + r.place(t, "v", "node-b") + if _, err := r.obs.ReportHeartbeat(r.ctx, &control.HeartbeatReport{ServerId: "node-b", SentAt: timestamppb.Now(), Reachable: true, Eligible: true, ReadsLevel: 1, + Slots: []*control.HeartbeatSlot{{VolumeId: "v", ReplicaId: "r1", DataAddr: "127.0.0.1:19301", CtrlAddr: "127.0.0.1:19302", Incarnation: "new-proc", Reachable: true, Eligible: true}}}); err != nil { + t.Fatal(err) + } + if _, err := r.m.RunLifecycleProductTick(); err != nil { + t.Fatal(err) + } + bound := false + for end := time.Now().Add(3 * time.Second); time.Now().Before(end) && !bound; time.Sleep(50 * time.Millisecond) { + _, bound = r.m.Publisher().VolumeAuthorityLine("v") + } + if old && bound { + t.Fatal("v was bound on node-b while an old process of node-b is live at level 1") + } + if !old && !bound { + t.Fatal("control: v was not bound on node-b, whose only process reads level 1") + } + }) + } +} diff --git a/seaweed-block/core/host/master/host.go b/seaweed-block/core/host/master/host.go index 555ca204b6..aa718e08c1 100644 --- a/seaweed-block/core/host/master/host.go +++ b/seaweed-block/core/host/master/host.go @@ -270,7 +270,7 @@ func New(cfg Config) (*Host, error) { topo: cfg.Topology, events: newEventRing(1024), journal: newJournalIsolation(storeident.Identity{}), // sampled once the store exists - reads: newReadsLevels(), + reads: newReadsLevels(cfg.Freshness.EffectiveFreshnessWindow()), } boot, err := bootstrap.BootstrapWithOptions(cfg.AuthorityStoreDir, ctrl, bootstrap.Options{ diff --git a/seaweed-block/core/host/master/product_loop.go b/seaweed-block/core/host/master/product_loop.go index 755ef9f5dd..3d7fe9f1b9 100644 --- a/seaweed-block/core/host/master/product_loop.go +++ b/seaweed-block/core/host/master/product_loop.go @@ -304,7 +304,7 @@ func (h *Host) applyPromotionEvidenceGate(snap *authority.ClusterSnapshot) (int, h.holdCreating(vol, why) continue } - currentAcceptable := candidateAcceptableForPromotionGate(vol.Slots[currentIdx], serverIndex) + currentAcceptable := candidateAcceptableForPromotionGate(vol.Slots[currentIdx], serverIndex) && h.formatEligible(vol.Slots[currentIdx].ServerID) // A fencing round fenced survivors above this line and nothing was // published: they refuse the primary at its epoch (and may no longer // look ready), so heal before anything else while it is acceptable. @@ -319,7 +319,7 @@ func (h *Host) applyPromotionEvidenceGate(snap *authority.ClusterSnapshot) (int, for _, slot := range vol.Slots { if slot.ReplicaID != vol.Authority.ReplicaID { candidates = append(candidates, slot) - if candidateAcceptableForPromotionGate(slot, serverIndex) { + if candidateAcceptableForPromotionGate(slot, serverIndex) && h.formatEligible(slot.ServerID) { readyCandidate = true } } diff --git a/seaweed-block/core/host/master/services.go b/seaweed-block/core/host/master/services.go index a07a4194fe..bac154e131 100644 --- a/seaweed-block/core/host/master/services.go +++ b/seaweed-block/core/host/master/services.go @@ -537,11 +537,13 @@ func (s *services) ReportHeartbeat(ctx context.Context, r *control.HeartbeatRepo if err := s.host.refuseServerIDFromOtherHost(r); err != nil { return nil, status.Error(codes.FailedPrecondition, err.Error()) } - // The format gate: the server's read level, recorded before it is - // judged; a binary that cannot read the cluster's format level is + // The format gate: the reporting process's read level, recorded before + // it is judged (its server then reads at most that level for new work); + // a process whose binary cannot read the cluster's format level is // refused, so it is never observed as a candidate. - s.host.reads.note(r.GetServerId(), r.GetReadsLevel()) - if why := s.host.formatTooOld(r.GetServerId()); why != "" { + s.host.reads.note(r.GetServerId(), heartbeatProcess(r.GetSlots()), r.GetReadsLevel()) + if level := s.host.formatLevel(); r.GetReadsLevel() < level { + why := fmt.Sprintf("node %q process reads format level %d; the cluster's format level is %d (binary_too_old)", r.GetServerId(), r.GetReadsLevel(), level) return nil, lifecycleclient.WithReason(status.New(codes.FailedPrecondition, "heartbeat refused: "+why), lifecycleclient.ReasonBinaryTooOld).Err() } msg := heartbeatFromWire(r) diff --git a/seaweed-block/core/host/master/workspace_binding.go b/seaweed-block/core/host/master/workspace_binding.go index 245165720b..798bc78eaa 100644 --- a/seaweed-block/core/host/master/workspace_binding.go +++ b/seaweed-block/core/host/master/workspace_binding.go @@ -277,6 +277,11 @@ func (h *Host) admitWorkspacePublication(ask authority.AssignmentAsk, publish fu epoch = line.Epoch } server := h.workspaceSourceHost(ask.VolumeID, ask.ReplicaID, epoch) + // The format gate at the last boundary: an ask decided on observations + // taken before its server reported a lower read level is not published. + if why := h.formatTooOld(server); why != "" { + return fmt.Errorf("workspace publication: %s", why) + } b := lifecycle.WorkspaceBinding{VolumeID: ask.VolumeID, ServerID: server, DataAddr: ask.DataAddr, CtrlAddr: ask.CtrlAddr} if bound { matched := false From 7cb93af9ec8ebafb7320c2fed87513a2e87ed969 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 1 Dec 2026 20:19:53 -0800 Subject: [PATCH 06/12] format gate: a silent process keeps its level while its volume is served Read levels are kept per (server, volume): a server runs one process per volume, so a later report for the volume is its process restarted or replaced. A silent process's entry stays while the server still serves its volume (a placement, a live line); it leaves only on a retire, when the volume is no longer served and the process has been silent past the freshness window, or on a newer report for the same volume. The publication-boundary test calls the admission directly with a recording publish. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/core/host/master/format_gate.go | 111 ++++++++++------- .../core/host/master/format_gate_test.go | 116 ++++++++++++------ seaweed-block/core/host/master/services.go | 3 +- 3 files changed, 150 insertions(+), 80 deletions(-) diff --git a/seaweed-block/core/host/master/format_gate.go b/seaweed-block/core/host/master/format_gate.go index d4fd49add8..0390c5cba2 100644 --- a/seaweed-block/core/host/master/format_gate.go +++ b/seaweed-block/core/host/master/format_gate.go @@ -16,52 +16,70 @@ import ( "google.golang.org/grpc/status" ) -// readsLevels holds the format read level each reporting process of a -// server sent (its latest heartbeat's reads_level), in memory only. One -// server id is shared by its per-volume processes, which may run different -// binaries, so a server reads the lowest level any of its processes reported -// within the freshness window (a process silent longer has gone). A -// registered server with no such report reads level 0: unknown counts as -// old, so a silent host never lets the format be finalized past it. +// readsLevels holds the format read level each of a server's processes +// reported (its latest heartbeat's reads_level), in memory only, one entry +// per volume: a server runs one process per volume, so a later report for +// the same volume is that volume's process (restarted or replaced) and +// supersedes the earlier one. A server reads the lowest level of its +// entries. Silence is not proof that a process is gone: an entry whose +// volume the server still serves (a placement, a live line) stays, however +// long its process has been silent; only a silent entry of a volume the +// server no longer serves leaves after the freshness window. A registered +// server with no entry reads level 0: unknown counts as old. type readsLevels struct { mu sync.Mutex window time.Duration now func() time.Time - procs map[string]map[string]procLevel // server -> process -> report + procs map[string]map[string]procLevel // server -> volume -> report } type procLevel struct { - level uint32 - seen time.Time + level uint32 + process string + seen time.Time } func newReadsLevels(window time.Duration) *readsLevels { return &readsLevels{window: window, now: time.Now, procs: map[string]map[string]procLevel{}} } -// note records the level process (of server) reported now. -func (r *readsLevels) note(server, process string, level uint32) { +// note records the level the process holding volume (on server) reported. +func (r *readsLevels) note(server, volume, process string, level uint32) { r.mu.Lock() defer r.mu.Unlock() if r.procs[server] == nil { r.procs[server] = map[string]procLevel{} } - r.procs[server][process] = procLevel{level: level, seen: r.now()} + r.procs[server][volume] = procLevel{level: level, process: process, seen: r.now()} } -// of is the lowest level server's processes reported within the window, -// and whether any did. -func (r *readsLevels) of(server string) (uint32, bool) { +// forget drops every entry of server (a retired host). +func (r *readsLevels) forget(server string) { r.mu.Lock() defer r.mu.Unlock() + delete(r.procs, server) +} + +// liveLocked returns server's entries that still count: every entry of a +// served volume, and the others reported within the window (a silent +// entry of an unserved volume is dropped). +func (r *readsLevels) liveLocked(server string, served map[string]bool) map[string]procLevel { cutoff := r.now().Add(-r.window) + for v, e := range r.procs[server] { + if e.seen.Before(cutoff) && !served[v] { + delete(r.procs[server], v) + } + } + return r.procs[server] +} + +// of is the lowest level of server's live entries, and whether it has any. +func (r *readsLevels) of(server string, served map[string]bool) (uint32, bool) { + r.mu.Lock() + defer r.mu.Unlock() var low uint32 found := false - for p, e := range r.procs[server] { - if e.seen.Before(cutoff) { - delete(r.procs[server], p) - continue - } + for _, e := range r.liveLocked(server, served) { if !found || e.level < low { low, found = e.level, true } @@ -69,36 +87,43 @@ func (r *readsLevels) of(server string) (uint32, bool) { return low, found } -// below names server's processes that reported a level below level within -// the window, sorted, each as "process (reads level N)". -func (r *readsLevels) below(server string, level uint32) []string { +// below names server's live entries below level, sorted, each as +// "process of volume (reads level N)". +func (r *readsLevels) below(server string, level uint32, served map[string]bool) []string { r.mu.Lock() defer r.mu.Unlock() - cutoff := r.now().Add(-r.window) var out []string - for p, e := range r.procs[server] { - if !e.seen.Before(cutoff) && e.level < level { - out = append(out, fmt.Sprintf("%s (reads level %d)", p, e.level)) + for v, e := range r.liveLocked(server, served) { + if e.level < level { + out = append(out, fmt.Sprintf("%s of %s (reads level %d)", e.process, v, e.level)) } } sort.Strings(out) return out } -// heartbeatProcess names the reporting process of a heartbeat: its slot's -// incarnation (new on every process start), else its slot's data address. -func heartbeatProcess(slots []*control.HeartbeatSlot) string { +// heartbeatProcess names a heartbeat's volume and reporting process: its +// slot's volume, and the slot's incarnation (new on every process start), +// else its data address. +func heartbeatProcess(slots []*control.HeartbeatSlot) (volume, process string) { for _, s := range slots { - if s.GetIncarnation() != "" { - return s.GetIncarnation() + volume = s.GetVolumeId() + process = s.GetIncarnation() + if process == "" { + process = s.GetDataAddr() } + return volume, process } - for _, s := range slots { - if s.GetDataAddr() != "" { - return s.GetDataAddr() - } + return "", "" +} + +// servedBy is the set of volumes server holds work for (volumesServedBy). +func (h *Host) servedBy(server string) map[string]bool { + out := map[string]bool{} + for _, v := range h.volumesServedBy(server) { + out[v] = true } - return "" + return out } // formatLevelState is the cluster's format level in memory: 0 until the @@ -117,7 +142,7 @@ func (h *Host) formatEligible(server string) bool { if level == 0 { return true } - reads, ok := h.reads.of(server) + reads, ok := h.reads.of(server, h.servedBy(server)) return ok && reads >= level } @@ -126,7 +151,7 @@ func (h *Host) formatTooOld(server string) string { if h.formatEligible(server) { return "" } - reads, ok := h.reads.of(server) + reads, ok := h.reads.of(server, h.servedBy(server)) if !ok { return fmt.Sprintf("node %q has not reported its format read level; the cluster's format level is %d", server, h.formatLevel()) } @@ -138,12 +163,13 @@ func (h *Host) formatTooOld(server string) string { func (h *Host) belowLevel(servers []string, level uint32) []string { var out []string for _, s := range servers { - reads, ok := h.reads.of(s) + served := h.servedBy(s) + reads, ok := h.reads.of(s, served) switch { case !ok: out = append(out, fmt.Sprintf("%s (no report)", s)) case reads < level: - out = append(out, fmt.Sprintf("%s (process %s)", s, strings.Join(h.reads.below(s, level), ", "))) + out = append(out, fmt.Sprintf("%s (process %s)", s, strings.Join(h.reads.below(s, level, served), ", "))) } } sort.Strings(out) @@ -225,6 +251,7 @@ func (h *Host) RetireHost(server, confirm string) error { if err := h.lifecycle.Nodes.RemoveNode(server); err != nil { return fmt.Errorf("retire: %w", err) } + h.reads.forget(server) h.log.Printf("blockmaster: host %s retired from the node inventory", server) return nil } diff --git a/seaweed-block/core/host/master/format_gate_test.go b/seaweed-block/core/host/master/format_gate_test.go index 5458934e3c..605e3050d2 100644 --- a/seaweed-block/core/host/master/format_gate_test.go +++ b/seaweed-block/core/host/master/format_gate_test.go @@ -10,6 +10,7 @@ import ( "time" "github.com/seaweedfs/seaweed-block/core/adapter" + "github.com/seaweedfs/seaweed-block/core/authority" "github.com/seaweedfs/seaweed-block/core/lifecycle" control "github.com/seaweedfs/seaweed-block/core/rpc/control" "github.com/seaweedfs/seaweed-block/core/rpc/lifecycleclient" @@ -176,7 +177,7 @@ func TestFinalizeFormatNeedsEveryRegisteredHostAndIsDurable(t *testing.T) { for _, step := range []struct { reads *uint32 want string - }{{nil, "node-b (no report)"}, {ptr(uint32(0)), "node-b (process 127.0.0.1:19311 (reads level 0))"}} { + }{{nil, "node-b (no report)"}, {ptr(uint32(0)), "node-b (process 127.0.0.1:19311 of hb-node-b (reads level 0))"}} { if step.reads != nil { if err := r.fgHeartbeat("node-b", *step.reads); err != nil { t.Fatal(err) @@ -308,7 +309,7 @@ func TestAServerReadsTheLowestLevelOfItsProcesses(t *testing.T) { t.Fatal(err) } _, err := r.lc.FinalizeFormat(r.ctx, &control.FinalizeFormatRequest{Level: 1}) - if reasonOf(err) != lifecycleclient.ReasonFormatHostsTooOld || !strings.Contains(status.Convert(err).Message(), "old-proc (reads level 0)") { + if reasonOf(err) != lifecycleclient.ReasonFormatHostsTooOld || !strings.Contains(status.Convert(err).Message(), "old-proc of va (reads level 0)") { t.Fatalf("finalize with an old process beside a new one on node-b: %v", err) } r.m.format.v.Store(1) @@ -323,56 +324,97 @@ func TestAServerReadsTheLowestLevelOfItsProcesses(t *testing.T) { } } -// A process silent longer than the freshness window has gone: it no longer -// holds its server's level down. -func TestAGoneProcessNoLongerHoldsItsServersLevel(t *testing.T) { +// Silence is not proof that a process is gone: an entry of a volume its +// server still serves stays, however long its process is silent; an +// unserved volume's silent entry leaves after the window; a later report +// for the same volume (its restarted or replaced process) supersedes it. +func TestAServerKeepsASilentProcessThatStillHoldsItsVolume(t *testing.T) { rl := newReadsLevels(time.Minute) now := time.Unix(1000, 0) rl.now = func() time.Time { return now } - rl.note("s", "old", 0) - rl.note("s", "new", 1) - if l, ok := rl.of("s"); !ok || l != 0 { - t.Fatalf("both live: level %d %v, want 0", l, ok) - } + rl.note("s", "va", "old", 0) + rl.note("s", "vb", "new", 1) now = now.Add(2 * time.Minute) - rl.note("s", "new", 1) - if l, ok := rl.of("s"); !ok || l != 1 { - t.Fatalf("the old process silent past the window: level %d %v, want 1", l, ok) + rl.note("s", "vb", "new", 1) + if l, ok := rl.of("s", map[string]bool{"va": true}); !ok || l != 0 { + t.Fatalf("va still served, its process silent past the window: level %d %v, want 0", l, ok) + } + if l, ok := rl.of("s", map[string]bool{}); !ok || l != 1 { + t.Fatalf("va no longer served and silent: level %d %v, want 1", l, ok) + } + rl.note("s", "va", "old", 0) + rl.note("s", "va", "restarted", 1) + if l, ok := rl.of("s", map[string]bool{"va": true}); !ok || l != 1 { + t.Fatalf("va's process replaced by one reading 1: level %d %v, want 1", l, ok) } } -// A bind decided on a server's observations is not published once another -// of that server's processes reports a lower read level: the publication -// boundary judges the server's current capability (codex01's AMEND P1 2). -// The control, with no old process, binds. -func TestAPublicationToAServerThatTurnedOutOldIsRefused(t *testing.T) { +// codex01's schedule: an old process holds a placed volume, a new sibling +// keeps reporting, the old one falls silent past the freshness window. The +// finalize stays refused naming the old process, and at level 1 a placement +// or a move onto the server stays refused. +func TestASilentOldHolderKeepsTheFinalizeAndNewWorkRefused(t *testing.T) { + r := newIsolationRig(t, false, t.TempDir(), t.TempDir()) + now := time.Now() + r.m.reads.now = func() time.Time { return now } + if err := r.fgHeartbeat("node-a", 1); err != nil { + t.Fatal(err) + } + r.createVolume(t, "va") + r.place(t, "va", "node-b") + if err := r.fgProcessHeartbeat("node-b", "old-proc", "va", 0); err != nil { + t.Fatal(err) + } + now = now.Add(time.Hour) // past any freshness window: the old process is silent + if err := r.fgHeartbeat("node-a", 1); err != nil { + t.Fatal(err) + } + if err := r.fgProcessHeartbeat("node-b", "new-proc", "vb", 1); err != nil { + t.Fatal(err) + } + _, err := r.lc.FinalizeFormat(r.ctx, &control.FinalizeFormatRequest{Level: 1}) + if reasonOf(err) != lifecycleclient.ReasonFormatHostsTooOld || !strings.Contains(status.Convert(err).Message(), "old-proc of va (reads level 0)") { + t.Fatalf("finalize with a silent old holder of va: %v", err) + } + r.m.format.v.Store(1) + if why := r.m.formatTooOld("node-b"); why == "" { + t.Fatal("level 1: node-b takes new work while its silent old process still holds va") + } + r.createVolume(t, "fresh") + if _, err := r.ws.RegisterWorkspaceBinding(r.ctx, &control.WorkspaceBinding{VolumeId: "fresh", ServerId: "node-b", DataAddr: "127.0.0.1:19321", CtrlAddr: "127.0.0.1:19322"}); err != nil { + t.Fatal(err) + } + if _, err := r.ws.PlaceWorkspace(r.ctx, &control.WorkspacePlacement{VolumeId: "fresh", ServerId: "node-b", ReplicaId: "r1"}); status.Code(err) != codes.FailedPrecondition { + t.Fatalf("level 1: a placement onto node-b: %v, want refused", err) + } +} + +// The publication boundary judges the server's level when the ask is +// published: an ask whose server reads below the cluster's level is refused +// there and its publish never runs; the control publishes (codex01's AMEND +// P2: the admission itself, called with a recording publish). +func TestThePublicationBoundaryRefusesAnAskForAnOldServer(t *testing.T) { for _, old := range []bool{true, false} { t.Run(map[bool]string{true: "old-process", false: "control"}[old], func(t *testing.T) { r := newIsolationRig(t, false, t.TempDir(), t.TempDir()) - if old { - if err := r.fgProcessHeartbeat("node-b", "old-proc", "other", 0); err != nil { - t.Fatal(err) - } - } - r.m.format.v.Store(1) r.createVolume(t, "v") r.place(t, "v", "node-b") - if _, err := r.obs.ReportHeartbeat(r.ctx, &control.HeartbeatReport{ServerId: "node-b", SentAt: timestamppb.Now(), Reachable: true, Eligible: true, ReadsLevel: 1, - Slots: []*control.HeartbeatSlot{{VolumeId: "v", ReplicaId: "r1", DataAddr: "127.0.0.1:19301", CtrlAddr: "127.0.0.1:19302", Incarnation: "new-proc", Reachable: true, Eligible: true}}}); err != nil { + level := uint32(1) + if old { + level = 0 + } + if err := r.fgProcessHeartbeat("node-b", "proc", "v", level); err != nil { t.Fatal(err) } - if _, err := r.m.RunLifecycleProductTick(); err != nil { - t.Fatal(err) + r.m.format.v.Store(1) + published := false + err := r.m.admitWorkspacePublication(authority.AssignmentAsk{VolumeID: "v", ReplicaID: "r1", DataAddr: "127.0.0.1:19301", CtrlAddr: "127.0.0.1:19302", Intent: authority.IntentBind}, + func() error { published = true; return nil }) + if old && (err == nil || published || !strings.Contains(err.Error(), "binary_too_old")) { + t.Fatalf("level 1, node-b's process reads 0: err %v, published %v; want refused before the publish", err, published) } - bound := false - for end := time.Now().Add(3 * time.Second); time.Now().Before(end) && !bound; time.Sleep(50 * time.Millisecond) { - _, bound = r.m.Publisher().VolumeAuthorityLine("v") - } - if old && bound { - t.Fatal("v was bound on node-b while an old process of node-b is live at level 1") - } - if !old && !bound { - t.Fatal("control: v was not bound on node-b, whose only process reads level 1") + if !old && (err != nil || !published) { + t.Fatalf("control: err %v, published %v; want published", err, published) } }) } diff --git a/seaweed-block/core/host/master/services.go b/seaweed-block/core/host/master/services.go index bac154e131..ce1faea551 100644 --- a/seaweed-block/core/host/master/services.go +++ b/seaweed-block/core/host/master/services.go @@ -541,7 +541,8 @@ func (s *services) ReportHeartbeat(ctx context.Context, r *control.HeartbeatRepo // it is judged (its server then reads at most that level for new work); // a process whose binary cannot read the cluster's format level is // refused, so it is never observed as a candidate. - s.host.reads.note(r.GetServerId(), heartbeatProcess(r.GetSlots()), r.GetReadsLevel()) + volume, process := heartbeatProcess(r.GetSlots()) + s.host.reads.note(r.GetServerId(), volume, process, r.GetReadsLevel()) if level := s.host.formatLevel(); r.GetReadsLevel() < level { why := fmt.Sprintf("node %q process reads format level %d; the cluster's format level is %d (binary_too_old)", r.GetServerId(), r.GetReadsLevel(), level) return nil, lifecycleclient.WithReason(status.New(codes.FailedPrecondition, "heartbeat refused: "+why), lifecycleclient.ReasonBinaryTooOld).Err() From 4192cc58f76104aaadfbf3178cd44ef921952865 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 1 Dec 2026 20:38:03 -0800 Subject: [PATCH 07/12] format gate: every reported volume keeps its level; a held ask is judged at its release A heartbeat may report several volumes: each gets its read level, not only the first. A test seam on the publication admission holds a real admitted bind while a downgrade is reported; released, the same ask is refused by the format check. The layout-ready guard names the admission's new inner function. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/core/host/master/format_gate.go | 19 +-- .../core/host/master/format_gate_test.go | 129 +++++++++++++++++- seaweed-block/core/host/master/host.go | 9 +- .../host/master/layout_ready_guard_test.go | 2 +- seaweed-block/core/host/master/services.go | 3 +- .../core/host/master/workspace_binding.go | 8 ++ 6 files changed, 153 insertions(+), 17 deletions(-) diff --git a/seaweed-block/core/host/master/format_gate.go b/seaweed-block/core/host/master/format_gate.go index 0390c5cba2..492fba1b01 100644 --- a/seaweed-block/core/host/master/format_gate.go +++ b/seaweed-block/core/host/master/format_gate.go @@ -102,19 +102,22 @@ func (r *readsLevels) below(server string, level uint32, served map[string]bool) return out } -// heartbeatProcess names a heartbeat's volume and reporting process: its -// slot's volume, and the slot's incarnation (new on every process start), -// else its data address. -func heartbeatProcess(slots []*control.HeartbeatSlot) (volume, process string) { +// noteHeartbeat records reads for every volume a heartbeat reports (each +// slot), naming the reporting process by the slot's incarnation (new on +// every process start), else its data address. A heartbeat with no slot +// is recorded under no volume. +func (r *readsLevels) noteHeartbeat(server string, slots []*control.HeartbeatSlot, reads uint32) { + if len(slots) == 0 { + r.note(server, "", "", reads) + return + } for _, s := range slots { - volume = s.GetVolumeId() - process = s.GetIncarnation() + process := s.GetIncarnation() if process == "" { process = s.GetDataAddr() } - return volume, process + r.note(server, s.GetVolumeId(), process, reads) } - return "", "" } // servedBy is the set of volumes server holds work for (volumesServedBy). diff --git a/seaweed-block/core/host/master/format_gate_test.go b/seaweed-block/core/host/master/format_gate_test.go index 605e3050d2..f39a160256 100644 --- a/seaweed-block/core/host/master/format_gate_test.go +++ b/seaweed-block/core/host/master/format_gate_test.go @@ -2,10 +2,15 @@ package master import ( "bytes" + "context" "errors" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" + "log" "os" "path/filepath" "strings" + "sync" "testing" "time" @@ -352,7 +357,7 @@ func TestAServerKeepsASilentProcessThatStillHoldsItsVolume(t *testing.T) { // codex01's schedule: an old process holds a placed volume, a new sibling // keeps reporting, the old one falls silent past the freshness window. The // finalize stays refused naming the old process, and at level 1 a placement -// or a move onto the server stays refused. +// onto the server stays refused by the format check. func TestASilentOldHolderKeepsTheFinalizeAndNewWorkRefused(t *testing.T) { r := newIsolationRig(t, false, t.TempDir(), t.TempDir()) now := time.Now() @@ -384,8 +389,8 @@ func TestASilentOldHolderKeepsTheFinalizeAndNewWorkRefused(t *testing.T) { if _, err := r.ws.RegisterWorkspaceBinding(r.ctx, &control.WorkspaceBinding{VolumeId: "fresh", ServerId: "node-b", DataAddr: "127.0.0.1:19321", CtrlAddr: "127.0.0.1:19322"}); err != nil { t.Fatal(err) } - if _, err := r.ws.PlaceWorkspace(r.ctx, &control.WorkspacePlacement{VolumeId: "fresh", ServerId: "node-b", ReplicaId: "r1"}); status.Code(err) != codes.FailedPrecondition { - t.Fatalf("level 1: a placement onto node-b: %v, want refused", err) + if _, err := r.ws.PlaceWorkspace(r.ctx, &control.WorkspacePlacement{VolumeId: "fresh", ServerId: "node-b", ReplicaId: "r1"}); status.Code(err) != codes.FailedPrecondition || !strings.Contains(status.Convert(err).Message(), "binary_too_old") { + t.Fatalf("level 1: a placement onto node-b: %v, want the format refusal", err) } } @@ -419,3 +424,121 @@ func TestThePublicationBoundaryRefusesAnAskForAnOldServer(t *testing.T) { }) } } + +// A heartbeat that reports several volumes records the level for each: an +// old process reporting [va, vb] is kept for vb, still placed on its +// server, after va stops being served and the report ages past the +// window (codex01's AMEND 6144739831 P1). +func TestEveryVolumeOfAHeartbeatKeepsItsLevel(t *testing.T) { + r := newIsolationRig(t, false, t.TempDir(), t.TempDir()) + now := time.Now() + r.m.reads.now = func() time.Time { return now } + if err := r.fgHeartbeat("node-a", 1); err != nil { + t.Fatal(err) + } + r.createVolume(t, "vb") + r.place(t, "vb", "node-b") + if _, err := r.obs.ReportHeartbeat(r.ctx, &control.HeartbeatReport{ServerId: "node-b", SentAt: timestamppb.Now(), Reachable: true, Eligible: true, ReadsLevel: 0, + Slots: []*control.HeartbeatSlot{ + {VolumeId: "va", ReplicaId: "r-a", DataAddr: hbPorts["node-b"][0], CtrlAddr: hbPorts["node-b"][1], Incarnation: "old-proc"}, + {VolumeId: "vb", ReplicaId: "r-b", DataAddr: hbPorts["node-b"][0], CtrlAddr: hbPorts["node-b"][1], Incarnation: "old-proc"}, + }}); err != nil { + t.Fatal(err) + } + now = now.Add(time.Hour) + if err := r.fgHeartbeat("node-a", 1); err != nil { + t.Fatal(err) + } + if err := r.fgProcessHeartbeat("node-b", "new-proc", "vc", 1); err != nil { + t.Fatal(err) + } + _, err := r.lc.FinalizeFormat(r.ctx, &control.FinalizeFormatRequest{Level: 1}) + if reasonOf(err) != lifecycleclient.ReasonFormatHostsTooOld || !strings.Contains(status.Convert(err).Message(), "old-proc of vb (reads level 0)") { + t.Fatalf("finalize with the old process still holding vb (its second slot): %v", err) + } +} + +// The queued-ask schedule (codex01's AMEND 6144739831 P2): a bind is +// decided and reaches its publication admission while node-b's only process +// reads level 1; it is held there; another node-b process then reports level +// 0; released, the same ask is refused by the format check (binary_too_old) +// and no line is published. The control, with no downgrade, publishes. +func TestAHeldAskIsRefusedAfterItsServerTurnsOutOld(t *testing.T) { + for _, downgrade := range []bool{true, false} { + t.Run(map[bool]string{true: "downgrade", false: "control"}[downgrade], func(t *testing.T) { + authDir, lcDir := t.TempDir(), t.TempDir() + logs := &syncBuffer{} + m, err := New(Config{Listen: "127.0.0.1:0", AuthorityStoreDir: authDir, LifecycleStoreDir: lcDir, WorkspaceRPC: true, LifecycleProductLoop: true, LayoutCreateVolume: testLayoutCreateVolume, + Logger: log.New(logs, "", 0), + WorkspaceHeadReader: func(context.Context, string) (authority.WorkspaceHead, error) { + return authority.WorkspaceHead{}, nil + }}) + if err != nil { + t.Fatal(err) + } + entered, release := make(chan struct{}), make(chan struct{}) + result := make(chan error, 1) + var once sync.Once + m.testPublicationAdmission = func(ask authority.AssignmentAsk, next func() error) error { + if ask.VolumeID != "v" { + return next() + } + held := false + once.Do(func() { held = true }) + if !held { + return next() + } + close(entered) + <-release + err := next() + result <- err + return err + } + m.format.v.Store(1) + m.Start() + t.Cleanup(func() { closeTestMaster(t, m) }) + conn, err := grpc.NewClient(m.Addr(), grpc.WithTransportCredentials(insecure.NewCredentials())) + if err != nil { + t.Fatal(err) + } + t.Cleanup(func() { _ = conn.Close() }) + ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) + t.Cleanup(cancel) + r := &isolationRig{m: m, logs: logs, ws: control.NewWorkspaceServiceClient(conn), lc: control.NewLifecycleServiceClient(conn), obs: control.NewObservationServiceClient(conn), ctx: ctx} + if _, err := m.Lifecycle().Nodes.RegisterNode(lifecycle.NodeRegistration{ServerID: "node-b", DataAddr: "127.0.0.1:19301", CtrlAddr: "127.0.0.1:19302"}); err != nil { + t.Fatal(err) + } + r.createVolume(t, "v") + r.place(t, "v", "node-b") + if _, err := r.obs.ReportHeartbeat(ctx, &control.HeartbeatReport{ServerId: "node-b", SentAt: timestamppb.Now(), Reachable: true, Eligible: true, ReadsLevel: 1, + Slots: []*control.HeartbeatSlot{{VolumeId: "v", ReplicaId: "r1", DataAddr: "127.0.0.1:19301", CtrlAddr: "127.0.0.1:19302", Incarnation: "new-proc", Reachable: true, Eligible: true}}}); err != nil { + t.Fatal(err) + } + if _, err := m.RunLifecycleProductTick(); err != nil { + t.Fatal(err) + } + select { + case <-entered: + case <-time.After(20 * time.Second): + t.Fatal("the bind never reached its publication admission") + } + if downgrade { + _ = r.fgProcessHeartbeat("node-b", "old-proc", "other", 0) // refused at level 1, but its level is recorded + } + close(release) + var got error + select { + case got = <-result: + case <-time.After(20 * time.Second): + t.Fatal("the held admission never finished") + } + _, bound := m.Publisher().VolumeAuthorityLine("v") + if downgrade && (got == nil || !strings.Contains(got.Error(), "binary_too_old") || bound) { + t.Fatalf("downgrade: admission %v, bound %v; want refused binary_too_old and no line", got, bound) + } + if !downgrade && (got != nil || !bound) { + t.Fatalf("control: admission %v, bound %v; want published", got, bound) + } + }) + } +} diff --git a/seaweed-block/core/host/master/host.go b/seaweed-block/core/host/master/host.go index aa718e08c1..f7cb97e901 100644 --- a/seaweed-block/core/host/master/host.go +++ b/seaweed-block/core/host/master/host.go @@ -155,9 +155,12 @@ type Host struct { reads *readsLevels // each server's reported format read level (format_gate.go) format formatLevelState // the cluster's format level (format_gate.go) finalizeMu sync.Mutex // serializes the format finalize and host retires (format_gate.go) - grpc *grpc.Server - topo authority.AcceptedTopology - lifecycle *LifecycleStores + // testPublicationAdmission, when a test sets it before Start, wraps each + // publication admission: next runs the admission itself. + testPublicationAdmission func(ask authority.AssignmentAsk, next func() error) error + grpc *grpc.Server + topo authority.AcceptedTopology + lifecycle *LifecycleStores // RPC registration/place/move/ACK/delete and product ticks serialize here. // Order: workspaceMu -> publisher or lifecycle store locks (not reversed). workspaceMu sync.Mutex diff --git a/seaweed-block/core/host/master/layout_ready_guard_test.go b/seaweed-block/core/host/master/layout_ready_guard_test.go index b51b21a444..99d212299c 100644 --- a/seaweed-block/core/host/master/layout_ready_guard_test.go +++ b/seaweed-block/core/host/master/layout_ready_guard_test.go @@ -30,7 +30,7 @@ func TestLayoutStoreReadyDecisionSites(t *testing.T) { "product_loop.go submitPlacementSnapshots readyPlacements": 1, "workspace_binding.go PlaceWorkspace workspaceVolume": 1, "workspace_binding.go RegisterWorkspaceBinding workspaceVolume": 1, - "workspace_binding.go admitWorkspacePublication layoutStoreReady": 1, + "workspace_binding.go admitWorkspacePublicationNow layoutStoreReady": 1, "workspace_service.go AckWorkspaceRevoked workspaceVolume": 1, "workspace_service.go MoveWorkspace MoveWorkspace": 1, "workspace_service.go MoveWorkspace workspaceVolume": 2, diff --git a/seaweed-block/core/host/master/services.go b/seaweed-block/core/host/master/services.go index ce1faea551..a122b1c753 100644 --- a/seaweed-block/core/host/master/services.go +++ b/seaweed-block/core/host/master/services.go @@ -541,8 +541,7 @@ func (s *services) ReportHeartbeat(ctx context.Context, r *control.HeartbeatRepo // it is judged (its server then reads at most that level for new work); // a process whose binary cannot read the cluster's format level is // refused, so it is never observed as a candidate. - volume, process := heartbeatProcess(r.GetSlots()) - s.host.reads.note(r.GetServerId(), volume, process, r.GetReadsLevel()) + s.host.reads.noteHeartbeat(r.GetServerId(), r.GetSlots(), r.GetReadsLevel()) if level := s.host.formatLevel(); r.GetReadsLevel() < level { why := fmt.Sprintf("node %q process reads format level %d; the cluster's format level is %d (binary_too_old)", r.GetServerId(), r.GetReadsLevel(), level) return nil, lifecycleclient.WithReason(status.New(codes.FailedPrecondition, "heartbeat refused: "+why), lifecycleclient.ReasonBinaryTooOld).Err() diff --git a/seaweed-block/core/host/master/workspace_binding.go b/seaweed-block/core/host/master/workspace_binding.go index 798bc78eaa..e6dc42c97e 100644 --- a/seaweed-block/core/host/master/workspace_binding.go +++ b/seaweed-block/core/host/master/workspace_binding.go @@ -249,6 +249,14 @@ func (s *services) PlaceWorkspace(ctx context.Context, q *control.WorkspacePlace // admitWorkspacePublication owns the last local boundary before an ordinary // Publisher mint. Guarded Move already owns workspaceMu in its RPC path. func (h *Host) admitWorkspacePublication(ask authority.AssignmentAsk, publish func() error) error { + if hook := h.testPublicationAdmission; hook != nil { + return hook(ask, func() error { return h.admitWorkspacePublicationNow(ask, publish) }) + } + return h.admitWorkspacePublicationNow(ask, publish) +} + +// admitWorkspacePublicationNow is the publication admission itself. +func (h *Host) admitWorkspacePublicationNow(ask authority.AssignmentAsk, publish func() error) error { // A volume's first bind records its initial replicas before the line // exists, so its primary is never served without the wait. if err := h.openStoreRecord(ask.VolumeID); err != nil { From 6d24db415c125d7f0f0c3eb9a7207d4fc662d7ce Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 1 Dec 2026 20:43:30 -0800 Subject: [PATCH 08/12] format gate test: the held publication admission is released and joined on cleanup A failure before the release no longer strands Publisher.Run: a cleanup, run before the master's close, releases the hold and joins the admission's return within 10 s. Co-Authored-By: Claude Opus 5.5 --- .../core/host/master/format_gate_test.go | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/seaweed-block/core/host/master/format_gate_test.go b/seaweed-block/core/host/master/format_gate_test.go index f39a160256..a990667606 100644 --- a/seaweed-block/core/host/master/format_gate_test.go +++ b/seaweed-block/core/host/master/format_gate_test.go @@ -476,9 +476,10 @@ func TestAHeldAskIsRefusedAfterItsServerTurnsOutOld(t *testing.T) { if err != nil { t.Fatal(err) } - entered, release := make(chan struct{}), make(chan struct{}) + entered, release, hookDone := make(chan struct{}), make(chan struct{}), make(chan struct{}) result := make(chan error, 1) - var once sync.Once + var once, releaseOnce sync.Once + releaseHold := func() { releaseOnce.Do(func() { close(release) }) } m.testPublicationAdmission = func(ask authority.AssignmentAsk, next func() error) error { if ask.VolumeID != "v" { return next() @@ -488,6 +489,7 @@ func TestAHeldAskIsRefusedAfterItsServerTurnsOutOld(t *testing.T) { if !held { return next() } + defer close(hookDone) close(entered) <-release err := next() @@ -497,6 +499,21 @@ func TestAHeldAskIsRefusedAfterItsServerTurnsOutOld(t *testing.T) { m.format.v.Store(1) m.Start() t.Cleanup(func() { closeTestMaster(t, m) }) + // Runs before the master's close (cleanups run last-in first): a + // failure before the release frees the held admission, and its + // return is joined (bounded) so Publisher.Run is never stranded. + t.Cleanup(func() { + releaseHold() + select { + case <-entered: + select { + case <-hookDone: + case <-time.After(10 * time.Second): + t.Error("the held publication admission did not return after its release") + } + default: // the hold was never reached + } + }) conn, err := grpc.NewClient(m.Addr(), grpc.WithTransportCredentials(insecure.NewCredentials())) if err != nil { t.Fatal(err) @@ -525,7 +542,7 @@ func TestAHeldAskIsRefusedAfterItsServerTurnsOutOld(t *testing.T) { if downgrade { _ = r.fgProcessHeartbeat("node-b", "old-proc", "other", 0) // refused at level 1, but its level is recorded } - close(release) + releaseHold() var got error select { case got = <-result: From 49f7d3fe293490740ee78caa0c56b601ab27d82d Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 1 Dec 2026 21:11:01 -0800 Subject: [PATCH 09/12] format gate tests: comments say what each test does Co-Authored-By: Claude Opus 5.5 --- .../core/authority/workspace_format_level_test.go | 2 +- seaweed-block/core/host/master/format_gate_test.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/seaweed-block/core/authority/workspace_format_level_test.go b/seaweed-block/core/authority/workspace_format_level_test.go index 9ed9208a0c..7c4dde6c5f 100644 --- a/seaweed-block/core/authority/workspace_format_level_test.go +++ b/seaweed-block/core/authority/workspace_format_level_test.go @@ -170,7 +170,7 @@ func TestTheForcedBarrierFollowsTheFormatLevel(t *testing.T) { // A clamped level-0 grant raises the deadline with this process's monotonic // reading, so the level-1 barrier after a finalize (with no renewal after -// it) cannot be moved by a wall-clock step (codex01's AMEND P1 1). +// it) cannot be moved by a wall-clock step. func TestAClampedLevel0GrantKeepsTheMonotonicReading(t *testing.T) { disk, _ := newTempStore(t) base := time.Now() // monotonic diff --git a/seaweed-block/core/host/master/format_gate_test.go b/seaweed-block/core/host/master/format_gate_test.go index a990667606..4a9d57fc0f 100644 --- a/seaweed-block/core/host/master/format_gate_test.go +++ b/seaweed-block/core/host/master/format_gate_test.go @@ -301,7 +301,7 @@ func (r *isolationRig) fgProcessHeartbeat(server, incarnation, vol string, reads // process's later level 1. The finalize is refused naming the old process; // at level 1 the server takes no new work while the old process is live, // and the new process's own heartbeat is taken (FormatGate: a host is a -// process; codex01's AMEND P1 3). +// process). func TestAServerReadsTheLowestLevelOfItsProcesses(t *testing.T) { r := newIsolationRig(t, false, t.TempDir(), t.TempDir()) if err := r.fgHeartbeat("node-a", 1); err != nil { @@ -354,7 +354,7 @@ func TestAServerKeepsASilentProcessThatStillHoldsItsVolume(t *testing.T) { } } -// codex01's schedule: an old process holds a placed volume, a new sibling +// An old process holds a placed volume, a new sibling // keeps reporting, the old one falls silent past the freshness window. The // finalize stays refused naming the old process, and at level 1 a placement // onto the server stays refused by the format check. @@ -396,8 +396,8 @@ func TestASilentOldHolderKeepsTheFinalizeAndNewWorkRefused(t *testing.T) { // The publication boundary judges the server's level when the ask is // published: an ask whose server reads below the cluster's level is refused -// there and its publish never runs; the control publishes (codex01's AMEND -// P2: the admission itself, called with a recording publish). +// there and its publish never runs; the control publishes (the admission +// itself, called with a recording publish). func TestThePublicationBoundaryRefusesAnAskForAnOldServer(t *testing.T) { for _, old := range []bool{true, false} { t.Run(map[bool]string{true: "old-process", false: "control"}[old], func(t *testing.T) { @@ -428,7 +428,7 @@ func TestThePublicationBoundaryRefusesAnAskForAnOldServer(t *testing.T) { // A heartbeat that reports several volumes records the level for each: an // old process reporting [va, vb] is kept for vb, still placed on its // server, after va stops being served and the report ages past the -// window (codex01's AMEND 6144739831 P1). +// window. func TestEveryVolumeOfAHeartbeatKeepsItsLevel(t *testing.T) { r := newIsolationRig(t, false, t.TempDir(), t.TempDir()) now := time.Now() @@ -458,7 +458,7 @@ func TestEveryVolumeOfAHeartbeatKeepsItsLevel(t *testing.T) { } } -// The queued-ask schedule (codex01's AMEND 6144739831 P2): a bind is +// The queued-ask schedule: a bind is // decided and reaches its publication admission while node-b's only process // reads level 1; it is held there; another node-b process then reports level // 0; released, the same ask is refused by the format check (binary_too_old) From 7c5a0ae8c426de711fb78b3fe5cb8048b943da35 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 1 Dec 2026 21:32:31 -0800 Subject: [PATCH 10/12] ci: run C3 non-gating on shared runners until #905 is fixed The first write after the holder reports its frontend ready can still be answered namespace-not-ready for longer than a host retries (measured 18 s with retries on a shared runner). That is a product finding tracked in #905 and a v1.1 release gate; the test keeps running and reporting on every job, and the fix removes this marker. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/.github/process-level-tests.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/seaweed-block/.github/process-level-tests.txt b/seaweed-block/.github/process-level-tests.txt index 56e6775162..086bde1040 100644 --- a/seaweed-block/.github/process-level-tests.txt +++ b/seaweed-block/.github/process-level-tests.txt @@ -61,7 +61,10 @@ TestSnapshotLadderB1SnapshotQuery TestSnapshotLadderC1FullRestore TestSnapshotLadderC2IncrementalRestore TestSnapshotLadderC3RestoreThenWriteThenSnapshotIt -TestSnapshotLadderC3KilledHydrating +# A first write after the holder reports its frontend ready can be answered +# namespace-not-ready for longer than a host retries (#905, a v1.1 release +# gate); it runs and is reported on every job until the fix removes this. +TestSnapshotLadderC3KilledHydrating # nongating=#905 TestSnapshotLadderD1DeleteTheNewest TestSnapshotLadderD2DeleteAMiddleOne TestSnapshotLadderD3DeleteWhenContentRecurs From de43d48be4feccc889f39f9d71acde97db1673e7 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 1 Dec 2026 21:42:59 -0800 Subject: [PATCH 11/12] test: a holder's harness-chosen port is drawn below the host's ephemeral range, and a start that lost its port is retried once (#927) handoffAddress drew from [10000, 20000) whatever the host's ephemeral range; it now cuts the range at the host's ip_local_port_range low end (handoffRange), as the weed port pairs already do. F1's holder start (f1Up) answers errBindTaken when the holder exits before adopting with "address already in use"; startWithBindRetry then draws the holder's four ports again and starts it once more (v1, whose ports the cluster spec names, is not retried). Any other failure, or a second taken port, fails the test as before. Red first: TestHandoffRangeStaysBelowTheEphemeralRange (a host whose ephemeral range starts at 15000 must get [10000, 15000)) and TestStartWithBindRetry (a taken port, then ok: one retry with fresh ports) fail with the previous behaviour and pass here. Refs #927. Co-Authored-By: Claude Opus 5.5 --- .../planned_handoff_integration_test.go | 14 +++- .../snapshot_ladder_f1_integration_test.go | 59 +++++++++++++- .../cmd/blockvolume/test_port_handoff_test.go | 77 +++++++++++++++++++ 3 files changed, 144 insertions(+), 6 deletions(-) create mode 100644 seaweed-block/cmd/blockvolume/test_port_handoff_test.go diff --git a/seaweed-block/cmd/blockvolume/planned_handoff_integration_test.go b/seaweed-block/cmd/blockvolume/planned_handoff_integration_test.go index d52e19f41f..99e943d1ca 100644 --- a/seaweed-block/cmd/blockvolume/planned_handoff_integration_test.go +++ b/seaweed-block/cmd/blockvolume/planned_handoff_integration_test.go @@ -507,9 +507,10 @@ var handoffPorts struct { } // handoffAddress returns a free loopback address in 10000-19999: below the -// kernel's ephemeral range (32768 and up on Linux), where an outgoing -// connection can take a port while a restarted daemon waits to bind it -// again, and below the 20000-49999 range startWorkspaceWeed draws from. +// kernel's ephemeral range (32768 and up on Linux; the range is cut at the +// host's own ephemeral low end when that is lower: handoffRange), where an +// outgoing connection can take a port while a restarted daemon waits to bind +// it again, and below the 20000-49999 range startWorkspaceWeed draws from. func handoffAddress(t *testing.T) string { t.Helper() handoffPorts.Lock() @@ -517,8 +518,13 @@ func handoffAddress(t *testing.T) string { if handoffPorts.used == nil { handoffPorts.used = map[int]bool{} } + eph, _ := ephemeralPorts() + rlo, rhi, ok := handoffRange(eph) + if !ok { + t.Fatalf("no handoff port range below this host's ephemeral range (from %d)", eph) + } for i := 0; i < 500; i++ { - lo, hi := testPortSpan(10000, 20000) + lo, hi := testPortSpan(rlo, rhi) p := lo + rand.Intn(hi-lo) if handoffPorts.used[p] || !claimHostPort(p) { continue diff --git a/seaweed-block/cmd/blockvolume/snapshot_ladder_f1_integration_test.go b/seaweed-block/cmd/blockvolume/snapshot_ladder_f1_integration_test.go index c485f06a99..3edfb6244d 100644 --- a/seaweed-block/cmd/blockvolume/snapshot_ladder_f1_integration_test.go +++ b/seaweed-block/cmd/blockvolume/snapshot_ladder_f1_integration_test.go @@ -260,15 +260,70 @@ func f1StartEnv(t *testing.T, cfg f1Config) (*handoffEnv, *daemon) { // f1Up starts the blockvolume of key and waits for its volume to be primary // and its frontend ready. +// +// A harness-chosen port can be taken between handoffAddress's free check and +// the holder's bind. When the holder exits before adopting with "address +// already in use", its four ports are drawn again and it starts once more +// (startWithBindRetry). v1's ports are the harness's own and named in the +// cluster spec, so v1 is not retried. func f1Up(t *testing.T, env *handoffEnv, key string) *daemon { t.Helper() + var d *daemon + start := func() error { + b := env.hosts[key] + d = env.h.start(t, "blockvolume-"+key, env.h.volume, env.volArgsFor(b)...) + return f1WaitAdopted(d, 60*time.Second, fmt.Sprintf("blockvolume: volume %s adopted as PRIMARY at %s@", b.volume, b.replica)) + } + fresh := func() { + b := env.hosts[key] + b.data, b.ctrl, b.status, b.nvme = handoffAddress(t), handoffAddress(t), handoffAddress(t), handoffAddress(t) + env.hosts[key] = b + } + var retried bool + var err error + if key == "v1" { + err = start() + } else { + retried, err = startWithBindRetry(start, fresh) + } + if retried { + t.Logf("%s: a harness-chosen port was taken before the holder bound it; started again on new ports", key) + } + if err != nil { + t.Fatal(err) + } b := env.hosts[key] - d := env.h.start(t, "blockvolume-"+key, env.h.volume, env.volArgsFor(b)...) - d.waitLog(t, 60*time.Second, fmt.Sprintf("blockvolume: volume %s adopted as PRIMARY at %s@", b.volume, b.replica)) poll(t, 60*time.Second, key+" never reported its frontend ready", func() bool { return volumeFrontendReady(b.status, b.volume) }) return d } +// f1WaitAdopted waits until d logs s. A holder that exits first because a +// listener's port was taken answers errBindTaken (wrapped, with its log's +// end); any other exit or the bound answers an error naming it. +func f1WaitAdopted(d *daemon, timeout time.Duration, s string) error { + end := time.Now().Add(timeout) + for { + if d.line(s) != "" { + return nil + } + select { + case <-d.done: + if d.line(s) != "" { + return nil + } + if d.line("address already in use") != "" { + return fmt.Errorf("%s exited (%v) before logging %q: %w; its log ends:\n%s", d.name, d.err, s, errBindTaken, d.tail(40)) + } + return fmt.Errorf("%s exited (%v) before logging %q; its log ends:\n%s", d.name, d.err, s, d.tail(40)) + default: + } + if time.Now().After(end) { + return fmt.Errorf("%s did not log %q within %s; its log ends:\n%s", d.name, s, timeout, d.tail(40)) + } + time.Sleep(100 * time.Millisecond) + } +} + // f1StartSources starts the N source volumes. func f1StartSources(t *testing.T, env *handoffEnv, n int) []f1Volume { t.Helper() diff --git a/seaweed-block/cmd/blockvolume/test_port_handoff_test.go b/seaweed-block/cmd/blockvolume/test_port_handoff_test.go new file mode 100644 index 0000000000..10496bbaf4 --- /dev/null +++ b/seaweed-block/cmd/blockvolume/test_port_handoff_test.go @@ -0,0 +1,77 @@ +package main_test + +import ( + "errors" + "testing" +) + +// handoffRange is the range [lo, hi) a harness-chosen daemon port is drawn +// from: [10000, 20000), cut at the host's ephemeral range when that starts +// lower, so an outgoing connection's source port cannot take a port between +// the free check and the daemon's bind. ok is false when nothing is left. +func handoffRange(ephemeralLo int) (lo, hi int, ok bool) { + lo, hi = 10000, 20000 + if ephemeralLo < hi { + hi = ephemeralLo + } + return lo, hi, hi > lo +} + +// errBindTaken is a start that failed because a harness-chosen port was +// taken before the daemon bound it. +var errBindTaken = errors.New("a harness-chosen port was taken before the daemon bound it") + +// startWithBindRetry starts a daemon and waits for it; when the start +// reports errBindTaken, it asks for fresh ports and starts once more. Any +// other answer, and a second errBindTaken, is returned as it is. +func startWithBindRetry(start func() error, freshPorts func()) (retried bool, err error) { + err = start() + if !errors.Is(err, errBindTaken) { + return false, err + } + freshPorts() + return true, start() +} + +func TestHandoffRangeStaysBelowTheEphemeralRange(t *testing.T) { + for _, c := range []struct { + eph, lo, hi int + ok bool + }{ + {32768, 10000, 20000, true}, // the Linux default: the whole range + {20000, 10000, 20000, true}, + {15000, 10000, 15000, true}, // a host whose ephemeral range starts low: cut there + {10001, 10000, 10001, true}, + {10000, 10000, 10000, false}, // nothing left + {1024, 10000, 1024, false}, + } { + lo, hi, ok := handoffRange(c.eph) + if lo != c.lo || hi != c.hi || ok != c.ok { + t.Fatalf("ephemeral from %d: [%d, %d) ok=%v; want [%d, %d) ok=%v", c.eph, lo, hi, ok, c.lo, c.hi, c.ok) + } + } +} + +func TestStartWithBindRetry(t *testing.T) { + other := errors.New("exited before logging adoption") + for _, c := range []struct { + name string + answers []error + retried bool + want error + starts int + freshCnt int + }{ + {"ok at once", []error{nil}, false, nil, 1, 0}, + {"another failure is not retried", []error{other}, false, other, 1, 0}, + {"a taken port, then ok", []error{errBindTaken, nil}, true, nil, 2, 1}, + {"a taken port twice: the second answer stands", []error{errBindTaken, errBindTaken}, true, errBindTaken, 2, 1}, + {"a taken port, then another failure", []error{errBindTaken, other}, true, other, 2, 1}, + } { + starts, fresh := 0, 0 + retried, err := startWithBindRetry(func() error { e := c.answers[starts]; starts++; return e }, func() { fresh++ }) + if retried != c.retried || !errors.Is(err, c.want) || (c.want == nil && err != nil) || starts != c.starts || fresh != c.freshCnt { + t.Fatalf("%s: retried=%v err=%v starts=%d fresh=%d", c.name, retried, err, starts, fresh) + } + } +} From dccff2f073365e5d28cd5bedd917f9560d46668b Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 1 Dec 2026 21:50:37 -0800 Subject: [PATCH 12/12] test: F1 retries only an exact listener-bind EADDRINUSE on the attempt's own drawn address, and keeps the first attempt's log (#927 review) P1: f1WaitAdopted took any log line containing "address already in use" as a taken port. It now passes the attempt's four drawn addresses to bindTakenOn, which accepts only Go's listener error ending a line, "listen tcp : bind: address already in use", with one of them; a different port or host, a dial, a quoted copy, text after it, udp or the bare words are not a taken port, so the start fails as before. P2: the retry starts as blockvolume--attempt2, so the first attempt's log is not truncated, and startWithBindRetry returns the first attempt's error, which the test logs (address and log path) before the retry's answer. Red: TestBindTakenOnOnlyThisAttemptsListener fails with the previous substring rule; TestStartWithBindRetry checks attempt numbers and the kept first error. Co-Authored-By: Claude Opus 5.5 --- .../snapshot_ladder_f1_integration_test.go | 37 +++--- .../cmd/blockvolume/test_port_handoff_test.go | 120 ++++++++++++++---- 2 files changed, 115 insertions(+), 42 deletions(-) diff --git a/seaweed-block/cmd/blockvolume/snapshot_ladder_f1_integration_test.go b/seaweed-block/cmd/blockvolume/snapshot_ladder_f1_integration_test.go index 3edfb6244d..a42d3f0dba 100644 --- a/seaweed-block/cmd/blockvolume/snapshot_ladder_f1_integration_test.go +++ b/seaweed-block/cmd/blockvolume/snapshot_ladder_f1_integration_test.go @@ -269,25 +269,29 @@ func f1StartEnv(t *testing.T, cfg f1Config) (*handoffEnv, *daemon) { func f1Up(t *testing.T, env *handoffEnv, key string) *daemon { t.Helper() var d *daemon - start := func() error { + start := func(attempt int) error { b := env.hosts[key] - d = env.h.start(t, "blockvolume-"+key, env.h.volume, env.volArgsFor(b)...) - return f1WaitAdopted(d, 60*time.Second, fmt.Sprintf("blockvolume: volume %s adopted as PRIMARY at %s@", b.volume, b.replica)) + name := "blockvolume-" + key + if attempt > 1 { + name = fmt.Sprintf("%s-attempt%d", name, attempt) // its own log: the first attempt's stays whole + } + d = env.h.start(t, name, env.h.volume, env.volArgsFor(b)...) + return f1WaitAdopted(d, 60*time.Second, fmt.Sprintf("blockvolume: volume %s adopted as PRIMARY at %s@", b.volume, b.replica), + []string{b.data, b.ctrl, b.status, b.nvme}) } fresh := func() { b := env.hosts[key] b.data, b.ctrl, b.status, b.nvme = handoffAddress(t), handoffAddress(t), handoffAddress(t), handoffAddress(t) env.hosts[key] = b } - var retried bool - var err error + var first, err error if key == "v1" { - err = start() + err = start(1) } else { - retried, err = startWithBindRetry(start, fresh) + first, err = startWithBindRetry(start, fresh) } - if retried { - t.Logf("%s: a harness-chosen port was taken before the holder bound it; started again on new ports", key) + if first != nil { + t.Logf("%s: started again on new ports after its first attempt lost a drawn port: %v", key, first) } if err != nil { t.Fatal(err) @@ -297,10 +301,11 @@ func f1Up(t *testing.T, env *handoffEnv, key string) *daemon { return d } -// f1WaitAdopted waits until d logs s. A holder that exits first because a -// listener's port was taken answers errBindTaken (wrapped, with its log's -// end); any other exit or the bound answers an error naming it. -func f1WaitAdopted(d *daemon, timeout time.Duration, s string) error { +// f1WaitAdopted waits until d logs s. A holder that exits first because the +// bind of one of drawn (this attempt's own addresses) found it in use +// answers errBindTaken (wrapped, naming the address and the log's end); +// any other exit or the bound answers an error naming it. +func f1WaitAdopted(d *daemon, timeout time.Duration, s string, drawn []string) error { end := time.Now().Add(timeout) for { if d.line(s) != "" { @@ -311,8 +316,10 @@ func f1WaitAdopted(d *daemon, timeout time.Duration, s string) error { if d.line(s) != "" { return nil } - if d.line("address already in use") != "" { - return fmt.Errorf("%s exited (%v) before logging %q: %w; its log ends:\n%s", d.name, d.err, s, errBindTaken, d.tail(40)) + if data, err := os.ReadFile(d.log); err == nil { + if addr, ok := bindTakenOn(string(data), drawn); ok { + return fmt.Errorf("%s exited (%v) before logging %q: %w (%s; log %s); its log ends:\n%s", d.name, d.err, s, errBindTaken, addr, d.log, d.tail(40)) + } } return fmt.Errorf("%s exited (%v) before logging %q; its log ends:\n%s", d.name, d.err, s, d.tail(40)) default: diff --git a/seaweed-block/cmd/blockvolume/test_port_handoff_test.go b/seaweed-block/cmd/blockvolume/test_port_handoff_test.go index 10496bbaf4..28ee8a33ba 100644 --- a/seaweed-block/cmd/blockvolume/test_port_handoff_test.go +++ b/seaweed-block/cmd/blockvolume/test_port_handoff_test.go @@ -2,6 +2,8 @@ package main_test import ( "errors" + "regexp" + "strings" "testing" ) @@ -17,20 +19,48 @@ func handoffRange(ephemeralLo int) (lo, hi int, ok bool) { return lo, hi, hi > lo } -// errBindTaken is a start that failed because a harness-chosen port was -// taken before the daemon bound it. +// errBindTaken is a start that failed because one of the addresses the +// harness drew for it was taken before the daemon bound it. var errBindTaken = errors.New("a harness-chosen port was taken before the daemon bound it") -// startWithBindRetry starts a daemon and waits for it; when the start -// reports errBindTaken, it asks for fresh ports and starts once more. Any -// other answer, and a second errBindTaken, is returned as it is. -func startWithBindRetry(start func() error, freshPorts func()) (retried bool, err error) { - err = start() - if !errors.Is(err, errBindTaken) { - return false, err +// bindTakenRe is Go's net error for a listener whose bind found the address +// in use, ending its log line: "listen tcp : bind: address already in +// use". A dial, a quoted copy inside other text, or anything after it on the +// line does not match. +var bindTakenRe = regexp.MustCompile(`(?:^|[\s:])listen tcp (\S+): bind: address already in use$`) + +// bindTakenOn reports the drawn address whose listener bind failed with +// EADDRINUSE in log, if any: only an exact listener-bind error, and only on +// one of drawn (this attempt's own addresses). Anything else is not a taken +// port, so the caller fails as it would without a retry. +func bindTakenOn(log string, drawn []string) (string, bool) { + for _, l := range strings.Split(log, "\n") { + m := bindTakenRe.FindStringSubmatch(strings.TrimRight(l, "\r")) + if m == nil { + continue + } + for _, a := range drawn { + if m[1] == a { + return a, true + } + } } + return "", false +} + +// startWithBindRetry starts a daemon and waits for it; when the start +// reports errBindTaken, it asks for fresh ports and starts once more. first +// is the first attempt's error when it was retried (kept for the report); +// err is the answer that stands. Any other answer, and a second +// errBindTaken, is returned as it is. +func startWithBindRetry(start func(attempt int) error, freshPorts func()) (first, err error) { + err = start(1) + if !errors.Is(err, errBindTaken) { + return nil, err + } + first = err freshPorts() - return true, start() + return first, start(2) } func TestHandoffRangeStaysBelowTheEphemeralRange(t *testing.T) { @@ -52,26 +82,62 @@ func TestHandoffRangeStaysBelowTheEphemeralRange(t *testing.T) { } } -func TestStartWithBindRetry(t *testing.T) { - other := errors.New("exited before logging adoption") +func TestBindTakenOnOnlyThisAttemptsListener(t *testing.T) { + drawn := []string{"127.0.0.1:11230", "127.0.0.1:11231", "127.0.0.1:11232", "127.0.0.1:11233"} for _, c := range []struct { - name string - answers []error - retried bool - want error - starts int - freshCnt int + name, log string + addr string + taken bool }{ - {"ok at once", []error{nil}, false, nil, 1, 0}, - {"another failure is not retried", []error{other}, false, other, 1, 0}, - {"a taken port, then ok", []error{errBindTaken, nil}, true, nil, 2, 1}, - {"a taken port twice: the second answer stands", []error{errBindTaken, errBindTaken}, true, errBindTaken, 2, 1}, - {"a taken port, then another failure", []error{errBindTaken, other}, true, other, 2, 1}, + {"a drawn listener's bind", "2026/12/02 05:01:02 blockvolume: status listener: listen tcp 127.0.0.1:11230: bind: address already in use", "127.0.0.1:11230", true}, + {"the bare net error", "listen tcp 127.0.0.1:11233: bind: address already in use", "127.0.0.1:11233", true}, + {"a CRLF line", "listen tcp 127.0.0.1:11231: bind: address already in use\r", "127.0.0.1:11231", true}, + {"another port", "listen tcp 127.0.0.1:11299: bind: address already in use", "", false}, + {"another host, same port", "listen tcp 0.0.0.0:11230: bind: address already in use", "", false}, + {"a dial", "dial tcp 127.0.0.1:11230: connect: address already in use", "", false}, + {"quoted inside other text", `retry: err="listen tcp 127.0.0.1:11230: bind: address already in use"`, "", false}, + {"more after it", "listen tcp 127.0.0.1:11230: bind: address already in use; retrying", "", false}, + {"the words alone", "address already in use", "", false}, + {"udp", "listen udp 127.0.0.1:11230: bind: address already in use", "", false}, + {"nothing", "blockvolume: volume v2 adopted as PRIMARY at r2@1", "", false}, } { - starts, fresh := 0, 0 - retried, err := startWithBindRetry(func() error { e := c.answers[starts]; starts++; return e }, func() { fresh++ }) - if retried != c.retried || !errors.Is(err, c.want) || (c.want == nil && err != nil) || starts != c.starts || fresh != c.freshCnt { - t.Fatalf("%s: retried=%v err=%v starts=%d fresh=%d", c.name, retried, err, starts, fresh) + addr, taken := bindTakenOn("first line\n"+c.log+"\nlast line", drawn) + if addr != c.addr || taken != c.taken { + t.Fatalf("%s: (%q, %v); want (%q, %v)", c.name, addr, taken, c.addr, c.taken) + } + } +} + +func TestStartWithBindRetry(t *testing.T) { + other := errors.New("exited before logging adoption") + taken := func(n int) error { return errors.Join(errBindTaken, errors.New("attempt "+string(rune('0'+n)))) } + for _, c := range []struct { + name string + answers []error + first bool + want error + attempts []int + freshCnt int + }{ + {"ok at once", []error{nil}, false, nil, []int{1}, 0}, + {"another failure is not retried", []error{other}, false, other, []int{1}, 0}, + {"a taken port, then ok", []error{taken(1), nil}, true, nil, []int{1, 2}, 1}, + {"a taken port twice: the second answer stands", []error{taken(1), taken(2)}, true, errBindTaken, []int{1, 2}, 1}, + {"a taken port, then another failure", []error{taken(1), other}, true, other, []int{1, 2}, 1}, + } { + var attempts []int + fresh := 0 + first, err := startWithBindRetry(func(a int) error { attempts = append(attempts, a); return c.answers[a-1] }, func() { fresh++ }) + if (first != nil) != c.first || (c.first && !errors.Is(first, errBindTaken)) { + t.Fatalf("%s: first=%v", c.name, first) + } + if !errors.Is(err, c.want) || (c.want == nil && err != nil) || fresh != c.freshCnt || len(attempts) != len(c.attempts) { + t.Fatalf("%s: err=%v attempts=%v fresh=%d", c.name, err, attempts, fresh) + } + for i, a := range c.attempts { + if attempts[i] != a { + t.Fatalf("%s: attempts %v, want %v", c.name, attempts, c.attempts) + } } } }