diff --git a/.bingo/Variables.mk b/.bingo/Variables.mk index d53507395..8191d265e 100644 --- a/.bingo/Variables.mk +++ b/.bingo/Variables.mk @@ -16,11 +16,11 @@ GO ?= $(shell which go) # @echo "Running buf" # @$(BUF) # -BUF := $(GOBIN)/buf-v0.20.5 +BUF := $(GOBIN)/buf-v0.30.0 $(BUF): .bingo/buf.mod @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buf-v0.20.5" - @cd .bingo && $(GO) build -modfile=buf.mod -o=$(GOBIN)/buf-v0.20.5 "github.com/bufbuild/buf/cmd/buf" + @echo "(re)installing $(GOBIN)/buf-v0.30.0" + @cd .bingo && $(GO) build -modfile=buf.mod -o=$(GOBIN)/buf-v0.30.0 "github.com/bufbuild/buf/cmd/buf" GOMPLATE := $(GOBIN)/gomplate-v3.8.0 $(GOMPLATE): .bingo/gomplate.mod @@ -52,3 +52,15 @@ $(PROTOC_GEN_BUF_CHECK_LINT): .bingo/protoc-gen-buf-check-lint.mod @echo "(re)installing $(GOBIN)/protoc-gen-buf-check-lint-v0.20.5" @cd .bingo && $(GO) build -modfile=protoc-gen-buf-check-lint.mod -o=$(GOBIN)/protoc-gen-buf-check-lint-v0.20.5 "github.com/bufbuild/buf/cmd/protoc-gen-buf-check-lint" +PROTOC_GEN_GO_GRPC := $(GOBIN)/protoc-gen-go-grpc-v1.0.1 +$(PROTOC_GEN_GO_GRPC): .bingo/protoc-gen-go-grpc.mod + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/protoc-gen-go-grpc-v1.0.1" + @cd .bingo && $(GO) build -modfile=protoc-gen-go-grpc.mod -o=$(GOBIN)/protoc-gen-go-grpc-v1.0.1 "google.golang.org/grpc/cmd/protoc-gen-go-grpc" + +PROTOC_GEN_GO := $(GOBIN)/protoc-gen-go-v1.25.0 +$(PROTOC_GEN_GO): .bingo/protoc-gen-go.mod + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/protoc-gen-go-v1.25.0" + @cd .bingo && $(GO) build -modfile=protoc-gen-go.mod -o=$(GOBIN)/protoc-gen-go-v1.25.0 "google.golang.org/protobuf/cmd/protoc-gen-go" + diff --git a/.bingo/buf.mod b/.bingo/buf.mod index 7e2a9f8ae..ce787330c 100644 --- a/.bingo/buf.mod +++ b/.bingo/buf.mod @@ -2,4 +2,4 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT go 1.14 -require github.com/bufbuild/buf v0.20.5 // cmd/buf +require github.com/bufbuild/buf v0.30.0 // cmd/buf diff --git a/.bingo/protoc-gen-go-grpc.mod b/.bingo/protoc-gen-go-grpc.mod new file mode 100644 index 000000000..436eb415f --- /dev/null +++ b/.bingo/protoc-gen-go-grpc.mod @@ -0,0 +1,5 @@ +module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT + +go 1.14 + +require google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.0.1 diff --git a/.bingo/protoc-gen-go.mod b/.bingo/protoc-gen-go.mod new file mode 100644 index 000000000..0640b1ef7 --- /dev/null +++ b/.bingo/protoc-gen-go.mod @@ -0,0 +1,5 @@ +module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT + +go 1.14 + +require google.golang.org/protobuf v1.25.0 // cmd/protoc-gen-go diff --git a/.bingo/variables.env b/.bingo/variables.env index fd94c07b1..2a861a592 100644 --- a/.bingo/variables.env +++ b/.bingo/variables.env @@ -8,7 +8,7 @@ if [ -z "$gobin" ]; then fi -BUF="${gobin}/buf-v0.20.5" +BUF="${gobin}/buf-v0.30.0" GOMPLATE="${gobin}/gomplate-v3.8.0" @@ -20,3 +20,7 @@ PROTOC_GEN_BUF_CHECK_BREAKING="${gobin}/protoc-gen-buf-check-breaking-v0.20.5" PROTOC_GEN_BUF_CHECK_LINT="${gobin}/protoc-gen-buf-check-lint-v0.20.5" +PROTOC_GEN_GO_GRPC="${gobin}/protoc-gen-go-grpc-v1.0.1" + +PROTOC_GEN_GO="${gobin}/protoc-gen-go-v1.25.0" + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f5599544..239df47d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -94,7 +94,7 @@ jobs: replace-with: "" - name: Generate JS gRPC bindings run: | - ./scripts/gen-js-protos.sh ${{steps.makeversion.outputs.replaced}} . ./js-grpc + ./scripts/gen-js-protos.sh ${{steps.makeversion.outputs.replaced}} ./proto ./js-grpc - name: Publish JS gRPC bindings env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/.gitignore b/.gitignore index 13949b810..62ef9e850 100644 --- a/.gitignore +++ b/.gitignore @@ -17,9 +17,6 @@ # vscode config folder .vscode/ -buildtools/protoc -buildtools/protoc-gen-go - # File names that can be used for testing. new myfile diff --git a/Makefile b/Makefile index 7ff9eb94d..be7f2f22b 100644 --- a/Makefile +++ b/Makefile @@ -82,12 +82,8 @@ clean-protos: find . -type f -name '*pb_test.go' -delete .PHONY: clean-protos -install-protoc: - cd buildtools && ./protocInstall.sh - -PROTOCGENGO=$(shell pwd)/buildtools/protoc-gen-go -protos: install-protoc clean-protos - PATH=$(PROTOCGENGO):$(PATH) ./scripts/protoc_gen_plugin.bash --proto_path=. --plugin_name=go --plugin_out=. --plugin_opt=plugins=grpc,paths=source_relative +protos: $(BUF) $(PROTOC_GEN_GO) $(PROTOC_GEN_GO_GRPC) clean-protos + $(BUF) generate --template '{"version":"v1beta1","plugins":[{"name":"go","out":"api/gen","opt":"paths=source_relative","path":$(PROTOC_GEN_GO)},{"name":"go-grpc","out":"api/gen","opt":"paths=source_relative","path":$(PROTOC_GEN_GO_GRPC)}]}' .PHONY: protos # local is what we run when testing locally. diff --git a/README.md b/README.md index 027f5bff8..b96222b28 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ Available Commands: data Provides commands to interact with general data APIs deals Provides commands to view Filecoin deal information help Help about any command - id Returns the storage profile id + id Returns the user id storage-jobs Provides commands to query for storage jobs in various states version Display version information for pow and the connected server wallet Provides commands about filecoin wallets @@ -96,7 +96,7 @@ Available Commands: Flags: -h, --help help for pow --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token -v, --version display version information for pow and the connected server Use "pow [command] --help" for more information about a command. @@ -203,9 +203,9 @@ Terminal 2: ```bash make build ❯ head -c 700 myfile -❯ pow admin profile create +❯ pow admin user create { - "authEntry": { + "user": { "id": "c06382e0-2021-4234-be53-6e07a8d40065", "token": "883f57b1-4e66-47f8-b291-7cf8b10f6370" } diff --git a/api/client/admin/admin.go b/api/client/admin/admin.go index 37aa18c54..c33bfca14 100644 --- a/api/client/admin/admin.go +++ b/api/client/admin/admin.go @@ -1,21 +1,21 @@ package admin import ( - proto "github.com/textileio/powergate/proto/admin/v1" + adminPb "github.com/textileio/powergate/api/gen/powergate/admin/v1" ) // Admin provides access to Powergate admin APIs. type Admin struct { StorageJobs *StorageJobs - Profiles *Profiles + Users *Users Wallet *Wallet } // NewAdmin creates a new admin API. -func NewAdmin(client proto.PowergateAdminServiceClient) *Admin { +func NewAdmin(client adminPb.AdminServiceClient) *Admin { return &Admin{ StorageJobs: &StorageJobs{client: client}, - Profiles: &Profiles{client: client}, + Users: &Users{client: client}, Wallet: &Wallet{client: client}, } } diff --git a/api/client/admin/profiles.go b/api/client/admin/profiles.go deleted file mode 100644 index 3490bcf48..000000000 --- a/api/client/admin/profiles.go +++ /dev/null @@ -1,22 +0,0 @@ -package admin - -import ( - "context" - - proto "github.com/textileio/powergate/proto/admin/v1" -) - -// Profiles provides access to Powergate admin storage profile APIs. -type Profiles struct { - client proto.PowergateAdminServiceClient -} - -// CreateStorageProfile creates a new Powergate storage profile, returning the instance ID and auth token. -func (p *Profiles) CreateStorageProfile(ctx context.Context) (*proto.CreateStorageProfileResponse, error) { - return p.client.CreateStorageProfile(ctx, &proto.CreateStorageProfileRequest{}) -} - -// StorageProfiles returns a list of existing API instances. -func (p *Profiles) StorageProfiles(ctx context.Context) (*proto.StorageProfilesResponse, error) { - return p.client.StorageProfiles(ctx, &proto.StorageProfilesRequest{}) -} diff --git a/api/client/admin/storagejobs.go b/api/client/admin/storagejobs.go index a0c639b83..8c53a9dbd 100644 --- a/api/client/admin/storagejobs.go +++ b/api/client/admin/storagejobs.go @@ -3,26 +3,26 @@ package admin import ( "context" - proto "github.com/textileio/powergate/proto/admin/v1" + adminPb "github.com/textileio/powergate/api/gen/powergate/admin/v1" ) // StorageJobs provides access to Powergate jobs admin APIs. type StorageJobs struct { - client proto.PowergateAdminServiceClient + client adminPb.AdminServiceClient } type storageJobsConfig struct { - ProfileID string - Cids []string + UserID string + Cids []string } // StorageJobsOption configures a storageJobsConfig. type StorageJobsOption = func(*storageJobsConfig) -// WithProfileID filters the results to the specified profile. -func WithProfileID(profileID string) StorageJobsOption { +// WithUserID filters the results to the specified user. +func WithUserID(userID string) StorageJobsOption { return func(conf *storageJobsConfig) { - conf.ProfileID = profileID + conf.UserID = userID } } @@ -34,66 +34,66 @@ func WithCids(cids ...string) StorageJobsOption { } // Queued returns a list of queued storage jobs. -func (j *StorageJobs) Queued(ctx context.Context, opts ...StorageJobsOption) (*proto.QueuedStorageJobsResponse, error) { +func (j *StorageJobs) Queued(ctx context.Context, opts ...StorageJobsOption) (*adminPb.QueuedStorageJobsResponse, error) { conf := &storageJobsConfig{} for _, opt := range opts { opt(conf) } - req := &proto.QueuedStorageJobsRequest{ - ProfileId: conf.ProfileID, - Cids: conf.Cids, + req := &adminPb.QueuedStorageJobsRequest{ + UserId: conf.UserID, + Cids: conf.Cids, } return j.client.QueuedStorageJobs(ctx, req) } // Executing returns a list of executing storage jobs. -func (j *StorageJobs) Executing(ctx context.Context, opts ...StorageJobsOption) (*proto.ExecutingStorageJobsResponse, error) { +func (j *StorageJobs) Executing(ctx context.Context, opts ...StorageJobsOption) (*adminPb.ExecutingStorageJobsResponse, error) { conf := &storageJobsConfig{} for _, opt := range opts { opt(conf) } - req := &proto.ExecutingStorageJobsRequest{ - ProfileId: conf.ProfileID, - Cids: conf.Cids, + req := &adminPb.ExecutingStorageJobsRequest{ + UserId: conf.UserID, + Cids: conf.Cids, } return j.client.ExecutingStorageJobs(ctx, req) } // LatestFinal returns a list of latest final storage jobs. -func (j *StorageJobs) LatestFinal(ctx context.Context, opts ...StorageJobsOption) (*proto.LatestFinalStorageJobsResponse, error) { +func (j *StorageJobs) LatestFinal(ctx context.Context, opts ...StorageJobsOption) (*adminPb.LatestFinalStorageJobsResponse, error) { conf := &storageJobsConfig{} for _, opt := range opts { opt(conf) } - req := &proto.LatestFinalStorageJobsRequest{ - ProfileId: conf.ProfileID, - Cids: conf.Cids, + req := &adminPb.LatestFinalStorageJobsRequest{ + UserId: conf.UserID, + Cids: conf.Cids, } return j.client.LatestFinalStorageJobs(ctx, req) } // LatestSuccessful returns a list of latest successful storage jobs. -func (j *StorageJobs) LatestSuccessful(ctx context.Context, opts ...StorageJobsOption) (*proto.LatestSuccessfulStorageJobsResponse, error) { +func (j *StorageJobs) LatestSuccessful(ctx context.Context, opts ...StorageJobsOption) (*adminPb.LatestSuccessfulStorageJobsResponse, error) { conf := &storageJobsConfig{} for _, opt := range opts { opt(conf) } - req := &proto.LatestSuccessfulStorageJobsRequest{ - ProfileId: conf.ProfileID, - Cids: conf.Cids, + req := &adminPb.LatestSuccessfulStorageJobsRequest{ + UserId: conf.UserID, + Cids: conf.Cids, } return j.client.LatestSuccessfulStorageJobs(ctx, req) } // Summary returns a summary of storage jobs. -func (j *StorageJobs) Summary(ctx context.Context, opts ...StorageJobsOption) (*proto.StorageJobsSummaryResponse, error) { +func (j *StorageJobs) Summary(ctx context.Context, opts ...StorageJobsOption) (*adminPb.StorageJobsSummaryResponse, error) { conf := &storageJobsConfig{} for _, opt := range opts { opt(conf) } - req := &proto.StorageJobsSummaryRequest{ - ProfileId: conf.ProfileID, - Cids: conf.Cids, + req := &adminPb.StorageJobsSummaryRequest{ + UserId: conf.UserID, + Cids: conf.Cids, } return j.client.StorageJobsSummary(ctx, req) } diff --git a/api/client/admin/users.go b/api/client/admin/users.go new file mode 100644 index 000000000..5ba7f1fc4 --- /dev/null +++ b/api/client/admin/users.go @@ -0,0 +1,22 @@ +package admin + +import ( + "context" + + adminPb "github.com/textileio/powergate/api/gen/powergate/admin/v1" +) + +// Users provides access to Powergate admin users APIs. +type Users struct { + client adminPb.AdminServiceClient +} + +// Create creates a new Powergate user, returning the user ID and auth token. +func (p *Users) Create(ctx context.Context) (*adminPb.CreateUserResponse, error) { + return p.client.CreateUser(ctx, &adminPb.CreateUserRequest{}) +} + +// List returns a list of existing users. +func (p *Users) List(ctx context.Context) (*adminPb.UsersResponse, error) { + return p.client.Users(ctx, &adminPb.UsersRequest{}) +} diff --git a/api/client/admin/wallet.go b/api/client/admin/wallet.go index 2310836e4..f8bce2f6d 100644 --- a/api/client/admin/wallet.go +++ b/api/client/admin/wallet.go @@ -4,30 +4,30 @@ import ( "context" "math/big" - proto "github.com/textileio/powergate/proto/admin/v1" + adminPb "github.com/textileio/powergate/api/gen/powergate/admin/v1" ) // Wallet provides access to Powergate wallet admin APIs. type Wallet struct { - client proto.PowergateAdminServiceClient + client adminPb.AdminServiceClient } // NewAddress creates a new address. -func (w *Wallet) NewAddress(ctx context.Context, addrType string) (*proto.NewAddressResponse, error) { - req := &proto.NewAddressRequest{ +func (w *Wallet) NewAddress(ctx context.Context, addrType string) (*adminPb.NewAddressResponse, error) { + req := &adminPb.NewAddressRequest{ AddressType: addrType, } return w.client.NewAddress(ctx, req) } // Addresses lists all addresses associated with this Powergate. -func (w *Wallet) Addresses(ctx context.Context) (*proto.AddressesResponse, error) { - return w.client.Addresses(ctx, &proto.AddressesRequest{}) +func (w *Wallet) Addresses(ctx context.Context) (*adminPb.AddressesResponse, error) { + return w.client.Addresses(ctx, &adminPb.AddressesRequest{}) } // SendFil sends FIL from an address associated with this Powergate to any other address. -func (w *Wallet) SendFil(ctx context.Context, from, to string, amount *big.Int) (*proto.SendFilResponse, error) { - req := &proto.SendFilRequest{ +func (w *Wallet) SendFil(ctx context.Context, from, to string, amount *big.Int) (*adminPb.SendFilResponse, error) { + req := &adminPb.SendFilRequest{ From: from, To: to, Amount: amount.String(), diff --git a/api/client/admin_test.go b/api/client/admin_test.go index 4490ac94c..c772be660 100644 --- a/api/client/admin_test.go +++ b/api/client/admin_test.go @@ -7,7 +7,7 @@ import ( "github.com/google/uuid" "github.com/stretchr/testify/require" "github.com/textileio/powergate/api/client/admin" - proto "github.com/textileio/powergate/proto/admin/v1" + adminPb "github.com/textileio/powergate/api/gen/powergate/admin/v1" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) @@ -21,10 +21,10 @@ func TestCreate(t *testing.T) { a, done := setupAdmin(t, "") defer done() - resp, err := a.Profiles.CreateStorageProfile(ctx) + resp, err := a.Users.Create(ctx) require.NoError(t, err) - require.NotEmpty(t, resp.AuthEntry.Id) - require.NotEmpty(t, resp.AuthEntry.Token) + require.NotEmpty(t, resp.User.Id) + require.NotEmpty(t, resp.User.Token) }) t.Run("WithAdminToken", func(t *testing.T) { @@ -33,7 +33,7 @@ func TestCreate(t *testing.T) { defer done() t.Run("UnauthorizedEmpty", func(t *testing.T) { - resp, err := a.Profiles.CreateStorageProfile(ctx) + resp, err := a.Users.Create(ctx) require.Error(t, err) require.Nil(t, resp) }) @@ -45,7 +45,7 @@ func TestCreate(t *testing.T) { } for _, auth := range wrongAuths { ctx := context.WithValue(ctx, AdminKey, auth) - resp, err := a.Profiles.CreateStorageProfile(ctx) + resp, err := a.Users.Create(ctx) st, ok := status.FromError(err) require.True(t, ok) require.Equal(t, codes.PermissionDenied, st.Code()) @@ -54,10 +54,10 @@ func TestCreate(t *testing.T) { }) t.Run("Authorized", func(t *testing.T) { ctx := context.WithValue(ctx, AdminKey, authToken) - resp, err := a.Profiles.CreateStorageProfile(ctx) + resp, err := a.Users.Create(ctx) require.NoError(t, err) - require.NotEmpty(t, resp.AuthEntry.Id) - require.NotEmpty(t, resp.AuthEntry.Token) + require.NotEmpty(t, resp.User.Id) + require.NotEmpty(t, resp.User.Token) }) }) } @@ -69,7 +69,7 @@ func setupAdmin(t *testing.T, adminAuthToken string) (*admin.Admin, func()) { } serverDone := setupServer(t, defConfig) conn, done := setupConnection(t) - return admin.NewAdmin(proto.NewPowergateAdminServiceClient(conn)), func() { + return admin.NewAdmin(adminPb.NewAdminServiceClient(conn)), func() { done() serverDone() } diff --git a/api/client/client.go b/api/client/client.go index 4416d5c26..5256506ad 100644 --- a/api/client/client.go +++ b/api/client/client.go @@ -6,8 +6,8 @@ import ( "strings" "github.com/textileio/powergate/api/client/admin" - adminProto "github.com/textileio/powergate/proto/admin/v1" - proto "github.com/textileio/powergate/proto/powergate/v1" + adminPb "github.com/textileio/powergate/api/gen/powergate/admin/v1" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" "google.golang.org/grpc" "google.golang.org/grpc/credentials" ) @@ -21,7 +21,7 @@ type Client struct { StorageJobs *StorageJobs Admin *admin.Admin conn *grpc.ClientConn - client proto.PowergateServiceClient + client userPb.UserServiceClient } type ctxKey string @@ -91,14 +91,14 @@ func NewClient(host string, optsOverrides ...grpc.DialOption) (*Client, error) { if err != nil { return nil, err } - client := proto.NewPowergateServiceClient(conn) + client := userPb.NewUserServiceClient(conn) return &Client{ StorageConfig: &StorageConfig{client: client}, Data: &Data{client: client}, Wallet: &Wallet{client: client}, Deals: &Deals{client: client}, StorageJobs: &StorageJobs{client: client}, - Admin: admin.NewAdmin(adminProto.NewPowergateAdminServiceClient(conn)), + Admin: admin.NewAdmin(adminPb.NewAdminServiceClient(conn)), conn: conn, client: client, }, nil @@ -110,13 +110,13 @@ func (c *Client) Host() string { } // BuildInfo returns build info about the server. -func (c *Client) BuildInfo(ctx context.Context) (*proto.BuildInfoResponse, error) { - return c.client.BuildInfo(ctx, &proto.BuildInfoRequest{}) +func (c *Client) BuildInfo(ctx context.Context) (*userPb.BuildInfoResponse, error) { + return c.client.BuildInfo(ctx, &userPb.BuildInfoRequest{}) } -// StorageProfileID returns the storage profile StorageProfileID. -func (c *Client) StorageProfileID(ctx context.Context) (*proto.StorageProfileIdentifierResponse, error) { - return c.client.StorageProfileIdentifier(ctx, &proto.StorageProfileIdentifierRequest{}) +// UserID returns the user id. +func (c *Client) UserID(ctx context.Context) (*userPb.UserIdentifierResponse, error) { + return c.client.UserIdentifier(ctx, &userPb.UserIdentifierRequest{}) } // Close closes the client's grpc connection and cancels any active requests. diff --git a/api/client/data.go b/api/client/data.go index 1b72d6f8e..b68cbd4a5 100644 --- a/api/client/data.go +++ b/api/client/data.go @@ -13,7 +13,7 @@ import ( "github.com/ipfs/interface-go-ipfs-core/options" ipfspath "github.com/ipfs/interface-go-ipfs-core/path" "github.com/multiformats/go-multiaddr" - proto "github.com/textileio/powergate/proto/powergate/v1" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" "github.com/textileio/powergate/util" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -21,16 +21,16 @@ import ( // Data provides access to Powergate general data APIs. type Data struct { - client proto.PowergateServiceClient + client userPb.UserServiceClient } // WatchLogsOption is a function that changes GetLogsConfig. -type WatchLogsOption func(r *proto.WatchLogsRequest) +type WatchLogsOption func(r *userPb.WatchLogsRequest) // WithJobIDFilter filters only log messages of a Cid related to // the Job with id jid. func WithJobIDFilter(jobID string) WatchLogsOption { - return func(r *proto.WatchLogsRequest) { + return func(r *userPb.WatchLogsRequest) { r.JobId = jobID } } @@ -38,19 +38,19 @@ func WithJobIDFilter(jobID string) WatchLogsOption { // WithHistory indicates that prior history logs should // be sent in the channel before getting real time logs. func WithHistory(enabled bool) WatchLogsOption { - return func(r *proto.WatchLogsRequest) { + return func(r *userPb.WatchLogsRequest) { r.History = enabled } } // WatchLogsEvent represents an event for watching cid logs. type WatchLogsEvent struct { - Res *proto.WatchLogsResponse + Res *userPb.WatchLogsResponse Err error } // Stage allows to temporarily stage data in the Hot Storage in preparation for pushing a cid storage config. -func (d *Data) Stage(ctx context.Context, data io.Reader) (*proto.StageResponse, error) { +func (d *Data) Stage(ctx context.Context, data io.Reader) (*userPb.StageResponse, error) { stream, err := d.client.Stage(ctx) if err != nil { return nil, err @@ -62,7 +62,7 @@ func (d *Data) Stage(ctx context.Context, data io.Reader) (*proto.StageResponse, if err != nil && err != io.EOF { return nil, err } - sendErr := stream.Send(&proto.StageRequest{Chunk: buffer[:bytesRead]}) + sendErr := stream.Send(&userPb.StageRequest{Chunk: buffer[:bytesRead]}) if sendErr != nil { if sendErr == io.EOF { var noOp interface{} @@ -109,13 +109,13 @@ func (d *Data) StageFolder(ctx context.Context, ipfsRevProxyAddr string, folderP // ReplaceData pushes a StorageConfig for c2 equal to that of c1, and removes c1. This operation // is more efficient than manually removing and adding in two separate operations. -func (d *Data) ReplaceData(ctx context.Context, cid1, cid2 string) (*proto.ReplaceDataResponse, error) { - return d.client.ReplaceData(ctx, &proto.ReplaceDataRequest{Cid1: cid1, Cid2: cid2}) +func (d *Data) ReplaceData(ctx context.Context, cid1, cid2 string) (*userPb.ReplaceDataResponse, error) { + return d.client.ReplaceData(ctx, &userPb.ReplaceDataRequest{Cid1: cid1, Cid2: cid2}) } // Get returns an io.Reader for reading a stored Cid from the Hot Storage. func (d *Data) Get(ctx context.Context, cid string) (io.Reader, error) { - stream, err := d.client.Get(ctx, &proto.GetRequest{ + stream, err := d.client.Get(ctx, &userPb.GetRequest{ Cid: cid, }) if err != nil { @@ -169,7 +169,7 @@ func (d *Data) GetFolder(ctx context.Context, ipfsRevProxyAddr, cid, outputDir s // and will continue to send messages until the context is canceled. The provided channel // is owned by the method and must not be closed. func (d *Data) WatchLogs(ctx context.Context, ch chan<- WatchLogsEvent, cid string, opts ...WatchLogsOption) error { - r := &proto.WatchLogsRequest{Cid: cid} + r := &userPb.WatchLogsRequest{Cid: cid} for _, opt := range opts { opt(r) } @@ -195,9 +195,9 @@ func (d *Data) WatchLogs(ctx context.Context, ch chan<- WatchLogsEvent, cid stri return nil } -// CidInfo returns information about cids managed by the storage profile. -func (d *Data) CidInfo(ctx context.Context, cids ...string) (*proto.CidInfoResponse, error) { - return d.client.CidInfo(ctx, &proto.CidInfoRequest{Cids: cids}) +// CidInfo returns information about cids stored by the user. +func (d *Data) CidInfo(ctx context.Context, cids ...string) (*userPb.CidInfoResponse, error) { + return d.client.CidInfo(ctx, &userPb.CidInfoRequest{Cids: cids}) } func newDecoratedIPFSAPI(proxyAddr, ffsToken string) (*httpapi.HttpApi, error) { diff --git a/api/client/deals.go b/api/client/deals.go index 22ff524b6..60bb4cad9 100644 --- a/api/client/deals.go +++ b/api/client/deals.go @@ -3,21 +3,21 @@ package client import ( "context" - proto "github.com/textileio/powergate/proto/powergate/v1" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" ) // Deals provides access to Powergate deals APIs. type Deals struct { - client proto.PowergateServiceClient + client userPb.UserServiceClient } // DealRecordsOption updates a ListDealRecordsConfig. -type DealRecordsOption func(*proto.DealRecordsConfig) +type DealRecordsOption func(*userPb.DealRecordsConfig) // WithFromAddrs limits the results deals initiated from the provided wallet addresses. // If WithDataCids is also provided, this is an AND operation. func WithFromAddrs(addrs ...string) DealRecordsOption { - return func(c *proto.DealRecordsConfig) { + return func(c *userPb.DealRecordsConfig) { c.FromAddrs = addrs } } @@ -25,7 +25,7 @@ func WithFromAddrs(addrs ...string) DealRecordsOption { // WithDataCids limits the results to deals for the provided data cids. // If WithFromAddrs is also provided, this is an AND operation. func WithDataCids(cids ...string) DealRecordsOption { - return func(c *proto.DealRecordsConfig) { + return func(c *userPb.DealRecordsConfig) { c.DataCids = cids } } @@ -33,7 +33,7 @@ func WithDataCids(cids ...string) DealRecordsOption { // WithIncludePending specifies whether or not to include pending deals in the results. Default is false. // Ignored for ListRetrievalDealRecords. func WithIncludePending(includePending bool) DealRecordsOption { - return func(c *proto.DealRecordsConfig) { + return func(c *userPb.DealRecordsConfig) { c.IncludePending = includePending } } @@ -41,7 +41,7 @@ func WithIncludePending(includePending bool) DealRecordsOption { // WithIncludeFinal specifies whether or not to include final deals in the results. Default is false. // Ignored for ListRetrievalDealRecords. func WithIncludeFinal(includeFinal bool) DealRecordsOption { - return func(c *proto.DealRecordsConfig) { + return func(c *userPb.DealRecordsConfig) { c.IncludeFinal = includeFinal } } @@ -49,25 +49,25 @@ func WithIncludeFinal(includeFinal bool) DealRecordsOption { // WithAscending specifies to sort the results in ascending order. Default is descending order. // Records are sorted by timestamp. func WithAscending(ascending bool) DealRecordsOption { - return func(c *proto.DealRecordsConfig) { + return func(c *userPb.DealRecordsConfig) { c.Ascending = ascending } } -// StorageDealRecords returns a list of storage deals for the storage profile according to the provided options. -func (d *Deals) StorageDealRecords(ctx context.Context, opts ...DealRecordsOption) (*proto.StorageDealRecordsResponse, error) { - conf := &proto.DealRecordsConfig{} +// StorageDealRecords returns a list of storage deals for the user according to the provided options. +func (d *Deals) StorageDealRecords(ctx context.Context, opts ...DealRecordsOption) (*userPb.StorageDealRecordsResponse, error) { + conf := &userPb.DealRecordsConfig{} for _, opt := range opts { opt(conf) } - return d.client.StorageDealRecords(ctx, &proto.StorageDealRecordsRequest{Config: conf}) + return d.client.StorageDealRecords(ctx, &userPb.StorageDealRecordsRequest{Config: conf}) } -// RetrievalDealRecords returns a list of retrieval deals for the storage profile according to the provided options. -func (d *Deals) RetrievalDealRecords(ctx context.Context, opts ...DealRecordsOption) (*proto.RetrievalDealRecordsResponse, error) { - conf := &proto.DealRecordsConfig{} +// RetrievalDealRecords returns a list of retrieval deals for the user according to the provided options. +func (d *Deals) RetrievalDealRecords(ctx context.Context, opts ...DealRecordsOption) (*userPb.RetrievalDealRecordsResponse, error) { + conf := &userPb.DealRecordsConfig{} for _, opt := range opts { opt(conf) } - return d.client.RetrievalDealRecords(ctx, &proto.RetrievalDealRecordsRequest{Config: conf}) + return d.client.RetrievalDealRecords(ctx, &userPb.RetrievalDealRecordsRequest{Config: conf}) } diff --git a/api/client/storageconfig.go b/api/client/storageconfig.go index b9027aa42..3ffd9e8d2 100644 --- a/api/client/storageconfig.go +++ b/api/client/storageconfig.go @@ -3,20 +3,20 @@ package client import ( "context" - proto "github.com/textileio/powergate/proto/powergate/v1" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" ) // StorageConfig provides access to Powergate storage config APIs. type StorageConfig struct { - client proto.PowergateServiceClient + client userPb.UserServiceClient } // ApplyOption mutates a push request. -type ApplyOption func(r *proto.ApplyStorageConfigRequest) +type ApplyOption func(r *userPb.ApplyStorageConfigRequest) // WithStorageConfig overrides the Api default Cid configuration. -func WithStorageConfig(c *proto.StorageConfig) ApplyOption { - return func(r *proto.ApplyStorageConfigRequest) { +func WithStorageConfig(c *userPb.StorageConfig) ApplyOption { + return func(r *userPb.ApplyStorageConfigRequest) { r.HasConfig = true r.Config = c } @@ -25,28 +25,28 @@ func WithStorageConfig(c *proto.StorageConfig) ApplyOption { // WithOverride allows a new push configuration to override an existing one. // It's used as an extra security measure to avoid unwanted configuration changes. func WithOverride(override bool) ApplyOption { - return func(r *proto.ApplyStorageConfigRequest) { + return func(r *userPb.ApplyStorageConfigRequest) { r.HasOverrideConfig = true r.OverrideConfig = override } } // Default returns the default storage config. -func (s *StorageConfig) Default(ctx context.Context) (*proto.DefaultStorageConfigResponse, error) { - return s.client.DefaultStorageConfig(ctx, &proto.DefaultStorageConfigRequest{}) +func (s *StorageConfig) Default(ctx context.Context) (*userPb.DefaultStorageConfigResponse, error) { + return s.client.DefaultStorageConfig(ctx, &userPb.DefaultStorageConfigRequest{}) } // SetDefault sets the default storage config. -func (s *StorageConfig) SetDefault(ctx context.Context, config *proto.StorageConfig) (*proto.SetDefaultStorageConfigResponse, error) { - req := &proto.SetDefaultStorageConfigRequest{ +func (s *StorageConfig) SetDefault(ctx context.Context, config *userPb.StorageConfig) (*userPb.SetDefaultStorageConfigResponse, error) { + req := &userPb.SetDefaultStorageConfigRequest{ Config: config, } return s.client.SetDefaultStorageConfig(ctx, req) } // Apply push a new configuration for the Cid in the Hot and Cold layers. -func (s *StorageConfig) Apply(ctx context.Context, cid string, opts ...ApplyOption) (*proto.ApplyStorageConfigResponse, error) { - req := &proto.ApplyStorageConfigRequest{Cid: cid} +func (s *StorageConfig) Apply(ctx context.Context, cid string, opts ...ApplyOption) (*userPb.ApplyStorageConfigResponse, error) { + req := &userPb.ApplyStorageConfigRequest{Cid: cid} for _, opt := range opts { opt(req) } @@ -55,6 +55,6 @@ func (s *StorageConfig) Apply(ctx context.Context, cid string, opts ...ApplyOpti // Remove removes a Cid from being tracked as an active storage. The Cid should have // both Hot and Cold storage disabled, if that isn't the case it will return ErrActiveInStorage. -func (s *StorageConfig) Remove(ctx context.Context, cid string) (*proto.RemoveResponse, error) { - return s.client.Remove(ctx, &proto.RemoveRequest{Cid: cid}) +func (s *StorageConfig) Remove(ctx context.Context, cid string) (*userPb.RemoveResponse, error) { + return s.client.Remove(ctx, &userPb.RemoveRequest{Cid: cid}) } diff --git a/api/client/storagejobs.go b/api/client/storagejobs.go index 8b36c4ea2..32c340b29 100644 --- a/api/client/storagejobs.go +++ b/api/client/storagejobs.go @@ -4,67 +4,67 @@ import ( "context" "io" - proto "github.com/textileio/powergate/proto/powergate/v1" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) // StorageJobs provides access to Powergate jobs APIs. type StorageJobs struct { - client proto.PowergateServiceClient + client userPb.UserServiceClient } // WatchStorageJobsEvent represents an event for Watching a job. type WatchStorageJobsEvent struct { - Res *proto.WatchStorageJobsResponse + Res *userPb.WatchStorageJobsResponse Err error } // StorageJob returns the current state of the specified job. -func (j *StorageJobs) StorageJob(ctx context.Context, jobID string) (*proto.StorageJobResponse, error) { - return j.client.StorageJob(ctx, &proto.StorageJobRequest{JobId: jobID}) +func (j *StorageJobs) StorageJob(ctx context.Context, jobID string) (*userPb.StorageJobResponse, error) { + return j.client.StorageJob(ctx, &userPb.StorageJobRequest{JobId: jobID}) } // StorageConfigForJob returns the StorageConfig associated with the specified job. -func (j *StorageJobs) StorageConfigForJob(ctx context.Context, jobID string) (*proto.StorageConfigForJobResponse, error) { - return j.client.StorageConfigForJob(ctx, &proto.StorageConfigForJobRequest{JobId: jobID}) +func (j *StorageJobs) StorageConfigForJob(ctx context.Context, jobID string) (*userPb.StorageConfigForJobResponse, error) { + return j.client.StorageConfigForJob(ctx, &userPb.StorageConfigForJobRequest{JobId: jobID}) } // Queued returns a list of queued storage jobs. -func (j *StorageJobs) Queued(ctx context.Context, cids ...string) (*proto.QueuedStorageJobsResponse, error) { - req := &proto.QueuedStorageJobsRequest{ +func (j *StorageJobs) Queued(ctx context.Context, cids ...string) (*userPb.QueuedStorageJobsResponse, error) { + req := &userPb.QueuedStorageJobsRequest{ Cids: cids, } return j.client.QueuedStorageJobs(ctx, req) } // Executing returns a list of executing storage jobs. -func (j *StorageJobs) Executing(ctx context.Context, cids ...string) (*proto.ExecutingStorageJobsResponse, error) { - req := &proto.ExecutingStorageJobsRequest{ +func (j *StorageJobs) Executing(ctx context.Context, cids ...string) (*userPb.ExecutingStorageJobsResponse, error) { + req := &userPb.ExecutingStorageJobsRequest{ Cids: cids, } return j.client.ExecutingStorageJobs(ctx, req) } // LatestFinal returns a list of latest final storage jobs. -func (j *StorageJobs) LatestFinal(ctx context.Context, cids ...string) (*proto.LatestFinalStorageJobsResponse, error) { - req := &proto.LatestFinalStorageJobsRequest{ +func (j *StorageJobs) LatestFinal(ctx context.Context, cids ...string) (*userPb.LatestFinalStorageJobsResponse, error) { + req := &userPb.LatestFinalStorageJobsRequest{ Cids: cids, } return j.client.LatestFinalStorageJobs(ctx, req) } // LatestSuccessful returns a list of latest successful storage jobs. -func (j *StorageJobs) LatestSuccessful(ctx context.Context, cids ...string) (*proto.LatestSuccessfulStorageJobsResponse, error) { - req := &proto.LatestSuccessfulStorageJobsRequest{ +func (j *StorageJobs) LatestSuccessful(ctx context.Context, cids ...string) (*userPb.LatestSuccessfulStorageJobsResponse, error) { + req := &userPb.LatestSuccessfulStorageJobsRequest{ Cids: cids, } return j.client.LatestSuccessfulStorageJobs(ctx, req) } // Summary returns a summary of storage jobs. -func (j *StorageJobs) Summary(ctx context.Context, cids ...string) (*proto.StorageJobsSummaryResponse, error) { - req := &proto.StorageJobsSummaryRequest{ +func (j *StorageJobs) Summary(ctx context.Context, cids ...string) (*userPb.StorageJobsSummaryResponse, error) { + req := &userPb.StorageJobsSummaryRequest{ Cids: cids, } return j.client.StorageJobsSummary(ctx, req) @@ -75,7 +75,7 @@ func (j *StorageJobs) Summary(ctx context.Context, cids ...string) (*proto.Stora // events, the provided ctx should be canceled. If an error occurs, it will be returned // in the Err field of JobEvent and the channel will be closed. func (j *StorageJobs) Watch(ctx context.Context, ch chan<- WatchStorageJobsEvent, jobIDs ...string) error { - stream, err := j.client.WatchStorageJobs(ctx, &proto.WatchStorageJobsRequest{JobIds: jobIDs}) + stream, err := j.client.WatchStorageJobs(ctx, &userPb.WatchStorageJobsRequest{JobIds: jobIDs}) if err != nil { return err } @@ -99,6 +99,6 @@ func (j *StorageJobs) Watch(ctx context.Context, ch chan<- WatchStorageJobsEvent // Cancel signals that the executing Job with JobID jid should be // canceled. -func (j *StorageJobs) Cancel(ctx context.Context, jobID string) (*proto.CancelStorageJobResponse, error) { - return j.client.CancelStorageJob(ctx, &proto.CancelStorageJobRequest{JobId: jobID}) +func (j *StorageJobs) Cancel(ctx context.Context, jobID string) (*userPb.CancelStorageJobResponse, error) { + return j.client.CancelStorageJob(ctx, &userPb.CancelStorageJobRequest{JobId: jobID}) } diff --git a/api/client/wallet.go b/api/client/wallet.go index 013f9cf08..c9a9127d4 100644 --- a/api/client/wallet.go +++ b/api/client/wallet.go @@ -4,53 +4,53 @@ import ( "context" "math/big" - proto "github.com/textileio/powergate/proto/powergate/v1" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" ) // Wallet provides an API for managing filecoin wallets. type Wallet struct { - client proto.PowergateServiceClient + client userPb.UserServiceClient } // NewAddressOption is a function that changes a NewAddressConfig. -type NewAddressOption func(r *proto.NewAddressRequest) +type NewAddressOption func(r *userPb.NewAddressRequest) // WithMakeDefault specifies if the new address should become the default. func WithMakeDefault(makeDefault bool) NewAddressOption { - return func(r *proto.NewAddressRequest) { + return func(r *userPb.NewAddressRequest) { r.MakeDefault = makeDefault } } // WithAddressType specifies the type of address to create. func WithAddressType(addressType string) NewAddressOption { - return func(r *proto.NewAddressRequest) { + return func(r *userPb.NewAddressRequest) { r.AddressType = addressType } } // Balance gets a filecoin wallet's balance. -func (w *Wallet) Balance(ctx context.Context, address string) (*proto.BalanceResponse, error) { - return w.client.Balance(ctx, &proto.BalanceRequest{Address: address}) +func (w *Wallet) Balance(ctx context.Context, address string) (*userPb.BalanceResponse, error) { + return w.client.Balance(ctx, &userPb.BalanceRequest{Address: address}) } -// NewAddress created a new wallet address managed by the storage profile. -func (w *Wallet) NewAddress(ctx context.Context, name string, options ...NewAddressOption) (*proto.NewAddressResponse, error) { - r := &proto.NewAddressRequest{Name: name} +// NewAddress creates a new wallet address managed by the user. +func (w *Wallet) NewAddress(ctx context.Context, name string, options ...NewAddressOption) (*userPb.NewAddressResponse, error) { + r := &userPb.NewAddressRequest{Name: name} for _, opt := range options { opt(r) } return w.client.NewAddress(ctx, r) } -// Addresses returns a list of addresses managed by the storage profile. -func (w *Wallet) Addresses(ctx context.Context) (*proto.AddressesResponse, error) { - return w.client.Addresses(ctx, &proto.AddressesRequest{}) +// Addresses returns a list of addresses managed by the user. +func (w *Wallet) Addresses(ctx context.Context) (*userPb.AddressesResponse, error) { + return w.client.Addresses(ctx, &userPb.AddressesRequest{}) } // SendFil sends fil from a managed address to any another address, returns immediately but funds are sent asynchronously. -func (w *Wallet) SendFil(ctx context.Context, from string, to string, amount *big.Int) (*proto.SendFilResponse, error) { - req := &proto.SendFilRequest{ +func (w *Wallet) SendFil(ctx context.Context, from string, to string, amount *big.Int) (*userPb.SendFilResponse, error) { + req := &userPb.SendFilRequest{ From: from, To: to, Amount: amount.String(), @@ -58,14 +58,14 @@ func (w *Wallet) SendFil(ctx context.Context, from string, to string, amount *bi return w.client.SendFil(ctx, req) } -// SignMessage signs a message with a stprage profile wallet address. -func (w *Wallet) SignMessage(ctx context.Context, address string, message []byte) (*proto.SignMessageResponse, error) { - r := &proto.SignMessageRequest{Address: address, Message: message} +// SignMessage signs a message with a user wallet address. +func (w *Wallet) SignMessage(ctx context.Context, address string, message []byte) (*userPb.SignMessageResponse, error) { + r := &userPb.SignMessageRequest{Address: address, Message: message} return w.client.SignMessage(ctx, r) } // VerifyMessage verifies a message signature from a wallet address. -func (w *Wallet) VerifyMessage(ctx context.Context, address string, message, signature []byte) (*proto.VerifyMessageResponse, error) { - r := &proto.VerifyMessageRequest{Address: address, Message: message, Signature: signature} +func (w *Wallet) VerifyMessage(ctx context.Context, address string, message, signature []byte) (*userPb.VerifyMessageResponse, error) { + r := &userPb.VerifyMessageRequest{Address: address, Message: message, Signature: signature} return w.client.VerifyMessage(ctx, r) } diff --git a/api/gen/powergate/admin/v1/admin.pb.go b/api/gen/powergate/admin/v1/admin.pb.go new file mode 100644 index 000000000..dd25df694 --- /dev/null +++ b/api/gen/powergate/admin/v1/admin.pb.go @@ -0,0 +1,1623 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.13.0 +// source: powergate/admin/v1/admin.proto + +package adminPb + +import ( + proto "github.com/golang/protobuf/proto" + v1 "github.com/textileio/powergate/api/gen/powergate/user/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// Wallet +type NewAddressRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AddressType string `protobuf:"bytes,1,opt,name=address_type,json=addressType,proto3" json:"address_type,omitempty"` +} + +func (x *NewAddressRequest) Reset() { + *x = NewAddressRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NewAddressRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NewAddressRequest) ProtoMessage() {} + +func (x *NewAddressRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_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 NewAddressRequest.ProtoReflect.Descriptor instead. +func (*NewAddressRequest) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{0} +} + +func (x *NewAddressRequest) GetAddressType() string { + if x != nil { + return x.AddressType + } + return "" +} + +type NewAddressResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *NewAddressResponse) Reset() { + *x = NewAddressResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NewAddressResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NewAddressResponse) ProtoMessage() {} + +func (x *NewAddressResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_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 NewAddressResponse.ProtoReflect.Descriptor instead. +func (*NewAddressResponse) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{1} +} + +func (x *NewAddressResponse) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +type AddressesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *AddressesRequest) Reset() { + *x = AddressesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddressesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddressesRequest) ProtoMessage() {} + +func (x *AddressesRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_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 AddressesRequest.ProtoReflect.Descriptor instead. +func (*AddressesRequest) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{2} +} + +type AddressesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` +} + +func (x *AddressesResponse) Reset() { + *x = AddressesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddressesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddressesResponse) ProtoMessage() {} + +func (x *AddressesResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_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 AddressesResponse.ProtoReflect.Descriptor instead. +func (*AddressesResponse) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{3} +} + +func (x *AddressesResponse) GetAddresses() []string { + if x != nil { + return x.Addresses + } + return nil +} + +type SendFilRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *SendFilRequest) Reset() { + *x = SendFilRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendFilRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendFilRequest) ProtoMessage() {} + +func (x *SendFilRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SendFilRequest.ProtoReflect.Descriptor instead. +func (*SendFilRequest) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{4} +} + +func (x *SendFilRequest) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *SendFilRequest) GetTo() string { + if x != nil { + return x.To + } + return "" +} + +func (x *SendFilRequest) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +type SendFilResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *SendFilResponse) Reset() { + *x = SendFilResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendFilResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendFilResponse) ProtoMessage() {} + +func (x *SendFilResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SendFilResponse.ProtoReflect.Descriptor instead. +func (*SendFilResponse) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{5} +} + +type User struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *User) Reset() { + *x = User{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *User) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*User) ProtoMessage() {} + +func (x *User) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use User.ProtoReflect.Descriptor instead. +func (*User) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{6} +} + +func (x *User) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *User) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +type CreateUserRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CreateUserRequest) Reset() { + *x = CreateUserRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUserRequest) ProtoMessage() {} + +func (x *CreateUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead. +func (*CreateUserRequest) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{7} +} + +type CreateUserResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *CreateUserResponse) Reset() { + *x = CreateUserResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUserResponse) ProtoMessage() {} + +func (x *CreateUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead. +func (*CreateUserResponse) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{8} +} + +func (x *CreateUserResponse) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +type UsersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UsersRequest) Reset() { + *x = UsersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UsersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UsersRequest) ProtoMessage() {} + +func (x *UsersRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UsersRequest.ProtoReflect.Descriptor instead. +func (*UsersRequest) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{9} +} + +type UsersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` +} + +func (x *UsersResponse) Reset() { + *x = UsersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UsersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UsersResponse) ProtoMessage() {} + +func (x *UsersResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UsersResponse.ProtoReflect.Descriptor instead. +func (*UsersResponse) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{10} +} + +func (x *UsersResponse) GetUsers() []*User { + if x != nil { + return x.Users + } + return nil +} + +type QueuedStorageJobsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Cids []string `protobuf:"bytes,2,rep,name=cids,proto3" json:"cids,omitempty"` +} + +func (x *QueuedStorageJobsRequest) Reset() { + *x = QueuedStorageJobsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueuedStorageJobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueuedStorageJobsRequest) ProtoMessage() {} + +func (x *QueuedStorageJobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QueuedStorageJobsRequest.ProtoReflect.Descriptor instead. +func (*QueuedStorageJobsRequest) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{11} +} + +func (x *QueuedStorageJobsRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *QueuedStorageJobsRequest) GetCids() []string { + if x != nil { + return x.Cids + } + return nil +} + +type QueuedStorageJobsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageJobs []*v1.StorageJob `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` +} + +func (x *QueuedStorageJobsResponse) Reset() { + *x = QueuedStorageJobsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueuedStorageJobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueuedStorageJobsResponse) ProtoMessage() {} + +func (x *QueuedStorageJobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QueuedStorageJobsResponse.ProtoReflect.Descriptor instead. +func (*QueuedStorageJobsResponse) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{12} +} + +func (x *QueuedStorageJobsResponse) GetStorageJobs() []*v1.StorageJob { + if x != nil { + return x.StorageJobs + } + return nil +} + +type ExecutingStorageJobsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Cids []string `protobuf:"bytes,2,rep,name=cids,proto3" json:"cids,omitempty"` +} + +func (x *ExecutingStorageJobsRequest) Reset() { + *x = ExecutingStorageJobsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutingStorageJobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutingStorageJobsRequest) ProtoMessage() {} + +func (x *ExecutingStorageJobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutingStorageJobsRequest.ProtoReflect.Descriptor instead. +func (*ExecutingStorageJobsRequest) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{13} +} + +func (x *ExecutingStorageJobsRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *ExecutingStorageJobsRequest) GetCids() []string { + if x != nil { + return x.Cids + } + return nil +} + +type ExecutingStorageJobsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageJobs []*v1.StorageJob `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` +} + +func (x *ExecutingStorageJobsResponse) Reset() { + *x = ExecutingStorageJobsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutingStorageJobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutingStorageJobsResponse) ProtoMessage() {} + +func (x *ExecutingStorageJobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutingStorageJobsResponse.ProtoReflect.Descriptor instead. +func (*ExecutingStorageJobsResponse) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{14} +} + +func (x *ExecutingStorageJobsResponse) GetStorageJobs() []*v1.StorageJob { + if x != nil { + return x.StorageJobs + } + return nil +} + +type LatestFinalStorageJobsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Cids []string `protobuf:"bytes,2,rep,name=cids,proto3" json:"cids,omitempty"` +} + +func (x *LatestFinalStorageJobsRequest) Reset() { + *x = LatestFinalStorageJobsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LatestFinalStorageJobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LatestFinalStorageJobsRequest) ProtoMessage() {} + +func (x *LatestFinalStorageJobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LatestFinalStorageJobsRequest.ProtoReflect.Descriptor instead. +func (*LatestFinalStorageJobsRequest) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{15} +} + +func (x *LatestFinalStorageJobsRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *LatestFinalStorageJobsRequest) GetCids() []string { + if x != nil { + return x.Cids + } + return nil +} + +type LatestFinalStorageJobsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageJobs []*v1.StorageJob `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` +} + +func (x *LatestFinalStorageJobsResponse) Reset() { + *x = LatestFinalStorageJobsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LatestFinalStorageJobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LatestFinalStorageJobsResponse) ProtoMessage() {} + +func (x *LatestFinalStorageJobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LatestFinalStorageJobsResponse.ProtoReflect.Descriptor instead. +func (*LatestFinalStorageJobsResponse) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{16} +} + +func (x *LatestFinalStorageJobsResponse) GetStorageJobs() []*v1.StorageJob { + if x != nil { + return x.StorageJobs + } + return nil +} + +type LatestSuccessfulStorageJobsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Cids []string `protobuf:"bytes,2,rep,name=cids,proto3" json:"cids,omitempty"` +} + +func (x *LatestSuccessfulStorageJobsRequest) Reset() { + *x = LatestSuccessfulStorageJobsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LatestSuccessfulStorageJobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LatestSuccessfulStorageJobsRequest) ProtoMessage() {} + +func (x *LatestSuccessfulStorageJobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LatestSuccessfulStorageJobsRequest.ProtoReflect.Descriptor instead. +func (*LatestSuccessfulStorageJobsRequest) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{17} +} + +func (x *LatestSuccessfulStorageJobsRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *LatestSuccessfulStorageJobsRequest) GetCids() []string { + if x != nil { + return x.Cids + } + return nil +} + +type LatestSuccessfulStorageJobsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageJobs []*v1.StorageJob `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` +} + +func (x *LatestSuccessfulStorageJobsResponse) Reset() { + *x = LatestSuccessfulStorageJobsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LatestSuccessfulStorageJobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LatestSuccessfulStorageJobsResponse) ProtoMessage() {} + +func (x *LatestSuccessfulStorageJobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LatestSuccessfulStorageJobsResponse.ProtoReflect.Descriptor instead. +func (*LatestSuccessfulStorageJobsResponse) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{18} +} + +func (x *LatestSuccessfulStorageJobsResponse) GetStorageJobs() []*v1.StorageJob { + if x != nil { + return x.StorageJobs + } + return nil +} + +type StorageJobsSummaryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Cids []string `protobuf:"bytes,2,rep,name=cids,proto3" json:"cids,omitempty"` +} + +func (x *StorageJobsSummaryRequest) Reset() { + *x = StorageJobsSummaryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageJobsSummaryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageJobsSummaryRequest) ProtoMessage() {} + +func (x *StorageJobsSummaryRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StorageJobsSummaryRequest.ProtoReflect.Descriptor instead. +func (*StorageJobsSummaryRequest) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{19} +} + +func (x *StorageJobsSummaryRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *StorageJobsSummaryRequest) GetCids() []string { + if x != nil { + return x.Cids + } + return nil +} + +type StorageJobsSummaryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobCounts *v1.JobCounts `protobuf:"bytes,1,opt,name=job_counts,json=jobCounts,proto3" json:"job_counts,omitempty"` + QueuedStorageJobs []*v1.StorageJob `protobuf:"bytes,2,rep,name=queued_storage_jobs,json=queuedStorageJobs,proto3" json:"queued_storage_jobs,omitempty"` + ExecutingStorageJobs []*v1.StorageJob `protobuf:"bytes,3,rep,name=executing_storage_jobs,json=executingStorageJobs,proto3" json:"executing_storage_jobs,omitempty"` + LatestFinalStorageJobs []*v1.StorageJob `protobuf:"bytes,4,rep,name=latest_final_storage_jobs,json=latestFinalStorageJobs,proto3" json:"latest_final_storage_jobs,omitempty"` + LatestSuccessfulStorageJobs []*v1.StorageJob `protobuf:"bytes,5,rep,name=latest_successful_storage_jobs,json=latestSuccessfulStorageJobs,proto3" json:"latest_successful_storage_jobs,omitempty"` +} + +func (x *StorageJobsSummaryResponse) Reset() { + *x = StorageJobsSummaryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageJobsSummaryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageJobsSummaryResponse) ProtoMessage() {} + +func (x *StorageJobsSummaryResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_admin_v1_admin_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StorageJobsSummaryResponse.ProtoReflect.Descriptor instead. +func (*StorageJobsSummaryResponse) Descriptor() ([]byte, []int) { + return file_powergate_admin_v1_admin_proto_rawDescGZIP(), []int{20} +} + +func (x *StorageJobsSummaryResponse) GetJobCounts() *v1.JobCounts { + if x != nil { + return x.JobCounts + } + return nil +} + +func (x *StorageJobsSummaryResponse) GetQueuedStorageJobs() []*v1.StorageJob { + if x != nil { + return x.QueuedStorageJobs + } + return nil +} + +func (x *StorageJobsSummaryResponse) GetExecutingStorageJobs() []*v1.StorageJob { + if x != nil { + return x.ExecutingStorageJobs + } + return nil +} + +func (x *StorageJobsSummaryResponse) GetLatestFinalStorageJobs() []*v1.StorageJob { + if x != nil { + return x.LatestFinalStorageJobs + } + return nil +} + +func (x *StorageJobsSummaryResponse) GetLatestSuccessfulStorageJobs() []*v1.StorageJob { + if x != nil { + return x.LatestSuccessfulStorageJobs + } + return nil +} + +var File_powergate_admin_v1_admin_proto protoreflect.FileDescriptor + +var file_powergate_admin_v1_admin_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2f, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x12, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2f, + 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x36, 0x0a, 0x11, 0x4e, 0x65, 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x22, 0x2e, 0x0a, 0x12, 0x4e, 0x65, + 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x12, 0x0a, 0x10, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x31, + 0x0a, 0x11, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, + 0x73, 0x22, 0x4c, 0x0a, 0x0e, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, + 0x11, 0x0a, 0x0f, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x2c, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x22, 0x13, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x42, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x04, 0x75, + 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x77, 0x65, + 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x0e, 0x0a, 0x0c, 0x55, 0x73, 0x65, + 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3f, 0x0a, 0x0d, 0x55, 0x73, 0x65, + 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x77, 0x65, + 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x47, 0x0a, 0x18, 0x51, 0x75, + 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, + 0x69, 0x64, 0x73, 0x22, 0x5d, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, + 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, + 0x62, 0x73, 0x22, 0x4a, 0x0a, 0x1b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, + 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0x60, + 0x0a, 0x1c, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, + 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x4a, 0x6f, 0x62, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, + 0x22, 0x4c, 0x0a, 0x1d, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, + 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0x62, + 0x0a, 0x1e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, + 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, + 0x62, 0x73, 0x22, 0x51, 0x0a, 0x22, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0x67, 0x0a, 0x23, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, + 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0c, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, + 0x62, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x22, 0x48, + 0x0a, 0x19, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, + 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0xbb, 0x03, 0x0a, 0x1a, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x6f, + 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x4a, 0x6f, 0x62, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x73, 0x12, 0x4d, 0x0a, 0x13, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, + 0x52, 0x11, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, + 0x6f, 0x62, 0x73, 0x12, 0x53, 0x0a, 0x16, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, + 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, + 0x6f, 0x62, 0x52, 0x14, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x58, 0x0a, 0x19, 0x6c, 0x61, 0x74, 0x65, + 0x73, 0x74, 0x5f, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, + 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x16, 0x6c, 0x61, 0x74, 0x65, + 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, + 0x62, 0x73, 0x12, 0x62, 0x0a, 0x1e, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x75, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, + 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x1b, 0x6c, 0x61, 0x74, 0x65, 0x73, + 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x32, 0xcd, 0x08, 0x0a, 0x0c, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5d, 0x0a, 0x0a, 0x4e, 0x65, 0x77, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, + 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, + 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x6f, 0x77, 0x65, + 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x54, 0x0a, 0x07, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x12, 0x22, 0x2e, + 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, + 0x74, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, + 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x05, 0x55, 0x73, 0x65, 0x72, 0x73, + 0x12, 0x20, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x72, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x75, 0x65, + 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x2c, 0x2e, 0x70, + 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, + 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7b, 0x0a, 0x14, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, + 0x6f, 0x62, 0x73, 0x12, 0x2f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x81, 0x01, 0x0a, 0x16, 0x4c, 0x61, 0x74, + 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, + 0x6f, 0x62, 0x73, 0x12, 0x31, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, + 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, + 0x74, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x74, 0x65, + 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, + 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x90, 0x01, 0x0a, + 0x1b, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, + 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x36, 0x2e, 0x70, + 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, + 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x75, 0x0a, 0x12, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, + 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x2d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, + 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x43, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x69, 0x6c, 0x65, 0x69, 0x6f, 0x2f, 0x70, + 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_powergate_admin_v1_admin_proto_rawDescOnce sync.Once + file_powergate_admin_v1_admin_proto_rawDescData = file_powergate_admin_v1_admin_proto_rawDesc +) + +func file_powergate_admin_v1_admin_proto_rawDescGZIP() []byte { + file_powergate_admin_v1_admin_proto_rawDescOnce.Do(func() { + file_powergate_admin_v1_admin_proto_rawDescData = protoimpl.X.CompressGZIP(file_powergate_admin_v1_admin_proto_rawDescData) + }) + return file_powergate_admin_v1_admin_proto_rawDescData +} + +var file_powergate_admin_v1_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 21) +var file_powergate_admin_v1_admin_proto_goTypes = []interface{}{ + (*NewAddressRequest)(nil), // 0: powergate.admin.v1.NewAddressRequest + (*NewAddressResponse)(nil), // 1: powergate.admin.v1.NewAddressResponse + (*AddressesRequest)(nil), // 2: powergate.admin.v1.AddressesRequest + (*AddressesResponse)(nil), // 3: powergate.admin.v1.AddressesResponse + (*SendFilRequest)(nil), // 4: powergate.admin.v1.SendFilRequest + (*SendFilResponse)(nil), // 5: powergate.admin.v1.SendFilResponse + (*User)(nil), // 6: powergate.admin.v1.User + (*CreateUserRequest)(nil), // 7: powergate.admin.v1.CreateUserRequest + (*CreateUserResponse)(nil), // 8: powergate.admin.v1.CreateUserResponse + (*UsersRequest)(nil), // 9: powergate.admin.v1.UsersRequest + (*UsersResponse)(nil), // 10: powergate.admin.v1.UsersResponse + (*QueuedStorageJobsRequest)(nil), // 11: powergate.admin.v1.QueuedStorageJobsRequest + (*QueuedStorageJobsResponse)(nil), // 12: powergate.admin.v1.QueuedStorageJobsResponse + (*ExecutingStorageJobsRequest)(nil), // 13: powergate.admin.v1.ExecutingStorageJobsRequest + (*ExecutingStorageJobsResponse)(nil), // 14: powergate.admin.v1.ExecutingStorageJobsResponse + (*LatestFinalStorageJobsRequest)(nil), // 15: powergate.admin.v1.LatestFinalStorageJobsRequest + (*LatestFinalStorageJobsResponse)(nil), // 16: powergate.admin.v1.LatestFinalStorageJobsResponse + (*LatestSuccessfulStorageJobsRequest)(nil), // 17: powergate.admin.v1.LatestSuccessfulStorageJobsRequest + (*LatestSuccessfulStorageJobsResponse)(nil), // 18: powergate.admin.v1.LatestSuccessfulStorageJobsResponse + (*StorageJobsSummaryRequest)(nil), // 19: powergate.admin.v1.StorageJobsSummaryRequest + (*StorageJobsSummaryResponse)(nil), // 20: powergate.admin.v1.StorageJobsSummaryResponse + (*v1.StorageJob)(nil), // 21: powergate.user.v1.StorageJob + (*v1.JobCounts)(nil), // 22: powergate.user.v1.JobCounts +} +var file_powergate_admin_v1_admin_proto_depIdxs = []int32{ + 6, // 0: powergate.admin.v1.CreateUserResponse.user:type_name -> powergate.admin.v1.User + 6, // 1: powergate.admin.v1.UsersResponse.users:type_name -> powergate.admin.v1.User + 21, // 2: powergate.admin.v1.QueuedStorageJobsResponse.storage_jobs:type_name -> powergate.user.v1.StorageJob + 21, // 3: powergate.admin.v1.ExecutingStorageJobsResponse.storage_jobs:type_name -> powergate.user.v1.StorageJob + 21, // 4: powergate.admin.v1.LatestFinalStorageJobsResponse.storage_jobs:type_name -> powergate.user.v1.StorageJob + 21, // 5: powergate.admin.v1.LatestSuccessfulStorageJobsResponse.storage_jobs:type_name -> powergate.user.v1.StorageJob + 22, // 6: powergate.admin.v1.StorageJobsSummaryResponse.job_counts:type_name -> powergate.user.v1.JobCounts + 21, // 7: powergate.admin.v1.StorageJobsSummaryResponse.queued_storage_jobs:type_name -> powergate.user.v1.StorageJob + 21, // 8: powergate.admin.v1.StorageJobsSummaryResponse.executing_storage_jobs:type_name -> powergate.user.v1.StorageJob + 21, // 9: powergate.admin.v1.StorageJobsSummaryResponse.latest_final_storage_jobs:type_name -> powergate.user.v1.StorageJob + 21, // 10: powergate.admin.v1.StorageJobsSummaryResponse.latest_successful_storage_jobs:type_name -> powergate.user.v1.StorageJob + 0, // 11: powergate.admin.v1.AdminService.NewAddress:input_type -> powergate.admin.v1.NewAddressRequest + 2, // 12: powergate.admin.v1.AdminService.Addresses:input_type -> powergate.admin.v1.AddressesRequest + 4, // 13: powergate.admin.v1.AdminService.SendFil:input_type -> powergate.admin.v1.SendFilRequest + 7, // 14: powergate.admin.v1.AdminService.CreateUser:input_type -> powergate.admin.v1.CreateUserRequest + 9, // 15: powergate.admin.v1.AdminService.Users:input_type -> powergate.admin.v1.UsersRequest + 11, // 16: powergate.admin.v1.AdminService.QueuedStorageJobs:input_type -> powergate.admin.v1.QueuedStorageJobsRequest + 13, // 17: powergate.admin.v1.AdminService.ExecutingStorageJobs:input_type -> powergate.admin.v1.ExecutingStorageJobsRequest + 15, // 18: powergate.admin.v1.AdminService.LatestFinalStorageJobs:input_type -> powergate.admin.v1.LatestFinalStorageJobsRequest + 17, // 19: powergate.admin.v1.AdminService.LatestSuccessfulStorageJobs:input_type -> powergate.admin.v1.LatestSuccessfulStorageJobsRequest + 19, // 20: powergate.admin.v1.AdminService.StorageJobsSummary:input_type -> powergate.admin.v1.StorageJobsSummaryRequest + 1, // 21: powergate.admin.v1.AdminService.NewAddress:output_type -> powergate.admin.v1.NewAddressResponse + 3, // 22: powergate.admin.v1.AdminService.Addresses:output_type -> powergate.admin.v1.AddressesResponse + 5, // 23: powergate.admin.v1.AdminService.SendFil:output_type -> powergate.admin.v1.SendFilResponse + 8, // 24: powergate.admin.v1.AdminService.CreateUser:output_type -> powergate.admin.v1.CreateUserResponse + 10, // 25: powergate.admin.v1.AdminService.Users:output_type -> powergate.admin.v1.UsersResponse + 12, // 26: powergate.admin.v1.AdminService.QueuedStorageJobs:output_type -> powergate.admin.v1.QueuedStorageJobsResponse + 14, // 27: powergate.admin.v1.AdminService.ExecutingStorageJobs:output_type -> powergate.admin.v1.ExecutingStorageJobsResponse + 16, // 28: powergate.admin.v1.AdminService.LatestFinalStorageJobs:output_type -> powergate.admin.v1.LatestFinalStorageJobsResponse + 18, // 29: powergate.admin.v1.AdminService.LatestSuccessfulStorageJobs:output_type -> powergate.admin.v1.LatestSuccessfulStorageJobsResponse + 20, // 30: powergate.admin.v1.AdminService.StorageJobsSummary:output_type -> powergate.admin.v1.StorageJobsSummaryResponse + 21, // [21:31] is the sub-list for method output_type + 11, // [11:21] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_powergate_admin_v1_admin_proto_init() } +func file_powergate_admin_v1_admin_proto_init() { + if File_powergate_admin_v1_admin_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_powergate_admin_v1_admin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NewAddressRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NewAddressResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddressesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddressesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendFilRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendFilResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*User); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateUserResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UsersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UsersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueuedStorageJobsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueuedStorageJobsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutingStorageJobsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutingStorageJobsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LatestFinalStorageJobsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LatestFinalStorageJobsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LatestSuccessfulStorageJobsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LatestSuccessfulStorageJobsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageJobsSummaryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_admin_v1_admin_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageJobsSummaryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_powergate_admin_v1_admin_proto_rawDesc, + NumEnums: 0, + NumMessages: 21, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_powergate_admin_v1_admin_proto_goTypes, + DependencyIndexes: file_powergate_admin_v1_admin_proto_depIdxs, + MessageInfos: file_powergate_admin_v1_admin_proto_msgTypes, + }.Build() + File_powergate_admin_v1_admin_proto = out.File + file_powergate_admin_v1_admin_proto_rawDesc = nil + file_powergate_admin_v1_admin_proto_goTypes = nil + file_powergate_admin_v1_admin_proto_depIdxs = nil +} diff --git a/api/gen/powergate/admin/v1/admin_grpc.pb.go b/api/gen/powergate/admin/v1/admin_grpc.pb.go new file mode 100644 index 000000000..b6415c7dc --- /dev/null +++ b/api/gen/powergate/admin/v1/admin_grpc.pb.go @@ -0,0 +1,427 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package adminPb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion7 + +// AdminServiceClient is the client API for AdminService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type AdminServiceClient interface { + // Wallet + NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) + Addresses(ctx context.Context, in *AddressesRequest, opts ...grpc.CallOption) (*AddressesResponse, error) + SendFil(ctx context.Context, in *SendFilRequest, opts ...grpc.CallOption) (*SendFilResponse, error) + // Users + CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) + Users(ctx context.Context, in *UsersRequest, opts ...grpc.CallOption) (*UsersResponse, error) + // Jobs + QueuedStorageJobs(ctx context.Context, in *QueuedStorageJobsRequest, opts ...grpc.CallOption) (*QueuedStorageJobsResponse, error) + ExecutingStorageJobs(ctx context.Context, in *ExecutingStorageJobsRequest, opts ...grpc.CallOption) (*ExecutingStorageJobsResponse, error) + LatestFinalStorageJobs(ctx context.Context, in *LatestFinalStorageJobsRequest, opts ...grpc.CallOption) (*LatestFinalStorageJobsResponse, error) + LatestSuccessfulStorageJobs(ctx context.Context, in *LatestSuccessfulStorageJobsRequest, opts ...grpc.CallOption) (*LatestSuccessfulStorageJobsResponse, error) + StorageJobsSummary(ctx context.Context, in *StorageJobsSummaryRequest, opts ...grpc.CallOption) (*StorageJobsSummaryResponse, error) +} + +type adminServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient { + return &adminServiceClient{cc} +} + +func (c *adminServiceClient) NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) { + out := new(NewAddressResponse) + err := c.cc.Invoke(ctx, "/powergate.admin.v1.AdminService/NewAddress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) Addresses(ctx context.Context, in *AddressesRequest, opts ...grpc.CallOption) (*AddressesResponse, error) { + out := new(AddressesResponse) + err := c.cc.Invoke(ctx, "/powergate.admin.v1.AdminService/Addresses", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) SendFil(ctx context.Context, in *SendFilRequest, opts ...grpc.CallOption) (*SendFilResponse, error) { + out := new(SendFilResponse) + err := c.cc.Invoke(ctx, "/powergate.admin.v1.AdminService/SendFil", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) { + out := new(CreateUserResponse) + err := c.cc.Invoke(ctx, "/powergate.admin.v1.AdminService/CreateUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) Users(ctx context.Context, in *UsersRequest, opts ...grpc.CallOption) (*UsersResponse, error) { + out := new(UsersResponse) + err := c.cc.Invoke(ctx, "/powergate.admin.v1.AdminService/Users", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) QueuedStorageJobs(ctx context.Context, in *QueuedStorageJobsRequest, opts ...grpc.CallOption) (*QueuedStorageJobsResponse, error) { + out := new(QueuedStorageJobsResponse) + err := c.cc.Invoke(ctx, "/powergate.admin.v1.AdminService/QueuedStorageJobs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ExecutingStorageJobs(ctx context.Context, in *ExecutingStorageJobsRequest, opts ...grpc.CallOption) (*ExecutingStorageJobsResponse, error) { + out := new(ExecutingStorageJobsResponse) + err := c.cc.Invoke(ctx, "/powergate.admin.v1.AdminService/ExecutingStorageJobs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) LatestFinalStorageJobs(ctx context.Context, in *LatestFinalStorageJobsRequest, opts ...grpc.CallOption) (*LatestFinalStorageJobsResponse, error) { + out := new(LatestFinalStorageJobsResponse) + err := c.cc.Invoke(ctx, "/powergate.admin.v1.AdminService/LatestFinalStorageJobs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) LatestSuccessfulStorageJobs(ctx context.Context, in *LatestSuccessfulStorageJobsRequest, opts ...grpc.CallOption) (*LatestSuccessfulStorageJobsResponse, error) { + out := new(LatestSuccessfulStorageJobsResponse) + err := c.cc.Invoke(ctx, "/powergate.admin.v1.AdminService/LatestSuccessfulStorageJobs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) StorageJobsSummary(ctx context.Context, in *StorageJobsSummaryRequest, opts ...grpc.CallOption) (*StorageJobsSummaryResponse, error) { + out := new(StorageJobsSummaryResponse) + err := c.cc.Invoke(ctx, "/powergate.admin.v1.AdminService/StorageJobsSummary", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AdminServiceServer is the server API for AdminService service. +// All implementations must embed UnimplementedAdminServiceServer +// for forward compatibility +type AdminServiceServer interface { + // Wallet + NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error) + Addresses(context.Context, *AddressesRequest) (*AddressesResponse, error) + SendFil(context.Context, *SendFilRequest) (*SendFilResponse, error) + // Users + CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) + Users(context.Context, *UsersRequest) (*UsersResponse, error) + // Jobs + QueuedStorageJobs(context.Context, *QueuedStorageJobsRequest) (*QueuedStorageJobsResponse, error) + ExecutingStorageJobs(context.Context, *ExecutingStorageJobsRequest) (*ExecutingStorageJobsResponse, error) + LatestFinalStorageJobs(context.Context, *LatestFinalStorageJobsRequest) (*LatestFinalStorageJobsResponse, error) + LatestSuccessfulStorageJobs(context.Context, *LatestSuccessfulStorageJobsRequest) (*LatestSuccessfulStorageJobsResponse, error) + StorageJobsSummary(context.Context, *StorageJobsSummaryRequest) (*StorageJobsSummaryResponse, error) + mustEmbedUnimplementedAdminServiceServer() +} + +// UnimplementedAdminServiceServer must be embedded to have forward compatible implementations. +type UnimplementedAdminServiceServer struct { +} + +func (UnimplementedAdminServiceServer) NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NewAddress not implemented") +} +func (UnimplementedAdminServiceServer) Addresses(context.Context, *AddressesRequest) (*AddressesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Addresses not implemented") +} +func (UnimplementedAdminServiceServer) SendFil(context.Context, *SendFilRequest) (*SendFilResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendFil not implemented") +} +func (UnimplementedAdminServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateUser not implemented") +} +func (UnimplementedAdminServiceServer) Users(context.Context, *UsersRequest) (*UsersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Users not implemented") +} +func (UnimplementedAdminServiceServer) QueuedStorageJobs(context.Context, *QueuedStorageJobsRequest) (*QueuedStorageJobsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueuedStorageJobs not implemented") +} +func (UnimplementedAdminServiceServer) ExecutingStorageJobs(context.Context, *ExecutingStorageJobsRequest) (*ExecutingStorageJobsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ExecutingStorageJobs not implemented") +} +func (UnimplementedAdminServiceServer) LatestFinalStorageJobs(context.Context, *LatestFinalStorageJobsRequest) (*LatestFinalStorageJobsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LatestFinalStorageJobs not implemented") +} +func (UnimplementedAdminServiceServer) LatestSuccessfulStorageJobs(context.Context, *LatestSuccessfulStorageJobsRequest) (*LatestSuccessfulStorageJobsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LatestSuccessfulStorageJobs not implemented") +} +func (UnimplementedAdminServiceServer) StorageJobsSummary(context.Context, *StorageJobsSummaryRequest) (*StorageJobsSummaryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StorageJobsSummary not implemented") +} +func (UnimplementedAdminServiceServer) mustEmbedUnimplementedAdminServiceServer() {} + +// UnsafeAdminServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AdminServiceServer will +// result in compilation errors. +type UnsafeAdminServiceServer interface { + mustEmbedUnimplementedAdminServiceServer() +} + +func RegisterAdminServiceServer(s grpc.ServiceRegistrar, srv AdminServiceServer) { + s.RegisterService(&_AdminService_serviceDesc, srv) +} + +func _AdminService_NewAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NewAddressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).NewAddress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.admin.v1.AdminService/NewAddress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).NewAddress(ctx, req.(*NewAddressRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_Addresses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddressesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).Addresses(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.admin.v1.AdminService/Addresses", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).Addresses(ctx, req.(*AddressesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_SendFil_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SendFilRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).SendFil(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.admin.v1.AdminService/SendFil", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).SendFil(ctx, req.(*SendFilRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.admin.v1.AdminService/CreateUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateUser(ctx, req.(*CreateUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_Users_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UsersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).Users(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.admin.v1.AdminService/Users", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).Users(ctx, req.(*UsersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_QueuedStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueuedStorageJobsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).QueuedStorageJobs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.admin.v1.AdminService/QueuedStorageJobs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).QueuedStorageJobs(ctx, req.(*QueuedStorageJobsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ExecutingStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExecutingStorageJobsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ExecutingStorageJobs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.admin.v1.AdminService/ExecutingStorageJobs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ExecutingStorageJobs(ctx, req.(*ExecutingStorageJobsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_LatestFinalStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LatestFinalStorageJobsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).LatestFinalStorageJobs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.admin.v1.AdminService/LatestFinalStorageJobs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).LatestFinalStorageJobs(ctx, req.(*LatestFinalStorageJobsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_LatestSuccessfulStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LatestSuccessfulStorageJobsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).LatestSuccessfulStorageJobs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.admin.v1.AdminService/LatestSuccessfulStorageJobs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).LatestSuccessfulStorageJobs(ctx, req.(*LatestSuccessfulStorageJobsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_StorageJobsSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StorageJobsSummaryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).StorageJobsSummary(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.admin.v1.AdminService/StorageJobsSummary", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).StorageJobsSummary(ctx, req.(*StorageJobsSummaryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _AdminService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "powergate.admin.v1.AdminService", + HandlerType: (*AdminServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "NewAddress", + Handler: _AdminService_NewAddress_Handler, + }, + { + MethodName: "Addresses", + Handler: _AdminService_Addresses_Handler, + }, + { + MethodName: "SendFil", + Handler: _AdminService_SendFil_Handler, + }, + { + MethodName: "CreateUser", + Handler: _AdminService_CreateUser_Handler, + }, + { + MethodName: "Users", + Handler: _AdminService_Users_Handler, + }, + { + MethodName: "QueuedStorageJobs", + Handler: _AdminService_QueuedStorageJobs_Handler, + }, + { + MethodName: "ExecutingStorageJobs", + Handler: _AdminService_ExecutingStorageJobs_Handler, + }, + { + MethodName: "LatestFinalStorageJobs", + Handler: _AdminService_LatestFinalStorageJobs_Handler, + }, + { + MethodName: "LatestSuccessfulStorageJobs", + Handler: _AdminService_LatestSuccessfulStorageJobs_Handler, + }, + { + MethodName: "StorageJobsSummary", + Handler: _AdminService_StorageJobsSummary_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "powergate/admin/v1/admin.proto", +} diff --git a/api/gen/powergate/user/v1/user.pb.go b/api/gen/powergate/user/v1/user.pb.go new file mode 100644 index 000000000..949388c85 --- /dev/null +++ b/api/gen/powergate/user/v1/user.pb.go @@ -0,0 +1,6653 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.13.0 +// source: powergate/user/v1/user.proto + +package userPb + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type JobStatus int32 + +const ( + JobStatus_JOB_STATUS_UNSPECIFIED JobStatus = 0 + JobStatus_JOB_STATUS_QUEUED JobStatus = 1 + JobStatus_JOB_STATUS_EXECUTING JobStatus = 2 + JobStatus_JOB_STATUS_FAILED JobStatus = 3 + JobStatus_JOB_STATUS_CANCELED JobStatus = 4 + JobStatus_JOB_STATUS_SUCCESS JobStatus = 5 +) + +// Enum value maps for JobStatus. +var ( + JobStatus_name = map[int32]string{ + 0: "JOB_STATUS_UNSPECIFIED", + 1: "JOB_STATUS_QUEUED", + 2: "JOB_STATUS_EXECUTING", + 3: "JOB_STATUS_FAILED", + 4: "JOB_STATUS_CANCELED", + 5: "JOB_STATUS_SUCCESS", + } + JobStatus_value = map[string]int32{ + "JOB_STATUS_UNSPECIFIED": 0, + "JOB_STATUS_QUEUED": 1, + "JOB_STATUS_EXECUTING": 2, + "JOB_STATUS_FAILED": 3, + "JOB_STATUS_CANCELED": 4, + "JOB_STATUS_SUCCESS": 5, + } +) + +func (x JobStatus) Enum() *JobStatus { + p := new(JobStatus) + *p = x + return p +} + +func (x JobStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (JobStatus) Descriptor() protoreflect.EnumDescriptor { + return file_powergate_user_v1_user_proto_enumTypes[0].Descriptor() +} + +func (JobStatus) Type() protoreflect.EnumType { + return &file_powergate_user_v1_user_proto_enumTypes[0] +} + +func (x JobStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use JobStatus.Descriptor instead. +func (JobStatus) EnumDescriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{0} +} + +type BuildInfoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *BuildInfoRequest) Reset() { + *x = BuildInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BuildInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuildInfoRequest) ProtoMessage() {} + +func (x *BuildInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_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 BuildInfoRequest.ProtoReflect.Descriptor instead. +func (*BuildInfoRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{0} +} + +type BuildInfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GitCommit string `protobuf:"bytes,1,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"` + GitBranch string `protobuf:"bytes,2,opt,name=git_branch,json=gitBranch,proto3" json:"git_branch,omitempty"` + GitState string `protobuf:"bytes,3,opt,name=git_state,json=gitState,proto3" json:"git_state,omitempty"` + GitSummary string `protobuf:"bytes,4,opt,name=git_summary,json=gitSummary,proto3" json:"git_summary,omitempty"` + BuildDate string `protobuf:"bytes,5,opt,name=build_date,json=buildDate,proto3" json:"build_date,omitempty"` + Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` +} + +func (x *BuildInfoResponse) Reset() { + *x = BuildInfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BuildInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuildInfoResponse) ProtoMessage() {} + +func (x *BuildInfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_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 BuildInfoResponse.ProtoReflect.Descriptor instead. +func (*BuildInfoResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{1} +} + +func (x *BuildInfoResponse) GetGitCommit() string { + if x != nil { + return x.GitCommit + } + return "" +} + +func (x *BuildInfoResponse) GetGitBranch() string { + if x != nil { + return x.GitBranch + } + return "" +} + +func (x *BuildInfoResponse) GetGitState() string { + if x != nil { + return x.GitState + } + return "" +} + +func (x *BuildInfoResponse) GetGitSummary() string { + if x != nil { + return x.GitSummary + } + return "" +} + +func (x *BuildInfoResponse) GetBuildDate() string { + if x != nil { + return x.BuildDate + } + return "" +} + +func (x *BuildInfoResponse) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +type UserIdentifierRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UserIdentifierRequest) Reset() { + *x = UserIdentifierRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserIdentifierRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserIdentifierRequest) ProtoMessage() {} + +func (x *UserIdentifierRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_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 UserIdentifierRequest.ProtoReflect.Descriptor instead. +func (*UserIdentifierRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{2} +} + +type UserIdentifierResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *UserIdentifierResponse) Reset() { + *x = UserIdentifierResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserIdentifierResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserIdentifierResponse) ProtoMessage() {} + +func (x *UserIdentifierResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_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 UserIdentifierResponse.ProtoReflect.Descriptor instead. +func (*UserIdentifierResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{3} +} + +func (x *UserIdentifierResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type DefaultStorageConfigRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *DefaultStorageConfigRequest) Reset() { + *x = DefaultStorageConfigRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DefaultStorageConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DefaultStorageConfigRequest) ProtoMessage() {} + +func (x *DefaultStorageConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DefaultStorageConfigRequest.ProtoReflect.Descriptor instead. +func (*DefaultStorageConfigRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{4} +} + +type DefaultStorageConfigResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DefaultStorageConfig *StorageConfig `protobuf:"bytes,1,opt,name=default_storage_config,json=defaultStorageConfig,proto3" json:"default_storage_config,omitempty"` +} + +func (x *DefaultStorageConfigResponse) Reset() { + *x = DefaultStorageConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DefaultStorageConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DefaultStorageConfigResponse) ProtoMessage() {} + +func (x *DefaultStorageConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DefaultStorageConfigResponse.ProtoReflect.Descriptor instead. +func (*DefaultStorageConfigResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{5} +} + +func (x *DefaultStorageConfigResponse) GetDefaultStorageConfig() *StorageConfig { + if x != nil { + return x.DefaultStorageConfig + } + return nil +} + +type SetDefaultStorageConfigRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Config *StorageConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` +} + +func (x *SetDefaultStorageConfigRequest) Reset() { + *x = SetDefaultStorageConfigRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetDefaultStorageConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetDefaultStorageConfigRequest) ProtoMessage() {} + +func (x *SetDefaultStorageConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetDefaultStorageConfigRequest.ProtoReflect.Descriptor instead. +func (*SetDefaultStorageConfigRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{6} +} + +func (x *SetDefaultStorageConfigRequest) GetConfig() *StorageConfig { + if x != nil { + return x.Config + } + return nil +} + +type SetDefaultStorageConfigResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *SetDefaultStorageConfigResponse) Reset() { + *x = SetDefaultStorageConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetDefaultStorageConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetDefaultStorageConfigResponse) ProtoMessage() {} + +func (x *SetDefaultStorageConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetDefaultStorageConfigResponse.ProtoReflect.Descriptor instead. +func (*SetDefaultStorageConfigResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{7} +} + +type StageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Chunk []byte `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"` +} + +func (x *StageRequest) Reset() { + *x = StageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StageRequest) ProtoMessage() {} + +func (x *StageRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StageRequest.ProtoReflect.Descriptor instead. +func (*StageRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{8} +} + +func (x *StageRequest) GetChunk() []byte { + if x != nil { + return x.Chunk + } + return nil +} + +type StageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` +} + +func (x *StageResponse) Reset() { + *x = StageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StageResponse) ProtoMessage() {} + +func (x *StageResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StageResponse.ProtoReflect.Descriptor instead. +func (*StageResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{9} +} + +func (x *StageResponse) GetCid() string { + if x != nil { + return x.Cid + } + return "" +} + +type ApplyStorageConfigRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + Config *StorageConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + HasConfig bool `protobuf:"varint,3,opt,name=has_config,json=hasConfig,proto3" json:"has_config,omitempty"` + OverrideConfig bool `protobuf:"varint,4,opt,name=override_config,json=overrideConfig,proto3" json:"override_config,omitempty"` + HasOverrideConfig bool `protobuf:"varint,5,opt,name=has_override_config,json=hasOverrideConfig,proto3" json:"has_override_config,omitempty"` +} + +func (x *ApplyStorageConfigRequest) Reset() { + *x = ApplyStorageConfigRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApplyStorageConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplyStorageConfigRequest) ProtoMessage() {} + +func (x *ApplyStorageConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApplyStorageConfigRequest.ProtoReflect.Descriptor instead. +func (*ApplyStorageConfigRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{10} +} + +func (x *ApplyStorageConfigRequest) GetCid() string { + if x != nil { + return x.Cid + } + return "" +} + +func (x *ApplyStorageConfigRequest) GetConfig() *StorageConfig { + if x != nil { + return x.Config + } + return nil +} + +func (x *ApplyStorageConfigRequest) GetHasConfig() bool { + if x != nil { + return x.HasConfig + } + return false +} + +func (x *ApplyStorageConfigRequest) GetOverrideConfig() bool { + if x != nil { + return x.OverrideConfig + } + return false +} + +func (x *ApplyStorageConfigRequest) GetHasOverrideConfig() bool { + if x != nil { + return x.HasOverrideConfig + } + return false +} + +type ApplyStorageConfigResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` +} + +func (x *ApplyStorageConfigResponse) Reset() { + *x = ApplyStorageConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApplyStorageConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplyStorageConfigResponse) ProtoMessage() {} + +func (x *ApplyStorageConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApplyStorageConfigResponse.ProtoReflect.Descriptor instead. +func (*ApplyStorageConfigResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{11} +} + +func (x *ApplyStorageConfigResponse) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +type ReplaceDataRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cid1 string `protobuf:"bytes,1,opt,name=cid1,proto3" json:"cid1,omitempty"` + Cid2 string `protobuf:"bytes,2,opt,name=cid2,proto3" json:"cid2,omitempty"` +} + +func (x *ReplaceDataRequest) Reset() { + *x = ReplaceDataRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReplaceDataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReplaceDataRequest) ProtoMessage() {} + +func (x *ReplaceDataRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReplaceDataRequest.ProtoReflect.Descriptor instead. +func (*ReplaceDataRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{12} +} + +func (x *ReplaceDataRequest) GetCid1() string { + if x != nil { + return x.Cid1 + } + return "" +} + +func (x *ReplaceDataRequest) GetCid2() string { + if x != nil { + return x.Cid2 + } + return "" +} + +type ReplaceDataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` +} + +func (x *ReplaceDataResponse) Reset() { + *x = ReplaceDataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReplaceDataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReplaceDataResponse) ProtoMessage() {} + +func (x *ReplaceDataResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReplaceDataResponse.ProtoReflect.Descriptor instead. +func (*ReplaceDataResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{13} +} + +func (x *ReplaceDataResponse) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +type GetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` +} + +func (x *GetRequest) Reset() { + *x = GetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRequest) ProtoMessage() {} + +func (x *GetRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetRequest.ProtoReflect.Descriptor instead. +func (*GetRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{14} +} + +func (x *GetRequest) GetCid() string { + if x != nil { + return x.Cid + } + return "" +} + +type GetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Chunk []byte `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"` +} + +func (x *GetResponse) Reset() { + *x = GetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetResponse) ProtoMessage() {} + +func (x *GetResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. +func (*GetResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{15} +} + +func (x *GetResponse) GetChunk() []byte { + if x != nil { + return x.Chunk + } + return nil +} + +type RemoveRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` +} + +func (x *RemoveRequest) Reset() { + *x = RemoveRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveRequest) ProtoMessage() {} + +func (x *RemoveRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead. +func (*RemoveRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{16} +} + +func (x *RemoveRequest) GetCid() string { + if x != nil { + return x.Cid + } + return "" +} + +type RemoveResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *RemoveResponse) Reset() { + *x = RemoveResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveResponse) ProtoMessage() {} + +func (x *RemoveResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead. +func (*RemoveResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{17} +} + +type WatchLogsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + History bool `protobuf:"varint,3,opt,name=history,proto3" json:"history,omitempty"` +} + +func (x *WatchLogsRequest) Reset() { + *x = WatchLogsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WatchLogsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WatchLogsRequest) ProtoMessage() {} + +func (x *WatchLogsRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WatchLogsRequest.ProtoReflect.Descriptor instead. +func (*WatchLogsRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{18} +} + +func (x *WatchLogsRequest) GetCid() string { + if x != nil { + return x.Cid + } + return "" +} + +func (x *WatchLogsRequest) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +func (x *WatchLogsRequest) GetHistory() bool { + if x != nil { + return x.History + } + return false +} + +type WatchLogsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LogEntry *LogEntry `protobuf:"bytes,1,opt,name=log_entry,json=logEntry,proto3" json:"log_entry,omitempty"` +} + +func (x *WatchLogsResponse) Reset() { + *x = WatchLogsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WatchLogsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WatchLogsResponse) ProtoMessage() {} + +func (x *WatchLogsResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WatchLogsResponse.ProtoReflect.Descriptor instead. +func (*WatchLogsResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{19} +} + +func (x *WatchLogsResponse) GetLogEntry() *LogEntry { + if x != nil { + return x.LogEntry + } + return nil +} + +type CidInfoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cids []string `protobuf:"bytes,1,rep,name=cids,proto3" json:"cids,omitempty"` +} + +func (x *CidInfoRequest) Reset() { + *x = CidInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CidInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CidInfoRequest) ProtoMessage() {} + +func (x *CidInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CidInfoRequest.ProtoReflect.Descriptor instead. +func (*CidInfoRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{20} +} + +func (x *CidInfoRequest) GetCids() []string { + if x != nil { + return x.Cids + } + return nil +} + +type CidInfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CidInfos []*CidInfo `protobuf:"bytes,1,rep,name=cid_infos,json=cidInfos,proto3" json:"cid_infos,omitempty"` +} + +func (x *CidInfoResponse) Reset() { + *x = CidInfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CidInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CidInfoResponse) ProtoMessage() {} + +func (x *CidInfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CidInfoResponse.ProtoReflect.Descriptor instead. +func (*CidInfoResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{21} +} + +func (x *CidInfoResponse) GetCidInfos() []*CidInfo { + if x != nil { + return x.CidInfos + } + return nil +} + +type BalanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *BalanceRequest) Reset() { + *x = BalanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BalanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BalanceRequest) ProtoMessage() {} + +func (x *BalanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BalanceRequest.ProtoReflect.Descriptor instead. +func (*BalanceRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{22} +} + +func (x *BalanceRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +type BalanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` +} + +func (x *BalanceResponse) Reset() { + *x = BalanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BalanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BalanceResponse) ProtoMessage() {} + +func (x *BalanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BalanceResponse.ProtoReflect.Descriptor instead. +func (*BalanceResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{23} +} + +func (x *BalanceResponse) GetBalance() string { + if x != nil { + return x.Balance + } + return "" +} + +type NewAddressRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + AddressType string `protobuf:"bytes,2,opt,name=address_type,json=addressType,proto3" json:"address_type,omitempty"` + MakeDefault bool `protobuf:"varint,3,opt,name=make_default,json=makeDefault,proto3" json:"make_default,omitempty"` +} + +func (x *NewAddressRequest) Reset() { + *x = NewAddressRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NewAddressRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NewAddressRequest) ProtoMessage() {} + +func (x *NewAddressRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NewAddressRequest.ProtoReflect.Descriptor instead. +func (*NewAddressRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{24} +} + +func (x *NewAddressRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *NewAddressRequest) GetAddressType() string { + if x != nil { + return x.AddressType + } + return "" +} + +func (x *NewAddressRequest) GetMakeDefault() bool { + if x != nil { + return x.MakeDefault + } + return false +} + +type NewAddressResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *NewAddressResponse) Reset() { + *x = NewAddressResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NewAddressResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NewAddressResponse) ProtoMessage() {} + +func (x *NewAddressResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NewAddressResponse.ProtoReflect.Descriptor instead. +func (*NewAddressResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{25} +} + +func (x *NewAddressResponse) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +type AddressesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *AddressesRequest) Reset() { + *x = AddressesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddressesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddressesRequest) ProtoMessage() {} + +func (x *AddressesRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddressesRequest.ProtoReflect.Descriptor instead. +func (*AddressesRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{26} +} + +type AddressesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addresses []*AddrInfo `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` +} + +func (x *AddressesResponse) Reset() { + *x = AddressesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddressesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddressesResponse) ProtoMessage() {} + +func (x *AddressesResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddressesResponse.ProtoReflect.Descriptor instead. +func (*AddressesResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{27} +} + +func (x *AddressesResponse) GetAddresses() []*AddrInfo { + if x != nil { + return x.Addresses + } + return nil +} + +type SendFilRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *SendFilRequest) Reset() { + *x = SendFilRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendFilRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendFilRequest) ProtoMessage() {} + +func (x *SendFilRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SendFilRequest.ProtoReflect.Descriptor instead. +func (*SendFilRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{28} +} + +func (x *SendFilRequest) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *SendFilRequest) GetTo() string { + if x != nil { + return x.To + } + return "" +} + +func (x *SendFilRequest) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +type SendFilResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *SendFilResponse) Reset() { + *x = SendFilResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendFilResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendFilResponse) ProtoMessage() {} + +func (x *SendFilResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SendFilResponse.ProtoReflect.Descriptor instead. +func (*SendFilResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{29} +} + +type SignMessageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *SignMessageRequest) Reset() { + *x = SignMessageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignMessageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignMessageRequest) ProtoMessage() {} + +func (x *SignMessageRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignMessageRequest.ProtoReflect.Descriptor instead. +func (*SignMessageRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{30} +} + +func (x *SignMessageRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *SignMessageRequest) GetMessage() []byte { + if x != nil { + return x.Message + } + return nil +} + +type SignMessageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` +} + +func (x *SignMessageResponse) Reset() { + *x = SignMessageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignMessageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignMessageResponse) ProtoMessage() {} + +func (x *SignMessageResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignMessageResponse.ProtoReflect.Descriptor instead. +func (*SignMessageResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{31} +} + +func (x *SignMessageResponse) GetSignature() []byte { + if x != nil { + return x.Signature + } + return nil +} + +type VerifyMessageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` +} + +func (x *VerifyMessageRequest) Reset() { + *x = VerifyMessageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyMessageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyMessageRequest) ProtoMessage() {} + +func (x *VerifyMessageRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyMessageRequest.ProtoReflect.Descriptor instead. +func (*VerifyMessageRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{32} +} + +func (x *VerifyMessageRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *VerifyMessageRequest) GetMessage() []byte { + if x != nil { + return x.Message + } + return nil +} + +func (x *VerifyMessageRequest) GetSignature() []byte { + if x != nil { + return x.Signature + } + return nil +} + +type VerifyMessageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` +} + +func (x *VerifyMessageResponse) Reset() { + *x = VerifyMessageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyMessageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyMessageResponse) ProtoMessage() {} + +func (x *VerifyMessageResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyMessageResponse.ProtoReflect.Descriptor instead. +func (*VerifyMessageResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{33} +} + +func (x *VerifyMessageResponse) GetOk() bool { + if x != nil { + return x.Ok + } + return false +} + +type CancelStorageJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` +} + +func (x *CancelStorageJobRequest) Reset() { + *x = CancelStorageJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CancelStorageJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CancelStorageJobRequest) ProtoMessage() {} + +func (x *CancelStorageJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CancelStorageJobRequest.ProtoReflect.Descriptor instead. +func (*CancelStorageJobRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{34} +} + +func (x *CancelStorageJobRequest) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +type CancelStorageJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CancelStorageJobResponse) Reset() { + *x = CancelStorageJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CancelStorageJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CancelStorageJobResponse) ProtoMessage() {} + +func (x *CancelStorageJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CancelStorageJobResponse.ProtoReflect.Descriptor instead. +func (*CancelStorageJobResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{35} +} + +type StorageJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` +} + +func (x *StorageJobRequest) Reset() { + *x = StorageJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageJobRequest) ProtoMessage() {} + +func (x *StorageJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StorageJobRequest.ProtoReflect.Descriptor instead. +func (*StorageJobRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{36} +} + +func (x *StorageJobRequest) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +type StorageJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageJob *StorageJob `protobuf:"bytes,1,opt,name=storage_job,json=storageJob,proto3" json:"storage_job,omitempty"` +} + +func (x *StorageJobResponse) Reset() { + *x = StorageJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageJobResponse) ProtoMessage() {} + +func (x *StorageJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StorageJobResponse.ProtoReflect.Descriptor instead. +func (*StorageJobResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{37} +} + +func (x *StorageJobResponse) GetStorageJob() *StorageJob { + if x != nil { + return x.StorageJob + } + return nil +} + +type StorageConfigForJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` +} + +func (x *StorageConfigForJobRequest) Reset() { + *x = StorageConfigForJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageConfigForJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageConfigForJobRequest) ProtoMessage() {} + +func (x *StorageConfigForJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StorageConfigForJobRequest.ProtoReflect.Descriptor instead. +func (*StorageConfigForJobRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{38} +} + +func (x *StorageConfigForJobRequest) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +type StorageConfigForJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageConfig *StorageConfig `protobuf:"bytes,1,opt,name=storage_config,json=storageConfig,proto3" json:"storage_config,omitempty"` +} + +func (x *StorageConfigForJobResponse) Reset() { + *x = StorageConfigForJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageConfigForJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageConfigForJobResponse) ProtoMessage() {} + +func (x *StorageConfigForJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StorageConfigForJobResponse.ProtoReflect.Descriptor instead. +func (*StorageConfigForJobResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{39} +} + +func (x *StorageConfigForJobResponse) GetStorageConfig() *StorageConfig { + if x != nil { + return x.StorageConfig + } + return nil +} + +type QueuedStorageJobsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cids []string `protobuf:"bytes,1,rep,name=cids,proto3" json:"cids,omitempty"` +} + +func (x *QueuedStorageJobsRequest) Reset() { + *x = QueuedStorageJobsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueuedStorageJobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueuedStorageJobsRequest) ProtoMessage() {} + +func (x *QueuedStorageJobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QueuedStorageJobsRequest.ProtoReflect.Descriptor instead. +func (*QueuedStorageJobsRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{40} +} + +func (x *QueuedStorageJobsRequest) GetCids() []string { + if x != nil { + return x.Cids + } + return nil +} + +type QueuedStorageJobsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageJobs []*StorageJob `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` +} + +func (x *QueuedStorageJobsResponse) Reset() { + *x = QueuedStorageJobsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueuedStorageJobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueuedStorageJobsResponse) ProtoMessage() {} + +func (x *QueuedStorageJobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[41] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QueuedStorageJobsResponse.ProtoReflect.Descriptor instead. +func (*QueuedStorageJobsResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{41} +} + +func (x *QueuedStorageJobsResponse) GetStorageJobs() []*StorageJob { + if x != nil { + return x.StorageJobs + } + return nil +} + +type ExecutingStorageJobsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cids []string `protobuf:"bytes,1,rep,name=cids,proto3" json:"cids,omitempty"` +} + +func (x *ExecutingStorageJobsRequest) Reset() { + *x = ExecutingStorageJobsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutingStorageJobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutingStorageJobsRequest) ProtoMessage() {} + +func (x *ExecutingStorageJobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[42] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutingStorageJobsRequest.ProtoReflect.Descriptor instead. +func (*ExecutingStorageJobsRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{42} +} + +func (x *ExecutingStorageJobsRequest) GetCids() []string { + if x != nil { + return x.Cids + } + return nil +} + +type ExecutingStorageJobsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageJobs []*StorageJob `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` +} + +func (x *ExecutingStorageJobsResponse) Reset() { + *x = ExecutingStorageJobsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutingStorageJobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutingStorageJobsResponse) ProtoMessage() {} + +func (x *ExecutingStorageJobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[43] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutingStorageJobsResponse.ProtoReflect.Descriptor instead. +func (*ExecutingStorageJobsResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{43} +} + +func (x *ExecutingStorageJobsResponse) GetStorageJobs() []*StorageJob { + if x != nil { + return x.StorageJobs + } + return nil +} + +type LatestFinalStorageJobsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cids []string `protobuf:"bytes,1,rep,name=cids,proto3" json:"cids,omitempty"` +} + +func (x *LatestFinalStorageJobsRequest) Reset() { + *x = LatestFinalStorageJobsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LatestFinalStorageJobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LatestFinalStorageJobsRequest) ProtoMessage() {} + +func (x *LatestFinalStorageJobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[44] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LatestFinalStorageJobsRequest.ProtoReflect.Descriptor instead. +func (*LatestFinalStorageJobsRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{44} +} + +func (x *LatestFinalStorageJobsRequest) GetCids() []string { + if x != nil { + return x.Cids + } + return nil +} + +type LatestFinalStorageJobsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageJobs []*StorageJob `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` +} + +func (x *LatestFinalStorageJobsResponse) Reset() { + *x = LatestFinalStorageJobsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LatestFinalStorageJobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LatestFinalStorageJobsResponse) ProtoMessage() {} + +func (x *LatestFinalStorageJobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[45] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LatestFinalStorageJobsResponse.ProtoReflect.Descriptor instead. +func (*LatestFinalStorageJobsResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{45} +} + +func (x *LatestFinalStorageJobsResponse) GetStorageJobs() []*StorageJob { + if x != nil { + return x.StorageJobs + } + return nil +} + +type LatestSuccessfulStorageJobsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cids []string `protobuf:"bytes,1,rep,name=cids,proto3" json:"cids,omitempty"` +} + +func (x *LatestSuccessfulStorageJobsRequest) Reset() { + *x = LatestSuccessfulStorageJobsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LatestSuccessfulStorageJobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LatestSuccessfulStorageJobsRequest) ProtoMessage() {} + +func (x *LatestSuccessfulStorageJobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[46] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LatestSuccessfulStorageJobsRequest.ProtoReflect.Descriptor instead. +func (*LatestSuccessfulStorageJobsRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{46} +} + +func (x *LatestSuccessfulStorageJobsRequest) GetCids() []string { + if x != nil { + return x.Cids + } + return nil +} + +type LatestSuccessfulStorageJobsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageJobs []*StorageJob `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` +} + +func (x *LatestSuccessfulStorageJobsResponse) Reset() { + *x = LatestSuccessfulStorageJobsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LatestSuccessfulStorageJobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LatestSuccessfulStorageJobsResponse) ProtoMessage() {} + +func (x *LatestSuccessfulStorageJobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[47] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LatestSuccessfulStorageJobsResponse.ProtoReflect.Descriptor instead. +func (*LatestSuccessfulStorageJobsResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{47} +} + +func (x *LatestSuccessfulStorageJobsResponse) GetStorageJobs() []*StorageJob { + if x != nil { + return x.StorageJobs + } + return nil +} + +type StorageJobsSummaryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cids []string `protobuf:"bytes,1,rep,name=cids,proto3" json:"cids,omitempty"` +} + +func (x *StorageJobsSummaryRequest) Reset() { + *x = StorageJobsSummaryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageJobsSummaryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageJobsSummaryRequest) ProtoMessage() {} + +func (x *StorageJobsSummaryRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[48] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StorageJobsSummaryRequest.ProtoReflect.Descriptor instead. +func (*StorageJobsSummaryRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{48} +} + +func (x *StorageJobsSummaryRequest) GetCids() []string { + if x != nil { + return x.Cids + } + return nil +} + +type StorageJobsSummaryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobCounts *JobCounts `protobuf:"bytes,1,opt,name=job_counts,json=jobCounts,proto3" json:"job_counts,omitempty"` + QueuedStorageJobs []*StorageJob `protobuf:"bytes,2,rep,name=queued_storage_jobs,json=queuedStorageJobs,proto3" json:"queued_storage_jobs,omitempty"` + ExecutingStorageJobs []*StorageJob `protobuf:"bytes,3,rep,name=executing_storage_jobs,json=executingStorageJobs,proto3" json:"executing_storage_jobs,omitempty"` + LatestFinalStorageJobs []*StorageJob `protobuf:"bytes,4,rep,name=latest_final_storage_jobs,json=latestFinalStorageJobs,proto3" json:"latest_final_storage_jobs,omitempty"` + LatestSuccessfulStorageJobs []*StorageJob `protobuf:"bytes,5,rep,name=latest_successful_storage_jobs,json=latestSuccessfulStorageJobs,proto3" json:"latest_successful_storage_jobs,omitempty"` +} + +func (x *StorageJobsSummaryResponse) Reset() { + *x = StorageJobsSummaryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageJobsSummaryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageJobsSummaryResponse) ProtoMessage() {} + +func (x *StorageJobsSummaryResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[49] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StorageJobsSummaryResponse.ProtoReflect.Descriptor instead. +func (*StorageJobsSummaryResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{49} +} + +func (x *StorageJobsSummaryResponse) GetJobCounts() *JobCounts { + if x != nil { + return x.JobCounts + } + return nil +} + +func (x *StorageJobsSummaryResponse) GetQueuedStorageJobs() []*StorageJob { + if x != nil { + return x.QueuedStorageJobs + } + return nil +} + +func (x *StorageJobsSummaryResponse) GetExecutingStorageJobs() []*StorageJob { + if x != nil { + return x.ExecutingStorageJobs + } + return nil +} + +func (x *StorageJobsSummaryResponse) GetLatestFinalStorageJobs() []*StorageJob { + if x != nil { + return x.LatestFinalStorageJobs + } + return nil +} + +func (x *StorageJobsSummaryResponse) GetLatestSuccessfulStorageJobs() []*StorageJob { + if x != nil { + return x.LatestSuccessfulStorageJobs + } + return nil +} + +type WatchStorageJobsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobIds []string `protobuf:"bytes,1,rep,name=job_ids,json=jobIds,proto3" json:"job_ids,omitempty"` +} + +func (x *WatchStorageJobsRequest) Reset() { + *x = WatchStorageJobsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WatchStorageJobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WatchStorageJobsRequest) ProtoMessage() {} + +func (x *WatchStorageJobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[50] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WatchStorageJobsRequest.ProtoReflect.Descriptor instead. +func (*WatchStorageJobsRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{50} +} + +func (x *WatchStorageJobsRequest) GetJobIds() []string { + if x != nil { + return x.JobIds + } + return nil +} + +type WatchStorageJobsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageJob *StorageJob `protobuf:"bytes,1,opt,name=storage_job,json=storageJob,proto3" json:"storage_job,omitempty"` +} + +func (x *WatchStorageJobsResponse) Reset() { + *x = WatchStorageJobsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WatchStorageJobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WatchStorageJobsResponse) ProtoMessage() {} + +func (x *WatchStorageJobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[51] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WatchStorageJobsResponse.ProtoReflect.Descriptor instead. +func (*WatchStorageJobsResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{51} +} + +func (x *WatchStorageJobsResponse) GetStorageJob() *StorageJob { + if x != nil { + return x.StorageJob + } + return nil +} + +type StorageDealRecordsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Config *DealRecordsConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` +} + +func (x *StorageDealRecordsRequest) Reset() { + *x = StorageDealRecordsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageDealRecordsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageDealRecordsRequest) ProtoMessage() {} + +func (x *StorageDealRecordsRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[52] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StorageDealRecordsRequest.ProtoReflect.Descriptor instead. +func (*StorageDealRecordsRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{52} +} + +func (x *StorageDealRecordsRequest) GetConfig() *DealRecordsConfig { + if x != nil { + return x.Config + } + return nil +} + +type StorageDealRecordsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Records []*StorageDealRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` +} + +func (x *StorageDealRecordsResponse) Reset() { + *x = StorageDealRecordsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageDealRecordsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageDealRecordsResponse) ProtoMessage() {} + +func (x *StorageDealRecordsResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[53] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StorageDealRecordsResponse.ProtoReflect.Descriptor instead. +func (*StorageDealRecordsResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{53} +} + +func (x *StorageDealRecordsResponse) GetRecords() []*StorageDealRecord { + if x != nil { + return x.Records + } + return nil +} + +type RetrievalDealRecordsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Config *DealRecordsConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` +} + +func (x *RetrievalDealRecordsRequest) Reset() { + *x = RetrievalDealRecordsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RetrievalDealRecordsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RetrievalDealRecordsRequest) ProtoMessage() {} + +func (x *RetrievalDealRecordsRequest) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[54] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RetrievalDealRecordsRequest.ProtoReflect.Descriptor instead. +func (*RetrievalDealRecordsRequest) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{54} +} + +func (x *RetrievalDealRecordsRequest) GetConfig() *DealRecordsConfig { + if x != nil { + return x.Config + } + return nil +} + +type RetrievalDealRecordsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Records []*RetrievalDealRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` +} + +func (x *RetrievalDealRecordsResponse) Reset() { + *x = RetrievalDealRecordsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RetrievalDealRecordsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RetrievalDealRecordsResponse) ProtoMessage() {} + +func (x *RetrievalDealRecordsResponse) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[55] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RetrievalDealRecordsResponse.ProtoReflect.Descriptor instead. +func (*RetrievalDealRecordsResponse) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{55} +} + +func (x *RetrievalDealRecordsResponse) GetRecords() []*RetrievalDealRecord { + if x != nil { + return x.Records + } + return nil +} + +type JobCounts struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Queued int32 `protobuf:"varint,1,opt,name=queued,proto3" json:"queued,omitempty"` + Executing int32 `protobuf:"varint,2,opt,name=executing,proto3" json:"executing,omitempty"` + LatestFinal int32 `protobuf:"varint,3,opt,name=latest_final,json=latestFinal,proto3" json:"latest_final,omitempty"` + LatestSuccessful int32 `protobuf:"varint,4,opt,name=latest_successful,json=latestSuccessful,proto3" json:"latest_successful,omitempty"` +} + +func (x *JobCounts) Reset() { + *x = JobCounts{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JobCounts) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JobCounts) ProtoMessage() {} + +func (x *JobCounts) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[56] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use JobCounts.ProtoReflect.Descriptor instead. +func (*JobCounts) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{56} +} + +func (x *JobCounts) GetQueued() int32 { + if x != nil { + return x.Queued + } + return 0 +} + +func (x *JobCounts) GetExecuting() int32 { + if x != nil { + return x.Executing + } + return 0 +} + +func (x *JobCounts) GetLatestFinal() int32 { + if x != nil { + return x.LatestFinal + } + return 0 +} + +func (x *JobCounts) GetLatestSuccessful() int32 { + if x != nil { + return x.LatestSuccessful + } + return 0 +} + +type AddrInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + Balance string `protobuf:"bytes,4,opt,name=balance,proto3" json:"balance,omitempty"` +} + +func (x *AddrInfo) Reset() { + *x = AddrInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddrInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddrInfo) ProtoMessage() {} + +func (x *AddrInfo) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[57] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddrInfo.ProtoReflect.Descriptor instead. +func (*AddrInfo) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{57} +} + +func (x *AddrInfo) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AddrInfo) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *AddrInfo) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *AddrInfo) GetBalance() string { + if x != nil { + return x.Balance + } + return "" +} + +type IpfsConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AddTimeout int64 `protobuf:"varint,1,opt,name=add_timeout,json=addTimeout,proto3" json:"add_timeout,omitempty"` +} + +func (x *IpfsConfig) Reset() { + *x = IpfsConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IpfsConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IpfsConfig) ProtoMessage() {} + +func (x *IpfsConfig) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[58] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use IpfsConfig.ProtoReflect.Descriptor instead. +func (*IpfsConfig) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{58} +} + +func (x *IpfsConfig) GetAddTimeout() int64 { + if x != nil { + return x.AddTimeout + } + return 0 +} + +type HotConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + AllowUnfreeze bool `protobuf:"varint,2,opt,name=allow_unfreeze,json=allowUnfreeze,proto3" json:"allow_unfreeze,omitempty"` + UnfreezeMaxPrice uint64 `protobuf:"varint,3,opt,name=unfreeze_max_price,json=unfreezeMaxPrice,proto3" json:"unfreeze_max_price,omitempty"` + Ipfs *IpfsConfig `protobuf:"bytes,4,opt,name=ipfs,proto3" json:"ipfs,omitempty"` +} + +func (x *HotConfig) Reset() { + *x = HotConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HotConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HotConfig) ProtoMessage() {} + +func (x *HotConfig) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[59] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HotConfig.ProtoReflect.Descriptor instead. +func (*HotConfig) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{59} +} + +func (x *HotConfig) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +func (x *HotConfig) GetAllowUnfreeze() bool { + if x != nil { + return x.AllowUnfreeze + } + return false +} + +func (x *HotConfig) GetUnfreezeMaxPrice() uint64 { + if x != nil { + return x.UnfreezeMaxPrice + } + return 0 +} + +func (x *HotConfig) GetIpfs() *IpfsConfig { + if x != nil { + return x.Ipfs + } + return nil +} + +type FilRenew struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + Threshold int64 `protobuf:"varint,2,opt,name=threshold,proto3" json:"threshold,omitempty"` +} + +func (x *FilRenew) Reset() { + *x = FilRenew{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FilRenew) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FilRenew) ProtoMessage() {} + +func (x *FilRenew) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[60] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FilRenew.ProtoReflect.Descriptor instead. +func (*FilRenew) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{60} +} + +func (x *FilRenew) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +func (x *FilRenew) GetThreshold() int64 { + if x != nil { + return x.Threshold + } + return 0 +} + +type FilConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ReplicationFactor int64 `protobuf:"varint,1,opt,name=replication_factor,json=replicationFactor,proto3" json:"replication_factor,omitempty"` + DealMinDuration int64 `protobuf:"varint,2,opt,name=deal_min_duration,json=dealMinDuration,proto3" json:"deal_min_duration,omitempty"` + ExcludedMiners []string `protobuf:"bytes,3,rep,name=excluded_miners,json=excludedMiners,proto3" json:"excluded_miners,omitempty"` + TrustedMiners []string `protobuf:"bytes,4,rep,name=trusted_miners,json=trustedMiners,proto3" json:"trusted_miners,omitempty"` + CountryCodes []string `protobuf:"bytes,5,rep,name=country_codes,json=countryCodes,proto3" json:"country_codes,omitempty"` + Renew *FilRenew `protobuf:"bytes,6,opt,name=renew,proto3" json:"renew,omitempty"` + Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` + MaxPrice uint64 `protobuf:"varint,8,opt,name=max_price,json=maxPrice,proto3" json:"max_price,omitempty"` + FastRetrieval bool `protobuf:"varint,9,opt,name=fast_retrieval,json=fastRetrieval,proto3" json:"fast_retrieval,omitempty"` + DealStartOffset int64 `protobuf:"varint,10,opt,name=deal_start_offset,json=dealStartOffset,proto3" json:"deal_start_offset,omitempty"` +} + +func (x *FilConfig) Reset() { + *x = FilConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FilConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FilConfig) ProtoMessage() {} + +func (x *FilConfig) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[61] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FilConfig.ProtoReflect.Descriptor instead. +func (*FilConfig) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{61} +} + +func (x *FilConfig) GetReplicationFactor() int64 { + if x != nil { + return x.ReplicationFactor + } + return 0 +} + +func (x *FilConfig) GetDealMinDuration() int64 { + if x != nil { + return x.DealMinDuration + } + return 0 +} + +func (x *FilConfig) GetExcludedMiners() []string { + if x != nil { + return x.ExcludedMiners + } + return nil +} + +func (x *FilConfig) GetTrustedMiners() []string { + if x != nil { + return x.TrustedMiners + } + return nil +} + +func (x *FilConfig) GetCountryCodes() []string { + if x != nil { + return x.CountryCodes + } + return nil +} + +func (x *FilConfig) GetRenew() *FilRenew { + if x != nil { + return x.Renew + } + return nil +} + +func (x *FilConfig) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *FilConfig) GetMaxPrice() uint64 { + if x != nil { + return x.MaxPrice + } + return 0 +} + +func (x *FilConfig) GetFastRetrieval() bool { + if x != nil { + return x.FastRetrieval + } + return false +} + +func (x *FilConfig) GetDealStartOffset() int64 { + if x != nil { + return x.DealStartOffset + } + return 0 +} + +type ColdConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + Filecoin *FilConfig `protobuf:"bytes,2,opt,name=filecoin,proto3" json:"filecoin,omitempty"` +} + +func (x *ColdConfig) Reset() { + *x = ColdConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ColdConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ColdConfig) ProtoMessage() {} + +func (x *ColdConfig) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[62] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ColdConfig.ProtoReflect.Descriptor instead. +func (*ColdConfig) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{62} +} + +func (x *ColdConfig) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +func (x *ColdConfig) GetFilecoin() *FilConfig { + if x != nil { + return x.Filecoin + } + return nil +} + +type StorageConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hot *HotConfig `protobuf:"bytes,1,opt,name=hot,proto3" json:"hot,omitempty"` + Cold *ColdConfig `protobuf:"bytes,2,opt,name=cold,proto3" json:"cold,omitempty"` + Repairable bool `protobuf:"varint,3,opt,name=repairable,proto3" json:"repairable,omitempty"` +} + +func (x *StorageConfig) Reset() { + *x = StorageConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageConfig) ProtoMessage() {} + +func (x *StorageConfig) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[63] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StorageConfig.ProtoReflect.Descriptor instead. +func (*StorageConfig) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{63} +} + +func (x *StorageConfig) GetHot() *HotConfig { + if x != nil { + return x.Hot + } + return nil +} + +func (x *StorageConfig) GetCold() *ColdConfig { + if x != nil { + return x.Cold + } + return nil +} + +func (x *StorageConfig) GetRepairable() bool { + if x != nil { + return x.Repairable + } + return false +} + +type IpfsHotInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Created int64 `protobuf:"varint,1,opt,name=created,proto3" json:"created,omitempty"` +} + +func (x *IpfsHotInfo) Reset() { + *x = IpfsHotInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IpfsHotInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IpfsHotInfo) ProtoMessage() {} + +func (x *IpfsHotInfo) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[64] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use IpfsHotInfo.ProtoReflect.Descriptor instead. +func (*IpfsHotInfo) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{64} +} + +func (x *IpfsHotInfo) GetCreated() int64 { + if x != nil { + return x.Created + } + return 0 +} + +type HotInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + Ipfs *IpfsHotInfo `protobuf:"bytes,3,opt,name=ipfs,proto3" json:"ipfs,omitempty"` +} + +func (x *HotInfo) Reset() { + *x = HotInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HotInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HotInfo) ProtoMessage() {} + +func (x *HotInfo) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[65] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HotInfo.ProtoReflect.Descriptor instead. +func (*HotInfo) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{65} +} + +func (x *HotInfo) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +func (x *HotInfo) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *HotInfo) GetIpfs() *IpfsHotInfo { + if x != nil { + return x.Ipfs + } + return nil +} + +type FilStorage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProposalCid string `protobuf:"bytes,1,opt,name=proposal_cid,json=proposalCid,proto3" json:"proposal_cid,omitempty"` + Renewed bool `protobuf:"varint,2,opt,name=renewed,proto3" json:"renewed,omitempty"` + Duration int64 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"` + ActivationEpoch int64 `protobuf:"varint,4,opt,name=activation_epoch,json=activationEpoch,proto3" json:"activation_epoch,omitempty"` + StartEpoch uint64 `protobuf:"varint,5,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` + Miner string `protobuf:"bytes,6,opt,name=miner,proto3" json:"miner,omitempty"` + EpochPrice uint64 `protobuf:"varint,7,opt,name=epoch_price,json=epochPrice,proto3" json:"epoch_price,omitempty"` + PieceCid string `protobuf:"bytes,8,opt,name=piece_cid,json=pieceCid,proto3" json:"piece_cid,omitempty"` +} + +func (x *FilStorage) Reset() { + *x = FilStorage{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FilStorage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FilStorage) ProtoMessage() {} + +func (x *FilStorage) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[66] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FilStorage.ProtoReflect.Descriptor instead. +func (*FilStorage) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{66} +} + +func (x *FilStorage) GetProposalCid() string { + if x != nil { + return x.ProposalCid + } + return "" +} + +func (x *FilStorage) GetRenewed() bool { + if x != nil { + return x.Renewed + } + return false +} + +func (x *FilStorage) GetDuration() int64 { + if x != nil { + return x.Duration + } + return 0 +} + +func (x *FilStorage) GetActivationEpoch() int64 { + if x != nil { + return x.ActivationEpoch + } + return 0 +} + +func (x *FilStorage) GetStartEpoch() uint64 { + if x != nil { + return x.StartEpoch + } + return 0 +} + +func (x *FilStorage) GetMiner() string { + if x != nil { + return x.Miner + } + return "" +} + +func (x *FilStorage) GetEpochPrice() uint64 { + if x != nil { + return x.EpochPrice + } + return 0 +} + +func (x *FilStorage) GetPieceCid() string { + if x != nil { + return x.PieceCid + } + return "" +} + +type FilInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DataCid string `protobuf:"bytes,1,opt,name=data_cid,json=dataCid,proto3" json:"data_cid,omitempty"` + Size uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + Proposals []*FilStorage `protobuf:"bytes,3,rep,name=proposals,proto3" json:"proposals,omitempty"` +} + +func (x *FilInfo) Reset() { + *x = FilInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FilInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FilInfo) ProtoMessage() {} + +func (x *FilInfo) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[67] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FilInfo.ProtoReflect.Descriptor instead. +func (*FilInfo) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{67} +} + +func (x *FilInfo) GetDataCid() string { + if x != nil { + return x.DataCid + } + return "" +} + +func (x *FilInfo) GetSize() uint64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *FilInfo) GetProposals() []*FilStorage { + if x != nil { + return x.Proposals + } + return nil +} + +type ColdInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + Filecoin *FilInfo `protobuf:"bytes,2,opt,name=filecoin,proto3" json:"filecoin,omitempty"` +} + +func (x *ColdInfo) Reset() { + *x = ColdInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ColdInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ColdInfo) ProtoMessage() {} + +func (x *ColdInfo) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[68] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ColdInfo.ProtoReflect.Descriptor instead. +func (*ColdInfo) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{68} +} + +func (x *ColdInfo) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +func (x *ColdInfo) GetFilecoin() *FilInfo { + if x != nil { + return x.Filecoin + } + return nil +} + +type StorageInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"` + Created int64 `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` + Hot *HotInfo `protobuf:"bytes,4,opt,name=hot,proto3" json:"hot,omitempty"` + Cold *ColdInfo `protobuf:"bytes,5,opt,name=cold,proto3" json:"cold,omitempty"` +} + +func (x *StorageInfo) Reset() { + *x = StorageInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageInfo) ProtoMessage() {} + +func (x *StorageInfo) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[69] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StorageInfo.ProtoReflect.Descriptor instead. +func (*StorageInfo) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{69} +} + +func (x *StorageInfo) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +func (x *StorageInfo) GetCid() string { + if x != nil { + return x.Cid + } + return "" +} + +func (x *StorageInfo) GetCreated() int64 { + if x != nil { + return x.Created + } + return 0 +} + +func (x *StorageInfo) GetHot() *HotInfo { + if x != nil { + return x.Hot + } + return nil +} + +func (x *StorageInfo) GetCold() *ColdInfo { + if x != nil { + return x.Cold + } + return nil +} + +type CidInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + LatestPushedStorageConfig *StorageConfig `protobuf:"bytes,2,opt,name=latest_pushed_storage_config,json=latestPushedStorageConfig,proto3" json:"latest_pushed_storage_config,omitempty"` + CurrentStorageInfo *StorageInfo `protobuf:"bytes,3,opt,name=current_storage_info,json=currentStorageInfo,proto3" json:"current_storage_info,omitempty"` + QueuedStorageJobs []*StorageJob `protobuf:"bytes,4,rep,name=queued_storage_jobs,json=queuedStorageJobs,proto3" json:"queued_storage_jobs,omitempty"` + ExecutingStorageJob *StorageJob `protobuf:"bytes,5,opt,name=executing_storage_job,json=executingStorageJob,proto3" json:"executing_storage_job,omitempty"` + LatestFinalStorageJob *StorageJob `protobuf:"bytes,6,opt,name=latest_final_storage_job,json=latestFinalStorageJob,proto3" json:"latest_final_storage_job,omitempty"` + LatestSuccessfulStorageJob *StorageJob `protobuf:"bytes,7,opt,name=latest_successful_storage_job,json=latestSuccessfulStorageJob,proto3" json:"latest_successful_storage_job,omitempty"` +} + +func (x *CidInfo) Reset() { + *x = CidInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CidInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CidInfo) ProtoMessage() {} + +func (x *CidInfo) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[70] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CidInfo.ProtoReflect.Descriptor instead. +func (*CidInfo) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{70} +} + +func (x *CidInfo) GetCid() string { + if x != nil { + return x.Cid + } + return "" +} + +func (x *CidInfo) GetLatestPushedStorageConfig() *StorageConfig { + if x != nil { + return x.LatestPushedStorageConfig + } + return nil +} + +func (x *CidInfo) GetCurrentStorageInfo() *StorageInfo { + if x != nil { + return x.CurrentStorageInfo + } + return nil +} + +func (x *CidInfo) GetQueuedStorageJobs() []*StorageJob { + if x != nil { + return x.QueuedStorageJobs + } + return nil +} + +func (x *CidInfo) GetExecutingStorageJob() *StorageJob { + if x != nil { + return x.ExecutingStorageJob + } + return nil +} + +func (x *CidInfo) GetLatestFinalStorageJob() *StorageJob { + if x != nil { + return x.LatestFinalStorageJob + } + return nil +} + +func (x *CidInfo) GetLatestSuccessfulStorageJob() *StorageJob { + if x != nil { + return x.LatestSuccessfulStorageJob + } + return nil +} + +type DealInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProposalCid string `protobuf:"bytes,1,opt,name=proposal_cid,json=proposalCid,proto3" json:"proposal_cid,omitempty"` + StateId uint64 `protobuf:"varint,2,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` + StateName string `protobuf:"bytes,3,opt,name=state_name,json=stateName,proto3" json:"state_name,omitempty"` + Miner string `protobuf:"bytes,4,opt,name=miner,proto3" json:"miner,omitempty"` + PieceCid string `protobuf:"bytes,5,opt,name=piece_cid,json=pieceCid,proto3" json:"piece_cid,omitempty"` + Size uint64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` + PricePerEpoch uint64 `protobuf:"varint,7,opt,name=price_per_epoch,json=pricePerEpoch,proto3" json:"price_per_epoch,omitempty"` + StartEpoch uint64 `protobuf:"varint,8,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` + Duration uint64 `protobuf:"varint,9,opt,name=duration,proto3" json:"duration,omitempty"` + DealId uint64 `protobuf:"varint,10,opt,name=deal_id,json=dealId,proto3" json:"deal_id,omitempty"` + ActivationEpoch int64 `protobuf:"varint,11,opt,name=activation_epoch,json=activationEpoch,proto3" json:"activation_epoch,omitempty"` + Message string `protobuf:"bytes,12,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *DealInfo) Reset() { + *x = DealInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DealInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DealInfo) ProtoMessage() {} + +func (x *DealInfo) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[71] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DealInfo.ProtoReflect.Descriptor instead. +func (*DealInfo) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{71} +} + +func (x *DealInfo) GetProposalCid() string { + if x != nil { + return x.ProposalCid + } + return "" +} + +func (x *DealInfo) GetStateId() uint64 { + if x != nil { + return x.StateId + } + return 0 +} + +func (x *DealInfo) GetStateName() string { + if x != nil { + return x.StateName + } + return "" +} + +func (x *DealInfo) GetMiner() string { + if x != nil { + return x.Miner + } + return "" +} + +func (x *DealInfo) GetPieceCid() string { + if x != nil { + return x.PieceCid + } + return "" +} + +func (x *DealInfo) GetSize() uint64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *DealInfo) GetPricePerEpoch() uint64 { + if x != nil { + return x.PricePerEpoch + } + return 0 +} + +func (x *DealInfo) GetStartEpoch() uint64 { + if x != nil { + return x.StartEpoch + } + return 0 +} + +func (x *DealInfo) GetDuration() uint64 { + if x != nil { + return x.Duration + } + return 0 +} + +func (x *DealInfo) GetDealId() uint64 { + if x != nil { + return x.DealId + } + return 0 +} + +func (x *DealInfo) GetActivationEpoch() int64 { + if x != nil { + return x.ActivationEpoch + } + return 0 +} + +func (x *DealInfo) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +type StorageJob struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ApiId string `protobuf:"bytes,2,opt,name=api_id,json=apiId,proto3" json:"api_id,omitempty"` + Cid string `protobuf:"bytes,3,opt,name=cid,proto3" json:"cid,omitempty"` + Status JobStatus `protobuf:"varint,4,opt,name=status,proto3,enum=powergate.user.v1.JobStatus" json:"status,omitempty"` + ErrorCause string `protobuf:"bytes,5,opt,name=error_cause,json=errorCause,proto3" json:"error_cause,omitempty"` + DealInfo []*DealInfo `protobuf:"bytes,6,rep,name=deal_info,json=dealInfo,proto3" json:"deal_info,omitempty"` + DealErrors []*DealError `protobuf:"bytes,7,rep,name=deal_errors,json=dealErrors,proto3" json:"deal_errors,omitempty"` + CreatedAt int64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` +} + +func (x *StorageJob) Reset() { + *x = StorageJob{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageJob) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageJob) ProtoMessage() {} + +func (x *StorageJob) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[72] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StorageJob.ProtoReflect.Descriptor instead. +func (*StorageJob) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{72} +} + +func (x *StorageJob) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *StorageJob) GetApiId() string { + if x != nil { + return x.ApiId + } + return "" +} + +func (x *StorageJob) GetCid() string { + if x != nil { + return x.Cid + } + return "" +} + +func (x *StorageJob) GetStatus() JobStatus { + if x != nil { + return x.Status + } + return JobStatus_JOB_STATUS_UNSPECIFIED +} + +func (x *StorageJob) GetErrorCause() string { + if x != nil { + return x.ErrorCause + } + return "" +} + +func (x *StorageJob) GetDealInfo() []*DealInfo { + if x != nil { + return x.DealInfo + } + return nil +} + +func (x *StorageJob) GetDealErrors() []*DealError { + if x != nil { + return x.DealErrors + } + return nil +} + +func (x *StorageJob) GetCreatedAt() int64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +type DealError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProposalCid string `protobuf:"bytes,1,opt,name=proposal_cid,json=proposalCid,proto3" json:"proposal_cid,omitempty"` + Miner string `protobuf:"bytes,2,opt,name=miner,proto3" json:"miner,omitempty"` + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *DealError) Reset() { + *x = DealError{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DealError) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DealError) ProtoMessage() {} + +func (x *DealError) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[73] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DealError.ProtoReflect.Descriptor instead. +func (*DealError) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{73} +} + +func (x *DealError) GetProposalCid() string { + if x != nil { + return x.ProposalCid + } + return "" +} + +func (x *DealError) GetMiner() string { + if x != nil { + return x.Miner + } + return "" +} + +func (x *DealError) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +type LogEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + Time int64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` + Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *LogEntry) Reset() { + *x = LogEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LogEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LogEntry) ProtoMessage() {} + +func (x *LogEntry) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[74] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LogEntry.ProtoReflect.Descriptor instead. +func (*LogEntry) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{74} +} + +func (x *LogEntry) GetCid() string { + if x != nil { + return x.Cid + } + return "" +} + +func (x *LogEntry) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +func (x *LogEntry) GetTime() int64 { + if x != nil { + return x.Time + } + return 0 +} + +func (x *LogEntry) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +type DealRecordsConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FromAddrs []string `protobuf:"bytes,1,rep,name=from_addrs,json=fromAddrs,proto3" json:"from_addrs,omitempty"` + DataCids []string `protobuf:"bytes,2,rep,name=data_cids,json=dataCids,proto3" json:"data_cids,omitempty"` + IncludePending bool `protobuf:"varint,3,opt,name=include_pending,json=includePending,proto3" json:"include_pending,omitempty"` + IncludeFinal bool `protobuf:"varint,4,opt,name=include_final,json=includeFinal,proto3" json:"include_final,omitempty"` + Ascending bool `protobuf:"varint,5,opt,name=ascending,proto3" json:"ascending,omitempty"` +} + +func (x *DealRecordsConfig) Reset() { + *x = DealRecordsConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DealRecordsConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DealRecordsConfig) ProtoMessage() {} + +func (x *DealRecordsConfig) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[75] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DealRecordsConfig.ProtoReflect.Descriptor instead. +func (*DealRecordsConfig) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{75} +} + +func (x *DealRecordsConfig) GetFromAddrs() []string { + if x != nil { + return x.FromAddrs + } + return nil +} + +func (x *DealRecordsConfig) GetDataCids() []string { + if x != nil { + return x.DataCids + } + return nil +} + +func (x *DealRecordsConfig) GetIncludePending() bool { + if x != nil { + return x.IncludePending + } + return false +} + +func (x *DealRecordsConfig) GetIncludeFinal() bool { + if x != nil { + return x.IncludeFinal + } + return false +} + +func (x *DealRecordsConfig) GetAscending() bool { + if x != nil { + return x.Ascending + } + return false +} + +type StorageDealInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProposalCid string `protobuf:"bytes,1,opt,name=proposal_cid,json=proposalCid,proto3" json:"proposal_cid,omitempty"` + StateId uint64 `protobuf:"varint,2,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` + StateName string `protobuf:"bytes,3,opt,name=state_name,json=stateName,proto3" json:"state_name,omitempty"` + Miner string `protobuf:"bytes,4,opt,name=miner,proto3" json:"miner,omitempty"` + PieceCid string `protobuf:"bytes,5,opt,name=piece_cid,json=pieceCid,proto3" json:"piece_cid,omitempty"` + Size uint64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` + PricePerEpoch uint64 `protobuf:"varint,7,opt,name=price_per_epoch,json=pricePerEpoch,proto3" json:"price_per_epoch,omitempty"` + StartEpoch uint64 `protobuf:"varint,8,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` + Duration uint64 `protobuf:"varint,9,opt,name=duration,proto3" json:"duration,omitempty"` + DealId uint64 `protobuf:"varint,10,opt,name=deal_id,json=dealId,proto3" json:"deal_id,omitempty"` + ActivationEpoch int64 `protobuf:"varint,11,opt,name=activation_epoch,json=activationEpoch,proto3" json:"activation_epoch,omitempty"` + Message string `protobuf:"bytes,12,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *StorageDealInfo) Reset() { + *x = StorageDealInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageDealInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageDealInfo) ProtoMessage() {} + +func (x *StorageDealInfo) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[76] + 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 StorageDealInfo.ProtoReflect.Descriptor instead. +func (*StorageDealInfo) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{76} +} + +func (x *StorageDealInfo) GetProposalCid() string { + if x != nil { + return x.ProposalCid + } + return "" +} + +func (x *StorageDealInfo) GetStateId() uint64 { + if x != nil { + return x.StateId + } + return 0 +} + +func (x *StorageDealInfo) GetStateName() string { + if x != nil { + return x.StateName + } + return "" +} + +func (x *StorageDealInfo) GetMiner() string { + if x != nil { + return x.Miner + } + return "" +} + +func (x *StorageDealInfo) GetPieceCid() string { + if x != nil { + return x.PieceCid + } + return "" +} + +func (x *StorageDealInfo) GetSize() uint64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *StorageDealInfo) GetPricePerEpoch() uint64 { + if x != nil { + return x.PricePerEpoch + } + return 0 +} + +func (x *StorageDealInfo) GetStartEpoch() uint64 { + if x != nil { + return x.StartEpoch + } + return 0 +} + +func (x *StorageDealInfo) GetDuration() uint64 { + if x != nil { + return x.Duration + } + return 0 +} + +func (x *StorageDealInfo) GetDealId() uint64 { + if x != nil { + return x.DealId + } + return 0 +} + +func (x *StorageDealInfo) GetActivationEpoch() int64 { + if x != nil { + return x.ActivationEpoch + } + return 0 +} + +func (x *StorageDealInfo) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +type StorageDealRecord struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RootCid string `protobuf:"bytes,1,opt,name=root_cid,json=rootCid,proto3" json:"root_cid,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Time int64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` + Pending bool `protobuf:"varint,4,opt,name=pending,proto3" json:"pending,omitempty"` + DealInfo *StorageDealInfo `protobuf:"bytes,5,opt,name=deal_info,json=dealInfo,proto3" json:"deal_info,omitempty"` +} + +func (x *StorageDealRecord) Reset() { + *x = StorageDealRecord{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StorageDealRecord) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StorageDealRecord) ProtoMessage() {} + +func (x *StorageDealRecord) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[77] + 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 StorageDealRecord.ProtoReflect.Descriptor instead. +func (*StorageDealRecord) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{77} +} + +func (x *StorageDealRecord) GetRootCid() string { + if x != nil { + return x.RootCid + } + return "" +} + +func (x *StorageDealRecord) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *StorageDealRecord) GetTime() int64 { + if x != nil { + return x.Time + } + return 0 +} + +func (x *StorageDealRecord) GetPending() bool { + if x != nil { + return x.Pending + } + return false +} + +func (x *StorageDealRecord) GetDealInfo() *StorageDealInfo { + if x != nil { + return x.DealInfo + } + return nil +} + +type RetrievalDealInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RootCid string `protobuf:"bytes,1,opt,name=root_cid,json=rootCid,proto3" json:"root_cid,omitempty"` + Size uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + MinPrice uint64 `protobuf:"varint,3,opt,name=min_price,json=minPrice,proto3" json:"min_price,omitempty"` + PaymentInterval uint64 `protobuf:"varint,4,opt,name=payment_interval,json=paymentInterval,proto3" json:"payment_interval,omitempty"` + PaymentIntervalIncrease uint64 `protobuf:"varint,5,opt,name=payment_interval_increase,json=paymentIntervalIncrease,proto3" json:"payment_interval_increase,omitempty"` + Miner string `protobuf:"bytes,6,opt,name=miner,proto3" json:"miner,omitempty"` + MinerPeerId string `protobuf:"bytes,7,opt,name=miner_peer_id,json=minerPeerId,proto3" json:"miner_peer_id,omitempty"` +} + +func (x *RetrievalDealInfo) Reset() { + *x = RetrievalDealInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RetrievalDealInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RetrievalDealInfo) ProtoMessage() {} + +func (x *RetrievalDealInfo) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[78] + 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 RetrievalDealInfo.ProtoReflect.Descriptor instead. +func (*RetrievalDealInfo) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{78} +} + +func (x *RetrievalDealInfo) GetRootCid() string { + if x != nil { + return x.RootCid + } + return "" +} + +func (x *RetrievalDealInfo) GetSize() uint64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *RetrievalDealInfo) GetMinPrice() uint64 { + if x != nil { + return x.MinPrice + } + return 0 +} + +func (x *RetrievalDealInfo) GetPaymentInterval() uint64 { + if x != nil { + return x.PaymentInterval + } + return 0 +} + +func (x *RetrievalDealInfo) GetPaymentIntervalIncrease() uint64 { + if x != nil { + return x.PaymentIntervalIncrease + } + return 0 +} + +func (x *RetrievalDealInfo) GetMiner() string { + if x != nil { + return x.Miner + } + return "" +} + +func (x *RetrievalDealInfo) GetMinerPeerId() string { + if x != nil { + return x.MinerPeerId + } + return "" +} + +type RetrievalDealRecord struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` + DealInfo *RetrievalDealInfo `protobuf:"bytes,3,opt,name=deal_info,json=dealInfo,proto3" json:"deal_info,omitempty"` +} + +func (x *RetrievalDealRecord) Reset() { + *x = RetrievalDealRecord{} + if protoimpl.UnsafeEnabled { + mi := &file_powergate_user_v1_user_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RetrievalDealRecord) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RetrievalDealRecord) ProtoMessage() {} + +func (x *RetrievalDealRecord) ProtoReflect() protoreflect.Message { + mi := &file_powergate_user_v1_user_proto_msgTypes[79] + 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 RetrievalDealRecord.ProtoReflect.Descriptor instead. +func (*RetrievalDealRecord) Descriptor() ([]byte, []int) { + return file_powergate_user_v1_user_proto_rawDescGZIP(), []int{79} +} + +func (x *RetrievalDealRecord) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *RetrievalDealRecord) GetTime() int64 { + if x != nil { + return x.Time + } + return 0 +} + +func (x *RetrievalDealRecord) GetDealInfo() *RetrievalDealInfo { + if x != nil { + return x.DealInfo + } + return nil +} + +var File_powergate_user_v1_user_proto protoreflect.FileDescriptor + +var file_powergate_user_v1_user_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2f, 0x75, 0x73, 0x65, 0x72, + 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, + 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x22, 0x12, 0x0a, 0x10, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xc8, 0x01, 0x0a, 0x11, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x67, + 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, + 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x67, 0x69, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x69, 0x74, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x69, + 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x69, 0x74, 0x5f, 0x73, 0x75, + 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x69, 0x74, + 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x75, 0x69, 0x6c, 0x64, + 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x22, 0x17, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x28, 0x0a, 0x16, 0x55, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x22, 0x1d, 0x0a, 0x1b, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x22, 0x76, 0x0a, 0x1c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x56, 0x0a, 0x16, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x52, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x5a, 0x0a, 0x1e, 0x53, 0x65, + 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x06, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, + 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x21, 0x0a, 0x1f, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x53, 0x74, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x68, 0x75, + 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x22, + 0x21, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, + 0x69, 0x64, 0x22, 0xdf, 0x01, 0x0a, 0x19, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, + 0x69, 0x64, 0x12, 0x38, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, + 0x68, 0x61, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x09, 0x68, 0x61, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x6f, + 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2e, 0x0a, 0x13, 0x68, 0x61, 0x73, 0x5f, 0x6f, 0x76, 0x65, 0x72, + 0x72, 0x69, 0x64, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x11, 0x68, 0x61, 0x73, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x22, 0x33, 0x0a, 0x1a, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x3c, 0x0a, 0x12, 0x52, 0x65, 0x70, + 0x6c, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, + 0x69, 0x64, 0x31, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x32, 0x22, 0x2c, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x6c, 0x61, + 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, + 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x1e, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x63, 0x69, 0x64, 0x22, 0x23, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x05, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x22, 0x21, 0x0a, 0x0d, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x22, 0x10, 0x0a, + 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x55, 0x0a, 0x10, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, + 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, + 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x4d, 0x0a, 0x11, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4c, + 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x6c, + 0x6f, 0x67, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6c, 0x6f, 0x67, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x24, 0x0a, 0x0e, 0x43, 0x69, 0x64, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0x4a, 0x0a, 0x0f, 0x43, + 0x69, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, + 0x0a, 0x09, 0x63, 0x69, 0x64, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x69, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x63, + 0x69, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x2a, 0x0a, 0x0e, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x22, 0x2b, 0x0a, 0x0f, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, + 0x22, 0x6d, 0x0a, 0x11, 0x4e, 0x65, 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, + 0x6d, 0x61, 0x6b, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0b, 0x6d, 0x61, 0x6b, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, + 0x2e, 0x0a, 0x12, 0x4e, 0x65, 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, + 0x12, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0x4e, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x6f, + 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x65, 0x73, 0x22, 0x4c, 0x0a, 0x0e, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x22, 0x11, 0x0a, 0x0f, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x0a, 0x12, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x33, + 0x0a, 0x13, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x22, 0x68, 0x0a, 0x14, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, + 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x27, 0x0a, + 0x15, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x22, 0x30, 0x0a, 0x17, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x43, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x0a, 0x11, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, + 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, + 0x22, 0x54, 0x0a, 0x12, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, + 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x0a, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x22, 0x33, 0x0a, 0x1a, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x6f, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x66, 0x0a, 0x1b, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x6f, 0x72, 0x4a, + 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x22, 0x2e, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, + 0x69, 0x64, 0x73, 0x22, 0x5d, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, + 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, + 0x62, 0x73, 0x22, 0x31, 0x0a, 0x1b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0x60, 0x0a, 0x1c, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, + 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x22, 0x33, 0x0a, 0x1d, 0x4c, 0x61, 0x74, 0x65, 0x73, + 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0x62, 0x0a, 0x1e, + 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, + 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x4a, 0x6f, 0x62, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, + 0x22, 0x38, 0x0a, 0x22, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0x67, 0x0a, 0x23, 0x4c, 0x61, + 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, + 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, + 0x6f, 0x62, 0x73, 0x22, 0x2f, 0x0a, 0x19, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, + 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, + 0x63, 0x69, 0x64, 0x73, 0x22, 0xbb, 0x03, 0x0a, 0x1a, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, + 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, + 0x12, 0x4d, 0x0a, 0x13, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x11, 0x71, 0x75, + 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, + 0x53, 0x0a, 0x16, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x14, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x58, 0x0a, 0x19, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x66, + 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, + 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, + 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x16, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, + 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x62, + 0x0a, 0x1e, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x66, 0x75, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, + 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x1b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, + 0x62, 0x73, 0x22, 0x32, 0x0a, 0x17, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, + 0x07, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, + 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x73, 0x22, 0x5a, 0x0a, 0x18, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, + 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, + 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x0a, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, + 0x6f, 0x62, 0x22, 0x59, 0x0a, 0x19, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, 0x65, 0x61, + 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x3c, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x5c, 0x0a, + 0x1a, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, + 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x5b, 0x0a, 0x1b, 0x52, + 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x06, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x60, 0x0a, 0x1c, 0x52, 0x65, 0x74, 0x72, + 0x69, 0x65, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x6f, 0x77, 0x65, + 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x91, 0x01, 0x0a, 0x09, 0x4a, + 0x6f, 0x62, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x71, 0x75, 0x65, 0x75, + 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, + 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x09, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x21, + 0x0a, 0x0c, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, + 0x6c, 0x12, 0x2b, 0x0a, 0x11, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x75, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x6c, 0x61, + 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x22, 0x66, + 0x0a, 0x08, 0x41, 0x64, 0x64, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, + 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x2d, 0x0a, 0x0a, 0x49, 0x70, 0x66, 0x73, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0xad, 0x01, 0x0a, 0x09, 0x48, 0x6f, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x25, 0x0a, + 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x75, 0x6e, 0x66, 0x72, 0x65, 0x65, 0x7a, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x55, 0x6e, 0x66, 0x72, + 0x65, 0x65, 0x7a, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x75, 0x6e, 0x66, 0x72, 0x65, 0x65, 0x7a, 0x65, + 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x10, 0x75, 0x6e, 0x66, 0x72, 0x65, 0x65, 0x7a, 0x65, 0x4d, 0x61, 0x78, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x69, 0x70, 0x66, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x70, 0x66, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, + 0x04, 0x69, 0x70, 0x66, 0x73, 0x22, 0x42, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x6e, 0x65, + 0x77, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, + 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, + 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x98, 0x03, 0x0a, 0x09, 0x46, 0x69, + 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x65, 0x61, 0x6c, 0x5f, 0x6d, + 0x69, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0f, 0x64, 0x65, 0x61, 0x6c, 0x4d, 0x69, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x5f, 0x6d, + 0x69, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x63, + 0x6c, 0x75, 0x64, 0x65, 0x64, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x74, + 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x69, 0x6e, 0x65, + 0x72, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, + 0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x72, 0x65, 0x6e, 0x65, 0x77, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, + 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x52, 0x65, + 0x6e, 0x65, 0x77, 0x52, 0x05, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x72, 0x69, 0x63, + 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x66, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, + 0x76, 0x61, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x66, 0x61, 0x73, 0x74, 0x52, + 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, 0x6c, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x65, 0x61, 0x6c, + 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0f, 0x64, 0x65, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4f, 0x66, + 0x66, 0x73, 0x65, 0x74, 0x22, 0x60, 0x0a, 0x0a, 0x43, 0x6f, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x08, + 0x66, 0x69, 0x6c, 0x65, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x66, 0x69, + 0x6c, 0x65, 0x63, 0x6f, 0x69, 0x6e, 0x22, 0x92, 0x01, 0x0a, 0x0d, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2e, 0x0a, 0x03, 0x68, 0x6f, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, + 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x52, 0x03, 0x68, 0x6f, 0x74, 0x12, 0x31, 0x0a, 0x04, 0x63, 0x6f, 0x6c, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, + 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x64, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x04, 0x63, 0x6f, 0x6c, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, + 0x65, 0x70, 0x61, 0x69, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0a, 0x72, 0x65, 0x70, 0x61, 0x69, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x27, 0x0a, 0x0b, 0x49, + 0x70, 0x66, 0x73, 0x48, 0x6f, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x22, 0x6b, 0x0a, 0x07, 0x48, 0x6f, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x32, 0x0a, + 0x04, 0x69, 0x70, 0x66, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x6f, + 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x49, 0x70, 0x66, 0x73, 0x48, 0x6f, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x70, 0x66, + 0x73, 0x22, 0x85, 0x02, 0x0a, 0x0a, 0x46, 0x69, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x63, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, + 0x43, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x65, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x65, 0x64, 0x12, 0x1a, 0x0a, + 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, + 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0a, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, + 0x70, 0x69, 0x65, 0x63, 0x65, 0x5f, 0x63, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x70, 0x69, 0x65, 0x63, 0x65, 0x43, 0x69, 0x64, 0x22, 0x75, 0x0a, 0x07, 0x46, 0x69, 0x6c, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x43, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, + 0x69, 0x7a, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, + 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x53, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, + 0x22, 0x5c, 0x0a, 0x08, 0x43, 0x6f, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x63, 0x6f, + 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, + 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x63, 0x6f, 0x69, 0x6e, 0x22, 0xaf, + 0x01, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x15, + 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x12, 0x2c, 0x0a, 0x03, 0x68, 0x6f, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x03, 0x68, 0x6f, 0x74, 0x12, + 0x2f, 0x0a, 0x04, 0x63, 0x6f, 0x6c, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x63, 0x6f, 0x6c, 0x64, + 0x22, 0xac, 0x04, 0x0a, 0x07, 0x43, 0x69, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, + 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x61, + 0x0a, 0x1c, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x5f, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x19, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, + 0x73, 0x68, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x50, 0x0a, 0x14, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x12, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, + 0x6e, 0x66, 0x6f, 0x12, 0x4d, 0x0a, 0x13, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, + 0x11, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, + 0x62, 0x73, 0x12, 0x51, 0x0a, 0x15, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, + 0x52, 0x13, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x56, 0x0a, 0x18, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, + 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, + 0x62, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, + 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x15, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, + 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x60, 0x0a, + 0x1d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, + 0x75, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x4a, 0x6f, 0x62, 0x52, 0x1a, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x22, + 0xf1, 0x02, 0x0a, 0x08, 0x44, 0x65, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0c, + 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x43, 0x69, 0x64, 0x12, + 0x19, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x07, 0x73, 0x74, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, + 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x12, + 0x1b, 0x0a, 0x09, 0x70, 0x69, 0x65, 0x63, 0x65, 0x5f, 0x63, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x70, 0x69, 0x65, 0x63, 0x65, 0x43, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x12, 0x26, 0x0a, 0x0f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x70, 0x72, 0x69, 0x63, 0x65, + 0x50, 0x65, 0x72, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x65, 0x61, 0x6c, 0x5f, 0x69, 0x64, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x64, 0x65, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x29, + 0x0a, 0x10, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x22, 0xb4, 0x02, 0x0a, 0x0a, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, + 0x6f, 0x62, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x70, 0x69, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x69, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x70, 0x6f, + 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x61, 0x75, 0x73, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x61, 0x75, + 0x73, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x65, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, + 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, + 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x61, 0x6c, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x08, 0x64, 0x65, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3d, 0x0a, 0x0b, + 0x64, 0x65, 0x61, 0x6c, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x61, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, + 0x0a, 0x64, 0x65, 0x61, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x5e, 0x0a, 0x09, 0x44, 0x65, + 0x61, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x5f, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x43, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, + 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x65, 0x72, + 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x61, 0x0a, 0x08, 0x4c, 0x6f, + 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, + 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xbb, 0x01, + 0x0a, 0x11, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x66, 0x72, 0x6f, 0x6d, 0x41, 0x64, 0x64, + 0x72, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x69, 0x64, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x43, 0x69, 0x64, 0x73, 0x12, + 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x70, 0x65, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, + 0x65, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x63, 0x6c, + 0x75, 0x64, 0x65, 0x5f, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x12, 0x1c, 0x0a, + 0x09, 0x61, 0x73, 0x63, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x09, 0x61, 0x73, 0x63, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x22, 0xf8, 0x02, 0x0a, 0x0f, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x63, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x43, + 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x74, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, + 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x69, 0x6e, + 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x69, 0x65, 0x63, 0x65, 0x5f, 0x63, 0x69, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x69, 0x65, 0x63, 0x65, 0x43, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, + 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x65, 0x72, + 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x70, 0x72, + 0x69, 0x63, 0x65, 0x50, 0x65, 0x72, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1a, 0x0a, 0x08, + 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, + 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x65, 0x61, 0x6c, + 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x64, 0x65, 0x61, 0x6c, 0x49, + 0x64, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x18, 0x0a, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x0a, 0x08, + 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x72, 0x6f, 0x6f, 0x74, 0x43, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, + 0x3f, 0x0a, 0x09, 0x64, 0x65, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, 0x65, + 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x64, 0x65, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, + 0x22, 0x80, 0x02, 0x0a, 0x11, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, 0x6c, 0x44, 0x65, + 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x63, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x6f, 0x6f, 0x74, 0x43, 0x69, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6e, 0x5f, 0x70, 0x72, 0x69, + 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x70, 0x61, + 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x3a, 0x0a, + 0x19, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, + 0x6c, 0x5f, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x17, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, + 0x6c, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, + 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x12, + 0x22, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x50, 0x65, 0x65, + 0x72, 0x49, 0x64, 0x22, 0x86, 0x01, 0x0a, 0x13, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, + 0x6c, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x64, 0x65, 0x61, + 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, + 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x61, 0x6c, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x08, 0x64, 0x65, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x2a, 0xa0, 0x01, 0x0a, + 0x09, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, 0x16, 0x4a, 0x4f, + 0x42, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x4a, 0x4f, 0x42, 0x5f, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x51, 0x55, 0x45, 0x55, 0x45, 0x44, 0x10, 0x01, 0x12, 0x18, 0x0a, + 0x14, 0x4a, 0x4f, 0x42, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x58, 0x45, 0x43, + 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x4a, 0x4f, 0x42, 0x5f, 0x53, + 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x17, + 0x0a, 0x13, 0x4a, 0x4f, 0x42, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x41, 0x4e, + 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x4a, 0x4f, 0x42, 0x5f, 0x53, + 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x05, 0x32, + 0xfe, 0x16, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x58, 0x0a, 0x09, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x2e, 0x70, + 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x0e, 0x55, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x70, 0x6f, + 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, + 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x79, 0x0a, 0x14, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2e, 0x2e, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x82, 0x01, + 0x0a, 0x17, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x31, 0x2e, 0x70, 0x6f, 0x77, 0x65, + 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, + 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x70, + 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x73, 0x0a, 0x12, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2c, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, + 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, + 0x6c, 0x79, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, + 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x06, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x12, 0x20, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x67, + 0x65, 0x12, 0x1f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x12, 0x5e, 0x0a, 0x0b, 0x52, 0x65, 0x70, 0x6c, + 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x25, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, + 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, + 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, + 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, + 0x1d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, + 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x30, 0x01, 0x12, 0x5a, 0x0a, 0x09, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x6f, 0x67, 0x73, 0x12, + 0x23, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x6f, + 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x52, + 0x0a, 0x07, 0x43, 0x69, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x2e, 0x70, 0x6f, 0x77, 0x65, + 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x69, + 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, + 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x69, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x52, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x2e, + 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x22, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x0a, 0x4e, 0x65, 0x77, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4e, + 0x65, 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x58, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, + 0x12, 0x23, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, + 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, + 0x07, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x12, 0x21, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, + 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, + 0x64, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x6f, + 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x5e, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x25, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, + 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x64, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x12, 0x27, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x70, 0x6f, + 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x0a, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x24, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, + 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x6f, + 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x13, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x6f, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x2d, 0x2e, 0x70, 0x6f, + 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x6f, 0x72, + 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x6f, 0x72, 0x4a, + 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x11, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, + 0x73, 0x12, 0x2b, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, + 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x79, + 0x0a, 0x14, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x2e, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, + 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, + 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7f, 0x0a, 0x16, 0x4c, 0x61, 0x74, + 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, + 0x6f, 0x62, 0x73, 0x12, 0x30, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, + 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, + 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x8e, 0x01, 0x0a, 0x1b, 0x4c, + 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x35, 0x2e, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x36, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x73, 0x0a, 0x12, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, + 0x79, 0x12, 0x2c, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, + 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, + 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x6f, 0x0a, 0x10, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x2a, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2b, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, + 0x01, 0x12, 0x6d, 0x0a, 0x10, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x2a, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, + 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2b, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x73, 0x0a, 0x12, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x2c, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, + 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x79, 0x0a, 0x14, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, + 0x61, 0x6c, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x2e, 0x2e, + 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x61, 0x6c, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, + 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x61, 0x6c, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x42, 0x41, 0x5a, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, + 0x65, 0x78, 0x74, 0x69, 0x6c, 0x65, 0x69, 0x6f, 0x2f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, + 0x74, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x6f, 0x77, 0x65, 0x72, + 0x67, 0x61, 0x74, 0x65, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x75, 0x73, 0x65, + 0x72, 0x50, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_powergate_user_v1_user_proto_rawDescOnce sync.Once + file_powergate_user_v1_user_proto_rawDescData = file_powergate_user_v1_user_proto_rawDesc +) + +func file_powergate_user_v1_user_proto_rawDescGZIP() []byte { + file_powergate_user_v1_user_proto_rawDescOnce.Do(func() { + file_powergate_user_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_powergate_user_v1_user_proto_rawDescData) + }) + return file_powergate_user_v1_user_proto_rawDescData +} + +var file_powergate_user_v1_user_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_powergate_user_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 80) +var file_powergate_user_v1_user_proto_goTypes = []interface{}{ + (JobStatus)(0), // 0: powergate.user.v1.JobStatus + (*BuildInfoRequest)(nil), // 1: powergate.user.v1.BuildInfoRequest + (*BuildInfoResponse)(nil), // 2: powergate.user.v1.BuildInfoResponse + (*UserIdentifierRequest)(nil), // 3: powergate.user.v1.UserIdentifierRequest + (*UserIdentifierResponse)(nil), // 4: powergate.user.v1.UserIdentifierResponse + (*DefaultStorageConfigRequest)(nil), // 5: powergate.user.v1.DefaultStorageConfigRequest + (*DefaultStorageConfigResponse)(nil), // 6: powergate.user.v1.DefaultStorageConfigResponse + (*SetDefaultStorageConfigRequest)(nil), // 7: powergate.user.v1.SetDefaultStorageConfigRequest + (*SetDefaultStorageConfigResponse)(nil), // 8: powergate.user.v1.SetDefaultStorageConfigResponse + (*StageRequest)(nil), // 9: powergate.user.v1.StageRequest + (*StageResponse)(nil), // 10: powergate.user.v1.StageResponse + (*ApplyStorageConfigRequest)(nil), // 11: powergate.user.v1.ApplyStorageConfigRequest + (*ApplyStorageConfigResponse)(nil), // 12: powergate.user.v1.ApplyStorageConfigResponse + (*ReplaceDataRequest)(nil), // 13: powergate.user.v1.ReplaceDataRequest + (*ReplaceDataResponse)(nil), // 14: powergate.user.v1.ReplaceDataResponse + (*GetRequest)(nil), // 15: powergate.user.v1.GetRequest + (*GetResponse)(nil), // 16: powergate.user.v1.GetResponse + (*RemoveRequest)(nil), // 17: powergate.user.v1.RemoveRequest + (*RemoveResponse)(nil), // 18: powergate.user.v1.RemoveResponse + (*WatchLogsRequest)(nil), // 19: powergate.user.v1.WatchLogsRequest + (*WatchLogsResponse)(nil), // 20: powergate.user.v1.WatchLogsResponse + (*CidInfoRequest)(nil), // 21: powergate.user.v1.CidInfoRequest + (*CidInfoResponse)(nil), // 22: powergate.user.v1.CidInfoResponse + (*BalanceRequest)(nil), // 23: powergate.user.v1.BalanceRequest + (*BalanceResponse)(nil), // 24: powergate.user.v1.BalanceResponse + (*NewAddressRequest)(nil), // 25: powergate.user.v1.NewAddressRequest + (*NewAddressResponse)(nil), // 26: powergate.user.v1.NewAddressResponse + (*AddressesRequest)(nil), // 27: powergate.user.v1.AddressesRequest + (*AddressesResponse)(nil), // 28: powergate.user.v1.AddressesResponse + (*SendFilRequest)(nil), // 29: powergate.user.v1.SendFilRequest + (*SendFilResponse)(nil), // 30: powergate.user.v1.SendFilResponse + (*SignMessageRequest)(nil), // 31: powergate.user.v1.SignMessageRequest + (*SignMessageResponse)(nil), // 32: powergate.user.v1.SignMessageResponse + (*VerifyMessageRequest)(nil), // 33: powergate.user.v1.VerifyMessageRequest + (*VerifyMessageResponse)(nil), // 34: powergate.user.v1.VerifyMessageResponse + (*CancelStorageJobRequest)(nil), // 35: powergate.user.v1.CancelStorageJobRequest + (*CancelStorageJobResponse)(nil), // 36: powergate.user.v1.CancelStorageJobResponse + (*StorageJobRequest)(nil), // 37: powergate.user.v1.StorageJobRequest + (*StorageJobResponse)(nil), // 38: powergate.user.v1.StorageJobResponse + (*StorageConfigForJobRequest)(nil), // 39: powergate.user.v1.StorageConfigForJobRequest + (*StorageConfigForJobResponse)(nil), // 40: powergate.user.v1.StorageConfigForJobResponse + (*QueuedStorageJobsRequest)(nil), // 41: powergate.user.v1.QueuedStorageJobsRequest + (*QueuedStorageJobsResponse)(nil), // 42: powergate.user.v1.QueuedStorageJobsResponse + (*ExecutingStorageJobsRequest)(nil), // 43: powergate.user.v1.ExecutingStorageJobsRequest + (*ExecutingStorageJobsResponse)(nil), // 44: powergate.user.v1.ExecutingStorageJobsResponse + (*LatestFinalStorageJobsRequest)(nil), // 45: powergate.user.v1.LatestFinalStorageJobsRequest + (*LatestFinalStorageJobsResponse)(nil), // 46: powergate.user.v1.LatestFinalStorageJobsResponse + (*LatestSuccessfulStorageJobsRequest)(nil), // 47: powergate.user.v1.LatestSuccessfulStorageJobsRequest + (*LatestSuccessfulStorageJobsResponse)(nil), // 48: powergate.user.v1.LatestSuccessfulStorageJobsResponse + (*StorageJobsSummaryRequest)(nil), // 49: powergate.user.v1.StorageJobsSummaryRequest + (*StorageJobsSummaryResponse)(nil), // 50: powergate.user.v1.StorageJobsSummaryResponse + (*WatchStorageJobsRequest)(nil), // 51: powergate.user.v1.WatchStorageJobsRequest + (*WatchStorageJobsResponse)(nil), // 52: powergate.user.v1.WatchStorageJobsResponse + (*StorageDealRecordsRequest)(nil), // 53: powergate.user.v1.StorageDealRecordsRequest + (*StorageDealRecordsResponse)(nil), // 54: powergate.user.v1.StorageDealRecordsResponse + (*RetrievalDealRecordsRequest)(nil), // 55: powergate.user.v1.RetrievalDealRecordsRequest + (*RetrievalDealRecordsResponse)(nil), // 56: powergate.user.v1.RetrievalDealRecordsResponse + (*JobCounts)(nil), // 57: powergate.user.v1.JobCounts + (*AddrInfo)(nil), // 58: powergate.user.v1.AddrInfo + (*IpfsConfig)(nil), // 59: powergate.user.v1.IpfsConfig + (*HotConfig)(nil), // 60: powergate.user.v1.HotConfig + (*FilRenew)(nil), // 61: powergate.user.v1.FilRenew + (*FilConfig)(nil), // 62: powergate.user.v1.FilConfig + (*ColdConfig)(nil), // 63: powergate.user.v1.ColdConfig + (*StorageConfig)(nil), // 64: powergate.user.v1.StorageConfig + (*IpfsHotInfo)(nil), // 65: powergate.user.v1.IpfsHotInfo + (*HotInfo)(nil), // 66: powergate.user.v1.HotInfo + (*FilStorage)(nil), // 67: powergate.user.v1.FilStorage + (*FilInfo)(nil), // 68: powergate.user.v1.FilInfo + (*ColdInfo)(nil), // 69: powergate.user.v1.ColdInfo + (*StorageInfo)(nil), // 70: powergate.user.v1.StorageInfo + (*CidInfo)(nil), // 71: powergate.user.v1.CidInfo + (*DealInfo)(nil), // 72: powergate.user.v1.DealInfo + (*StorageJob)(nil), // 73: powergate.user.v1.StorageJob + (*DealError)(nil), // 74: powergate.user.v1.DealError + (*LogEntry)(nil), // 75: powergate.user.v1.LogEntry + (*DealRecordsConfig)(nil), // 76: powergate.user.v1.DealRecordsConfig + (*StorageDealInfo)(nil), // 77: powergate.user.v1.StorageDealInfo + (*StorageDealRecord)(nil), // 78: powergate.user.v1.StorageDealRecord + (*RetrievalDealInfo)(nil), // 79: powergate.user.v1.RetrievalDealInfo + (*RetrievalDealRecord)(nil), // 80: powergate.user.v1.RetrievalDealRecord +} +var file_powergate_user_v1_user_proto_depIdxs = []int32{ + 64, // 0: powergate.user.v1.DefaultStorageConfigResponse.default_storage_config:type_name -> powergate.user.v1.StorageConfig + 64, // 1: powergate.user.v1.SetDefaultStorageConfigRequest.config:type_name -> powergate.user.v1.StorageConfig + 64, // 2: powergate.user.v1.ApplyStorageConfigRequest.config:type_name -> powergate.user.v1.StorageConfig + 75, // 3: powergate.user.v1.WatchLogsResponse.log_entry:type_name -> powergate.user.v1.LogEntry + 71, // 4: powergate.user.v1.CidInfoResponse.cid_infos:type_name -> powergate.user.v1.CidInfo + 58, // 5: powergate.user.v1.AddressesResponse.addresses:type_name -> powergate.user.v1.AddrInfo + 73, // 6: powergate.user.v1.StorageJobResponse.storage_job:type_name -> powergate.user.v1.StorageJob + 64, // 7: powergate.user.v1.StorageConfigForJobResponse.storage_config:type_name -> powergate.user.v1.StorageConfig + 73, // 8: powergate.user.v1.QueuedStorageJobsResponse.storage_jobs:type_name -> powergate.user.v1.StorageJob + 73, // 9: powergate.user.v1.ExecutingStorageJobsResponse.storage_jobs:type_name -> powergate.user.v1.StorageJob + 73, // 10: powergate.user.v1.LatestFinalStorageJobsResponse.storage_jobs:type_name -> powergate.user.v1.StorageJob + 73, // 11: powergate.user.v1.LatestSuccessfulStorageJobsResponse.storage_jobs:type_name -> powergate.user.v1.StorageJob + 57, // 12: powergate.user.v1.StorageJobsSummaryResponse.job_counts:type_name -> powergate.user.v1.JobCounts + 73, // 13: powergate.user.v1.StorageJobsSummaryResponse.queued_storage_jobs:type_name -> powergate.user.v1.StorageJob + 73, // 14: powergate.user.v1.StorageJobsSummaryResponse.executing_storage_jobs:type_name -> powergate.user.v1.StorageJob + 73, // 15: powergate.user.v1.StorageJobsSummaryResponse.latest_final_storage_jobs:type_name -> powergate.user.v1.StorageJob + 73, // 16: powergate.user.v1.StorageJobsSummaryResponse.latest_successful_storage_jobs:type_name -> powergate.user.v1.StorageJob + 73, // 17: powergate.user.v1.WatchStorageJobsResponse.storage_job:type_name -> powergate.user.v1.StorageJob + 76, // 18: powergate.user.v1.StorageDealRecordsRequest.config:type_name -> powergate.user.v1.DealRecordsConfig + 78, // 19: powergate.user.v1.StorageDealRecordsResponse.records:type_name -> powergate.user.v1.StorageDealRecord + 76, // 20: powergate.user.v1.RetrievalDealRecordsRequest.config:type_name -> powergate.user.v1.DealRecordsConfig + 80, // 21: powergate.user.v1.RetrievalDealRecordsResponse.records:type_name -> powergate.user.v1.RetrievalDealRecord + 59, // 22: powergate.user.v1.HotConfig.ipfs:type_name -> powergate.user.v1.IpfsConfig + 61, // 23: powergate.user.v1.FilConfig.renew:type_name -> powergate.user.v1.FilRenew + 62, // 24: powergate.user.v1.ColdConfig.filecoin:type_name -> powergate.user.v1.FilConfig + 60, // 25: powergate.user.v1.StorageConfig.hot:type_name -> powergate.user.v1.HotConfig + 63, // 26: powergate.user.v1.StorageConfig.cold:type_name -> powergate.user.v1.ColdConfig + 65, // 27: powergate.user.v1.HotInfo.ipfs:type_name -> powergate.user.v1.IpfsHotInfo + 67, // 28: powergate.user.v1.FilInfo.proposals:type_name -> powergate.user.v1.FilStorage + 68, // 29: powergate.user.v1.ColdInfo.filecoin:type_name -> powergate.user.v1.FilInfo + 66, // 30: powergate.user.v1.StorageInfo.hot:type_name -> powergate.user.v1.HotInfo + 69, // 31: powergate.user.v1.StorageInfo.cold:type_name -> powergate.user.v1.ColdInfo + 64, // 32: powergate.user.v1.CidInfo.latest_pushed_storage_config:type_name -> powergate.user.v1.StorageConfig + 70, // 33: powergate.user.v1.CidInfo.current_storage_info:type_name -> powergate.user.v1.StorageInfo + 73, // 34: powergate.user.v1.CidInfo.queued_storage_jobs:type_name -> powergate.user.v1.StorageJob + 73, // 35: powergate.user.v1.CidInfo.executing_storage_job:type_name -> powergate.user.v1.StorageJob + 73, // 36: powergate.user.v1.CidInfo.latest_final_storage_job:type_name -> powergate.user.v1.StorageJob + 73, // 37: powergate.user.v1.CidInfo.latest_successful_storage_job:type_name -> powergate.user.v1.StorageJob + 0, // 38: powergate.user.v1.StorageJob.status:type_name -> powergate.user.v1.JobStatus + 72, // 39: powergate.user.v1.StorageJob.deal_info:type_name -> powergate.user.v1.DealInfo + 74, // 40: powergate.user.v1.StorageJob.deal_errors:type_name -> powergate.user.v1.DealError + 77, // 41: powergate.user.v1.StorageDealRecord.deal_info:type_name -> powergate.user.v1.StorageDealInfo + 79, // 42: powergate.user.v1.RetrievalDealRecord.deal_info:type_name -> powergate.user.v1.RetrievalDealInfo + 1, // 43: powergate.user.v1.UserService.BuildInfo:input_type -> powergate.user.v1.BuildInfoRequest + 3, // 44: powergate.user.v1.UserService.UserIdentifier:input_type -> powergate.user.v1.UserIdentifierRequest + 5, // 45: powergate.user.v1.UserService.DefaultStorageConfig:input_type -> powergate.user.v1.DefaultStorageConfigRequest + 7, // 46: powergate.user.v1.UserService.SetDefaultStorageConfig:input_type -> powergate.user.v1.SetDefaultStorageConfigRequest + 11, // 47: powergate.user.v1.UserService.ApplyStorageConfig:input_type -> powergate.user.v1.ApplyStorageConfigRequest + 17, // 48: powergate.user.v1.UserService.Remove:input_type -> powergate.user.v1.RemoveRequest + 9, // 49: powergate.user.v1.UserService.Stage:input_type -> powergate.user.v1.StageRequest + 13, // 50: powergate.user.v1.UserService.ReplaceData:input_type -> powergate.user.v1.ReplaceDataRequest + 15, // 51: powergate.user.v1.UserService.Get:input_type -> powergate.user.v1.GetRequest + 19, // 52: powergate.user.v1.UserService.WatchLogs:input_type -> powergate.user.v1.WatchLogsRequest + 21, // 53: powergate.user.v1.UserService.CidInfo:input_type -> powergate.user.v1.CidInfoRequest + 23, // 54: powergate.user.v1.UserService.Balance:input_type -> powergate.user.v1.BalanceRequest + 25, // 55: powergate.user.v1.UserService.NewAddress:input_type -> powergate.user.v1.NewAddressRequest + 27, // 56: powergate.user.v1.UserService.Addresses:input_type -> powergate.user.v1.AddressesRequest + 29, // 57: powergate.user.v1.UserService.SendFil:input_type -> powergate.user.v1.SendFilRequest + 31, // 58: powergate.user.v1.UserService.SignMessage:input_type -> powergate.user.v1.SignMessageRequest + 33, // 59: powergate.user.v1.UserService.VerifyMessage:input_type -> powergate.user.v1.VerifyMessageRequest + 37, // 60: powergate.user.v1.UserService.StorageJob:input_type -> powergate.user.v1.StorageJobRequest + 39, // 61: powergate.user.v1.UserService.StorageConfigForJob:input_type -> powergate.user.v1.StorageConfigForJobRequest + 41, // 62: powergate.user.v1.UserService.QueuedStorageJobs:input_type -> powergate.user.v1.QueuedStorageJobsRequest + 43, // 63: powergate.user.v1.UserService.ExecutingStorageJobs:input_type -> powergate.user.v1.ExecutingStorageJobsRequest + 45, // 64: powergate.user.v1.UserService.LatestFinalStorageJobs:input_type -> powergate.user.v1.LatestFinalStorageJobsRequest + 47, // 65: powergate.user.v1.UserService.LatestSuccessfulStorageJobs:input_type -> powergate.user.v1.LatestSuccessfulStorageJobsRequest + 49, // 66: powergate.user.v1.UserService.StorageJobsSummary:input_type -> powergate.user.v1.StorageJobsSummaryRequest + 51, // 67: powergate.user.v1.UserService.WatchStorageJobs:input_type -> powergate.user.v1.WatchStorageJobsRequest + 35, // 68: powergate.user.v1.UserService.CancelStorageJob:input_type -> powergate.user.v1.CancelStorageJobRequest + 53, // 69: powergate.user.v1.UserService.StorageDealRecords:input_type -> powergate.user.v1.StorageDealRecordsRequest + 55, // 70: powergate.user.v1.UserService.RetrievalDealRecords:input_type -> powergate.user.v1.RetrievalDealRecordsRequest + 2, // 71: powergate.user.v1.UserService.BuildInfo:output_type -> powergate.user.v1.BuildInfoResponse + 4, // 72: powergate.user.v1.UserService.UserIdentifier:output_type -> powergate.user.v1.UserIdentifierResponse + 6, // 73: powergate.user.v1.UserService.DefaultStorageConfig:output_type -> powergate.user.v1.DefaultStorageConfigResponse + 8, // 74: powergate.user.v1.UserService.SetDefaultStorageConfig:output_type -> powergate.user.v1.SetDefaultStorageConfigResponse + 12, // 75: powergate.user.v1.UserService.ApplyStorageConfig:output_type -> powergate.user.v1.ApplyStorageConfigResponse + 18, // 76: powergate.user.v1.UserService.Remove:output_type -> powergate.user.v1.RemoveResponse + 10, // 77: powergate.user.v1.UserService.Stage:output_type -> powergate.user.v1.StageResponse + 14, // 78: powergate.user.v1.UserService.ReplaceData:output_type -> powergate.user.v1.ReplaceDataResponse + 16, // 79: powergate.user.v1.UserService.Get:output_type -> powergate.user.v1.GetResponse + 20, // 80: powergate.user.v1.UserService.WatchLogs:output_type -> powergate.user.v1.WatchLogsResponse + 22, // 81: powergate.user.v1.UserService.CidInfo:output_type -> powergate.user.v1.CidInfoResponse + 24, // 82: powergate.user.v1.UserService.Balance:output_type -> powergate.user.v1.BalanceResponse + 26, // 83: powergate.user.v1.UserService.NewAddress:output_type -> powergate.user.v1.NewAddressResponse + 28, // 84: powergate.user.v1.UserService.Addresses:output_type -> powergate.user.v1.AddressesResponse + 30, // 85: powergate.user.v1.UserService.SendFil:output_type -> powergate.user.v1.SendFilResponse + 32, // 86: powergate.user.v1.UserService.SignMessage:output_type -> powergate.user.v1.SignMessageResponse + 34, // 87: powergate.user.v1.UserService.VerifyMessage:output_type -> powergate.user.v1.VerifyMessageResponse + 38, // 88: powergate.user.v1.UserService.StorageJob:output_type -> powergate.user.v1.StorageJobResponse + 40, // 89: powergate.user.v1.UserService.StorageConfigForJob:output_type -> powergate.user.v1.StorageConfigForJobResponse + 42, // 90: powergate.user.v1.UserService.QueuedStorageJobs:output_type -> powergate.user.v1.QueuedStorageJobsResponse + 44, // 91: powergate.user.v1.UserService.ExecutingStorageJobs:output_type -> powergate.user.v1.ExecutingStorageJobsResponse + 46, // 92: powergate.user.v1.UserService.LatestFinalStorageJobs:output_type -> powergate.user.v1.LatestFinalStorageJobsResponse + 48, // 93: powergate.user.v1.UserService.LatestSuccessfulStorageJobs:output_type -> powergate.user.v1.LatestSuccessfulStorageJobsResponse + 50, // 94: powergate.user.v1.UserService.StorageJobsSummary:output_type -> powergate.user.v1.StorageJobsSummaryResponse + 52, // 95: powergate.user.v1.UserService.WatchStorageJobs:output_type -> powergate.user.v1.WatchStorageJobsResponse + 36, // 96: powergate.user.v1.UserService.CancelStorageJob:output_type -> powergate.user.v1.CancelStorageJobResponse + 54, // 97: powergate.user.v1.UserService.StorageDealRecords:output_type -> powergate.user.v1.StorageDealRecordsResponse + 56, // 98: powergate.user.v1.UserService.RetrievalDealRecords:output_type -> powergate.user.v1.RetrievalDealRecordsResponse + 71, // [71:99] is the sub-list for method output_type + 43, // [43:71] is the sub-list for method input_type + 43, // [43:43] is the sub-list for extension type_name + 43, // [43:43] is the sub-list for extension extendee + 0, // [0:43] is the sub-list for field type_name +} + +func init() { file_powergate_user_v1_user_proto_init() } +func file_powergate_user_v1_user_proto_init() { + if File_powergate_user_v1_user_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_powergate_user_v1_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BuildInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BuildInfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserIdentifierRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserIdentifierResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DefaultStorageConfigRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DefaultStorageConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetDefaultStorageConfigRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetDefaultStorageConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplyStorageConfigRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplyStorageConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplaceDataRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplaceDataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WatchLogsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WatchLogsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CidInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CidInfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BalanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BalanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NewAddressRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NewAddressResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddressesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddressesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendFilRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendFilResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignMessageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignMessageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifyMessageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifyMessageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelStorageJobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelStorageJobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageJobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageJobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageConfigForJobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageConfigForJobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueuedStorageJobsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueuedStorageJobsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutingStorageJobsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutingStorageJobsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LatestFinalStorageJobsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LatestFinalStorageJobsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LatestSuccessfulStorageJobsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LatestSuccessfulStorageJobsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageJobsSummaryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageJobsSummaryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WatchStorageJobsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WatchStorageJobsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageDealRecordsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageDealRecordsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RetrievalDealRecordsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RetrievalDealRecordsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JobCounts); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddrInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IpfsConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HotConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FilRenew); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FilConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ColdConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IpfsHotInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HotInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FilStorage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FilInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ColdInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CidInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DealInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageJob); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DealError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LogEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DealRecordsConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageDealInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageDealRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RetrievalDealInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_powergate_user_v1_user_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RetrievalDealRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_powergate_user_v1_user_proto_rawDesc, + NumEnums: 1, + NumMessages: 80, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_powergate_user_v1_user_proto_goTypes, + DependencyIndexes: file_powergate_user_v1_user_proto_depIdxs, + EnumInfos: file_powergate_user_v1_user_proto_enumTypes, + MessageInfos: file_powergate_user_v1_user_proto_msgTypes, + }.Build() + File_powergate_user_v1_user_proto = out.File + file_powergate_user_v1_user_proto_rawDesc = nil + file_powergate_user_v1_user_proto_goTypes = nil + file_powergate_user_v1_user_proto_depIdxs = nil +} diff --git a/api/gen/powergate/user/v1/user_grpc.pb.go b/api/gen/powergate/user/v1/user_grpc.pb.go new file mode 100644 index 000000000..d18084a8a --- /dev/null +++ b/api/gen/powergate/user/v1/user_grpc.pb.go @@ -0,0 +1,1197 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package userPb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion7 + +// UserServiceClient is the client API for UserService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type UserServiceClient interface { + // Top level + BuildInfo(ctx context.Context, in *BuildInfoRequest, opts ...grpc.CallOption) (*BuildInfoResponse, error) + UserIdentifier(ctx context.Context, in *UserIdentifierRequest, opts ...grpc.CallOption) (*UserIdentifierResponse, error) + // Storage config + DefaultStorageConfig(ctx context.Context, in *DefaultStorageConfigRequest, opts ...grpc.CallOption) (*DefaultStorageConfigResponse, error) + SetDefaultStorageConfig(ctx context.Context, in *SetDefaultStorageConfigRequest, opts ...grpc.CallOption) (*SetDefaultStorageConfigResponse, error) + ApplyStorageConfig(ctx context.Context, in *ApplyStorageConfigRequest, opts ...grpc.CallOption) (*ApplyStorageConfigResponse, error) + Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) + // Data + Stage(ctx context.Context, opts ...grpc.CallOption) (UserService_StageClient, error) + ReplaceData(ctx context.Context, in *ReplaceDataRequest, opts ...grpc.CallOption) (*ReplaceDataResponse, error) + Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (UserService_GetClient, error) + WatchLogs(ctx context.Context, in *WatchLogsRequest, opts ...grpc.CallOption) (UserService_WatchLogsClient, error) + CidInfo(ctx context.Context, in *CidInfoRequest, opts ...grpc.CallOption) (*CidInfoResponse, error) + // Wallet + Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error) + NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) + Addresses(ctx context.Context, in *AddressesRequest, opts ...grpc.CallOption) (*AddressesResponse, error) + SendFil(ctx context.Context, in *SendFilRequest, opts ...grpc.CallOption) (*SendFilResponse, error) + SignMessage(ctx context.Context, in *SignMessageRequest, opts ...grpc.CallOption) (*SignMessageResponse, error) + VerifyMessage(ctx context.Context, in *VerifyMessageRequest, opts ...grpc.CallOption) (*VerifyMessageResponse, error) + // Storage Jobs + StorageJob(ctx context.Context, in *StorageJobRequest, opts ...grpc.CallOption) (*StorageJobResponse, error) + StorageConfigForJob(ctx context.Context, in *StorageConfigForJobRequest, opts ...grpc.CallOption) (*StorageConfigForJobResponse, error) + QueuedStorageJobs(ctx context.Context, in *QueuedStorageJobsRequest, opts ...grpc.CallOption) (*QueuedStorageJobsResponse, error) + ExecutingStorageJobs(ctx context.Context, in *ExecutingStorageJobsRequest, opts ...grpc.CallOption) (*ExecutingStorageJobsResponse, error) + LatestFinalStorageJobs(ctx context.Context, in *LatestFinalStorageJobsRequest, opts ...grpc.CallOption) (*LatestFinalStorageJobsResponse, error) + LatestSuccessfulStorageJobs(ctx context.Context, in *LatestSuccessfulStorageJobsRequest, opts ...grpc.CallOption) (*LatestSuccessfulStorageJobsResponse, error) + StorageJobsSummary(ctx context.Context, in *StorageJobsSummaryRequest, opts ...grpc.CallOption) (*StorageJobsSummaryResponse, error) + WatchStorageJobs(ctx context.Context, in *WatchStorageJobsRequest, opts ...grpc.CallOption) (UserService_WatchStorageJobsClient, error) + CancelStorageJob(ctx context.Context, in *CancelStorageJobRequest, opts ...grpc.CallOption) (*CancelStorageJobResponse, error) + // Deals + StorageDealRecords(ctx context.Context, in *StorageDealRecordsRequest, opts ...grpc.CallOption) (*StorageDealRecordsResponse, error) + RetrievalDealRecords(ctx context.Context, in *RetrievalDealRecordsRequest, opts ...grpc.CallOption) (*RetrievalDealRecordsResponse, error) +} + +type userServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient { + return &userServiceClient{cc} +} + +func (c *userServiceClient) BuildInfo(ctx context.Context, in *BuildInfoRequest, opts ...grpc.CallOption) (*BuildInfoResponse, error) { + out := new(BuildInfoResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/BuildInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) UserIdentifier(ctx context.Context, in *UserIdentifierRequest, opts ...grpc.CallOption) (*UserIdentifierResponse, error) { + out := new(UserIdentifierResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/UserIdentifier", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) DefaultStorageConfig(ctx context.Context, in *DefaultStorageConfigRequest, opts ...grpc.CallOption) (*DefaultStorageConfigResponse, error) { + out := new(DefaultStorageConfigResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/DefaultStorageConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) SetDefaultStorageConfig(ctx context.Context, in *SetDefaultStorageConfigRequest, opts ...grpc.CallOption) (*SetDefaultStorageConfigResponse, error) { + out := new(SetDefaultStorageConfigResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/SetDefaultStorageConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) ApplyStorageConfig(ctx context.Context, in *ApplyStorageConfigRequest, opts ...grpc.CallOption) (*ApplyStorageConfigResponse, error) { + out := new(ApplyStorageConfigResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/ApplyStorageConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) { + out := new(RemoveResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/Remove", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) Stage(ctx context.Context, opts ...grpc.CallOption) (UserService_StageClient, error) { + stream, err := c.cc.NewStream(ctx, &_UserService_serviceDesc.Streams[0], "/powergate.user.v1.UserService/Stage", opts...) + if err != nil { + return nil, err + } + x := &userServiceStageClient{stream} + return x, nil +} + +type UserService_StageClient interface { + Send(*StageRequest) error + CloseAndRecv() (*StageResponse, error) + grpc.ClientStream +} + +type userServiceStageClient struct { + grpc.ClientStream +} + +func (x *userServiceStageClient) Send(m *StageRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *userServiceStageClient) CloseAndRecv() (*StageResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(StageResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *userServiceClient) ReplaceData(ctx context.Context, in *ReplaceDataRequest, opts ...grpc.CallOption) (*ReplaceDataResponse, error) { + out := new(ReplaceDataResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/ReplaceData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (UserService_GetClient, error) { + stream, err := c.cc.NewStream(ctx, &_UserService_serviceDesc.Streams[1], "/powergate.user.v1.UserService/Get", opts...) + if err != nil { + return nil, err + } + x := &userServiceGetClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type UserService_GetClient interface { + Recv() (*GetResponse, error) + grpc.ClientStream +} + +type userServiceGetClient struct { + grpc.ClientStream +} + +func (x *userServiceGetClient) Recv() (*GetResponse, error) { + m := new(GetResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *userServiceClient) WatchLogs(ctx context.Context, in *WatchLogsRequest, opts ...grpc.CallOption) (UserService_WatchLogsClient, error) { + stream, err := c.cc.NewStream(ctx, &_UserService_serviceDesc.Streams[2], "/powergate.user.v1.UserService/WatchLogs", opts...) + if err != nil { + return nil, err + } + x := &userServiceWatchLogsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type UserService_WatchLogsClient interface { + Recv() (*WatchLogsResponse, error) + grpc.ClientStream +} + +type userServiceWatchLogsClient struct { + grpc.ClientStream +} + +func (x *userServiceWatchLogsClient) Recv() (*WatchLogsResponse, error) { + m := new(WatchLogsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *userServiceClient) CidInfo(ctx context.Context, in *CidInfoRequest, opts ...grpc.CallOption) (*CidInfoResponse, error) { + out := new(CidInfoResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/CidInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error) { + out := new(BalanceResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/Balance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) { + out := new(NewAddressResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/NewAddress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) Addresses(ctx context.Context, in *AddressesRequest, opts ...grpc.CallOption) (*AddressesResponse, error) { + out := new(AddressesResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/Addresses", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) SendFil(ctx context.Context, in *SendFilRequest, opts ...grpc.CallOption) (*SendFilResponse, error) { + out := new(SendFilResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/SendFil", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) SignMessage(ctx context.Context, in *SignMessageRequest, opts ...grpc.CallOption) (*SignMessageResponse, error) { + out := new(SignMessageResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/SignMessage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) VerifyMessage(ctx context.Context, in *VerifyMessageRequest, opts ...grpc.CallOption) (*VerifyMessageResponse, error) { + out := new(VerifyMessageResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/VerifyMessage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) StorageJob(ctx context.Context, in *StorageJobRequest, opts ...grpc.CallOption) (*StorageJobResponse, error) { + out := new(StorageJobResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/StorageJob", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) StorageConfigForJob(ctx context.Context, in *StorageConfigForJobRequest, opts ...grpc.CallOption) (*StorageConfigForJobResponse, error) { + out := new(StorageConfigForJobResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/StorageConfigForJob", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) QueuedStorageJobs(ctx context.Context, in *QueuedStorageJobsRequest, opts ...grpc.CallOption) (*QueuedStorageJobsResponse, error) { + out := new(QueuedStorageJobsResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/QueuedStorageJobs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) ExecutingStorageJobs(ctx context.Context, in *ExecutingStorageJobsRequest, opts ...grpc.CallOption) (*ExecutingStorageJobsResponse, error) { + out := new(ExecutingStorageJobsResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/ExecutingStorageJobs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) LatestFinalStorageJobs(ctx context.Context, in *LatestFinalStorageJobsRequest, opts ...grpc.CallOption) (*LatestFinalStorageJobsResponse, error) { + out := new(LatestFinalStorageJobsResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/LatestFinalStorageJobs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) LatestSuccessfulStorageJobs(ctx context.Context, in *LatestSuccessfulStorageJobsRequest, opts ...grpc.CallOption) (*LatestSuccessfulStorageJobsResponse, error) { + out := new(LatestSuccessfulStorageJobsResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/LatestSuccessfulStorageJobs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) StorageJobsSummary(ctx context.Context, in *StorageJobsSummaryRequest, opts ...grpc.CallOption) (*StorageJobsSummaryResponse, error) { + out := new(StorageJobsSummaryResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/StorageJobsSummary", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) WatchStorageJobs(ctx context.Context, in *WatchStorageJobsRequest, opts ...grpc.CallOption) (UserService_WatchStorageJobsClient, error) { + stream, err := c.cc.NewStream(ctx, &_UserService_serviceDesc.Streams[3], "/powergate.user.v1.UserService/WatchStorageJobs", opts...) + if err != nil { + return nil, err + } + x := &userServiceWatchStorageJobsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type UserService_WatchStorageJobsClient interface { + Recv() (*WatchStorageJobsResponse, error) + grpc.ClientStream +} + +type userServiceWatchStorageJobsClient struct { + grpc.ClientStream +} + +func (x *userServiceWatchStorageJobsClient) Recv() (*WatchStorageJobsResponse, error) { + m := new(WatchStorageJobsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *userServiceClient) CancelStorageJob(ctx context.Context, in *CancelStorageJobRequest, opts ...grpc.CallOption) (*CancelStorageJobResponse, error) { + out := new(CancelStorageJobResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/CancelStorageJob", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) StorageDealRecords(ctx context.Context, in *StorageDealRecordsRequest, opts ...grpc.CallOption) (*StorageDealRecordsResponse, error) { + out := new(StorageDealRecordsResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/StorageDealRecords", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) RetrievalDealRecords(ctx context.Context, in *RetrievalDealRecordsRequest, opts ...grpc.CallOption) (*RetrievalDealRecordsResponse, error) { + out := new(RetrievalDealRecordsResponse) + err := c.cc.Invoke(ctx, "/powergate.user.v1.UserService/RetrievalDealRecords", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// UserServiceServer is the server API for UserService service. +// All implementations must embed UnimplementedUserServiceServer +// for forward compatibility +type UserServiceServer interface { + // Top level + BuildInfo(context.Context, *BuildInfoRequest) (*BuildInfoResponse, error) + UserIdentifier(context.Context, *UserIdentifierRequest) (*UserIdentifierResponse, error) + // Storage config + DefaultStorageConfig(context.Context, *DefaultStorageConfigRequest) (*DefaultStorageConfigResponse, error) + SetDefaultStorageConfig(context.Context, *SetDefaultStorageConfigRequest) (*SetDefaultStorageConfigResponse, error) + ApplyStorageConfig(context.Context, *ApplyStorageConfigRequest) (*ApplyStorageConfigResponse, error) + Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) + // Data + Stage(UserService_StageServer) error + ReplaceData(context.Context, *ReplaceDataRequest) (*ReplaceDataResponse, error) + Get(*GetRequest, UserService_GetServer) error + WatchLogs(*WatchLogsRequest, UserService_WatchLogsServer) error + CidInfo(context.Context, *CidInfoRequest) (*CidInfoResponse, error) + // Wallet + Balance(context.Context, *BalanceRequest) (*BalanceResponse, error) + NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error) + Addresses(context.Context, *AddressesRequest) (*AddressesResponse, error) + SendFil(context.Context, *SendFilRequest) (*SendFilResponse, error) + SignMessage(context.Context, *SignMessageRequest) (*SignMessageResponse, error) + VerifyMessage(context.Context, *VerifyMessageRequest) (*VerifyMessageResponse, error) + // Storage Jobs + StorageJob(context.Context, *StorageJobRequest) (*StorageJobResponse, error) + StorageConfigForJob(context.Context, *StorageConfigForJobRequest) (*StorageConfigForJobResponse, error) + QueuedStorageJobs(context.Context, *QueuedStorageJobsRequest) (*QueuedStorageJobsResponse, error) + ExecutingStorageJobs(context.Context, *ExecutingStorageJobsRequest) (*ExecutingStorageJobsResponse, error) + LatestFinalStorageJobs(context.Context, *LatestFinalStorageJobsRequest) (*LatestFinalStorageJobsResponse, error) + LatestSuccessfulStorageJobs(context.Context, *LatestSuccessfulStorageJobsRequest) (*LatestSuccessfulStorageJobsResponse, error) + StorageJobsSummary(context.Context, *StorageJobsSummaryRequest) (*StorageJobsSummaryResponse, error) + WatchStorageJobs(*WatchStorageJobsRequest, UserService_WatchStorageJobsServer) error + CancelStorageJob(context.Context, *CancelStorageJobRequest) (*CancelStorageJobResponse, error) + // Deals + StorageDealRecords(context.Context, *StorageDealRecordsRequest) (*StorageDealRecordsResponse, error) + RetrievalDealRecords(context.Context, *RetrievalDealRecordsRequest) (*RetrievalDealRecordsResponse, error) + mustEmbedUnimplementedUserServiceServer() +} + +// UnimplementedUserServiceServer must be embedded to have forward compatible implementations. +type UnimplementedUserServiceServer struct { +} + +func (UnimplementedUserServiceServer) BuildInfo(context.Context, *BuildInfoRequest) (*BuildInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BuildInfo not implemented") +} +func (UnimplementedUserServiceServer) UserIdentifier(context.Context, *UserIdentifierRequest) (*UserIdentifierResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserIdentifier not implemented") +} +func (UnimplementedUserServiceServer) DefaultStorageConfig(context.Context, *DefaultStorageConfigRequest) (*DefaultStorageConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DefaultStorageConfig not implemented") +} +func (UnimplementedUserServiceServer) SetDefaultStorageConfig(context.Context, *SetDefaultStorageConfigRequest) (*SetDefaultStorageConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetDefaultStorageConfig not implemented") +} +func (UnimplementedUserServiceServer) ApplyStorageConfig(context.Context, *ApplyStorageConfigRequest) (*ApplyStorageConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ApplyStorageConfig not implemented") +} +func (UnimplementedUserServiceServer) Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented") +} +func (UnimplementedUserServiceServer) Stage(UserService_StageServer) error { + return status.Errorf(codes.Unimplemented, "method Stage not implemented") +} +func (UnimplementedUserServiceServer) ReplaceData(context.Context, *ReplaceDataRequest) (*ReplaceDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReplaceData not implemented") +} +func (UnimplementedUserServiceServer) Get(*GetRequest, UserService_GetServer) error { + return status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (UnimplementedUserServiceServer) WatchLogs(*WatchLogsRequest, UserService_WatchLogsServer) error { + return status.Errorf(codes.Unimplemented, "method WatchLogs not implemented") +} +func (UnimplementedUserServiceServer) CidInfo(context.Context, *CidInfoRequest) (*CidInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CidInfo not implemented") +} +func (UnimplementedUserServiceServer) Balance(context.Context, *BalanceRequest) (*BalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented") +} +func (UnimplementedUserServiceServer) NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NewAddress not implemented") +} +func (UnimplementedUserServiceServer) Addresses(context.Context, *AddressesRequest) (*AddressesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Addresses not implemented") +} +func (UnimplementedUserServiceServer) SendFil(context.Context, *SendFilRequest) (*SendFilResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendFil not implemented") +} +func (UnimplementedUserServiceServer) SignMessage(context.Context, *SignMessageRequest) (*SignMessageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SignMessage not implemented") +} +func (UnimplementedUserServiceServer) VerifyMessage(context.Context, *VerifyMessageRequest) (*VerifyMessageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VerifyMessage not implemented") +} +func (UnimplementedUserServiceServer) StorageJob(context.Context, *StorageJobRequest) (*StorageJobResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StorageJob not implemented") +} +func (UnimplementedUserServiceServer) StorageConfigForJob(context.Context, *StorageConfigForJobRequest) (*StorageConfigForJobResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StorageConfigForJob not implemented") +} +func (UnimplementedUserServiceServer) QueuedStorageJobs(context.Context, *QueuedStorageJobsRequest) (*QueuedStorageJobsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueuedStorageJobs not implemented") +} +func (UnimplementedUserServiceServer) ExecutingStorageJobs(context.Context, *ExecutingStorageJobsRequest) (*ExecutingStorageJobsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ExecutingStorageJobs not implemented") +} +func (UnimplementedUserServiceServer) LatestFinalStorageJobs(context.Context, *LatestFinalStorageJobsRequest) (*LatestFinalStorageJobsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LatestFinalStorageJobs not implemented") +} +func (UnimplementedUserServiceServer) LatestSuccessfulStorageJobs(context.Context, *LatestSuccessfulStorageJobsRequest) (*LatestSuccessfulStorageJobsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LatestSuccessfulStorageJobs not implemented") +} +func (UnimplementedUserServiceServer) StorageJobsSummary(context.Context, *StorageJobsSummaryRequest) (*StorageJobsSummaryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StorageJobsSummary not implemented") +} +func (UnimplementedUserServiceServer) WatchStorageJobs(*WatchStorageJobsRequest, UserService_WatchStorageJobsServer) error { + return status.Errorf(codes.Unimplemented, "method WatchStorageJobs not implemented") +} +func (UnimplementedUserServiceServer) CancelStorageJob(context.Context, *CancelStorageJobRequest) (*CancelStorageJobResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelStorageJob not implemented") +} +func (UnimplementedUserServiceServer) StorageDealRecords(context.Context, *StorageDealRecordsRequest) (*StorageDealRecordsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StorageDealRecords not implemented") +} +func (UnimplementedUserServiceServer) RetrievalDealRecords(context.Context, *RetrievalDealRecordsRequest) (*RetrievalDealRecordsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RetrievalDealRecords not implemented") +} +func (UnimplementedUserServiceServer) mustEmbedUnimplementedUserServiceServer() {} + +// UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to UserServiceServer will +// result in compilation errors. +type UnsafeUserServiceServer interface { + mustEmbedUnimplementedUserServiceServer() +} + +func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer) { + s.RegisterService(&_UserService_serviceDesc, srv) +} + +func _UserService_BuildInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BuildInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).BuildInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/BuildInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).BuildInfo(ctx, req.(*BuildInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_UserIdentifier_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserIdentifierRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).UserIdentifier(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/UserIdentifier", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).UserIdentifier(ctx, req.(*UserIdentifierRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_DefaultStorageConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DefaultStorageConfigRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).DefaultStorageConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/DefaultStorageConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).DefaultStorageConfig(ctx, req.(*DefaultStorageConfigRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_SetDefaultStorageConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetDefaultStorageConfigRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).SetDefaultStorageConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/SetDefaultStorageConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).SetDefaultStorageConfig(ctx, req.(*SetDefaultStorageConfigRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_ApplyStorageConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ApplyStorageConfigRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).ApplyStorageConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/ApplyStorageConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).ApplyStorageConfig(ctx, req.(*ApplyStorageConfigRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).Remove(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/Remove", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).Remove(ctx, req.(*RemoveRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_Stage_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(UserServiceServer).Stage(&userServiceStageServer{stream}) +} + +type UserService_StageServer interface { + SendAndClose(*StageResponse) error + Recv() (*StageRequest, error) + grpc.ServerStream +} + +type userServiceStageServer struct { + grpc.ServerStream +} + +func (x *userServiceStageServer) SendAndClose(m *StageResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *userServiceStageServer) Recv() (*StageRequest, error) { + m := new(StageRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _UserService_ReplaceData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReplaceDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).ReplaceData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/ReplaceData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).ReplaceData(ctx, req.(*ReplaceDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_Get_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(UserServiceServer).Get(m, &userServiceGetServer{stream}) +} + +type UserService_GetServer interface { + Send(*GetResponse) error + grpc.ServerStream +} + +type userServiceGetServer struct { + grpc.ServerStream +} + +func (x *userServiceGetServer) Send(m *GetResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _UserService_WatchLogs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WatchLogsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(UserServiceServer).WatchLogs(m, &userServiceWatchLogsServer{stream}) +} + +type UserService_WatchLogsServer interface { + Send(*WatchLogsResponse) error + grpc.ServerStream +} + +type userServiceWatchLogsServer struct { + grpc.ServerStream +} + +func (x *userServiceWatchLogsServer) Send(m *WatchLogsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _UserService_CidInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CidInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).CidInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/CidInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).CidInfo(ctx, req.(*CidInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BalanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).Balance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/Balance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).Balance(ctx, req.(*BalanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_NewAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NewAddressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).NewAddress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/NewAddress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).NewAddress(ctx, req.(*NewAddressRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_Addresses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddressesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).Addresses(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/Addresses", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).Addresses(ctx, req.(*AddressesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_SendFil_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SendFilRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).SendFil(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/SendFil", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).SendFil(ctx, req.(*SendFilRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_SignMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignMessageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).SignMessage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/SignMessage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).SignMessage(ctx, req.(*SignMessageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_VerifyMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VerifyMessageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).VerifyMessage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/VerifyMessage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).VerifyMessage(ctx, req.(*VerifyMessageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_StorageJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StorageJobRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).StorageJob(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/StorageJob", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).StorageJob(ctx, req.(*StorageJobRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_StorageConfigForJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StorageConfigForJobRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).StorageConfigForJob(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/StorageConfigForJob", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).StorageConfigForJob(ctx, req.(*StorageConfigForJobRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_QueuedStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueuedStorageJobsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).QueuedStorageJobs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/QueuedStorageJobs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).QueuedStorageJobs(ctx, req.(*QueuedStorageJobsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_ExecutingStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExecutingStorageJobsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).ExecutingStorageJobs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/ExecutingStorageJobs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).ExecutingStorageJobs(ctx, req.(*ExecutingStorageJobsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_LatestFinalStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LatestFinalStorageJobsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).LatestFinalStorageJobs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/LatestFinalStorageJobs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).LatestFinalStorageJobs(ctx, req.(*LatestFinalStorageJobsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_LatestSuccessfulStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LatestSuccessfulStorageJobsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).LatestSuccessfulStorageJobs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/LatestSuccessfulStorageJobs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).LatestSuccessfulStorageJobs(ctx, req.(*LatestSuccessfulStorageJobsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_StorageJobsSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StorageJobsSummaryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).StorageJobsSummary(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/StorageJobsSummary", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).StorageJobsSummary(ctx, req.(*StorageJobsSummaryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_WatchStorageJobs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WatchStorageJobsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(UserServiceServer).WatchStorageJobs(m, &userServiceWatchStorageJobsServer{stream}) +} + +type UserService_WatchStorageJobsServer interface { + Send(*WatchStorageJobsResponse) error + grpc.ServerStream +} + +type userServiceWatchStorageJobsServer struct { + grpc.ServerStream +} + +func (x *userServiceWatchStorageJobsServer) Send(m *WatchStorageJobsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _UserService_CancelStorageJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CancelStorageJobRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).CancelStorageJob(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/CancelStorageJob", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).CancelStorageJob(ctx, req.(*CancelStorageJobRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_StorageDealRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StorageDealRecordsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).StorageDealRecords(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/StorageDealRecords", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).StorageDealRecords(ctx, req.(*StorageDealRecordsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_RetrievalDealRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RetrievalDealRecordsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).RetrievalDealRecords(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/powergate.user.v1.UserService/RetrievalDealRecords", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).RetrievalDealRecords(ctx, req.(*RetrievalDealRecordsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _UserService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "powergate.user.v1.UserService", + HandlerType: (*UserServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "BuildInfo", + Handler: _UserService_BuildInfo_Handler, + }, + { + MethodName: "UserIdentifier", + Handler: _UserService_UserIdentifier_Handler, + }, + { + MethodName: "DefaultStorageConfig", + Handler: _UserService_DefaultStorageConfig_Handler, + }, + { + MethodName: "SetDefaultStorageConfig", + Handler: _UserService_SetDefaultStorageConfig_Handler, + }, + { + MethodName: "ApplyStorageConfig", + Handler: _UserService_ApplyStorageConfig_Handler, + }, + { + MethodName: "Remove", + Handler: _UserService_Remove_Handler, + }, + { + MethodName: "ReplaceData", + Handler: _UserService_ReplaceData_Handler, + }, + { + MethodName: "CidInfo", + Handler: _UserService_CidInfo_Handler, + }, + { + MethodName: "Balance", + Handler: _UserService_Balance_Handler, + }, + { + MethodName: "NewAddress", + Handler: _UserService_NewAddress_Handler, + }, + { + MethodName: "Addresses", + Handler: _UserService_Addresses_Handler, + }, + { + MethodName: "SendFil", + Handler: _UserService_SendFil_Handler, + }, + { + MethodName: "SignMessage", + Handler: _UserService_SignMessage_Handler, + }, + { + MethodName: "VerifyMessage", + Handler: _UserService_VerifyMessage_Handler, + }, + { + MethodName: "StorageJob", + Handler: _UserService_StorageJob_Handler, + }, + { + MethodName: "StorageConfigForJob", + Handler: _UserService_StorageConfigForJob_Handler, + }, + { + MethodName: "QueuedStorageJobs", + Handler: _UserService_QueuedStorageJobs_Handler, + }, + { + MethodName: "ExecutingStorageJobs", + Handler: _UserService_ExecutingStorageJobs_Handler, + }, + { + MethodName: "LatestFinalStorageJobs", + Handler: _UserService_LatestFinalStorageJobs_Handler, + }, + { + MethodName: "LatestSuccessfulStorageJobs", + Handler: _UserService_LatestSuccessfulStorageJobs_Handler, + }, + { + MethodName: "StorageJobsSummary", + Handler: _UserService_StorageJobsSummary_Handler, + }, + { + MethodName: "CancelStorageJob", + Handler: _UserService_CancelStorageJob_Handler, + }, + { + MethodName: "StorageDealRecords", + Handler: _UserService_StorageDealRecords_Handler, + }, + { + MethodName: "RetrievalDealRecords", + Handler: _UserService_RetrievalDealRecords_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Stage", + Handler: _UserService_Stage_Handler, + ClientStreams: true, + }, + { + StreamName: "Get", + Handler: _UserService_Get_Handler, + ServerStreams: true, + }, + { + StreamName: "WatchLogs", + Handler: _UserService_WatchLogs_Handler, + ServerStreams: true, + }, + { + StreamName: "WatchStorageJobs", + Handler: _UserService_WatchStorageJobs_Handler, + ServerStreams: true, + }, + }, + Metadata: "powergate/user/v1/user.proto", +} diff --git a/api/server/admin/jobs.go b/api/server/admin/jobs.go index 84ad1bf60..f07d18d2b 100644 --- a/api/server/admin/jobs.go +++ b/api/server/admin/jobs.go @@ -4,110 +4,110 @@ import ( "context" "github.com/ipfs/go-cid" - "github.com/textileio/powergate/api/server/powergate" + adminPb "github.com/textileio/powergate/api/gen/powergate/admin/v1" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" + "github.com/textileio/powergate/api/server/user" "github.com/textileio/powergate/ffs" - adminProto "github.com/textileio/powergate/proto/admin/v1" - proto "github.com/textileio/powergate/proto/powergate/v1" "github.com/textileio/powergate/util" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) // QueuedStorageJobs returns a list of queued storage jobs. -func (a *Service) QueuedStorageJobs(ctx context.Context, req *adminProto.QueuedStorageJobsRequest) (*adminProto.QueuedStorageJobsResponse, error) { +func (a *Service) QueuedStorageJobs(ctx context.Context, req *adminPb.QueuedStorageJobsRequest) (*adminPb.QueuedStorageJobsResponse, error) { cids, err := fromProtoCids(req.Cids) if err != nil { return nil, status.Errorf(codes.InvalidArgument, "parsing cids: %v", err) } - jobs := a.s.QueuedStorageJobs(ffs.APIID(req.ProfileId), cids...) - protoJobs, err := powergate.ToProtoStorageJobs(jobs) + jobs := a.s.QueuedStorageJobs(ffs.APIID(req.UserId), cids...) + protoJobs, err := user.ToProtoStorageJobs(jobs) if err != nil { return nil, status.Errorf(codes.Internal, "converting jobs to protos: %v", err) } - return &adminProto.QueuedStorageJobsResponse{ + return &adminPb.QueuedStorageJobsResponse{ StorageJobs: protoJobs, }, nil } // ExecutingStorageJobs returns a list of executing storage jobs. -func (a *Service) ExecutingStorageJobs(ctx context.Context, req *adminProto.ExecutingStorageJobsRequest) (*adminProto.ExecutingStorageJobsResponse, error) { +func (a *Service) ExecutingStorageJobs(ctx context.Context, req *adminPb.ExecutingStorageJobsRequest) (*adminPb.ExecutingStorageJobsResponse, error) { cids, err := fromProtoCids(req.Cids) if err != nil { return nil, status.Errorf(codes.InvalidArgument, "parsing cids: %v", err) } - jobs := a.s.ExecutingStorageJobs(ffs.APIID(req.ProfileId), cids...) - protoJobs, err := powergate.ToProtoStorageJobs(jobs) + jobs := a.s.ExecutingStorageJobs(ffs.APIID(req.UserId), cids...) + protoJobs, err := user.ToProtoStorageJobs(jobs) if err != nil { return nil, status.Errorf(codes.Internal, "converting jobs to protos: %v", err) } - return &adminProto.ExecutingStorageJobsResponse{ + return &adminPb.ExecutingStorageJobsResponse{ StorageJobs: protoJobs, }, nil } // LatestFinalStorageJobs returns a list of latest final storage jobs. -func (a *Service) LatestFinalStorageJobs(ctx context.Context, req *adminProto.LatestFinalStorageJobsRequest) (*adminProto.LatestFinalStorageJobsResponse, error) { +func (a *Service) LatestFinalStorageJobs(ctx context.Context, req *adminPb.LatestFinalStorageJobsRequest) (*adminPb.LatestFinalStorageJobsResponse, error) { cids, err := fromProtoCids(req.Cids) if err != nil { return nil, status.Errorf(codes.InvalidArgument, "parsing cids: %v", err) } - jobs := a.s.LatestFinalStorageJobs(ffs.APIID(req.ProfileId), cids...) - protoJobs, err := powergate.ToProtoStorageJobs(jobs) + jobs := a.s.LatestFinalStorageJobs(ffs.APIID(req.UserId), cids...) + protoJobs, err := user.ToProtoStorageJobs(jobs) if err != nil { return nil, status.Errorf(codes.Internal, "converting jobs to protos: %v", err) } - return &adminProto.LatestFinalStorageJobsResponse{ + return &adminPb.LatestFinalStorageJobsResponse{ StorageJobs: protoJobs, }, nil } // LatestSuccessfulStorageJobs returns a list of latest successful storage jobs. -func (a *Service) LatestSuccessfulStorageJobs(ctx context.Context, req *adminProto.LatestSuccessfulStorageJobsRequest) (*adminProto.LatestSuccessfulStorageJobsResponse, error) { +func (a *Service) LatestSuccessfulStorageJobs(ctx context.Context, req *adminPb.LatestSuccessfulStorageJobsRequest) (*adminPb.LatestSuccessfulStorageJobsResponse, error) { cids, err := fromProtoCids(req.Cids) if err != nil { return nil, status.Errorf(codes.InvalidArgument, "parsing cids: %v", err) } - jobs := a.s.LatestSuccessfulStorageJobs(ffs.APIID(req.ProfileId), cids...) - protoJobs, err := powergate.ToProtoStorageJobs(jobs) + jobs := a.s.LatestSuccessfulStorageJobs(ffs.APIID(req.UserId), cids...) + protoJobs, err := user.ToProtoStorageJobs(jobs) if err != nil { return nil, status.Errorf(codes.Internal, "converting jobs to protos: %v", err) } - return &adminProto.LatestSuccessfulStorageJobsResponse{ + return &adminPb.LatestSuccessfulStorageJobsResponse{ StorageJobs: protoJobs, }, nil } // StorageJobsSummary returns a summary of all storage jobs. -func (a *Service) StorageJobsSummary(ctx context.Context, req *adminProto.StorageJobsSummaryRequest) (*adminProto.StorageJobsSummaryResponse, error) { +func (a *Service) StorageJobsSummary(ctx context.Context, req *adminPb.StorageJobsSummaryRequest) (*adminPb.StorageJobsSummaryResponse, error) { cids, err := fromProtoCids(req.Cids) if err != nil { return nil, status.Errorf(codes.InvalidArgument, "parsing cids: %v", err) } - queuedJobs := a.s.QueuedStorageJobs(ffs.APIID(req.ProfileId), cids...) - executingJobs := a.s.ExecutingStorageJobs(ffs.APIID(req.ProfileId), cids...) - latestFinalJobs := a.s.LatestFinalStorageJobs(ffs.APIID(req.ProfileId), cids...) - latestSuccessfulJobs := a.s.LatestSuccessfulStorageJobs(ffs.APIID(req.ProfileId), cids...) + queuedJobs := a.s.QueuedStorageJobs(ffs.APIID(req.UserId), cids...) + executingJobs := a.s.ExecutingStorageJobs(ffs.APIID(req.UserId), cids...) + latestFinalJobs := a.s.LatestFinalStorageJobs(ffs.APIID(req.UserId), cids...) + latestSuccessfulJobs := a.s.LatestSuccessfulStorageJobs(ffs.APIID(req.UserId), cids...) - protoQueuedJobs, err := powergate.ToProtoStorageJobs(queuedJobs) + protoQueuedJobs, err := user.ToProtoStorageJobs(queuedJobs) if err != nil { return nil, status.Errorf(codes.Internal, "converting queued jobs to protos: %v", err) } - protoExecutingJobs, err := powergate.ToProtoStorageJobs(executingJobs) + protoExecutingJobs, err := user.ToProtoStorageJobs(executingJobs) if err != nil { return nil, status.Errorf(codes.Internal, "converting executing jobs to protos: %v", err) } - protoLatestFinalJobs, err := powergate.ToProtoStorageJobs(latestFinalJobs) + protoLatestFinalJobs, err := user.ToProtoStorageJobs(latestFinalJobs) if err != nil { return nil, status.Errorf(codes.Internal, "converting latest final jobs to protos: %v", err) } - protoLatestSuccessfulJobs, err := powergate.ToProtoStorageJobs(latestSuccessfulJobs) + protoLatestSuccessfulJobs, err := user.ToProtoStorageJobs(latestSuccessfulJobs) if err != nil { return nil, status.Errorf(codes.Internal, "converting latest successful jobs to protos: %v", err) } - return &adminProto.StorageJobsSummaryResponse{ - JobCounts: &proto.JobCounts{ + return &adminPb.StorageJobsSummaryResponse{ + JobCounts: &userPb.JobCounts{ Executing: int32(len(executingJobs)), LatestFinal: int32(len(latestFinalJobs)), LatestSuccessful: int32(len(latestSuccessfulJobs)), diff --git a/api/server/admin/profiles.go b/api/server/admin/profiles.go deleted file mode 100644 index 93c7016e0..000000000 --- a/api/server/admin/profiles.go +++ /dev/null @@ -1,41 +0,0 @@ -package admin - -import ( - "context" - - proto "github.com/textileio/powergate/proto/admin/v1" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -// CreateStorageProfile creates a new managed instance. -func (a *Service) CreateStorageProfile(ctx context.Context, req *proto.CreateStorageProfileRequest) (*proto.CreateStorageProfileResponse, error) { - auth, err := a.m.Create(ctx) - if err != nil { - return nil, status.Errorf(codes.Internal, "creating instance: %v", err) - } - return &proto.CreateStorageProfileResponse{ - AuthEntry: &proto.AuthEntry{ - Id: auth.APIID.String(), - Token: auth.Token, - }, - }, nil -} - -// StorageProfiles lists all managed instances. -func (a *Service) StorageProfiles(ctx context.Context, req *proto.StorageProfilesRequest) (*proto.StorageProfilesResponse, error) { - lst, err := a.m.List() - if err != nil { - return nil, status.Errorf(codes.Internal, "listing storage profiles: %v", err) - } - ins := make([]*proto.AuthEntry, len(lst)) - for i, v := range lst { - ins[i] = &proto.AuthEntry{ - Id: v.APIID.String(), - Token: v.Token, - } - } - return &proto.StorageProfilesResponse{ - AuthEntries: ins, - }, nil -} diff --git a/api/server/admin/service.go b/api/server/admin/service.go index 99c2175e3..92cc1d049 100644 --- a/api/server/admin/service.go +++ b/api/server/admin/service.go @@ -1,6 +1,7 @@ package admin import ( + adminPb "github.com/textileio/powergate/api/gen/powergate/admin/v1" "github.com/textileio/powergate/ffs/manager" "github.com/textileio/powergate/ffs/scheduler" "github.com/textileio/powergate/wallet" @@ -8,6 +9,7 @@ import ( // Service implements the Admin API. type Service struct { + adminPb.UnimplementedAdminServiceServer m *manager.Manager s *scheduler.Scheduler wm wallet.Module diff --git a/api/server/admin/users.go b/api/server/admin/users.go new file mode 100644 index 000000000..33ec3be40 --- /dev/null +++ b/api/server/admin/users.go @@ -0,0 +1,41 @@ +package admin + +import ( + "context" + + adminPb "github.com/textileio/powergate/api/gen/powergate/admin/v1" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +// CreateUser creates a new managed instance. +func (a *Service) CreateUser(ctx context.Context, req *adminPb.CreateUserRequest) (*adminPb.CreateUserResponse, error) { + auth, err := a.m.Create(ctx) + if err != nil { + return nil, status.Errorf(codes.Internal, "creating instance: %v", err) + } + return &adminPb.CreateUserResponse{ + User: &adminPb.User{ + Id: auth.APIID.String(), + Token: auth.Token, + }, + }, nil +} + +// Users lists all managed instances. +func (a *Service) Users(ctx context.Context, req *adminPb.UsersRequest) (*adminPb.UsersResponse, error) { + lst, err := a.m.List() + if err != nil { + return nil, status.Errorf(codes.Internal, "listing users: %v", err) + } + ins := make([]*adminPb.User, len(lst)) + for i, v := range lst { + ins[i] = &adminPb.User{ + Id: v.APIID.String(), + Token: v.Token, + } + } + return &adminPb.UsersResponse{ + Users: ins, + }, nil +} diff --git a/api/server/admin/wallet.go b/api/server/admin/wallet.go index 4fae2d171..205f9ac76 100644 --- a/api/server/admin/wallet.go +++ b/api/server/admin/wallet.go @@ -4,35 +4,35 @@ import ( "context" "math/big" - proto "github.com/textileio/powergate/proto/admin/v1" + adminPb "github.com/textileio/powergate/api/gen/powergate/admin/v1" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) // NewAddress creates a new address. -func (a *Service) NewAddress(ctx context.Context, req *proto.NewAddressRequest) (*proto.NewAddressResponse, error) { +func (a *Service) NewAddress(ctx context.Context, req *adminPb.NewAddressRequest) (*adminPb.NewAddressResponse, error) { addr, err := a.wm.NewAddress(ctx, req.AddressType) if err != nil { return nil, status.Errorf(codes.Internal, "creating address: %v", err) } - return &proto.NewAddressResponse{ + return &adminPb.NewAddressResponse{ Address: addr, }, nil } // Addresses lists all addresses associated with this Powergate. -func (a *Service) Addresses(ctx context.Context, req *proto.AddressesRequest) (*proto.AddressesResponse, error) { +func (a *Service) Addresses(ctx context.Context, req *adminPb.AddressesRequest) (*adminPb.AddressesResponse, error) { addrs, err := a.wm.List(ctx) if err != nil { return nil, status.Errorf(codes.Internal, "listing addrs: %v", err) } - return &proto.AddressesResponse{ + return &adminPb.AddressesResponse{ Addresses: addrs, }, nil } // SendFil sends FIL from an address associated with this Powergate to any other address. -func (a *Service) SendFil(ctx context.Context, req *proto.SendFilRequest) (*proto.SendFilResponse, error) { +func (a *Service) SendFil(ctx context.Context, req *adminPb.SendFilRequest) (*adminPb.SendFilResponse, error) { amt, ok := new(big.Int).SetString(req.Amount, 10) if !ok { return nil, status.Errorf(codes.InvalidArgument, "parsing amount %v", req.Amount) @@ -41,5 +41,5 @@ func (a *Service) SendFil(ctx context.Context, req *proto.SendFilRequest) (*prot if err != nil { return nil, status.Errorf(codes.Internal, "sending fil: %v", err) } - return &proto.SendFilResponse{}, nil + return &adminPb.SendFilResponse{}, nil } diff --git a/api/server/server.go b/api/server/server.go index f83b6a758..562516d9b 100644 --- a/api/server/server.go +++ b/api/server/server.go @@ -25,8 +25,10 @@ import ( logging "github.com/ipfs/go-log/v2" ma "github.com/multiformats/go-multiaddr" mongods "github.com/textileio/go-ds-mongo" - adminService "github.com/textileio/powergate/api/server/admin" - powergateService "github.com/textileio/powergate/api/server/powergate" + adminPb "github.com/textileio/powergate/api/gen/powergate/admin/v1" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" + "github.com/textileio/powergate/api/server/admin" + "github.com/textileio/powergate/api/server/user" "github.com/textileio/powergate/deals" dealsModule "github.com/textileio/powergate/deals/module" "github.com/textileio/powergate/fchost" @@ -45,8 +47,6 @@ import ( minerModule "github.com/textileio/powergate/index/miner/module" "github.com/textileio/powergate/iplocation/maxmind" "github.com/textileio/powergate/lotus" - adminProto "github.com/textileio/powergate/proto/admin/v1" - powergateProto "github.com/textileio/powergate/proto/powergate/v1" "github.com/textileio/powergate/reputation" txndstr "github.com/textileio/powergate/txndstransform" "github.com/textileio/powergate/util" @@ -391,8 +391,8 @@ func wrapGRPCServer(grpcServer *grpc.Server) *grpcweb.WrappedGrpcServer { } func startGRPCServices(server *grpc.Server, webProxy *http.Server, s *Server, hostNetwork string, hostAddress ma.Multiaddr) error { - powergateService := powergateService.New(s.ffsManager, s.wm, s.hs) - adminService := adminService.New(s.ffsManager, s.sched, s.wm) + userService := user.New(s.ffsManager, s.wm, s.hs) + adminService := admin.New(s.ffsManager, s.sched, s.wm) hostAddr, err := util.TCPAddrFromMultiAddr(hostAddress) if err != nil { @@ -403,8 +403,8 @@ func startGRPCServices(server *grpc.Server, webProxy *http.Server, s *Server, ho return fmt.Errorf("listening to grpc: %s", err) } go func() { - powergateProto.RegisterPowergateServiceServer(server, powergateService) - adminProto.RegisterPowergateAdminServiceServer(server, adminService) + userPb.RegisterUserServiceServer(server, userService) + adminPb.RegisterAdminServiceServer(server, adminService) if err := server.Serve(listener); err != nil { log.Errorf("serving grpc endpoint: %s", err) } @@ -601,7 +601,7 @@ func adminAuth(conf Config) grpc.UnaryServerInterceptor { return handler(ctx, req) } - adminServicePrefix := "/proto.admin.v1.PowergateAdminService" + adminServicePrefix := "/powergate.admin.v1.AdminService" method, _ := grpc.Method(ctx) diff --git a/api/server/powergate/data.go b/api/server/user/data.go similarity index 80% rename from api/server/powergate/data.go rename to api/server/user/data.go index 849187e42..a1c820fa8 100644 --- a/api/server/powergate/data.go +++ b/api/server/user/data.go @@ -1,20 +1,20 @@ -package powergate +package user import ( "context" "fmt" "io" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" "github.com/textileio/powergate/ffs" "github.com/textileio/powergate/ffs/api" - proto "github.com/textileio/powergate/proto/powergate/v1" "github.com/textileio/powergate/util" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) // Stage allows you to temporarily cache data in the Hot layer in preparation for pushing a cid storage config. -func (s *Service) Stage(srv proto.PowergateService_StageServer) error { +func (s *Service) Stage(srv userPb.UserService_StageServer) error { // check that an API instance exists so not just anyone can add data to the hot layer if _, err := s.getInstanceByToken(srv.Context()); err != nil { return err @@ -34,11 +34,11 @@ func (s *Service) Stage(srv proto.PowergateService_StageServer) error { return fmt.Errorf("adding data to hot storage: %s", err) } - return srv.SendAndClose(&proto.StageResponse{Cid: util.CidToString(c)}) + return srv.SendAndClose(&userPb.StageResponse{Cid: util.CidToString(c)}) } // ReplaceData calls ffs.Replace. -func (s *Service) ReplaceData(ctx context.Context, req *proto.ReplaceDataRequest) (*proto.ReplaceDataResponse, error) { +func (s *Service) ReplaceData(ctx context.Context, req *userPb.ReplaceDataRequest) (*userPb.ReplaceDataResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err @@ -58,11 +58,11 @@ func (s *Service) ReplaceData(ctx context.Context, req *proto.ReplaceDataRequest return nil, err } - return &proto.ReplaceDataResponse{JobId: jid.String()}, nil + return &userPb.ReplaceDataResponse{JobId: jid.String()}, nil } // Get gets the data for a stored Cid. -func (s *Service) Get(req *proto.GetRequest, srv proto.PowergateService_GetServer) error { +func (s *Service) Get(req *userPb.GetRequest, srv userPb.UserService_GetServer) error { i, err := s.getInstanceByToken(srv.Context()) if err != nil { return err @@ -82,7 +82,7 @@ func (s *Service) Get(req *proto.GetRequest, srv proto.PowergateService_GetServe if err != nil && err != io.EOF { return err } - if sendErr := srv.Send(&proto.GetResponse{Chunk: buffer[:bytesRead]}); sendErr != nil { + if sendErr := srv.Send(&userPb.GetResponse{Chunk: buffer[:bytesRead]}); sendErr != nil { return sendErr } if err == io.EOF { @@ -93,7 +93,7 @@ func (s *Service) Get(req *proto.GetRequest, srv proto.PowergateService_GetServe // WatchLogs returns a stream of human-readable messages related to executions of a Cid. // The listener is automatically unsubscribed when the client closes the stream. -func (s *Service) WatchLogs(req *proto.WatchLogsRequest, srv proto.PowergateService_WatchLogsServer) error { +func (s *Service) WatchLogs(req *userPb.WatchLogsRequest, srv userPb.UserService_WatchLogsServer) error { i, err := s.getInstanceByToken(srv.Context()) if err != nil { return err @@ -114,8 +114,8 @@ func (s *Service) WatchLogs(req *proto.WatchLogsRequest, srv proto.PowergateServ close(ch) }() for l := range ch { - reply := &proto.WatchLogsResponse{ - LogEntry: &proto.LogEntry{ + reply := &userPb.WatchLogsResponse{ + LogEntry: &userPb.LogEntry{ Cid: util.CidToString(c), JobId: l.Jid.String(), Time: l.Timestamp.Unix(), @@ -134,7 +134,7 @@ func (s *Service) WatchLogs(req *proto.WatchLogsRequest, srv proto.PowergateServ } // CidInfo returns information about cids managed by the FFS instance. -func (s *Service) CidInfo(ctx context.Context, req *proto.CidInfoRequest) (*proto.CidInfoResponse, error) { +func (s *Service) CidInfo(ctx context.Context, req *userPb.CidInfoRequest) (*userPb.CidInfoResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err @@ -153,10 +153,10 @@ func (s *Service) CidInfo(ctx context.Context, req *proto.CidInfoRequest) (*prot } return nil, status.Errorf(code, "getting storage configs: %v", err) } - res := make([]*proto.CidInfo, 0, len(storageConfigs)) + res := make([]*userPb.CidInfo, 0, len(storageConfigs)) for cid, config := range storageConfigs { rpcConfig := ToRPCStorageConfig(config) - cidInfo := &proto.CidInfo{ + cidInfo := &userPb.CidInfo{ Cid: cid.String(), LatestPushedStorageConfig: rpcConfig, } @@ -167,7 +167,7 @@ func (s *Service) CidInfo(ctx context.Context, req *proto.CidInfoRequest) (*prot cidInfo.CurrentStorageInfo = toRPCStorageInfo(info) } queuedJobs := i.QueuedStorageJobs(cid) - rpcQueudJobs := make([]*proto.Job, len(queuedJobs)) + rpcQueudJobs := make([]*userPb.StorageJob, len(queuedJobs)) for i, job := range queuedJobs { rpcJob, err := toRPCJob(job) if err != nil { @@ -202,10 +202,10 @@ func (s *Service) CidInfo(ctx context.Context, req *proto.CidInfoRequest) (*prot } res = append(res, cidInfo) } - return &proto.CidInfoResponse{CidInfos: res}, nil + return &userPb.CidInfoResponse{CidInfos: res}, nil } -func receiveFile(srv proto.PowergateService_StageServer, writer *io.PipeWriter) { +func receiveFile(srv userPb.UserService_StageServer, writer *io.PipeWriter) { for { req, err := srv.Recv() if err == io.EOF { diff --git a/api/server/powergate/deals.go b/api/server/user/deals.go similarity index 54% rename from api/server/powergate/deals.go rename to api/server/user/deals.go index a2619b47a..fb07d30a0 100644 --- a/api/server/powergate/deals.go +++ b/api/server/user/deals.go @@ -1,13 +1,13 @@ -package powergate +package user import ( "context" - proto "github.com/textileio/powergate/proto/powergate/v1" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" ) // StorageDealRecords calls ffs.ListStorageDealRecords. -func (s *Service) StorageDealRecords(ctx context.Context, req *proto.StorageDealRecordsRequest) (*proto.StorageDealRecordsResponse, error) { +func (s *Service) StorageDealRecords(ctx context.Context, req *userPb.StorageDealRecordsRequest) (*userPb.StorageDealRecordsResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err @@ -16,11 +16,11 @@ func (s *Service) StorageDealRecords(ctx context.Context, req *proto.StorageDeal if err != nil { return nil, err } - return &proto.StorageDealRecordsResponse{Records: toRPCStorageDealRecords(records)}, nil + return &userPb.StorageDealRecordsResponse{Records: toRPCStorageDealRecords(records)}, nil } // RetrievalDealRecords calls ffs.ListRetrievalDealRecords. -func (s *Service) RetrievalDealRecords(ctx context.Context, req *proto.RetrievalDealRecordsRequest) (*proto.RetrievalDealRecordsResponse, error) { +func (s *Service) RetrievalDealRecords(ctx context.Context, req *userPb.RetrievalDealRecordsRequest) (*userPb.RetrievalDealRecordsResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err @@ -29,5 +29,5 @@ func (s *Service) RetrievalDealRecords(ctx context.Context, req *proto.Retrieval if err != nil { return nil, err } - return &proto.RetrievalDealRecordsResponse{Records: toRPCRetrievalDealRecords(records)}, nil + return &userPb.RetrievalDealRecordsResponse{Records: toRPCRetrievalDealRecords(records)}, nil } diff --git a/api/server/powergate/service.go b/api/server/user/service.go similarity index 74% rename from api/server/powergate/service.go rename to api/server/user/service.go index 88bdaccf8..5f48b1a3e 100644 --- a/api/server/powergate/service.go +++ b/api/server/user/service.go @@ -1,4 +1,4 @@ -package powergate +package user import ( "context" @@ -6,11 +6,11 @@ import ( "github.com/grpc-ecosystem/go-grpc-middleware/util/metautils" logger "github.com/ipfs/go-log/v2" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" "github.com/textileio/powergate/buildinfo" "github.com/textileio/powergate/ffs" "github.com/textileio/powergate/ffs/api" "github.com/textileio/powergate/ffs/manager" - proto "github.com/textileio/powergate/proto/powergate/v1" "github.com/textileio/powergate/wallet" ) @@ -23,6 +23,7 @@ var ( // Service implements the Powergate API. type Service struct { + userPb.UnimplementedUserServiceServer m *manager.Manager w wallet.Module hot ffs.HotStorage @@ -38,8 +39,8 @@ func New(m *manager.Manager, w wallet.Module, hot ffs.HotStorage) *Service { } // BuildInfo returns information about the powergate build. -func (s *Service) BuildInfo(ctx context.Context, req *proto.BuildInfoRequest) (*proto.BuildInfoResponse, error) { - return &proto.BuildInfoResponse{ +func (s *Service) BuildInfo(ctx context.Context, req *userPb.BuildInfoRequest) (*userPb.BuildInfoResponse, error) { + return &userPb.BuildInfoResponse{ BuildDate: buildinfo.BuildDate, GitBranch: buildinfo.GitBranch, GitCommit: buildinfo.GitCommit, @@ -49,14 +50,14 @@ func (s *Service) BuildInfo(ctx context.Context, req *proto.BuildInfoRequest) (* }, nil } -// StorageProfileIdentifier returns the API instance id. -func (s *Service) StorageProfileIdentifier(ctx context.Context, req *proto.StorageProfileIdentifierRequest) (*proto.StorageProfileIdentifierResponse, error) { +// UserIdentifier returns the API instance id. +func (s *Service) UserIdentifier(ctx context.Context, req *userPb.UserIdentifierRequest) (*userPb.UserIdentifierResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err } id := i.ID() - return &proto.StorageProfileIdentifierResponse{Id: id.String()}, nil + return &userPb.UserIdentifierResponse{Id: id.String()}, nil } func (s *Service) getInstanceByToken(ctx context.Context) (*api.API, error) { diff --git a/api/server/powergate/storageconfig.go b/api/server/user/storageconfig.go similarity index 73% rename from api/server/powergate/storageconfig.go rename to api/server/user/storageconfig.go index 1cca93c35..16ab6d810 100644 --- a/api/server/powergate/storageconfig.go +++ b/api/server/user/storageconfig.go @@ -1,28 +1,28 @@ -package powergate +package user import ( "context" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" "github.com/textileio/powergate/ffs" "github.com/textileio/powergate/ffs/api" - proto "github.com/textileio/powergate/proto/powergate/v1" "github.com/textileio/powergate/util" ) // DefaultStorageConfig calls ffs.DefaultStorageConfig. -func (s *Service) DefaultStorageConfig(ctx context.Context, req *proto.DefaultStorageConfigRequest) (*proto.DefaultStorageConfigResponse, error) { +func (s *Service) DefaultStorageConfig(ctx context.Context, req *userPb.DefaultStorageConfigRequest) (*userPb.DefaultStorageConfigResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err } conf := i.DefaultStorageConfig() - return &proto.DefaultStorageConfigResponse{ + return &userPb.DefaultStorageConfigResponse{ DefaultStorageConfig: ToRPCStorageConfig(conf), }, nil } // SetDefaultStorageConfig sets a new config to be used by default. -func (s *Service) SetDefaultStorageConfig(ctx context.Context, req *proto.SetDefaultStorageConfigRequest) (*proto.SetDefaultStorageConfigResponse, error) { +func (s *Service) SetDefaultStorageConfig(ctx context.Context, req *userPb.SetDefaultStorageConfigRequest) (*userPb.SetDefaultStorageConfigResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err @@ -35,11 +35,11 @@ func (s *Service) SetDefaultStorageConfig(ctx context.Context, req *proto.SetDef if err := i.SetDefaultStorageConfig(defaultConfig); err != nil { return nil, err } - return &proto.SetDefaultStorageConfigResponse{}, nil + return &userPb.SetDefaultStorageConfigResponse{}, nil } // ApplyStorageConfig applies the provided cid storage config. -func (s *Service) ApplyStorageConfig(ctx context.Context, req *proto.ApplyStorageConfigRequest) (*proto.ApplyStorageConfigResponse, error) { +func (s *Service) ApplyStorageConfig(ctx context.Context, req *userPb.ApplyStorageConfigRequest) (*userPb.ApplyStorageConfigResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err @@ -70,13 +70,13 @@ func (s *Service) ApplyStorageConfig(ctx context.Context, req *proto.ApplyStorag return nil, err } - return &proto.ApplyStorageConfigResponse{ + return &userPb.ApplyStorageConfigResponse{ JobId: jid.String(), }, nil } // Remove calls ffs.Remove. -func (s *Service) Remove(ctx context.Context, req *proto.RemoveRequest) (*proto.RemoveResponse, error) { +func (s *Service) Remove(ctx context.Context, req *userPb.RemoveRequest) (*userPb.RemoveResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err @@ -91,5 +91,5 @@ func (s *Service) Remove(ctx context.Context, req *proto.RemoveRequest) (*proto. return nil, err } - return &proto.RemoveResponse{}, nil + return &userPb.RemoveResponse{}, nil } diff --git a/api/server/powergate/storagejobs.go b/api/server/user/storagejobs.go similarity index 79% rename from api/server/powergate/storagejobs.go rename to api/server/user/storagejobs.go index e418cc77d..791f46542 100644 --- a/api/server/powergate/storagejobs.go +++ b/api/server/user/storagejobs.go @@ -1,18 +1,18 @@ -package powergate +package user import ( "context" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" "github.com/textileio/powergate/ffs" "github.com/textileio/powergate/ffs/api" "github.com/textileio/powergate/ffs/manager" - proto "github.com/textileio/powergate/proto/powergate/v1" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) // StorageJob calls API.GetStorageJob. -func (s *Service) StorageJob(ctx context.Context, req *proto.StorageJobRequest) (*proto.StorageJobResponse, error) { +func (s *Service) StorageJob(ctx context.Context, req *userPb.StorageJobRequest) (*userPb.StorageJobResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err @@ -26,13 +26,13 @@ func (s *Service) StorageJob(ctx context.Context, req *proto.StorageJobRequest) if err != nil { return nil, status.Errorf(codes.Internal, "building job response: %v", err.Error()) } - return &proto.StorageJobResponse{ - Job: rpcJob, + return &userPb.StorageJobResponse{ + StorageJob: rpcJob, }, nil } // StorageConfigForJob returns the StorageConfig associated with the job id. -func (s *Service) StorageConfigForJob(ctx context.Context, req *proto.StorageConfigForJobRequest) (*proto.StorageConfigForJobResponse, error) { +func (s *Service) StorageConfigForJob(ctx context.Context, req *userPb.StorageConfigForJobRequest) (*userPb.StorageConfigForJobResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { code := codes.Internal @@ -50,11 +50,11 @@ func (s *Service) StorageConfigForJob(ctx context.Context, req *proto.StorageCon return nil, status.Errorf(code, "getting storage config for job: %v", err) } res := ToRPCStorageConfig(sc) - return &proto.StorageConfigForJobResponse{StorageConfig: res}, nil + return &userPb.StorageConfigForJobResponse{StorageConfig: res}, nil } // QueuedStorageJobs returns a list of queued storage jobs. -func (s *Service) QueuedStorageJobs(ctx context.Context, req *proto.QueuedStorageJobsRequest) (*proto.QueuedStorageJobsResponse, error) { +func (s *Service) QueuedStorageJobs(ctx context.Context, req *userPb.QueuedStorageJobsRequest) (*userPb.QueuedStorageJobsResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, status.Errorf(codes.PermissionDenied, "getting instance: %v", err) @@ -69,13 +69,13 @@ func (s *Service) QueuedStorageJobs(ctx context.Context, req *proto.QueuedStorag if err != nil { return nil, status.Errorf(codes.Internal, "converting jobs to protos: %v", err) } - return &proto.QueuedStorageJobsResponse{ + return &userPb.QueuedStorageJobsResponse{ StorageJobs: protoJobs, }, nil } // ExecutingStorageJobs returns a list of executing storage jobs. -func (s *Service) ExecutingStorageJobs(ctx context.Context, req *proto.ExecutingStorageJobsRequest) (*proto.ExecutingStorageJobsResponse, error) { +func (s *Service) ExecutingStorageJobs(ctx context.Context, req *userPb.ExecutingStorageJobsRequest) (*userPb.ExecutingStorageJobsResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, status.Errorf(codes.PermissionDenied, "getting instance: %v", err) @@ -90,13 +90,13 @@ func (s *Service) ExecutingStorageJobs(ctx context.Context, req *proto.Executing if err != nil { return nil, status.Errorf(codes.Internal, "converting jobs to protos: %v", err) } - return &proto.ExecutingStorageJobsResponse{ + return &userPb.ExecutingStorageJobsResponse{ StorageJobs: protoJobs, }, nil } // LatestFinalStorageJobs returns a list of latest final storage jobs. -func (s *Service) LatestFinalStorageJobs(ctx context.Context, req *proto.LatestFinalStorageJobsRequest) (*proto.LatestFinalStorageJobsResponse, error) { +func (s *Service) LatestFinalStorageJobs(ctx context.Context, req *userPb.LatestFinalStorageJobsRequest) (*userPb.LatestFinalStorageJobsResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, status.Errorf(codes.PermissionDenied, "getting instance: %v", err) @@ -111,13 +111,13 @@ func (s *Service) LatestFinalStorageJobs(ctx context.Context, req *proto.LatestF if err != nil { return nil, status.Errorf(codes.Internal, "converting jobs to protos: %v", err) } - return &proto.LatestFinalStorageJobsResponse{ + return &userPb.LatestFinalStorageJobsResponse{ StorageJobs: protoJobs, }, nil } // LatestSuccessfulStorageJobs returns a list of latest successful storage jobs. -func (s *Service) LatestSuccessfulStorageJobs(ctx context.Context, req *proto.LatestSuccessfulStorageJobsRequest) (*proto.LatestSuccessfulStorageJobsResponse, error) { +func (s *Service) LatestSuccessfulStorageJobs(ctx context.Context, req *userPb.LatestSuccessfulStorageJobsRequest) (*userPb.LatestSuccessfulStorageJobsResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, status.Errorf(codes.PermissionDenied, "getting instance: %v", err) @@ -132,13 +132,13 @@ func (s *Service) LatestSuccessfulStorageJobs(ctx context.Context, req *proto.La if err != nil { return nil, status.Errorf(codes.Internal, "converting jobs to protos: %v", err) } - return &proto.LatestSuccessfulStorageJobsResponse{ + return &userPb.LatestSuccessfulStorageJobsResponse{ StorageJobs: protoJobs, }, nil } // StorageJobsSummary returns a summary of all storage jobs. -func (s *Service) StorageJobsSummary(ctx context.Context, req *proto.StorageJobsSummaryRequest) (*proto.StorageJobsSummaryResponse, error) { +func (s *Service) StorageJobsSummary(ctx context.Context, req *userPb.StorageJobsSummaryRequest) (*userPb.StorageJobsSummaryResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, status.Errorf(codes.PermissionDenied, "getting instance: %v", err) @@ -171,8 +171,8 @@ func (s *Service) StorageJobsSummary(ctx context.Context, req *proto.StorageJobs return nil, status.Errorf(codes.Internal, "converting latest successful jobs to protos: %v", err) } - return &proto.StorageJobsSummaryResponse{ - JobCounts: &proto.JobCounts{ + return &userPb.StorageJobsSummaryResponse{ + JobCounts: &userPb.JobCounts{ Executing: int32(len(executingJobs)), LatestFinal: int32(len(latestFinalJobs)), LatestSuccessful: int32(len(latestSuccessfulJobs)), @@ -186,7 +186,7 @@ func (s *Service) StorageJobsSummary(ctx context.Context, req *proto.StorageJobs } // WatchStorageJobs calls API.WatchJobs. -func (s *Service) WatchStorageJobs(req *proto.WatchStorageJobsRequest, srv proto.PowergateService_WatchStorageJobsServer) error { +func (s *Service) WatchStorageJobs(req *userPb.WatchStorageJobsRequest, srv userPb.UserService_WatchStorageJobsServer) error { i, err := s.getInstanceByToken(srv.Context()) if err != nil { return err @@ -207,8 +207,8 @@ func (s *Service) WatchStorageJobs(req *proto.WatchStorageJobsRequest, srv proto if err != nil { return err } - reply := &proto.WatchStorageJobsResponse{ - Job: rpcJob, + reply := &userPb.WatchStorageJobsResponse{ + StorageJob: rpcJob, } if err := srv.Send(reply); err != nil { return err @@ -221,7 +221,7 @@ func (s *Service) WatchStorageJobs(req *proto.WatchStorageJobsRequest, srv proto } // CancelStorageJob calls API.CancelJob. -func (s *Service) CancelStorageJob(ctx context.Context, req *proto.CancelStorageJobRequest) (*proto.CancelStorageJobResponse, error) { +func (s *Service) CancelStorageJob(ctx context.Context, req *userPb.CancelStorageJobRequest) (*userPb.CancelStorageJobResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err @@ -230,5 +230,5 @@ func (s *Service) CancelStorageJob(ctx context.Context, req *proto.CancelStorage if err := i.CancelJob(jid); err != nil { return nil, err } - return &proto.CancelStorageJobResponse{}, nil + return &userPb.CancelStorageJobResponse{}, nil } diff --git a/api/server/powergate/util.go b/api/server/user/util.go similarity index 76% rename from api/server/powergate/util.go rename to api/server/user/util.go index a7fb3fcd4..5ad1b5f85 100644 --- a/api/server/powergate/util.go +++ b/api/server/user/util.go @@ -1,45 +1,45 @@ -package powergate +package user import ( "fmt" "github.com/ipfs/go-cid" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" "github.com/textileio/powergate/deals" "github.com/textileio/powergate/ffs" - proto "github.com/textileio/powergate/proto/powergate/v1" "github.com/textileio/powergate/util" ) // ToRPCStorageConfig converts from a ffs.StorageConfig to a rpc StorageConfig. -func ToRPCStorageConfig(config ffs.StorageConfig) *proto.StorageConfig { - return &proto.StorageConfig{ +func ToRPCStorageConfig(config ffs.StorageConfig) *userPb.StorageConfig { + return &userPb.StorageConfig{ Repairable: config.Repairable, Hot: toRPCHotConfig(config.Hot), Cold: toRPCColdConfig(config.Cold), } } -func toRPCHotConfig(config ffs.HotConfig) *proto.HotConfig { - return &proto.HotConfig{ +func toRPCHotConfig(config ffs.HotConfig) *userPb.HotConfig { + return &userPb.HotConfig{ Enabled: config.Enabled, AllowUnfreeze: config.AllowUnfreeze, UnfreezeMaxPrice: config.UnfreezeMaxPrice, - Ipfs: &proto.IpfsConfig{ + Ipfs: &userPb.IpfsConfig{ AddTimeout: int64(config.Ipfs.AddTimeout), }, } } -func toRPCColdConfig(config ffs.ColdConfig) *proto.ColdConfig { - return &proto.ColdConfig{ +func toRPCColdConfig(config ffs.ColdConfig) *userPb.ColdConfig { + return &userPb.ColdConfig{ Enabled: config.Enabled, - Filecoin: &proto.FilConfig{ + Filecoin: &userPb.FilConfig{ ReplicationFactor: int64(config.Filecoin.RepFactor), DealMinDuration: config.Filecoin.DealMinDuration, ExcludedMiners: config.Filecoin.ExcludedMiners, TrustedMiners: config.Filecoin.TrustedMiners, CountryCodes: config.Filecoin.CountryCodes, - Renew: &proto.FilRenew{ + Renew: &userPb.FilRenew{ Enabled: config.Filecoin.Renew.Enabled, Threshold: int64(config.Filecoin.Renew.Threshold), }, @@ -51,14 +51,14 @@ func toRPCColdConfig(config ffs.ColdConfig) *proto.ColdConfig { } } -func toRPCDealErrors(des []ffs.DealError) []*proto.DealError { - ret := make([]*proto.DealError, len(des)) +func toRPCDealErrors(des []ffs.DealError) []*userPb.DealError { + ret := make([]*userPb.DealError, len(des)) for i, de := range des { var strProposalCid string if de.ProposalCid.Defined() { strProposalCid = util.CidToString(de.ProposalCid) } - ret[i] = &proto.DealError{ + ret[i] = &userPb.DealError{ ProposalCid: strProposalCid, Miner: de.Miner, Message: de.Message, @@ -67,7 +67,7 @@ func toRPCDealErrors(des []ffs.DealError) []*proto.DealError { return ret } -func fromRPCHotConfig(config *proto.HotConfig) ffs.HotConfig { +func fromRPCHotConfig(config *userPb.HotConfig) ffs.HotConfig { res := ffs.HotConfig{} if config != nil { res.Enabled = config.Enabled @@ -83,7 +83,7 @@ func fromRPCHotConfig(config *proto.HotConfig) ffs.HotConfig { return res } -func fromRPCColdConfig(config *proto.ColdConfig) ffs.ColdConfig { +func fromRPCColdConfig(config *userPb.ColdConfig) ffs.ColdConfig { res := ffs.ColdConfig{} if config != nil { res.Enabled = config.Enabled @@ -112,24 +112,24 @@ func fromRPCColdConfig(config *proto.ColdConfig) ffs.ColdConfig { return res } -func toRPCStorageInfo(info ffs.StorageInfo) *proto.StorageInfo { - storageInfo := &proto.StorageInfo{ +func toRPCStorageInfo(info ffs.StorageInfo) *userPb.StorageInfo { + storageInfo := &userPb.StorageInfo{ JobId: info.JobID.String(), Cid: util.CidToString(info.Cid), Created: info.Created.UnixNano(), - Hot: &proto.HotInfo{ + Hot: &userPb.HotInfo{ Enabled: info.Hot.Enabled, Size: int64(info.Hot.Size), - Ipfs: &proto.IpfsHotInfo{ + Ipfs: &userPb.IpfsHotInfo{ Created: info.Hot.Ipfs.Created.UnixNano(), }, }, - Cold: &proto.ColdInfo{ + Cold: &userPb.ColdInfo{ Enabled: info.Cold.Enabled, - Filecoin: &proto.FilInfo{ + Filecoin: &userPb.FilInfo{ DataCid: util.CidToString(info.Cold.Filecoin.DataCid), Size: info.Cold.Filecoin.Size, - Proposals: make([]*proto.FilStorage, len(info.Cold.Filecoin.Proposals)), + Proposals: make([]*userPb.FilStorage, len(info.Cold.Filecoin.Proposals)), }, }, } @@ -142,7 +142,7 @@ func toRPCStorageInfo(info ffs.StorageInfo) *proto.StorageInfo { if p.PieceCid.Defined() { strPieceCid = util.CidToString(p.PieceCid) } - storageInfo.Cold.Filecoin.Proposals[i] = &proto.FilStorage{ + storageInfo.Cold.Filecoin.Proposals[i] = &userPb.FilStorage{ ProposalCid: strProposalCid, PieceCid: strPieceCid, Renewed: p.Renewed, @@ -156,7 +156,7 @@ func toRPCStorageInfo(info ffs.StorageInfo) *proto.StorageInfo { return storageInfo } -func buildListDealRecordsOptions(conf *proto.DealRecordsConfig) []deals.DealRecordsOption { +func buildListDealRecordsOptions(conf *userPb.DealRecordsConfig) []deals.DealRecordsOption { var opts []deals.DealRecordsOption if conf != nil { opts = []deals.DealRecordsOption{ @@ -170,15 +170,15 @@ func buildListDealRecordsOptions(conf *proto.DealRecordsConfig) []deals.DealReco return opts } -func toRPCStorageDealRecords(records []deals.StorageDealRecord) []*proto.StorageDealRecord { - ret := make([]*proto.StorageDealRecord, len(records)) +func toRPCStorageDealRecords(records []deals.StorageDealRecord) []*userPb.StorageDealRecord { + ret := make([]*userPb.StorageDealRecord, len(records)) for i, r := range records { - ret[i] = &proto.StorageDealRecord{ + ret[i] = &userPb.StorageDealRecord{ RootCid: util.CidToString(r.RootCid), Address: r.Addr, Time: r.Time, Pending: r.Pending, - DealInfo: &proto.StorageDealInfo{ + DealInfo: &userPb.StorageDealInfo{ ProposalCid: util.CidToString(r.DealInfo.ProposalCid), StateId: r.DealInfo.StateID, StateName: r.DealInfo.StateName, @@ -197,13 +197,13 @@ func toRPCStorageDealRecords(records []deals.StorageDealRecord) []*proto.Storage return ret } -func toRPCRetrievalDealRecords(records []deals.RetrievalDealRecord) []*proto.RetrievalDealRecord { - ret := make([]*proto.RetrievalDealRecord, len(records)) +func toRPCRetrievalDealRecords(records []deals.RetrievalDealRecord) []*userPb.RetrievalDealRecord { + ret := make([]*userPb.RetrievalDealRecord, len(records)) for i, r := range records { - ret[i] = &proto.RetrievalDealRecord{ + ret[i] = &userPb.RetrievalDealRecord{ Address: r.Addr, Time: r.Time, - DealInfo: &proto.RetrievalDealInfo{ + DealInfo: &userPb.RetrievalDealInfo{ RootCid: util.CidToString(r.DealInfo.RootCid), Size: r.DealInfo.Size, MinPrice: r.DealInfo.MinPrice, @@ -218,8 +218,8 @@ func toRPCRetrievalDealRecords(records []deals.RetrievalDealRecord) []*proto.Ret } // ToProtoStorageJobs converts a slice of ffs.StorageJobs to proto Jobs. -func ToProtoStorageJobs(jobs []ffs.StorageJob) ([]*proto.Job, error) { - var res []*proto.Job +func ToProtoStorageJobs(jobs []ffs.StorageJob) ([]*userPb.StorageJob, error) { + var res []*userPb.StorageJob for _, job := range jobs { j, err := toRPCJob(job) if err != nil { @@ -230,10 +230,10 @@ func ToProtoStorageJobs(jobs []ffs.StorageJob) ([]*proto.Job, error) { return res, nil } -func toRPCJob(job ffs.StorageJob) (*proto.Job, error) { - var dealInfo []*proto.DealInfo +func toRPCJob(job ffs.StorageJob) (*userPb.StorageJob, error) { + var dealInfo []*userPb.DealInfo for _, item := range job.DealInfo { - info := &proto.DealInfo{ + info := &userPb.DealInfo{ ActivationEpoch: item.ActivationEpoch, DealId: item.DealID, Duration: item.Duration, @@ -250,24 +250,24 @@ func toRPCJob(job ffs.StorageJob) (*proto.Job, error) { dealInfo = append(dealInfo, info) } - var status proto.JobStatus + var status userPb.JobStatus switch job.Status { case ffs.Unspecified: - status = proto.JobStatus_JOB_STATUS_UNSPECIFIED + status = userPb.JobStatus_JOB_STATUS_UNSPECIFIED case ffs.Queued: - status = proto.JobStatus_JOB_STATUS_QUEUED + status = userPb.JobStatus_JOB_STATUS_QUEUED case ffs.Executing: - status = proto.JobStatus_JOB_STATUS_EXECUTING + status = userPb.JobStatus_JOB_STATUS_EXECUTING case ffs.Failed: - status = proto.JobStatus_JOB_STATUS_FAILED + status = userPb.JobStatus_JOB_STATUS_FAILED case ffs.Canceled: - status = proto.JobStatus_JOB_STATUS_CANCELED + status = userPb.JobStatus_JOB_STATUS_CANCELED case ffs.Success: - status = proto.JobStatus_JOB_STATUS_SUCCESS + status = userPb.JobStatus_JOB_STATUS_SUCCESS default: return nil, fmt.Errorf("unknown job status: %v", job.Status) } - return &proto.Job{ + return &userPb.StorageJob{ Id: job.ID.String(), ApiId: job.APIID.String(), Cid: util.CidToString(job.Cid), diff --git a/api/server/powergate/wallet.go b/api/server/user/wallet.go similarity index 64% rename from api/server/powergate/wallet.go rename to api/server/user/wallet.go index 2d314bc16..c1d2d50bf 100644 --- a/api/server/powergate/wallet.go +++ b/api/server/user/wallet.go @@ -1,27 +1,27 @@ -package powergate +package user import ( "context" "fmt" "math/big" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" "github.com/textileio/powergate/ffs/api" - proto "github.com/textileio/powergate/proto/powergate/v1" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) // Balance returns the balance for an address. -func (s *Service) Balance(ctx context.Context, req *proto.BalanceRequest) (*proto.BalanceResponse, error) { +func (s *Service) Balance(ctx context.Context, req *userPb.BalanceRequest) (*userPb.BalanceResponse, error) { bal, err := s.w.Balance(ctx, req.Address) if err != nil { return nil, status.Errorf(codes.Internal, "getting balance: %v", err) } - return &proto.BalanceResponse{Balance: bal.String()}, nil + return &userPb.BalanceResponse{Balance: bal.String()}, nil } // NewAddress calls ffs.NewAddr. -func (s *Service) NewAddress(ctx context.Context, req *proto.NewAddressRequest) (*proto.NewAddressResponse, error) { +func (s *Service) NewAddress(ctx context.Context, req *userPb.NewAddressRequest) (*userPb.NewAddressResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err @@ -39,34 +39,34 @@ func (s *Service) NewAddress(ctx context.Context, req *proto.NewAddressRequest) if err != nil { return nil, err } - return &proto.NewAddressResponse{Address: addr}, nil + return &userPb.NewAddressResponse{Address: addr}, nil } // Addresses calls ffs.Addrs. -func (s *Service) Addresses(ctx context.Context, req *proto.AddressesRequest) (*proto.AddressesResponse, error) { +func (s *Service) Addresses(ctx context.Context, req *userPb.AddressesRequest) (*userPb.AddressesResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, status.Errorf(codes.PermissionDenied, "getting instance: %v", err) } addrs := i.Addrs() - res := make([]*proto.AddrInfo, len(addrs)) + res := make([]*userPb.AddrInfo, len(addrs)) for i, addr := range addrs { bal, err := s.w.Balance(ctx, addr.Addr) if err != nil { return nil, status.Errorf(codes.Internal, "getting address balance: %v", err) } - res[i] = &proto.AddrInfo{ + res[i] = &userPb.AddrInfo{ Name: addr.Name, Address: addr.Addr, Type: addr.Type, Balance: bal.String(), } } - return &proto.AddressesResponse{Addresses: res}, nil + return &userPb.AddressesResponse{Addresses: res}, nil } // SendFil sends fil from a managed address to any other address. -func (s *Service) SendFil(ctx context.Context, req *proto.SendFilRequest) (*proto.SendFilResponse, error) { +func (s *Service) SendFil(ctx context.Context, req *userPb.SendFilRequest) (*userPb.SendFilResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err @@ -78,11 +78,11 @@ func (s *Service) SendFil(ctx context.Context, req *proto.SendFilRequest) (*prot if err := i.SendFil(ctx, req.From, req.To, amt); err != nil { return nil, err } - return &proto.SendFilResponse{}, nil + return &userPb.SendFilResponse{}, nil } // SignMessage calls ffs.SignMessage. -func (s *Service) SignMessage(ctx context.Context, req *proto.SignMessageRequest) (*proto.SignMessageResponse, error) { +func (s *Service) SignMessage(ctx context.Context, req *userPb.SignMessageRequest) (*userPb.SignMessageResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err @@ -92,11 +92,11 @@ func (s *Service) SignMessage(ctx context.Context, req *proto.SignMessageRequest return nil, fmt.Errorf("signing message: %s", err) } - return &proto.SignMessageResponse{Signature: signature}, nil + return &userPb.SignMessageResponse{Signature: signature}, nil } // VerifyMessage calls ffs.VerifyMessage. -func (s *Service) VerifyMessage(ctx context.Context, req *proto.VerifyMessageRequest) (*proto.VerifyMessageResponse, error) { +func (s *Service) VerifyMessage(ctx context.Context, req *userPb.VerifyMessageRequest) (*userPb.VerifyMessageResponse, error) { i, err := s.getInstanceByToken(ctx) if err != nil { return nil, err @@ -106,5 +106,5 @@ func (s *Service) VerifyMessage(ctx context.Context, req *proto.VerifyMessageReq return nil, fmt.Errorf("verifying signature: %s", err) } - return &proto.VerifyMessageResponse{Ok: ok}, nil + return &userPb.VerifyMessageResponse{Ok: ok}, nil } diff --git a/buf.yaml b/buf.yaml index de6e635ee..f15a4db86 100644 --- a/buf.yaml +++ b/buf.yaml @@ -1,14 +1,10 @@ +version: v1beta1 build: roots: - - . - excludes: - - buildtools + - proto lint: use: - DEFAULT - except: - - PACKAGE_VERSION_SUFFIX breaking: use: - FILE - \ No newline at end of file diff --git a/buildtools/protocInstall.sh b/buildtools/protocInstall.sh deleted file mode 100755 index d1f74a229..000000000 --- a/buildtools/protocInstall.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -if [ ! -d ./protoc ]; then - OS=$(uname) - if [ $OS = "Darwin" ]; then - OS="osx" - fi - VERSION=3.12.1 - ZIPNAME=protoc-$VERSION-$OS-x86_64 - DOWNLOADLINK=https://github.com/protocolbuffers/protobuf/releases/download/v$VERSION/$ZIPNAME.zip - curl -LO $DOWNLOADLINK - unzip $ZIPNAME.zip -d protoc - rm $ZIPNAME.zip -fi - -if [ ! -d ./protoc-gen-go ]; then - git clone --single-branch --depth 1 --branch "v1.4.2" https://github.com/golang/protobuf.git - cd protobuf - go build -o ../protoc-gen-go/protoc-gen-go ./protoc-gen-go - cd .. - rm -rf protobuf -fi diff --git a/cli-docs/pow/pow.md b/cli-docs/pow/pow.md index 151d28dec..0f10b3703 100644 --- a/cli-docs/pow/pow.md +++ b/cli-docs/pow/pow.md @@ -15,7 +15,7 @@ pow [flags] ``` -h, --help help for pow --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token -v, --version display version information for pow and the connected server ``` @@ -25,7 +25,7 @@ pow [flags] * [pow config](pow_config.md) - Provides commands to interact with cid storage configs * [pow data](pow_data.md) - Provides commands to interact with general data APIs * [pow deals](pow_deals.md) - Provides commands to view Filecoin deal information -* [pow id](pow_id.md) - Returns the storage profile id +* [pow id](pow_id.md) - Returns the user id * [pow storage-jobs](pow_storage-jobs.md) - Provides commands to query for storage jobs in various states * [pow version](pow_version.md) - Display version information for pow and the connected server * [pow wallet](pow_wallet.md) - Provides commands about filecoin wallets diff --git a/cli-docs/pow/pow_admin.md b/cli-docs/pow/pow_admin.md index d626bfae5..f80c6daeb 100644 --- a/cli-docs/pow/pow_admin.md +++ b/cli-docs/pow/pow_admin.md @@ -17,13 +17,13 @@ Provides admin commands ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO * [pow](pow.md) - A client for storage and retreival of powergate data * [pow admin jobs](pow_admin_jobs.md) - Provides admin jobs commands -* [pow admin profiles](pow_admin_profiles.md) - Provides admin storage profile commands +* [pow admin users](pow_admin_users.md) - Provides admin users commands * [pow admin wallet](pow_admin_wallet.md) - Provides admin wallet commands diff --git a/cli-docs/pow/pow_admin_jobs.md b/cli-docs/pow/pow_admin_jobs.md index 81323ca1c..7d01cc3a2 100644 --- a/cli-docs/pow/pow_admin_jobs.md +++ b/cli-docs/pow/pow_admin_jobs.md @@ -17,7 +17,7 @@ Provides admin jobs commands ``` --admin-token string admin auth token --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_admin_jobs_executing.md b/cli-docs/pow/pow_admin_jobs_executing.md index 7f6c803b6..f58dc0113 100644 --- a/cli-docs/pow/pow_admin_jobs_executing.md +++ b/cli-docs/pow/pow_admin_jobs_executing.md @@ -13,9 +13,9 @@ pow admin jobs executing [flags] ### Options ``` - -c, --cids strings optional cids filter to apply - -h, --help help for executing - -i, --profile-id string optional instance id filter to apply + -c, --cids strings optional cids filter to apply + -h, --help help for executing + -i, --user-id string optional instance id filter to apply ``` ### Options inherited from parent commands @@ -23,7 +23,7 @@ pow admin jobs executing [flags] ``` --admin-token string admin auth token --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_admin_jobs_latest-final.md b/cli-docs/pow/pow_admin_jobs_latest-final.md index d7d90b3cd..8e39d6875 100644 --- a/cli-docs/pow/pow_admin_jobs_latest-final.md +++ b/cli-docs/pow/pow_admin_jobs_latest-final.md @@ -13,9 +13,9 @@ pow admin jobs latest-final [flags] ### Options ``` - -c, --cids strings optional cids filter to apply - -h, --help help for latest-final - -i, --profile-id string optional instance id filter to apply + -c, --cids strings optional cids filter to apply + -h, --help help for latest-final + -i, --user-id string optional instance id filter to apply ``` ### Options inherited from parent commands @@ -23,7 +23,7 @@ pow admin jobs latest-final [flags] ``` --admin-token string admin auth token --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_admin_jobs_latest-successful.md b/cli-docs/pow/pow_admin_jobs_latest-successful.md index 03ebd854e..38fb6e160 100644 --- a/cli-docs/pow/pow_admin_jobs_latest-successful.md +++ b/cli-docs/pow/pow_admin_jobs_latest-successful.md @@ -13,9 +13,9 @@ pow admin jobs latest-successful [flags] ### Options ``` - -c, --cids strings optional cids filter to apply - -h, --help help for latest-successful - -i, --profile-id string optional instance id filter to apply + -c, --cids strings optional cids filter to apply + -h, --help help for latest-successful + -i, --user-id string optional instance id filter to apply ``` ### Options inherited from parent commands @@ -23,7 +23,7 @@ pow admin jobs latest-successful [flags] ``` --admin-token string admin auth token --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_admin_jobs_queued.md b/cli-docs/pow/pow_admin_jobs_queued.md index c04c8b2e8..943f5a10e 100644 --- a/cli-docs/pow/pow_admin_jobs_queued.md +++ b/cli-docs/pow/pow_admin_jobs_queued.md @@ -13,9 +13,9 @@ pow admin jobs queued [flags] ### Options ``` - -c, --cids strings optional cids filter to apply - -h, --help help for queued - -i, --profile-id string optional instance id filter to apply + -c, --cids strings optional cids filter to apply + -h, --help help for queued + -i, --user-id string optional instance id filter to apply ``` ### Options inherited from parent commands @@ -23,7 +23,7 @@ pow admin jobs queued [flags] ``` --admin-token string admin auth token --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_admin_jobs_summary.md b/cli-docs/pow/pow_admin_jobs_summary.md index 14ec60632..b8fbdfc50 100644 --- a/cli-docs/pow/pow_admin_jobs_summary.md +++ b/cli-docs/pow/pow_admin_jobs_summary.md @@ -13,9 +13,9 @@ pow admin jobs summary [flags] ### Options ``` - -c, --cids strings optional cids filter to apply - -h, --help help for summary - -i, --profile-id string optional instance id filter to apply + -c, --cids strings optional cids filter to apply + -h, --help help for summary + -i, --user-id string optional instance id filter to apply ``` ### Options inherited from parent commands @@ -23,7 +23,7 @@ pow admin jobs summary [flags] ``` --admin-token string admin auth token --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_admin_profiles.md b/cli-docs/pow/pow_admin_profiles.md deleted file mode 100644 index d31ae417f..000000000 --- a/cli-docs/pow/pow_admin_profiles.md +++ /dev/null @@ -1,28 +0,0 @@ -## pow admin profiles - -Provides admin storage profile commands - -### Synopsis - -Provides admin storage profile commands - -### Options - -``` - -h, --help help for profiles -``` - -### Options inherited from parent commands - -``` - --admin-token string admin auth token - --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token -``` - -### SEE ALSO - -* [pow admin](pow_admin.md) - Provides admin commands -* [pow admin profiles create](pow_admin_profiles_create.md) - Create a Powergate storage profile. -* [pow admin profiles list](pow_admin_profiles_list.md) - List all Powergate storage profiles. - diff --git a/cli-docs/pow/pow_admin_users.md b/cli-docs/pow/pow_admin_users.md new file mode 100644 index 000000000..5510cdb4c --- /dev/null +++ b/cli-docs/pow/pow_admin_users.md @@ -0,0 +1,28 @@ +## pow admin users + +Provides admin users commands + +### Synopsis + +Provides admin users commands + +### Options + +``` + -h, --help help for users +``` + +### Options inherited from parent commands + +``` + --admin-token string admin auth token + --serverAddress string address of the powergate service api (default "127.0.0.1:5002") + -t, --token string user auth token +``` + +### SEE ALSO + +* [pow admin](pow_admin.md) - Provides admin commands +* [pow admin users create](pow_admin_users_create.md) - Create a Powergate user. +* [pow admin users list](pow_admin_users_list.md) - List all Powergate users. + diff --git a/cli-docs/pow/pow_admin_profiles_create.md b/cli-docs/pow/pow_admin_users_create.md similarity index 50% rename from cli-docs/pow/pow_admin_profiles_create.md rename to cli-docs/pow/pow_admin_users_create.md index 79d06a5f8..3be38d55a 100644 --- a/cli-docs/pow/pow_admin_profiles_create.md +++ b/cli-docs/pow/pow_admin_users_create.md @@ -1,13 +1,13 @@ -## pow admin profiles create +## pow admin users create -Create a Powergate storage profile. +Create a Powergate user. ### Synopsis -Create a Powergate storage profile. +Create a Powergate user. ``` -pow admin profiles create [flags] +pow admin users create [flags] ``` ### Options @@ -21,10 +21,10 @@ pow admin profiles create [flags] ``` --admin-token string admin auth token --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO -* [pow admin profiles](pow_admin_profiles.md) - Provides admin storage profile commands +* [pow admin users](pow_admin_users.md) - Provides admin users commands diff --git a/cli-docs/pow/pow_admin_profiles_list.md b/cli-docs/pow/pow_admin_users_list.md similarity index 50% rename from cli-docs/pow/pow_admin_profiles_list.md rename to cli-docs/pow/pow_admin_users_list.md index 16795e2ed..ed1650199 100644 --- a/cli-docs/pow/pow_admin_profiles_list.md +++ b/cli-docs/pow/pow_admin_users_list.md @@ -1,13 +1,13 @@ -## pow admin profiles list +## pow admin users list -List all Powergate storage profiles. +List all Powergate users. ### Synopsis -List all Powergate storage profiles. +List all Powergate users. ``` -pow admin profiles list [flags] +pow admin users list [flags] ``` ### Options @@ -21,10 +21,10 @@ pow admin profiles list [flags] ``` --admin-token string admin auth token --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO -* [pow admin profiles](pow_admin_profiles.md) - Provides admin storage profile commands +* [pow admin users](pow_admin_users.md) - Provides admin users commands diff --git a/cli-docs/pow/pow_admin_wallet.md b/cli-docs/pow/pow_admin_wallet.md index 4427629df..e8ec63d47 100644 --- a/cli-docs/pow/pow_admin_wallet.md +++ b/cli-docs/pow/pow_admin_wallet.md @@ -17,7 +17,7 @@ Provides admin wallet commands ``` --admin-token string admin auth token --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_admin_wallet_addrs.md b/cli-docs/pow/pow_admin_wallet_addrs.md index fd94e73c9..c4d162c18 100644 --- a/cli-docs/pow/pow_admin_wallet_addrs.md +++ b/cli-docs/pow/pow_admin_wallet_addrs.md @@ -21,7 +21,7 @@ pow admin wallet addrs [flags] ``` --admin-token string admin auth token --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_admin_wallet_new.md b/cli-docs/pow/pow_admin_wallet_new.md index d505a1b81..d70864a09 100644 --- a/cli-docs/pow/pow_admin_wallet_new.md +++ b/cli-docs/pow/pow_admin_wallet_new.md @@ -22,7 +22,7 @@ pow admin wallet new [flags] ``` --admin-token string admin auth token --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_admin_wallet_send.md b/cli-docs/pow/pow_admin_wallet_send.md index 5f4c77d8a..170c38d3c 100644 --- a/cli-docs/pow/pow_admin_wallet_send.md +++ b/cli-docs/pow/pow_admin_wallet_send.md @@ -21,7 +21,7 @@ pow admin wallet send [from] [to] [amount] [flags] ``` --admin-token string admin auth token --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_config.md b/cli-docs/pow/pow_config.md index b4de84e4d..d57cfb2fa 100644 --- a/cli-docs/pow/pow_config.md +++ b/cli-docs/pow/pow_config.md @@ -16,7 +16,7 @@ Provides commands to interact with cid storage configs ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_config_apply.md b/cli-docs/pow/pow_config_apply.md index 37466650f..2c831e80a 100644 --- a/cli-docs/pow/pow_config_apply.md +++ b/cli-docs/pow/pow_config_apply.md @@ -13,7 +13,7 @@ pow config apply [cid] [flags] ### Options ``` - -c, --conf string Optional path to a file containing storage config json, falls back to stdin, uses storage profile default by default + -c, --conf string Optional path to a file containing storage config json, falls back to stdin, uses the user default by default -h, --help help for apply -o, --override If set, override any pre-existing storage configuration for the cid -w, --watch Watch the progress of the resulting job @@ -23,7 +23,7 @@ pow config apply [cid] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_config_default.md b/cli-docs/pow/pow_config_default.md index 8d45e6b07..eaa2ec79c 100644 --- a/cli-docs/pow/pow_config_default.md +++ b/cli-docs/pow/pow_config_default.md @@ -20,7 +20,7 @@ pow config default [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_config_remove.md b/cli-docs/pow/pow_config_remove.md index 430b44907..cf4d7e76a 100644 --- a/cli-docs/pow/pow_config_remove.md +++ b/cli-docs/pow/pow_config_remove.md @@ -20,7 +20,7 @@ pow config remove [cid] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_config_set-default.md b/cli-docs/pow/pow_config_set-default.md index ce7e5ce34..5b18e2614 100644 --- a/cli-docs/pow/pow_config_set-default.md +++ b/cli-docs/pow/pow_config_set-default.md @@ -20,7 +20,7 @@ pow config set-default [optional file] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_data.md b/cli-docs/pow/pow_data.md index 5ad9b6325..7567322ab 100644 --- a/cli-docs/pow/pow_data.md +++ b/cli-docs/pow/pow_data.md @@ -16,13 +16,13 @@ Provides commands to interact with general data APIs ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO * [pow](pow.md) - A client for storage and retreival of powergate data -* [pow data get](pow_data_get.md) - Get data by cid from the storage profile +* [pow data get](pow_data_get.md) - Get data stored by the user by cid * [pow data info](pow_data_info.md) - Get information about the current storate state of a cid * [pow data log](pow_data_log.md) - Display logs for specified cid * [pow data replace](pow_data_replace.md) - Applies a StorageConfig for c2 equal to that of c1, and removes c1 diff --git a/cli-docs/pow/pow_data_get.md b/cli-docs/pow/pow_data_get.md index 5d545410d..566fd6e4e 100644 --- a/cli-docs/pow/pow_data_get.md +++ b/cli-docs/pow/pow_data_get.md @@ -1,10 +1,10 @@ ## pow data get -Get data by cid from the storage profile +Get data stored by the user by cid ### Synopsis -Get data by cid from the storage profile +Get data stored by the user by cid ``` pow data get [cid] [output file path] [flags] @@ -22,7 +22,7 @@ pow data get [cid] [output file path] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_data_info.md b/cli-docs/pow/pow_data_info.md index 109018716..10d6c9fd4 100644 --- a/cli-docs/pow/pow_data_info.md +++ b/cli-docs/pow/pow_data_info.md @@ -20,7 +20,7 @@ pow data info [optional cid1,cid2,...] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_data_log.md b/cli-docs/pow/pow_data_log.md index 89cfce658..e85d1a06f 100644 --- a/cli-docs/pow/pow_data_log.md +++ b/cli-docs/pow/pow_data_log.md @@ -21,7 +21,7 @@ pow data log [cid] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_data_replace.md b/cli-docs/pow/pow_data_replace.md index 2c69ba419..2134b2f69 100644 --- a/cli-docs/pow/pow_data_replace.md +++ b/cli-docs/pow/pow_data_replace.md @@ -21,7 +21,7 @@ pow data replace [cid1] [cid2] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_data_stage.md b/cli-docs/pow/pow_data_stage.md index 54a34bf97..ddbe5c46e 100644 --- a/cli-docs/pow/pow_data_stage.md +++ b/cli-docs/pow/pow_data_stage.md @@ -21,7 +21,7 @@ pow data stage [path|url] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_deals.md b/cli-docs/pow/pow_deals.md index 95f3eae58..3bc087c9c 100644 --- a/cli-docs/pow/pow_deals.md +++ b/cli-docs/pow/pow_deals.md @@ -16,12 +16,12 @@ Provides commands to view Filecoin deal information ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO * [pow](pow.md) - A client for storage and retreival of powergate data -* [pow deals retrievals](pow_deals_retrievals.md) - List retrieval deal records for the storage profile -* [pow deals storage](pow_deals_storage.md) - List storage deal records for the storage profile +* [pow deals retrievals](pow_deals_retrievals.md) - List retrieval deal records for the user +* [pow deals storage](pow_deals_storage.md) - List storage deal records for the user diff --git a/cli-docs/pow/pow_deals_retrievals.md b/cli-docs/pow/pow_deals_retrievals.md index 78ba5f51d..be4c9f842 100644 --- a/cli-docs/pow/pow_deals_retrievals.md +++ b/cli-docs/pow/pow_deals_retrievals.md @@ -1,10 +1,10 @@ ## pow deals retrievals -List retrieval deal records for the storage profile +List retrieval deal records for the user ### Synopsis -List retrieval deal records for the storage profile +List retrieval deal records for the user ``` pow deals retrievals [flags] @@ -23,7 +23,7 @@ pow deals retrievals [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_deals_storage.md b/cli-docs/pow/pow_deals_storage.md index a2f199f04..78b5ac480 100644 --- a/cli-docs/pow/pow_deals_storage.md +++ b/cli-docs/pow/pow_deals_storage.md @@ -1,10 +1,10 @@ ## pow deals storage -List storage deal records for the storage profile +List storage deal records for the user ### Synopsis -List storage deal records for the storage profile +List storage deal records for the user ``` pow deals storage [flags] @@ -25,7 +25,7 @@ pow deals storage [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_id.md b/cli-docs/pow/pow_id.md index e2d978252..7ba915e7e 100644 --- a/cli-docs/pow/pow_id.md +++ b/cli-docs/pow/pow_id.md @@ -1,10 +1,10 @@ ## pow id -Returns the storage profile id +Returns the user id ### Synopsis -Returns the storage profile id +Returns the user id ``` pow id [flags] @@ -20,7 +20,7 @@ pow id [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_storage-jobs.md b/cli-docs/pow/pow_storage-jobs.md index f60f44702..09d0886b9 100644 --- a/cli-docs/pow/pow_storage-jobs.md +++ b/cli-docs/pow/pow_storage-jobs.md @@ -16,7 +16,7 @@ Provides commands to query for storage jobs in various statess ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_storage-jobs_cancel.md b/cli-docs/pow/pow_storage-jobs_cancel.md index 0d2dad698..f3f9dcafc 100644 --- a/cli-docs/pow/pow_storage-jobs_cancel.md +++ b/cli-docs/pow/pow_storage-jobs_cancel.md @@ -20,7 +20,7 @@ pow storage-jobs cancel [jobid] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_storage-jobs_executing.md b/cli-docs/pow/pow_storage-jobs_executing.md index 758687a87..8c0302d3d 100644 --- a/cli-docs/pow/pow_storage-jobs_executing.md +++ b/cli-docs/pow/pow_storage-jobs_executing.md @@ -20,7 +20,7 @@ pow storage-jobs executing [optional cid1,cid2,...] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_storage-jobs_get.md b/cli-docs/pow/pow_storage-jobs_get.md index 88ba96757..8ad47ba9c 100644 --- a/cli-docs/pow/pow_storage-jobs_get.md +++ b/cli-docs/pow/pow_storage-jobs_get.md @@ -20,7 +20,7 @@ pow storage-jobs get [jobid] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_storage-jobs_latest-final.md b/cli-docs/pow/pow_storage-jobs_latest-final.md index eb124f75e..f725afbdf 100644 --- a/cli-docs/pow/pow_storage-jobs_latest-final.md +++ b/cli-docs/pow/pow_storage-jobs_latest-final.md @@ -20,7 +20,7 @@ pow storage-jobs latest-final [optional cid1,cid2,...] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_storage-jobs_latest-successful.md b/cli-docs/pow/pow_storage-jobs_latest-successful.md index b48ccb399..2f1152d18 100644 --- a/cli-docs/pow/pow_storage-jobs_latest-successful.md +++ b/cli-docs/pow/pow_storage-jobs_latest-successful.md @@ -20,7 +20,7 @@ pow storage-jobs latest-successful [optional cid1,cid2,...] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_storage-jobs_queued.md b/cli-docs/pow/pow_storage-jobs_queued.md index 9fd16131f..853c7b3c0 100644 --- a/cli-docs/pow/pow_storage-jobs_queued.md +++ b/cli-docs/pow/pow_storage-jobs_queued.md @@ -20,7 +20,7 @@ pow storage-jobs queued [optional cid1,cid2,...] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_storage-jobs_storage-config.md b/cli-docs/pow/pow_storage-jobs_storage-config.md index c1480b577..08d581c93 100644 --- a/cli-docs/pow/pow_storage-jobs_storage-config.md +++ b/cli-docs/pow/pow_storage-jobs_storage-config.md @@ -20,7 +20,7 @@ pow storage-jobs storage-config [job-id] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_storage-jobs_summary.md b/cli-docs/pow/pow_storage-jobs_summary.md index 501477128..484057826 100644 --- a/cli-docs/pow/pow_storage-jobs_summary.md +++ b/cli-docs/pow/pow_storage-jobs_summary.md @@ -20,7 +20,7 @@ pow storage-jobs summary [optional cid1,cid2,...] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_storage-jobs_watch.md b/cli-docs/pow/pow_storage-jobs_watch.md index 30c076846..19adc1b74 100644 --- a/cli-docs/pow/pow_storage-jobs_watch.md +++ b/cli-docs/pow/pow_storage-jobs_watch.md @@ -20,7 +20,7 @@ pow storage-jobs watch [jobid,...] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_version.md b/cli-docs/pow/pow_version.md index ca85d2c03..89026cda1 100644 --- a/cli-docs/pow/pow_version.md +++ b/cli-docs/pow/pow_version.md @@ -20,7 +20,7 @@ pow version [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_wallet.md b/cli-docs/pow/pow_wallet.md index 4ebd6e21d..50a3d614c 100644 --- a/cli-docs/pow/pow_wallet.md +++ b/cli-docs/pow/pow_wallet.md @@ -16,16 +16,16 @@ Provides commands about filecoin wallets ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO * [pow](pow.md) - A client for storage and retreival of powergate data -* [pow wallet addrs](pow_wallet_addrs.md) - Print all wallet addresses for the current storage profile +* [pow wallet addrs](pow_wallet_addrs.md) - Print all wallet addresses for the current user * [pow wallet balance](pow_wallet_balance.md) - Print the balance of the specified wallet address * [pow wallet new-addr](pow_wallet_new-addr.md) - Create a new wallet address * [pow wallet send](pow_wallet_send.md) - Send fil from one managed address to any other address -* [pow wallet sign](pow_wallet_sign.md) - Signs a message with storage profile wallet addresses. -* [pow wallet verify](pow_wallet_verify.md) - Verifies the signature of a message signed with a storage profile wallet address. +* [pow wallet sign](pow_wallet_sign.md) - Signs a message with user wallet addresses. +* [pow wallet verify](pow_wallet_verify.md) - Verifies the signature of a message signed with a user wallet address. diff --git a/cli-docs/pow/pow_wallet_addrs.md b/cli-docs/pow/pow_wallet_addrs.md index a11c3c721..f8350d90c 100644 --- a/cli-docs/pow/pow_wallet_addrs.md +++ b/cli-docs/pow/pow_wallet_addrs.md @@ -1,10 +1,10 @@ ## pow wallet addrs -Print all wallet addresses for the current storage profile +Print all wallet addresses for the current user ### Synopsis -Print all wallet addresses for the current storage profile +Print all wallet addresses for the current user ``` pow wallet addrs [flags] @@ -20,7 +20,7 @@ pow wallet addrs [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_wallet_balance.md b/cli-docs/pow/pow_wallet_balance.md index 7decb6496..797f632a4 100644 --- a/cli-docs/pow/pow_wallet_balance.md +++ b/cli-docs/pow/pow_wallet_balance.md @@ -20,7 +20,7 @@ pow wallet balance [address] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_wallet_new-addr.md b/cli-docs/pow/pow_wallet_new-addr.md index a6f4db504..65a5a201f 100644 --- a/cli-docs/pow/pow_wallet_new-addr.md +++ b/cli-docs/pow/pow_wallet_new-addr.md @@ -13,7 +13,7 @@ pow wallet new-addr [name] [flags] ### Options ``` - -d, --default Make the new address the storage profile default + -d, --default Make the new address the user default -f, --format string Optionally specify address format bls or secp256k1 -h, --help help for new-addr ``` @@ -22,7 +22,7 @@ pow wallet new-addr [name] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_wallet_send.md b/cli-docs/pow/pow_wallet_send.md index abe8603ea..0dd40063b 100644 --- a/cli-docs/pow/pow_wallet_send.md +++ b/cli-docs/pow/pow_wallet_send.md @@ -20,7 +20,7 @@ pow wallet send [from address] [to address] [amount] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_wallet_sign.md b/cli-docs/pow/pow_wallet_sign.md index 09b9982cb..8c8db4ee0 100644 --- a/cli-docs/pow/pow_wallet_sign.md +++ b/cli-docs/pow/pow_wallet_sign.md @@ -1,10 +1,10 @@ ## pow wallet sign -Signs a message with storage profile wallet addresses. +Signs a message with user wallet addresses. ### Synopsis -Signs a message using all wallet addresses associated with the storage profile +Signs a message using all wallet addresses associated with the user ``` pow wallet sign [hex-encoded-message] [flags] @@ -20,7 +20,7 @@ pow wallet sign [hex-encoded-message] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cli-docs/pow/pow_wallet_verify.md b/cli-docs/pow/pow_wallet_verify.md index 4b65f1e79..5be08f110 100644 --- a/cli-docs/pow/pow_wallet_verify.md +++ b/cli-docs/pow/pow_wallet_verify.md @@ -1,10 +1,10 @@ ## pow wallet verify -Verifies the signature of a message signed with a storage profile wallet address. +Verifies the signature of a message signed with a user wallet address. ### Synopsis -Verifies the signature of a message signed with a storage profile wallet address. +Verifies the signature of a message signed with a user wallet address. ``` pow wallet verify [addr] [hex-encoded-message] [hex-encoded-signature] [flags] @@ -20,7 +20,7 @@ pow wallet verify [addr] [hex-encoded-message] [hex-encoded-signature] [flags] ``` --serverAddress string address of the powergate service api (default "127.0.0.1:5002") - -t, --token string storage profile auth token + -t, --token string user auth token ``` ### SEE ALSO diff --git a/cmd/pow/cmd/admin.go b/cmd/pow/cmd/admin.go index 21b9093b6..453ab6d4f 100644 --- a/cmd/pow/cmd/admin.go +++ b/cmd/pow/cmd/admin.go @@ -10,7 +10,7 @@ func init() { rootCmd.AddCommand(adminCmd) adminCmd.AddCommand( adminJobsCmd, - adminProfilesCmd, + adminUsersCmd, adminWalletCmd, ) } @@ -28,11 +28,11 @@ var adminJobsCmd = &cobra.Command{ Long: `Provides admin jobs commands`, } -var adminProfilesCmd = &cobra.Command{ - Use: "profiles", - Aliases: []string{"profile"}, - Short: "Provides admin storage profile commands", - Long: `Provides admin storage profile commands`, +var adminUsersCmd = &cobra.Command{ + Use: "users", + Aliases: []string{"user"}, + Short: "Provides admin users commands", + Long: `Provides admin users commands`, } var adminWalletCmd = &cobra.Command{ diff --git a/cmd/pow/cmd/admin_jobs.go b/cmd/pow/cmd/admin_jobs.go index e04c8cdd0..f46bf2d68 100644 --- a/cmd/pow/cmd/admin_jobs.go +++ b/cmd/pow/cmd/admin_jobs.go @@ -11,19 +11,19 @@ import ( ) func init() { - adminJobsQueuedCmd.Flags().StringP("profile-id", "i", "", "optional instance id filter to apply") + adminJobsQueuedCmd.Flags().StringP("user-id", "i", "", "optional instance id filter to apply") adminJobsQueuedCmd.Flags().StringSliceP("cids", "c", nil, "optional cids filter to apply") - adminJobsExecutingCmd.Flags().StringP("profile-id", "i", "", "optional instance id filter to apply") + adminJobsExecutingCmd.Flags().StringP("user-id", "i", "", "optional instance id filter to apply") adminJobsExecutingCmd.Flags().StringSliceP("cids", "c", nil, "optional cids filter to apply") - adminJobsLatestFinalCmd.Flags().StringP("profile-id", "i", "", "optional instance id filter to apply") + adminJobsLatestFinalCmd.Flags().StringP("user-id", "i", "", "optional instance id filter to apply") adminJobsLatestFinalCmd.Flags().StringSliceP("cids", "c", nil, "optional cids filter to apply") - adminJobsLatestSuccessfulCmd.Flags().StringP("profile-id", "i", "", "optional instance id filter to apply") + adminJobsLatestSuccessfulCmd.Flags().StringP("user-id", "i", "", "optional instance id filter to apply") adminJobsLatestSuccessfulCmd.Flags().StringSliceP("cids", "c", nil, "optional cids filter to apply") - adminJobsSummaryCmd.Flags().StringP("profile-id", "i", "", "optional instance id filter to apply") + adminJobsSummaryCmd.Flags().StringP("user-id", "i", "", "optional instance id filter to apply") adminJobsSummaryCmd.Flags().StringSliceP("cids", "c", nil, "optional cids filter to apply") adminJobsCmd.AddCommand( @@ -152,8 +152,8 @@ var adminJobsSummaryCmd = &cobra.Command{ func storageJobsOpts() []admin.StorageJobsOption { var opts []admin.StorageJobsOption - if viper.IsSet("profile-id") { - opts = append(opts, admin.WithProfileID(viper.GetString("profile-id"))) + if viper.IsSet("user-id") { + opts = append(opts, admin.WithUserID(viper.GetString("user-id"))) } if viper.IsSet("cids") { opts = append(opts, admin.WithCids(viper.GetStringSlice("cids")...)) diff --git a/cmd/pow/cmd/admin_profiles.go b/cmd/pow/cmd/admin_users.go similarity index 68% rename from cmd/pow/cmd/admin_profiles.go rename to cmd/pow/cmd/admin_users.go index 66b34e4b3..d4a324a2a 100644 --- a/cmd/pow/cmd/admin_profiles.go +++ b/cmd/pow/cmd/admin_users.go @@ -10,16 +10,16 @@ import ( ) func init() { - adminProfilesCmd.AddCommand( - adminProfilesCreateCmd, - adminProfilesListCmd, + adminUsersCmd.AddCommand( + adminUsersCreateCmd, + adminUsersListCmd, ) } -var adminProfilesCreateCmd = &cobra.Command{ +var adminUsersCreateCmd = &cobra.Command{ Use: "create", - Short: "Create a Powergate storage profile.", - Long: `Create a Powergate storage profile.`, + Short: "Create a Powergate user.", + Long: `Create a Powergate user.`, Args: cobra.NoArgs, PreRun: func(cmd *cobra.Command, args []string) { err := viper.BindPFlags(cmd.Flags()) @@ -29,7 +29,7 @@ var adminProfilesCreateCmd = &cobra.Command{ ctx, cancel := context.WithTimeout(context.Background(), cmdTimeout) defer cancel() - res, err := powClient.Admin.Profiles.CreateStorageProfile(adminAuthCtx(ctx)) + res, err := powClient.Admin.Users.Create(adminAuthCtx(ctx)) checkErr(err) json, err := protojson.MarshalOptions{Multiline: true, Indent: " ", EmitUnpopulated: true}.Marshal(res) @@ -39,10 +39,10 @@ var adminProfilesCreateCmd = &cobra.Command{ }, } -var adminProfilesListCmd = &cobra.Command{ +var adminUsersListCmd = &cobra.Command{ Use: "list", - Short: "List all Powergate storage profiles.", - Long: `List all Powergate storage profiles.`, + Short: "List all Powergate users.", + Long: `List all Powergate users.`, Args: cobra.NoArgs, PreRun: func(cmd *cobra.Command, args []string) { err := viper.BindPFlags(cmd.Flags()) @@ -52,7 +52,7 @@ var adminProfilesListCmd = &cobra.Command{ ctx, cancel := context.WithTimeout(context.Background(), cmdTimeout) defer cancel() - res, err := powClient.Admin.Profiles.StorageProfiles(adminAuthCtx(ctx)) + res, err := powClient.Admin.Users.List(adminAuthCtx(ctx)) checkErr(err) json, err := protojson.MarshalOptions{Multiline: true, Indent: " ", EmitUnpopulated: true}.Marshal(res) diff --git a/cmd/pow/cmd/config_apply.go b/cmd/pow/cmd/config_apply.go index f94d324e8..103a1fd2c 100644 --- a/cmd/pow/cmd/config_apply.go +++ b/cmd/pow/cmd/config_apply.go @@ -11,12 +11,12 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/textileio/powergate/api/client" - proto "github.com/textileio/powergate/proto/powergate/v1" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" "google.golang.org/protobuf/encoding/protojson" ) func init() { - configApplyCmd.Flags().StringP("conf", "c", "", "Optional path to a file containing storage config json, falls back to stdin, uses storage profile default by default") + configApplyCmd.Flags().StringP("conf", "c", "", "Optional path to a file containing storage config json, falls back to stdin, uses the user default by default") configApplyCmd.Flags().BoolP("override", "o", false, "If set, override any pre-existing storage configuration for the cid") configApplyCmd.Flags().BoolP("watch", "w", false, "Watch the progress of the resulting job") @@ -63,7 +63,7 @@ var configApplyCmd = &cobra.Command{ _, err := buf.ReadFrom(reader) checkErr(err) - config := &proto.StorageConfig{} + config := &userPb.StorageConfig{} err = protojson.UnmarshalOptions{}.Unmarshal(buf.Bytes(), config) checkErr(err) diff --git a/cmd/pow/cmd/config_set_default.go b/cmd/pow/cmd/config_set_default.go index 0326f2f36..222b6ffa2 100644 --- a/cmd/pow/cmd/config_set_default.go +++ b/cmd/pow/cmd/config_set_default.go @@ -10,7 +10,7 @@ import ( logging "github.com/ipfs/go-log/v2" "github.com/spf13/cobra" "github.com/spf13/viper" - proto "github.com/textileio/powergate/proto/powergate/v1" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" "google.golang.org/protobuf/encoding/protojson" ) @@ -53,7 +53,7 @@ var configSetDefaultCmd = &cobra.Command{ _, err := buf.ReadFrom(reader) checkErr(err) - config := &proto.StorageConfig{} + config := &userPb.StorageConfig{} err = protojson.UnmarshalOptions{}.Unmarshal(buf.Bytes(), config) checkErr(err) diff --git a/cmd/pow/cmd/data_get.go b/cmd/pow/cmd/data_get.go index 60314d1ac..54aa5b534 100644 --- a/cmd/pow/cmd/data_get.go +++ b/cmd/pow/cmd/data_get.go @@ -20,8 +20,8 @@ func init() { var dataGetCmd = &cobra.Command{ Use: "get [cid] [output file path]", - Short: "Get data by cid from the storage profile", - Long: `Get data by cid from the storage profile`, + Short: "Get data stored by the user by cid", + Long: `Get data stored by the user by cid`, Args: cobra.ExactArgs(2), PreRun: func(cmd *cobra.Command, args []string) { err := viper.BindPFlags(cmd.Flags()) diff --git a/cmd/pow/cmd/deals_retrievals.go b/cmd/pow/cmd/deals_retrievals.go index 43fd268b9..d82061ab9 100644 --- a/cmd/pow/cmd/deals_retrievals.go +++ b/cmd/pow/cmd/deals_retrievals.go @@ -20,8 +20,8 @@ func init() { var dealsRetrievalsCmd = &cobra.Command{ Use: "retrievals", - Short: "List retrieval deal records for the storage profile", - Long: `List retrieval deal records for the storage profile`, + Short: "List retrieval deal records for the user", + Long: `List retrieval deal records for the user`, PreRun: func(cmd *cobra.Command, args []string) { err := viper.BindPFlags(cmd.Flags()) checkErr(err) diff --git a/cmd/pow/cmd/deals_storage.go b/cmd/pow/cmd/deals_storage.go index c24861271..555205c3d 100644 --- a/cmd/pow/cmd/deals_storage.go +++ b/cmd/pow/cmd/deals_storage.go @@ -22,8 +22,8 @@ func init() { var dealsStorageCmd = &cobra.Command{ Use: "storage", - Short: "List storage deal records for the storage profile", - Long: `List storage deal records for the storage profile`, + Short: "List storage deal records for the user", + Long: `List storage deal records for the user`, PreRun: func(cmd *cobra.Command, args []string) { err := viper.BindPFlags(cmd.Flags()) checkErr(err) diff --git a/cmd/pow/cmd/id.go b/cmd/pow/cmd/id.go index 04aa9a4be..51a3b0963 100644 --- a/cmd/pow/cmd/id.go +++ b/cmd/pow/cmd/id.go @@ -16,8 +16,8 @@ func init() { var idCmd = &cobra.Command{ Use: "id", - Short: "Returns the storage profile id", - Long: `Returns the storage profile id`, + Short: "Returns the user id", + Long: `Returns the user id`, PreRun: func(cmd *cobra.Command, args []string) { err := viper.BindPFlags(cmd.Flags()) checkErr(err) @@ -26,7 +26,7 @@ var idCmd = &cobra.Command{ ctx, cancel := context.WithTimeout(context.Background(), time.Second*60) defer cancel() - res, err := powClient.StorageProfileID(mustAuthCtx(ctx)) + res, err := powClient.UserID(mustAuthCtx(ctx)) checkErr(err) json, err := protojson.MarshalOptions{Multiline: true, Indent: " ", EmitUnpopulated: true}.Marshal(res) diff --git a/cmd/pow/cmd/root.go b/cmd/pow/cmd/root.go index b62949e7c..f463d3d37 100644 --- a/cmd/pow/cmd/root.go +++ b/cmd/pow/cmd/root.go @@ -55,7 +55,7 @@ func init() { cobra.OnInitialize(initConfig) rootCmd.Flags().BoolP("version", "v", false, "display version information for pow and the connected server") rootCmd.PersistentFlags().String("serverAddress", "127.0.0.1:5002", "address of the powergate service api") - rootCmd.PersistentFlags().StringP("token", "t", "", "storage profile auth token") + rootCmd.PersistentFlags().StringP("token", "t", "", "user auth token") } func initConfig() { diff --git a/cmd/pow/cmd/storage_jobs_get.go b/cmd/pow/cmd/storage_jobs_get.go index 85ab66ea9..b854feba9 100644 --- a/cmd/pow/cmd/storage_jobs_get.go +++ b/cmd/pow/cmd/storage_jobs_get.go @@ -29,7 +29,7 @@ var storageJobGetCmd = &cobra.Command{ res, err := powClient.StorageJobs.StorageJob(mustAuthCtx(ctx), args[0]) checkErr(err) - json, err := protojson.MarshalOptions{Multiline: true, Indent: " ", EmitUnpopulated: true}.Marshal(res.Job) + json, err := protojson.MarshalOptions{Multiline: true, Indent: " ", EmitUnpopulated: true}.Marshal(res.StorageJob) checkErr(err) fmt.Println(string(json)) diff --git a/cmd/pow/cmd/storage_jobs_watch.go b/cmd/pow/cmd/storage_jobs_watch.go index 87c3f842a..e28bf1289 100644 --- a/cmd/pow/cmd/storage_jobs_watch.go +++ b/cmd/pow/cmd/storage_jobs_watch.go @@ -14,7 +14,7 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/textileio/powergate/api/client" - proto "github.com/textileio/powergate/proto/powergate/v1" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" ) func init() { @@ -66,7 +66,7 @@ func watchJobIds(jobIds ...string) { if !ok { break } - state[event.Res.Job.Id] = &event + state[event.Res.StorageJob.Id] = &event updateJobsOutput(writer, state) if jobsComplete(state) { break @@ -85,15 +85,15 @@ func updateJobsOutput(writer *goterminal.Writer, state map[string]*client.WatchS for _, k := range keys { if state[k] != nil { var val string - if state[k].Res.Job.Status == proto.JobStatus_JOB_STATUS_FAILED { - val = fmt.Sprintf("%v %v", state[k].Res.Job.Status.String(), state[k].Res.Job.ErrorCause) + if state[k].Res.StorageJob.Status == userPb.JobStatus_JOB_STATUS_FAILED { + val = fmt.Sprintf("%v %v", state[k].Res.StorageJob.Status.String(), state[k].Res.StorageJob.ErrorCause) } else if state[k].Err != nil { val = fmt.Sprintf("Error: %v", state[k].Err.Error()) } else { - val = state[k].Res.Job.Status.String() + val = state[k].Res.StorageJob.Status.String() } data = append(data, []string{k, val, "", "", ""}) - for _, dealInfo := range state[k].Res.Job.DealInfo { + for _, dealInfo := range state[k].Res.StorageJob.DealInfo { data = append(data, []string{"", "", dealInfo.Miner, strconv.FormatUint(dealInfo.PricePerEpoch, 10), dealInfo.StateName}) } } else { @@ -111,8 +111,8 @@ func jobsComplete(state map[string]*client.WatchStorageJobsEvent) bool { for _, event := range state { processing := false if event == nil || - event.Res.Job.Status == proto.JobStatus_JOB_STATUS_EXECUTING || - event.Res.Job.Status == proto.JobStatus_JOB_STATUS_QUEUED { + event.Res.StorageJob.Status == userPb.JobStatus_JOB_STATUS_EXECUTING || + event.Res.StorageJob.Status == userPb.JobStatus_JOB_STATUS_QUEUED { processing = true } if processing && event != nil && event.Err == nil { diff --git a/cmd/pow/cmd/wallet_addrs.go b/cmd/pow/cmd/wallet_addrs.go index 4719d8eaf..63da0aae9 100644 --- a/cmd/pow/cmd/wallet_addrs.go +++ b/cmd/pow/cmd/wallet_addrs.go @@ -15,8 +15,8 @@ func init() { var walletAddrsCmd = &cobra.Command{ Use: "addrs", - Short: "Print all wallet addresses for the current storage profile", - Long: `Print all wallet addresses for the current storage profile`, + Short: "Print all wallet addresses for the current user", + Long: `Print all wallet addresses for the current user`, PreRun: func(cmd *cobra.Command, args []string) { err := viper.BindPFlags(cmd.Flags()) checkErr(err) diff --git a/cmd/pow/cmd/wallet_new_addr.go b/cmd/pow/cmd/wallet_new_addr.go index 83b7bcf72..7c95b53bf 100644 --- a/cmd/pow/cmd/wallet_new_addr.go +++ b/cmd/pow/cmd/wallet_new_addr.go @@ -14,7 +14,7 @@ import ( func init() { newAddrCmd.Flags().StringP("format", "f", "", "Optionally specify address format bls or secp256k1") - newAddrCmd.Flags().BoolP("default", "d", false, "Make the new address the storage profile default") + newAddrCmd.Flags().BoolP("default", "d", false, "Make the new address the user default") walletCmd.AddCommand(newAddrCmd) } diff --git a/cmd/pow/cmd/wallet_sign.go b/cmd/pow/cmd/wallet_sign.go index 1fd535d78..e2a05e2f6 100644 --- a/cmd/pow/cmd/wallet_sign.go +++ b/cmd/pow/cmd/wallet_sign.go @@ -15,8 +15,8 @@ func init() { var walletSignCmd = &cobra.Command{ Use: "sign [hex-encoded-message]", - Short: "Signs a message with storage profile wallet addresses.", - Long: "Signs a message using all wallet addresses associated with the storage profile", + Short: "Signs a message with user wallet addresses.", + Long: "Signs a message using all wallet addresses associated with the user", Args: cobra.ExactArgs(1), PreRun: func(cmd *cobra.Command, args []string) { err := viper.BindPFlags(cmd.Flags()) diff --git a/cmd/pow/cmd/wallet_verify.go b/cmd/pow/cmd/wallet_verify.go index 4698295cc..afddd2f80 100644 --- a/cmd/pow/cmd/wallet_verify.go +++ b/cmd/pow/cmd/wallet_verify.go @@ -16,8 +16,8 @@ func init() { var walletVerifyCmd = &cobra.Command{ Use: "verify [addr] [hex-encoded-message] [hex-encoded-signature]", - Short: "Verifies the signature of a message signed with a storage profile wallet address.", - Long: "Verifies the signature of a message signed with a storage profile wallet address.", + Short: "Verifies the signature of a message signed with a user wallet address.", + Long: "Verifies the signature of a message signed with a user wallet address.", Args: cobra.ExactArgs(3), PreRun: func(cmd *cobra.Command, args []string) { err := viper.BindPFlags(cmd.Flags()) diff --git a/cmd/powbench/runner/runner.go b/cmd/powbench/runner/runner.go index 20d97f694..216afd5f4 100644 --- a/cmd/powbench/runner/runner.go +++ b/cmd/powbench/runner/runner.go @@ -9,7 +9,7 @@ import ( logging "github.com/ipfs/go-log/v2" "github.com/textileio/powergate/api/client" - proto "github.com/textileio/powergate/proto/powergate/v1" + userPb "github.com/textileio/powergate/api/gen/powergate/user/v1" "github.com/textileio/powergate/util" ) @@ -47,11 +47,11 @@ func Run(ctx context.Context, ts TestSetup) error { } func runSetup(ctx context.Context, c *client.Client, ts TestSetup) error { - res, err := c.Admin.Profiles.CreateStorageProfile(ctx) + res, err := c.Admin.Users.Create(ctx) if err != nil { return fmt.Errorf("creating ffs instance: %s", err) } - ctx = context.WithValue(ctx, client.AuthKey, res.AuthEntry.Token) + ctx = context.WithValue(ctx, client.AuthKey, res.User.Token) res2, err := c.Wallet.Addresses(ctx) if err != nil { return fmt.Errorf("getting instance info: %s", err) @@ -99,26 +99,26 @@ func run(ctx context.Context, c *client.Client, id int, seed int, size int64, ad // existence. // This configuration will stop being static when we incorporate // other test cases. - storageConfig := &proto.StorageConfig{ + storageConfig := &userPb.StorageConfig{ Repairable: false, - Hot: &proto.HotConfig{ + Hot: &userPb.HotConfig{ Enabled: true, AllowUnfreeze: false, UnfreezeMaxPrice: 0, - Ipfs: &proto.IpfsConfig{ + Ipfs: &userPb.IpfsConfig{ AddTimeout: 30, }, }, - Cold: &proto.ColdConfig{ + Cold: &userPb.ColdConfig{ Enabled: true, - Filecoin: &proto.FilConfig{ + Filecoin: &userPb.FilConfig{ ReplicationFactor: 1, DealMinDuration: util.MinDealDuration, Address: addr, CountryCodes: nil, ExcludedMiners: nil, TrustedMiners: []string{minerAddr}, - Renew: &proto.FilRenew{}, + Renew: &userPb.FilRenew{}, }, }, } @@ -141,11 +141,11 @@ func run(ctx context.Context, c *client.Client, id int, seed int, size int64, ad if s.Err != nil { return fmt.Errorf("job watching: %s", s.Err) } - log.Infof("[%d] Job changed to status %s", id, s.Res.Job.Status.String()) - if s.Res.Job.Status == proto.JobStatus_JOB_STATUS_FAILED || s.Res.Job.Status == proto.JobStatus_JOB_STATUS_CANCELED { + log.Infof("[%d] Job changed to status %s", id, s.Res.StorageJob.Status.String()) + if s.Res.StorageJob.Status == userPb.JobStatus_JOB_STATUS_FAILED || s.Res.StorageJob.Status == userPb.JobStatus_JOB_STATUS_CANCELED { return fmt.Errorf("job execution failed or was canceled") } - if s.Res.Job.Status == proto.JobStatus_JOB_STATUS_SUCCESS { + if s.Res.StorageJob.Status == userPb.JobStatus_JOB_STATUS_SUCCESS { return nil } } diff --git a/proto/admin/v1/powergate_admin.pb.go b/proto/admin/v1/powergate_admin.pb.go deleted file mode 100644 index 5b31aa563..000000000 --- a/proto/admin/v1/powergate_admin.pb.go +++ /dev/null @@ -1,2039 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.12.1 -// source: proto/admin/v1/powergate_admin.proto - -package v1 - -import ( - context "context" - proto "github.com/golang/protobuf/proto" - v1 "github.com/textileio/powergate/proto/powergate/v1" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// Wallet -type NewAddressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AddressType string `protobuf:"bytes,1,opt,name=address_type,json=addressType,proto3" json:"address_type,omitempty"` -} - -func (x *NewAddressRequest) Reset() { - *x = NewAddressRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NewAddressRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NewAddressRequest) ProtoMessage() {} - -func (x *NewAddressRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_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 NewAddressRequest.ProtoReflect.Descriptor instead. -func (*NewAddressRequest) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{0} -} - -func (x *NewAddressRequest) GetAddressType() string { - if x != nil { - return x.AddressType - } - return "" -} - -type NewAddressResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *NewAddressResponse) Reset() { - *x = NewAddressResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NewAddressResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NewAddressResponse) ProtoMessage() {} - -func (x *NewAddressResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_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 NewAddressResponse.ProtoReflect.Descriptor instead. -func (*NewAddressResponse) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{1} -} - -func (x *NewAddressResponse) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -type AddressesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *AddressesRequest) Reset() { - *x = AddressesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddressesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddressesRequest) ProtoMessage() {} - -func (x *AddressesRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_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 AddressesRequest.ProtoReflect.Descriptor instead. -func (*AddressesRequest) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{2} -} - -type AddressesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` -} - -func (x *AddressesResponse) Reset() { - *x = AddressesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddressesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddressesResponse) ProtoMessage() {} - -func (x *AddressesResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_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 AddressesResponse.ProtoReflect.Descriptor instead. -func (*AddressesResponse) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{3} -} - -func (x *AddressesResponse) GetAddresses() []string { - if x != nil { - return x.Addresses - } - return nil -} - -type SendFilRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` - Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *SendFilRequest) Reset() { - *x = SendFilRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendFilRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendFilRequest) ProtoMessage() {} - -func (x *SendFilRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendFilRequest.ProtoReflect.Descriptor instead. -func (*SendFilRequest) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{4} -} - -func (x *SendFilRequest) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *SendFilRequest) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -func (x *SendFilRequest) GetAmount() string { - if x != nil { - return x.Amount - } - return "" -} - -type SendFilResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *SendFilResponse) Reset() { - *x = SendFilResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendFilResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendFilResponse) ProtoMessage() {} - -func (x *SendFilResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendFilResponse.ProtoReflect.Descriptor instead. -func (*SendFilResponse) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{5} -} - -type AuthEntry struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *AuthEntry) Reset() { - *x = AuthEntry{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AuthEntry) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthEntry) ProtoMessage() {} - -func (x *AuthEntry) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AuthEntry.ProtoReflect.Descriptor instead. -func (*AuthEntry) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{6} -} - -func (x *AuthEntry) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *AuthEntry) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -type CreateStorageProfileRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CreateStorageProfileRequest) Reset() { - *x = CreateStorageProfileRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateStorageProfileRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateStorageProfileRequest) ProtoMessage() {} - -func (x *CreateStorageProfileRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateStorageProfileRequest.ProtoReflect.Descriptor instead. -func (*CreateStorageProfileRequest) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{7} -} - -type CreateStorageProfileResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AuthEntry *AuthEntry `protobuf:"bytes,1,opt,name=auth_entry,json=authEntry,proto3" json:"auth_entry,omitempty"` -} - -func (x *CreateStorageProfileResponse) Reset() { - *x = CreateStorageProfileResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateStorageProfileResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateStorageProfileResponse) ProtoMessage() {} - -func (x *CreateStorageProfileResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateStorageProfileResponse.ProtoReflect.Descriptor instead. -func (*CreateStorageProfileResponse) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{8} -} - -func (x *CreateStorageProfileResponse) GetAuthEntry() *AuthEntry { - if x != nil { - return x.AuthEntry - } - return nil -} - -type StorageProfilesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *StorageProfilesRequest) Reset() { - *x = StorageProfilesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageProfilesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageProfilesRequest) ProtoMessage() {} - -func (x *StorageProfilesRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StorageProfilesRequest.ProtoReflect.Descriptor instead. -func (*StorageProfilesRequest) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{9} -} - -type StorageProfilesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AuthEntries []*AuthEntry `protobuf:"bytes,1,rep,name=auth_entries,json=authEntries,proto3" json:"auth_entries,omitempty"` -} - -func (x *StorageProfilesResponse) Reset() { - *x = StorageProfilesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageProfilesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageProfilesResponse) ProtoMessage() {} - -func (x *StorageProfilesResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StorageProfilesResponse.ProtoReflect.Descriptor instead. -func (*StorageProfilesResponse) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{10} -} - -func (x *StorageProfilesResponse) GetAuthEntries() []*AuthEntry { - if x != nil { - return x.AuthEntries - } - return nil -} - -type QueuedStorageJobsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProfileId string `protobuf:"bytes,1,opt,name=profile_id,json=profileId,proto3" json:"profile_id,omitempty"` - Cids []string `protobuf:"bytes,2,rep,name=cids,proto3" json:"cids,omitempty"` -} - -func (x *QueuedStorageJobsRequest) Reset() { - *x = QueuedStorageJobsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueuedStorageJobsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueuedStorageJobsRequest) ProtoMessage() {} - -func (x *QueuedStorageJobsRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QueuedStorageJobsRequest.ProtoReflect.Descriptor instead. -func (*QueuedStorageJobsRequest) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{11} -} - -func (x *QueuedStorageJobsRequest) GetProfileId() string { - if x != nil { - return x.ProfileId - } - return "" -} - -func (x *QueuedStorageJobsRequest) GetCids() []string { - if x != nil { - return x.Cids - } - return nil -} - -type QueuedStorageJobsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StorageJobs []*v1.Job `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` -} - -func (x *QueuedStorageJobsResponse) Reset() { - *x = QueuedStorageJobsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueuedStorageJobsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueuedStorageJobsResponse) ProtoMessage() {} - -func (x *QueuedStorageJobsResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QueuedStorageJobsResponse.ProtoReflect.Descriptor instead. -func (*QueuedStorageJobsResponse) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{12} -} - -func (x *QueuedStorageJobsResponse) GetStorageJobs() []*v1.Job { - if x != nil { - return x.StorageJobs - } - return nil -} - -type ExecutingStorageJobsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProfileId string `protobuf:"bytes,1,opt,name=profile_id,json=profileId,proto3" json:"profile_id,omitempty"` - Cids []string `protobuf:"bytes,2,rep,name=cids,proto3" json:"cids,omitempty"` -} - -func (x *ExecutingStorageJobsRequest) Reset() { - *x = ExecutingStorageJobsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutingStorageJobsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutingStorageJobsRequest) ProtoMessage() {} - -func (x *ExecutingStorageJobsRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutingStorageJobsRequest.ProtoReflect.Descriptor instead. -func (*ExecutingStorageJobsRequest) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{13} -} - -func (x *ExecutingStorageJobsRequest) GetProfileId() string { - if x != nil { - return x.ProfileId - } - return "" -} - -func (x *ExecutingStorageJobsRequest) GetCids() []string { - if x != nil { - return x.Cids - } - return nil -} - -type ExecutingStorageJobsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StorageJobs []*v1.Job `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` -} - -func (x *ExecutingStorageJobsResponse) Reset() { - *x = ExecutingStorageJobsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutingStorageJobsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutingStorageJobsResponse) ProtoMessage() {} - -func (x *ExecutingStorageJobsResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutingStorageJobsResponse.ProtoReflect.Descriptor instead. -func (*ExecutingStorageJobsResponse) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{14} -} - -func (x *ExecutingStorageJobsResponse) GetStorageJobs() []*v1.Job { - if x != nil { - return x.StorageJobs - } - return nil -} - -type LatestFinalStorageJobsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProfileId string `protobuf:"bytes,1,opt,name=profile_id,json=profileId,proto3" json:"profile_id,omitempty"` - Cids []string `protobuf:"bytes,2,rep,name=cids,proto3" json:"cids,omitempty"` -} - -func (x *LatestFinalStorageJobsRequest) Reset() { - *x = LatestFinalStorageJobsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LatestFinalStorageJobsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LatestFinalStorageJobsRequest) ProtoMessage() {} - -func (x *LatestFinalStorageJobsRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LatestFinalStorageJobsRequest.ProtoReflect.Descriptor instead. -func (*LatestFinalStorageJobsRequest) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{15} -} - -func (x *LatestFinalStorageJobsRequest) GetProfileId() string { - if x != nil { - return x.ProfileId - } - return "" -} - -func (x *LatestFinalStorageJobsRequest) GetCids() []string { - if x != nil { - return x.Cids - } - return nil -} - -type LatestFinalStorageJobsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StorageJobs []*v1.Job `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` -} - -func (x *LatestFinalStorageJobsResponse) Reset() { - *x = LatestFinalStorageJobsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LatestFinalStorageJobsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LatestFinalStorageJobsResponse) ProtoMessage() {} - -func (x *LatestFinalStorageJobsResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LatestFinalStorageJobsResponse.ProtoReflect.Descriptor instead. -func (*LatestFinalStorageJobsResponse) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{16} -} - -func (x *LatestFinalStorageJobsResponse) GetStorageJobs() []*v1.Job { - if x != nil { - return x.StorageJobs - } - return nil -} - -type LatestSuccessfulStorageJobsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProfileId string `protobuf:"bytes,1,opt,name=profile_id,json=profileId,proto3" json:"profile_id,omitempty"` - Cids []string `protobuf:"bytes,2,rep,name=cids,proto3" json:"cids,omitempty"` -} - -func (x *LatestSuccessfulStorageJobsRequest) Reset() { - *x = LatestSuccessfulStorageJobsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LatestSuccessfulStorageJobsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LatestSuccessfulStorageJobsRequest) ProtoMessage() {} - -func (x *LatestSuccessfulStorageJobsRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LatestSuccessfulStorageJobsRequest.ProtoReflect.Descriptor instead. -func (*LatestSuccessfulStorageJobsRequest) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{17} -} - -func (x *LatestSuccessfulStorageJobsRequest) GetProfileId() string { - if x != nil { - return x.ProfileId - } - return "" -} - -func (x *LatestSuccessfulStorageJobsRequest) GetCids() []string { - if x != nil { - return x.Cids - } - return nil -} - -type LatestSuccessfulStorageJobsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StorageJobs []*v1.Job `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` -} - -func (x *LatestSuccessfulStorageJobsResponse) Reset() { - *x = LatestSuccessfulStorageJobsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LatestSuccessfulStorageJobsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LatestSuccessfulStorageJobsResponse) ProtoMessage() {} - -func (x *LatestSuccessfulStorageJobsResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LatestSuccessfulStorageJobsResponse.ProtoReflect.Descriptor instead. -func (*LatestSuccessfulStorageJobsResponse) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{18} -} - -func (x *LatestSuccessfulStorageJobsResponse) GetStorageJobs() []*v1.Job { - if x != nil { - return x.StorageJobs - } - return nil -} - -type StorageJobsSummaryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProfileId string `protobuf:"bytes,1,opt,name=profile_id,json=profileId,proto3" json:"profile_id,omitempty"` - Cids []string `protobuf:"bytes,2,rep,name=cids,proto3" json:"cids,omitempty"` -} - -func (x *StorageJobsSummaryRequest) Reset() { - *x = StorageJobsSummaryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageJobsSummaryRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageJobsSummaryRequest) ProtoMessage() {} - -func (x *StorageJobsSummaryRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StorageJobsSummaryRequest.ProtoReflect.Descriptor instead. -func (*StorageJobsSummaryRequest) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{19} -} - -func (x *StorageJobsSummaryRequest) GetProfileId() string { - if x != nil { - return x.ProfileId - } - return "" -} - -func (x *StorageJobsSummaryRequest) GetCids() []string { - if x != nil { - return x.Cids - } - return nil -} - -type StorageJobsSummaryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobCounts *v1.JobCounts `protobuf:"bytes,1,opt,name=job_counts,json=jobCounts,proto3" json:"job_counts,omitempty"` - QueuedStorageJobs []*v1.Job `protobuf:"bytes,2,rep,name=queued_storage_jobs,json=queuedStorageJobs,proto3" json:"queued_storage_jobs,omitempty"` - ExecutingStorageJobs []*v1.Job `protobuf:"bytes,3,rep,name=executing_storage_jobs,json=executingStorageJobs,proto3" json:"executing_storage_jobs,omitempty"` - LatestFinalStorageJobs []*v1.Job `protobuf:"bytes,4,rep,name=latest_final_storage_jobs,json=latestFinalStorageJobs,proto3" json:"latest_final_storage_jobs,omitempty"` - LatestSuccessfulStorageJobs []*v1.Job `protobuf:"bytes,5,rep,name=latest_successful_storage_jobs,json=latestSuccessfulStorageJobs,proto3" json:"latest_successful_storage_jobs,omitempty"` -} - -func (x *StorageJobsSummaryResponse) Reset() { - *x = StorageJobsSummaryResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageJobsSummaryResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageJobsSummaryResponse) ProtoMessage() {} - -func (x *StorageJobsSummaryResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_admin_v1_powergate_admin_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StorageJobsSummaryResponse.ProtoReflect.Descriptor instead. -func (*StorageJobsSummaryResponse) Descriptor() ([]byte, []int) { - return file_proto_admin_v1_powergate_admin_proto_rawDescGZIP(), []int{20} -} - -func (x *StorageJobsSummaryResponse) GetJobCounts() *v1.JobCounts { - if x != nil { - return x.JobCounts - } - return nil -} - -func (x *StorageJobsSummaryResponse) GetQueuedStorageJobs() []*v1.Job { - if x != nil { - return x.QueuedStorageJobs - } - return nil -} - -func (x *StorageJobsSummaryResponse) GetExecutingStorageJobs() []*v1.Job { - if x != nil { - return x.ExecutingStorageJobs - } - return nil -} - -func (x *StorageJobsSummaryResponse) GetLatestFinalStorageJobs() []*v1.Job { - if x != nil { - return x.LatestFinalStorageJobs - } - return nil -} - -func (x *StorageJobsSummaryResponse) GetLatestSuccessfulStorageJobs() []*v1.Job { - if x != nil { - return x.LatestSuccessfulStorageJobs - } - return nil -} - -var File_proto_admin_v1_powergate_admin_proto protoreflect.FileDescriptor - -var file_proto_admin_v1_powergate_admin_proto_rawDesc = []byte{ - 0x0a, 0x24, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x31, - 0x2f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x22, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x6f, - 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x67, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x36, 0x0a, 0x11, 0x4e, 0x65, - 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x21, 0x0a, 0x0c, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x54, 0x79, - 0x70, 0x65, 0x22, 0x2e, 0x0a, 0x12, 0x4e, 0x65, 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x22, 0x12, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x31, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x22, 0x4c, 0x0a, 0x0e, 0x53, 0x65, 0x6e, - 0x64, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, - 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, - 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, - 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x11, 0x0a, 0x0f, 0x53, 0x65, 0x6e, 0x64, 0x46, - 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x0a, 0x09, 0x41, 0x75, - 0x74, 0x68, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x1d, 0x0a, - 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x58, 0x0a, 0x1c, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, - 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0a, - 0x61, 0x75, 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x61, 0x75, 0x74, - 0x68, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x18, 0x0a, 0x16, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x22, 0x57, 0x0a, 0x17, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0c, 0x61, - 0x75, 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x75, - 0x74, 0x68, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x4d, 0x0a, 0x18, 0x51, 0x75, 0x65, - 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0x57, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x75, - 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, - 0x73, 0x22, 0x50, 0x0a, 0x1b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, - 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, - 0x69, 0x64, 0x73, 0x22, 0x5a, 0x0a, 0x1c, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, - 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, - 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, - 0x6f, 0x62, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x22, - 0x52, 0x0a, 0x1d, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, - 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, - 0x69, 0x64, 0x73, 0x22, 0x5c, 0x0a, 0x1e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, - 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, - 0x73, 0x22, 0x57, 0x0a, 0x22, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, - 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0x61, 0x0a, 0x23, 0x4c, 0x61, - 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x3a, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, - 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, - 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x22, 0x4e, 0x0a, - 0x19, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, - 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0xa4, 0x03, - 0x0a, 0x1a, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, - 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0a, - 0x6a, 0x6f, 0x62, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, - 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, - 0x09, 0x6a, 0x6f, 0x62, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x13, 0x71, 0x75, - 0x65, 0x75, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, - 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, - 0x52, 0x11, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, - 0x6f, 0x62, 0x73, 0x12, 0x4d, 0x0a, 0x16, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, - 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, - 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x14, 0x65, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, - 0x62, 0x73, 0x12, 0x52, 0x0a, 0x19, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x66, 0x69, 0x6e, - 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, - 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x16, - 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x5c, 0x0a, 0x1e, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, - 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x1b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, - 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x4a, 0x6f, 0x62, 0x73, 0x32, 0xc1, 0x08, 0x0a, 0x15, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, - 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x55, - 0x0a, 0x0a, 0x4e, 0x65, 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, - 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x4e, 0x65, 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x65, 0x73, 0x12, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x07, 0x53, 0x65, 0x6e, - 0x64, 0x46, 0x69, 0x6c, 0x12, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x73, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, - 0x2b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x0f, - 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x12, - 0x26, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x6a, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x28, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x73, - 0x0a, 0x14, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x2b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, - 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x79, 0x0a, 0x16, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, - 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x2d, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, - 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, - 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x88, - 0x01, 0x0a, 0x1b, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x32, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, - 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x12, 0x53, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, - 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, - 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x69, 0x6c, 0x65, 0x69, 0x6f, - 0x2f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_proto_admin_v1_powergate_admin_proto_rawDescOnce sync.Once - file_proto_admin_v1_powergate_admin_proto_rawDescData = file_proto_admin_v1_powergate_admin_proto_rawDesc -) - -func file_proto_admin_v1_powergate_admin_proto_rawDescGZIP() []byte { - file_proto_admin_v1_powergate_admin_proto_rawDescOnce.Do(func() { - file_proto_admin_v1_powergate_admin_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_admin_v1_powergate_admin_proto_rawDescData) - }) - return file_proto_admin_v1_powergate_admin_proto_rawDescData -} - -var file_proto_admin_v1_powergate_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 21) -var file_proto_admin_v1_powergate_admin_proto_goTypes = []interface{}{ - (*NewAddressRequest)(nil), // 0: proto.admin.v1.NewAddressRequest - (*NewAddressResponse)(nil), // 1: proto.admin.v1.NewAddressResponse - (*AddressesRequest)(nil), // 2: proto.admin.v1.AddressesRequest - (*AddressesResponse)(nil), // 3: proto.admin.v1.AddressesResponse - (*SendFilRequest)(nil), // 4: proto.admin.v1.SendFilRequest - (*SendFilResponse)(nil), // 5: proto.admin.v1.SendFilResponse - (*AuthEntry)(nil), // 6: proto.admin.v1.AuthEntry - (*CreateStorageProfileRequest)(nil), // 7: proto.admin.v1.CreateStorageProfileRequest - (*CreateStorageProfileResponse)(nil), // 8: proto.admin.v1.CreateStorageProfileResponse - (*StorageProfilesRequest)(nil), // 9: proto.admin.v1.StorageProfilesRequest - (*StorageProfilesResponse)(nil), // 10: proto.admin.v1.StorageProfilesResponse - (*QueuedStorageJobsRequest)(nil), // 11: proto.admin.v1.QueuedStorageJobsRequest - (*QueuedStorageJobsResponse)(nil), // 12: proto.admin.v1.QueuedStorageJobsResponse - (*ExecutingStorageJobsRequest)(nil), // 13: proto.admin.v1.ExecutingStorageJobsRequest - (*ExecutingStorageJobsResponse)(nil), // 14: proto.admin.v1.ExecutingStorageJobsResponse - (*LatestFinalStorageJobsRequest)(nil), // 15: proto.admin.v1.LatestFinalStorageJobsRequest - (*LatestFinalStorageJobsResponse)(nil), // 16: proto.admin.v1.LatestFinalStorageJobsResponse - (*LatestSuccessfulStorageJobsRequest)(nil), // 17: proto.admin.v1.LatestSuccessfulStorageJobsRequest - (*LatestSuccessfulStorageJobsResponse)(nil), // 18: proto.admin.v1.LatestSuccessfulStorageJobsResponse - (*StorageJobsSummaryRequest)(nil), // 19: proto.admin.v1.StorageJobsSummaryRequest - (*StorageJobsSummaryResponse)(nil), // 20: proto.admin.v1.StorageJobsSummaryResponse - (*v1.Job)(nil), // 21: proto.powergate.v1.Job - (*v1.JobCounts)(nil), // 22: proto.powergate.v1.JobCounts -} -var file_proto_admin_v1_powergate_admin_proto_depIdxs = []int32{ - 6, // 0: proto.admin.v1.CreateStorageProfileResponse.auth_entry:type_name -> proto.admin.v1.AuthEntry - 6, // 1: proto.admin.v1.StorageProfilesResponse.auth_entries:type_name -> proto.admin.v1.AuthEntry - 21, // 2: proto.admin.v1.QueuedStorageJobsResponse.storage_jobs:type_name -> proto.powergate.v1.Job - 21, // 3: proto.admin.v1.ExecutingStorageJobsResponse.storage_jobs:type_name -> proto.powergate.v1.Job - 21, // 4: proto.admin.v1.LatestFinalStorageJobsResponse.storage_jobs:type_name -> proto.powergate.v1.Job - 21, // 5: proto.admin.v1.LatestSuccessfulStorageJobsResponse.storage_jobs:type_name -> proto.powergate.v1.Job - 22, // 6: proto.admin.v1.StorageJobsSummaryResponse.job_counts:type_name -> proto.powergate.v1.JobCounts - 21, // 7: proto.admin.v1.StorageJobsSummaryResponse.queued_storage_jobs:type_name -> proto.powergate.v1.Job - 21, // 8: proto.admin.v1.StorageJobsSummaryResponse.executing_storage_jobs:type_name -> proto.powergate.v1.Job - 21, // 9: proto.admin.v1.StorageJobsSummaryResponse.latest_final_storage_jobs:type_name -> proto.powergate.v1.Job - 21, // 10: proto.admin.v1.StorageJobsSummaryResponse.latest_successful_storage_jobs:type_name -> proto.powergate.v1.Job - 0, // 11: proto.admin.v1.PowergateAdminService.NewAddress:input_type -> proto.admin.v1.NewAddressRequest - 2, // 12: proto.admin.v1.PowergateAdminService.Addresses:input_type -> proto.admin.v1.AddressesRequest - 4, // 13: proto.admin.v1.PowergateAdminService.SendFil:input_type -> proto.admin.v1.SendFilRequest - 7, // 14: proto.admin.v1.PowergateAdminService.CreateStorageProfile:input_type -> proto.admin.v1.CreateStorageProfileRequest - 9, // 15: proto.admin.v1.PowergateAdminService.StorageProfiles:input_type -> proto.admin.v1.StorageProfilesRequest - 11, // 16: proto.admin.v1.PowergateAdminService.QueuedStorageJobs:input_type -> proto.admin.v1.QueuedStorageJobsRequest - 13, // 17: proto.admin.v1.PowergateAdminService.ExecutingStorageJobs:input_type -> proto.admin.v1.ExecutingStorageJobsRequest - 15, // 18: proto.admin.v1.PowergateAdminService.LatestFinalStorageJobs:input_type -> proto.admin.v1.LatestFinalStorageJobsRequest - 17, // 19: proto.admin.v1.PowergateAdminService.LatestSuccessfulStorageJobs:input_type -> proto.admin.v1.LatestSuccessfulStorageJobsRequest - 19, // 20: proto.admin.v1.PowergateAdminService.StorageJobsSummary:input_type -> proto.admin.v1.StorageJobsSummaryRequest - 1, // 21: proto.admin.v1.PowergateAdminService.NewAddress:output_type -> proto.admin.v1.NewAddressResponse - 3, // 22: proto.admin.v1.PowergateAdminService.Addresses:output_type -> proto.admin.v1.AddressesResponse - 5, // 23: proto.admin.v1.PowergateAdminService.SendFil:output_type -> proto.admin.v1.SendFilResponse - 8, // 24: proto.admin.v1.PowergateAdminService.CreateStorageProfile:output_type -> proto.admin.v1.CreateStorageProfileResponse - 10, // 25: proto.admin.v1.PowergateAdminService.StorageProfiles:output_type -> proto.admin.v1.StorageProfilesResponse - 12, // 26: proto.admin.v1.PowergateAdminService.QueuedStorageJobs:output_type -> proto.admin.v1.QueuedStorageJobsResponse - 14, // 27: proto.admin.v1.PowergateAdminService.ExecutingStorageJobs:output_type -> proto.admin.v1.ExecutingStorageJobsResponse - 16, // 28: proto.admin.v1.PowergateAdminService.LatestFinalStorageJobs:output_type -> proto.admin.v1.LatestFinalStorageJobsResponse - 18, // 29: proto.admin.v1.PowergateAdminService.LatestSuccessfulStorageJobs:output_type -> proto.admin.v1.LatestSuccessfulStorageJobsResponse - 20, // 30: proto.admin.v1.PowergateAdminService.StorageJobsSummary:output_type -> proto.admin.v1.StorageJobsSummaryResponse - 21, // [21:31] is the sub-list for method output_type - 11, // [11:21] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name -} - -func init() { file_proto_admin_v1_powergate_admin_proto_init() } -func file_proto_admin_v1_powergate_admin_proto_init() { - if File_proto_admin_v1_powergate_admin_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_proto_admin_v1_powergate_admin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewAddressRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewAddressResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddressesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddressesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendFilRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendFilResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuthEntry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateStorageProfileRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateStorageProfileResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageProfilesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageProfilesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueuedStorageJobsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueuedStorageJobsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutingStorageJobsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutingStorageJobsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestFinalStorageJobsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestFinalStorageJobsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestSuccessfulStorageJobsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestSuccessfulStorageJobsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageJobsSummaryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_admin_v1_powergate_admin_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageJobsSummaryResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_proto_admin_v1_powergate_admin_proto_rawDesc, - NumEnums: 0, - NumMessages: 21, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_proto_admin_v1_powergate_admin_proto_goTypes, - DependencyIndexes: file_proto_admin_v1_powergate_admin_proto_depIdxs, - MessageInfos: file_proto_admin_v1_powergate_admin_proto_msgTypes, - }.Build() - File_proto_admin_v1_powergate_admin_proto = out.File - file_proto_admin_v1_powergate_admin_proto_rawDesc = nil - file_proto_admin_v1_powergate_admin_proto_goTypes = nil - file_proto_admin_v1_powergate_admin_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// PowergateAdminServiceClient is the client API for PowergateAdminService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type PowergateAdminServiceClient interface { - // Wallet - NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) - Addresses(ctx context.Context, in *AddressesRequest, opts ...grpc.CallOption) (*AddressesResponse, error) - SendFil(ctx context.Context, in *SendFilRequest, opts ...grpc.CallOption) (*SendFilResponse, error) - // Profiles - CreateStorageProfile(ctx context.Context, in *CreateStorageProfileRequest, opts ...grpc.CallOption) (*CreateStorageProfileResponse, error) - StorageProfiles(ctx context.Context, in *StorageProfilesRequest, opts ...grpc.CallOption) (*StorageProfilesResponse, error) - // Jobs - QueuedStorageJobs(ctx context.Context, in *QueuedStorageJobsRequest, opts ...grpc.CallOption) (*QueuedStorageJobsResponse, error) - ExecutingStorageJobs(ctx context.Context, in *ExecutingStorageJobsRequest, opts ...grpc.CallOption) (*ExecutingStorageJobsResponse, error) - LatestFinalStorageJobs(ctx context.Context, in *LatestFinalStorageJobsRequest, opts ...grpc.CallOption) (*LatestFinalStorageJobsResponse, error) - LatestSuccessfulStorageJobs(ctx context.Context, in *LatestSuccessfulStorageJobsRequest, opts ...grpc.CallOption) (*LatestSuccessfulStorageJobsResponse, error) - StorageJobsSummary(ctx context.Context, in *StorageJobsSummaryRequest, opts ...grpc.CallOption) (*StorageJobsSummaryResponse, error) -} - -type powergateAdminServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewPowergateAdminServiceClient(cc grpc.ClientConnInterface) PowergateAdminServiceClient { - return &powergateAdminServiceClient{cc} -} - -func (c *powergateAdminServiceClient) NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) { - out := new(NewAddressResponse) - err := c.cc.Invoke(ctx, "/proto.admin.v1.PowergateAdminService/NewAddress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateAdminServiceClient) Addresses(ctx context.Context, in *AddressesRequest, opts ...grpc.CallOption) (*AddressesResponse, error) { - out := new(AddressesResponse) - err := c.cc.Invoke(ctx, "/proto.admin.v1.PowergateAdminService/Addresses", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateAdminServiceClient) SendFil(ctx context.Context, in *SendFilRequest, opts ...grpc.CallOption) (*SendFilResponse, error) { - out := new(SendFilResponse) - err := c.cc.Invoke(ctx, "/proto.admin.v1.PowergateAdminService/SendFil", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateAdminServiceClient) CreateStorageProfile(ctx context.Context, in *CreateStorageProfileRequest, opts ...grpc.CallOption) (*CreateStorageProfileResponse, error) { - out := new(CreateStorageProfileResponse) - err := c.cc.Invoke(ctx, "/proto.admin.v1.PowergateAdminService/CreateStorageProfile", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateAdminServiceClient) StorageProfiles(ctx context.Context, in *StorageProfilesRequest, opts ...grpc.CallOption) (*StorageProfilesResponse, error) { - out := new(StorageProfilesResponse) - err := c.cc.Invoke(ctx, "/proto.admin.v1.PowergateAdminService/StorageProfiles", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateAdminServiceClient) QueuedStorageJobs(ctx context.Context, in *QueuedStorageJobsRequest, opts ...grpc.CallOption) (*QueuedStorageJobsResponse, error) { - out := new(QueuedStorageJobsResponse) - err := c.cc.Invoke(ctx, "/proto.admin.v1.PowergateAdminService/QueuedStorageJobs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateAdminServiceClient) ExecutingStorageJobs(ctx context.Context, in *ExecutingStorageJobsRequest, opts ...grpc.CallOption) (*ExecutingStorageJobsResponse, error) { - out := new(ExecutingStorageJobsResponse) - err := c.cc.Invoke(ctx, "/proto.admin.v1.PowergateAdminService/ExecutingStorageJobs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateAdminServiceClient) LatestFinalStorageJobs(ctx context.Context, in *LatestFinalStorageJobsRequest, opts ...grpc.CallOption) (*LatestFinalStorageJobsResponse, error) { - out := new(LatestFinalStorageJobsResponse) - err := c.cc.Invoke(ctx, "/proto.admin.v1.PowergateAdminService/LatestFinalStorageJobs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateAdminServiceClient) LatestSuccessfulStorageJobs(ctx context.Context, in *LatestSuccessfulStorageJobsRequest, opts ...grpc.CallOption) (*LatestSuccessfulStorageJobsResponse, error) { - out := new(LatestSuccessfulStorageJobsResponse) - err := c.cc.Invoke(ctx, "/proto.admin.v1.PowergateAdminService/LatestSuccessfulStorageJobs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateAdminServiceClient) StorageJobsSummary(ctx context.Context, in *StorageJobsSummaryRequest, opts ...grpc.CallOption) (*StorageJobsSummaryResponse, error) { - out := new(StorageJobsSummaryResponse) - err := c.cc.Invoke(ctx, "/proto.admin.v1.PowergateAdminService/StorageJobsSummary", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// PowergateAdminServiceServer is the server API for PowergateAdminService service. -type PowergateAdminServiceServer interface { - // Wallet - NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error) - Addresses(context.Context, *AddressesRequest) (*AddressesResponse, error) - SendFil(context.Context, *SendFilRequest) (*SendFilResponse, error) - // Profiles - CreateStorageProfile(context.Context, *CreateStorageProfileRequest) (*CreateStorageProfileResponse, error) - StorageProfiles(context.Context, *StorageProfilesRequest) (*StorageProfilesResponse, error) - // Jobs - QueuedStorageJobs(context.Context, *QueuedStorageJobsRequest) (*QueuedStorageJobsResponse, error) - ExecutingStorageJobs(context.Context, *ExecutingStorageJobsRequest) (*ExecutingStorageJobsResponse, error) - LatestFinalStorageJobs(context.Context, *LatestFinalStorageJobsRequest) (*LatestFinalStorageJobsResponse, error) - LatestSuccessfulStorageJobs(context.Context, *LatestSuccessfulStorageJobsRequest) (*LatestSuccessfulStorageJobsResponse, error) - StorageJobsSummary(context.Context, *StorageJobsSummaryRequest) (*StorageJobsSummaryResponse, error) -} - -// UnimplementedPowergateAdminServiceServer can be embedded to have forward compatible implementations. -type UnimplementedPowergateAdminServiceServer struct { -} - -func (*UnimplementedPowergateAdminServiceServer) NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NewAddress not implemented") -} -func (*UnimplementedPowergateAdminServiceServer) Addresses(context.Context, *AddressesRequest) (*AddressesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Addresses not implemented") -} -func (*UnimplementedPowergateAdminServiceServer) SendFil(context.Context, *SendFilRequest) (*SendFilResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SendFil not implemented") -} -func (*UnimplementedPowergateAdminServiceServer) CreateStorageProfile(context.Context, *CreateStorageProfileRequest) (*CreateStorageProfileResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateStorageProfile not implemented") -} -func (*UnimplementedPowergateAdminServiceServer) StorageProfiles(context.Context, *StorageProfilesRequest) (*StorageProfilesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StorageProfiles not implemented") -} -func (*UnimplementedPowergateAdminServiceServer) QueuedStorageJobs(context.Context, *QueuedStorageJobsRequest) (*QueuedStorageJobsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueuedStorageJobs not implemented") -} -func (*UnimplementedPowergateAdminServiceServer) ExecutingStorageJobs(context.Context, *ExecutingStorageJobsRequest) (*ExecutingStorageJobsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ExecutingStorageJobs not implemented") -} -func (*UnimplementedPowergateAdminServiceServer) LatestFinalStorageJobs(context.Context, *LatestFinalStorageJobsRequest) (*LatestFinalStorageJobsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LatestFinalStorageJobs not implemented") -} -func (*UnimplementedPowergateAdminServiceServer) LatestSuccessfulStorageJobs(context.Context, *LatestSuccessfulStorageJobsRequest) (*LatestSuccessfulStorageJobsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LatestSuccessfulStorageJobs not implemented") -} -func (*UnimplementedPowergateAdminServiceServer) StorageJobsSummary(context.Context, *StorageJobsSummaryRequest) (*StorageJobsSummaryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StorageJobsSummary not implemented") -} - -func RegisterPowergateAdminServiceServer(s *grpc.Server, srv PowergateAdminServiceServer) { - s.RegisterService(&_PowergateAdminService_serviceDesc, srv) -} - -func _PowergateAdminService_NewAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(NewAddressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateAdminServiceServer).NewAddress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.admin.v1.PowergateAdminService/NewAddress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateAdminServiceServer).NewAddress(ctx, req.(*NewAddressRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateAdminService_Addresses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddressesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateAdminServiceServer).Addresses(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.admin.v1.PowergateAdminService/Addresses", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateAdminServiceServer).Addresses(ctx, req.(*AddressesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateAdminService_SendFil_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SendFilRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateAdminServiceServer).SendFil(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.admin.v1.PowergateAdminService/SendFil", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateAdminServiceServer).SendFil(ctx, req.(*SendFilRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateAdminService_CreateStorageProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateStorageProfileRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateAdminServiceServer).CreateStorageProfile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.admin.v1.PowergateAdminService/CreateStorageProfile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateAdminServiceServer).CreateStorageProfile(ctx, req.(*CreateStorageProfileRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateAdminService_StorageProfiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StorageProfilesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateAdminServiceServer).StorageProfiles(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.admin.v1.PowergateAdminService/StorageProfiles", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateAdminServiceServer).StorageProfiles(ctx, req.(*StorageProfilesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateAdminService_QueuedStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueuedStorageJobsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateAdminServiceServer).QueuedStorageJobs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.admin.v1.PowergateAdminService/QueuedStorageJobs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateAdminServiceServer).QueuedStorageJobs(ctx, req.(*QueuedStorageJobsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateAdminService_ExecutingStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExecutingStorageJobsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateAdminServiceServer).ExecutingStorageJobs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.admin.v1.PowergateAdminService/ExecutingStorageJobs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateAdminServiceServer).ExecutingStorageJobs(ctx, req.(*ExecutingStorageJobsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateAdminService_LatestFinalStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LatestFinalStorageJobsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateAdminServiceServer).LatestFinalStorageJobs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.admin.v1.PowergateAdminService/LatestFinalStorageJobs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateAdminServiceServer).LatestFinalStorageJobs(ctx, req.(*LatestFinalStorageJobsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateAdminService_LatestSuccessfulStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LatestSuccessfulStorageJobsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateAdminServiceServer).LatestSuccessfulStorageJobs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.admin.v1.PowergateAdminService/LatestSuccessfulStorageJobs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateAdminServiceServer).LatestSuccessfulStorageJobs(ctx, req.(*LatestSuccessfulStorageJobsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateAdminService_StorageJobsSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StorageJobsSummaryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateAdminServiceServer).StorageJobsSummary(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.admin.v1.PowergateAdminService/StorageJobsSummary", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateAdminServiceServer).StorageJobsSummary(ctx, req.(*StorageJobsSummaryRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _PowergateAdminService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "proto.admin.v1.PowergateAdminService", - HandlerType: (*PowergateAdminServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "NewAddress", - Handler: _PowergateAdminService_NewAddress_Handler, - }, - { - MethodName: "Addresses", - Handler: _PowergateAdminService_Addresses_Handler, - }, - { - MethodName: "SendFil", - Handler: _PowergateAdminService_SendFil_Handler, - }, - { - MethodName: "CreateStorageProfile", - Handler: _PowergateAdminService_CreateStorageProfile_Handler, - }, - { - MethodName: "StorageProfiles", - Handler: _PowergateAdminService_StorageProfiles_Handler, - }, - { - MethodName: "QueuedStorageJobs", - Handler: _PowergateAdminService_QueuedStorageJobs_Handler, - }, - { - MethodName: "ExecutingStorageJobs", - Handler: _PowergateAdminService_ExecutingStorageJobs_Handler, - }, - { - MethodName: "LatestFinalStorageJobs", - Handler: _PowergateAdminService_LatestFinalStorageJobs_Handler, - }, - { - MethodName: "LatestSuccessfulStorageJobs", - Handler: _PowergateAdminService_LatestSuccessfulStorageJobs_Handler, - }, - { - MethodName: "StorageJobsSummary", - Handler: _PowergateAdminService_StorageJobsSummary_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "proto/admin/v1/powergate_admin.proto", -} diff --git a/proto/admin/v1/powergate_admin.proto b/proto/powergate/admin/v1/admin.proto similarity index 57% rename from proto/admin/v1/powergate_admin.proto rename to proto/powergate/admin/v1/admin.proto index 18a6bb4e3..affacd11a 100644 --- a/proto/admin/v1/powergate_admin.proto +++ b/proto/powergate/admin/v1/admin.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package proto.admin.v1; +package powergate.admin.v1; -import "proto/powergate/v1/powergate.proto"; +import "powergate/user/v1/user.proto"; -option go_package = "github.com/textileio/powergate/proto/admin/v1"; +option go_package = "github.com/textileio/powergate/api/gen/powergate/admin/v1;adminPb"; // Wallet message NewAddressRequest { @@ -30,87 +30,87 @@ message SendFilRequest { message SendFilResponse { } -// Storage profiles +// Users -message AuthEntry { +message User { string id = 1; string token = 2; } -message CreateStorageProfileRequest { +message CreateUserRequest { } -message CreateStorageProfileResponse { - AuthEntry auth_entry = 1; +message CreateUserResponse { + User user = 1; } -message StorageProfilesRequest { +message UsersRequest { } -message StorageProfilesResponse { - repeated AuthEntry auth_entries = 1; +message UsersResponse { + repeated User users = 1; } // Jobs message QueuedStorageJobsRequest { - string profile_id = 1; + string user_id = 1; repeated string cids = 2; } message QueuedStorageJobsResponse { - repeated proto.powergate.v1.Job storage_jobs = 1; + repeated powergate.user.v1.StorageJob storage_jobs = 1; } message ExecutingStorageJobsRequest { - string profile_id = 1; + string user_id = 1; repeated string cids = 2; } message ExecutingStorageJobsResponse { - repeated proto.powergate.v1.Job storage_jobs = 1; + repeated powergate.user.v1.StorageJob storage_jobs = 1; } message LatestFinalStorageJobsRequest { - string profile_id = 1; + string user_id = 1; repeated string cids = 2; } message LatestFinalStorageJobsResponse { - repeated proto.powergate.v1.Job storage_jobs = 1; + repeated powergate.user.v1.StorageJob storage_jobs = 1; } message LatestSuccessfulStorageJobsRequest { - string profile_id = 1; + string user_id = 1; repeated string cids = 2; } message LatestSuccessfulStorageJobsResponse { - repeated proto.powergate.v1.Job storage_jobs = 1; + repeated powergate.user.v1.StorageJob storage_jobs = 1; } message StorageJobsSummaryRequest { - string profile_id = 1; + string user_id = 1; repeated string cids = 2; } message StorageJobsSummaryResponse { - proto.powergate.v1.JobCounts job_counts = 1; - repeated proto.powergate.v1.Job queued_storage_jobs = 2; - repeated proto.powergate.v1.Job executing_storage_jobs = 3; - repeated proto.powergate.v1.Job latest_final_storage_jobs = 4; - repeated proto.powergate.v1.Job latest_successful_storage_jobs = 5; + powergate.user.v1.JobCounts job_counts = 1; + repeated powergate.user.v1.StorageJob queued_storage_jobs = 2; + repeated powergate.user.v1.StorageJob executing_storage_jobs = 3; + repeated powergate.user.v1.StorageJob latest_final_storage_jobs = 4; + repeated powergate.user.v1.StorageJob latest_successful_storage_jobs = 5; } -service PowergateAdminService { +service AdminService { // Wallet rpc NewAddress(NewAddressRequest) returns (NewAddressResponse) {} rpc Addresses(AddressesRequest) returns (AddressesResponse) {} rpc SendFil(SendFilRequest) returns (SendFilResponse) {} - // Profiles - rpc CreateStorageProfile(CreateStorageProfileRequest) returns (CreateStorageProfileResponse) {} - rpc StorageProfiles(StorageProfilesRequest) returns (StorageProfilesResponse) {} + // Users + rpc CreateUser(CreateUserRequest) returns (CreateUserResponse) {} + rpc Users(UsersRequest) returns (UsersResponse) {} // Jobs rpc QueuedStorageJobs(QueuedStorageJobsRequest) returns (QueuedStorageJobsResponse) {} diff --git a/proto/powergate/v1/powergate.proto b/proto/powergate/user/v1/user.proto similarity index 91% rename from proto/powergate/v1/powergate.proto rename to proto/powergate/user/v1/user.proto index 849bba11b..cb5b9ca43 100644 --- a/proto/powergate/v1/powergate.proto +++ b/proto/powergate/user/v1/user.proto @@ -1,7 +1,7 @@ syntax = "proto3"; -package proto.powergate.v1; +package powergate.user.v1; -option go_package = "github.com/textileio/powergate/proto/powergate/v1"; +option go_package = "github.com/textileio/powergate/api/gen/powergate/user/v1;userPb"; // Top level @@ -17,10 +17,10 @@ message BuildInfoResponse { string version = 6; } -message StorageProfileIdentifierRequest { +message UserIdentifierRequest { } -message StorageProfileIdentifierResponse { +message UserIdentifierResponse { string id = 1; } @@ -170,7 +170,7 @@ message StorageJobRequest { } message StorageJobResponse { - Job job = 1; + StorageJob storage_job = 1; } message StorageConfigForJobRequest { @@ -186,7 +186,7 @@ message QueuedStorageJobsRequest { } message QueuedStorageJobsResponse { - repeated Job storage_jobs = 1; + repeated StorageJob storage_jobs = 1; } message ExecutingStorageJobsRequest { @@ -194,7 +194,7 @@ message ExecutingStorageJobsRequest { } message ExecutingStorageJobsResponse { - repeated Job storage_jobs = 1; + repeated StorageJob storage_jobs = 1; } message LatestFinalStorageJobsRequest { @@ -202,7 +202,7 @@ message LatestFinalStorageJobsRequest { } message LatestFinalStorageJobsResponse { - repeated Job storage_jobs = 1; + repeated StorageJob storage_jobs = 1; } message LatestSuccessfulStorageJobsRequest { @@ -210,7 +210,7 @@ message LatestSuccessfulStorageJobsRequest { } message LatestSuccessfulStorageJobsResponse { - repeated Job storage_jobs = 1; + repeated StorageJob storage_jobs = 1; } message StorageJobsSummaryRequest { @@ -219,10 +219,10 @@ message StorageJobsSummaryRequest { message StorageJobsSummaryResponse { JobCounts job_counts = 1; - repeated Job queued_storage_jobs = 2; - repeated Job executing_storage_jobs = 3; - repeated Job latest_final_storage_jobs = 4; - repeated Job latest_successful_storage_jobs = 5; + repeated StorageJob queued_storage_jobs = 2; + repeated StorageJob executing_storage_jobs = 3; + repeated StorageJob latest_final_storage_jobs = 4; + repeated StorageJob latest_successful_storage_jobs = 5; } message WatchStorageJobsRequest { @@ -230,7 +230,7 @@ message WatchStorageJobsRequest { } message WatchStorageJobsResponse { - Job job = 1; + StorageJob storage_job = 1; } // Storage @@ -251,10 +251,10 @@ message RetrievalDealRecordsResponse { repeated RetrievalDealRecord records = 1; } -service PowergateService { +service UserService { // Top level rpc BuildInfo(BuildInfoRequest) returns (BuildInfoResponse) {} - rpc StorageProfileIdentifier(StorageProfileIdentifierRequest) returns (StorageProfileIdentifierResponse) {} + rpc UserIdentifier(UserIdentifierRequest) returns (UserIdentifierResponse) {} // Storage config rpc DefaultStorageConfig(DefaultStorageConfigRequest) returns (DefaultStorageConfigResponse) {} @@ -394,10 +394,10 @@ message CidInfo { string cid = 1; StorageConfig latest_pushed_storage_config = 2; StorageInfo current_storage_info = 3; - repeated Job queued_storage_jobs = 4; - Job executing_storage_job = 5; - Job latest_final_storage_job = 6; - Job latest_successful_storage_job = 7; + repeated StorageJob queued_storage_jobs = 4; + StorageJob executing_storage_job = 5; + StorageJob latest_final_storage_job = 6; + StorageJob latest_successful_storage_job = 7; } enum JobStatus { @@ -424,7 +424,7 @@ message DealInfo { string message = 12; } -message Job { +message StorageJob { string id = 1; string api_id = 2; string cid = 3; diff --git a/proto/powergate/v1/powergate.pb.go b/proto/powergate/v1/powergate.pb.go deleted file mode 100644 index 85b3fad76..000000000 --- a/proto/powergate/v1/powergate.pb.go +++ /dev/null @@ -1,7838 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.12.1 -// source: proto/powergate/v1/powergate.proto - -package v1 - -import ( - context "context" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type JobStatus int32 - -const ( - JobStatus_JOB_STATUS_UNSPECIFIED JobStatus = 0 - JobStatus_JOB_STATUS_QUEUED JobStatus = 1 - JobStatus_JOB_STATUS_EXECUTING JobStatus = 2 - JobStatus_JOB_STATUS_FAILED JobStatus = 3 - JobStatus_JOB_STATUS_CANCELED JobStatus = 4 - JobStatus_JOB_STATUS_SUCCESS JobStatus = 5 -) - -// Enum value maps for JobStatus. -var ( - JobStatus_name = map[int32]string{ - 0: "JOB_STATUS_UNSPECIFIED", - 1: "JOB_STATUS_QUEUED", - 2: "JOB_STATUS_EXECUTING", - 3: "JOB_STATUS_FAILED", - 4: "JOB_STATUS_CANCELED", - 5: "JOB_STATUS_SUCCESS", - } - JobStatus_value = map[string]int32{ - "JOB_STATUS_UNSPECIFIED": 0, - "JOB_STATUS_QUEUED": 1, - "JOB_STATUS_EXECUTING": 2, - "JOB_STATUS_FAILED": 3, - "JOB_STATUS_CANCELED": 4, - "JOB_STATUS_SUCCESS": 5, - } -) - -func (x JobStatus) Enum() *JobStatus { - p := new(JobStatus) - *p = x - return p -} - -func (x JobStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (JobStatus) Descriptor() protoreflect.EnumDescriptor { - return file_proto_powergate_v1_powergate_proto_enumTypes[0].Descriptor() -} - -func (JobStatus) Type() protoreflect.EnumType { - return &file_proto_powergate_v1_powergate_proto_enumTypes[0] -} - -func (x JobStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use JobStatus.Descriptor instead. -func (JobStatus) EnumDescriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{0} -} - -type BuildInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *BuildInfoRequest) Reset() { - *x = BuildInfoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BuildInfoRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BuildInfoRequest) ProtoMessage() {} - -func (x *BuildInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_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 BuildInfoRequest.ProtoReflect.Descriptor instead. -func (*BuildInfoRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{0} -} - -type BuildInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - GitCommit string `protobuf:"bytes,1,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"` - GitBranch string `protobuf:"bytes,2,opt,name=git_branch,json=gitBranch,proto3" json:"git_branch,omitempty"` - GitState string `protobuf:"bytes,3,opt,name=git_state,json=gitState,proto3" json:"git_state,omitempty"` - GitSummary string `protobuf:"bytes,4,opt,name=git_summary,json=gitSummary,proto3" json:"git_summary,omitempty"` - BuildDate string `protobuf:"bytes,5,opt,name=build_date,json=buildDate,proto3" json:"build_date,omitempty"` - Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` -} - -func (x *BuildInfoResponse) Reset() { - *x = BuildInfoResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BuildInfoResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BuildInfoResponse) ProtoMessage() {} - -func (x *BuildInfoResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_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 BuildInfoResponse.ProtoReflect.Descriptor instead. -func (*BuildInfoResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{1} -} - -func (x *BuildInfoResponse) GetGitCommit() string { - if x != nil { - return x.GitCommit - } - return "" -} - -func (x *BuildInfoResponse) GetGitBranch() string { - if x != nil { - return x.GitBranch - } - return "" -} - -func (x *BuildInfoResponse) GetGitState() string { - if x != nil { - return x.GitState - } - return "" -} - -func (x *BuildInfoResponse) GetGitSummary() string { - if x != nil { - return x.GitSummary - } - return "" -} - -func (x *BuildInfoResponse) GetBuildDate() string { - if x != nil { - return x.BuildDate - } - return "" -} - -func (x *BuildInfoResponse) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -type StorageProfileIdentifierRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *StorageProfileIdentifierRequest) Reset() { - *x = StorageProfileIdentifierRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageProfileIdentifierRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageProfileIdentifierRequest) ProtoMessage() {} - -func (x *StorageProfileIdentifierRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_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 StorageProfileIdentifierRequest.ProtoReflect.Descriptor instead. -func (*StorageProfileIdentifierRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{2} -} - -type StorageProfileIdentifierResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *StorageProfileIdentifierResponse) Reset() { - *x = StorageProfileIdentifierResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageProfileIdentifierResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageProfileIdentifierResponse) ProtoMessage() {} - -func (x *StorageProfileIdentifierResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_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 StorageProfileIdentifierResponse.ProtoReflect.Descriptor instead. -func (*StorageProfileIdentifierResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{3} -} - -func (x *StorageProfileIdentifierResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type DefaultStorageConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *DefaultStorageConfigRequest) Reset() { - *x = DefaultStorageConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultStorageConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultStorageConfigRequest) ProtoMessage() {} - -func (x *DefaultStorageConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultStorageConfigRequest.ProtoReflect.Descriptor instead. -func (*DefaultStorageConfigRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{4} -} - -type DefaultStorageConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DefaultStorageConfig *StorageConfig `protobuf:"bytes,1,opt,name=default_storage_config,json=defaultStorageConfig,proto3" json:"default_storage_config,omitempty"` -} - -func (x *DefaultStorageConfigResponse) Reset() { - *x = DefaultStorageConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultStorageConfigResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultStorageConfigResponse) ProtoMessage() {} - -func (x *DefaultStorageConfigResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultStorageConfigResponse.ProtoReflect.Descriptor instead. -func (*DefaultStorageConfigResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{5} -} - -func (x *DefaultStorageConfigResponse) GetDefaultStorageConfig() *StorageConfig { - if x != nil { - return x.DefaultStorageConfig - } - return nil -} - -type SetDefaultStorageConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Config *StorageConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` -} - -func (x *SetDefaultStorageConfigRequest) Reset() { - *x = SetDefaultStorageConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetDefaultStorageConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetDefaultStorageConfigRequest) ProtoMessage() {} - -func (x *SetDefaultStorageConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetDefaultStorageConfigRequest.ProtoReflect.Descriptor instead. -func (*SetDefaultStorageConfigRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{6} -} - -func (x *SetDefaultStorageConfigRequest) GetConfig() *StorageConfig { - if x != nil { - return x.Config - } - return nil -} - -type SetDefaultStorageConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *SetDefaultStorageConfigResponse) Reset() { - *x = SetDefaultStorageConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetDefaultStorageConfigResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetDefaultStorageConfigResponse) ProtoMessage() {} - -func (x *SetDefaultStorageConfigResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetDefaultStorageConfigResponse.ProtoReflect.Descriptor instead. -func (*SetDefaultStorageConfigResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{7} -} - -type StageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Chunk []byte `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"` -} - -func (x *StageRequest) Reset() { - *x = StageRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StageRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StageRequest) ProtoMessage() {} - -func (x *StageRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StageRequest.ProtoReflect.Descriptor instead. -func (*StageRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{8} -} - -func (x *StageRequest) GetChunk() []byte { - if x != nil { - return x.Chunk - } - return nil -} - -type StageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` -} - -func (x *StageResponse) Reset() { - *x = StageResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StageResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StageResponse) ProtoMessage() {} - -func (x *StageResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StageResponse.ProtoReflect.Descriptor instead. -func (*StageResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{9} -} - -func (x *StageResponse) GetCid() string { - if x != nil { - return x.Cid - } - return "" -} - -type ApplyStorageConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - Config *StorageConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` - HasConfig bool `protobuf:"varint,3,opt,name=has_config,json=hasConfig,proto3" json:"has_config,omitempty"` - OverrideConfig bool `protobuf:"varint,4,opt,name=override_config,json=overrideConfig,proto3" json:"override_config,omitempty"` - HasOverrideConfig bool `protobuf:"varint,5,opt,name=has_override_config,json=hasOverrideConfig,proto3" json:"has_override_config,omitempty"` -} - -func (x *ApplyStorageConfigRequest) Reset() { - *x = ApplyStorageConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplyStorageConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplyStorageConfigRequest) ProtoMessage() {} - -func (x *ApplyStorageConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApplyStorageConfigRequest.ProtoReflect.Descriptor instead. -func (*ApplyStorageConfigRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{10} -} - -func (x *ApplyStorageConfigRequest) GetCid() string { - if x != nil { - return x.Cid - } - return "" -} - -func (x *ApplyStorageConfigRequest) GetConfig() *StorageConfig { - if x != nil { - return x.Config - } - return nil -} - -func (x *ApplyStorageConfigRequest) GetHasConfig() bool { - if x != nil { - return x.HasConfig - } - return false -} - -func (x *ApplyStorageConfigRequest) GetOverrideConfig() bool { - if x != nil { - return x.OverrideConfig - } - return false -} - -func (x *ApplyStorageConfigRequest) GetHasOverrideConfig() bool { - if x != nil { - return x.HasOverrideConfig - } - return false -} - -type ApplyStorageConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` -} - -func (x *ApplyStorageConfigResponse) Reset() { - *x = ApplyStorageConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplyStorageConfigResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplyStorageConfigResponse) ProtoMessage() {} - -func (x *ApplyStorageConfigResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApplyStorageConfigResponse.ProtoReflect.Descriptor instead. -func (*ApplyStorageConfigResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{11} -} - -func (x *ApplyStorageConfigResponse) GetJobId() string { - if x != nil { - return x.JobId - } - return "" -} - -type ReplaceDataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cid1 string `protobuf:"bytes,1,opt,name=cid1,proto3" json:"cid1,omitempty"` - Cid2 string `protobuf:"bytes,2,opt,name=cid2,proto3" json:"cid2,omitempty"` -} - -func (x *ReplaceDataRequest) Reset() { - *x = ReplaceDataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReplaceDataRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReplaceDataRequest) ProtoMessage() {} - -func (x *ReplaceDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReplaceDataRequest.ProtoReflect.Descriptor instead. -func (*ReplaceDataRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{12} -} - -func (x *ReplaceDataRequest) GetCid1() string { - if x != nil { - return x.Cid1 - } - return "" -} - -func (x *ReplaceDataRequest) GetCid2() string { - if x != nil { - return x.Cid2 - } - return "" -} - -type ReplaceDataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` -} - -func (x *ReplaceDataResponse) Reset() { - *x = ReplaceDataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReplaceDataResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReplaceDataResponse) ProtoMessage() {} - -func (x *ReplaceDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReplaceDataResponse.ProtoReflect.Descriptor instead. -func (*ReplaceDataResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{13} -} - -func (x *ReplaceDataResponse) GetJobId() string { - if x != nil { - return x.JobId - } - return "" -} - -type GetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` -} - -func (x *GetRequest) Reset() { - *x = GetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRequest) ProtoMessage() {} - -func (x *GetRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetRequest.ProtoReflect.Descriptor instead. -func (*GetRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{14} -} - -func (x *GetRequest) GetCid() string { - if x != nil { - return x.Cid - } - return "" -} - -type GetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Chunk []byte `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"` -} - -func (x *GetResponse) Reset() { - *x = GetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetResponse) ProtoMessage() {} - -func (x *GetResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. -func (*GetResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{15} -} - -func (x *GetResponse) GetChunk() []byte { - if x != nil { - return x.Chunk - } - return nil -} - -type RemoveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` -} - -func (x *RemoveRequest) Reset() { - *x = RemoveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveRequest) ProtoMessage() {} - -func (x *RemoveRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead. -func (*RemoveRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{16} -} - -func (x *RemoveRequest) GetCid() string { - if x != nil { - return x.Cid - } - return "" -} - -type RemoveResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *RemoveResponse) Reset() { - *x = RemoveResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveResponse) ProtoMessage() {} - -func (x *RemoveResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead. -func (*RemoveResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{17} -} - -type WatchLogsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` - History bool `protobuf:"varint,3,opt,name=history,proto3" json:"history,omitempty"` -} - -func (x *WatchLogsRequest) Reset() { - *x = WatchLogsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WatchLogsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WatchLogsRequest) ProtoMessage() {} - -func (x *WatchLogsRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WatchLogsRequest.ProtoReflect.Descriptor instead. -func (*WatchLogsRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{18} -} - -func (x *WatchLogsRequest) GetCid() string { - if x != nil { - return x.Cid - } - return "" -} - -func (x *WatchLogsRequest) GetJobId() string { - if x != nil { - return x.JobId - } - return "" -} - -func (x *WatchLogsRequest) GetHistory() bool { - if x != nil { - return x.History - } - return false -} - -type WatchLogsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LogEntry *LogEntry `protobuf:"bytes,1,opt,name=log_entry,json=logEntry,proto3" json:"log_entry,omitempty"` -} - -func (x *WatchLogsResponse) Reset() { - *x = WatchLogsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WatchLogsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WatchLogsResponse) ProtoMessage() {} - -func (x *WatchLogsResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WatchLogsResponse.ProtoReflect.Descriptor instead. -func (*WatchLogsResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{19} -} - -func (x *WatchLogsResponse) GetLogEntry() *LogEntry { - if x != nil { - return x.LogEntry - } - return nil -} - -type CidInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cids []string `protobuf:"bytes,1,rep,name=cids,proto3" json:"cids,omitempty"` -} - -func (x *CidInfoRequest) Reset() { - *x = CidInfoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CidInfoRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CidInfoRequest) ProtoMessage() {} - -func (x *CidInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CidInfoRequest.ProtoReflect.Descriptor instead. -func (*CidInfoRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{20} -} - -func (x *CidInfoRequest) GetCids() []string { - if x != nil { - return x.Cids - } - return nil -} - -type CidInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CidInfos []*CidInfo `protobuf:"bytes,1,rep,name=cid_infos,json=cidInfos,proto3" json:"cid_infos,omitempty"` -} - -func (x *CidInfoResponse) Reset() { - *x = CidInfoResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CidInfoResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CidInfoResponse) ProtoMessage() {} - -func (x *CidInfoResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CidInfoResponse.ProtoReflect.Descriptor instead. -func (*CidInfoResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{21} -} - -func (x *CidInfoResponse) GetCidInfos() []*CidInfo { - if x != nil { - return x.CidInfos - } - return nil -} - -type BalanceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *BalanceRequest) Reset() { - *x = BalanceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BalanceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BalanceRequest) ProtoMessage() {} - -func (x *BalanceRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BalanceRequest.ProtoReflect.Descriptor instead. -func (*BalanceRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{22} -} - -func (x *BalanceRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -type BalanceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` -} - -func (x *BalanceResponse) Reset() { - *x = BalanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BalanceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BalanceResponse) ProtoMessage() {} - -func (x *BalanceResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BalanceResponse.ProtoReflect.Descriptor instead. -func (*BalanceResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{23} -} - -func (x *BalanceResponse) GetBalance() string { - if x != nil { - return x.Balance - } - return "" -} - -type NewAddressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - AddressType string `protobuf:"bytes,2,opt,name=address_type,json=addressType,proto3" json:"address_type,omitempty"` - MakeDefault bool `protobuf:"varint,3,opt,name=make_default,json=makeDefault,proto3" json:"make_default,omitempty"` -} - -func (x *NewAddressRequest) Reset() { - *x = NewAddressRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NewAddressRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NewAddressRequest) ProtoMessage() {} - -func (x *NewAddressRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NewAddressRequest.ProtoReflect.Descriptor instead. -func (*NewAddressRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{24} -} - -func (x *NewAddressRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *NewAddressRequest) GetAddressType() string { - if x != nil { - return x.AddressType - } - return "" -} - -func (x *NewAddressRequest) GetMakeDefault() bool { - if x != nil { - return x.MakeDefault - } - return false -} - -type NewAddressResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *NewAddressResponse) Reset() { - *x = NewAddressResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NewAddressResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NewAddressResponse) ProtoMessage() {} - -func (x *NewAddressResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NewAddressResponse.ProtoReflect.Descriptor instead. -func (*NewAddressResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{25} -} - -func (x *NewAddressResponse) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -type AddressesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *AddressesRequest) Reset() { - *x = AddressesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddressesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddressesRequest) ProtoMessage() {} - -func (x *AddressesRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddressesRequest.ProtoReflect.Descriptor instead. -func (*AddressesRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{26} -} - -type AddressesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addresses []*AddrInfo `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` -} - -func (x *AddressesResponse) Reset() { - *x = AddressesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddressesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddressesResponse) ProtoMessage() {} - -func (x *AddressesResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddressesResponse.ProtoReflect.Descriptor instead. -func (*AddressesResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{27} -} - -func (x *AddressesResponse) GetAddresses() []*AddrInfo { - if x != nil { - return x.Addresses - } - return nil -} - -type SendFilRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` - Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *SendFilRequest) Reset() { - *x = SendFilRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendFilRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendFilRequest) ProtoMessage() {} - -func (x *SendFilRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendFilRequest.ProtoReflect.Descriptor instead. -func (*SendFilRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{28} -} - -func (x *SendFilRequest) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *SendFilRequest) GetTo() string { - if x != nil { - return x.To - } - return "" -} - -func (x *SendFilRequest) GetAmount() string { - if x != nil { - return x.Amount - } - return "" -} - -type SendFilResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *SendFilResponse) Reset() { - *x = SendFilResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendFilResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendFilResponse) ProtoMessage() {} - -func (x *SendFilResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendFilResponse.ProtoReflect.Descriptor instead. -func (*SendFilResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{29} -} - -type SignMessageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *SignMessageRequest) Reset() { - *x = SignMessageRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SignMessageRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SignMessageRequest) ProtoMessage() {} - -func (x *SignMessageRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SignMessageRequest.ProtoReflect.Descriptor instead. -func (*SignMessageRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{30} -} - -func (x *SignMessageRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *SignMessageRequest) GetMessage() []byte { - if x != nil { - return x.Message - } - return nil -} - -type SignMessageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` -} - -func (x *SignMessageResponse) Reset() { - *x = SignMessageResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SignMessageResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SignMessageResponse) ProtoMessage() {} - -func (x *SignMessageResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SignMessageResponse.ProtoReflect.Descriptor instead. -func (*SignMessageResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{31} -} - -func (x *SignMessageResponse) GetSignature() []byte { - if x != nil { - return x.Signature - } - return nil -} - -type VerifyMessageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` -} - -func (x *VerifyMessageRequest) Reset() { - *x = VerifyMessageRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VerifyMessageRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VerifyMessageRequest) ProtoMessage() {} - -func (x *VerifyMessageRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VerifyMessageRequest.ProtoReflect.Descriptor instead. -func (*VerifyMessageRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{32} -} - -func (x *VerifyMessageRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *VerifyMessageRequest) GetMessage() []byte { - if x != nil { - return x.Message - } - return nil -} - -func (x *VerifyMessageRequest) GetSignature() []byte { - if x != nil { - return x.Signature - } - return nil -} - -type VerifyMessageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` -} - -func (x *VerifyMessageResponse) Reset() { - *x = VerifyMessageResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VerifyMessageResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VerifyMessageResponse) ProtoMessage() {} - -func (x *VerifyMessageResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VerifyMessageResponse.ProtoReflect.Descriptor instead. -func (*VerifyMessageResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{33} -} - -func (x *VerifyMessageResponse) GetOk() bool { - if x != nil { - return x.Ok - } - return false -} - -type CancelStorageJobRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` -} - -func (x *CancelStorageJobRequest) Reset() { - *x = CancelStorageJobRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CancelStorageJobRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CancelStorageJobRequest) ProtoMessage() {} - -func (x *CancelStorageJobRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CancelStorageJobRequest.ProtoReflect.Descriptor instead. -func (*CancelStorageJobRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{34} -} - -func (x *CancelStorageJobRequest) GetJobId() string { - if x != nil { - return x.JobId - } - return "" -} - -type CancelStorageJobResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CancelStorageJobResponse) Reset() { - *x = CancelStorageJobResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CancelStorageJobResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CancelStorageJobResponse) ProtoMessage() {} - -func (x *CancelStorageJobResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CancelStorageJobResponse.ProtoReflect.Descriptor instead. -func (*CancelStorageJobResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{35} -} - -type StorageJobRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` -} - -func (x *StorageJobRequest) Reset() { - *x = StorageJobRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageJobRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageJobRequest) ProtoMessage() {} - -func (x *StorageJobRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StorageJobRequest.ProtoReflect.Descriptor instead. -func (*StorageJobRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{36} -} - -func (x *StorageJobRequest) GetJobId() string { - if x != nil { - return x.JobId - } - return "" -} - -type StorageJobResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` -} - -func (x *StorageJobResponse) Reset() { - *x = StorageJobResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageJobResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageJobResponse) ProtoMessage() {} - -func (x *StorageJobResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StorageJobResponse.ProtoReflect.Descriptor instead. -func (*StorageJobResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{37} -} - -func (x *StorageJobResponse) GetJob() *Job { - if x != nil { - return x.Job - } - return nil -} - -type StorageConfigForJobRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` -} - -func (x *StorageConfigForJobRequest) Reset() { - *x = StorageConfigForJobRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageConfigForJobRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageConfigForJobRequest) ProtoMessage() {} - -func (x *StorageConfigForJobRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StorageConfigForJobRequest.ProtoReflect.Descriptor instead. -func (*StorageConfigForJobRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{38} -} - -func (x *StorageConfigForJobRequest) GetJobId() string { - if x != nil { - return x.JobId - } - return "" -} - -type StorageConfigForJobResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StorageConfig *StorageConfig `protobuf:"bytes,1,opt,name=storage_config,json=storageConfig,proto3" json:"storage_config,omitempty"` -} - -func (x *StorageConfigForJobResponse) Reset() { - *x = StorageConfigForJobResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageConfigForJobResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageConfigForJobResponse) ProtoMessage() {} - -func (x *StorageConfigForJobResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StorageConfigForJobResponse.ProtoReflect.Descriptor instead. -func (*StorageConfigForJobResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{39} -} - -func (x *StorageConfigForJobResponse) GetStorageConfig() *StorageConfig { - if x != nil { - return x.StorageConfig - } - return nil -} - -type QueuedStorageJobsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cids []string `protobuf:"bytes,1,rep,name=cids,proto3" json:"cids,omitempty"` -} - -func (x *QueuedStorageJobsRequest) Reset() { - *x = QueuedStorageJobsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueuedStorageJobsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueuedStorageJobsRequest) ProtoMessage() {} - -func (x *QueuedStorageJobsRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QueuedStorageJobsRequest.ProtoReflect.Descriptor instead. -func (*QueuedStorageJobsRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{40} -} - -func (x *QueuedStorageJobsRequest) GetCids() []string { - if x != nil { - return x.Cids - } - return nil -} - -type QueuedStorageJobsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StorageJobs []*Job `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` -} - -func (x *QueuedStorageJobsResponse) Reset() { - *x = QueuedStorageJobsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueuedStorageJobsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueuedStorageJobsResponse) ProtoMessage() {} - -func (x *QueuedStorageJobsResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QueuedStorageJobsResponse.ProtoReflect.Descriptor instead. -func (*QueuedStorageJobsResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{41} -} - -func (x *QueuedStorageJobsResponse) GetStorageJobs() []*Job { - if x != nil { - return x.StorageJobs - } - return nil -} - -type ExecutingStorageJobsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cids []string `protobuf:"bytes,1,rep,name=cids,proto3" json:"cids,omitempty"` -} - -func (x *ExecutingStorageJobsRequest) Reset() { - *x = ExecutingStorageJobsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutingStorageJobsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutingStorageJobsRequest) ProtoMessage() {} - -func (x *ExecutingStorageJobsRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutingStorageJobsRequest.ProtoReflect.Descriptor instead. -func (*ExecutingStorageJobsRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{42} -} - -func (x *ExecutingStorageJobsRequest) GetCids() []string { - if x != nil { - return x.Cids - } - return nil -} - -type ExecutingStorageJobsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StorageJobs []*Job `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` -} - -func (x *ExecutingStorageJobsResponse) Reset() { - *x = ExecutingStorageJobsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutingStorageJobsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutingStorageJobsResponse) ProtoMessage() {} - -func (x *ExecutingStorageJobsResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutingStorageJobsResponse.ProtoReflect.Descriptor instead. -func (*ExecutingStorageJobsResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{43} -} - -func (x *ExecutingStorageJobsResponse) GetStorageJobs() []*Job { - if x != nil { - return x.StorageJobs - } - return nil -} - -type LatestFinalStorageJobsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cids []string `protobuf:"bytes,1,rep,name=cids,proto3" json:"cids,omitempty"` -} - -func (x *LatestFinalStorageJobsRequest) Reset() { - *x = LatestFinalStorageJobsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LatestFinalStorageJobsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LatestFinalStorageJobsRequest) ProtoMessage() {} - -func (x *LatestFinalStorageJobsRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LatestFinalStorageJobsRequest.ProtoReflect.Descriptor instead. -func (*LatestFinalStorageJobsRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{44} -} - -func (x *LatestFinalStorageJobsRequest) GetCids() []string { - if x != nil { - return x.Cids - } - return nil -} - -type LatestFinalStorageJobsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StorageJobs []*Job `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` -} - -func (x *LatestFinalStorageJobsResponse) Reset() { - *x = LatestFinalStorageJobsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LatestFinalStorageJobsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LatestFinalStorageJobsResponse) ProtoMessage() {} - -func (x *LatestFinalStorageJobsResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LatestFinalStorageJobsResponse.ProtoReflect.Descriptor instead. -func (*LatestFinalStorageJobsResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{45} -} - -func (x *LatestFinalStorageJobsResponse) GetStorageJobs() []*Job { - if x != nil { - return x.StorageJobs - } - return nil -} - -type LatestSuccessfulStorageJobsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cids []string `protobuf:"bytes,1,rep,name=cids,proto3" json:"cids,omitempty"` -} - -func (x *LatestSuccessfulStorageJobsRequest) Reset() { - *x = LatestSuccessfulStorageJobsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LatestSuccessfulStorageJobsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LatestSuccessfulStorageJobsRequest) ProtoMessage() {} - -func (x *LatestSuccessfulStorageJobsRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LatestSuccessfulStorageJobsRequest.ProtoReflect.Descriptor instead. -func (*LatestSuccessfulStorageJobsRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{46} -} - -func (x *LatestSuccessfulStorageJobsRequest) GetCids() []string { - if x != nil { - return x.Cids - } - return nil -} - -type LatestSuccessfulStorageJobsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StorageJobs []*Job `protobuf:"bytes,1,rep,name=storage_jobs,json=storageJobs,proto3" json:"storage_jobs,omitempty"` -} - -func (x *LatestSuccessfulStorageJobsResponse) Reset() { - *x = LatestSuccessfulStorageJobsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LatestSuccessfulStorageJobsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LatestSuccessfulStorageJobsResponse) ProtoMessage() {} - -func (x *LatestSuccessfulStorageJobsResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LatestSuccessfulStorageJobsResponse.ProtoReflect.Descriptor instead. -func (*LatestSuccessfulStorageJobsResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{47} -} - -func (x *LatestSuccessfulStorageJobsResponse) GetStorageJobs() []*Job { - if x != nil { - return x.StorageJobs - } - return nil -} - -type StorageJobsSummaryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cids []string `protobuf:"bytes,1,rep,name=cids,proto3" json:"cids,omitempty"` -} - -func (x *StorageJobsSummaryRequest) Reset() { - *x = StorageJobsSummaryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageJobsSummaryRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageJobsSummaryRequest) ProtoMessage() {} - -func (x *StorageJobsSummaryRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StorageJobsSummaryRequest.ProtoReflect.Descriptor instead. -func (*StorageJobsSummaryRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{48} -} - -func (x *StorageJobsSummaryRequest) GetCids() []string { - if x != nil { - return x.Cids - } - return nil -} - -type StorageJobsSummaryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobCounts *JobCounts `protobuf:"bytes,1,opt,name=job_counts,json=jobCounts,proto3" json:"job_counts,omitempty"` - QueuedStorageJobs []*Job `protobuf:"bytes,2,rep,name=queued_storage_jobs,json=queuedStorageJobs,proto3" json:"queued_storage_jobs,omitempty"` - ExecutingStorageJobs []*Job `protobuf:"bytes,3,rep,name=executing_storage_jobs,json=executingStorageJobs,proto3" json:"executing_storage_jobs,omitempty"` - LatestFinalStorageJobs []*Job `protobuf:"bytes,4,rep,name=latest_final_storage_jobs,json=latestFinalStorageJobs,proto3" json:"latest_final_storage_jobs,omitempty"` - LatestSuccessfulStorageJobs []*Job `protobuf:"bytes,5,rep,name=latest_successful_storage_jobs,json=latestSuccessfulStorageJobs,proto3" json:"latest_successful_storage_jobs,omitempty"` -} - -func (x *StorageJobsSummaryResponse) Reset() { - *x = StorageJobsSummaryResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageJobsSummaryResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageJobsSummaryResponse) ProtoMessage() {} - -func (x *StorageJobsSummaryResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StorageJobsSummaryResponse.ProtoReflect.Descriptor instead. -func (*StorageJobsSummaryResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{49} -} - -func (x *StorageJobsSummaryResponse) GetJobCounts() *JobCounts { - if x != nil { - return x.JobCounts - } - return nil -} - -func (x *StorageJobsSummaryResponse) GetQueuedStorageJobs() []*Job { - if x != nil { - return x.QueuedStorageJobs - } - return nil -} - -func (x *StorageJobsSummaryResponse) GetExecutingStorageJobs() []*Job { - if x != nil { - return x.ExecutingStorageJobs - } - return nil -} - -func (x *StorageJobsSummaryResponse) GetLatestFinalStorageJobs() []*Job { - if x != nil { - return x.LatestFinalStorageJobs - } - return nil -} - -func (x *StorageJobsSummaryResponse) GetLatestSuccessfulStorageJobs() []*Job { - if x != nil { - return x.LatestSuccessfulStorageJobs - } - return nil -} - -type WatchStorageJobsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobIds []string `protobuf:"bytes,1,rep,name=job_ids,json=jobIds,proto3" json:"job_ids,omitempty"` -} - -func (x *WatchStorageJobsRequest) Reset() { - *x = WatchStorageJobsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WatchStorageJobsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WatchStorageJobsRequest) ProtoMessage() {} - -func (x *WatchStorageJobsRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WatchStorageJobsRequest.ProtoReflect.Descriptor instead. -func (*WatchStorageJobsRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{50} -} - -func (x *WatchStorageJobsRequest) GetJobIds() []string { - if x != nil { - return x.JobIds - } - return nil -} - -type WatchStorageJobsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` -} - -func (x *WatchStorageJobsResponse) Reset() { - *x = WatchStorageJobsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WatchStorageJobsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WatchStorageJobsResponse) ProtoMessage() {} - -func (x *WatchStorageJobsResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WatchStorageJobsResponse.ProtoReflect.Descriptor instead. -func (*WatchStorageJobsResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{51} -} - -func (x *WatchStorageJobsResponse) GetJob() *Job { - if x != nil { - return x.Job - } - return nil -} - -type StorageDealRecordsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Config *DealRecordsConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` -} - -func (x *StorageDealRecordsRequest) Reset() { - *x = StorageDealRecordsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageDealRecordsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageDealRecordsRequest) ProtoMessage() {} - -func (x *StorageDealRecordsRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StorageDealRecordsRequest.ProtoReflect.Descriptor instead. -func (*StorageDealRecordsRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{52} -} - -func (x *StorageDealRecordsRequest) GetConfig() *DealRecordsConfig { - if x != nil { - return x.Config - } - return nil -} - -type StorageDealRecordsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Records []*StorageDealRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` -} - -func (x *StorageDealRecordsResponse) Reset() { - *x = StorageDealRecordsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageDealRecordsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageDealRecordsResponse) ProtoMessage() {} - -func (x *StorageDealRecordsResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StorageDealRecordsResponse.ProtoReflect.Descriptor instead. -func (*StorageDealRecordsResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{53} -} - -func (x *StorageDealRecordsResponse) GetRecords() []*StorageDealRecord { - if x != nil { - return x.Records - } - return nil -} - -type RetrievalDealRecordsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Config *DealRecordsConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` -} - -func (x *RetrievalDealRecordsRequest) Reset() { - *x = RetrievalDealRecordsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RetrievalDealRecordsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RetrievalDealRecordsRequest) ProtoMessage() {} - -func (x *RetrievalDealRecordsRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RetrievalDealRecordsRequest.ProtoReflect.Descriptor instead. -func (*RetrievalDealRecordsRequest) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{54} -} - -func (x *RetrievalDealRecordsRequest) GetConfig() *DealRecordsConfig { - if x != nil { - return x.Config - } - return nil -} - -type RetrievalDealRecordsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Records []*RetrievalDealRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` -} - -func (x *RetrievalDealRecordsResponse) Reset() { - *x = RetrievalDealRecordsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RetrievalDealRecordsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RetrievalDealRecordsResponse) ProtoMessage() {} - -func (x *RetrievalDealRecordsResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RetrievalDealRecordsResponse.ProtoReflect.Descriptor instead. -func (*RetrievalDealRecordsResponse) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{55} -} - -func (x *RetrievalDealRecordsResponse) GetRecords() []*RetrievalDealRecord { - if x != nil { - return x.Records - } - return nil -} - -type JobCounts struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Queued int32 `protobuf:"varint,1,opt,name=queued,proto3" json:"queued,omitempty"` - Executing int32 `protobuf:"varint,2,opt,name=executing,proto3" json:"executing,omitempty"` - LatestFinal int32 `protobuf:"varint,3,opt,name=latest_final,json=latestFinal,proto3" json:"latest_final,omitempty"` - LatestSuccessful int32 `protobuf:"varint,4,opt,name=latest_successful,json=latestSuccessful,proto3" json:"latest_successful,omitempty"` -} - -func (x *JobCounts) Reset() { - *x = JobCounts{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *JobCounts) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*JobCounts) ProtoMessage() {} - -func (x *JobCounts) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use JobCounts.ProtoReflect.Descriptor instead. -func (*JobCounts) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{56} -} - -func (x *JobCounts) GetQueued() int32 { - if x != nil { - return x.Queued - } - return 0 -} - -func (x *JobCounts) GetExecuting() int32 { - if x != nil { - return x.Executing - } - return 0 -} - -func (x *JobCounts) GetLatestFinal() int32 { - if x != nil { - return x.LatestFinal - } - return 0 -} - -func (x *JobCounts) GetLatestSuccessful() int32 { - if x != nil { - return x.LatestSuccessful - } - return 0 -} - -type AddrInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - Balance string `protobuf:"bytes,4,opt,name=balance,proto3" json:"balance,omitempty"` -} - -func (x *AddrInfo) Reset() { - *x = AddrInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddrInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddrInfo) ProtoMessage() {} - -func (x *AddrInfo) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddrInfo.ProtoReflect.Descriptor instead. -func (*AddrInfo) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{57} -} - -func (x *AddrInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *AddrInfo) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *AddrInfo) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *AddrInfo) GetBalance() string { - if x != nil { - return x.Balance - } - return "" -} - -type IpfsConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AddTimeout int64 `protobuf:"varint,1,opt,name=add_timeout,json=addTimeout,proto3" json:"add_timeout,omitempty"` -} - -func (x *IpfsConfig) Reset() { - *x = IpfsConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IpfsConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IpfsConfig) ProtoMessage() {} - -func (x *IpfsConfig) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IpfsConfig.ProtoReflect.Descriptor instead. -func (*IpfsConfig) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{58} -} - -func (x *IpfsConfig) GetAddTimeout() int64 { - if x != nil { - return x.AddTimeout - } - return 0 -} - -type HotConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - AllowUnfreeze bool `protobuf:"varint,2,opt,name=allow_unfreeze,json=allowUnfreeze,proto3" json:"allow_unfreeze,omitempty"` - UnfreezeMaxPrice uint64 `protobuf:"varint,3,opt,name=unfreeze_max_price,json=unfreezeMaxPrice,proto3" json:"unfreeze_max_price,omitempty"` - Ipfs *IpfsConfig `protobuf:"bytes,4,opt,name=ipfs,proto3" json:"ipfs,omitempty"` -} - -func (x *HotConfig) Reset() { - *x = HotConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HotConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HotConfig) ProtoMessage() {} - -func (x *HotConfig) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HotConfig.ProtoReflect.Descriptor instead. -func (*HotConfig) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{59} -} - -func (x *HotConfig) GetEnabled() bool { - if x != nil { - return x.Enabled - } - return false -} - -func (x *HotConfig) GetAllowUnfreeze() bool { - if x != nil { - return x.AllowUnfreeze - } - return false -} - -func (x *HotConfig) GetUnfreezeMaxPrice() uint64 { - if x != nil { - return x.UnfreezeMaxPrice - } - return 0 -} - -func (x *HotConfig) GetIpfs() *IpfsConfig { - if x != nil { - return x.Ipfs - } - return nil -} - -type FilRenew struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - Threshold int64 `protobuf:"varint,2,opt,name=threshold,proto3" json:"threshold,omitempty"` -} - -func (x *FilRenew) Reset() { - *x = FilRenew{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FilRenew) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FilRenew) ProtoMessage() {} - -func (x *FilRenew) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FilRenew.ProtoReflect.Descriptor instead. -func (*FilRenew) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{60} -} - -func (x *FilRenew) GetEnabled() bool { - if x != nil { - return x.Enabled - } - return false -} - -func (x *FilRenew) GetThreshold() int64 { - if x != nil { - return x.Threshold - } - return 0 -} - -type FilConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReplicationFactor int64 `protobuf:"varint,1,opt,name=replication_factor,json=replicationFactor,proto3" json:"replication_factor,omitempty"` - DealMinDuration int64 `protobuf:"varint,2,opt,name=deal_min_duration,json=dealMinDuration,proto3" json:"deal_min_duration,omitempty"` - ExcludedMiners []string `protobuf:"bytes,3,rep,name=excluded_miners,json=excludedMiners,proto3" json:"excluded_miners,omitempty"` - TrustedMiners []string `protobuf:"bytes,4,rep,name=trusted_miners,json=trustedMiners,proto3" json:"trusted_miners,omitempty"` - CountryCodes []string `protobuf:"bytes,5,rep,name=country_codes,json=countryCodes,proto3" json:"country_codes,omitempty"` - Renew *FilRenew `protobuf:"bytes,6,opt,name=renew,proto3" json:"renew,omitempty"` - Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` - MaxPrice uint64 `protobuf:"varint,8,opt,name=max_price,json=maxPrice,proto3" json:"max_price,omitempty"` - FastRetrieval bool `protobuf:"varint,9,opt,name=fast_retrieval,json=fastRetrieval,proto3" json:"fast_retrieval,omitempty"` - DealStartOffset int64 `protobuf:"varint,10,opt,name=deal_start_offset,json=dealStartOffset,proto3" json:"deal_start_offset,omitempty"` -} - -func (x *FilConfig) Reset() { - *x = FilConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FilConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FilConfig) ProtoMessage() {} - -func (x *FilConfig) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FilConfig.ProtoReflect.Descriptor instead. -func (*FilConfig) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{61} -} - -func (x *FilConfig) GetReplicationFactor() int64 { - if x != nil { - return x.ReplicationFactor - } - return 0 -} - -func (x *FilConfig) GetDealMinDuration() int64 { - if x != nil { - return x.DealMinDuration - } - return 0 -} - -func (x *FilConfig) GetExcludedMiners() []string { - if x != nil { - return x.ExcludedMiners - } - return nil -} - -func (x *FilConfig) GetTrustedMiners() []string { - if x != nil { - return x.TrustedMiners - } - return nil -} - -func (x *FilConfig) GetCountryCodes() []string { - if x != nil { - return x.CountryCodes - } - return nil -} - -func (x *FilConfig) GetRenew() *FilRenew { - if x != nil { - return x.Renew - } - return nil -} - -func (x *FilConfig) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *FilConfig) GetMaxPrice() uint64 { - if x != nil { - return x.MaxPrice - } - return 0 -} - -func (x *FilConfig) GetFastRetrieval() bool { - if x != nil { - return x.FastRetrieval - } - return false -} - -func (x *FilConfig) GetDealStartOffset() int64 { - if x != nil { - return x.DealStartOffset - } - return 0 -} - -type ColdConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - Filecoin *FilConfig `protobuf:"bytes,2,opt,name=filecoin,proto3" json:"filecoin,omitempty"` -} - -func (x *ColdConfig) Reset() { - *x = ColdConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ColdConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ColdConfig) ProtoMessage() {} - -func (x *ColdConfig) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ColdConfig.ProtoReflect.Descriptor instead. -func (*ColdConfig) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{62} -} - -func (x *ColdConfig) GetEnabled() bool { - if x != nil { - return x.Enabled - } - return false -} - -func (x *ColdConfig) GetFilecoin() *FilConfig { - if x != nil { - return x.Filecoin - } - return nil -} - -type StorageConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Hot *HotConfig `protobuf:"bytes,1,opt,name=hot,proto3" json:"hot,omitempty"` - Cold *ColdConfig `protobuf:"bytes,2,opt,name=cold,proto3" json:"cold,omitempty"` - Repairable bool `protobuf:"varint,3,opt,name=repairable,proto3" json:"repairable,omitempty"` -} - -func (x *StorageConfig) Reset() { - *x = StorageConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageConfig) ProtoMessage() {} - -func (x *StorageConfig) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[63] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StorageConfig.ProtoReflect.Descriptor instead. -func (*StorageConfig) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{63} -} - -func (x *StorageConfig) GetHot() *HotConfig { - if x != nil { - return x.Hot - } - return nil -} - -func (x *StorageConfig) GetCold() *ColdConfig { - if x != nil { - return x.Cold - } - return nil -} - -func (x *StorageConfig) GetRepairable() bool { - if x != nil { - return x.Repairable - } - return false -} - -type IpfsHotInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Created int64 `protobuf:"varint,1,opt,name=created,proto3" json:"created,omitempty"` -} - -func (x *IpfsHotInfo) Reset() { - *x = IpfsHotInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IpfsHotInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IpfsHotInfo) ProtoMessage() {} - -func (x *IpfsHotInfo) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[64] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IpfsHotInfo.ProtoReflect.Descriptor instead. -func (*IpfsHotInfo) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{64} -} - -func (x *IpfsHotInfo) GetCreated() int64 { - if x != nil { - return x.Created - } - return 0 -} - -type HotInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - Ipfs *IpfsHotInfo `protobuf:"bytes,3,opt,name=ipfs,proto3" json:"ipfs,omitempty"` -} - -func (x *HotInfo) Reset() { - *x = HotInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HotInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HotInfo) ProtoMessage() {} - -func (x *HotInfo) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[65] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HotInfo.ProtoReflect.Descriptor instead. -func (*HotInfo) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{65} -} - -func (x *HotInfo) GetEnabled() bool { - if x != nil { - return x.Enabled - } - return false -} - -func (x *HotInfo) GetSize() int64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *HotInfo) GetIpfs() *IpfsHotInfo { - if x != nil { - return x.Ipfs - } - return nil -} - -type FilStorage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProposalCid string `protobuf:"bytes,1,opt,name=proposal_cid,json=proposalCid,proto3" json:"proposal_cid,omitempty"` - Renewed bool `protobuf:"varint,2,opt,name=renewed,proto3" json:"renewed,omitempty"` - Duration int64 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"` - ActivationEpoch int64 `protobuf:"varint,4,opt,name=activation_epoch,json=activationEpoch,proto3" json:"activation_epoch,omitempty"` - StartEpoch uint64 `protobuf:"varint,5,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` - Miner string `protobuf:"bytes,6,opt,name=miner,proto3" json:"miner,omitempty"` - EpochPrice uint64 `protobuf:"varint,7,opt,name=epoch_price,json=epochPrice,proto3" json:"epoch_price,omitempty"` - PieceCid string `protobuf:"bytes,8,opt,name=piece_cid,json=pieceCid,proto3" json:"piece_cid,omitempty"` -} - -func (x *FilStorage) Reset() { - *x = FilStorage{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FilStorage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FilStorage) ProtoMessage() {} - -func (x *FilStorage) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FilStorage.ProtoReflect.Descriptor instead. -func (*FilStorage) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{66} -} - -func (x *FilStorage) GetProposalCid() string { - if x != nil { - return x.ProposalCid - } - return "" -} - -func (x *FilStorage) GetRenewed() bool { - if x != nil { - return x.Renewed - } - return false -} - -func (x *FilStorage) GetDuration() int64 { - if x != nil { - return x.Duration - } - return 0 -} - -func (x *FilStorage) GetActivationEpoch() int64 { - if x != nil { - return x.ActivationEpoch - } - return 0 -} - -func (x *FilStorage) GetStartEpoch() uint64 { - if x != nil { - return x.StartEpoch - } - return 0 -} - -func (x *FilStorage) GetMiner() string { - if x != nil { - return x.Miner - } - return "" -} - -func (x *FilStorage) GetEpochPrice() uint64 { - if x != nil { - return x.EpochPrice - } - return 0 -} - -func (x *FilStorage) GetPieceCid() string { - if x != nil { - return x.PieceCid - } - return "" -} - -type FilInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DataCid string `protobuf:"bytes,1,opt,name=data_cid,json=dataCid,proto3" json:"data_cid,omitempty"` - Size uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - Proposals []*FilStorage `protobuf:"bytes,3,rep,name=proposals,proto3" json:"proposals,omitempty"` -} - -func (x *FilInfo) Reset() { - *x = FilInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FilInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FilInfo) ProtoMessage() {} - -func (x *FilInfo) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[67] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FilInfo.ProtoReflect.Descriptor instead. -func (*FilInfo) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{67} -} - -func (x *FilInfo) GetDataCid() string { - if x != nil { - return x.DataCid - } - return "" -} - -func (x *FilInfo) GetSize() uint64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *FilInfo) GetProposals() []*FilStorage { - if x != nil { - return x.Proposals - } - return nil -} - -type ColdInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - Filecoin *FilInfo `protobuf:"bytes,2,opt,name=filecoin,proto3" json:"filecoin,omitempty"` -} - -func (x *ColdInfo) Reset() { - *x = ColdInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ColdInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ColdInfo) ProtoMessage() {} - -func (x *ColdInfo) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[68] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ColdInfo.ProtoReflect.Descriptor instead. -func (*ColdInfo) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{68} -} - -func (x *ColdInfo) GetEnabled() bool { - if x != nil { - return x.Enabled - } - return false -} - -func (x *ColdInfo) GetFilecoin() *FilInfo { - if x != nil { - return x.Filecoin - } - return nil -} - -type StorageInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` - Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"` - Created int64 `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` - Hot *HotInfo `protobuf:"bytes,4,opt,name=hot,proto3" json:"hot,omitempty"` - Cold *ColdInfo `protobuf:"bytes,5,opt,name=cold,proto3" json:"cold,omitempty"` -} - -func (x *StorageInfo) Reset() { - *x = StorageInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageInfo) ProtoMessage() {} - -func (x *StorageInfo) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[69] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StorageInfo.ProtoReflect.Descriptor instead. -func (*StorageInfo) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{69} -} - -func (x *StorageInfo) GetJobId() string { - if x != nil { - return x.JobId - } - return "" -} - -func (x *StorageInfo) GetCid() string { - if x != nil { - return x.Cid - } - return "" -} - -func (x *StorageInfo) GetCreated() int64 { - if x != nil { - return x.Created - } - return 0 -} - -func (x *StorageInfo) GetHot() *HotInfo { - if x != nil { - return x.Hot - } - return nil -} - -func (x *StorageInfo) GetCold() *ColdInfo { - if x != nil { - return x.Cold - } - return nil -} - -type CidInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - LatestPushedStorageConfig *StorageConfig `protobuf:"bytes,2,opt,name=latest_pushed_storage_config,json=latestPushedStorageConfig,proto3" json:"latest_pushed_storage_config,omitempty"` - CurrentStorageInfo *StorageInfo `protobuf:"bytes,3,opt,name=current_storage_info,json=currentStorageInfo,proto3" json:"current_storage_info,omitempty"` - QueuedStorageJobs []*Job `protobuf:"bytes,4,rep,name=queued_storage_jobs,json=queuedStorageJobs,proto3" json:"queued_storage_jobs,omitempty"` - ExecutingStorageJob *Job `protobuf:"bytes,5,opt,name=executing_storage_job,json=executingStorageJob,proto3" json:"executing_storage_job,omitempty"` - LatestFinalStorageJob *Job `protobuf:"bytes,6,opt,name=latest_final_storage_job,json=latestFinalStorageJob,proto3" json:"latest_final_storage_job,omitempty"` - LatestSuccessfulStorageJob *Job `protobuf:"bytes,7,opt,name=latest_successful_storage_job,json=latestSuccessfulStorageJob,proto3" json:"latest_successful_storage_job,omitempty"` -} - -func (x *CidInfo) Reset() { - *x = CidInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CidInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CidInfo) ProtoMessage() {} - -func (x *CidInfo) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[70] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CidInfo.ProtoReflect.Descriptor instead. -func (*CidInfo) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{70} -} - -func (x *CidInfo) GetCid() string { - if x != nil { - return x.Cid - } - return "" -} - -func (x *CidInfo) GetLatestPushedStorageConfig() *StorageConfig { - if x != nil { - return x.LatestPushedStorageConfig - } - return nil -} - -func (x *CidInfo) GetCurrentStorageInfo() *StorageInfo { - if x != nil { - return x.CurrentStorageInfo - } - return nil -} - -func (x *CidInfo) GetQueuedStorageJobs() []*Job { - if x != nil { - return x.QueuedStorageJobs - } - return nil -} - -func (x *CidInfo) GetExecutingStorageJob() *Job { - if x != nil { - return x.ExecutingStorageJob - } - return nil -} - -func (x *CidInfo) GetLatestFinalStorageJob() *Job { - if x != nil { - return x.LatestFinalStorageJob - } - return nil -} - -func (x *CidInfo) GetLatestSuccessfulStorageJob() *Job { - if x != nil { - return x.LatestSuccessfulStorageJob - } - return nil -} - -type DealInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProposalCid string `protobuf:"bytes,1,opt,name=proposal_cid,json=proposalCid,proto3" json:"proposal_cid,omitempty"` - StateId uint64 `protobuf:"varint,2,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` - StateName string `protobuf:"bytes,3,opt,name=state_name,json=stateName,proto3" json:"state_name,omitempty"` - Miner string `protobuf:"bytes,4,opt,name=miner,proto3" json:"miner,omitempty"` - PieceCid string `protobuf:"bytes,5,opt,name=piece_cid,json=pieceCid,proto3" json:"piece_cid,omitempty"` - Size uint64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` - PricePerEpoch uint64 `protobuf:"varint,7,opt,name=price_per_epoch,json=pricePerEpoch,proto3" json:"price_per_epoch,omitempty"` - StartEpoch uint64 `protobuf:"varint,8,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` - Duration uint64 `protobuf:"varint,9,opt,name=duration,proto3" json:"duration,omitempty"` - DealId uint64 `protobuf:"varint,10,opt,name=deal_id,json=dealId,proto3" json:"deal_id,omitempty"` - ActivationEpoch int64 `protobuf:"varint,11,opt,name=activation_epoch,json=activationEpoch,proto3" json:"activation_epoch,omitempty"` - Message string `protobuf:"bytes,12,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *DealInfo) Reset() { - *x = DealInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DealInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DealInfo) ProtoMessage() {} - -func (x *DealInfo) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[71] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DealInfo.ProtoReflect.Descriptor instead. -func (*DealInfo) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{71} -} - -func (x *DealInfo) GetProposalCid() string { - if x != nil { - return x.ProposalCid - } - return "" -} - -func (x *DealInfo) GetStateId() uint64 { - if x != nil { - return x.StateId - } - return 0 -} - -func (x *DealInfo) GetStateName() string { - if x != nil { - return x.StateName - } - return "" -} - -func (x *DealInfo) GetMiner() string { - if x != nil { - return x.Miner - } - return "" -} - -func (x *DealInfo) GetPieceCid() string { - if x != nil { - return x.PieceCid - } - return "" -} - -func (x *DealInfo) GetSize() uint64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *DealInfo) GetPricePerEpoch() uint64 { - if x != nil { - return x.PricePerEpoch - } - return 0 -} - -func (x *DealInfo) GetStartEpoch() uint64 { - if x != nil { - return x.StartEpoch - } - return 0 -} - -func (x *DealInfo) GetDuration() uint64 { - if x != nil { - return x.Duration - } - return 0 -} - -func (x *DealInfo) GetDealId() uint64 { - if x != nil { - return x.DealId - } - return 0 -} - -func (x *DealInfo) GetActivationEpoch() int64 { - if x != nil { - return x.ActivationEpoch - } - return 0 -} - -func (x *DealInfo) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -type Job struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ApiId string `protobuf:"bytes,2,opt,name=api_id,json=apiId,proto3" json:"api_id,omitempty"` - Cid string `protobuf:"bytes,3,opt,name=cid,proto3" json:"cid,omitempty"` - Status JobStatus `protobuf:"varint,4,opt,name=status,proto3,enum=proto.powergate.v1.JobStatus" json:"status,omitempty"` - ErrorCause string `protobuf:"bytes,5,opt,name=error_cause,json=errorCause,proto3" json:"error_cause,omitempty"` - DealInfo []*DealInfo `protobuf:"bytes,6,rep,name=deal_info,json=dealInfo,proto3" json:"deal_info,omitempty"` - DealErrors []*DealError `protobuf:"bytes,7,rep,name=deal_errors,json=dealErrors,proto3" json:"deal_errors,omitempty"` - CreatedAt int64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` -} - -func (x *Job) Reset() { - *x = Job{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Job) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Job) ProtoMessage() {} - -func (x *Job) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[72] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Job.ProtoReflect.Descriptor instead. -func (*Job) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{72} -} - -func (x *Job) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Job) GetApiId() string { - if x != nil { - return x.ApiId - } - return "" -} - -func (x *Job) GetCid() string { - if x != nil { - return x.Cid - } - return "" -} - -func (x *Job) GetStatus() JobStatus { - if x != nil { - return x.Status - } - return JobStatus_JOB_STATUS_UNSPECIFIED -} - -func (x *Job) GetErrorCause() string { - if x != nil { - return x.ErrorCause - } - return "" -} - -func (x *Job) GetDealInfo() []*DealInfo { - if x != nil { - return x.DealInfo - } - return nil -} - -func (x *Job) GetDealErrors() []*DealError { - if x != nil { - return x.DealErrors - } - return nil -} - -func (x *Job) GetCreatedAt() int64 { - if x != nil { - return x.CreatedAt - } - return 0 -} - -type DealError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProposalCid string `protobuf:"bytes,1,opt,name=proposal_cid,json=proposalCid,proto3" json:"proposal_cid,omitempty"` - Miner string `protobuf:"bytes,2,opt,name=miner,proto3" json:"miner,omitempty"` - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *DealError) Reset() { - *x = DealError{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DealError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DealError) ProtoMessage() {} - -func (x *DealError) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[73] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DealError.ProtoReflect.Descriptor instead. -func (*DealError) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{73} -} - -func (x *DealError) GetProposalCid() string { - if x != nil { - return x.ProposalCid - } - return "" -} - -func (x *DealError) GetMiner() string { - if x != nil { - return x.Miner - } - return "" -} - -func (x *DealError) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -type LogEntry struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` - Time int64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` - Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *LogEntry) Reset() { - *x = LogEntry{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[74] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LogEntry) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LogEntry) ProtoMessage() {} - -func (x *LogEntry) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[74] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LogEntry.ProtoReflect.Descriptor instead. -func (*LogEntry) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{74} -} - -func (x *LogEntry) GetCid() string { - if x != nil { - return x.Cid - } - return "" -} - -func (x *LogEntry) GetJobId() string { - if x != nil { - return x.JobId - } - return "" -} - -func (x *LogEntry) GetTime() int64 { - if x != nil { - return x.Time - } - return 0 -} - -func (x *LogEntry) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -type DealRecordsConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FromAddrs []string `protobuf:"bytes,1,rep,name=from_addrs,json=fromAddrs,proto3" json:"from_addrs,omitempty"` - DataCids []string `protobuf:"bytes,2,rep,name=data_cids,json=dataCids,proto3" json:"data_cids,omitempty"` - IncludePending bool `protobuf:"varint,3,opt,name=include_pending,json=includePending,proto3" json:"include_pending,omitempty"` - IncludeFinal bool `protobuf:"varint,4,opt,name=include_final,json=includeFinal,proto3" json:"include_final,omitempty"` - Ascending bool `protobuf:"varint,5,opt,name=ascending,proto3" json:"ascending,omitempty"` -} - -func (x *DealRecordsConfig) Reset() { - *x = DealRecordsConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DealRecordsConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DealRecordsConfig) ProtoMessage() {} - -func (x *DealRecordsConfig) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[75] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DealRecordsConfig.ProtoReflect.Descriptor instead. -func (*DealRecordsConfig) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{75} -} - -func (x *DealRecordsConfig) GetFromAddrs() []string { - if x != nil { - return x.FromAddrs - } - return nil -} - -func (x *DealRecordsConfig) GetDataCids() []string { - if x != nil { - return x.DataCids - } - return nil -} - -func (x *DealRecordsConfig) GetIncludePending() bool { - if x != nil { - return x.IncludePending - } - return false -} - -func (x *DealRecordsConfig) GetIncludeFinal() bool { - if x != nil { - return x.IncludeFinal - } - return false -} - -func (x *DealRecordsConfig) GetAscending() bool { - if x != nil { - return x.Ascending - } - return false -} - -type StorageDealInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProposalCid string `protobuf:"bytes,1,opt,name=proposal_cid,json=proposalCid,proto3" json:"proposal_cid,omitempty"` - StateId uint64 `protobuf:"varint,2,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` - StateName string `protobuf:"bytes,3,opt,name=state_name,json=stateName,proto3" json:"state_name,omitempty"` - Miner string `protobuf:"bytes,4,opt,name=miner,proto3" json:"miner,omitempty"` - PieceCid string `protobuf:"bytes,5,opt,name=piece_cid,json=pieceCid,proto3" json:"piece_cid,omitempty"` - Size uint64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` - PricePerEpoch uint64 `protobuf:"varint,7,opt,name=price_per_epoch,json=pricePerEpoch,proto3" json:"price_per_epoch,omitempty"` - StartEpoch uint64 `protobuf:"varint,8,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` - Duration uint64 `protobuf:"varint,9,opt,name=duration,proto3" json:"duration,omitempty"` - DealId uint64 `protobuf:"varint,10,opt,name=deal_id,json=dealId,proto3" json:"deal_id,omitempty"` - ActivationEpoch int64 `protobuf:"varint,11,opt,name=activation_epoch,json=activationEpoch,proto3" json:"activation_epoch,omitempty"` - Message string `protobuf:"bytes,12,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *StorageDealInfo) Reset() { - *x = StorageDealInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageDealInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageDealInfo) ProtoMessage() {} - -func (x *StorageDealInfo) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[76] - 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 StorageDealInfo.ProtoReflect.Descriptor instead. -func (*StorageDealInfo) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{76} -} - -func (x *StorageDealInfo) GetProposalCid() string { - if x != nil { - return x.ProposalCid - } - return "" -} - -func (x *StorageDealInfo) GetStateId() uint64 { - if x != nil { - return x.StateId - } - return 0 -} - -func (x *StorageDealInfo) GetStateName() string { - if x != nil { - return x.StateName - } - return "" -} - -func (x *StorageDealInfo) GetMiner() string { - if x != nil { - return x.Miner - } - return "" -} - -func (x *StorageDealInfo) GetPieceCid() string { - if x != nil { - return x.PieceCid - } - return "" -} - -func (x *StorageDealInfo) GetSize() uint64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *StorageDealInfo) GetPricePerEpoch() uint64 { - if x != nil { - return x.PricePerEpoch - } - return 0 -} - -func (x *StorageDealInfo) GetStartEpoch() uint64 { - if x != nil { - return x.StartEpoch - } - return 0 -} - -func (x *StorageDealInfo) GetDuration() uint64 { - if x != nil { - return x.Duration - } - return 0 -} - -func (x *StorageDealInfo) GetDealId() uint64 { - if x != nil { - return x.DealId - } - return 0 -} - -func (x *StorageDealInfo) GetActivationEpoch() int64 { - if x != nil { - return x.ActivationEpoch - } - return 0 -} - -func (x *StorageDealInfo) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -type StorageDealRecord struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RootCid string `protobuf:"bytes,1,opt,name=root_cid,json=rootCid,proto3" json:"root_cid,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Time int64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` - Pending bool `protobuf:"varint,4,opt,name=pending,proto3" json:"pending,omitempty"` - DealInfo *StorageDealInfo `protobuf:"bytes,5,opt,name=deal_info,json=dealInfo,proto3" json:"deal_info,omitempty"` -} - -func (x *StorageDealRecord) Reset() { - *x = StorageDealRecord{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StorageDealRecord) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StorageDealRecord) ProtoMessage() {} - -func (x *StorageDealRecord) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[77] - 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 StorageDealRecord.ProtoReflect.Descriptor instead. -func (*StorageDealRecord) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{77} -} - -func (x *StorageDealRecord) GetRootCid() string { - if x != nil { - return x.RootCid - } - return "" -} - -func (x *StorageDealRecord) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *StorageDealRecord) GetTime() int64 { - if x != nil { - return x.Time - } - return 0 -} - -func (x *StorageDealRecord) GetPending() bool { - if x != nil { - return x.Pending - } - return false -} - -func (x *StorageDealRecord) GetDealInfo() *StorageDealInfo { - if x != nil { - return x.DealInfo - } - return nil -} - -type RetrievalDealInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RootCid string `protobuf:"bytes,1,opt,name=root_cid,json=rootCid,proto3" json:"root_cid,omitempty"` - Size uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - MinPrice uint64 `protobuf:"varint,3,opt,name=min_price,json=minPrice,proto3" json:"min_price,omitempty"` - PaymentInterval uint64 `protobuf:"varint,4,opt,name=payment_interval,json=paymentInterval,proto3" json:"payment_interval,omitempty"` - PaymentIntervalIncrease uint64 `protobuf:"varint,5,opt,name=payment_interval_increase,json=paymentIntervalIncrease,proto3" json:"payment_interval_increase,omitempty"` - Miner string `protobuf:"bytes,6,opt,name=miner,proto3" json:"miner,omitempty"` - MinerPeerId string `protobuf:"bytes,7,opt,name=miner_peer_id,json=minerPeerId,proto3" json:"miner_peer_id,omitempty"` -} - -func (x *RetrievalDealInfo) Reset() { - *x = RetrievalDealInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RetrievalDealInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RetrievalDealInfo) ProtoMessage() {} - -func (x *RetrievalDealInfo) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[78] - 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 RetrievalDealInfo.ProtoReflect.Descriptor instead. -func (*RetrievalDealInfo) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{78} -} - -func (x *RetrievalDealInfo) GetRootCid() string { - if x != nil { - return x.RootCid - } - return "" -} - -func (x *RetrievalDealInfo) GetSize() uint64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *RetrievalDealInfo) GetMinPrice() uint64 { - if x != nil { - return x.MinPrice - } - return 0 -} - -func (x *RetrievalDealInfo) GetPaymentInterval() uint64 { - if x != nil { - return x.PaymentInterval - } - return 0 -} - -func (x *RetrievalDealInfo) GetPaymentIntervalIncrease() uint64 { - if x != nil { - return x.PaymentIntervalIncrease - } - return 0 -} - -func (x *RetrievalDealInfo) GetMiner() string { - if x != nil { - return x.Miner - } - return "" -} - -func (x *RetrievalDealInfo) GetMinerPeerId() string { - if x != nil { - return x.MinerPeerId - } - return "" -} - -type RetrievalDealRecord struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` - DealInfo *RetrievalDealInfo `protobuf:"bytes,3,opt,name=deal_info,json=dealInfo,proto3" json:"deal_info,omitempty"` -} - -func (x *RetrievalDealRecord) Reset() { - *x = RetrievalDealRecord{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[79] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RetrievalDealRecord) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RetrievalDealRecord) ProtoMessage() {} - -func (x *RetrievalDealRecord) ProtoReflect() protoreflect.Message { - mi := &file_proto_powergate_v1_powergate_proto_msgTypes[79] - 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 RetrievalDealRecord.ProtoReflect.Descriptor instead. -func (*RetrievalDealRecord) Descriptor() ([]byte, []int) { - return file_proto_powergate_v1_powergate_proto_rawDescGZIP(), []int{79} -} - -func (x *RetrievalDealRecord) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *RetrievalDealRecord) GetTime() int64 { - if x != nil { - return x.Time - } - return 0 -} - -func (x *RetrievalDealRecord) GetDealInfo() *RetrievalDealInfo { - if x != nil { - return x.DealInfo - } - return nil -} - -var File_proto_powergate_v1_powergate_proto protoreflect.FileDescriptor - -var file_proto_powergate_v1_powergate_proto_rawDesc = []byte{ - 0x0a, 0x22, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, - 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, - 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x22, 0x12, 0x0a, 0x10, 0x42, 0x75, 0x69, 0x6c, - 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xc8, 0x01, 0x0a, - 0x11, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, - 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x69, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, - 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, - 0x0b, 0x67, 0x69, 0x74, 0x5f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x67, 0x69, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x1d, - 0x0a, 0x0a, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x21, 0x0a, 0x1f, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x32, 0x0a, 0x20, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x1d, - 0x0a, 0x1b, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x77, 0x0a, - 0x1c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, - 0x16, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x52, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x5b, 0x0a, 0x1e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x22, 0x21, 0x0a, 0x1f, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x22, 0x21, 0x0a, 0x0d, - 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, - 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x22, - 0xe0, 0x01, 0x0a, 0x19, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, - 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, - 0x39, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, - 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, - 0x68, 0x61, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x76, 0x65, - 0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0e, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x2e, 0x0a, 0x13, 0x68, 0x61, 0x73, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, - 0x64, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x11, 0x68, 0x61, 0x73, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x22, 0x33, 0x0a, 0x1a, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x3c, 0x0a, 0x12, 0x52, 0x65, 0x70, 0x6c, 0x61, - 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, - 0x04, 0x63, 0x69, 0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, - 0x31, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x63, 0x69, 0x64, 0x32, 0x22, 0x2c, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, - 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, - 0x62, 0x49, 0x64, 0x22, 0x1e, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x63, 0x69, 0x64, 0x22, 0x23, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x05, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x22, 0x21, 0x0a, 0x0d, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x22, 0x10, 0x0a, 0x0e, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x55, 0x0a, - 0x10, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x63, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x69, - 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x69, 0x73, - 0x74, 0x6f, 0x72, 0x79, 0x22, 0x4e, 0x0a, 0x11, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x6f, 0x67, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x6c, 0x6f, 0x67, - 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x22, 0x24, 0x0a, 0x0e, 0x43, 0x69, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0x4b, 0x0a, 0x0f, 0x43, 0x69, - 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, - 0x09, 0x63, 0x69, 0x64, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, - 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x69, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x63, - 0x69, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x2a, 0x0a, 0x0e, 0x42, 0x61, 0x6c, 0x61, 0x6e, - 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x22, 0x2b, 0x0a, 0x0f, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, - 0x22, 0x6d, 0x0a, 0x11, 0x4e, 0x65, 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, - 0x6d, 0x61, 0x6b, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0b, 0x6d, 0x61, 0x6b, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, - 0x2e, 0x0a, 0x12, 0x4e, 0x65, 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, - 0x12, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x22, 0x4f, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x64, 0x64, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x65, 0x73, 0x22, 0x4c, 0x0a, 0x0e, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x22, 0x11, 0x0a, 0x0f, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x0a, 0x12, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, - 0x33, 0x0a, 0x13, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x22, 0x68, 0x0a, 0x14, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x27, - 0x0a, 0x15, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x22, 0x30, 0x0a, 0x17, 0x43, 0x61, 0x6e, 0x63, 0x65, - 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x0a, 0x11, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, - 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, - 0x64, 0x22, 0x3f, 0x0a, 0x12, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, - 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, - 0x6f, 0x62, 0x22, 0x33, 0x0a, 0x1a, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x46, 0x6f, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x67, 0x0a, 0x1b, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x6f, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x52, 0x0d, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x22, 0x2e, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x63, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, - 0x22, 0x57, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, - 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, - 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x0b, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x22, 0x31, 0x0a, 0x1b, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0x5a, 0x0a, 0x1c, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0c, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x0b, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x22, 0x33, 0x0a, 0x1d, 0x4c, 0x61, 0x74, 0x65, - 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, - 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0x5c, 0x0a, - 0x1e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3a, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, - 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x0b, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x22, 0x38, 0x0a, 0x22, 0x4c, - 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0x61, 0x0a, 0x23, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, - 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0c, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x0b, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x22, 0x2f, 0x0a, 0x19, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0xa4, 0x03, 0x0a, 0x1a, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x09, 0x6a, 0x6f, 0x62, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x13, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, - 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, - 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x11, 0x71, 0x75, - 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, - 0x4d, 0x0a, 0x16, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x14, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x52, - 0x0a, 0x19, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, - 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x16, 0x6c, 0x61, 0x74, 0x65, - 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, - 0x62, 0x73, 0x12, 0x5c, 0x0a, 0x1e, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, - 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x4a, 0x6f, 0x62, 0x52, 0x1b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, - 0x22, 0x32, 0x0a, 0x17, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6a, - 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6a, 0x6f, - 0x62, 0x49, 0x64, 0x73, 0x22, 0x45, 0x0a, 0x18, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x29, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x5a, 0x0a, 0x19, 0x53, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, - 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, - 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x5d, 0x0a, 0x1a, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, - 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, 0x72, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x5c, 0x0a, 0x1b, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, - 0x76, 0x61, 0x6c, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, - 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x61, 0x6c, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x22, 0x61, 0x0a, 0x1c, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, - 0x6c, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, - 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x69, - 0x65, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, - 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x91, 0x01, 0x0a, 0x09, 0x4a, 0x6f, 0x62, 0x43, - 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x12, 0x1c, 0x0a, - 0x09, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x09, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x6c, - 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x0b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x12, 0x2b, - 0x0a, 0x11, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x66, 0x75, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x6c, 0x61, 0x74, 0x65, 0x73, - 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x22, 0x66, 0x0a, 0x08, 0x41, - 0x64, 0x64, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x22, 0x2d, 0x0a, 0x0a, 0x49, 0x70, 0x66, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x6f, - 0x75, 0x74, 0x22, 0xae, 0x01, 0x0a, 0x09, 0x48, 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, - 0x6c, 0x6f, 0x77, 0x5f, 0x75, 0x6e, 0x66, 0x72, 0x65, 0x65, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x55, 0x6e, 0x66, 0x72, 0x65, 0x65, 0x7a, - 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x75, 0x6e, 0x66, 0x72, 0x65, 0x65, 0x7a, 0x65, 0x5f, 0x6d, 0x61, - 0x78, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x75, - 0x6e, 0x66, 0x72, 0x65, 0x65, 0x7a, 0x65, 0x4d, 0x61, 0x78, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, - 0x32, 0x0a, 0x04, 0x69, 0x70, 0x66, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x49, 0x70, 0x66, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x04, 0x69, - 0x70, 0x66, 0x73, 0x22, 0x42, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x12, - 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x68, 0x72, - 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x68, - 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x99, 0x03, 0x0a, 0x09, 0x46, 0x69, 0x6c, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, - 0x63, 0x74, 0x6f, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x65, 0x61, 0x6c, 0x5f, 0x6d, 0x69, 0x6e, - 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0f, 0x64, 0x65, 0x61, 0x6c, 0x4d, 0x69, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x5f, 0x6d, 0x69, 0x6e, - 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x63, 0x6c, 0x75, - 0x64, 0x65, 0x64, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x72, 0x75, - 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0d, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x73, - 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, - 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, - 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x05, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, - 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x6e, - 0x65, 0x77, 0x52, 0x05, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x50, 0x72, 0x69, 0x63, 0x65, - 0x12, 0x25, 0x0a, 0x0e, 0x66, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, - 0x61, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x66, 0x61, 0x73, 0x74, 0x52, 0x65, - 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, 0x6c, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x65, 0x61, 0x6c, 0x5f, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0f, 0x64, 0x65, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4f, 0x66, 0x66, - 0x73, 0x65, 0x74, 0x22, 0x61, 0x0a, 0x0a, 0x43, 0x6f, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x08, 0x66, - 0x69, 0x6c, 0x65, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x66, 0x69, - 0x6c, 0x65, 0x63, 0x6f, 0x69, 0x6e, 0x22, 0x94, 0x01, 0x0a, 0x0d, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2f, 0x0a, 0x03, 0x68, 0x6f, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, - 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x74, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x52, 0x03, 0x68, 0x6f, 0x74, 0x12, 0x32, 0x0a, 0x04, 0x63, 0x6f, 0x6c, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, - 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, - 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x04, 0x63, 0x6f, 0x6c, 0x64, 0x12, 0x1e, 0x0a, - 0x0a, 0x72, 0x65, 0x70, 0x61, 0x69, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x61, 0x69, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x27, 0x0a, - 0x0b, 0x49, 0x70, 0x66, 0x73, 0x48, 0x6f, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x22, 0x6c, 0x0a, 0x07, 0x48, 0x6f, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, - 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, - 0x33, 0x0a, 0x04, 0x69, 0x70, 0x66, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x49, 0x70, 0x66, 0x73, 0x48, 0x6f, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, - 0x69, 0x70, 0x66, 0x73, 0x22, 0x85, 0x02, 0x0a, 0x0a, 0x46, 0x69, 0x6c, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, - 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x43, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x65, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x65, 0x64, - 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, - 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x65, - 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x1f, - 0x0a, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0a, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, - 0x1b, 0x0a, 0x09, 0x70, 0x69, 0x65, 0x63, 0x65, 0x5f, 0x63, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x70, 0x69, 0x65, 0x63, 0x65, 0x43, 0x69, 0x64, 0x22, 0x76, 0x0a, 0x07, - 0x46, 0x69, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x5f, - 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x43, - 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, - 0x69, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x73, 0x22, 0x5d, 0x0a, 0x08, 0x43, 0x6f, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x69, - 0x6c, 0x65, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x63, - 0x6f, 0x69, 0x6e, 0x22, 0xb1, 0x01, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, - 0x6e, 0x66, 0x6f, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2d, 0x0a, 0x03, 0x68, 0x6f, 0x74, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, - 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x74, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x03, 0x68, 0x6f, 0x74, 0x12, 0x30, 0x0a, 0x04, 0x63, 0x6f, 0x6c, 0x64, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, - 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x64, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x04, 0x63, 0x6f, 0x6c, 0x64, 0x22, 0x96, 0x04, 0x0a, 0x07, 0x43, 0x69, 0x64, 0x49, - 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x62, 0x0a, 0x1c, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, - 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x19, - 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x73, 0x68, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x51, 0x0a, 0x14, 0x63, 0x75, 0x72, - 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x6e, 0x66, - 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, - 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x12, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, - 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x47, 0x0a, 0x13, - 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, - 0x6f, 0x62, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, - 0x6f, 0x62, 0x52, 0x11, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x4b, 0x0a, 0x15, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, - 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x13, 0x65, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, - 0x6f, 0x62, 0x12, 0x50, 0x0a, 0x18, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x66, 0x69, 0x6e, - 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, - 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x15, 0x6c, - 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x5a, 0x0a, 0x1d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, - 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x1a, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, - 0x22, 0xf1, 0x02, 0x0a, 0x08, 0x44, 0x65, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, - 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x43, 0x69, 0x64, - 0x12, 0x19, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x07, 0x73, 0x74, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, - 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x65, 0x72, - 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x69, 0x65, 0x63, 0x65, 0x5f, 0x63, 0x69, 0x64, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x69, 0x65, 0x63, 0x65, 0x43, 0x69, 0x64, 0x12, 0x12, 0x0a, - 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, - 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x65, - 0x70, 0x6f, 0x63, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x70, 0x72, 0x69, 0x63, - 0x65, 0x50, 0x65, 0x72, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x65, 0x61, 0x6c, 0x5f, 0x69, - 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x64, 0x65, 0x61, 0x6c, 0x49, 0x64, 0x12, - 0x29, 0x0a, 0x10, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x70, - 0x6f, 0x63, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x22, 0xb0, 0x02, 0x0a, 0x03, 0x4a, 0x6f, 0x62, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, - 0x61, 0x70, 0x69, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, - 0x69, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, - 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x39, 0x0a, - 0x09, 0x64, 0x65, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, - 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, - 0x64, 0x65, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3e, 0x0a, 0x0b, 0x64, 0x65, 0x61, 0x6c, - 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x65, 0x61, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x0a, 0x64, 0x65, - 0x61, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x5e, 0x0a, 0x09, 0x44, 0x65, 0x61, 0x6c, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x5f, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x43, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x18, 0x0a, - 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x61, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xbb, 0x01, 0x0a, 0x11, 0x44, - 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x66, 0x72, 0x6f, 0x6d, 0x41, 0x64, 0x64, 0x72, 0x73, 0x12, - 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x43, 0x69, 0x64, 0x73, 0x12, 0x27, 0x0a, 0x0f, - 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x50, 0x65, - 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, - 0x5f, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, - 0x63, 0x6c, 0x75, 0x64, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x73, - 0x63, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, - 0x73, 0x63, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x22, 0xf8, 0x02, 0x0a, 0x0f, 0x53, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0c, - 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x43, 0x69, 0x64, 0x12, - 0x19, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x07, 0x73, 0x74, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, - 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x12, - 0x1b, 0x0a, 0x09, 0x70, 0x69, 0x65, 0x63, 0x65, 0x5f, 0x63, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x70, 0x69, 0x65, 0x63, 0x65, 0x43, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, - 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, - 0x12, 0x26, 0x0a, 0x0f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x65, 0x70, - 0x6f, 0x63, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x70, 0x72, 0x69, 0x63, 0x65, - 0x50, 0x65, 0x72, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x65, 0x61, 0x6c, 0x5f, 0x69, 0x64, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x64, 0x65, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x29, - 0x0a, 0x10, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x70, 0x6f, - 0x63, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x22, 0xb8, 0x01, 0x0a, 0x11, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, - 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x6f, - 0x74, 0x5f, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x6f, 0x6f, - 0x74, 0x43, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, - 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, - 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x40, 0x0a, 0x09, - 0x64, 0x65, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x64, 0x65, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x80, - 0x02, 0x0a, 0x11, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x61, 0x6c, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x63, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x6f, 0x6f, 0x74, 0x43, 0x69, 0x64, 0x12, - 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, - 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6e, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, - 0x12, 0x29, 0x0a, 0x10, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x70, 0x61, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x3a, 0x0a, 0x19, 0x70, - 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, - 0x69, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, - 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x49, - 0x6e, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x65, 0x72, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x22, 0x0a, - 0x0d, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x50, 0x65, 0x65, 0x72, 0x49, - 0x64, 0x22, 0x87, 0x01, 0x0a, 0x13, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, 0x6c, 0x44, - 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x09, 0x64, 0x65, 0x61, 0x6c, 0x5f, - 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x61, 0x6c, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x08, 0x64, 0x65, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x2a, 0xa0, 0x01, 0x0a, 0x09, - 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, 0x16, 0x4a, 0x4f, 0x42, - 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, - 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x4a, 0x4f, 0x42, 0x5f, 0x53, 0x54, 0x41, - 0x54, 0x55, 0x53, 0x5f, 0x51, 0x55, 0x45, 0x55, 0x45, 0x44, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, - 0x4a, 0x4f, 0x42, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, - 0x54, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x4a, 0x4f, 0x42, 0x5f, 0x53, 0x54, - 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x17, 0x0a, - 0x13, 0x4a, 0x4f, 0x42, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x41, 0x4e, 0x43, - 0x45, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x4a, 0x4f, 0x42, 0x5f, 0x53, 0x54, - 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x05, 0x32, 0xdb, - 0x17, 0x0a, 0x10, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x5a, 0x0a, 0x09, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, - 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, - 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, - 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x87, 0x01, 0x0a, 0x18, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x33, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x34, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, - 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7b, 0x0a, 0x14, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x2f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, - 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x84, 0x01, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x44, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, - 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, - 0x12, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x12, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, - 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x06, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x21, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, - 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x67, 0x65, - 0x12, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, - 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x12, 0x60, 0x0a, 0x0b, 0x52, 0x65, 0x70, - 0x6c, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x26, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, - 0x70, 0x6c, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, - 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x03, 0x47, - 0x65, 0x74, 0x12, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x5c, 0x0a, 0x09, 0x57, 0x61, 0x74, 0x63, 0x68, - 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, - 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4c, - 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x57, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x54, 0x0a, 0x07, 0x43, 0x69, 0x64, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, - 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x69, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, - 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x69, 0x64, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x07, 0x42, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, - 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x5d, 0x0a, 0x0a, 0x4e, 0x65, 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, - 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x5a, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x24, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, - 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x07, - 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x12, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, - 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, - 0x64, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x60, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x12, 0x26, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, - 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, - 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x28, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, - 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, - 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x0a, - 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x25, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, - 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, - 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x78, 0x0a, 0x13, 0x53, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x6f, 0x72, 0x4a, - 0x6f, 0x62, 0x12, 0x2e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x6f, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x6f, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x72, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x2c, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x75, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7b, 0x0a, 0x14, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, - 0x73, 0x12, 0x2f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, - 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, - 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, - 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x81, 0x01, 0x0a, 0x16, 0x4c, 0x61, 0x74, 0x65, 0x73, - 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, - 0x73, 0x12, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, - 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, - 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, - 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, - 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x90, 0x01, 0x0a, 0x1b, 0x4c, - 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x36, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, - 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x75, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, - 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, - 0x12, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, - 0x61, 0x72, 0x79, 0x12, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, - 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x4a, 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, - 0x6f, 0x62, 0x73, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x71, 0x0a, 0x10, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x2b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, - 0x74, 0x63, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, - 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, - 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x6f, 0x0a, 0x10, 0x43, 0x61, 0x6e, 0x63, 0x65, - 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x2b, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, - 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x12, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x2d, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x7b, 0x0a, 0x14, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x61, 0x6c, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x2f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, - 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x74, - 0x72, 0x69, 0x65, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, - 0x74, 0x72, 0x69, 0x65, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x33, 0x5a, 0x31, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x69, - 0x6c, 0x65, 0x69, 0x6f, 0x2f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x67, 0x61, 0x74, 0x65, 0x2f, 0x76, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_proto_powergate_v1_powergate_proto_rawDescOnce sync.Once - file_proto_powergate_v1_powergate_proto_rawDescData = file_proto_powergate_v1_powergate_proto_rawDesc -) - -func file_proto_powergate_v1_powergate_proto_rawDescGZIP() []byte { - file_proto_powergate_v1_powergate_proto_rawDescOnce.Do(func() { - file_proto_powergate_v1_powergate_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_powergate_v1_powergate_proto_rawDescData) - }) - return file_proto_powergate_v1_powergate_proto_rawDescData -} - -var file_proto_powergate_v1_powergate_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_proto_powergate_v1_powergate_proto_msgTypes = make([]protoimpl.MessageInfo, 80) -var file_proto_powergate_v1_powergate_proto_goTypes = []interface{}{ - (JobStatus)(0), // 0: proto.powergate.v1.JobStatus - (*BuildInfoRequest)(nil), // 1: proto.powergate.v1.BuildInfoRequest - (*BuildInfoResponse)(nil), // 2: proto.powergate.v1.BuildInfoResponse - (*StorageProfileIdentifierRequest)(nil), // 3: proto.powergate.v1.StorageProfileIdentifierRequest - (*StorageProfileIdentifierResponse)(nil), // 4: proto.powergate.v1.StorageProfileIdentifierResponse - (*DefaultStorageConfigRequest)(nil), // 5: proto.powergate.v1.DefaultStorageConfigRequest - (*DefaultStorageConfigResponse)(nil), // 6: proto.powergate.v1.DefaultStorageConfigResponse - (*SetDefaultStorageConfigRequest)(nil), // 7: proto.powergate.v1.SetDefaultStorageConfigRequest - (*SetDefaultStorageConfigResponse)(nil), // 8: proto.powergate.v1.SetDefaultStorageConfigResponse - (*StageRequest)(nil), // 9: proto.powergate.v1.StageRequest - (*StageResponse)(nil), // 10: proto.powergate.v1.StageResponse - (*ApplyStorageConfigRequest)(nil), // 11: proto.powergate.v1.ApplyStorageConfigRequest - (*ApplyStorageConfigResponse)(nil), // 12: proto.powergate.v1.ApplyStorageConfigResponse - (*ReplaceDataRequest)(nil), // 13: proto.powergate.v1.ReplaceDataRequest - (*ReplaceDataResponse)(nil), // 14: proto.powergate.v1.ReplaceDataResponse - (*GetRequest)(nil), // 15: proto.powergate.v1.GetRequest - (*GetResponse)(nil), // 16: proto.powergate.v1.GetResponse - (*RemoveRequest)(nil), // 17: proto.powergate.v1.RemoveRequest - (*RemoveResponse)(nil), // 18: proto.powergate.v1.RemoveResponse - (*WatchLogsRequest)(nil), // 19: proto.powergate.v1.WatchLogsRequest - (*WatchLogsResponse)(nil), // 20: proto.powergate.v1.WatchLogsResponse - (*CidInfoRequest)(nil), // 21: proto.powergate.v1.CidInfoRequest - (*CidInfoResponse)(nil), // 22: proto.powergate.v1.CidInfoResponse - (*BalanceRequest)(nil), // 23: proto.powergate.v1.BalanceRequest - (*BalanceResponse)(nil), // 24: proto.powergate.v1.BalanceResponse - (*NewAddressRequest)(nil), // 25: proto.powergate.v1.NewAddressRequest - (*NewAddressResponse)(nil), // 26: proto.powergate.v1.NewAddressResponse - (*AddressesRequest)(nil), // 27: proto.powergate.v1.AddressesRequest - (*AddressesResponse)(nil), // 28: proto.powergate.v1.AddressesResponse - (*SendFilRequest)(nil), // 29: proto.powergate.v1.SendFilRequest - (*SendFilResponse)(nil), // 30: proto.powergate.v1.SendFilResponse - (*SignMessageRequest)(nil), // 31: proto.powergate.v1.SignMessageRequest - (*SignMessageResponse)(nil), // 32: proto.powergate.v1.SignMessageResponse - (*VerifyMessageRequest)(nil), // 33: proto.powergate.v1.VerifyMessageRequest - (*VerifyMessageResponse)(nil), // 34: proto.powergate.v1.VerifyMessageResponse - (*CancelStorageJobRequest)(nil), // 35: proto.powergate.v1.CancelStorageJobRequest - (*CancelStorageJobResponse)(nil), // 36: proto.powergate.v1.CancelStorageJobResponse - (*StorageJobRequest)(nil), // 37: proto.powergate.v1.StorageJobRequest - (*StorageJobResponse)(nil), // 38: proto.powergate.v1.StorageJobResponse - (*StorageConfigForJobRequest)(nil), // 39: proto.powergate.v1.StorageConfigForJobRequest - (*StorageConfigForJobResponse)(nil), // 40: proto.powergate.v1.StorageConfigForJobResponse - (*QueuedStorageJobsRequest)(nil), // 41: proto.powergate.v1.QueuedStorageJobsRequest - (*QueuedStorageJobsResponse)(nil), // 42: proto.powergate.v1.QueuedStorageJobsResponse - (*ExecutingStorageJobsRequest)(nil), // 43: proto.powergate.v1.ExecutingStorageJobsRequest - (*ExecutingStorageJobsResponse)(nil), // 44: proto.powergate.v1.ExecutingStorageJobsResponse - (*LatestFinalStorageJobsRequest)(nil), // 45: proto.powergate.v1.LatestFinalStorageJobsRequest - (*LatestFinalStorageJobsResponse)(nil), // 46: proto.powergate.v1.LatestFinalStorageJobsResponse - (*LatestSuccessfulStorageJobsRequest)(nil), // 47: proto.powergate.v1.LatestSuccessfulStorageJobsRequest - (*LatestSuccessfulStorageJobsResponse)(nil), // 48: proto.powergate.v1.LatestSuccessfulStorageJobsResponse - (*StorageJobsSummaryRequest)(nil), // 49: proto.powergate.v1.StorageJobsSummaryRequest - (*StorageJobsSummaryResponse)(nil), // 50: proto.powergate.v1.StorageJobsSummaryResponse - (*WatchStorageJobsRequest)(nil), // 51: proto.powergate.v1.WatchStorageJobsRequest - (*WatchStorageJobsResponse)(nil), // 52: proto.powergate.v1.WatchStorageJobsResponse - (*StorageDealRecordsRequest)(nil), // 53: proto.powergate.v1.StorageDealRecordsRequest - (*StorageDealRecordsResponse)(nil), // 54: proto.powergate.v1.StorageDealRecordsResponse - (*RetrievalDealRecordsRequest)(nil), // 55: proto.powergate.v1.RetrievalDealRecordsRequest - (*RetrievalDealRecordsResponse)(nil), // 56: proto.powergate.v1.RetrievalDealRecordsResponse - (*JobCounts)(nil), // 57: proto.powergate.v1.JobCounts - (*AddrInfo)(nil), // 58: proto.powergate.v1.AddrInfo - (*IpfsConfig)(nil), // 59: proto.powergate.v1.IpfsConfig - (*HotConfig)(nil), // 60: proto.powergate.v1.HotConfig - (*FilRenew)(nil), // 61: proto.powergate.v1.FilRenew - (*FilConfig)(nil), // 62: proto.powergate.v1.FilConfig - (*ColdConfig)(nil), // 63: proto.powergate.v1.ColdConfig - (*StorageConfig)(nil), // 64: proto.powergate.v1.StorageConfig - (*IpfsHotInfo)(nil), // 65: proto.powergate.v1.IpfsHotInfo - (*HotInfo)(nil), // 66: proto.powergate.v1.HotInfo - (*FilStorage)(nil), // 67: proto.powergate.v1.FilStorage - (*FilInfo)(nil), // 68: proto.powergate.v1.FilInfo - (*ColdInfo)(nil), // 69: proto.powergate.v1.ColdInfo - (*StorageInfo)(nil), // 70: proto.powergate.v1.StorageInfo - (*CidInfo)(nil), // 71: proto.powergate.v1.CidInfo - (*DealInfo)(nil), // 72: proto.powergate.v1.DealInfo - (*Job)(nil), // 73: proto.powergate.v1.Job - (*DealError)(nil), // 74: proto.powergate.v1.DealError - (*LogEntry)(nil), // 75: proto.powergate.v1.LogEntry - (*DealRecordsConfig)(nil), // 76: proto.powergate.v1.DealRecordsConfig - (*StorageDealInfo)(nil), // 77: proto.powergate.v1.StorageDealInfo - (*StorageDealRecord)(nil), // 78: proto.powergate.v1.StorageDealRecord - (*RetrievalDealInfo)(nil), // 79: proto.powergate.v1.RetrievalDealInfo - (*RetrievalDealRecord)(nil), // 80: proto.powergate.v1.RetrievalDealRecord -} -var file_proto_powergate_v1_powergate_proto_depIdxs = []int32{ - 64, // 0: proto.powergate.v1.DefaultStorageConfigResponse.default_storage_config:type_name -> proto.powergate.v1.StorageConfig - 64, // 1: proto.powergate.v1.SetDefaultStorageConfigRequest.config:type_name -> proto.powergate.v1.StorageConfig - 64, // 2: proto.powergate.v1.ApplyStorageConfigRequest.config:type_name -> proto.powergate.v1.StorageConfig - 75, // 3: proto.powergate.v1.WatchLogsResponse.log_entry:type_name -> proto.powergate.v1.LogEntry - 71, // 4: proto.powergate.v1.CidInfoResponse.cid_infos:type_name -> proto.powergate.v1.CidInfo - 58, // 5: proto.powergate.v1.AddressesResponse.addresses:type_name -> proto.powergate.v1.AddrInfo - 73, // 6: proto.powergate.v1.StorageJobResponse.job:type_name -> proto.powergate.v1.Job - 64, // 7: proto.powergate.v1.StorageConfigForJobResponse.storage_config:type_name -> proto.powergate.v1.StorageConfig - 73, // 8: proto.powergate.v1.QueuedStorageJobsResponse.storage_jobs:type_name -> proto.powergate.v1.Job - 73, // 9: proto.powergate.v1.ExecutingStorageJobsResponse.storage_jobs:type_name -> proto.powergate.v1.Job - 73, // 10: proto.powergate.v1.LatestFinalStorageJobsResponse.storage_jobs:type_name -> proto.powergate.v1.Job - 73, // 11: proto.powergate.v1.LatestSuccessfulStorageJobsResponse.storage_jobs:type_name -> proto.powergate.v1.Job - 57, // 12: proto.powergate.v1.StorageJobsSummaryResponse.job_counts:type_name -> proto.powergate.v1.JobCounts - 73, // 13: proto.powergate.v1.StorageJobsSummaryResponse.queued_storage_jobs:type_name -> proto.powergate.v1.Job - 73, // 14: proto.powergate.v1.StorageJobsSummaryResponse.executing_storage_jobs:type_name -> proto.powergate.v1.Job - 73, // 15: proto.powergate.v1.StorageJobsSummaryResponse.latest_final_storage_jobs:type_name -> proto.powergate.v1.Job - 73, // 16: proto.powergate.v1.StorageJobsSummaryResponse.latest_successful_storage_jobs:type_name -> proto.powergate.v1.Job - 73, // 17: proto.powergate.v1.WatchStorageJobsResponse.job:type_name -> proto.powergate.v1.Job - 76, // 18: proto.powergate.v1.StorageDealRecordsRequest.config:type_name -> proto.powergate.v1.DealRecordsConfig - 78, // 19: proto.powergate.v1.StorageDealRecordsResponse.records:type_name -> proto.powergate.v1.StorageDealRecord - 76, // 20: proto.powergate.v1.RetrievalDealRecordsRequest.config:type_name -> proto.powergate.v1.DealRecordsConfig - 80, // 21: proto.powergate.v1.RetrievalDealRecordsResponse.records:type_name -> proto.powergate.v1.RetrievalDealRecord - 59, // 22: proto.powergate.v1.HotConfig.ipfs:type_name -> proto.powergate.v1.IpfsConfig - 61, // 23: proto.powergate.v1.FilConfig.renew:type_name -> proto.powergate.v1.FilRenew - 62, // 24: proto.powergate.v1.ColdConfig.filecoin:type_name -> proto.powergate.v1.FilConfig - 60, // 25: proto.powergate.v1.StorageConfig.hot:type_name -> proto.powergate.v1.HotConfig - 63, // 26: proto.powergate.v1.StorageConfig.cold:type_name -> proto.powergate.v1.ColdConfig - 65, // 27: proto.powergate.v1.HotInfo.ipfs:type_name -> proto.powergate.v1.IpfsHotInfo - 67, // 28: proto.powergate.v1.FilInfo.proposals:type_name -> proto.powergate.v1.FilStorage - 68, // 29: proto.powergate.v1.ColdInfo.filecoin:type_name -> proto.powergate.v1.FilInfo - 66, // 30: proto.powergate.v1.StorageInfo.hot:type_name -> proto.powergate.v1.HotInfo - 69, // 31: proto.powergate.v1.StorageInfo.cold:type_name -> proto.powergate.v1.ColdInfo - 64, // 32: proto.powergate.v1.CidInfo.latest_pushed_storage_config:type_name -> proto.powergate.v1.StorageConfig - 70, // 33: proto.powergate.v1.CidInfo.current_storage_info:type_name -> proto.powergate.v1.StorageInfo - 73, // 34: proto.powergate.v1.CidInfo.queued_storage_jobs:type_name -> proto.powergate.v1.Job - 73, // 35: proto.powergate.v1.CidInfo.executing_storage_job:type_name -> proto.powergate.v1.Job - 73, // 36: proto.powergate.v1.CidInfo.latest_final_storage_job:type_name -> proto.powergate.v1.Job - 73, // 37: proto.powergate.v1.CidInfo.latest_successful_storage_job:type_name -> proto.powergate.v1.Job - 0, // 38: proto.powergate.v1.Job.status:type_name -> proto.powergate.v1.JobStatus - 72, // 39: proto.powergate.v1.Job.deal_info:type_name -> proto.powergate.v1.DealInfo - 74, // 40: proto.powergate.v1.Job.deal_errors:type_name -> proto.powergate.v1.DealError - 77, // 41: proto.powergate.v1.StorageDealRecord.deal_info:type_name -> proto.powergate.v1.StorageDealInfo - 79, // 42: proto.powergate.v1.RetrievalDealRecord.deal_info:type_name -> proto.powergate.v1.RetrievalDealInfo - 1, // 43: proto.powergate.v1.PowergateService.BuildInfo:input_type -> proto.powergate.v1.BuildInfoRequest - 3, // 44: proto.powergate.v1.PowergateService.StorageProfileIdentifier:input_type -> proto.powergate.v1.StorageProfileIdentifierRequest - 5, // 45: proto.powergate.v1.PowergateService.DefaultStorageConfig:input_type -> proto.powergate.v1.DefaultStorageConfigRequest - 7, // 46: proto.powergate.v1.PowergateService.SetDefaultStorageConfig:input_type -> proto.powergate.v1.SetDefaultStorageConfigRequest - 11, // 47: proto.powergate.v1.PowergateService.ApplyStorageConfig:input_type -> proto.powergate.v1.ApplyStorageConfigRequest - 17, // 48: proto.powergate.v1.PowergateService.Remove:input_type -> proto.powergate.v1.RemoveRequest - 9, // 49: proto.powergate.v1.PowergateService.Stage:input_type -> proto.powergate.v1.StageRequest - 13, // 50: proto.powergate.v1.PowergateService.ReplaceData:input_type -> proto.powergate.v1.ReplaceDataRequest - 15, // 51: proto.powergate.v1.PowergateService.Get:input_type -> proto.powergate.v1.GetRequest - 19, // 52: proto.powergate.v1.PowergateService.WatchLogs:input_type -> proto.powergate.v1.WatchLogsRequest - 21, // 53: proto.powergate.v1.PowergateService.CidInfo:input_type -> proto.powergate.v1.CidInfoRequest - 23, // 54: proto.powergate.v1.PowergateService.Balance:input_type -> proto.powergate.v1.BalanceRequest - 25, // 55: proto.powergate.v1.PowergateService.NewAddress:input_type -> proto.powergate.v1.NewAddressRequest - 27, // 56: proto.powergate.v1.PowergateService.Addresses:input_type -> proto.powergate.v1.AddressesRequest - 29, // 57: proto.powergate.v1.PowergateService.SendFil:input_type -> proto.powergate.v1.SendFilRequest - 31, // 58: proto.powergate.v1.PowergateService.SignMessage:input_type -> proto.powergate.v1.SignMessageRequest - 33, // 59: proto.powergate.v1.PowergateService.VerifyMessage:input_type -> proto.powergate.v1.VerifyMessageRequest - 37, // 60: proto.powergate.v1.PowergateService.StorageJob:input_type -> proto.powergate.v1.StorageJobRequest - 39, // 61: proto.powergate.v1.PowergateService.StorageConfigForJob:input_type -> proto.powergate.v1.StorageConfigForJobRequest - 41, // 62: proto.powergate.v1.PowergateService.QueuedStorageJobs:input_type -> proto.powergate.v1.QueuedStorageJobsRequest - 43, // 63: proto.powergate.v1.PowergateService.ExecutingStorageJobs:input_type -> proto.powergate.v1.ExecutingStorageJobsRequest - 45, // 64: proto.powergate.v1.PowergateService.LatestFinalStorageJobs:input_type -> proto.powergate.v1.LatestFinalStorageJobsRequest - 47, // 65: proto.powergate.v1.PowergateService.LatestSuccessfulStorageJobs:input_type -> proto.powergate.v1.LatestSuccessfulStorageJobsRequest - 49, // 66: proto.powergate.v1.PowergateService.StorageJobsSummary:input_type -> proto.powergate.v1.StorageJobsSummaryRequest - 51, // 67: proto.powergate.v1.PowergateService.WatchStorageJobs:input_type -> proto.powergate.v1.WatchStorageJobsRequest - 35, // 68: proto.powergate.v1.PowergateService.CancelStorageJob:input_type -> proto.powergate.v1.CancelStorageJobRequest - 53, // 69: proto.powergate.v1.PowergateService.StorageDealRecords:input_type -> proto.powergate.v1.StorageDealRecordsRequest - 55, // 70: proto.powergate.v1.PowergateService.RetrievalDealRecords:input_type -> proto.powergate.v1.RetrievalDealRecordsRequest - 2, // 71: proto.powergate.v1.PowergateService.BuildInfo:output_type -> proto.powergate.v1.BuildInfoResponse - 4, // 72: proto.powergate.v1.PowergateService.StorageProfileIdentifier:output_type -> proto.powergate.v1.StorageProfileIdentifierResponse - 6, // 73: proto.powergate.v1.PowergateService.DefaultStorageConfig:output_type -> proto.powergate.v1.DefaultStorageConfigResponse - 8, // 74: proto.powergate.v1.PowergateService.SetDefaultStorageConfig:output_type -> proto.powergate.v1.SetDefaultStorageConfigResponse - 12, // 75: proto.powergate.v1.PowergateService.ApplyStorageConfig:output_type -> proto.powergate.v1.ApplyStorageConfigResponse - 18, // 76: proto.powergate.v1.PowergateService.Remove:output_type -> proto.powergate.v1.RemoveResponse - 10, // 77: proto.powergate.v1.PowergateService.Stage:output_type -> proto.powergate.v1.StageResponse - 14, // 78: proto.powergate.v1.PowergateService.ReplaceData:output_type -> proto.powergate.v1.ReplaceDataResponse - 16, // 79: proto.powergate.v1.PowergateService.Get:output_type -> proto.powergate.v1.GetResponse - 20, // 80: proto.powergate.v1.PowergateService.WatchLogs:output_type -> proto.powergate.v1.WatchLogsResponse - 22, // 81: proto.powergate.v1.PowergateService.CidInfo:output_type -> proto.powergate.v1.CidInfoResponse - 24, // 82: proto.powergate.v1.PowergateService.Balance:output_type -> proto.powergate.v1.BalanceResponse - 26, // 83: proto.powergate.v1.PowergateService.NewAddress:output_type -> proto.powergate.v1.NewAddressResponse - 28, // 84: proto.powergate.v1.PowergateService.Addresses:output_type -> proto.powergate.v1.AddressesResponse - 30, // 85: proto.powergate.v1.PowergateService.SendFil:output_type -> proto.powergate.v1.SendFilResponse - 32, // 86: proto.powergate.v1.PowergateService.SignMessage:output_type -> proto.powergate.v1.SignMessageResponse - 34, // 87: proto.powergate.v1.PowergateService.VerifyMessage:output_type -> proto.powergate.v1.VerifyMessageResponse - 38, // 88: proto.powergate.v1.PowergateService.StorageJob:output_type -> proto.powergate.v1.StorageJobResponse - 40, // 89: proto.powergate.v1.PowergateService.StorageConfigForJob:output_type -> proto.powergate.v1.StorageConfigForJobResponse - 42, // 90: proto.powergate.v1.PowergateService.QueuedStorageJobs:output_type -> proto.powergate.v1.QueuedStorageJobsResponse - 44, // 91: proto.powergate.v1.PowergateService.ExecutingStorageJobs:output_type -> proto.powergate.v1.ExecutingStorageJobsResponse - 46, // 92: proto.powergate.v1.PowergateService.LatestFinalStorageJobs:output_type -> proto.powergate.v1.LatestFinalStorageJobsResponse - 48, // 93: proto.powergate.v1.PowergateService.LatestSuccessfulStorageJobs:output_type -> proto.powergate.v1.LatestSuccessfulStorageJobsResponse - 50, // 94: proto.powergate.v1.PowergateService.StorageJobsSummary:output_type -> proto.powergate.v1.StorageJobsSummaryResponse - 52, // 95: proto.powergate.v1.PowergateService.WatchStorageJobs:output_type -> proto.powergate.v1.WatchStorageJobsResponse - 36, // 96: proto.powergate.v1.PowergateService.CancelStorageJob:output_type -> proto.powergate.v1.CancelStorageJobResponse - 54, // 97: proto.powergate.v1.PowergateService.StorageDealRecords:output_type -> proto.powergate.v1.StorageDealRecordsResponse - 56, // 98: proto.powergate.v1.PowergateService.RetrievalDealRecords:output_type -> proto.powergate.v1.RetrievalDealRecordsResponse - 71, // [71:99] is the sub-list for method output_type - 43, // [43:71] is the sub-list for method input_type - 43, // [43:43] is the sub-list for extension type_name - 43, // [43:43] is the sub-list for extension extendee - 0, // [0:43] is the sub-list for field type_name -} - -func init() { file_proto_powergate_v1_powergate_proto_init() } -func file_proto_powergate_v1_powergate_proto_init() { - if File_proto_powergate_v1_powergate_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_proto_powergate_v1_powergate_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildInfoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildInfoResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageProfileIdentifierRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageProfileIdentifierResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultStorageConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultStorageConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetDefaultStorageConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetDefaultStorageConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StageRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StageResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyStorageConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyStorageConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReplaceDataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReplaceDataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WatchLogsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WatchLogsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CidInfoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CidInfoResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BalanceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BalanceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewAddressRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewAddressResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddressesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddressesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendFilRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendFilResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignMessageRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignMessageResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyMessageRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyMessageResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelStorageJobRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelStorageJobResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageJobRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageJobResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageConfigForJobRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageConfigForJobResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueuedStorageJobsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueuedStorageJobsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutingStorageJobsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutingStorageJobsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestFinalStorageJobsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestFinalStorageJobsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestSuccessfulStorageJobsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestSuccessfulStorageJobsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageJobsSummaryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageJobsSummaryResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WatchStorageJobsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WatchStorageJobsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageDealRecordsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageDealRecordsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RetrievalDealRecordsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RetrievalDealRecordsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*JobCounts); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddrInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IpfsConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HotConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilRenew); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ColdConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IpfsHotInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HotInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilStorage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ColdInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CidInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DealInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Job); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DealError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LogEntry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DealRecordsConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageDealInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageDealRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RetrievalDealInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_powergate_v1_powergate_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RetrievalDealRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_proto_powergate_v1_powergate_proto_rawDesc, - NumEnums: 1, - NumMessages: 80, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_proto_powergate_v1_powergate_proto_goTypes, - DependencyIndexes: file_proto_powergate_v1_powergate_proto_depIdxs, - EnumInfos: file_proto_powergate_v1_powergate_proto_enumTypes, - MessageInfos: file_proto_powergate_v1_powergate_proto_msgTypes, - }.Build() - File_proto_powergate_v1_powergate_proto = out.File - file_proto_powergate_v1_powergate_proto_rawDesc = nil - file_proto_powergate_v1_powergate_proto_goTypes = nil - file_proto_powergate_v1_powergate_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// PowergateServiceClient is the client API for PowergateService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type PowergateServiceClient interface { - // Top level - BuildInfo(ctx context.Context, in *BuildInfoRequest, opts ...grpc.CallOption) (*BuildInfoResponse, error) - StorageProfileIdentifier(ctx context.Context, in *StorageProfileIdentifierRequest, opts ...grpc.CallOption) (*StorageProfileIdentifierResponse, error) - // Storage config - DefaultStorageConfig(ctx context.Context, in *DefaultStorageConfigRequest, opts ...grpc.CallOption) (*DefaultStorageConfigResponse, error) - SetDefaultStorageConfig(ctx context.Context, in *SetDefaultStorageConfigRequest, opts ...grpc.CallOption) (*SetDefaultStorageConfigResponse, error) - ApplyStorageConfig(ctx context.Context, in *ApplyStorageConfigRequest, opts ...grpc.CallOption) (*ApplyStorageConfigResponse, error) - Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) - // Data - Stage(ctx context.Context, opts ...grpc.CallOption) (PowergateService_StageClient, error) - ReplaceData(ctx context.Context, in *ReplaceDataRequest, opts ...grpc.CallOption) (*ReplaceDataResponse, error) - Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (PowergateService_GetClient, error) - WatchLogs(ctx context.Context, in *WatchLogsRequest, opts ...grpc.CallOption) (PowergateService_WatchLogsClient, error) - CidInfo(ctx context.Context, in *CidInfoRequest, opts ...grpc.CallOption) (*CidInfoResponse, error) - // Wallet - Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error) - NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) - Addresses(ctx context.Context, in *AddressesRequest, opts ...grpc.CallOption) (*AddressesResponse, error) - SendFil(ctx context.Context, in *SendFilRequest, opts ...grpc.CallOption) (*SendFilResponse, error) - SignMessage(ctx context.Context, in *SignMessageRequest, opts ...grpc.CallOption) (*SignMessageResponse, error) - VerifyMessage(ctx context.Context, in *VerifyMessageRequest, opts ...grpc.CallOption) (*VerifyMessageResponse, error) - // Storage Jobs - StorageJob(ctx context.Context, in *StorageJobRequest, opts ...grpc.CallOption) (*StorageJobResponse, error) - StorageConfigForJob(ctx context.Context, in *StorageConfigForJobRequest, opts ...grpc.CallOption) (*StorageConfigForJobResponse, error) - QueuedStorageJobs(ctx context.Context, in *QueuedStorageJobsRequest, opts ...grpc.CallOption) (*QueuedStorageJobsResponse, error) - ExecutingStorageJobs(ctx context.Context, in *ExecutingStorageJobsRequest, opts ...grpc.CallOption) (*ExecutingStorageJobsResponse, error) - LatestFinalStorageJobs(ctx context.Context, in *LatestFinalStorageJobsRequest, opts ...grpc.CallOption) (*LatestFinalStorageJobsResponse, error) - LatestSuccessfulStorageJobs(ctx context.Context, in *LatestSuccessfulStorageJobsRequest, opts ...grpc.CallOption) (*LatestSuccessfulStorageJobsResponse, error) - StorageJobsSummary(ctx context.Context, in *StorageJobsSummaryRequest, opts ...grpc.CallOption) (*StorageJobsSummaryResponse, error) - WatchStorageJobs(ctx context.Context, in *WatchStorageJobsRequest, opts ...grpc.CallOption) (PowergateService_WatchStorageJobsClient, error) - CancelStorageJob(ctx context.Context, in *CancelStorageJobRequest, opts ...grpc.CallOption) (*CancelStorageJobResponse, error) - // Deals - StorageDealRecords(ctx context.Context, in *StorageDealRecordsRequest, opts ...grpc.CallOption) (*StorageDealRecordsResponse, error) - RetrievalDealRecords(ctx context.Context, in *RetrievalDealRecordsRequest, opts ...grpc.CallOption) (*RetrievalDealRecordsResponse, error) -} - -type powergateServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewPowergateServiceClient(cc grpc.ClientConnInterface) PowergateServiceClient { - return &powergateServiceClient{cc} -} - -func (c *powergateServiceClient) BuildInfo(ctx context.Context, in *BuildInfoRequest, opts ...grpc.CallOption) (*BuildInfoResponse, error) { - out := new(BuildInfoResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/BuildInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) StorageProfileIdentifier(ctx context.Context, in *StorageProfileIdentifierRequest, opts ...grpc.CallOption) (*StorageProfileIdentifierResponse, error) { - out := new(StorageProfileIdentifierResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/StorageProfileIdentifier", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) DefaultStorageConfig(ctx context.Context, in *DefaultStorageConfigRequest, opts ...grpc.CallOption) (*DefaultStorageConfigResponse, error) { - out := new(DefaultStorageConfigResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/DefaultStorageConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) SetDefaultStorageConfig(ctx context.Context, in *SetDefaultStorageConfigRequest, opts ...grpc.CallOption) (*SetDefaultStorageConfigResponse, error) { - out := new(SetDefaultStorageConfigResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/SetDefaultStorageConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) ApplyStorageConfig(ctx context.Context, in *ApplyStorageConfigRequest, opts ...grpc.CallOption) (*ApplyStorageConfigResponse, error) { - out := new(ApplyStorageConfigResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/ApplyStorageConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) { - out := new(RemoveResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/Remove", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) Stage(ctx context.Context, opts ...grpc.CallOption) (PowergateService_StageClient, error) { - stream, err := c.cc.NewStream(ctx, &_PowergateService_serviceDesc.Streams[0], "/proto.powergate.v1.PowergateService/Stage", opts...) - if err != nil { - return nil, err - } - x := &powergateServiceStageClient{stream} - return x, nil -} - -type PowergateService_StageClient interface { - Send(*StageRequest) error - CloseAndRecv() (*StageResponse, error) - grpc.ClientStream -} - -type powergateServiceStageClient struct { - grpc.ClientStream -} - -func (x *powergateServiceStageClient) Send(m *StageRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *powergateServiceStageClient) CloseAndRecv() (*StageResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(StageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *powergateServiceClient) ReplaceData(ctx context.Context, in *ReplaceDataRequest, opts ...grpc.CallOption) (*ReplaceDataResponse, error) { - out := new(ReplaceDataResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/ReplaceData", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (PowergateService_GetClient, error) { - stream, err := c.cc.NewStream(ctx, &_PowergateService_serviceDesc.Streams[1], "/proto.powergate.v1.PowergateService/Get", opts...) - if err != nil { - return nil, err - } - x := &powergateServiceGetClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type PowergateService_GetClient interface { - Recv() (*GetResponse, error) - grpc.ClientStream -} - -type powergateServiceGetClient struct { - grpc.ClientStream -} - -func (x *powergateServiceGetClient) Recv() (*GetResponse, error) { - m := new(GetResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *powergateServiceClient) WatchLogs(ctx context.Context, in *WatchLogsRequest, opts ...grpc.CallOption) (PowergateService_WatchLogsClient, error) { - stream, err := c.cc.NewStream(ctx, &_PowergateService_serviceDesc.Streams[2], "/proto.powergate.v1.PowergateService/WatchLogs", opts...) - if err != nil { - return nil, err - } - x := &powergateServiceWatchLogsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type PowergateService_WatchLogsClient interface { - Recv() (*WatchLogsResponse, error) - grpc.ClientStream -} - -type powergateServiceWatchLogsClient struct { - grpc.ClientStream -} - -func (x *powergateServiceWatchLogsClient) Recv() (*WatchLogsResponse, error) { - m := new(WatchLogsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *powergateServiceClient) CidInfo(ctx context.Context, in *CidInfoRequest, opts ...grpc.CallOption) (*CidInfoResponse, error) { - out := new(CidInfoResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/CidInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error) { - out := new(BalanceResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/Balance", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) { - out := new(NewAddressResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/NewAddress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) Addresses(ctx context.Context, in *AddressesRequest, opts ...grpc.CallOption) (*AddressesResponse, error) { - out := new(AddressesResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/Addresses", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) SendFil(ctx context.Context, in *SendFilRequest, opts ...grpc.CallOption) (*SendFilResponse, error) { - out := new(SendFilResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/SendFil", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) SignMessage(ctx context.Context, in *SignMessageRequest, opts ...grpc.CallOption) (*SignMessageResponse, error) { - out := new(SignMessageResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/SignMessage", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) VerifyMessage(ctx context.Context, in *VerifyMessageRequest, opts ...grpc.CallOption) (*VerifyMessageResponse, error) { - out := new(VerifyMessageResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/VerifyMessage", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) StorageJob(ctx context.Context, in *StorageJobRequest, opts ...grpc.CallOption) (*StorageJobResponse, error) { - out := new(StorageJobResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/StorageJob", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) StorageConfigForJob(ctx context.Context, in *StorageConfigForJobRequest, opts ...grpc.CallOption) (*StorageConfigForJobResponse, error) { - out := new(StorageConfigForJobResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/StorageConfigForJob", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) QueuedStorageJobs(ctx context.Context, in *QueuedStorageJobsRequest, opts ...grpc.CallOption) (*QueuedStorageJobsResponse, error) { - out := new(QueuedStorageJobsResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/QueuedStorageJobs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) ExecutingStorageJobs(ctx context.Context, in *ExecutingStorageJobsRequest, opts ...grpc.CallOption) (*ExecutingStorageJobsResponse, error) { - out := new(ExecutingStorageJobsResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/ExecutingStorageJobs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) LatestFinalStorageJobs(ctx context.Context, in *LatestFinalStorageJobsRequest, opts ...grpc.CallOption) (*LatestFinalStorageJobsResponse, error) { - out := new(LatestFinalStorageJobsResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/LatestFinalStorageJobs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) LatestSuccessfulStorageJobs(ctx context.Context, in *LatestSuccessfulStorageJobsRequest, opts ...grpc.CallOption) (*LatestSuccessfulStorageJobsResponse, error) { - out := new(LatestSuccessfulStorageJobsResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/LatestSuccessfulStorageJobs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) StorageJobsSummary(ctx context.Context, in *StorageJobsSummaryRequest, opts ...grpc.CallOption) (*StorageJobsSummaryResponse, error) { - out := new(StorageJobsSummaryResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/StorageJobsSummary", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) WatchStorageJobs(ctx context.Context, in *WatchStorageJobsRequest, opts ...grpc.CallOption) (PowergateService_WatchStorageJobsClient, error) { - stream, err := c.cc.NewStream(ctx, &_PowergateService_serviceDesc.Streams[3], "/proto.powergate.v1.PowergateService/WatchStorageJobs", opts...) - if err != nil { - return nil, err - } - x := &powergateServiceWatchStorageJobsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type PowergateService_WatchStorageJobsClient interface { - Recv() (*WatchStorageJobsResponse, error) - grpc.ClientStream -} - -type powergateServiceWatchStorageJobsClient struct { - grpc.ClientStream -} - -func (x *powergateServiceWatchStorageJobsClient) Recv() (*WatchStorageJobsResponse, error) { - m := new(WatchStorageJobsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *powergateServiceClient) CancelStorageJob(ctx context.Context, in *CancelStorageJobRequest, opts ...grpc.CallOption) (*CancelStorageJobResponse, error) { - out := new(CancelStorageJobResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/CancelStorageJob", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) StorageDealRecords(ctx context.Context, in *StorageDealRecordsRequest, opts ...grpc.CallOption) (*StorageDealRecordsResponse, error) { - out := new(StorageDealRecordsResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/StorageDealRecords", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *powergateServiceClient) RetrievalDealRecords(ctx context.Context, in *RetrievalDealRecordsRequest, opts ...grpc.CallOption) (*RetrievalDealRecordsResponse, error) { - out := new(RetrievalDealRecordsResponse) - err := c.cc.Invoke(ctx, "/proto.powergate.v1.PowergateService/RetrievalDealRecords", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// PowergateServiceServer is the server API for PowergateService service. -type PowergateServiceServer interface { - // Top level - BuildInfo(context.Context, *BuildInfoRequest) (*BuildInfoResponse, error) - StorageProfileIdentifier(context.Context, *StorageProfileIdentifierRequest) (*StorageProfileIdentifierResponse, error) - // Storage config - DefaultStorageConfig(context.Context, *DefaultStorageConfigRequest) (*DefaultStorageConfigResponse, error) - SetDefaultStorageConfig(context.Context, *SetDefaultStorageConfigRequest) (*SetDefaultStorageConfigResponse, error) - ApplyStorageConfig(context.Context, *ApplyStorageConfigRequest) (*ApplyStorageConfigResponse, error) - Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) - // Data - Stage(PowergateService_StageServer) error - ReplaceData(context.Context, *ReplaceDataRequest) (*ReplaceDataResponse, error) - Get(*GetRequest, PowergateService_GetServer) error - WatchLogs(*WatchLogsRequest, PowergateService_WatchLogsServer) error - CidInfo(context.Context, *CidInfoRequest) (*CidInfoResponse, error) - // Wallet - Balance(context.Context, *BalanceRequest) (*BalanceResponse, error) - NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error) - Addresses(context.Context, *AddressesRequest) (*AddressesResponse, error) - SendFil(context.Context, *SendFilRequest) (*SendFilResponse, error) - SignMessage(context.Context, *SignMessageRequest) (*SignMessageResponse, error) - VerifyMessage(context.Context, *VerifyMessageRequest) (*VerifyMessageResponse, error) - // Storage Jobs - StorageJob(context.Context, *StorageJobRequest) (*StorageJobResponse, error) - StorageConfigForJob(context.Context, *StorageConfigForJobRequest) (*StorageConfigForJobResponse, error) - QueuedStorageJobs(context.Context, *QueuedStorageJobsRequest) (*QueuedStorageJobsResponse, error) - ExecutingStorageJobs(context.Context, *ExecutingStorageJobsRequest) (*ExecutingStorageJobsResponse, error) - LatestFinalStorageJobs(context.Context, *LatestFinalStorageJobsRequest) (*LatestFinalStorageJobsResponse, error) - LatestSuccessfulStorageJobs(context.Context, *LatestSuccessfulStorageJobsRequest) (*LatestSuccessfulStorageJobsResponse, error) - StorageJobsSummary(context.Context, *StorageJobsSummaryRequest) (*StorageJobsSummaryResponse, error) - WatchStorageJobs(*WatchStorageJobsRequest, PowergateService_WatchStorageJobsServer) error - CancelStorageJob(context.Context, *CancelStorageJobRequest) (*CancelStorageJobResponse, error) - // Deals - StorageDealRecords(context.Context, *StorageDealRecordsRequest) (*StorageDealRecordsResponse, error) - RetrievalDealRecords(context.Context, *RetrievalDealRecordsRequest) (*RetrievalDealRecordsResponse, error) -} - -// UnimplementedPowergateServiceServer can be embedded to have forward compatible implementations. -type UnimplementedPowergateServiceServer struct { -} - -func (*UnimplementedPowergateServiceServer) BuildInfo(context.Context, *BuildInfoRequest) (*BuildInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BuildInfo not implemented") -} -func (*UnimplementedPowergateServiceServer) StorageProfileIdentifier(context.Context, *StorageProfileIdentifierRequest) (*StorageProfileIdentifierResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StorageProfileIdentifier not implemented") -} -func (*UnimplementedPowergateServiceServer) DefaultStorageConfig(context.Context, *DefaultStorageConfigRequest) (*DefaultStorageConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DefaultStorageConfig not implemented") -} -func (*UnimplementedPowergateServiceServer) SetDefaultStorageConfig(context.Context, *SetDefaultStorageConfigRequest) (*SetDefaultStorageConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetDefaultStorageConfig not implemented") -} -func (*UnimplementedPowergateServiceServer) ApplyStorageConfig(context.Context, *ApplyStorageConfigRequest) (*ApplyStorageConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApplyStorageConfig not implemented") -} -func (*UnimplementedPowergateServiceServer) Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented") -} -func (*UnimplementedPowergateServiceServer) Stage(PowergateService_StageServer) error { - return status.Errorf(codes.Unimplemented, "method Stage not implemented") -} -func (*UnimplementedPowergateServiceServer) ReplaceData(context.Context, *ReplaceDataRequest) (*ReplaceDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReplaceData not implemented") -} -func (*UnimplementedPowergateServiceServer) Get(*GetRequest, PowergateService_GetServer) error { - return status.Errorf(codes.Unimplemented, "method Get not implemented") -} -func (*UnimplementedPowergateServiceServer) WatchLogs(*WatchLogsRequest, PowergateService_WatchLogsServer) error { - return status.Errorf(codes.Unimplemented, "method WatchLogs not implemented") -} -func (*UnimplementedPowergateServiceServer) CidInfo(context.Context, *CidInfoRequest) (*CidInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CidInfo not implemented") -} -func (*UnimplementedPowergateServiceServer) Balance(context.Context, *BalanceRequest) (*BalanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented") -} -func (*UnimplementedPowergateServiceServer) NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NewAddress not implemented") -} -func (*UnimplementedPowergateServiceServer) Addresses(context.Context, *AddressesRequest) (*AddressesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Addresses not implemented") -} -func (*UnimplementedPowergateServiceServer) SendFil(context.Context, *SendFilRequest) (*SendFilResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SendFil not implemented") -} -func (*UnimplementedPowergateServiceServer) SignMessage(context.Context, *SignMessageRequest) (*SignMessageResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SignMessage not implemented") -} -func (*UnimplementedPowergateServiceServer) VerifyMessage(context.Context, *VerifyMessageRequest) (*VerifyMessageResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VerifyMessage not implemented") -} -func (*UnimplementedPowergateServiceServer) StorageJob(context.Context, *StorageJobRequest) (*StorageJobResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StorageJob not implemented") -} -func (*UnimplementedPowergateServiceServer) StorageConfigForJob(context.Context, *StorageConfigForJobRequest) (*StorageConfigForJobResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StorageConfigForJob not implemented") -} -func (*UnimplementedPowergateServiceServer) QueuedStorageJobs(context.Context, *QueuedStorageJobsRequest) (*QueuedStorageJobsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueuedStorageJobs not implemented") -} -func (*UnimplementedPowergateServiceServer) ExecutingStorageJobs(context.Context, *ExecutingStorageJobsRequest) (*ExecutingStorageJobsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ExecutingStorageJobs not implemented") -} -func (*UnimplementedPowergateServiceServer) LatestFinalStorageJobs(context.Context, *LatestFinalStorageJobsRequest) (*LatestFinalStorageJobsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LatestFinalStorageJobs not implemented") -} -func (*UnimplementedPowergateServiceServer) LatestSuccessfulStorageJobs(context.Context, *LatestSuccessfulStorageJobsRequest) (*LatestSuccessfulStorageJobsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LatestSuccessfulStorageJobs not implemented") -} -func (*UnimplementedPowergateServiceServer) StorageJobsSummary(context.Context, *StorageJobsSummaryRequest) (*StorageJobsSummaryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StorageJobsSummary not implemented") -} -func (*UnimplementedPowergateServiceServer) WatchStorageJobs(*WatchStorageJobsRequest, PowergateService_WatchStorageJobsServer) error { - return status.Errorf(codes.Unimplemented, "method WatchStorageJobs not implemented") -} -func (*UnimplementedPowergateServiceServer) CancelStorageJob(context.Context, *CancelStorageJobRequest) (*CancelStorageJobResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelStorageJob not implemented") -} -func (*UnimplementedPowergateServiceServer) StorageDealRecords(context.Context, *StorageDealRecordsRequest) (*StorageDealRecordsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StorageDealRecords not implemented") -} -func (*UnimplementedPowergateServiceServer) RetrievalDealRecords(context.Context, *RetrievalDealRecordsRequest) (*RetrievalDealRecordsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RetrievalDealRecords not implemented") -} - -func RegisterPowergateServiceServer(s *grpc.Server, srv PowergateServiceServer) { - s.RegisterService(&_PowergateService_serviceDesc, srv) -} - -func _PowergateService_BuildInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BuildInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).BuildInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/BuildInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).BuildInfo(ctx, req.(*BuildInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_StorageProfileIdentifier_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StorageProfileIdentifierRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).StorageProfileIdentifier(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/StorageProfileIdentifier", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).StorageProfileIdentifier(ctx, req.(*StorageProfileIdentifierRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_DefaultStorageConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DefaultStorageConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).DefaultStorageConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/DefaultStorageConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).DefaultStorageConfig(ctx, req.(*DefaultStorageConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_SetDefaultStorageConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetDefaultStorageConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).SetDefaultStorageConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/SetDefaultStorageConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).SetDefaultStorageConfig(ctx, req.(*SetDefaultStorageConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_ApplyStorageConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplyStorageConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).ApplyStorageConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/ApplyStorageConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).ApplyStorageConfig(ctx, req.(*ApplyStorageConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).Remove(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/Remove", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).Remove(ctx, req.(*RemoveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_Stage_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(PowergateServiceServer).Stage(&powergateServiceStageServer{stream}) -} - -type PowergateService_StageServer interface { - SendAndClose(*StageResponse) error - Recv() (*StageRequest, error) - grpc.ServerStream -} - -type powergateServiceStageServer struct { - grpc.ServerStream -} - -func (x *powergateServiceStageServer) SendAndClose(m *StageResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *powergateServiceStageServer) Recv() (*StageRequest, error) { - m := new(StageRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _PowergateService_ReplaceData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReplaceDataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).ReplaceData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/ReplaceData", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).ReplaceData(ctx, req.(*ReplaceDataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_Get_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(PowergateServiceServer).Get(m, &powergateServiceGetServer{stream}) -} - -type PowergateService_GetServer interface { - Send(*GetResponse) error - grpc.ServerStream -} - -type powergateServiceGetServer struct { - grpc.ServerStream -} - -func (x *powergateServiceGetServer) Send(m *GetResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _PowergateService_WatchLogs_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WatchLogsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(PowergateServiceServer).WatchLogs(m, &powergateServiceWatchLogsServer{stream}) -} - -type PowergateService_WatchLogsServer interface { - Send(*WatchLogsResponse) error - grpc.ServerStream -} - -type powergateServiceWatchLogsServer struct { - grpc.ServerStream -} - -func (x *powergateServiceWatchLogsServer) Send(m *WatchLogsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _PowergateService_CidInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CidInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).CidInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/CidInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).CidInfo(ctx, req.(*CidInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BalanceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).Balance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/Balance", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).Balance(ctx, req.(*BalanceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_NewAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(NewAddressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).NewAddress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/NewAddress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).NewAddress(ctx, req.(*NewAddressRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_Addresses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddressesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).Addresses(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/Addresses", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).Addresses(ctx, req.(*AddressesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_SendFil_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SendFilRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).SendFil(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/SendFil", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).SendFil(ctx, req.(*SendFilRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_SignMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SignMessageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).SignMessage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/SignMessage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).SignMessage(ctx, req.(*SignMessageRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_VerifyMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VerifyMessageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).VerifyMessage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/VerifyMessage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).VerifyMessage(ctx, req.(*VerifyMessageRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_StorageJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StorageJobRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).StorageJob(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/StorageJob", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).StorageJob(ctx, req.(*StorageJobRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_StorageConfigForJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StorageConfigForJobRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).StorageConfigForJob(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/StorageConfigForJob", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).StorageConfigForJob(ctx, req.(*StorageConfigForJobRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_QueuedStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueuedStorageJobsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).QueuedStorageJobs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/QueuedStorageJobs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).QueuedStorageJobs(ctx, req.(*QueuedStorageJobsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_ExecutingStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExecutingStorageJobsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).ExecutingStorageJobs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/ExecutingStorageJobs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).ExecutingStorageJobs(ctx, req.(*ExecutingStorageJobsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_LatestFinalStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LatestFinalStorageJobsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).LatestFinalStorageJobs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/LatestFinalStorageJobs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).LatestFinalStorageJobs(ctx, req.(*LatestFinalStorageJobsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_LatestSuccessfulStorageJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LatestSuccessfulStorageJobsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).LatestSuccessfulStorageJobs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/LatestSuccessfulStorageJobs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).LatestSuccessfulStorageJobs(ctx, req.(*LatestSuccessfulStorageJobsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_StorageJobsSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StorageJobsSummaryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).StorageJobsSummary(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/StorageJobsSummary", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).StorageJobsSummary(ctx, req.(*StorageJobsSummaryRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_WatchStorageJobs_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WatchStorageJobsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(PowergateServiceServer).WatchStorageJobs(m, &powergateServiceWatchStorageJobsServer{stream}) -} - -type PowergateService_WatchStorageJobsServer interface { - Send(*WatchStorageJobsResponse) error - grpc.ServerStream -} - -type powergateServiceWatchStorageJobsServer struct { - grpc.ServerStream -} - -func (x *powergateServiceWatchStorageJobsServer) Send(m *WatchStorageJobsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _PowergateService_CancelStorageJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CancelStorageJobRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).CancelStorageJob(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/CancelStorageJob", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).CancelStorageJob(ctx, req.(*CancelStorageJobRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_StorageDealRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StorageDealRecordsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).StorageDealRecords(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/StorageDealRecords", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).StorageDealRecords(ctx, req.(*StorageDealRecordsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PowergateService_RetrievalDealRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RetrievalDealRecordsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PowergateServiceServer).RetrievalDealRecords(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/proto.powergate.v1.PowergateService/RetrievalDealRecords", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PowergateServiceServer).RetrievalDealRecords(ctx, req.(*RetrievalDealRecordsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _PowergateService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "proto.powergate.v1.PowergateService", - HandlerType: (*PowergateServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "BuildInfo", - Handler: _PowergateService_BuildInfo_Handler, - }, - { - MethodName: "StorageProfileIdentifier", - Handler: _PowergateService_StorageProfileIdentifier_Handler, - }, - { - MethodName: "DefaultStorageConfig", - Handler: _PowergateService_DefaultStorageConfig_Handler, - }, - { - MethodName: "SetDefaultStorageConfig", - Handler: _PowergateService_SetDefaultStorageConfig_Handler, - }, - { - MethodName: "ApplyStorageConfig", - Handler: _PowergateService_ApplyStorageConfig_Handler, - }, - { - MethodName: "Remove", - Handler: _PowergateService_Remove_Handler, - }, - { - MethodName: "ReplaceData", - Handler: _PowergateService_ReplaceData_Handler, - }, - { - MethodName: "CidInfo", - Handler: _PowergateService_CidInfo_Handler, - }, - { - MethodName: "Balance", - Handler: _PowergateService_Balance_Handler, - }, - { - MethodName: "NewAddress", - Handler: _PowergateService_NewAddress_Handler, - }, - { - MethodName: "Addresses", - Handler: _PowergateService_Addresses_Handler, - }, - { - MethodName: "SendFil", - Handler: _PowergateService_SendFil_Handler, - }, - { - MethodName: "SignMessage", - Handler: _PowergateService_SignMessage_Handler, - }, - { - MethodName: "VerifyMessage", - Handler: _PowergateService_VerifyMessage_Handler, - }, - { - MethodName: "StorageJob", - Handler: _PowergateService_StorageJob_Handler, - }, - { - MethodName: "StorageConfigForJob", - Handler: _PowergateService_StorageConfigForJob_Handler, - }, - { - MethodName: "QueuedStorageJobs", - Handler: _PowergateService_QueuedStorageJobs_Handler, - }, - { - MethodName: "ExecutingStorageJobs", - Handler: _PowergateService_ExecutingStorageJobs_Handler, - }, - { - MethodName: "LatestFinalStorageJobs", - Handler: _PowergateService_LatestFinalStorageJobs_Handler, - }, - { - MethodName: "LatestSuccessfulStorageJobs", - Handler: _PowergateService_LatestSuccessfulStorageJobs_Handler, - }, - { - MethodName: "StorageJobsSummary", - Handler: _PowergateService_StorageJobsSummary_Handler, - }, - { - MethodName: "CancelStorageJob", - Handler: _PowergateService_CancelStorageJob_Handler, - }, - { - MethodName: "StorageDealRecords", - Handler: _PowergateService_StorageDealRecords_Handler, - }, - { - MethodName: "RetrievalDealRecords", - Handler: _PowergateService_RetrievalDealRecords_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Stage", - Handler: _PowergateService_Stage_Handler, - ClientStreams: true, - }, - { - StreamName: "Get", - Handler: _PowergateService_Get_Handler, - ServerStreams: true, - }, - { - StreamName: "WatchLogs", - Handler: _PowergateService_WatchLogs_Handler, - ServerStreams: true, - }, - { - StreamName: "WatchStorageJobs", - Handler: _PowergateService_WatchStorageJobs_Handler, - ServerStreams: true, - }, - }, - Metadata: "proto/powergate/v1/powergate.proto", -} diff --git a/scripts/protoc_gen_plugin.bash b/scripts/protoc_gen_plugin.bash deleted file mode 100755 index 345cf4a5b..000000000 --- a/scripts/protoc_gen_plugin.bash +++ /dev/null @@ -1,90 +0,0 @@ -#!/usr/bin/env bash - -# From https://github.com/bufbuild/buf/blob/master/make/go/scripts/protoc_gen_plugin.bash - -set -eo pipefail - -fail() { - echo "$@" >&2 - exit 1 -} - -usage() { - echo "usage: ${0} \ - --proto_path=path/to/one \ - --proto_path=path/to/two \ - --proto_include_path=path/to/one \ - --proto_include_path=path/to/two \ - --plugin_name=go \ - --plugin_out=gen/proto/go \ - --plugin_opt=plugins=grpc" -} - -check_flag_value_set() { - if [ -z "${1}" ]; then - usage - exit 1 - fi -} - -PROTO_PATHS=() -PROTO_INCLUDE_PATHS=() -PLUGIN_NAME= -PLUGIN_OUT= -PLUGIN_OPT= -while test $# -gt 0; do - case "${1}" in - -h|--help) - usage - exit 0 - ;; - --proto_path*) - PROTO_PATHS+=("$(echo ${1} | sed -e 's/^[^=]*=//g')") - shift - ;; - --proto_include_path*) - PROTO_INCLUDE_PATHS+=("$(echo ${1} | sed -e 's/^[^=]*=//g')") - shift - ;; - --plugin_name*) - PLUGIN_NAME="$(echo ${1} | sed -e 's/^[^=]*=//g')" - shift - ;; - --plugin_out*) - PLUGIN_OUT="$(echo ${1} | sed -e 's/^[^=]*=//g')" - shift - ;; - --plugin_opt*) - PLUGIN_OPT="$(echo ${1} | sed -e 's/^[^=]*=//g')" - shift - ;; - *) - usage - exit 1 - ;; - esac -done - -check_flag_value_set "${PROTO_PATHS[@]}" -check_flag_value_set "${PLUGIN_NAME}" -check_flag_value_set "${PLUGIN_OUT}" - -PROTOC_FLAGS=() -for proto_path in "${PROTO_PATHS[@]}"; do - PROTOC_FLAGS+=("--proto_path=${proto_path}") -done -for proto_path in "${PROTO_INCLUDE_PATHS[@]}"; do - PROTOC_FLAGS+=("--proto_path=${proto_path}") -done -PROTOC_FLAGS+=("--${PLUGIN_NAME}_out=${PLUGIN_OUT}") -if [ -n "${PLUGIN_OPT}" ]; then - PROTOC_FLAGS+=("--${PLUGIN_NAME}_opt=${PLUGIN_OPT}") -fi - -mkdir -p "${PLUGIN_OUT}" -for proto_path in "${PROTO_PATHS[@]}"; do - for dir in $(find "${proto_path}" -type f ! -path './buildtools/*' -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq); do - echo protoc "${PROTOC_FLAGS[@]}" $(find "${dir}" -name '*.proto') - ./buildtools/protoc/bin/protoc "${PROTOC_FLAGS[@]}" $(find "${dir}" -name '*.proto') - done -done