From e877a8dc8a8fa158958c56637716212c8084eb4a Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Fri, 25 Oct 2024 13:56:01 +0200 Subject: [PATCH 1/2] Migrate proto generation to `buf` - Migrate proto generation to `buf` - Update linter configuration - Fix linting issues --- .golangci.yaml => .golangci.yml | 25 +- .reuse/dep5 | 7 +- Makefile | 20 +- .../bucketbroker/server/bucketclass_list.go | 10 +- broker/bucketbroker/server/server.go | 1 + .../cmd/machinebroker/app/app.go | 2 +- broker/machinebroker/server/machine_create.go | 10 +- .../server/machine_volume_attach.go | 2 +- broker/machinebroker/server/server.go | 2 + broker/machinebroker/server/status.go | 10 +- broker/volumebroker/server/server.go | 2 + broker/volumebroker/server/status.go | 10 +- broker/volumebroker/server/volume_create.go | 2 +- broker/volumebroker/server/volume_expand.go | 2 +- buf.gen.yaml | 13 + buf.yaml | 9 + go.mod | 6 +- go.sum | 6 +- hack/update-proto.sh | 47 - internal/apis/compute/validation/machine.go | 4 +- .../controllers/compute/machine_scheduler.go | 12 +- .../prefixallocationscheduler_controller.go | 4 +- .../controllers/storage/volume_scheduler.go | 12 +- iri/apis/bucket/v1alpha1/api.pb.go | 5130 ++---- iri/apis/bucket/v1alpha1/api.proto | 13 +- iri/apis/bucket/v1alpha1/api_grpc.pb.go | 274 + iri/apis/event/v1alpha1/api.pb.go | 847 +- iri/apis/event/v1alpha1/api.proto | 11 +- iri/apis/machine/v1alpha1/api.pb.go | 12917 +++------------- iri/apis/machine/v1alpha1/api.proto | 13 +- iri/apis/machine/v1alpha1/api_grpc.pb.go | 578 + iri/apis/meta/v1alpha1/api.pb.go | 909 +- iri/apis/meta/v1alpha1/api.proto | 10 - iri/apis/meta/v1alpha1/interfaces.go | 7 +- iri/apis/volume/v1alpha1/api.pb.go | 6830 ++------ iri/apis/volume/v1alpha1/api.proto | 13 +- iri/apis/volume/v1alpha1/api_grpc.pb.go | 312 + iri/testing/bucket/fake.go | 6 +- iri/testing/machine/fake.go | 6 +- iri/testing/volume/fake.go | 6 +- irictl-machine/tableconverters/status.go | 2 +- poollet/bucketpoollet/bcm/generic.go | 3 +- .../controllers/bucket_controller.go | 9 +- .../controllers/bucketpool_controller.go | 11 +- poollet/irievent/generator.go | 3 +- .../controllers/machine_controller.go | 9 +- .../machine_controller_networkinterface.go | 2 +- .../controllers/machine_controller_test.go | 34 +- .../controllers/machine_controller_volume.go | 2 +- .../controllers/machinepool_controller.go | 9 +- .../machinepool_controller_test.go | 3 +- poollet/machinepoollet/mcm/generic.go | 5 +- .../controllers/volume_controller.go | 22 +- .../controllers/volumepool_controller.go | 9 +- poollet/volumepoollet/vcm/generic.go | 5 +- poollet/volumepoollet/vem/vem_test.go | 1 - utils/client/readercache.go | 16 +- utils/envtest/internal/testing/addr/addr.go | 4 +- 58 files changed, 5905 insertions(+), 22344 deletions(-) rename .golangci.yaml => .golangci.yml (68%) create mode 100644 buf.gen.yaml create mode 100644 buf.yaml delete mode 100755 hack/update-proto.sh create mode 100644 iri/apis/bucket/v1alpha1/api_grpc.pb.go create mode 100644 iri/apis/machine/v1alpha1/api_grpc.pb.go create mode 100644 iri/apis/volume/v1alpha1/api_grpc.pb.go diff --git a/.golangci.yaml b/.golangci.yml similarity index 68% rename from .golangci.yaml rename to .golangci.yml index 3e4166d1c..59c483f3a 100644 --- a/.golangci.yaml +++ b/.golangci.yml @@ -1,15 +1,25 @@ run: - concurrency: 4 timeout: 10m + allow-parallel-runners: true linters: + disable-all: true enable: - - revive - - ginkgolinter + - copyloopvar + - errcheck + - goconst + - gofmt + - goimports + - gosimple + - govet - ineffassign + - ginkgolinter - misspell - - goimports - - importas + - nakedret + - staticcheck + - typecheck + - unconvert + - unparam - unused severity: @@ -38,5 +48,10 @@ linters-settings: alias: ${1}client issues: + # don't skip warning about doc comments + # don't exclude the default set of lint + exclude-use-default: false + # restore some of the defaults + # (fill in the rest as needed) exclude: # Exclude stutter issues (for now) - "exported: type name will be used as (.+) by other packages, and that stutters; consider calling this (.+)" diff --git a/.reuse/dep5 b/.reuse/dep5 index 0ae3a70b1..1d473af3e 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -9,7 +9,9 @@ Source: https://github.com/ironcore-dev/ironcore Files: .github/* .gitignore - .golangci.yaml + .golangci.yml + buf.gen.yaml + buf.yaml CODEOWNERS Dockerfile Makefile @@ -20,6 +22,9 @@ Files: go.mod go.sum hack/* + iri/apis/bucket/v1alpha1/api_grpc.pb.go + iri/apis/machine/v1alpha1/api_grpc.pb.go + iri/apis/volume/v1alpha1/api_grpc.pb.go iri/apis/bucket/v1alpha1/api.pb.go iri/apis/bucket/v1alpha1/api.proto iri/apis/event/v1alpha1/api.pb.go diff --git a/Makefile b/Makefile index 8949544cd..97584ff63 100644 --- a/Makefile +++ b/Makefile @@ -89,10 +89,8 @@ generate: vgopath models-schema openapi-gen ./hack/update-codegen.sh .PHONY: proto -proto: goimports vgopath protoc-gen-gogo - VGOPATH=$(VGOPATH) \ - PROTOC_GEN_GOGO=$(PROTOC_GEN_GOGO) \ - ./hack/update-proto.sh +proto: goimports vgopath buf + $(BUF) generate --template buf.gen.yaml $(GOIMPORTS) -w ./iri .PHONY: fmt @@ -145,7 +143,7 @@ clean-docs: ## Remove all local mkdocs Docker images (cleanup). docker container prune --force --filter "label=project=ironcore_documentation" .PHONY: test -test: manifests generate fmt vet test-only ## Run tests. +test: manifests generate proto fmt vet test-only ## Run tests. .PHONY: test-only test-only: envtest ## Run *only* the tests - no generation, linting etc. @@ -352,7 +350,7 @@ OPENAPI_GEN ?= $(LOCALBIN)/openapi-gen VGOPATH ?= $(LOCALBIN)/vgopath GEN_CRD_API_REFERENCE_DOCS ?= $(LOCALBIN)/gen-crd-api-reference-docs ADDLICENSE ?= $(LOCALBIN)/addlicense -PROTOC_GEN_GOGO ?= $(LOCALBIN)/protoc-gen-gogo +BUF ?= $(LOCALBIN)/buf MODELS_SCHEMA ?= $(LOCALBIN)/models-schema GOIMPORTS ?= $(LOCALBIN)/goimports GOLANGCI_LINT ?= $(LOCALBIN)/golangci-lint @@ -363,10 +361,10 @@ VGOPATH_VERSION ?= v0.1.3 CONTROLLER_TOOLS_VERSION ?= v0.15.0 GEN_CRD_API_REFERENCE_DOCS_VERSION ?= v0.3.0 ADDLICENSE_VERSION ?= v1.1.1 -PROTOC_GEN_GOGO_VERSION ?= v1.3.2 GOIMPORTS_VERSION ?= v0.26.0 GOLANGCI_LINT_VERSION ?= v1.61.0 OPENAPI_EXTRACTOR_VERSION ?= v0.1.4 +BUF_VERSION ?= v1.45.0 KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" .PHONY: kustomize @@ -421,10 +419,10 @@ addlicense: $(ADDLICENSE) ## Download addlicense locally if necessary. $(ADDLICENSE): $(LOCALBIN) test -s $(LOCALBIN)/addlicense || GOBIN=$(LOCALBIN) go install github.com/google/addlicense@$(ADDLICENSE_VERSION) -.PHONY: protoc-gen-gogo -protoc-gen-gogo: $(PROTOC_GEN_GOGO) ## Download protoc-gen-gogo locally if necessary. -$(PROTOC_GEN_GOGO): $(LOCALBIN) - test -s $(LOCALBIN)/protoc-gen-gogo || GOBIN=$(LOCALBIN) go install github.com/gogo/protobuf/protoc-gen-gogo@$(PROTOC_GEN_GOGO_VERSION) +.PHONY: buf +buf: $(BUF) ## Download buf locally if necessary. +$(BUF): $(LOCALBIN) + test -s $(LOCALBIN)/buf || GOBIN=$(LOCALBIN) go install github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION) .PHONY: models-schema models-schema: $(MODELS_SCHEMA) ## Install models-schema locally if necessary. diff --git a/broker/bucketbroker/server/bucketclass_list.go b/broker/bucketbroker/server/bucketclass_list.go index df6e56c15..a2d7617ed 100644 --- a/broker/bucketbroker/server/bucketclass_list.go +++ b/broker/bucketbroker/server/bucketclass_list.go @@ -60,7 +60,7 @@ func (s *Server) filterIronCoreBucketClasses( return filtered } -func (s *Server) convertIronCoreBucketClass(bucketClass *storagev1alpha1.BucketClass) (*iri.BucketClass, error) { +func (s *Server) convertIronCoreBucketClass(bucketClass *storagev1alpha1.BucketClass) *iri.BucketClass { tps := bucketClass.Capabilities.TPS() iops := bucketClass.Capabilities.IOPS() @@ -70,7 +70,7 @@ func (s *Server) convertIronCoreBucketClass(bucketClass *storagev1alpha1.BucketC Tps: tps.Value(), Iops: iops.Value(), }, - }, nil + } } func (s *Server) ListBucketClasses(ctx context.Context, req *iri.ListBucketClassesRequest) (*iri.ListBucketClassesResponse, error) { @@ -99,11 +99,7 @@ func (s *Server) ListBucketClasses(ctx context.Context, req *iri.ListBucketClass availableIronCoreBucketClasses := s.filterIronCoreBucketClasses(availableIronCoreBucketClassNames, ironcoreBucketClassList.Items) bucketClasses := make([]*iri.BucketClass, 0, len(availableIronCoreBucketClasses)) for _, ironcoreBucketClass := range availableIronCoreBucketClasses { - bucketClass, err := s.convertIronCoreBucketClass(&ironcoreBucketClass) - if err != nil { - return nil, fmt.Errorf("error converting ironcore bucket class %s: %w", ironcoreBucketClass.Name, err) - } - + bucketClass := s.convertIronCoreBucketClass(&ironcoreBucketClass) bucketClasses = append(bucketClasses, bucketClass) } diff --git a/broker/bucketbroker/server/server.go b/broker/bucketbroker/server/server.go index b9ce4b99f..a760d8d06 100644 --- a/broker/bucketbroker/server/server.go +++ b/broker/bucketbroker/server/server.go @@ -43,6 +43,7 @@ func init() { type Server struct { client client.Client + iri.UnimplementedBucketRuntimeServer namespace string bucketPoolName string diff --git a/broker/machinebroker/cmd/machinebroker/app/app.go b/broker/machinebroker/cmd/machinebroker/app/app.go index def4a2021..f288a67d3 100644 --- a/broker/machinebroker/cmd/machinebroker/app/app.go +++ b/broker/machinebroker/cmd/machinebroker/app/app.go @@ -133,7 +133,7 @@ func Run(ctx context.Context, opts Options) error { return g.Wait() } -func runServer(ctx context.Context, setupLog, log logr.Logger, srv *server.Server) error { +func runServer(ctx context.Context, setupLog, _ logr.Logger, srv *server.Server) error { setupLog.V(1).Info("Starting server loops") if err := srv.Start(ctx); err != nil { return fmt.Errorf("error starting server loops: %w", err) diff --git a/broker/machinebroker/server/machine_create.go b/broker/machinebroker/server/machine_create.go index 59495895f..9640cc768 100644 --- a/broker/machinebroker/server/machine_create.go +++ b/broker/machinebroker/server/machine_create.go @@ -49,7 +49,7 @@ func (s *Server) prepareIronCoreMachinePower(power iri.Power) (computev1alpha1.P } } -func (s *Server) prepareIronCoreMachineLabels(machine *iri.Machine) (map[string]string, error) { +func (s *Server) prepareIronCoreMachineLabels(machine *iri.Machine) map[string]string { labels := make(map[string]string) for downwardAPILabelName, defaultLabelName := range s.brokerDownwardAPILabels { @@ -62,7 +62,7 @@ func (s *Server) prepareIronCoreMachineLabels(machine *iri.Machine) (map[string] } } - return labels, nil + return labels } func (s *Server) prepareIronCoreMachineAnnotations(machine *iri.Machine) (map[string]string, error) { @@ -113,11 +113,7 @@ func (s *Server) getIronCoreMachineConfig(machine *iri.Machine) (*IronCoreMachin ironcoreVolumeCfgs[i] = ironcoreVolumeCfg } - labels, err := s.prepareIronCoreMachineLabels(machine) - if err != nil { - return nil, fmt.Errorf("error preparing ironcore machine labels: %w", err) - } - + labels := s.prepareIronCoreMachineLabels(machine) annotations, err := s.prepareIronCoreMachineAnnotations(machine) if err != nil { return nil, fmt.Errorf("error preparing ironcore machine annotations: %w", err) diff --git a/broker/machinebroker/server/machine_volume_attach.go b/broker/machinebroker/server/machine_volume_attach.go index 514eda793..94656a8a9 100644 --- a/broker/machinebroker/server/machine_volume_attach.go +++ b/broker/machinebroker/server/machine_volume_attach.go @@ -49,7 +49,7 @@ func (s *Server) getIronCoreVolumeConfig(volume *iri.Volume) (*IronCoreVolumeCon case volume.EmptyDisk != nil: var sizeLimit *resource.Quantity if sizeBytes := volume.EmptyDisk.SizeBytes; sizeBytes > 0 { - sizeLimit = resource.NewQuantity(int64(sizeBytes), resource.DecimalSI) + sizeLimit = resource.NewQuantity(sizeBytes, resource.DecimalSI) } emptyDisk = &IronCoreVolumeEmptyDiskConfig{ SizeLimit: sizeLimit, diff --git a/broker/machinebroker/server/server.go b/broker/machinebroker/server/server.go index 2e00a2468..b0bb233ba 100644 --- a/broker/machinebroker/server/server.go +++ b/broker/machinebroker/server/server.go @@ -41,6 +41,8 @@ type BrokerLabel struct { } type Server struct { + iri.UnimplementedMachineRuntimeServer + baseURL *url.URL brokerDownwardAPILabels map[string]string diff --git a/broker/machinebroker/server/status.go b/broker/machinebroker/server/status.go index 4a7209439..31e43f35d 100644 --- a/broker/machinebroker/server/status.go +++ b/broker/machinebroker/server/status.go @@ -78,7 +78,7 @@ func (s *Server) filterIronCoreMachineClasses( return filtered } -func (s *Server) convertIronCoreMachineClassStatus(machineClass *computev1alpha1.MachineClass, quantity *resource.Quantity) (*iri.MachineClassStatus, error) { +func (s *Server) convertIronCoreMachineClassStatus(machineClass *computev1alpha1.MachineClass, quantity *resource.Quantity) *iri.MachineClassStatus { cpu := machineClass.Capabilities.CPU() memory := machineClass.Capabilities.Memory() @@ -91,7 +91,7 @@ func (s *Server) convertIronCoreMachineClassStatus(machineClass *computev1alpha1 }, }, Quantity: quantity.Value(), - }, nil + } } func (s *Server) Status(ctx context.Context, req *iri.StatusRequest) (*iri.StatusResponse, error) { @@ -129,11 +129,7 @@ func (s *Server) Status(ctx context.Context, req *iri.StatusRequest) (*iri.Statu continue } - machineClass, err := s.convertIronCoreMachineClassStatus(&ironcoreMachineClass, quantity) - if err != nil { - return nil, fmt.Errorf("error converting ironcore machine class %s: %w", ironcoreMachineClass.Name, err) - } - + machineClass := s.convertIronCoreMachineClassStatus(&ironcoreMachineClass, quantity) machineClassStatus = append(machineClassStatus, machineClass) } diff --git a/broker/volumebroker/server/server.go b/broker/volumebroker/server/server.go index acfd94322..40b48e020 100644 --- a/broker/volumebroker/server/server.go +++ b/broker/volumebroker/server/server.go @@ -40,6 +40,8 @@ func init() { } type Server struct { + iri.UnimplementedVolumeRuntimeServer + client client.Client idGen idgen.IDGen diff --git a/broker/volumebroker/server/status.go b/broker/volumebroker/server/status.go index e85425326..721f604ba 100644 --- a/broker/volumebroker/server/status.go +++ b/broker/volumebroker/server/status.go @@ -77,7 +77,7 @@ func (s *Server) filterIronCoreVolumeClasses( return filtered } -func (s *Server) convertIronCoreVolumeClassStatus(volumeClass *storagev1alpha1.VolumeClass, quantity *resource.Quantity) (*iri.VolumeClassStatus, error) { +func (s *Server) convertIronCoreVolumeClassStatus(volumeClass *storagev1alpha1.VolumeClass, quantity *resource.Quantity) *iri.VolumeClassStatus { tps := volumeClass.Capabilities.TPS() iops := volumeClass.Capabilities.IOPS() @@ -90,7 +90,7 @@ func (s *Server) convertIronCoreVolumeClassStatus(volumeClass *storagev1alpha1.V }, }, Quantity: quantity.Value(), - }, nil + } } func (s *Server) Status(ctx context.Context, req *iri.StatusRequest) (*iri.StatusResponse, error) { @@ -128,11 +128,7 @@ func (s *Server) Status(ctx context.Context, req *iri.StatusRequest) (*iri.Statu continue } - volumeClass, err := s.convertIronCoreVolumeClassStatus(&ironcoreVolumeClass, quantity) - if err != nil { - return nil, fmt.Errorf("error converting ironcore volume class %s: %w", ironcoreVolumeClass.Name, err) - } - + volumeClass := s.convertIronCoreVolumeClassStatus(&ironcoreVolumeClass, quantity) volumeClassStatus = append(volumeClassStatus, volumeClass) } diff --git a/broker/volumebroker/server/volume_create.go b/broker/volumebroker/server/volume_create.go index 5411fe2c4..e581cff07 100644 --- a/broker/volumebroker/server/volume_create.go +++ b/broker/volumebroker/server/volume_create.go @@ -65,7 +65,7 @@ func (s *Server) getIronCoreVolumeConfig(_ context.Context, volume *iri.Volume) VolumePoolSelector: s.volumePoolSelector, VolumePoolRef: volumePoolRef, Resources: corev1alpha1.ResourceList{ - corev1alpha1.ResourceStorage: *resource.NewQuantity(int64(volume.Spec.Resources.StorageBytes), resource.DecimalSI), + corev1alpha1.ResourceStorage: *resource.NewQuantity(volume.Spec.Resources.StorageBytes, resource.DecimalSI), }, Image: volume.Spec.Image, ImagePullSecretRef: nil, // TODO: Fill if necessary diff --git a/broker/volumebroker/server/volume_expand.go b/broker/volumebroker/server/volume_expand.go index 6f5e88507..aa1d94594 100644 --- a/broker/volumebroker/server/volume_expand.go +++ b/broker/volumebroker/server/volume_expand.go @@ -36,7 +36,7 @@ func (s *Server) ExpandVolume(ctx context.Context, req *iri.ExpandVolumeRequest) log.V(1).Info("Expanding volume") if err := s.setIronCoreVolumeResources(ctx, ironcoreVolume.Volume, corev1alpha1.ResourceList{ - corev1alpha1.ResourceStorage: *resource.NewQuantity(int64(req.Resources.StorageBytes), resource.DecimalSI), + corev1alpha1.ResourceStorage: *resource.NewQuantity(req.Resources.StorageBytes, resource.DecimalSI), }); err != nil { return nil, fmt.Errorf("failed to expand volume: %w", err) } diff --git a/buf.gen.yaml b/buf.gen.yaml new file mode 100644 index 000000000..1fbe98055 --- /dev/null +++ b/buf.gen.yaml @@ -0,0 +1,13 @@ +version: v2 +plugins: + # The protoc-gen-go stubs are required for grpc-go + - remote: buf.build/protocolbuffers/go + out: iri/apis + # You almost always want to set this option with protoc-gen-go + opt: paths=source_relative + - remote: buf.build/grpc/go + # Make sure to generate your grpc-go code to the same + # directory as protoc-gen-go + out: iri/apis + # You almost always want to set this option with protoc-gen-go-grpc + opt: paths=source_relative \ No newline at end of file diff --git a/buf.yaml b/buf.yaml new file mode 100644 index 000000000..ff71995ec --- /dev/null +++ b/buf.yaml @@ -0,0 +1,9 @@ +version: v2 +modules: + - path: iri/apis +lint: + use: + - STANDARD +breaking: + use: + - FILE \ No newline at end of file diff --git a/go.mod b/go.mod index dfbcc60dc..52298fd3a 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,13 @@ module github.com/ironcore-dev/ironcore -go 1.23.0 +go 1.23.2 require ( + github.com/afritzler/protoequal v0.1.0 github.com/bits-and-blooms/bitset v1.14.3 github.com/blang/semver/v4 v4.0.0 github.com/go-chi/chi/v5 v5.1.0 github.com/go-logr/logr v1.4.2 - github.com/gogo/protobuf v1.3.2 github.com/google/go-cmp v0.6.0 github.com/ironcore-dev/controller-utils v0.9.4 github.com/onsi/ginkgo/v2 v2.20.2 @@ -57,6 +57,7 @@ require ( github.com/go-openapi/jsonreference v0.20.2 // indirect github.com/go-openapi/swag v0.23.0 // indirect github.com/go-task/slim-sprig/v3 v3.0.0 // indirect + github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/google/cel-go v0.17.8 // indirect @@ -113,7 +114,6 @@ require ( google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect - google.golang.org/protobuf v1.34.2 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/go.sum b/go.sum index 06e4fb041..3752773e4 100644 --- a/go.sum +++ b/go.sum @@ -6,6 +6,8 @@ github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOEl github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I= github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= +github.com/afritzler/protoequal v0.1.0 h1:2D3rLHXQB+wzPOJHuG3H7p/H16g3pEQwyvtkNkS1pYs= +github.com/afritzler/protoequal v0.1.0/go.mod h1:Ube4ogd+UZ3f8PfmeQfO2SJBCLHT6gmkEtpqvXmJhBU= github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df h1:7RFfzj4SSt6nnvCPbCqijJi1nWCd+TqAT3bYCStRC18= github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df/go.mod h1:pSwJ0fSY5KhvocuWSx4fz3BA8OrA1bQn+K1Eli3BRwM= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= @@ -299,8 +301,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 h1: google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/hack/update-proto.sh b/hack/update-proto.sh deleted file mode 100755 index c6fd28128..000000000 --- a/hack/update-proto.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -set -o errexit -set -o nounset -set -o pipefail - -SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" -REPO_ROOT="$SCRIPT_DIR/.." -export TERM="xterm-256color" - -blue="$(tput setaf 4)" -normal="$(tput sgr0)" - -VGOPATH="$VGOPATH" -PROTOC_GEN_GOGO="$PROTOC_GEN_GOGO" - -VIRTUAL_GOPATH="$(mktemp -d)" -trap 'rm -rf "$VIRTUAL_GOPATH"' EXIT - -# Setup virtual GOPATH so the codegen tools work as expected. -( -cd "$REPO_ROOT" -"$VGOPATH" -o "$VIRTUAL_GOPATH" -) - -export GOPATH="$VIRTUAL_GOPATH" -export GO111MODULE=off - -function generate() { - package="$1" - ( - cd "$VIRTUAL_GOPATH/src" - export PATH="$PATH:$(dirname "$PROTOC_GEN_GOGO")" - echo "Generating ${blue}$package${normal}" - protoc \ - --proto_path "./github.com/ironcore-dev/ironcore/$package" \ - --proto_path "$VIRTUAL_GOPATH/src" \ - --gogo_out=plugins=grpc:"$VIRTUAL_GOPATH/src" \ - "./github.com/ironcore-dev/ironcore/$package/api.proto" - ) -} - -generate "iri/apis/meta/v1alpha1" -generate "iri/apis/event/v1alpha1" -generate "iri/apis/machine/v1alpha1" -generate "iri/apis/volume/v1alpha1" -generate "iri/apis/bucket/v1alpha1" diff --git a/internal/apis/compute/validation/machine.go b/internal/apis/compute/validation/machine.go index e4db74662..6b27d4e0c 100644 --- a/internal/apis/compute/validation/machine.go +++ b/internal/apis/compute/validation/machine.go @@ -33,7 +33,7 @@ func ValidateMachineUpdate(newMachine, oldMachine *compute.Machine) field.ErrorL var allErrs field.ErrorList allErrs = append(allErrs, apivalidation.ValidateObjectMetaAccessorUpdate(newMachine, oldMachine, field.NewPath("metadata"))...) - allErrs = append(allErrs, validateMachineSpecUpdate(&newMachine.Spec, &oldMachine.Spec, newMachine.DeletionTimestamp != nil, field.NewPath("spec"))...) + allErrs = append(allErrs, validateMachineSpecUpdate(&newMachine.Spec, &oldMachine.Spec, field.NewPath("spec"))...) allErrs = append(allErrs, ValidateMachine(newMachine)...) return allErrs @@ -192,7 +192,7 @@ func validateVolumeTemplateSpecForMachine(template *storage.VolumeTemplateSpec, } // validateMachineSpecUpdate validates the spec of a Machine object before an update. -func validateMachineSpecUpdate(new, old *compute.MachineSpec, deletionTimestampSet bool, fldPath *field.Path) field.ErrorList { +func validateMachineSpecUpdate(new, old *compute.MachineSpec, fldPath *field.Path) field.ErrorList { var allErrs field.ErrorList allErrs = append(allErrs, ironcorevalidation.ValidateImmutableField(new.Image, old.Image, fldPath.Child("image"))...) diff --git a/internal/controllers/compute/machine_scheduler.go b/internal/controllers/compute/machine_scheduler.go index 4ab7c3e16..5e77c4ea2 100644 --- a/internal/controllers/compute/machine_scheduler.go +++ b/internal/controllers/compute/machine_scheduler.go @@ -75,18 +75,18 @@ func (s *MachineScheduler) skipSchedule(log logr.Logger, machine *computev1alpha return isAssumed } -func (s *MachineScheduler) matchesLabels(ctx context.Context, pool *scheduler.ContainerInfo, machine *computev1alpha1.Machine) bool { +func (s *MachineScheduler) matchesLabels(pool *scheduler.ContainerInfo, machine *computev1alpha1.Machine) bool { nodeLabels := labels.Set(pool.Node().Labels) machinePoolSelector := labels.SelectorFromSet(machine.Spec.MachinePoolSelector) return machinePoolSelector.Matches(nodeLabels) } -func (s *MachineScheduler) tolerateTaints(ctx context.Context, pool *scheduler.ContainerInfo, machine *computev1alpha1.Machine) bool { +func (s *MachineScheduler) tolerateTaints(pool *scheduler.ContainerInfo, machine *computev1alpha1.Machine) bool { return v1alpha1.TolerateTaints(machine.Spec.Tolerations, pool.Node().Spec.Taints) } -func (s *MachineScheduler) fitsPool(ctx context.Context, pool *scheduler.ContainerInfo, machine *computev1alpha1.Machine) bool { +func (s *MachineScheduler) fitsPool(pool *scheduler.ContainerInfo, machine *computev1alpha1.Machine) bool { machineClassName := machine.Spec.MachineClassRef.Name allocatable, ok := pool.Node().Status.Allocatable[corev1alpha1.ClassCountFor(corev1alpha1.ClassTypeMachineClass, machineClassName)] @@ -108,15 +108,15 @@ func (s *MachineScheduler) reconcileExists(ctx context.Context, log logr.Logger, var filteredNodes []*scheduler.ContainerInfo for _, node := range nodes { - if !s.tolerateTaints(ctx, node, machine) { + if !s.tolerateTaints(node, machine) { log.Info("node filtered", "reason", "taints do not match") continue } - if !s.matchesLabels(ctx, node, machine) { + if !s.matchesLabels(node, machine) { log.Info("node filtered", "reason", "label do not match") continue } - if !s.fitsPool(ctx, node, machine) { + if !s.fitsPool(node, machine) { log.Info("node filtered", "reason", "resources do not match") continue } diff --git a/internal/controllers/ipam/prefixallocationscheduler_controller.go b/internal/controllers/ipam/prefixallocationscheduler_controller.go index 6e1d06a05..f48cfd069 100644 --- a/internal/controllers/ipam/prefixallocationscheduler_controller.go +++ b/internal/controllers/ipam/prefixallocationscheduler_controller.go @@ -58,7 +58,7 @@ func isPrefixAllocatedAndNotDeleting(prefix *ipamv1alpha1.Prefix) bool { prefix.Status.Phase == ipamv1alpha1.PrefixPhaseAllocated } -func (s *PrefixAllocationScheduler) prefixForAllocation(ctx context.Context, log logr.Logger, allocation *ipamv1alpha1.PrefixAllocation) (string, error) { +func (s *PrefixAllocationScheduler) prefixForAllocation(ctx context.Context, allocation *ipamv1alpha1.PrefixAllocation) (string, error) { sel, err := metav1.LabelSelectorAsSelector(allocation.Spec.PrefixSelector) if err != nil { return "", fmt.Errorf("error building label selector: %w", err) @@ -142,7 +142,7 @@ func (s *PrefixAllocationScheduler) reconcile(ctx context.Context, log logr.Logg } log.V(1).Info("Determining suitable prefix for allocation") - ref, err := s.prefixForAllocation(ctx, log, allocation) + ref, err := s.prefixForAllocation(ctx, allocation) if err != nil { return ctrl.Result{}, fmt.Errorf("error finding prefix for allocation: %w", err) } diff --git a/internal/controllers/storage/volume_scheduler.go b/internal/controllers/storage/volume_scheduler.go index 33ba84f7c..98db10f6b 100644 --- a/internal/controllers/storage/volume_scheduler.go +++ b/internal/controllers/storage/volume_scheduler.go @@ -81,18 +81,18 @@ func (s *VolumeScheduler) skipSchedule(log logr.Logger, volume *storagev1alpha1. return isAssumed } -func (s *VolumeScheduler) matchesLabels(ctx context.Context, pool *scheduler.ContainerInfo, volume *storagev1alpha1.Volume) bool { +func (s *VolumeScheduler) matchesLabels(pool *scheduler.ContainerInfo, volume *storagev1alpha1.Volume) bool { nodeLabels := labels.Set(pool.Node().Labels) volumePoolSelector := labels.SelectorFromSet(volume.Spec.VolumePoolSelector) return volumePoolSelector.Matches(nodeLabels) } -func (s *VolumeScheduler) tolerateTaints(ctx context.Context, pool *scheduler.ContainerInfo, volume *storagev1alpha1.Volume) bool { +func (s *VolumeScheduler) tolerateTaints(pool *scheduler.ContainerInfo, volume *storagev1alpha1.Volume) bool { return v1alpha1.TolerateTaints(volume.Spec.Tolerations, pool.Node().Spec.Taints) } -func (s *VolumeScheduler) fitsPool(ctx context.Context, pool *scheduler.ContainerInfo, volume *storagev1alpha1.Volume) bool { +func (s *VolumeScheduler) fitsPool(pool *scheduler.ContainerInfo, volume *storagev1alpha1.Volume) bool { volumeClassName := volume.Spec.VolumeClassRef.Name allocatable, ok := pool.Node().Status.Allocatable[corev1alpha1.ClassCountFor(corev1alpha1.ClassTypeVolumeClass, volumeClassName)] @@ -153,15 +153,15 @@ func (s *VolumeScheduler) reconcileExists(ctx context.Context, log logr.Logger, var filteredNodes []*scheduler.ContainerInfo for _, node := range nodes { - if !s.tolerateTaints(ctx, node, volume) { + if !s.tolerateTaints(node, volume) { log.Info("node filtered", "reason", "taints do not match") continue } - if !s.matchesLabels(ctx, node, volume) { + if !s.matchesLabels(node, volume) { log.Info("node filtered", "reason", "label do not match") continue } - if !s.fitsPool(ctx, node, volume) { + if !s.fitsPool(node, volume) { log.Info("node filtered", "reason", "resources do not match") continue } diff --git a/iri/apis/bucket/v1alpha1/api.pb.go b/iri/apis/bucket/v1alpha1/api.pb.go index e2339c96e..78617bcb3 100644 --- a/iri/apis/bucket/v1alpha1/api.pb.go +++ b/iri/apis/bucket/v1alpha1/api.pb.go @@ -1,37 +1,27 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: api.proto +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.1 +// protoc (unknown) +// source: bucket/v1alpha1/api.proto package v1alpha1 import ( - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" + sync "sync" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" v1alpha11 "github.com/ironcore-dev/ironcore/iri/apis/event/v1alpha1" v1alpha1 "github.com/ironcore-dev/ironcore/iri/apis/meta/v1alpha1" - 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" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type BucketState int32 @@ -41,4523 +31,1179 @@ const ( BucketState_BUCKET_ERROR BucketState = 2 ) -var BucketState_name = map[int32]string{ - 0: "BUCKET_PENDING", - 1: "BUCKET_AVAILABLE", - 2: "BUCKET_ERROR", -} +// Enum value maps for BucketState. +var ( + BucketState_name = map[int32]string{ + 0: "BUCKET_PENDING", + 1: "BUCKET_AVAILABLE", + 2: "BUCKET_ERROR", + } + BucketState_value = map[string]int32{ + "BUCKET_PENDING": 0, + "BUCKET_AVAILABLE": 1, + "BUCKET_ERROR": 2, + } +) -var BucketState_value = map[string]int32{ - "BUCKET_PENDING": 0, - "BUCKET_AVAILABLE": 1, - "BUCKET_ERROR": 2, +func (x BucketState) Enum() *BucketState { + p := new(BucketState) + *p = x + return p } func (x BucketState) String() string { - return proto.EnumName(BucketState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (BucketState) Descriptor() protoreflect.EnumDescriptor { + return file_bucket_v1alpha1_api_proto_enumTypes[0].Descriptor() +} + +func (BucketState) Type() protoreflect.EnumType { + return &file_bucket_v1alpha1_api_proto_enumTypes[0] +} + +func (x BucketState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BucketState.Descriptor instead. func (BucketState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{0} + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{0} } type EventFilter struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - LabelSelector map[string]string `protobuf:"bytes,2,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - EventsFromTime int64 `protobuf:"varint,3,opt,name=events_from_time,json=eventsFromTime,proto3" json:"events_from_time,omitempty"` - EventsToTime int64 `protobuf:"varint,4,opt,name=events_to_time,json=eventsToTime,proto3" json:"events_to_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + LabelSelector map[string]string `protobuf:"bytes,2,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + EventsFromTime int64 `protobuf:"varint,3,opt,name=events_from_time,json=eventsFromTime,proto3" json:"events_from_time,omitempty"` + EventsToTime int64 `protobuf:"varint,4,opt,name=events_to_time,json=eventsToTime,proto3" json:"events_to_time,omitempty"` } -func (m *EventFilter) Reset() { *m = EventFilter{} } -func (*EventFilter) ProtoMessage() {} -func (*EventFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{0} +func (x *EventFilter) Reset() { + *x = EventFilter{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *EventFilter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *EventFilter) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EventFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventFilter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*EventFilter) ProtoMessage() {} + +func (x *EventFilter) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *EventFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventFilter.Merge(m, src) -} -func (m *EventFilter) XXX_Size() int { - return m.Size() -} -func (m *EventFilter) XXX_DiscardUnknown() { - xxx_messageInfo_EventFilter.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_EventFilter proto.InternalMessageInfo +// Deprecated: Use EventFilter.ProtoReflect.Descriptor instead. +func (*EventFilter) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{0} +} -func (m *EventFilter) GetId() string { - if m != nil { - return m.Id +func (x *EventFilter) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *EventFilter) GetLabelSelector() map[string]string { - if m != nil { - return m.LabelSelector +func (x *EventFilter) GetLabelSelector() map[string]string { + if x != nil { + return x.LabelSelector } return nil } -func (m *EventFilter) GetEventsFromTime() int64 { - if m != nil { - return m.EventsFromTime +func (x *EventFilter) GetEventsFromTime() int64 { + if x != nil { + return x.EventsFromTime } return 0 } -func (m *EventFilter) GetEventsToTime() int64 { - if m != nil { - return m.EventsToTime +func (x *EventFilter) GetEventsToTime() int64 { + if x != nil { + return x.EventsToTime } return 0 } type BucketFilter struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - LabelSelector map[string]string `protobuf:"bytes,2,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + LabelSelector map[string]string `protobuf:"bytes,2,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *BucketFilter) Reset() { *m = BucketFilter{} } -func (*BucketFilter) ProtoMessage() {} -func (*BucketFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{1} +func (x *BucketFilter) Reset() { + *x = BucketFilter{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *BucketFilter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *BucketFilter) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BucketFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BucketFilter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*BucketFilter) ProtoMessage() {} + +func (x *BucketFilter) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *BucketFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_BucketFilter.Merge(m, src) -} -func (m *BucketFilter) XXX_Size() int { - return m.Size() -} -func (m *BucketFilter) XXX_DiscardUnknown() { - xxx_messageInfo_BucketFilter.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_BucketFilter proto.InternalMessageInfo +// Deprecated: Use BucketFilter.ProtoReflect.Descriptor instead. +func (*BucketFilter) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{1} +} -func (m *BucketFilter) GetId() string { - if m != nil { - return m.Id +func (x *BucketFilter) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *BucketFilter) GetLabelSelector() map[string]string { - if m != nil { - return m.LabelSelector +func (x *BucketFilter) GetLabelSelector() map[string]string { + if x != nil { + return x.LabelSelector } return nil } type BucketSpec struct { - Class string `protobuf:"bytes,2,opt,name=class,proto3" json:"class,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Class string `protobuf:"bytes,2,opt,name=class,proto3" json:"class,omitempty"` } -func (m *BucketSpec) Reset() { *m = BucketSpec{} } -func (*BucketSpec) ProtoMessage() {} -func (*BucketSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{2} +func (x *BucketSpec) Reset() { + *x = BucketSpec{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *BucketSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *BucketSpec) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BucketSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BucketSpec.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*BucketSpec) ProtoMessage() {} + +func (x *BucketSpec) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *BucketSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_BucketSpec.Merge(m, src) -} -func (m *BucketSpec) XXX_Size() int { - return m.Size() -} -func (m *BucketSpec) XXX_DiscardUnknown() { - xxx_messageInfo_BucketSpec.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_BucketSpec proto.InternalMessageInfo +// Deprecated: Use BucketSpec.ProtoReflect.Descriptor instead. +func (*BucketSpec) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{2} +} -func (m *BucketSpec) GetClass() string { - if m != nil { - return m.Class +func (x *BucketSpec) GetClass() string { + if x != nil { + return x.Class } return "" } type BucketStatus struct { - State BucketState `protobuf:"varint,1,opt,name=state,proto3,enum=bucket.v1alpha1.BucketState" json:"state,omitempty"` - Access *BucketAccess `protobuf:"bytes,2,opt,name=access,proto3" json:"access,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + State BucketState `protobuf:"varint,1,opt,name=state,proto3,enum=bucket.v1alpha1.BucketState" json:"state,omitempty"` + Access *BucketAccess `protobuf:"bytes,2,opt,name=access,proto3" json:"access,omitempty"` } -func (m *BucketStatus) Reset() { *m = BucketStatus{} } -func (*BucketStatus) ProtoMessage() {} -func (*BucketStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{3} +func (x *BucketStatus) Reset() { + *x = BucketStatus{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *BucketStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *BucketStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BucketStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BucketStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*BucketStatus) ProtoMessage() {} + +func (x *BucketStatus) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *BucketStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_BucketStatus.Merge(m, src) -} -func (m *BucketStatus) XXX_Size() int { - return m.Size() -} -func (m *BucketStatus) XXX_DiscardUnknown() { - xxx_messageInfo_BucketStatus.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_BucketStatus proto.InternalMessageInfo +// Deprecated: Use BucketStatus.ProtoReflect.Descriptor instead. +func (*BucketStatus) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{3} +} -func (m *BucketStatus) GetState() BucketState { - if m != nil { - return m.State +func (x *BucketStatus) GetState() BucketState { + if x != nil { + return x.State } return BucketState_BUCKET_PENDING } -func (m *BucketStatus) GetAccess() *BucketAccess { - if m != nil { - return m.Access +func (x *BucketStatus) GetAccess() *BucketAccess { + if x != nil { + return x.Access } return nil } type Bucket struct { - Metadata *v1alpha1.ObjectMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - Spec *BucketSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - Status *BucketStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *v1alpha1.ObjectMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *BucketSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Status *BucketStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` } -func (m *Bucket) Reset() { *m = Bucket{} } -func (*Bucket) ProtoMessage() {} -func (*Bucket) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{4} +func (x *Bucket) Reset() { + *x = Bucket{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *Bucket) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *Bucket) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Bucket.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*Bucket) ProtoMessage() {} + +func (x *Bucket) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *Bucket) XXX_Merge(src proto.Message) { - xxx_messageInfo_Bucket.Merge(m, src) -} -func (m *Bucket) XXX_Size() int { - return m.Size() -} -func (m *Bucket) XXX_DiscardUnknown() { - xxx_messageInfo_Bucket.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_Bucket proto.InternalMessageInfo +// Deprecated: Use Bucket.ProtoReflect.Descriptor instead. +func (*Bucket) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{4} +} -func (m *Bucket) GetMetadata() *v1alpha1.ObjectMetadata { - if m != nil { - return m.Metadata +func (x *Bucket) GetMetadata() *v1alpha1.ObjectMetadata { + if x != nil { + return x.Metadata } return nil } -func (m *Bucket) GetSpec() *BucketSpec { - if m != nil { - return m.Spec +func (x *Bucket) GetSpec() *BucketSpec { + if x != nil { + return x.Spec } return nil } -func (m *Bucket) GetStatus() *BucketStatus { - if m != nil { - return m.Status +func (x *Bucket) GetStatus() *BucketStatus { + if x != nil { + return x.Status } return nil } type BucketClassCapabilities struct { - Tps int64 `protobuf:"varint,1,opt,name=tps,proto3" json:"tps,omitempty"` - Iops int64 `protobuf:"varint,2,opt,name=iops,proto3" json:"iops,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Tps int64 `protobuf:"varint,1,opt,name=tps,proto3" json:"tps,omitempty"` + Iops int64 `protobuf:"varint,2,opt,name=iops,proto3" json:"iops,omitempty"` } -func (m *BucketClassCapabilities) Reset() { *m = BucketClassCapabilities{} } -func (*BucketClassCapabilities) ProtoMessage() {} -func (*BucketClassCapabilities) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{5} +func (x *BucketClassCapabilities) Reset() { + *x = BucketClassCapabilities{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *BucketClassCapabilities) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *BucketClassCapabilities) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BucketClassCapabilities) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BucketClassCapabilities.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*BucketClassCapabilities) ProtoMessage() {} + +func (x *BucketClassCapabilities) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *BucketClassCapabilities) XXX_Merge(src proto.Message) { - xxx_messageInfo_BucketClassCapabilities.Merge(m, src) -} -func (m *BucketClassCapabilities) XXX_Size() int { - return m.Size() -} -func (m *BucketClassCapabilities) XXX_DiscardUnknown() { - xxx_messageInfo_BucketClassCapabilities.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_BucketClassCapabilities proto.InternalMessageInfo +// Deprecated: Use BucketClassCapabilities.ProtoReflect.Descriptor instead. +func (*BucketClassCapabilities) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{5} +} -func (m *BucketClassCapabilities) GetTps() int64 { - if m != nil { - return m.Tps +func (x *BucketClassCapabilities) GetTps() int64 { + if x != nil { + return x.Tps } return 0 } -func (m *BucketClassCapabilities) GetIops() int64 { - if m != nil { - return m.Iops +func (x *BucketClassCapabilities) GetIops() int64 { + if x != nil { + return x.Iops } return 0 } type BucketClass struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Capabilities *BucketClassCapabilities `protobuf:"bytes,2,opt,name=capabilities,proto3" json:"capabilities,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Capabilities *BucketClassCapabilities `protobuf:"bytes,2,opt,name=capabilities,proto3" json:"capabilities,omitempty"` } -func (m *BucketClass) Reset() { *m = BucketClass{} } -func (*BucketClass) ProtoMessage() {} -func (*BucketClass) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{6} +func (x *BucketClass) Reset() { + *x = BucketClass{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *BucketClass) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *BucketClass) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BucketClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BucketClass.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*BucketClass) ProtoMessage() {} + +func (x *BucketClass) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *BucketClass) XXX_Merge(src proto.Message) { - xxx_messageInfo_BucketClass.Merge(m, src) -} -func (m *BucketClass) XXX_Size() int { - return m.Size() -} -func (m *BucketClass) XXX_DiscardUnknown() { - xxx_messageInfo_BucketClass.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_BucketClass proto.InternalMessageInfo +// Deprecated: Use BucketClass.ProtoReflect.Descriptor instead. +func (*BucketClass) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{6} +} -func (m *BucketClass) GetName() string { - if m != nil { - return m.Name +func (x *BucketClass) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *BucketClass) GetCapabilities() *BucketClassCapabilities { - if m != nil { - return m.Capabilities +func (x *BucketClass) GetCapabilities() *BucketClassCapabilities { + if x != nil { + return x.Capabilities } return nil } type BucketAccess struct { - Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - SecretData map[string][]byte `protobuf:"bytes,2,rep,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + SecretData map[string][]byte `protobuf:"bytes,2,rep,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *BucketAccess) Reset() { *m = BucketAccess{} } -func (*BucketAccess) ProtoMessage() {} -func (*BucketAccess) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{7} +func (x *BucketAccess) Reset() { + *x = BucketAccess{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *BucketAccess) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *BucketAccess) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BucketAccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BucketAccess.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*BucketAccess) ProtoMessage() {} + +func (x *BucketAccess) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *BucketAccess) XXX_Merge(src proto.Message) { - xxx_messageInfo_BucketAccess.Merge(m, src) -} -func (m *BucketAccess) XXX_Size() int { - return m.Size() -} -func (m *BucketAccess) XXX_DiscardUnknown() { - xxx_messageInfo_BucketAccess.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_BucketAccess proto.InternalMessageInfo +// Deprecated: Use BucketAccess.ProtoReflect.Descriptor instead. +func (*BucketAccess) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{7} +} -func (m *BucketAccess) GetEndpoint() string { - if m != nil { - return m.Endpoint +func (x *BucketAccess) GetEndpoint() string { + if x != nil { + return x.Endpoint } return "" } -func (m *BucketAccess) GetSecretData() map[string][]byte { - if m != nil { - return m.SecretData +func (x *BucketAccess) GetSecretData() map[string][]byte { + if x != nil { + return x.SecretData } return nil } type ListEventsRequest struct { - Filter *EventFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Filter *EventFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` } -func (m *ListEventsRequest) Reset() { *m = ListEventsRequest{} } -func (*ListEventsRequest) ProtoMessage() {} -func (*ListEventsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{8} +func (x *ListEventsRequest) Reset() { + *x = ListEventsRequest{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListEventsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ListEventsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListEventsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ListEventsRequest) ProtoMessage() {} + +func (x *ListEventsRequest) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListEventsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListEventsRequest.Merge(m, src) -} -func (m *ListEventsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListEventsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListEventsRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListEventsRequest proto.InternalMessageInfo +// Deprecated: Use ListEventsRequest.ProtoReflect.Descriptor instead. +func (*ListEventsRequest) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{8} +} -func (m *ListEventsRequest) GetFilter() *EventFilter { - if m != nil { - return m.Filter +func (x *ListEventsRequest) GetFilter() *EventFilter { + if x != nil { + return x.Filter } return nil } type ListEventsResponse struct { - Events []*v1alpha11.Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Events []*v1alpha11.Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` } -func (m *ListEventsResponse) Reset() { *m = ListEventsResponse{} } -func (*ListEventsResponse) ProtoMessage() {} -func (*ListEventsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{9} +func (x *ListEventsResponse) Reset() { + *x = ListEventsResponse{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListEventsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ListEventsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListEventsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ListEventsResponse) ProtoMessage() {} + +func (x *ListEventsResponse) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListEventsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListEventsResponse.Merge(m, src) -} -func (m *ListEventsResponse) XXX_Size() int { - return m.Size() -} -func (m *ListEventsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListEventsResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListEventsResponse proto.InternalMessageInfo +// Deprecated: Use ListEventsResponse.ProtoReflect.Descriptor instead. +func (*ListEventsResponse) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{9} +} -func (m *ListEventsResponse) GetEvents() []*v1alpha11.Event { - if m != nil { - return m.Events +func (x *ListEventsResponse) GetEvents() []*v1alpha11.Event { + if x != nil { + return x.Events } return nil } type ListBucketsRequest struct { - Filter *BucketFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Filter *BucketFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` } -func (m *ListBucketsRequest) Reset() { *m = ListBucketsRequest{} } -func (*ListBucketsRequest) ProtoMessage() {} -func (*ListBucketsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{10} +func (x *ListBucketsRequest) Reset() { + *x = ListBucketsRequest{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListBucketsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ListBucketsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListBucketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListBucketsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ListBucketsRequest) ProtoMessage() {} + +func (x *ListBucketsRequest) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListBucketsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListBucketsRequest.Merge(m, src) -} -func (m *ListBucketsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListBucketsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListBucketsRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListBucketsRequest proto.InternalMessageInfo +// Deprecated: Use ListBucketsRequest.ProtoReflect.Descriptor instead. +func (*ListBucketsRequest) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{10} +} -func (m *ListBucketsRequest) GetFilter() *BucketFilter { - if m != nil { - return m.Filter +func (x *ListBucketsRequest) GetFilter() *BucketFilter { + if x != nil { + return x.Filter } return nil } type ListBucketsResponse struct { - Buckets []*Bucket `protobuf:"bytes,1,rep,name=buckets,proto3" json:"buckets,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Buckets []*Bucket `protobuf:"bytes,1,rep,name=buckets,proto3" json:"buckets,omitempty"` } -func (m *ListBucketsResponse) Reset() { *m = ListBucketsResponse{} } -func (*ListBucketsResponse) ProtoMessage() {} -func (*ListBucketsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{11} +func (x *ListBucketsResponse) Reset() { + *x = ListBucketsResponse{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListBucketsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ListBucketsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListBucketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListBucketsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ListBucketsResponse) ProtoMessage() {} + +func (x *ListBucketsResponse) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListBucketsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListBucketsResponse.Merge(m, src) -} -func (m *ListBucketsResponse) XXX_Size() int { - return m.Size() -} -func (m *ListBucketsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListBucketsResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListBucketsResponse proto.InternalMessageInfo +// Deprecated: Use ListBucketsResponse.ProtoReflect.Descriptor instead. +func (*ListBucketsResponse) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{11} +} -func (m *ListBucketsResponse) GetBuckets() []*Bucket { - if m != nil { - return m.Buckets +func (x *ListBucketsResponse) GetBuckets() []*Bucket { + if x != nil { + return x.Buckets } return nil } type CreateBucketRequest struct { - Bucket *Bucket `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bucket *Bucket `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` } -func (m *CreateBucketRequest) Reset() { *m = CreateBucketRequest{} } -func (*CreateBucketRequest) ProtoMessage() {} -func (*CreateBucketRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{12} +func (x *CreateBucketRequest) Reset() { + *x = CreateBucketRequest{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CreateBucketRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *CreateBucketRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateBucketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CreateBucketRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*CreateBucketRequest) ProtoMessage() {} + +func (x *CreateBucketRequest) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *CreateBucketRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateBucketRequest.Merge(m, src) -} -func (m *CreateBucketRequest) XXX_Size() int { - return m.Size() -} -func (m *CreateBucketRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateBucketRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_CreateBucketRequest proto.InternalMessageInfo +// Deprecated: Use CreateBucketRequest.ProtoReflect.Descriptor instead. +func (*CreateBucketRequest) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{12} +} -func (m *CreateBucketRequest) GetBucket() *Bucket { - if m != nil { - return m.Bucket +func (x *CreateBucketRequest) GetBucket() *Bucket { + if x != nil { + return x.Bucket } return nil } type CreateBucketResponse struct { - Bucket *Bucket `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bucket *Bucket `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` } -func (m *CreateBucketResponse) Reset() { *m = CreateBucketResponse{} } -func (*CreateBucketResponse) ProtoMessage() {} -func (*CreateBucketResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{13} +func (x *CreateBucketResponse) Reset() { + *x = CreateBucketResponse{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CreateBucketResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *CreateBucketResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateBucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CreateBucketResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*CreateBucketResponse) ProtoMessage() {} + +func (x *CreateBucketResponse) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *CreateBucketResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateBucketResponse.Merge(m, src) -} -func (m *CreateBucketResponse) XXX_Size() int { - return m.Size() -} -func (m *CreateBucketResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateBucketResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_CreateBucketResponse proto.InternalMessageInfo +// Deprecated: Use CreateBucketResponse.ProtoReflect.Descriptor instead. +func (*CreateBucketResponse) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{13} +} -func (m *CreateBucketResponse) GetBucket() *Bucket { - if m != nil { - return m.Bucket +func (x *CreateBucketResponse) GetBucket() *Bucket { + if x != nil { + return x.Bucket } return nil } type DeleteBucketRequest struct { - BucketId string `protobuf:"bytes,1,opt,name=bucket_id,json=bucketId,proto3" json:"bucket_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BucketId string `protobuf:"bytes,1,opt,name=bucket_id,json=bucketId,proto3" json:"bucket_id,omitempty"` } -func (m *DeleteBucketRequest) Reset() { *m = DeleteBucketRequest{} } -func (*DeleteBucketRequest) ProtoMessage() {} -func (*DeleteBucketRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{14} +func (x *DeleteBucketRequest) Reset() { + *x = DeleteBucketRequest{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *DeleteBucketRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *DeleteBucketRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteBucketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteBucketRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DeleteBucketRequest) ProtoMessage() {} + +func (x *DeleteBucketRequest) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DeleteBucketRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteBucketRequest.Merge(m, src) -} -func (m *DeleteBucketRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteBucketRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteBucketRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DeleteBucketRequest proto.InternalMessageInfo +// Deprecated: Use DeleteBucketRequest.ProtoReflect.Descriptor instead. +func (*DeleteBucketRequest) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{14} +} -func (m *DeleteBucketRequest) GetBucketId() string { - if m != nil { - return m.BucketId +func (x *DeleteBucketRequest) GetBucketId() string { + if x != nil { + return x.BucketId } return "" } type DeleteBucketResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *DeleteBucketResponse) Reset() { *m = DeleteBucketResponse{} } -func (*DeleteBucketResponse) ProtoMessage() {} -func (*DeleteBucketResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{15} -} -func (m *DeleteBucketResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteBucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteBucketResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *DeleteBucketResponse) Reset() { + *x = DeleteBucketResponse{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *DeleteBucketResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteBucketResponse.Merge(m, src) -} -func (m *DeleteBucketResponse) XXX_Size() int { - return m.Size() -} -func (m *DeleteBucketResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteBucketResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteBucketResponse proto.InternalMessageInfo -type ListBucketClassesRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DeleteBucketResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListBucketClassesRequest) Reset() { *m = ListBucketClassesRequest{} } -func (*ListBucketClassesRequest) ProtoMessage() {} -func (*ListBucketClassesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{16} -} -func (m *ListBucketClassesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListBucketClassesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListBucketClassesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*DeleteBucketResponse) ProtoMessage() {} + +func (x *DeleteBucketResponse) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListBucketClassesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListBucketClassesRequest.Merge(m, src) -} -func (m *ListBucketClassesRequest) XXX_Size() int { - return m.Size() -} -func (m *ListBucketClassesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListBucketClassesRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListBucketClassesRequest proto.InternalMessageInfo - -type ListBucketClassesResponse struct { - BucketClasses []*BucketClass `protobuf:"bytes,1,rep,name=bucket_classes,json=bucketClasses,proto3" json:"bucket_classes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use DeleteBucketResponse.ProtoReflect.Descriptor instead. +func (*DeleteBucketResponse) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{15} } -func (m *ListBucketClassesResponse) Reset() { *m = ListBucketClassesResponse{} } -func (*ListBucketClassesResponse) ProtoMessage() {} -func (*ListBucketClassesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{17} -} -func (m *ListBucketClassesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListBucketClassesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListBucketClassesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ListBucketClassesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListBucketClassesResponse.Merge(m, src) +type ListBucketClassesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ListBucketClassesResponse) XXX_Size() int { - return m.Size() + +func (x *ListBucketClassesRequest) Reset() { + *x = ListBucketClassesRequest{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListBucketClassesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListBucketClassesResponse.DiscardUnknown(m) + +func (x *ListBucketClassesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ListBucketClassesResponse proto.InternalMessageInfo +func (*ListBucketClassesRequest) ProtoMessage() {} -func (m *ListBucketClassesResponse) GetBucketClasses() []*BucketClass { - if m != nil { - return m.BucketClasses +func (x *ListBucketClassesRequest) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil -} - -func init() { - proto.RegisterEnum("bucket.v1alpha1.BucketState", BucketState_name, BucketState_value) - proto.RegisterType((*EventFilter)(nil), "bucket.v1alpha1.EventFilter") - proto.RegisterMapType((map[string]string)(nil), "bucket.v1alpha1.EventFilter.LabelSelectorEntry") - proto.RegisterType((*BucketFilter)(nil), "bucket.v1alpha1.BucketFilter") - proto.RegisterMapType((map[string]string)(nil), "bucket.v1alpha1.BucketFilter.LabelSelectorEntry") - proto.RegisterType((*BucketSpec)(nil), "bucket.v1alpha1.BucketSpec") - proto.RegisterType((*BucketStatus)(nil), "bucket.v1alpha1.BucketStatus") - proto.RegisterType((*Bucket)(nil), "bucket.v1alpha1.Bucket") - proto.RegisterType((*BucketClassCapabilities)(nil), "bucket.v1alpha1.BucketClassCapabilities") - proto.RegisterType((*BucketClass)(nil), "bucket.v1alpha1.BucketClass") - proto.RegisterType((*BucketAccess)(nil), "bucket.v1alpha1.BucketAccess") - proto.RegisterMapType((map[string][]byte)(nil), "bucket.v1alpha1.BucketAccess.SecretDataEntry") - proto.RegisterType((*ListEventsRequest)(nil), "bucket.v1alpha1.ListEventsRequest") - proto.RegisterType((*ListEventsResponse)(nil), "bucket.v1alpha1.ListEventsResponse") - proto.RegisterType((*ListBucketsRequest)(nil), "bucket.v1alpha1.ListBucketsRequest") - proto.RegisterType((*ListBucketsResponse)(nil), "bucket.v1alpha1.ListBucketsResponse") - proto.RegisterType((*CreateBucketRequest)(nil), "bucket.v1alpha1.CreateBucketRequest") - proto.RegisterType((*CreateBucketResponse)(nil), "bucket.v1alpha1.CreateBucketResponse") - proto.RegisterType((*DeleteBucketRequest)(nil), "bucket.v1alpha1.DeleteBucketRequest") - proto.RegisterType((*DeleteBucketResponse)(nil), "bucket.v1alpha1.DeleteBucketResponse") - proto.RegisterType((*ListBucketClassesRequest)(nil), "bucket.v1alpha1.ListBucketClassesRequest") - proto.RegisterType((*ListBucketClassesResponse)(nil), "bucket.v1alpha1.ListBucketClassesResponse") + return mi.MessageOf(x) } -func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) } - -var fileDescriptor_00212fb1f9d3bf1c = []byte{ - // 962 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdf, 0x6e, 0x1b, 0xc5, - 0x17, 0xf6, 0xda, 0xa9, 0x7f, 0xc9, 0xb1, 0xe3, 0xfa, 0x37, 0x09, 0xd4, 0x6c, 0x53, 0x2b, 0x5a, - 0x8a, 0x64, 0x2a, 0xc5, 0x4b, 0x0c, 0x95, 0x28, 0x12, 0x02, 0xdb, 0x71, 0x8a, 0x55, 0x93, 0xa2, - 0x49, 0x68, 0xa4, 0x4a, 0xc8, 0x8c, 0xd7, 0x27, 0xe9, 0xd2, 0xb5, 0x77, 0xd9, 0x19, 0x47, 0xca, - 0x1d, 0x77, 0xdc, 0xf2, 0x1e, 0x3c, 0x01, 0x6f, 0xd0, 0x4b, 0x2e, 0xb9, 0xa4, 0xe1, 0x05, 0x78, - 0x04, 0xb4, 0x33, 0xe3, 0xcd, 0xfa, 0xcf, 0x3a, 0x41, 0xe2, 0x6e, 0xe6, 0xcc, 0x77, 0xbe, 0xf3, - 0x9d, 0xb3, 0xdf, 0x8c, 0x0d, 0x1b, 0x2c, 0x70, 0xeb, 0x41, 0xe8, 0x0b, 0x9f, 0xdc, 0x1d, 0x4c, - 0x9c, 0xd7, 0x28, 0xea, 0x17, 0xfb, 0xcc, 0x0b, 0x5e, 0xb1, 0x7d, 0x73, 0xef, 0xdc, 0x15, 0xaf, - 0x26, 0x83, 0xba, 0xe3, 0x8f, 0xec, 0x73, 0xff, 0xdc, 0xb7, 0x25, 0x6e, 0x30, 0x39, 0x93, 0x3b, - 0xb9, 0x91, 0x2b, 0x95, 0x6f, 0x36, 0x13, 0x70, 0x37, 0xf4, 0xc7, 0x8e, 0x1f, 0xe2, 0xde, 0x10, - 0x2f, 0xe2, 0x8d, 0xed, 0x86, 0xae, 0xcd, 0x02, 0x97, 0xdb, 0x23, 0x14, 0xcc, 0x9e, 0xd6, 0xb1, - 0x63, 0x09, 0x66, 0xeb, 0xf6, 0x14, 0x78, 0x81, 0x63, 0xb1, 0x84, 0xc3, 0xfa, 0x39, 0x0b, 0x85, - 0x4e, 0x74, 0x78, 0xe8, 0x7a, 0x02, 0x43, 0x52, 0x82, 0xac, 0x3b, 0xac, 0x18, 0xbb, 0x46, 0x6d, - 0x83, 0x66, 0xdd, 0x21, 0x79, 0x01, 0x25, 0x8f, 0x0d, 0xd0, 0xeb, 0x73, 0xf4, 0xd0, 0x11, 0x7e, - 0x58, 0xc9, 0xee, 0xe6, 0x6a, 0x85, 0x86, 0x5d, 0x9f, 0xeb, 0xbf, 0x9e, 0x60, 0xa9, 0xf7, 0xa2, - 0x94, 0x63, 0x9d, 0xd1, 0x19, 0x8b, 0xf0, 0x92, 0x6e, 0x7a, 0xc9, 0x18, 0xa9, 0x41, 0x59, 0x6a, - 0xe2, 0xfd, 0xb3, 0xd0, 0x1f, 0xf5, 0x85, 0x3b, 0xc2, 0x4a, 0x6e, 0xd7, 0xa8, 0xe5, 0x68, 0x49, - 0xc5, 0x0f, 0x43, 0x7f, 0x74, 0xe2, 0x8e, 0x90, 0x3c, 0x04, 0x1d, 0xe9, 0x0b, 0x5f, 0xe1, 0xd6, - 0x24, 0xae, 0xa8, 0xa2, 0x27, 0x7e, 0x84, 0x32, 0xbf, 0x04, 0xb2, 0x58, 0x94, 0x94, 0x21, 0xf7, - 0x1a, 0x2f, 0x75, 0x3b, 0xd1, 0x92, 0x6c, 0xc3, 0x9d, 0x0b, 0xe6, 0x4d, 0xb0, 0x92, 0x95, 0x31, - 0xb5, 0xf9, 0x2c, 0xfb, 0xa9, 0x61, 0xfd, 0x66, 0x40, 0xb1, 0x25, 0x7b, 0x4a, 0x19, 0xc5, 0x69, - 0xca, 0x28, 0x3e, 0x5a, 0x18, 0x45, 0x92, 0xe6, 0xe6, 0x59, 0xfc, 0x07, 0xda, 0x2d, 0x00, 0x55, - 0xf3, 0x38, 0x40, 0x27, 0xc2, 0x39, 0x1e, 0xe3, 0x7c, 0x8a, 0x93, 0x1b, 0xeb, 0x72, 0xda, 0xde, - 0xb1, 0x60, 0x62, 0xc2, 0x49, 0x03, 0xee, 0x70, 0xc1, 0x04, 0xca, 0x0a, 0xa5, 0xc6, 0x4e, 0x4a, - 0x17, 0x11, 0x1a, 0xa9, 0x82, 0x92, 0xc7, 0x90, 0x67, 0x8e, 0x83, 0x9a, 0xba, 0xd0, 0x78, 0x90, - 0x92, 0xd4, 0x94, 0x20, 0xaa, 0xc1, 0xd6, 0xaf, 0x06, 0xe4, 0xd5, 0x01, 0x79, 0x02, 0xeb, 0x91, - 0x9d, 0x87, 0x4c, 0x30, 0x59, 0x38, 0xe2, 0x88, 0x02, 0xd7, 0x0c, 0xcf, 0x07, 0x3f, 0xa0, 0x23, - 0xbe, 0xd6, 0x20, 0x1a, 0xc3, 0x89, 0x0d, 0x6b, 0x3c, 0x40, 0x47, 0x97, 0xbe, 0x9f, 0xa6, 0x37, - 0x40, 0x87, 0x4a, 0x60, 0xa4, 0x96, 0xcb, 0x5e, 0xa5, 0xb3, 0xd2, 0xd5, 0xaa, 0x81, 0x50, 0x0d, - 0xb6, 0xbe, 0x80, 0x7b, 0x2a, 0xde, 0x8e, 0xe6, 0xd6, 0x66, 0x01, 0x1b, 0xb8, 0x9e, 0x2b, 0x5c, - 0xe4, 0xd1, 0x37, 0x11, 0x01, 0x97, 0xc2, 0x73, 0x34, 0x5a, 0x12, 0x02, 0x6b, 0xae, 0x1f, 0xa8, - 0x79, 0xe4, 0xa8, 0x5c, 0x5b, 0x3e, 0x14, 0x12, 0x04, 0x11, 0x64, 0xcc, 0x46, 0xa8, 0xbf, 0xa4, - 0x5c, 0x93, 0x1e, 0x14, 0x9d, 0x04, 0xb1, 0xee, 0xa9, 0x96, 0x22, 0x70, 0x41, 0x08, 0x9d, 0xc9, - 0x4e, 0x58, 0x57, 0x0d, 0x9e, 0x98, 0xb0, 0x8e, 0xe3, 0x61, 0xe0, 0xbb, 0x63, 0xa1, 0xcb, 0xc6, - 0x7b, 0x72, 0x04, 0x05, 0x8e, 0x4e, 0x88, 0xa2, 0x2f, 0x3f, 0x82, 0xf2, 0xf0, 0xde, 0xca, 0x0f, - 0x59, 0x3f, 0x96, 0x09, 0x07, 0x4c, 0x30, 0x65, 0x60, 0xe0, 0x71, 0xc0, 0xfc, 0x1c, 0xee, 0xce, - 0x1d, 0xdf, 0x64, 0xdd, 0x62, 0xd2, 0xba, 0x5d, 0xf8, 0x7f, 0xcf, 0xe5, 0x42, 0xbe, 0x1e, 0x9c, - 0xe2, 0x8f, 0x13, 0xe4, 0x82, 0x7c, 0x02, 0xf9, 0x33, 0x79, 0x7b, 0xb4, 0x47, 0x76, 0x56, 0xbd, - 0x36, 0x54, 0x63, 0xad, 0x36, 0x90, 0x24, 0x15, 0x0f, 0xfc, 0x31, 0x47, 0xb2, 0x07, 0x79, 0xf5, - 0x52, 0x54, 0x0c, 0xd9, 0xea, 0x3b, 0x75, 0xb9, 0x9d, 0xa3, 0xa2, 0x1a, 0x64, 0x3d, 0x53, 0x24, - 0xaa, 0xfd, 0x58, 0xd0, 0xe3, 0x39, 0x41, 0x0f, 0x56, 0xde, 0xf9, 0x58, 0xd1, 0x57, 0xb0, 0x35, - 0x43, 0xa6, 0x25, 0xed, 0xc3, 0xff, 0x54, 0xfa, 0x54, 0xd3, 0xbd, 0x14, 0x3a, 0x3a, 0xc5, 0x59, - 0x87, 0xb0, 0xd5, 0x0e, 0x91, 0x09, 0xd4, 0x07, 0x5a, 0x97, 0x0d, 0x79, 0x85, 0xd0, 0xba, 0x52, - 0x89, 0x34, 0xcc, 0x7a, 0x0a, 0xdb, 0xb3, 0x3c, 0x5a, 0xd2, 0xbf, 0x26, 0x6a, 0xc0, 0xd6, 0x01, - 0x7a, 0x38, 0x2f, 0xe8, 0x3e, 0x6c, 0x28, 0x40, 0x3f, 0x7e, 0x3b, 0xd7, 0x55, 0xa0, 0x3b, 0xb4, - 0xde, 0x85, 0xed, 0xd9, 0x1c, 0x55, 0xdc, 0x32, 0xa1, 0x72, 0x3d, 0x26, 0x69, 0x76, 0x9c, 0x4e, - 0xde, 0xfa, 0x1e, 0xde, 0x5b, 0x72, 0xa6, 0x55, 0xb7, 0xa1, 0xa4, 0xab, 0x39, 0xea, 0x44, 0xcf, - 0x73, 0x67, 0xd5, 0x45, 0xa2, 0x9b, 0x83, 0x24, 0xd9, 0xa3, 0xee, 0xf4, 0xba, 0xca, 0xa7, 0x8e, - 0x10, 0x28, 0xb5, 0xbe, 0x6d, 0x3f, 0xeb, 0x9c, 0xf4, 0xbf, 0xe9, 0x1c, 0x1d, 0x74, 0x8f, 0x9e, - 0x96, 0x33, 0x64, 0x1b, 0xca, 0x3a, 0xd6, 0x7c, 0xd1, 0xec, 0xf6, 0x9a, 0xad, 0x5e, 0xa7, 0x6c, - 0x90, 0x32, 0x14, 0x75, 0xb4, 0x43, 0xe9, 0x73, 0x5a, 0xce, 0x36, 0xfe, 0xce, 0xc1, 0xa6, 0xee, - 0x6d, 0x32, 0x8e, 0x7e, 0xab, 0xc8, 0x29, 0xc0, 0xb5, 0x27, 0x89, 0xb5, 0xa0, 0x6b, 0xc1, 0xfb, - 0xe6, 0xfb, 0x2b, 0x31, 0x7a, 0x62, 0x19, 0xf2, 0x12, 0x0a, 0x09, 0x6b, 0x91, 0xe5, 0x59, 0xb3, - 0x2e, 0x36, 0x1f, 0xae, 0x06, 0xc5, 0xdc, 0xdf, 0x41, 0x31, 0x69, 0x12, 0xb2, 0x98, 0xb7, 0xc4, - 0x8b, 0xe6, 0x07, 0x37, 0xa0, 0x92, 0xf4, 0x49, 0x1b, 0x2c, 0xa1, 0x5f, 0xe2, 0xac, 0x25, 0xf4, - 0x4b, 0xbd, 0x94, 0x21, 0x9e, 0x7a, 0x51, 0x66, 0x1c, 0x43, 0x3e, 0x5c, 0xd1, 0xfa, 0xac, 0xe3, - 0xcc, 0x47, 0xb7, 0x81, 0x4e, 0xab, 0xb5, 0x4e, 0xdf, 0xbc, 0xad, 0x1a, 0x7f, 0xbc, 0xad, 0x66, - 0x7e, 0xba, 0xaa, 0x1a, 0x6f, 0xae, 0xaa, 0xc6, 0xef, 0x57, 0x55, 0xe3, 0xcf, 0xab, 0xaa, 0xf1, - 0xcb, 0x5f, 0xd5, 0xcc, 0xcb, 0x27, 0xb7, 0xff, 0x8b, 0xa6, 0x8a, 0xc6, 0xff, 0xd1, 0x06, 0x79, - 0xf9, 0x07, 0xed, 0xe3, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5c, 0x7e, 0x76, 0x8e, 0x74, 0x0a, - 0x00, 0x00, +// Deprecated: Use ListBucketClassesRequest.ProtoReflect.Descriptor instead. +func (*ListBucketClassesRequest) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{16} } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// BucketRuntimeClient is the client API for BucketRuntime service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type BucketRuntimeClient interface { - ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) - ListBuckets(ctx context.Context, in *ListBucketsRequest, opts ...grpc.CallOption) (*ListBucketsResponse, error) - CreateBucket(ctx context.Context, in *CreateBucketRequest, opts ...grpc.CallOption) (*CreateBucketResponse, error) - DeleteBucket(ctx context.Context, in *DeleteBucketRequest, opts ...grpc.CallOption) (*DeleteBucketResponse, error) - ListBucketClasses(ctx context.Context, in *ListBucketClassesRequest, opts ...grpc.CallOption) (*ListBucketClassesResponse, error) -} +type ListBucketClassesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type bucketRuntimeClient struct { - cc *grpc.ClientConn + BucketClasses []*BucketClass `protobuf:"bytes,1,rep,name=bucket_classes,json=bucketClasses,proto3" json:"bucket_classes,omitempty"` } -func NewBucketRuntimeClient(cc *grpc.ClientConn) BucketRuntimeClient { - return &bucketRuntimeClient{cc} +func (x *ListBucketClassesResponse) Reset() { + *x = ListBucketClassesResponse{} + mi := &file_bucket_v1alpha1_api_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (c *bucketRuntimeClient) ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) { - out := new(ListEventsResponse) - err := c.cc.Invoke(ctx, "/bucket.v1alpha1.BucketRuntime/ListEvents", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *ListBucketClassesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *bucketRuntimeClient) ListBuckets(ctx context.Context, in *ListBucketsRequest, opts ...grpc.CallOption) (*ListBucketsResponse, error) { - out := new(ListBucketsResponse) - err := c.cc.Invoke(ctx, "/bucket.v1alpha1.BucketRuntime/ListBuckets", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*ListBucketClassesResponse) ProtoMessage() {} -func (c *bucketRuntimeClient) CreateBucket(ctx context.Context, in *CreateBucketRequest, opts ...grpc.CallOption) (*CreateBucketResponse, error) { - out := new(CreateBucketResponse) - err := c.cc.Invoke(ctx, "/bucket.v1alpha1.BucketRuntime/CreateBucket", in, out, opts...) - if err != nil { - return nil, err +func (x *ListBucketClassesResponse) ProtoReflect() protoreflect.Message { + mi := &file_bucket_v1alpha1_api_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -func (c *bucketRuntimeClient) DeleteBucket(ctx context.Context, in *DeleteBucketRequest, opts ...grpc.CallOption) (*DeleteBucketResponse, error) { - out := new(DeleteBucketResponse) - err := c.cc.Invoke(ctx, "/bucket.v1alpha1.BucketRuntime/DeleteBucket", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use ListBucketClassesResponse.ProtoReflect.Descriptor instead. +func (*ListBucketClassesResponse) Descriptor() ([]byte, []int) { + return file_bucket_v1alpha1_api_proto_rawDescGZIP(), []int{17} } -func (c *bucketRuntimeClient) ListBucketClasses(ctx context.Context, in *ListBucketClassesRequest, opts ...grpc.CallOption) (*ListBucketClassesResponse, error) { - out := new(ListBucketClassesResponse) - err := c.cc.Invoke(ctx, "/bucket.v1alpha1.BucketRuntime/ListBucketClasses", in, out, opts...) - if err != nil { - return nil, err +func (x *ListBucketClassesResponse) GetBucketClasses() []*BucketClass { + if x != nil { + return x.BucketClasses } - return out, nil -} - -// BucketRuntimeServer is the server API for BucketRuntime service. -type BucketRuntimeServer interface { - ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error) - ListBuckets(context.Context, *ListBucketsRequest) (*ListBucketsResponse, error) - CreateBucket(context.Context, *CreateBucketRequest) (*CreateBucketResponse, error) - DeleteBucket(context.Context, *DeleteBucketRequest) (*DeleteBucketResponse, error) - ListBucketClasses(context.Context, *ListBucketClassesRequest) (*ListBucketClassesResponse, error) + return nil } -// UnimplementedBucketRuntimeServer can be embedded to have forward compatible implementations. -type UnimplementedBucketRuntimeServer struct { +var File_bucket_v1alpha1_api_proto protoreflect.FileDescriptor + +var file_bucket_v1alpha1_api_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x62, 0x75, 0x63, + 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x17, 0x6d, 0x65, + 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x87, 0x02, 0x0a, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x56, 0x0a, 0x0e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x53, + 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x54, 0x6f, 0x54, 0x69, 0x6d, 0x65, 0x1a, 0x40, 0x0a, 0x12, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb9, 0x01, 0x0a, 0x0c, 0x42, 0x75, + 0x63, 0x6b, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x57, 0x0a, 0x0e, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x1a, 0x40, 0x0a, 0x12, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x22, 0x0a, 0x0a, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x53, + 0x70, 0x65, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x22, 0x79, 0x0a, 0x0c, 0x42, 0x75, 0x63, + 0x6b, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x32, 0x0a, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, + 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, + 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x35, 0x0a, + 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x22, 0xab, 0x01, 0x0a, 0x06, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, + 0x39, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2f, 0x0a, 0x04, 0x73, 0x70, + 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, + 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, + 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x35, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x75, + 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x75, + 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x22, 0x3f, 0x0a, 0x17, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x10, 0x0a, + 0x03, 0x74, 0x70, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x74, 0x70, 0x73, 0x12, + 0x12, 0x0a, 0x04, 0x69, 0x6f, 0x70, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x69, + 0x6f, 0x70, 0x73, 0x22, 0x6f, 0x0a, 0x0b, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4c, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, + 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, + 0x75, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x69, 0x65, 0x73, 0x22, 0xb9, 0x01, 0x0a, 0x0c, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x41, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x12, 0x4e, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x41, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x1a, 0x3d, 0x0a, 0x0f, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0x49, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x43, 0x0a, 0x12, 0x4c, + 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, + 0x22, 0x4b, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x48, 0x0a, + 0x13, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x07, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x07, + 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x22, 0x46, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, + 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x22, + 0x47, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, + 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x32, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1b, 0x0a, 0x09, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x22, 0x16, 0x0a, 0x14, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x63, 0x6b, + 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x22, 0x60, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, + 0x0e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x52, 0x0d, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x65, 0x73, 0x2a, 0x49, 0x0a, 0x0b, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x50, 0x45, 0x4e, 0x44, + 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, 0x5f, + 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x42, + 0x55, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x32, 0xf0, 0x03, + 0x0a, 0x0d, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, + 0x57, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x22, 0x2e, + 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, + 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, + 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, + 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, + 0x63, 0x6b, 0x65, 0x74, 0x12, 0x24, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x63, + 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x75, 0x63, + 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x75, 0x63, + 0x6b, 0x65, 0x74, 0x12, 0x24, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x75, 0x63, 0x6b, + 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x75, 0x63, 0x6b, + 0x65, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, + 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, + 0x72, 0x6f, 0x6e, 0x63, 0x6f, 0x72, 0x65, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x69, 0x72, 0x6f, 0x6e, + 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x72, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x62, 0x75, + 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (*UnimplementedBucketRuntimeServer) ListEvents(ctx context.Context, req *ListEventsRequest) (*ListEventsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented") -} -func (*UnimplementedBucketRuntimeServer) ListBuckets(ctx context.Context, req *ListBucketsRequest) (*ListBucketsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListBuckets not implemented") -} -func (*UnimplementedBucketRuntimeServer) CreateBucket(ctx context.Context, req *CreateBucketRequest) (*CreateBucketResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateBucket not implemented") -} -func (*UnimplementedBucketRuntimeServer) DeleteBucket(ctx context.Context, req *DeleteBucketRequest) (*DeleteBucketResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteBucket not implemented") -} -func (*UnimplementedBucketRuntimeServer) ListBucketClasses(ctx context.Context, req *ListBucketClassesRequest) (*ListBucketClassesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListBucketClasses not implemented") -} +var ( + file_bucket_v1alpha1_api_proto_rawDescOnce sync.Once + file_bucket_v1alpha1_api_proto_rawDescData = file_bucket_v1alpha1_api_proto_rawDesc +) -func RegisterBucketRuntimeServer(s *grpc.Server, srv BucketRuntimeServer) { - s.RegisterService(&_BucketRuntime_serviceDesc, srv) +func file_bucket_v1alpha1_api_proto_rawDescGZIP() []byte { + file_bucket_v1alpha1_api_proto_rawDescOnce.Do(func() { + file_bucket_v1alpha1_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_bucket_v1alpha1_api_proto_rawDescData) + }) + return file_bucket_v1alpha1_api_proto_rawDescData +} + +var file_bucket_v1alpha1_api_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_bucket_v1alpha1_api_proto_msgTypes = make([]protoimpl.MessageInfo, 21) +var file_bucket_v1alpha1_api_proto_goTypes = []any{ + (BucketState)(0), // 0: bucket.v1alpha1.BucketState + (*EventFilter)(nil), // 1: bucket.v1alpha1.EventFilter + (*BucketFilter)(nil), // 2: bucket.v1alpha1.BucketFilter + (*BucketSpec)(nil), // 3: bucket.v1alpha1.BucketSpec + (*BucketStatus)(nil), // 4: bucket.v1alpha1.BucketStatus + (*Bucket)(nil), // 5: bucket.v1alpha1.Bucket + (*BucketClassCapabilities)(nil), // 6: bucket.v1alpha1.BucketClassCapabilities + (*BucketClass)(nil), // 7: bucket.v1alpha1.BucketClass + (*BucketAccess)(nil), // 8: bucket.v1alpha1.BucketAccess + (*ListEventsRequest)(nil), // 9: bucket.v1alpha1.ListEventsRequest + (*ListEventsResponse)(nil), // 10: bucket.v1alpha1.ListEventsResponse + (*ListBucketsRequest)(nil), // 11: bucket.v1alpha1.ListBucketsRequest + (*ListBucketsResponse)(nil), // 12: bucket.v1alpha1.ListBucketsResponse + (*CreateBucketRequest)(nil), // 13: bucket.v1alpha1.CreateBucketRequest + (*CreateBucketResponse)(nil), // 14: bucket.v1alpha1.CreateBucketResponse + (*DeleteBucketRequest)(nil), // 15: bucket.v1alpha1.DeleteBucketRequest + (*DeleteBucketResponse)(nil), // 16: bucket.v1alpha1.DeleteBucketResponse + (*ListBucketClassesRequest)(nil), // 17: bucket.v1alpha1.ListBucketClassesRequest + (*ListBucketClassesResponse)(nil), // 18: bucket.v1alpha1.ListBucketClassesResponse + nil, // 19: bucket.v1alpha1.EventFilter.LabelSelectorEntry + nil, // 20: bucket.v1alpha1.BucketFilter.LabelSelectorEntry + nil, // 21: bucket.v1alpha1.BucketAccess.SecretDataEntry + (*v1alpha1.ObjectMetadata)(nil), // 22: meta.v1alpha1.ObjectMetadata + (*v1alpha11.Event)(nil), // 23: event.v1alpha1.Event +} +var file_bucket_v1alpha1_api_proto_depIdxs = []int32{ + 19, // 0: bucket.v1alpha1.EventFilter.label_selector:type_name -> bucket.v1alpha1.EventFilter.LabelSelectorEntry + 20, // 1: bucket.v1alpha1.BucketFilter.label_selector:type_name -> bucket.v1alpha1.BucketFilter.LabelSelectorEntry + 0, // 2: bucket.v1alpha1.BucketStatus.state:type_name -> bucket.v1alpha1.BucketState + 8, // 3: bucket.v1alpha1.BucketStatus.access:type_name -> bucket.v1alpha1.BucketAccess + 22, // 4: bucket.v1alpha1.Bucket.metadata:type_name -> meta.v1alpha1.ObjectMetadata + 3, // 5: bucket.v1alpha1.Bucket.spec:type_name -> bucket.v1alpha1.BucketSpec + 4, // 6: bucket.v1alpha1.Bucket.status:type_name -> bucket.v1alpha1.BucketStatus + 6, // 7: bucket.v1alpha1.BucketClass.capabilities:type_name -> bucket.v1alpha1.BucketClassCapabilities + 21, // 8: bucket.v1alpha1.BucketAccess.secret_data:type_name -> bucket.v1alpha1.BucketAccess.SecretDataEntry + 1, // 9: bucket.v1alpha1.ListEventsRequest.filter:type_name -> bucket.v1alpha1.EventFilter + 23, // 10: bucket.v1alpha1.ListEventsResponse.events:type_name -> event.v1alpha1.Event + 2, // 11: bucket.v1alpha1.ListBucketsRequest.filter:type_name -> bucket.v1alpha1.BucketFilter + 5, // 12: bucket.v1alpha1.ListBucketsResponse.buckets:type_name -> bucket.v1alpha1.Bucket + 5, // 13: bucket.v1alpha1.CreateBucketRequest.bucket:type_name -> bucket.v1alpha1.Bucket + 5, // 14: bucket.v1alpha1.CreateBucketResponse.bucket:type_name -> bucket.v1alpha1.Bucket + 7, // 15: bucket.v1alpha1.ListBucketClassesResponse.bucket_classes:type_name -> bucket.v1alpha1.BucketClass + 9, // 16: bucket.v1alpha1.BucketRuntime.ListEvents:input_type -> bucket.v1alpha1.ListEventsRequest + 11, // 17: bucket.v1alpha1.BucketRuntime.ListBuckets:input_type -> bucket.v1alpha1.ListBucketsRequest + 13, // 18: bucket.v1alpha1.BucketRuntime.CreateBucket:input_type -> bucket.v1alpha1.CreateBucketRequest + 15, // 19: bucket.v1alpha1.BucketRuntime.DeleteBucket:input_type -> bucket.v1alpha1.DeleteBucketRequest + 17, // 20: bucket.v1alpha1.BucketRuntime.ListBucketClasses:input_type -> bucket.v1alpha1.ListBucketClassesRequest + 10, // 21: bucket.v1alpha1.BucketRuntime.ListEvents:output_type -> bucket.v1alpha1.ListEventsResponse + 12, // 22: bucket.v1alpha1.BucketRuntime.ListBuckets:output_type -> bucket.v1alpha1.ListBucketsResponse + 14, // 23: bucket.v1alpha1.BucketRuntime.CreateBucket:output_type -> bucket.v1alpha1.CreateBucketResponse + 16, // 24: bucket.v1alpha1.BucketRuntime.DeleteBucket:output_type -> bucket.v1alpha1.DeleteBucketResponse + 18, // 25: bucket.v1alpha1.BucketRuntime.ListBucketClasses:output_type -> bucket.v1alpha1.ListBucketClassesResponse + 21, // [21:26] is the sub-list for method output_type + 16, // [16:21] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name +} + +func init() { file_bucket_v1alpha1_api_proto_init() } +func file_bucket_v1alpha1_api_proto_init() { + if File_bucket_v1alpha1_api_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_bucket_v1alpha1_api_proto_rawDesc, + NumEnums: 1, + NumMessages: 21, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_bucket_v1alpha1_api_proto_goTypes, + DependencyIndexes: file_bucket_v1alpha1_api_proto_depIdxs, + EnumInfos: file_bucket_v1alpha1_api_proto_enumTypes, + MessageInfos: file_bucket_v1alpha1_api_proto_msgTypes, + }.Build() + File_bucket_v1alpha1_api_proto = out.File + file_bucket_v1alpha1_api_proto_rawDesc = nil + file_bucket_v1alpha1_api_proto_goTypes = nil + file_bucket_v1alpha1_api_proto_depIdxs = nil } - -func _BucketRuntime_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListEventsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BucketRuntimeServer).ListEvents(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/bucket.v1alpha1.BucketRuntime/ListEvents", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BucketRuntimeServer).ListEvents(ctx, req.(*ListEventsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _BucketRuntime_ListBuckets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListBucketsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BucketRuntimeServer).ListBuckets(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/bucket.v1alpha1.BucketRuntime/ListBuckets", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BucketRuntimeServer).ListBuckets(ctx, req.(*ListBucketsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _BucketRuntime_CreateBucket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateBucketRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BucketRuntimeServer).CreateBucket(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/bucket.v1alpha1.BucketRuntime/CreateBucket", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BucketRuntimeServer).CreateBucket(ctx, req.(*CreateBucketRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _BucketRuntime_DeleteBucket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteBucketRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BucketRuntimeServer).DeleteBucket(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/bucket.v1alpha1.BucketRuntime/DeleteBucket", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BucketRuntimeServer).DeleteBucket(ctx, req.(*DeleteBucketRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _BucketRuntime_ListBucketClasses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListBucketClassesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BucketRuntimeServer).ListBucketClasses(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/bucket.v1alpha1.BucketRuntime/ListBucketClasses", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BucketRuntimeServer).ListBucketClasses(ctx, req.(*ListBucketClassesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _BucketRuntime_serviceDesc = grpc.ServiceDesc{ - ServiceName: "bucket.v1alpha1.BucketRuntime", - HandlerType: (*BucketRuntimeServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListEvents", - Handler: _BucketRuntime_ListEvents_Handler, - }, - { - MethodName: "ListBuckets", - Handler: _BucketRuntime_ListBuckets_Handler, - }, - { - MethodName: "CreateBucket", - Handler: _BucketRuntime_CreateBucket_Handler, - }, - { - MethodName: "DeleteBucket", - Handler: _BucketRuntime_DeleteBucket_Handler, - }, - { - MethodName: "ListBucketClasses", - Handler: _BucketRuntime_ListBucketClasses_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "api.proto", -} - -func (m *EventFilter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EventsToTime != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.EventsToTime)) - i-- - dAtA[i] = 0x20 - } - if m.EventsFromTime != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.EventsFromTime)) - i-- - dAtA[i] = 0x18 - } - if len(m.LabelSelector) > 0 { - for k := range m.LabelSelector { - v := m.LabelSelector[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintApi(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BucketFilter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BucketFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BucketFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.LabelSelector) > 0 { - for k := range m.LabelSelector { - v := m.LabelSelector[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintApi(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BucketSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BucketSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BucketSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Class) > 0 { - i -= len(m.Class) - copy(dAtA[i:], m.Class) - i = encodeVarintApi(dAtA, i, uint64(len(m.Class))) - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} - -func (m *BucketStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BucketStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BucketStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Access != nil { - { - size, err := m.Access.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.State != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Bucket) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Bucket) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Bucket) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Status != nil { - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Metadata != nil { - { - size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BucketClassCapabilities) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BucketClassCapabilities) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BucketClassCapabilities) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Iops != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.Iops)) - i-- - dAtA[i] = 0x10 - } - if m.Tps != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.Tps)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BucketClass) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BucketClass) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BucketClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Capabilities != nil { - { - size, err := m.Capabilities.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintApi(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BucketAccess) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BucketAccess) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BucketAccess) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SecretData) > 0 { - for k := range m.SecretData { - v := m.SecretData[k] - baseI := i - if len(v) > 0 { - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Endpoint) > 0 { - i -= len(m.Endpoint) - copy(dAtA[i:], m.Endpoint) - i = encodeVarintApi(dAtA, i, uint64(len(m.Endpoint))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListEventsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListEventsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListEventsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Filter != nil { - { - size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListEventsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListEventsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListEventsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Events) > 0 { - for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ListBucketsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListBucketsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListBucketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Filter != nil { - { - size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListBucketsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListBucketsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListBucketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Buckets) > 0 { - for iNdEx := len(m.Buckets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Buckets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *CreateBucketRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CreateBucketRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CreateBucketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Bucket != nil { - { - size, err := m.Bucket.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CreateBucketResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CreateBucketResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CreateBucketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Bucket != nil { - { - size, err := m.Bucket.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DeleteBucketRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeleteBucketRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteBucketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BucketId) > 0 { - i -= len(m.BucketId) - copy(dAtA[i:], m.BucketId) - i = encodeVarintApi(dAtA, i, uint64(len(m.BucketId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DeleteBucketResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeleteBucketResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteBucketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *ListBucketClassesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListBucketClassesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListBucketClassesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *ListBucketClassesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListBucketClassesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListBucketClassesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BucketClasses) > 0 { - for iNdEx := len(m.BucketClasses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.BucketClasses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintApi(dAtA []byte, offset int, v uint64) int { - offset -= sovApi(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *EventFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.LabelSelector) > 0 { - for k, v := range m.LabelSelector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - if m.EventsFromTime != 0 { - n += 1 + sovApi(uint64(m.EventsFromTime)) - } - if m.EventsToTime != 0 { - n += 1 + sovApi(uint64(m.EventsToTime)) - } - return n -} - -func (m *BucketFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.LabelSelector) > 0 { - for k, v := range m.LabelSelector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - return n -} - -func (m *BucketSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Class) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *BucketStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.State != 0 { - n += 1 + sovApi(uint64(m.State)) - } - if m.Access != nil { - l = m.Access.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *Bucket) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovApi(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovApi(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *BucketClassCapabilities) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Tps != 0 { - n += 1 + sovApi(uint64(m.Tps)) - } - if m.Iops != 0 { - n += 1 + sovApi(uint64(m.Iops)) - } - return n -} - -func (m *BucketClass) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.Capabilities != nil { - l = m.Capabilities.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *BucketAccess) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Endpoint) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.SecretData) > 0 { - for k, v := range m.SecretData { - _ = k - _ = v - l = 0 - if len(v) > 0 { - l = 1 + len(v) + sovApi(uint64(len(v))) - } - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + l - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - return n -} - -func (m *ListEventsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Filter != nil { - l = m.Filter.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *ListEventsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - return n -} - -func (m *ListBucketsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Filter != nil { - l = m.Filter.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *ListBucketsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Buckets) > 0 { - for _, e := range m.Buckets { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - return n -} - -func (m *CreateBucketRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Bucket != nil { - l = m.Bucket.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *CreateBucketResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Bucket != nil { - l = m.Bucket.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *DeleteBucketRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BucketId) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *DeleteBucketResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *ListBucketClassesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *ListBucketClassesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.BucketClasses) > 0 { - for _, e := range m.BucketClasses { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - return n -} - -func sovApi(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozApi(x uint64) (n int) { - return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *EventFilter) String() string { - if this == nil { - return "nil" - } - keysForLabelSelector := make([]string, 0, len(this.LabelSelector)) - for k, _ := range this.LabelSelector { - keysForLabelSelector = append(keysForLabelSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForLabelSelector) - mapStringForLabelSelector := "map[string]string{" - for _, k := range keysForLabelSelector { - mapStringForLabelSelector += fmt.Sprintf("%v: %v,", k, this.LabelSelector[k]) - } - mapStringForLabelSelector += "}" - s := strings.Join([]string{`&EventFilter{`, - `Id:` + fmt.Sprintf("%v", this.Id) + `,`, - `LabelSelector:` + mapStringForLabelSelector + `,`, - `EventsFromTime:` + fmt.Sprintf("%v", this.EventsFromTime) + `,`, - `EventsToTime:` + fmt.Sprintf("%v", this.EventsToTime) + `,`, - `}`, - }, "") - return s -} -func (this *BucketFilter) String() string { - if this == nil { - return "nil" - } - keysForLabelSelector := make([]string, 0, len(this.LabelSelector)) - for k, _ := range this.LabelSelector { - keysForLabelSelector = append(keysForLabelSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForLabelSelector) - mapStringForLabelSelector := "map[string]string{" - for _, k := range keysForLabelSelector { - mapStringForLabelSelector += fmt.Sprintf("%v: %v,", k, this.LabelSelector[k]) - } - mapStringForLabelSelector += "}" - s := strings.Join([]string{`&BucketFilter{`, - `Id:` + fmt.Sprintf("%v", this.Id) + `,`, - `LabelSelector:` + mapStringForLabelSelector + `,`, - `}`, - }, "") - return s -} -func (this *BucketSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BucketSpec{`, - `Class:` + fmt.Sprintf("%v", this.Class) + `,`, - `}`, - }, "") - return s -} -func (this *BucketStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BucketStatus{`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, - `Access:` + strings.Replace(this.Access.String(), "BucketAccess", "BucketAccess", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Bucket) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Bucket{`, - `Metadata:` + strings.Replace(fmt.Sprintf("%v", this.Metadata), "ObjectMetadata", "v1alpha1.ObjectMetadata", 1) + `,`, - `Spec:` + strings.Replace(this.Spec.String(), "BucketSpec", "BucketSpec", 1) + `,`, - `Status:` + strings.Replace(this.Status.String(), "BucketStatus", "BucketStatus", 1) + `,`, - `}`, - }, "") - return s -} -func (this *BucketClassCapabilities) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BucketClassCapabilities{`, - `Tps:` + fmt.Sprintf("%v", this.Tps) + `,`, - `Iops:` + fmt.Sprintf("%v", this.Iops) + `,`, - `}`, - }, "") - return s -} -func (this *BucketClass) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BucketClass{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Capabilities:` + strings.Replace(this.Capabilities.String(), "BucketClassCapabilities", "BucketClassCapabilities", 1) + `,`, - `}`, - }, "") - return s -} -func (this *BucketAccess) String() string { - if this == nil { - return "nil" - } - keysForSecretData := make([]string, 0, len(this.SecretData)) - for k, _ := range this.SecretData { - keysForSecretData = append(keysForSecretData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSecretData) - mapStringForSecretData := "map[string][]byte{" - for _, k := range keysForSecretData { - mapStringForSecretData += fmt.Sprintf("%v: %v,", k, this.SecretData[k]) - } - mapStringForSecretData += "}" - s := strings.Join([]string{`&BucketAccess{`, - `Endpoint:` + fmt.Sprintf("%v", this.Endpoint) + `,`, - `SecretData:` + mapStringForSecretData + `,`, - `}`, - }, "") - return s -} -func (this *ListEventsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListEventsRequest{`, - `Filter:` + strings.Replace(this.Filter.String(), "EventFilter", "EventFilter", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListEventsResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForEvents := "[]*Event{" - for _, f := range this.Events { - repeatedStringForEvents += strings.Replace(fmt.Sprintf("%v", f), "Event", "v1alpha11.Event", 1) + "," - } - repeatedStringForEvents += "}" - s := strings.Join([]string{`&ListEventsResponse{`, - `Events:` + repeatedStringForEvents + `,`, - `}`, - }, "") - return s -} -func (this *ListBucketsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListBucketsRequest{`, - `Filter:` + strings.Replace(this.Filter.String(), "BucketFilter", "BucketFilter", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListBucketsResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForBuckets := "[]*Bucket{" - for _, f := range this.Buckets { - repeatedStringForBuckets += strings.Replace(f.String(), "Bucket", "Bucket", 1) + "," - } - repeatedStringForBuckets += "}" - s := strings.Join([]string{`&ListBucketsResponse{`, - `Buckets:` + repeatedStringForBuckets + `,`, - `}`, - }, "") - return s -} -func (this *CreateBucketRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CreateBucketRequest{`, - `Bucket:` + strings.Replace(this.Bucket.String(), "Bucket", "Bucket", 1) + `,`, - `}`, - }, "") - return s -} -func (this *CreateBucketResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CreateBucketResponse{`, - `Bucket:` + strings.Replace(this.Bucket.String(), "Bucket", "Bucket", 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeleteBucketRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeleteBucketRequest{`, - `BucketId:` + fmt.Sprintf("%v", this.BucketId) + `,`, - `}`, - }, "") - return s -} -func (this *DeleteBucketResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeleteBucketResponse{`, - `}`, - }, "") - return s -} -func (this *ListBucketClassesRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListBucketClassesRequest{`, - `}`, - }, "") - return s -} -func (this *ListBucketClassesResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForBucketClasses := "[]*BucketClass{" - for _, f := range this.BucketClasses { - repeatedStringForBucketClasses += strings.Replace(f.String(), "BucketClass", "BucketClass", 1) + "," - } - repeatedStringForBucketClasses += "}" - s := strings.Join([]string{`&ListBucketClassesResponse{`, - `BucketClasses:` + repeatedStringForBucketClasses + `,`, - `}`, - }, "") - return s -} -func valueToStringApi(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *EventFilter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventFilter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventFilter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LabelSelector == nil { - m.LabelSelector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.LabelSelector[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EventsFromTime", wireType) - } - m.EventsFromTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EventsFromTime |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EventsToTime", wireType) - } - m.EventsToTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EventsToTime |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BucketFilter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BucketFilter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BucketFilter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LabelSelector == nil { - m.LabelSelector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.LabelSelector[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BucketSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BucketSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BucketSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Class", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Class = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BucketStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BucketStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BucketStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.State |= BucketState(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Access", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Access == nil { - m.Access = &BucketAccess{} - } - if err := m.Access.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Bucket) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Bucket: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Bucket: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &v1alpha1.ObjectMetadata{} - } - if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &BucketSpec{} - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &BucketStatus{} - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BucketClassCapabilities) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BucketClassCapabilities: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BucketClassCapabilities: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Tps", wireType) - } - m.Tps = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Tps |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Iops", wireType) - } - m.Iops = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Iops |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BucketClass) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BucketClass: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BucketClass: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Capabilities", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Capabilities == nil { - m.Capabilities = &BucketClassCapabilities{} - } - if err := m.Capabilities.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BucketAccess) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BucketAccess: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BucketAccess: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Endpoint = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretData == nil { - m.SecretData = make(map[string][]byte) - } - var mapkey string - mapvalue := []byte{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapbyteLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapbyteLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intMapbyteLen := int(mapbyteLen) - if intMapbyteLen < 0 { - return ErrInvalidLengthApi - } - postbytesIndex := iNdEx + intMapbyteLen - if postbytesIndex < 0 { - return ErrInvalidLengthApi - } - if postbytesIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = make([]byte, mapbyteLen) - copy(mapvalue, dAtA[iNdEx:postbytesIndex]) - iNdEx = postbytesIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.SecretData[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListEventsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListEventsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListEventsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Filter == nil { - m.Filter = &EventFilter{} - } - if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListEventsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListEventsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListEventsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Events = append(m.Events, &v1alpha11.Event{}) - if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListBucketsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListBucketsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListBucketsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Filter == nil { - m.Filter = &BucketFilter{} - } - if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListBucketsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListBucketsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListBucketsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Buckets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Buckets = append(m.Buckets, &Bucket{}) - if err := m.Buckets[len(m.Buckets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CreateBucketRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateBucketRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateBucketRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Bucket", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Bucket == nil { - m.Bucket = &Bucket{} - } - if err := m.Bucket.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CreateBucketResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateBucketResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateBucketResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Bucket", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Bucket == nil { - m.Bucket = &Bucket{} - } - if err := m.Bucket.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteBucketRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteBucketRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteBucketRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BucketId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BucketId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteBucketResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteBucketResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteBucketResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListBucketClassesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListBucketClassesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListBucketClassesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListBucketClassesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListBucketClassesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListBucketClassesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BucketClasses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BucketClasses = append(m.BucketClasses, &BucketClass{}) - if err := m.BucketClasses[len(m.BucketClasses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipApi(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthApi - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupApi - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthApi - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group") -) diff --git a/iri/apis/bucket/v1alpha1/api.proto b/iri/apis/bucket/v1alpha1/api.proto index 3ceb9f611..08b1f863e 100644 --- a/iri/apis/bucket/v1alpha1/api.proto +++ b/iri/apis/bucket/v1alpha1/api.proto @@ -3,17 +3,8 @@ syntax = "proto3"; package bucket.v1alpha1; option go_package = "github.com/ironcore-dev/ironcore/iri/apis/bucket/v1alpha1"; -import "github.com/gogo/protobuf/gogoproto/gogo.proto"; -import "github.com/ironcore-dev/ironcore/iri/apis/meta/v1alpha1/api.proto"; -import "github.com/ironcore-dev/ironcore/iri/apis/event/v1alpha1/api.proto"; - -option (gogoproto.goproto_stringer_all) = false; -option (gogoproto.stringer_all) = true; -option (gogoproto.goproto_getters_all) = true; -option (gogoproto.marshaler_all) = true; -option (gogoproto.sizer_all) = true; -option (gogoproto.unmarshaler_all) = true; -option (gogoproto.goproto_unrecognized_all) = false; +import "meta/v1alpha1/api.proto"; +import "event/v1alpha1/api.proto"; service BucketRuntime { rpc ListEvents(ListEventsRequest) returns (ListEventsResponse) {}; diff --git a/iri/apis/bucket/v1alpha1/api_grpc.pb.go b/iri/apis/bucket/v1alpha1/api_grpc.pb.go new file mode 100644 index 000000000..99ee111a7 --- /dev/null +++ b/iri/apis/bucket/v1alpha1/api_grpc.pb.go @@ -0,0 +1,274 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: bucket/v1alpha1/api.proto + +package v1alpha1 + +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. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + BucketRuntime_ListEvents_FullMethodName = "/bucket.v1alpha1.BucketRuntime/ListEvents" + BucketRuntime_ListBuckets_FullMethodName = "/bucket.v1alpha1.BucketRuntime/ListBuckets" + BucketRuntime_CreateBucket_FullMethodName = "/bucket.v1alpha1.BucketRuntime/CreateBucket" + BucketRuntime_DeleteBucket_FullMethodName = "/bucket.v1alpha1.BucketRuntime/DeleteBucket" + BucketRuntime_ListBucketClasses_FullMethodName = "/bucket.v1alpha1.BucketRuntime/ListBucketClasses" +) + +// BucketRuntimeClient is the client API for BucketRuntime 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 BucketRuntimeClient interface { + ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) + ListBuckets(ctx context.Context, in *ListBucketsRequest, opts ...grpc.CallOption) (*ListBucketsResponse, error) + CreateBucket(ctx context.Context, in *CreateBucketRequest, opts ...grpc.CallOption) (*CreateBucketResponse, error) + DeleteBucket(ctx context.Context, in *DeleteBucketRequest, opts ...grpc.CallOption) (*DeleteBucketResponse, error) + ListBucketClasses(ctx context.Context, in *ListBucketClassesRequest, opts ...grpc.CallOption) (*ListBucketClassesResponse, error) +} + +type bucketRuntimeClient struct { + cc grpc.ClientConnInterface +} + +func NewBucketRuntimeClient(cc grpc.ClientConnInterface) BucketRuntimeClient { + return &bucketRuntimeClient{cc} +} + +func (c *bucketRuntimeClient) ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListEventsResponse) + err := c.cc.Invoke(ctx, BucketRuntime_ListEvents_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bucketRuntimeClient) ListBuckets(ctx context.Context, in *ListBucketsRequest, opts ...grpc.CallOption) (*ListBucketsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListBucketsResponse) + err := c.cc.Invoke(ctx, BucketRuntime_ListBuckets_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bucketRuntimeClient) CreateBucket(ctx context.Context, in *CreateBucketRequest, opts ...grpc.CallOption) (*CreateBucketResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateBucketResponse) + err := c.cc.Invoke(ctx, BucketRuntime_CreateBucket_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bucketRuntimeClient) DeleteBucket(ctx context.Context, in *DeleteBucketRequest, opts ...grpc.CallOption) (*DeleteBucketResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteBucketResponse) + err := c.cc.Invoke(ctx, BucketRuntime_DeleteBucket_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bucketRuntimeClient) ListBucketClasses(ctx context.Context, in *ListBucketClassesRequest, opts ...grpc.CallOption) (*ListBucketClassesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListBucketClassesResponse) + err := c.cc.Invoke(ctx, BucketRuntime_ListBucketClasses_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// BucketRuntimeServer is the server API for BucketRuntime service. +// All implementations must embed UnimplementedBucketRuntimeServer +// for forward compatibility. +type BucketRuntimeServer interface { + ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error) + ListBuckets(context.Context, *ListBucketsRequest) (*ListBucketsResponse, error) + CreateBucket(context.Context, *CreateBucketRequest) (*CreateBucketResponse, error) + DeleteBucket(context.Context, *DeleteBucketRequest) (*DeleteBucketResponse, error) + ListBucketClasses(context.Context, *ListBucketClassesRequest) (*ListBucketClassesResponse, error) + mustEmbedUnimplementedBucketRuntimeServer() +} + +// UnimplementedBucketRuntimeServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedBucketRuntimeServer struct{} + +func (UnimplementedBucketRuntimeServer) ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented") +} +func (UnimplementedBucketRuntimeServer) ListBuckets(context.Context, *ListBucketsRequest) (*ListBucketsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListBuckets not implemented") +} +func (UnimplementedBucketRuntimeServer) CreateBucket(context.Context, *CreateBucketRequest) (*CreateBucketResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateBucket not implemented") +} +func (UnimplementedBucketRuntimeServer) DeleteBucket(context.Context, *DeleteBucketRequest) (*DeleteBucketResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteBucket not implemented") +} +func (UnimplementedBucketRuntimeServer) ListBucketClasses(context.Context, *ListBucketClassesRequest) (*ListBucketClassesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListBucketClasses not implemented") +} +func (UnimplementedBucketRuntimeServer) mustEmbedUnimplementedBucketRuntimeServer() {} +func (UnimplementedBucketRuntimeServer) testEmbeddedByValue() {} + +// UnsafeBucketRuntimeServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to BucketRuntimeServer will +// result in compilation errors. +type UnsafeBucketRuntimeServer interface { + mustEmbedUnimplementedBucketRuntimeServer() +} + +func RegisterBucketRuntimeServer(s grpc.ServiceRegistrar, srv BucketRuntimeServer) { + // If the following call pancis, it indicates UnimplementedBucketRuntimeServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&BucketRuntime_ServiceDesc, srv) +} + +func _BucketRuntime_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListEventsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BucketRuntimeServer).ListEvents(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: BucketRuntime_ListEvents_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BucketRuntimeServer).ListEvents(ctx, req.(*ListEventsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _BucketRuntime_ListBuckets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListBucketsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BucketRuntimeServer).ListBuckets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: BucketRuntime_ListBuckets_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BucketRuntimeServer).ListBuckets(ctx, req.(*ListBucketsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _BucketRuntime_CreateBucket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateBucketRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BucketRuntimeServer).CreateBucket(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: BucketRuntime_CreateBucket_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BucketRuntimeServer).CreateBucket(ctx, req.(*CreateBucketRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _BucketRuntime_DeleteBucket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteBucketRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BucketRuntimeServer).DeleteBucket(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: BucketRuntime_DeleteBucket_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BucketRuntimeServer).DeleteBucket(ctx, req.(*DeleteBucketRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _BucketRuntime_ListBucketClasses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListBucketClassesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BucketRuntimeServer).ListBucketClasses(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: BucketRuntime_ListBucketClasses_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BucketRuntimeServer).ListBucketClasses(ctx, req.(*ListBucketClassesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// BucketRuntime_ServiceDesc is the grpc.ServiceDesc for BucketRuntime service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var BucketRuntime_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "bucket.v1alpha1.BucketRuntime", + HandlerType: (*BucketRuntimeServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListEvents", + Handler: _BucketRuntime_ListEvents_Handler, + }, + { + MethodName: "ListBuckets", + Handler: _BucketRuntime_ListBuckets_Handler, + }, + { + MethodName: "CreateBucket", + Handler: _BucketRuntime_CreateBucket_Handler, + }, + { + MethodName: "DeleteBucket", + Handler: _BucketRuntime_DeleteBucket_Handler, + }, + { + MethodName: "ListBucketClasses", + Handler: _BucketRuntime_ListBucketClasses_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "bucket/v1alpha1/api.proto", +} diff --git a/iri/apis/event/v1alpha1/api.pb.go b/iri/apis/event/v1alpha1/api.pb.go index 5438d793c..bd4ea830b 100644 --- a/iri/apis/event/v1alpha1/api.pb.go +++ b/iri/apis/event/v1alpha1/api.pb.go @@ -1,739 +1,228 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: api.proto +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.1 +// protoc (unknown) +// source: event/v1alpha1/api.proto package v1alpha1 import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" + sync "sync" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" v1alpha1 "github.com/ironcore-dev/ironcore/iri/apis/meta/v1alpha1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Event struct { - Spec *EventSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Event) Reset() { *m = Event{} } -func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{0} -} -func (m *Event) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Event.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Event) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event.Merge(m, src) -} -func (m *Event) XXX_Size() int { - return m.Size() -} -func (m *Event) XXX_DiscardUnknown() { - xxx_messageInfo_Event.DiscardUnknown(m) -} - -var xxx_messageInfo_Event proto.InternalMessageInfo + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Event) GetSpec() *EventSpec { - if m != nil { - return m.Spec - } - return nil + Spec *EventSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` } -type EventSpec struct { - InvolvedObjectMeta *v1alpha1.ObjectMetadata `protobuf:"bytes,1,opt,name=involved_object_meta,json=involvedObjectMeta,proto3" json:"involved_object_meta,omitempty"` - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` - EventTime int64 `protobuf:"varint,5,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *Event) Reset() { + *x = Event{} + mi := &file_event_v1alpha1_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *EventSpec) Reset() { *m = EventSpec{} } -func (*EventSpec) ProtoMessage() {} -func (*EventSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{1} -} -func (m *EventSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventSpec.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *EventSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventSpec.Merge(m, src) -} -func (m *EventSpec) XXX_Size() int { - return m.Size() -} -func (m *EventSpec) XXX_DiscardUnknown() { - xxx_messageInfo_EventSpec.DiscardUnknown(m) +func (x *Event) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_EventSpec proto.InternalMessageInfo - -func (m *EventSpec) GetInvolvedObjectMeta() *v1alpha1.ObjectMetadata { - if m != nil { - return m.InvolvedObjectMeta - } - return nil -} +func (*Event) ProtoMessage() {} -func (m *EventSpec) GetReason() string { - if m != nil { - return m.Reason +func (x *Event) ProtoReflect() protoreflect.Message { + mi := &file_event_v1alpha1_api_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *EventSpec) GetMessage() string { - if m != nil { - return m.Message - } - return "" +// Deprecated: Use Event.ProtoReflect.Descriptor instead. +func (*Event) Descriptor() ([]byte, []int) { + return file_event_v1alpha1_api_proto_rawDescGZIP(), []int{0} } -func (m *EventSpec) GetType() string { - if m != nil { - return m.Type +func (x *Event) GetSpec() *EventSpec { + if x != nil { + return x.Spec } - return "" + return nil } -func (m *EventSpec) GetEventTime() int64 { - if m != nil { - return m.EventTime - } - return 0 -} +type EventSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func init() { - proto.RegisterType((*Event)(nil), "event.v1alpha1.Event") - proto.RegisterType((*EventSpec)(nil), "event.v1alpha1.EventSpec") + InvolvedObjectMeta *v1alpha1.ObjectMetadata `protobuf:"bytes,1,opt,name=involved_object_meta,json=involvedObjectMeta,proto3" json:"involved_object_meta,omitempty"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + EventTime int64 `protobuf:"varint,5,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` } -func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) } - -var fileDescriptor_00212fb1f9d3bf1c = []byte{ - // 320 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x3f, 0x4b, 0x33, 0x41, - 0x10, 0xc6, 0xb3, 0x6f, 0xfe, 0xbc, 0xdc, 0x0a, 0x16, 0x8b, 0xc8, 0x1a, 0xc8, 0x12, 0x52, 0xa5, - 0xc9, 0x2e, 0x51, 0x10, 0x5b, 0x05, 0x4b, 0x09, 0x9c, 0x62, 0x61, 0x13, 0xf6, 0x2e, 0xe3, 0x65, - 0x25, 0x77, 0xbb, 0xdc, 0x6d, 0x0e, 0xec, 0xfc, 0x08, 0x7e, 0x25, 0xbb, 0x94, 0x96, 0x96, 0xe6, - 0xfc, 0x22, 0x92, 0xd1, 0x5c, 0xb4, 0xb3, 0x9b, 0xdf, 0xb3, 0xcf, 0xcc, 0x3c, 0x3b, 0x34, 0xd0, - 0xce, 0x48, 0x97, 0x5b, 0x6f, 0xd9, 0x3e, 0x94, 0x90, 0x79, 0x59, 0x8e, 0xf5, 0xc2, 0xcd, 0xf5, - 0xb8, 0x3b, 0x4a, 0x8c, 0x9f, 0x2f, 0x23, 0x19, 0xdb, 0x54, 0x25, 0x36, 0xb1, 0x0a, 0x6d, 0xd1, - 0xf2, 0x1e, 0x09, 0x01, 0xab, 0xaf, 0xf6, 0xee, 0xf9, 0x0f, 0xbb, 0xc9, 0x6d, 0x16, 0xdb, 0x1c, - 0x46, 0x33, 0x28, 0x6b, 0x50, 0x26, 0x37, 0x4a, 0x3b, 0x53, 0xa8, 0x14, 0xbc, 0x56, 0xdb, 0x3d, - 0xaa, 0x4e, 0x30, 0x38, 0xa5, 0xed, 0xcb, 0x4d, 0x06, 0x36, 0xa2, 0xad, 0xc2, 0x41, 0xcc, 0xff, - 0xf5, 0xc9, 0x70, 0xef, 0xf8, 0x48, 0xfe, 0x4e, 0x26, 0xd1, 0x74, 0xed, 0x20, 0x0e, 0xd1, 0x36, - 0x78, 0x21, 0x34, 0xa8, 0x35, 0x36, 0xa1, 0x07, 0x26, 0x2b, 0xed, 0xa2, 0x84, 0xd9, 0xd4, 0x46, - 0x0f, 0x10, 0xfb, 0xe9, 0x66, 0x21, 0x27, 0x38, 0xac, 0x27, 0x37, 0xb0, 0x9b, 0x35, 0x41, 0xc7, - 0x15, 0x78, 0x3d, 0xd3, 0x5e, 0x87, 0x6c, 0xdb, 0xba, 0xd3, 0xd9, 0x21, 0xed, 0xe4, 0xa0, 0x0b, - 0x9b, 0x61, 0x9e, 0x20, 0xfc, 0x26, 0xc6, 0xe9, 0xff, 0x14, 0x8a, 0x42, 0x27, 0xc0, 0x9b, 0xf8, - 0xb0, 0x45, 0xc6, 0x68, 0xcb, 0x3f, 0x3a, 0xe0, 0x2d, 0x94, 0xb1, 0x66, 0x3d, 0x4a, 0xf1, 0x1b, - 0x53, 0x6f, 0x52, 0xe0, 0xed, 0x3e, 0x19, 0x36, 0xc3, 0x00, 0x95, 0x1b, 0x93, 0xc2, 0xc5, 0xed, - 0x6a, 0x2d, 0xc8, 0xdb, 0x5a, 0x34, 0x9e, 0x2a, 0x41, 0x56, 0x95, 0x20, 0xaf, 0x95, 0x20, 0xef, - 0x95, 0x20, 0xcf, 0x1f, 0xa2, 0x71, 0x77, 0xf6, 0xf7, 0xe3, 0xe2, 0xc8, 0xfa, 0xba, 0x51, 0x07, - 0x4f, 0x7b, 0xf2, 0x19, 0x00, 0x00, 0xff, 0xff, 0xa1, 0xe5, 0xa2, 0x10, 0xe9, 0x01, 0x00, 0x00, +func (x *EventSpec) Reset() { + *x = EventSpec{} + mi := &file_event_v1alpha1_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *Event) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *EventSpec) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Event) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*EventSpec) ProtoMessage() {} -func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) +func (x *EventSpec) ProtoReflect() protoreflect.Message { + mi := &file_event_v1alpha1_api_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} - -func (m *EventSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *EventSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use EventSpec.ProtoReflect.Descriptor instead. +func (*EventSpec) Descriptor() ([]byte, []int) { + return file_event_v1alpha1_api_proto_rawDescGZIP(), []int{1} } -func (m *EventSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EventTime != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.EventTime)) - i-- - dAtA[i] = 0x28 - } - if len(m.Type) > 0 { - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintApi(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0x22 - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintApi(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x1a - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintApi(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x12 +func (x *EventSpec) GetInvolvedObjectMeta() *v1alpha1.ObjectMetadata { + if x != nil { + return x.InvolvedObjectMeta } - if m.InvolvedObjectMeta != nil { - { - size, err := m.InvolvedObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return nil } -func encodeVarintApi(dAtA []byte, offset int, v uint64) int { - offset -= sovApi(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Event) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovApi(uint64(l)) +func (x *EventSpec) GetReason() string { + if x != nil { + return x.Reason } - return n + return "" } -func (m *EventSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.InvolvedObjectMeta != nil { - l = m.InvolvedObjectMeta.Size() - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Type) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.EventTime != 0 { - n += 1 + sovApi(uint64(m.EventTime)) +func (x *EventSpec) GetMessage() string { + if x != nil { + return x.Message } - return n + return "" } -func sovApi(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozApi(x uint64) (n int) { - return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Event) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Event{`, - `Spec:` + strings.Replace(this.Spec.String(), "EventSpec", "EventSpec", 1) + `,`, - `}`, - }, "") - return s -} -func (this *EventSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EventSpec{`, - `InvolvedObjectMeta:` + strings.Replace(fmt.Sprintf("%v", this.InvolvedObjectMeta), "ObjectMetadata", "v1alpha1.ObjectMetadata", 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `EventTime:` + fmt.Sprintf("%v", this.EventTime) + `,`, - `}`, - }, "") - return s -} -func valueToStringApi(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" +func (x *EventSpec) GetType() string { + if x != nil { + return x.Type } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) + return "" } -func (m *Event) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Event: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &EventSpec{} - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *EventSpec) GetEventTime() int64 { + if x != nil { + return x.EventTime } - return nil + return 0 } -func (m *EventSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InvolvedObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.InvolvedObjectMeta == nil { - m.InvolvedObjectMeta = &v1alpha1.ObjectMetadata{} - } - if err := m.InvolvedObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EventTime", wireType) - } - m.EventTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EventTime |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipApi(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthApi - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupApi - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthApi - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +var File_event_v1alpha1_api_proto protoreflect.FileDescriptor + +var file_event_v1alpha1_api_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x17, 0x6d, 0x65, 0x74, 0x61, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x36, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x04, + 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0xc1, 0x01, 0x0a, 0x09, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x4f, 0x0a, 0x14, 0x69, 0x6e, 0x76, + 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6d, 0x65, 0x74, + 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x12, 0x69, 0x6e, 0x76, 0x6f, 0x6c, 0x76, 0x65, 0x64, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 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, 0x12, 0x12, 0x0a, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x42, + 0x3a, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x72, + 0x6f, 0x6e, 0x63, 0x6f, 0x72, 0x65, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x69, 0x72, 0x6f, 0x6e, 0x63, + 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x72, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group") + file_event_v1alpha1_api_proto_rawDescOnce sync.Once + file_event_v1alpha1_api_proto_rawDescData = file_event_v1alpha1_api_proto_rawDesc ) + +func file_event_v1alpha1_api_proto_rawDescGZIP() []byte { + file_event_v1alpha1_api_proto_rawDescOnce.Do(func() { + file_event_v1alpha1_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_event_v1alpha1_api_proto_rawDescData) + }) + return file_event_v1alpha1_api_proto_rawDescData +} + +var file_event_v1alpha1_api_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_event_v1alpha1_api_proto_goTypes = []any{ + (*Event)(nil), // 0: event.v1alpha1.Event + (*EventSpec)(nil), // 1: event.v1alpha1.EventSpec + (*v1alpha1.ObjectMetadata)(nil), // 2: meta.v1alpha1.ObjectMetadata +} +var file_event_v1alpha1_api_proto_depIdxs = []int32{ + 1, // 0: event.v1alpha1.Event.spec:type_name -> event.v1alpha1.EventSpec + 2, // 1: event.v1alpha1.EventSpec.involved_object_meta:type_name -> meta.v1alpha1.ObjectMetadata + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_event_v1alpha1_api_proto_init() } +func file_event_v1alpha1_api_proto_init() { + if File_event_v1alpha1_api_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_event_v1alpha1_api_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_event_v1alpha1_api_proto_goTypes, + DependencyIndexes: file_event_v1alpha1_api_proto_depIdxs, + MessageInfos: file_event_v1alpha1_api_proto_msgTypes, + }.Build() + File_event_v1alpha1_api_proto = out.File + file_event_v1alpha1_api_proto_rawDesc = nil + file_event_v1alpha1_api_proto_goTypes = nil + file_event_v1alpha1_api_proto_depIdxs = nil +} diff --git a/iri/apis/event/v1alpha1/api.proto b/iri/apis/event/v1alpha1/api.proto index b14173643..1d85b8325 100644 --- a/iri/apis/event/v1alpha1/api.proto +++ b/iri/apis/event/v1alpha1/api.proto @@ -3,16 +3,7 @@ syntax = "proto3"; package event.v1alpha1; option go_package = "github.com/ironcore-dev/ironcore/iri/apis/event/v1alpha1"; -import "github.com/gogo/protobuf/gogoproto/gogo.proto"; -import "github.com/ironcore-dev/ironcore/iri/apis/meta/v1alpha1/api.proto"; - -option (gogoproto.goproto_stringer_all) = false; -option (gogoproto.stringer_all) = true; -option (gogoproto.goproto_getters_all) = true; -option (gogoproto.marshaler_all) = true; -option (gogoproto.sizer_all) = true; -option (gogoproto.unmarshaler_all) = true; -option (gogoproto.goproto_unrecognized_all) = false; +import "meta/v1alpha1/api.proto"; message Event { EventSpec spec = 2; diff --git a/iri/apis/machine/v1alpha1/api.pb.go b/iri/apis/machine/v1alpha1/api.pb.go index 930994a21..fffac8282 100644 --- a/iri/apis/machine/v1alpha1/api.pb.go +++ b/iri/apis/machine/v1alpha1/api.pb.go @@ -1,37 +1,27 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: api.proto +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.1 +// protoc (unknown) +// source: machine/v1alpha1/api.proto package v1alpha1 import ( - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" + sync "sync" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" v1alpha11 "github.com/ironcore-dev/ironcore/iri/apis/event/v1alpha1" v1alpha1 "github.com/ironcore-dev/ironcore/iri/apis/meta/v1alpha1" - 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" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Power int32 @@ -40,22 +30,43 @@ const ( Power_POWER_OFF Power = 1 ) -var Power_name = map[int32]string{ - 0: "POWER_ON", - 1: "POWER_OFF", -} +// Enum value maps for Power. +var ( + Power_name = map[int32]string{ + 0: "POWER_ON", + 1: "POWER_OFF", + } + Power_value = map[string]int32{ + "POWER_ON": 0, + "POWER_OFF": 1, + } +) -var Power_value = map[string]int32{ - "POWER_ON": 0, - "POWER_OFF": 1, +func (x Power) Enum() *Power { + p := new(Power) + *p = x + return p } func (x Power) String() string { - return proto.EnumName(Power_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (Power) Descriptor() protoreflect.EnumDescriptor { + return file_machine_v1alpha1_api_proto_enumTypes[0].Descriptor() +} + +func (Power) Type() protoreflect.EnumType { + return &file_machine_v1alpha1_api_proto_enumTypes[0] +} + +func (x Power) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Power.Descriptor instead. func (Power) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{0} + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{0} } type VolumeState int32 @@ -65,22 +76,43 @@ const ( VolumeState_VOLUME_ATTACHED VolumeState = 1 ) -var VolumeState_name = map[int32]string{ - 0: "VOLUME_PENDING", - 1: "VOLUME_ATTACHED", -} +// Enum value maps for VolumeState. +var ( + VolumeState_name = map[int32]string{ + 0: "VOLUME_PENDING", + 1: "VOLUME_ATTACHED", + } + VolumeState_value = map[string]int32{ + "VOLUME_PENDING": 0, + "VOLUME_ATTACHED": 1, + } +) -var VolumeState_value = map[string]int32{ - "VOLUME_PENDING": 0, - "VOLUME_ATTACHED": 1, +func (x VolumeState) Enum() *VolumeState { + p := new(VolumeState) + *p = x + return p } func (x VolumeState) String() string { - return proto.EnumName(VolumeState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (VolumeState) Descriptor() protoreflect.EnumDescriptor { + return file_machine_v1alpha1_api_proto_enumTypes[1].Descriptor() +} + +func (VolumeState) Type() protoreflect.EnumType { + return &file_machine_v1alpha1_api_proto_enumTypes[1] +} + +func (x VolumeState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use VolumeState.Descriptor instead. func (VolumeState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{1} + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{1} } type NetworkInterfaceState int32 @@ -90,22 +122,43 @@ const ( NetworkInterfaceState_NETWORK_INTERFACE_ATTACHED NetworkInterfaceState = 1 ) -var NetworkInterfaceState_name = map[int32]string{ - 0: "NETWORK_INTERFACE_PENDING", - 1: "NETWORK_INTERFACE_ATTACHED", -} +// Enum value maps for NetworkInterfaceState. +var ( + NetworkInterfaceState_name = map[int32]string{ + 0: "NETWORK_INTERFACE_PENDING", + 1: "NETWORK_INTERFACE_ATTACHED", + } + NetworkInterfaceState_value = map[string]int32{ + "NETWORK_INTERFACE_PENDING": 0, + "NETWORK_INTERFACE_ATTACHED": 1, + } +) -var NetworkInterfaceState_value = map[string]int32{ - "NETWORK_INTERFACE_PENDING": 0, - "NETWORK_INTERFACE_ATTACHED": 1, +func (x NetworkInterfaceState) Enum() *NetworkInterfaceState { + p := new(NetworkInterfaceState) + *p = x + return p } func (x NetworkInterfaceState) String() string { - return proto.EnumName(NetworkInterfaceState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NetworkInterfaceState) Descriptor() protoreflect.EnumDescriptor { + return file_machine_v1alpha1_api_proto_enumTypes[2].Descriptor() } +func (NetworkInterfaceState) Type() protoreflect.EnumType { + return &file_machine_v1alpha1_api_proto_enumTypes[2] +} + +func (x NetworkInterfaceState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NetworkInterfaceState.Descriptor instead. func (NetworkInterfaceState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{2} + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{2} } type MachineState int32 @@ -118,11386 +171,2812 @@ const ( MachineState_MACHINE_TERMINATING MachineState = 4 ) -var MachineState_name = map[int32]string{ - 0: "MACHINE_PENDING", - 1: "MACHINE_RUNNING", - 2: "MACHINE_SUSPENDED", - 3: "MACHINE_TERMINATED", - 4: "MACHINE_TERMINATING", -} +// Enum value maps for MachineState. +var ( + MachineState_name = map[int32]string{ + 0: "MACHINE_PENDING", + 1: "MACHINE_RUNNING", + 2: "MACHINE_SUSPENDED", + 3: "MACHINE_TERMINATED", + 4: "MACHINE_TERMINATING", + } + MachineState_value = map[string]int32{ + "MACHINE_PENDING": 0, + "MACHINE_RUNNING": 1, + "MACHINE_SUSPENDED": 2, + "MACHINE_TERMINATED": 3, + "MACHINE_TERMINATING": 4, + } +) -var MachineState_value = map[string]int32{ - "MACHINE_PENDING": 0, - "MACHINE_RUNNING": 1, - "MACHINE_SUSPENDED": 2, - "MACHINE_TERMINATED": 3, - "MACHINE_TERMINATING": 4, +func (x MachineState) Enum() *MachineState { + p := new(MachineState) + *p = x + return p } func (x MachineState) String() string { - return proto.EnumName(MachineState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (MachineState) Descriptor() protoreflect.EnumDescriptor { + return file_machine_v1alpha1_api_proto_enumTypes[3].Descriptor() +} + +func (MachineState) Type() protoreflect.EnumType { + return &file_machine_v1alpha1_api_proto_enumTypes[3] +} + +func (x MachineState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MachineState.Descriptor instead. func (MachineState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{3} + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{3} } type VolumeSpec struct { - Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` - Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"` - Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - SecretData map[string][]byte `protobuf:"bytes,4,rep,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` + Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"` + Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + SecretData map[string][]byte `protobuf:"bytes,4,rep,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *VolumeSpec) Reset() { + *x = VolumeSpec{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VolumeSpec) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VolumeSpec) Reset() { *m = VolumeSpec{} } func (*VolumeSpec) ProtoMessage() {} -func (*VolumeSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{0} -} -func (m *VolumeSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VolumeSpec.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *VolumeSpec) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *VolumeSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeSpec.Merge(m, src) -} -func (m *VolumeSpec) XXX_Size() int { - return m.Size() -} -func (m *VolumeSpec) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeSpec.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_VolumeSpec proto.InternalMessageInfo +// Deprecated: Use VolumeSpec.ProtoReflect.Descriptor instead. +func (*VolumeSpec) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{0} +} -func (m *VolumeSpec) GetDriver() string { - if m != nil { - return m.Driver +func (x *VolumeSpec) GetDriver() string { + if x != nil { + return x.Driver } return "" } -func (m *VolumeSpec) GetHandle() string { - if m != nil { - return m.Handle +func (x *VolumeSpec) GetHandle() string { + if x != nil { + return x.Handle } return "" } -func (m *VolumeSpec) GetAttributes() map[string]string { - if m != nil { - return m.Attributes +func (x *VolumeSpec) GetAttributes() map[string]string { + if x != nil { + return x.Attributes } return nil } -func (m *VolumeSpec) GetSecretData() map[string][]byte { - if m != nil { - return m.SecretData +func (x *VolumeSpec) GetSecretData() map[string][]byte { + if x != nil { + return x.SecretData } return nil } type MachineFilter struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - LabelSelector map[string]string `protobuf:"bytes,2,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + LabelSelector map[string]string `protobuf:"bytes,2,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *MachineFilter) Reset() { + *x = MachineFilter{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MachineFilter) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MachineFilter) Reset() { *m = MachineFilter{} } func (*MachineFilter) ProtoMessage() {} -func (*MachineFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{1} -} -func (m *MachineFilter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MachineFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MachineFilter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *MachineFilter) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MachineFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_MachineFilter.Merge(m, src) -} -func (m *MachineFilter) XXX_Size() int { - return m.Size() -} -func (m *MachineFilter) XXX_DiscardUnknown() { - xxx_messageInfo_MachineFilter.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MachineFilter proto.InternalMessageInfo +// Deprecated: Use MachineFilter.ProtoReflect.Descriptor instead. +func (*MachineFilter) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{1} +} -func (m *MachineFilter) GetId() string { - if m != nil { - return m.Id +func (x *MachineFilter) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *MachineFilter) GetLabelSelector() map[string]string { - if m != nil { - return m.LabelSelector +func (x *MachineFilter) GetLabelSelector() map[string]string { + if x != nil { + return x.LabelSelector } return nil } type EventFilter struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - LabelSelector map[string]string `protobuf:"bytes,2,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - EventsFromTime int64 `protobuf:"varint,3,opt,name=events_from_time,json=eventsFromTime,proto3" json:"events_from_time,omitempty"` - EventsToTime int64 `protobuf:"varint,4,opt,name=events_to_time,json=eventsToTime,proto3" json:"events_to_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + LabelSelector map[string]string `protobuf:"bytes,2,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + EventsFromTime int64 `protobuf:"varint,3,opt,name=events_from_time,json=eventsFromTime,proto3" json:"events_from_time,omitempty"` + EventsToTime int64 `protobuf:"varint,4,opt,name=events_to_time,json=eventsToTime,proto3" json:"events_to_time,omitempty"` +} + +func (x *EventFilter) Reset() { + *x = EventFilter{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EventFilter) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EventFilter) Reset() { *m = EventFilter{} } func (*EventFilter) ProtoMessage() {} -func (*EventFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{2} -} -func (m *EventFilter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventFilter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *EventFilter) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *EventFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventFilter.Merge(m, src) -} -func (m *EventFilter) XXX_Size() int { - return m.Size() -} -func (m *EventFilter) XXX_DiscardUnknown() { - xxx_messageInfo_EventFilter.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_EventFilter proto.InternalMessageInfo +// Deprecated: Use EventFilter.ProtoReflect.Descriptor instead. +func (*EventFilter) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{2} +} -func (m *EventFilter) GetId() string { - if m != nil { - return m.Id +func (x *EventFilter) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *EventFilter) GetLabelSelector() map[string]string { - if m != nil { - return m.LabelSelector +func (x *EventFilter) GetLabelSelector() map[string]string { + if x != nil { + return x.LabelSelector } return nil } -func (m *EventFilter) GetEventsFromTime() int64 { - if m != nil { - return m.EventsFromTime +func (x *EventFilter) GetEventsFromTime() int64 { + if x != nil { + return x.EventsFromTime } return 0 } -func (m *EventFilter) GetEventsToTime() int64 { - if m != nil { - return m.EventsToTime +func (x *EventFilter) GetEventsToTime() int64 { + if x != nil { + return x.EventsToTime } return 0 } type MachineClassCapabilities struct { - CpuMillis int64 `protobuf:"varint,1,opt,name=cpu_millis,json=cpuMillis,proto3" json:"cpu_millis,omitempty"` - MemoryBytes int64 `protobuf:"varint,2,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CpuMillis int64 `protobuf:"varint,1,opt,name=cpu_millis,json=cpuMillis,proto3" json:"cpu_millis,omitempty"` + MemoryBytes int64 `protobuf:"varint,2,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"` +} + +func (x *MachineClassCapabilities) Reset() { + *x = MachineClassCapabilities{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MachineClassCapabilities) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MachineClassCapabilities) Reset() { *m = MachineClassCapabilities{} } func (*MachineClassCapabilities) ProtoMessage() {} -func (*MachineClassCapabilities) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{3} -} -func (m *MachineClassCapabilities) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MachineClassCapabilities) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MachineClassCapabilities.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *MachineClassCapabilities) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MachineClassCapabilities) XXX_Merge(src proto.Message) { - xxx_messageInfo_MachineClassCapabilities.Merge(m, src) -} -func (m *MachineClassCapabilities) XXX_Size() int { - return m.Size() -} -func (m *MachineClassCapabilities) XXX_DiscardUnknown() { - xxx_messageInfo_MachineClassCapabilities.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MachineClassCapabilities proto.InternalMessageInfo +// Deprecated: Use MachineClassCapabilities.ProtoReflect.Descriptor instead. +func (*MachineClassCapabilities) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{3} +} -func (m *MachineClassCapabilities) GetCpuMillis() int64 { - if m != nil { - return m.CpuMillis +func (x *MachineClassCapabilities) GetCpuMillis() int64 { + if x != nil { + return x.CpuMillis } return 0 } -func (m *MachineClassCapabilities) GetMemoryBytes() int64 { - if m != nil { - return m.MemoryBytes +func (x *MachineClassCapabilities) GetMemoryBytes() int64 { + if x != nil { + return x.MemoryBytes } return 0 } type Machine struct { - Metadata *v1alpha1.ObjectMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - Spec *MachineSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - Status *MachineStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *v1alpha1.ObjectMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *MachineSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Status *MachineStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *Machine) Reset() { + *x = Machine{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Machine) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Machine) Reset() { *m = Machine{} } func (*Machine) ProtoMessage() {} -func (*Machine) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{4} -} -func (m *Machine) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Machine) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Machine.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *Machine) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *Machine) XXX_Merge(src proto.Message) { - xxx_messageInfo_Machine.Merge(m, src) -} -func (m *Machine) XXX_Size() int { - return m.Size() -} -func (m *Machine) XXX_DiscardUnknown() { - xxx_messageInfo_Machine.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_Machine proto.InternalMessageInfo +// Deprecated: Use Machine.ProtoReflect.Descriptor instead. +func (*Machine) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{4} +} -func (m *Machine) GetMetadata() *v1alpha1.ObjectMetadata { - if m != nil { - return m.Metadata +func (x *Machine) GetMetadata() *v1alpha1.ObjectMetadata { + if x != nil { + return x.Metadata } return nil } -func (m *Machine) GetSpec() *MachineSpec { - if m != nil { - return m.Spec +func (x *Machine) GetSpec() *MachineSpec { + if x != nil { + return x.Spec } return nil } -func (m *Machine) GetStatus() *MachineStatus { - if m != nil { - return m.Status +func (x *Machine) GetStatus() *MachineStatus { + if x != nil { + return x.Status } return nil } type ImageSpec struct { - Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` +} + +func (x *ImageSpec) Reset() { + *x = ImageSpec{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ImageSpec) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ImageSpec) Reset() { *m = ImageSpec{} } func (*ImageSpec) ProtoMessage() {} -func (*ImageSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{5} -} -func (m *ImageSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImageSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ImageSpec.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ImageSpec) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ImageSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImageSpec.Merge(m, src) -} -func (m *ImageSpec) XXX_Size() int { - return m.Size() -} -func (m *ImageSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ImageSpec.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ImageSpec proto.InternalMessageInfo +// Deprecated: Use ImageSpec.ProtoReflect.Descriptor instead. +func (*ImageSpec) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{5} +} -func (m *ImageSpec) GetImage() string { - if m != nil { - return m.Image +func (x *ImageSpec) GetImage() string { + if x != nil { + return x.Image } return "" } type EmptyDisk struct { - SizeBytes int64 `protobuf:"varint,1,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SizeBytes int64 `protobuf:"varint,1,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"` +} + +func (x *EmptyDisk) Reset() { + *x = EmptyDisk{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EmptyDisk) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EmptyDisk) Reset() { *m = EmptyDisk{} } func (*EmptyDisk) ProtoMessage() {} -func (*EmptyDisk) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{6} -} -func (m *EmptyDisk) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EmptyDisk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EmptyDisk.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *EmptyDisk) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *EmptyDisk) XXX_Merge(src proto.Message) { - xxx_messageInfo_EmptyDisk.Merge(m, src) -} -func (m *EmptyDisk) XXX_Size() int { - return m.Size() -} -func (m *EmptyDisk) XXX_DiscardUnknown() { - xxx_messageInfo_EmptyDisk.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_EmptyDisk proto.InternalMessageInfo +// Deprecated: Use EmptyDisk.ProtoReflect.Descriptor instead. +func (*EmptyDisk) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{6} +} -func (m *EmptyDisk) GetSizeBytes() int64 { - if m != nil { - return m.SizeBytes +func (x *EmptyDisk) GetSizeBytes() int64 { + if x != nil { + return x.SizeBytes } return 0 } type VolumeConnection struct { - Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` - Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"` - Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - SecretData map[string][]byte `protobuf:"bytes,4,rep,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - EncryptionData map[string][]byte `protobuf:"bytes,5,rep,name=encryption_data,json=encryptionData,proto3" json:"encryption_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` + Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"` + Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + SecretData map[string][]byte `protobuf:"bytes,4,rep,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + EncryptionData map[string][]byte `protobuf:"bytes,5,rep,name=encryption_data,json=encryptionData,proto3" json:"encryption_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *VolumeConnection) Reset() { + *x = VolumeConnection{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VolumeConnection) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VolumeConnection) Reset() { *m = VolumeConnection{} } func (*VolumeConnection) ProtoMessage() {} -func (*VolumeConnection) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{7} -} -func (m *VolumeConnection) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeConnection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VolumeConnection.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *VolumeConnection) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *VolumeConnection) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeConnection.Merge(m, src) -} -func (m *VolumeConnection) XXX_Size() int { - return m.Size() -} -func (m *VolumeConnection) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeConnection.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_VolumeConnection proto.InternalMessageInfo +// Deprecated: Use VolumeConnection.ProtoReflect.Descriptor instead. +func (*VolumeConnection) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{7} +} -func (m *VolumeConnection) GetDriver() string { - if m != nil { - return m.Driver +func (x *VolumeConnection) GetDriver() string { + if x != nil { + return x.Driver } return "" } -func (m *VolumeConnection) GetHandle() string { - if m != nil { - return m.Handle +func (x *VolumeConnection) GetHandle() string { + if x != nil { + return x.Handle } return "" } -func (m *VolumeConnection) GetAttributes() map[string]string { - if m != nil { - return m.Attributes +func (x *VolumeConnection) GetAttributes() map[string]string { + if x != nil { + return x.Attributes } return nil } -func (m *VolumeConnection) GetSecretData() map[string][]byte { - if m != nil { - return m.SecretData +func (x *VolumeConnection) GetSecretData() map[string][]byte { + if x != nil { + return x.SecretData } return nil } -func (m *VolumeConnection) GetEncryptionData() map[string][]byte { - if m != nil { - return m.EncryptionData +func (x *VolumeConnection) GetEncryptionData() map[string][]byte { + if x != nil { + return x.EncryptionData } return nil } type Volume struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Device string `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"` - EmptyDisk *EmptyDisk `protobuf:"bytes,4,opt,name=empty_disk,json=emptyDisk,proto3" json:"empty_disk,omitempty"` - Connection *VolumeConnection `protobuf:"bytes,5,opt,name=connection,proto3" json:"connection,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Device string `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"` + EmptyDisk *EmptyDisk `protobuf:"bytes,4,opt,name=empty_disk,json=emptyDisk,proto3" json:"empty_disk,omitempty"` + Connection *VolumeConnection `protobuf:"bytes,5,opt,name=connection,proto3" json:"connection,omitempty"` +} + +func (x *Volume) Reset() { + *x = Volume{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Volume) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Volume) Reset() { *m = Volume{} } func (*Volume) ProtoMessage() {} -func (*Volume) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{8} -} -func (m *Volume) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Volume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Volume.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *Volume) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *Volume) XXX_Merge(src proto.Message) { - xxx_messageInfo_Volume.Merge(m, src) -} -func (m *Volume) XXX_Size() int { - return m.Size() -} -func (m *Volume) XXX_DiscardUnknown() { - xxx_messageInfo_Volume.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_Volume proto.InternalMessageInfo +// Deprecated: Use Volume.ProtoReflect.Descriptor instead. +func (*Volume) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{8} +} -func (m *Volume) GetName() string { - if m != nil { - return m.Name +func (x *Volume) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *Volume) GetDevice() string { - if m != nil { - return m.Device +func (x *Volume) GetDevice() string { + if x != nil { + return x.Device } return "" } -func (m *Volume) GetEmptyDisk() *EmptyDisk { - if m != nil { - return m.EmptyDisk +func (x *Volume) GetEmptyDisk() *EmptyDisk { + if x != nil { + return x.EmptyDisk } return nil } -func (m *Volume) GetConnection() *VolumeConnection { - if m != nil { - return m.Connection +func (x *Volume) GetConnection() *VolumeConnection { + if x != nil { + return x.Connection } return nil } type NetworkInterface struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - NetworkId string `protobuf:"bytes,2,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` - Ips []string `protobuf:"bytes,3,rep,name=ips,proto3" json:"ips,omitempty"` - Attributes map[string]string `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + NetworkId string `protobuf:"bytes,2,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` + Ips []string `protobuf:"bytes,3,rep,name=ips,proto3" json:"ips,omitempty"` + Attributes map[string]string `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *NetworkInterface) Reset() { + *x = NetworkInterface{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NetworkInterface) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NetworkInterface) Reset() { *m = NetworkInterface{} } func (*NetworkInterface) ProtoMessage() {} -func (*NetworkInterface) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{9} -} -func (m *NetworkInterface) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NetworkInterface.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *NetworkInterface) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *NetworkInterface) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkInterface.Merge(m, src) -} -func (m *NetworkInterface) XXX_Size() int { - return m.Size() -} -func (m *NetworkInterface) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkInterface.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_NetworkInterface proto.InternalMessageInfo +// Deprecated: Use NetworkInterface.ProtoReflect.Descriptor instead. +func (*NetworkInterface) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{9} +} -func (m *NetworkInterface) GetName() string { - if m != nil { - return m.Name +func (x *NetworkInterface) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *NetworkInterface) GetNetworkId() string { - if m != nil { - return m.NetworkId +func (x *NetworkInterface) GetNetworkId() string { + if x != nil { + return x.NetworkId } return "" } -func (m *NetworkInterface) GetIps() []string { - if m != nil { - return m.Ips +func (x *NetworkInterface) GetIps() []string { + if x != nil { + return x.Ips } return nil } -func (m *NetworkInterface) GetAttributes() map[string]string { - if m != nil { - return m.Attributes +func (x *NetworkInterface) GetAttributes() map[string]string { + if x != nil { + return x.Attributes } return nil } type MachineSpec struct { - Power Power `protobuf:"varint,1,opt,name=power,proto3,enum=machine.v1alpha1.Power" json:"power,omitempty"` - Image *ImageSpec `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` - Class string `protobuf:"bytes,3,opt,name=class,proto3" json:"class,omitempty"` - IgnitionData []byte `protobuf:"bytes,4,opt,name=ignition_data,json=ignitionData,proto3" json:"ignition_data,omitempty"` - Volumes []*Volume `protobuf:"bytes,5,rep,name=volumes,proto3" json:"volumes,omitempty"` - NetworkInterfaces []*NetworkInterface `protobuf:"bytes,6,rep,name=network_interfaces,json=networkInterfaces,proto3" json:"network_interfaces,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Power Power `protobuf:"varint,1,opt,name=power,proto3,enum=machine.v1alpha1.Power" json:"power,omitempty"` + Image *ImageSpec `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` + Class string `protobuf:"bytes,3,opt,name=class,proto3" json:"class,omitempty"` + IgnitionData []byte `protobuf:"bytes,4,opt,name=ignition_data,json=ignitionData,proto3" json:"ignition_data,omitempty"` + Volumes []*Volume `protobuf:"bytes,5,rep,name=volumes,proto3" json:"volumes,omitempty"` + NetworkInterfaces []*NetworkInterface `protobuf:"bytes,6,rep,name=network_interfaces,json=networkInterfaces,proto3" json:"network_interfaces,omitempty"` +} + +func (x *MachineSpec) Reset() { + *x = MachineSpec{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MachineSpec) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MachineSpec) Reset() { *m = MachineSpec{} } func (*MachineSpec) ProtoMessage() {} -func (*MachineSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{10} -} -func (m *MachineSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MachineSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MachineSpec.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *MachineSpec) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MachineSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_MachineSpec.Merge(m, src) -} -func (m *MachineSpec) XXX_Size() int { - return m.Size() -} -func (m *MachineSpec) XXX_DiscardUnknown() { - xxx_messageInfo_MachineSpec.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MachineSpec proto.InternalMessageInfo +// Deprecated: Use MachineSpec.ProtoReflect.Descriptor instead. +func (*MachineSpec) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{10} +} -func (m *MachineSpec) GetPower() Power { - if m != nil { - return m.Power +func (x *MachineSpec) GetPower() Power { + if x != nil { + return x.Power } return Power_POWER_ON } -func (m *MachineSpec) GetImage() *ImageSpec { - if m != nil { - return m.Image +func (x *MachineSpec) GetImage() *ImageSpec { + if x != nil { + return x.Image } return nil } -func (m *MachineSpec) GetClass() string { - if m != nil { - return m.Class +func (x *MachineSpec) GetClass() string { + if x != nil { + return x.Class } return "" } -func (m *MachineSpec) GetIgnitionData() []byte { - if m != nil { - return m.IgnitionData +func (x *MachineSpec) GetIgnitionData() []byte { + if x != nil { + return x.IgnitionData } return nil } -func (m *MachineSpec) GetVolumes() []*Volume { - if m != nil { - return m.Volumes +func (x *MachineSpec) GetVolumes() []*Volume { + if x != nil { + return x.Volumes } return nil } -func (m *MachineSpec) GetNetworkInterfaces() []*NetworkInterface { - if m != nil { - return m.NetworkInterfaces +func (x *MachineSpec) GetNetworkInterfaces() []*NetworkInterface { + if x != nil { + return x.NetworkInterfaces } return nil } type MachineStatus struct { - ObservedGeneration int64 `protobuf:"varint,1,opt,name=observed_generation,json=observedGeneration,proto3" json:"observed_generation,omitempty"` - State MachineState `protobuf:"varint,2,opt,name=state,proto3,enum=machine.v1alpha1.MachineState" json:"state,omitempty"` - ImageRef string `protobuf:"bytes,3,opt,name=image_ref,json=imageRef,proto3" json:"image_ref,omitempty"` - Volumes []*VolumeStatus `protobuf:"bytes,4,rep,name=volumes,proto3" json:"volumes,omitempty"` - NetworkInterfaces []*NetworkInterfaceStatus `protobuf:"bytes,5,rep,name=network_interfaces,json=networkInterfaces,proto3" json:"network_interfaces,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ObservedGeneration int64 `protobuf:"varint,1,opt,name=observed_generation,json=observedGeneration,proto3" json:"observed_generation,omitempty"` + State MachineState `protobuf:"varint,2,opt,name=state,proto3,enum=machine.v1alpha1.MachineState" json:"state,omitempty"` + ImageRef string `protobuf:"bytes,3,opt,name=image_ref,json=imageRef,proto3" json:"image_ref,omitempty"` + Volumes []*VolumeStatus `protobuf:"bytes,4,rep,name=volumes,proto3" json:"volumes,omitempty"` + NetworkInterfaces []*NetworkInterfaceStatus `protobuf:"bytes,5,rep,name=network_interfaces,json=networkInterfaces,proto3" json:"network_interfaces,omitempty"` +} + +func (x *MachineStatus) Reset() { + *x = MachineStatus{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MachineStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MachineStatus) Reset() { *m = MachineStatus{} } func (*MachineStatus) ProtoMessage() {} -func (*MachineStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{11} -} -func (m *MachineStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MachineStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MachineStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *MachineStatus) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MachineStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_MachineStatus.Merge(m, src) -} -func (m *MachineStatus) XXX_Size() int { - return m.Size() -} -func (m *MachineStatus) XXX_DiscardUnknown() { - xxx_messageInfo_MachineStatus.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MachineStatus proto.InternalMessageInfo +// Deprecated: Use MachineStatus.ProtoReflect.Descriptor instead. +func (*MachineStatus) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{11} +} -func (m *MachineStatus) GetObservedGeneration() int64 { - if m != nil { - return m.ObservedGeneration +func (x *MachineStatus) GetObservedGeneration() int64 { + if x != nil { + return x.ObservedGeneration } return 0 } -func (m *MachineStatus) GetState() MachineState { - if m != nil { - return m.State +func (x *MachineStatus) GetState() MachineState { + if x != nil { + return x.State } return MachineState_MACHINE_PENDING } -func (m *MachineStatus) GetImageRef() string { - if m != nil { - return m.ImageRef +func (x *MachineStatus) GetImageRef() string { + if x != nil { + return x.ImageRef } return "" } -func (m *MachineStatus) GetVolumes() []*VolumeStatus { - if m != nil { - return m.Volumes +func (x *MachineStatus) GetVolumes() []*VolumeStatus { + if x != nil { + return x.Volumes } return nil } -func (m *MachineStatus) GetNetworkInterfaces() []*NetworkInterfaceStatus { - if m != nil { - return m.NetworkInterfaces +func (x *MachineStatus) GetNetworkInterfaces() []*NetworkInterfaceStatus { + if x != nil { + return x.NetworkInterfaces } return nil } type VolumeStatus struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"` - State VolumeState `protobuf:"varint,3,opt,name=state,proto3,enum=machine.v1alpha1.VolumeState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"` + State VolumeState `protobuf:"varint,3,opt,name=state,proto3,enum=machine.v1alpha1.VolumeState" json:"state,omitempty"` +} + +func (x *VolumeStatus) Reset() { + *x = VolumeStatus{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VolumeStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VolumeStatus) Reset() { *m = VolumeStatus{} } func (*VolumeStatus) ProtoMessage() {} -func (*VolumeStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{12} -} -func (m *VolumeStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VolumeStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *VolumeStatus) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *VolumeStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeStatus.Merge(m, src) -} -func (m *VolumeStatus) XXX_Size() int { - return m.Size() -} -func (m *VolumeStatus) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeStatus.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_VolumeStatus proto.InternalMessageInfo +// Deprecated: Use VolumeStatus.ProtoReflect.Descriptor instead. +func (*VolumeStatus) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{12} +} -func (m *VolumeStatus) GetName() string { - if m != nil { - return m.Name +func (x *VolumeStatus) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *VolumeStatus) GetHandle() string { - if m != nil { - return m.Handle +func (x *VolumeStatus) GetHandle() string { + if x != nil { + return x.Handle } return "" } -func (m *VolumeStatus) GetState() VolumeState { - if m != nil { - return m.State +func (x *VolumeStatus) GetState() VolumeState { + if x != nil { + return x.State } return VolumeState_VOLUME_PENDING } type NetworkInterfaceStatus struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"` - State NetworkInterfaceState `protobuf:"varint,3,opt,name=state,proto3,enum=machine.v1alpha1.NetworkInterfaceState" json:"state,omitempty"` - Ips []string `protobuf:"bytes,4,rep,name=ips,proto3" json:"ips,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"` + State NetworkInterfaceState `protobuf:"varint,3,opt,name=state,proto3,enum=machine.v1alpha1.NetworkInterfaceState" json:"state,omitempty"` + Ips []string `protobuf:"bytes,4,rep,name=ips,proto3" json:"ips,omitempty"` +} + +func (x *NetworkInterfaceStatus) Reset() { + *x = NetworkInterfaceStatus{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NetworkInterfaceStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NetworkInterfaceStatus) Reset() { *m = NetworkInterfaceStatus{} } func (*NetworkInterfaceStatus) ProtoMessage() {} -func (*NetworkInterfaceStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{13} -} -func (m *NetworkInterfaceStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkInterfaceStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NetworkInterfaceStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *NetworkInterfaceStatus) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *NetworkInterfaceStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkInterfaceStatus.Merge(m, src) -} -func (m *NetworkInterfaceStatus) XXX_Size() int { - return m.Size() -} -func (m *NetworkInterfaceStatus) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkInterfaceStatus.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_NetworkInterfaceStatus proto.InternalMessageInfo +// Deprecated: Use NetworkInterfaceStatus.ProtoReflect.Descriptor instead. +func (*NetworkInterfaceStatus) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{13} +} -func (m *NetworkInterfaceStatus) GetName() string { - if m != nil { - return m.Name +func (x *NetworkInterfaceStatus) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *NetworkInterfaceStatus) GetHandle() string { - if m != nil { - return m.Handle +func (x *NetworkInterfaceStatus) GetHandle() string { + if x != nil { + return x.Handle } return "" } -func (m *NetworkInterfaceStatus) GetState() NetworkInterfaceState { - if m != nil { - return m.State +func (x *NetworkInterfaceStatus) GetState() NetworkInterfaceState { + if x != nil { + return x.State } return NetworkInterfaceState_NETWORK_INTERFACE_PENDING } -func (m *NetworkInterfaceStatus) GetIps() []string { - if m != nil { - return m.Ips +func (x *NetworkInterfaceStatus) GetIps() []string { + if x != nil { + return x.Ips } return nil } type MachineClass struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Capabilities *MachineClassCapabilities `protobuf:"bytes,2,opt,name=capabilities,proto3" json:"capabilities,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Capabilities *MachineClassCapabilities `protobuf:"bytes,2,opt,name=capabilities,proto3" json:"capabilities,omitempty"` +} + +func (x *MachineClass) Reset() { + *x = MachineClass{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MachineClass) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MachineClass) Reset() { *m = MachineClass{} } func (*MachineClass) ProtoMessage() {} -func (*MachineClass) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{14} -} -func (m *MachineClass) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MachineClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MachineClass.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *MachineClass) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MachineClass) XXX_Merge(src proto.Message) { - xxx_messageInfo_MachineClass.Merge(m, src) -} -func (m *MachineClass) XXX_Size() int { - return m.Size() -} -func (m *MachineClass) XXX_DiscardUnknown() { - xxx_messageInfo_MachineClass.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MachineClass proto.InternalMessageInfo +// Deprecated: Use MachineClass.ProtoReflect.Descriptor instead. +func (*MachineClass) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{14} +} -func (m *MachineClass) GetName() string { - if m != nil { - return m.Name +func (x *MachineClass) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *MachineClass) GetCapabilities() *MachineClassCapabilities { - if m != nil { - return m.Capabilities +func (x *MachineClass) GetCapabilities() *MachineClassCapabilities { + if x != nil { + return x.Capabilities } return nil } type MachineClassStatus struct { - MachineClass *MachineClass `protobuf:"bytes,1,opt,name=machine_class,json=machineClass,proto3" json:"machine_class,omitempty"` - Quantity int64 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MachineClass *MachineClass `protobuf:"bytes,1,opt,name=machine_class,json=machineClass,proto3" json:"machine_class,omitempty"` + Quantity int64 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"` +} + +func (x *MachineClassStatus) Reset() { + *x = MachineClassStatus{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MachineClassStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MachineClassStatus) Reset() { *m = MachineClassStatus{} } func (*MachineClassStatus) ProtoMessage() {} -func (*MachineClassStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{15} -} -func (m *MachineClassStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MachineClassStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MachineClassStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *MachineClassStatus) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MachineClassStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_MachineClassStatus.Merge(m, src) -} -func (m *MachineClassStatus) XXX_Size() int { - return m.Size() -} -func (m *MachineClassStatus) XXX_DiscardUnknown() { - xxx_messageInfo_MachineClassStatus.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MachineClassStatus proto.InternalMessageInfo +// Deprecated: Use MachineClassStatus.ProtoReflect.Descriptor instead. +func (*MachineClassStatus) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{15} +} -func (m *MachineClassStatus) GetMachineClass() *MachineClass { - if m != nil { - return m.MachineClass +func (x *MachineClassStatus) GetMachineClass() *MachineClass { + if x != nil { + return x.MachineClass } return nil } -func (m *MachineClassStatus) GetQuantity() int64 { - if m != nil { - return m.Quantity +func (x *MachineClassStatus) GetQuantity() int64 { + if x != nil { + return x.Quantity } return 0 } type VersionRequest struct { - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` +} + +func (x *VersionRequest) Reset() { + *x = VersionRequest{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VersionRequest) Reset() { *m = VersionRequest{} } func (*VersionRequest) ProtoMessage() {} -func (*VersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{16} -} -func (m *VersionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VersionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *VersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *VersionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VersionRequest.Merge(m, src) -} -func (m *VersionRequest) XXX_Size() int { - return m.Size() -} -func (m *VersionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VersionRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_VersionRequest proto.InternalMessageInfo +// Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead. +func (*VersionRequest) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{16} +} -func (m *VersionRequest) GetVersion() string { - if m != nil { - return m.Version +func (x *VersionRequest) GetVersion() string { + if x != nil { + return x.Version } return "" } type VersionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Name of the machine runtime. RuntimeName string `protobuf:"bytes,1,opt,name=runtime_name,json=runtimeName,proto3" json:"runtime_name,omitempty"` // Version of the machine runtime. The string must be // semver-compatible. - RuntimeVersion string `protobuf:"bytes,2,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + RuntimeVersion string `protobuf:"bytes,2,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"` } -func (m *VersionResponse) Reset() { *m = VersionResponse{} } -func (*VersionResponse) ProtoMessage() {} -func (*VersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{17} -} -func (m *VersionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VersionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *VersionResponse) Reset() { + *x = VersionResponse{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *VersionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_VersionResponse.Merge(m, src) + +func (x *VersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VersionResponse) XXX_Size() int { - return m.Size() -} -func (m *VersionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_VersionResponse.DiscardUnknown(m) + +func (*VersionResponse) ProtoMessage() {} + +func (x *VersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_VersionResponse proto.InternalMessageInfo +// Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead. +func (*VersionResponse) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{17} +} -func (m *VersionResponse) GetRuntimeName() string { - if m != nil { - return m.RuntimeName +func (x *VersionResponse) GetRuntimeName() string { + if x != nil { + return x.RuntimeName } return "" } -func (m *VersionResponse) GetRuntimeVersion() string { - if m != nil { - return m.RuntimeVersion +func (x *VersionResponse) GetRuntimeVersion() string { + if x != nil { + return x.RuntimeVersion } return "" } type ListMachinesRequest struct { - Filter *MachineFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Filter *MachineFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` +} + +func (x *ListMachinesRequest) Reset() { + *x = ListMachinesRequest{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListMachinesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListMachinesRequest) Reset() { *m = ListMachinesRequest{} } func (*ListMachinesRequest) ProtoMessage() {} -func (*ListMachinesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{18} -} -func (m *ListMachinesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListMachinesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListMachinesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ListMachinesRequest) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListMachinesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListMachinesRequest.Merge(m, src) -} -func (m *ListMachinesRequest) XXX_Size() int { - return m.Size() -} -func (m *ListMachinesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListMachinesRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListMachinesRequest proto.InternalMessageInfo +// Deprecated: Use ListMachinesRequest.ProtoReflect.Descriptor instead. +func (*ListMachinesRequest) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{18} +} -func (m *ListMachinesRequest) GetFilter() *MachineFilter { - if m != nil { - return m.Filter +func (x *ListMachinesRequest) GetFilter() *MachineFilter { + if x != nil { + return x.Filter } return nil } type ListMachinesResponse struct { - Machines []*Machine `protobuf:"bytes,1,rep,name=machines,proto3" json:"machines,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Machines []*Machine `protobuf:"bytes,1,rep,name=machines,proto3" json:"machines,omitempty"` +} + +func (x *ListMachinesResponse) Reset() { + *x = ListMachinesResponse{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListMachinesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListMachinesResponse) Reset() { *m = ListMachinesResponse{} } func (*ListMachinesResponse) ProtoMessage() {} -func (*ListMachinesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{19} -} -func (m *ListMachinesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListMachinesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListMachinesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ListMachinesResponse) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListMachinesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListMachinesResponse.Merge(m, src) -} -func (m *ListMachinesResponse) XXX_Size() int { - return m.Size() -} -func (m *ListMachinesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListMachinesResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListMachinesResponse proto.InternalMessageInfo +// Deprecated: Use ListMachinesResponse.ProtoReflect.Descriptor instead. +func (*ListMachinesResponse) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{19} +} -func (m *ListMachinesResponse) GetMachines() []*Machine { - if m != nil { - return m.Machines +func (x *ListMachinesResponse) GetMachines() []*Machine { + if x != nil { + return x.Machines } return nil } type ListEventsRequest struct { - Filter *EventFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Filter *EventFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` +} + +func (x *ListEventsRequest) Reset() { + *x = ListEventsRequest{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListEventsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListEventsRequest) Reset() { *m = ListEventsRequest{} } func (*ListEventsRequest) ProtoMessage() {} -func (*ListEventsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{20} -} -func (m *ListEventsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListEventsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ListEventsRequest) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListEventsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListEventsRequest.Merge(m, src) -} -func (m *ListEventsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListEventsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListEventsRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListEventsRequest proto.InternalMessageInfo +// Deprecated: Use ListEventsRequest.ProtoReflect.Descriptor instead. +func (*ListEventsRequest) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{20} +} -func (m *ListEventsRequest) GetFilter() *EventFilter { - if m != nil { - return m.Filter +func (x *ListEventsRequest) GetFilter() *EventFilter { + if x != nil { + return x.Filter } return nil } type ListEventsResponse struct { - Events []*v1alpha11.Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Events []*v1alpha11.Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` +} + +func (x *ListEventsResponse) Reset() { + *x = ListEventsResponse{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListEventsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListEventsResponse) Reset() { *m = ListEventsResponse{} } func (*ListEventsResponse) ProtoMessage() {} -func (*ListEventsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{21} -} -func (m *ListEventsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListEventsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ListEventsResponse) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListEventsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListEventsResponse.Merge(m, src) -} -func (m *ListEventsResponse) XXX_Size() int { - return m.Size() -} -func (m *ListEventsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListEventsResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListEventsResponse proto.InternalMessageInfo +// Deprecated: Use ListEventsResponse.ProtoReflect.Descriptor instead. +func (*ListEventsResponse) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{21} +} -func (m *ListEventsResponse) GetEvents() []*v1alpha11.Event { - if m != nil { - return m.Events +func (x *ListEventsResponse) GetEvents() []*v1alpha11.Event { + if x != nil { + return x.Events } return nil } type CreateMachineRequest struct { - Machine *Machine `protobuf:"bytes,1,opt,name=machine,proto3" json:"machine,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Machine *Machine `protobuf:"bytes,1,opt,name=machine,proto3" json:"machine,omitempty"` +} + +func (x *CreateMachineRequest) Reset() { + *x = CreateMachineRequest{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateMachineRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateMachineRequest) Reset() { *m = CreateMachineRequest{} } func (*CreateMachineRequest) ProtoMessage() {} -func (*CreateMachineRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{22} -} -func (m *CreateMachineRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CreateMachineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CreateMachineRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *CreateMachineRequest) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *CreateMachineRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateMachineRequest.Merge(m, src) -} -func (m *CreateMachineRequest) XXX_Size() int { - return m.Size() -} -func (m *CreateMachineRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateMachineRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_CreateMachineRequest proto.InternalMessageInfo +// Deprecated: Use CreateMachineRequest.ProtoReflect.Descriptor instead. +func (*CreateMachineRequest) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{22} +} -func (m *CreateMachineRequest) GetMachine() *Machine { - if m != nil { - return m.Machine +func (x *CreateMachineRequest) GetMachine() *Machine { + if x != nil { + return x.Machine } return nil } type CreateMachineResponse struct { - Machine *Machine `protobuf:"bytes,1,opt,name=machine,proto3" json:"machine,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Machine *Machine `protobuf:"bytes,1,opt,name=machine,proto3" json:"machine,omitempty"` +} + +func (x *CreateMachineResponse) Reset() { + *x = CreateMachineResponse{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateMachineResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateMachineResponse) Reset() { *m = CreateMachineResponse{} } func (*CreateMachineResponse) ProtoMessage() {} -func (*CreateMachineResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{23} -} -func (m *CreateMachineResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CreateMachineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CreateMachineResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *CreateMachineResponse) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *CreateMachineResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateMachineResponse.Merge(m, src) -} -func (m *CreateMachineResponse) XXX_Size() int { - return m.Size() -} -func (m *CreateMachineResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateMachineResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_CreateMachineResponse proto.InternalMessageInfo +// Deprecated: Use CreateMachineResponse.ProtoReflect.Descriptor instead. +func (*CreateMachineResponse) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{23} +} -func (m *CreateMachineResponse) GetMachine() *Machine { - if m != nil { - return m.Machine +func (x *CreateMachineResponse) GetMachine() *Machine { + if x != nil { + return x.Machine } return nil } type DeleteMachineRequest struct { - MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` +} + +func (x *DeleteMachineRequest) Reset() { + *x = DeleteMachineRequest{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteMachineRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteMachineRequest) Reset() { *m = DeleteMachineRequest{} } func (*DeleteMachineRequest) ProtoMessage() {} -func (*DeleteMachineRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{24} -} -func (m *DeleteMachineRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteMachineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteMachineRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *DeleteMachineRequest) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DeleteMachineRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteMachineRequest.Merge(m, src) -} -func (m *DeleteMachineRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteMachineRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteMachineRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DeleteMachineRequest proto.InternalMessageInfo +// Deprecated: Use DeleteMachineRequest.ProtoReflect.Descriptor instead. +func (*DeleteMachineRequest) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{24} +} -func (m *DeleteMachineRequest) GetMachineId() string { - if m != nil { - return m.MachineId +func (x *DeleteMachineRequest) GetMachineId() string { + if x != nil { + return x.MachineId } return "" } type DeleteMachineResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *DeleteMachineResponse) Reset() { + *x = DeleteMachineResponse{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteMachineResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteMachineResponse) Reset() { *m = DeleteMachineResponse{} } func (*DeleteMachineResponse) ProtoMessage() {} -func (*DeleteMachineResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{25} -} -func (m *DeleteMachineResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteMachineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteMachineResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *DeleteMachineResponse) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *DeleteMachineResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteMachineResponse.Merge(m, src) -} -func (m *DeleteMachineResponse) XXX_Size() int { - return m.Size() + +// Deprecated: Use DeleteMachineResponse.ProtoReflect.Descriptor instead. +func (*DeleteMachineResponse) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{25} } -func (m *DeleteMachineResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteMachineResponse.DiscardUnknown(m) + +type UpdateMachineAnnotationsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` + Annotations map[string]string `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -var xxx_messageInfo_DeleteMachineResponse proto.InternalMessageInfo +func (x *UpdateMachineAnnotationsRequest) Reset() { + *x = UpdateMachineAnnotationsRequest{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -type UpdateMachineAnnotationsRequest struct { - MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` - Annotations map[string]string `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *UpdateMachineAnnotationsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateMachineAnnotationsRequest) Reset() { *m = UpdateMachineAnnotationsRequest{} } func (*UpdateMachineAnnotationsRequest) ProtoMessage() {} -func (*UpdateMachineAnnotationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{26} -} -func (m *UpdateMachineAnnotationsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateMachineAnnotationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateMachineAnnotationsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *UpdateMachineAnnotationsRequest) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *UpdateMachineAnnotationsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateMachineAnnotationsRequest.Merge(m, src) -} -func (m *UpdateMachineAnnotationsRequest) XXX_Size() int { - return m.Size() -} -func (m *UpdateMachineAnnotationsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateMachineAnnotationsRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateMachineAnnotationsRequest proto.InternalMessageInfo +// Deprecated: Use UpdateMachineAnnotationsRequest.ProtoReflect.Descriptor instead. +func (*UpdateMachineAnnotationsRequest) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{26} +} -func (m *UpdateMachineAnnotationsRequest) GetMachineId() string { - if m != nil { - return m.MachineId +func (x *UpdateMachineAnnotationsRequest) GetMachineId() string { + if x != nil { + return x.MachineId } return "" } -func (m *UpdateMachineAnnotationsRequest) GetAnnotations() map[string]string { - if m != nil { - return m.Annotations +func (x *UpdateMachineAnnotationsRequest) GetAnnotations() map[string]string { + if x != nil { + return x.Annotations } return nil } type UpdateMachineAnnotationsResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UpdateMachineAnnotationsResponse) Reset() { + *x = UpdateMachineAnnotationsResponse{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateMachineAnnotationsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateMachineAnnotationsResponse) Reset() { *m = UpdateMachineAnnotationsResponse{} } func (*UpdateMachineAnnotationsResponse) ProtoMessage() {} -func (*UpdateMachineAnnotationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{27} -} -func (m *UpdateMachineAnnotationsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateMachineAnnotationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateMachineAnnotationsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *UpdateMachineAnnotationsResponse) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *UpdateMachineAnnotationsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateMachineAnnotationsResponse.Merge(m, src) -} -func (m *UpdateMachineAnnotationsResponse) XXX_Size() int { - return m.Size() + +// Deprecated: Use UpdateMachineAnnotationsResponse.ProtoReflect.Descriptor instead. +func (*UpdateMachineAnnotationsResponse) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{27} } -func (m *UpdateMachineAnnotationsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateMachineAnnotationsResponse.DiscardUnknown(m) + +type UpdateMachinePowerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` + Power Power `protobuf:"varint,2,opt,name=power,proto3,enum=machine.v1alpha1.Power" json:"power,omitempty"` } -var xxx_messageInfo_UpdateMachineAnnotationsResponse proto.InternalMessageInfo +func (x *UpdateMachinePowerRequest) Reset() { + *x = UpdateMachinePowerRequest{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -type UpdateMachinePowerRequest struct { - MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` - Power Power `protobuf:"varint,2,opt,name=power,proto3,enum=machine.v1alpha1.Power" json:"power,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *UpdateMachinePowerRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateMachinePowerRequest) Reset() { *m = UpdateMachinePowerRequest{} } func (*UpdateMachinePowerRequest) ProtoMessage() {} -func (*UpdateMachinePowerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{28} -} -func (m *UpdateMachinePowerRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateMachinePowerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateMachinePowerRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *UpdateMachinePowerRequest) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *UpdateMachinePowerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateMachinePowerRequest.Merge(m, src) -} -func (m *UpdateMachinePowerRequest) XXX_Size() int { - return m.Size() -} -func (m *UpdateMachinePowerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateMachinePowerRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateMachinePowerRequest proto.InternalMessageInfo +// Deprecated: Use UpdateMachinePowerRequest.ProtoReflect.Descriptor instead. +func (*UpdateMachinePowerRequest) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{28} +} -func (m *UpdateMachinePowerRequest) GetMachineId() string { - if m != nil { - return m.MachineId +func (x *UpdateMachinePowerRequest) GetMachineId() string { + if x != nil { + return x.MachineId } return "" } -func (m *UpdateMachinePowerRequest) GetPower() Power { - if m != nil { - return m.Power +func (x *UpdateMachinePowerRequest) GetPower() Power { + if x != nil { + return x.Power } return Power_POWER_ON } type UpdateMachinePowerResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UpdateMachinePowerResponse) Reset() { + *x = UpdateMachinePowerResponse{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateMachinePowerResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateMachinePowerResponse) Reset() { *m = UpdateMachinePowerResponse{} } func (*UpdateMachinePowerResponse) ProtoMessage() {} -func (*UpdateMachinePowerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{29} -} -func (m *UpdateMachinePowerResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateMachinePowerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateMachinePowerResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *UpdateMachinePowerResponse) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *UpdateMachinePowerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateMachinePowerResponse.Merge(m, src) -} -func (m *UpdateMachinePowerResponse) XXX_Size() int { - return m.Size() + +// Deprecated: Use UpdateMachinePowerResponse.ProtoReflect.Descriptor instead. +func (*UpdateMachinePowerResponse) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{29} } -func (m *UpdateMachinePowerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateMachinePowerResponse.DiscardUnknown(m) + +type AttachVolumeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` + Volume *Volume `protobuf:"bytes,2,opt,name=volume,proto3" json:"volume,omitempty"` } -var xxx_messageInfo_UpdateMachinePowerResponse proto.InternalMessageInfo +func (x *AttachVolumeRequest) Reset() { + *x = AttachVolumeRequest{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -type AttachVolumeRequest struct { - MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` - Volume *Volume `protobuf:"bytes,2,opt,name=volume,proto3" json:"volume,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *AttachVolumeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AttachVolumeRequest) Reset() { *m = AttachVolumeRequest{} } func (*AttachVolumeRequest) ProtoMessage() {} -func (*AttachVolumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{30} -} -func (m *AttachVolumeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AttachVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AttachVolumeRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *AttachVolumeRequest) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AttachVolumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AttachVolumeRequest.Merge(m, src) -} -func (m *AttachVolumeRequest) XXX_Size() int { - return m.Size() -} -func (m *AttachVolumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AttachVolumeRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AttachVolumeRequest proto.InternalMessageInfo +// Deprecated: Use AttachVolumeRequest.ProtoReflect.Descriptor instead. +func (*AttachVolumeRequest) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{30} +} -func (m *AttachVolumeRequest) GetMachineId() string { - if m != nil { - return m.MachineId +func (x *AttachVolumeRequest) GetMachineId() string { + if x != nil { + return x.MachineId } return "" } -func (m *AttachVolumeRequest) GetVolume() *Volume { - if m != nil { - return m.Volume +func (x *AttachVolumeRequest) GetVolume() *Volume { + if x != nil { + return x.Volume } return nil } type AttachVolumeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *AttachVolumeResponse) Reset() { + *x = AttachVolumeResponse{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AttachVolumeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AttachVolumeResponse) Reset() { *m = AttachVolumeResponse{} } func (*AttachVolumeResponse) ProtoMessage() {} -func (*AttachVolumeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{31} -} -func (m *AttachVolumeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AttachVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AttachVolumeResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *AttachVolumeResponse) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *AttachVolumeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AttachVolumeResponse.Merge(m, src) -} -func (m *AttachVolumeResponse) XXX_Size() int { - return m.Size() + +// Deprecated: Use AttachVolumeResponse.ProtoReflect.Descriptor instead. +func (*AttachVolumeResponse) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{31} } -func (m *AttachVolumeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AttachVolumeResponse.DiscardUnknown(m) + +type DetachVolumeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -var xxx_messageInfo_AttachVolumeResponse proto.InternalMessageInfo +func (x *DetachVolumeRequest) Reset() { + *x = DetachVolumeRequest{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -type DetachVolumeRequest struct { - MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DetachVolumeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DetachVolumeRequest) Reset() { *m = DetachVolumeRequest{} } func (*DetachVolumeRequest) ProtoMessage() {} -func (*DetachVolumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{32} -} -func (m *DetachVolumeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DetachVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DetachVolumeRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *DetachVolumeRequest) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[32] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DetachVolumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DetachVolumeRequest.Merge(m, src) -} -func (m *DetachVolumeRequest) XXX_Size() int { - return m.Size() -} -func (m *DetachVolumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DetachVolumeRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DetachVolumeRequest proto.InternalMessageInfo +// Deprecated: Use DetachVolumeRequest.ProtoReflect.Descriptor instead. +func (*DetachVolumeRequest) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{32} +} -func (m *DetachVolumeRequest) GetMachineId() string { - if m != nil { - return m.MachineId +func (x *DetachVolumeRequest) GetMachineId() string { + if x != nil { + return x.MachineId } return "" } -func (m *DetachVolumeRequest) GetName() string { - if m != nil { - return m.Name +func (x *DetachVolumeRequest) GetName() string { + if x != nil { + return x.Name } return "" } type DetachVolumeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *DetachVolumeResponse) Reset() { + *x = DetachVolumeResponse{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DetachVolumeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DetachVolumeResponse) Reset() { *m = DetachVolumeResponse{} } func (*DetachVolumeResponse) ProtoMessage() {} -func (*DetachVolumeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{33} -} -func (m *DetachVolumeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DetachVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DetachVolumeResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *DetachVolumeResponse) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[33] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *DetachVolumeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DetachVolumeResponse.Merge(m, src) -} -func (m *DetachVolumeResponse) XXX_Size() int { - return m.Size() + +// Deprecated: Use DetachVolumeResponse.ProtoReflect.Descriptor instead. +func (*DetachVolumeResponse) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{33} } -func (m *DetachVolumeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DetachVolumeResponse.DiscardUnknown(m) + +type AttachNetworkInterfaceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` + NetworkInterface *NetworkInterface `protobuf:"bytes,2,opt,name=network_interface,json=networkInterface,proto3" json:"network_interface,omitempty"` } -var xxx_messageInfo_DetachVolumeResponse proto.InternalMessageInfo +func (x *AttachNetworkInterfaceRequest) Reset() { + *x = AttachNetworkInterfaceRequest{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -type AttachNetworkInterfaceRequest struct { - MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` - NetworkInterface *NetworkInterface `protobuf:"bytes,2,opt,name=network_interface,json=networkInterface,proto3" json:"network_interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *AttachNetworkInterfaceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AttachNetworkInterfaceRequest) Reset() { *m = AttachNetworkInterfaceRequest{} } func (*AttachNetworkInterfaceRequest) ProtoMessage() {} -func (*AttachNetworkInterfaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{34} -} -func (m *AttachNetworkInterfaceRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AttachNetworkInterfaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AttachNetworkInterfaceRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *AttachNetworkInterfaceRequest) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[34] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AttachNetworkInterfaceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AttachNetworkInterfaceRequest.Merge(m, src) -} -func (m *AttachNetworkInterfaceRequest) XXX_Size() int { - return m.Size() -} -func (m *AttachNetworkInterfaceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AttachNetworkInterfaceRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AttachNetworkInterfaceRequest proto.InternalMessageInfo +// Deprecated: Use AttachNetworkInterfaceRequest.ProtoReflect.Descriptor instead. +func (*AttachNetworkInterfaceRequest) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{34} +} -func (m *AttachNetworkInterfaceRequest) GetMachineId() string { - if m != nil { - return m.MachineId +func (x *AttachNetworkInterfaceRequest) GetMachineId() string { + if x != nil { + return x.MachineId } return "" } -func (m *AttachNetworkInterfaceRequest) GetNetworkInterface() *NetworkInterface { - if m != nil { - return m.NetworkInterface +func (x *AttachNetworkInterfaceRequest) GetNetworkInterface() *NetworkInterface { + if x != nil { + return x.NetworkInterface } return nil } type AttachNetworkInterfaceResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *AttachNetworkInterfaceResponse) Reset() { + *x = AttachNetworkInterfaceResponse{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AttachNetworkInterfaceResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AttachNetworkInterfaceResponse) Reset() { *m = AttachNetworkInterfaceResponse{} } func (*AttachNetworkInterfaceResponse) ProtoMessage() {} -func (*AttachNetworkInterfaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{35} -} -func (m *AttachNetworkInterfaceResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AttachNetworkInterfaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AttachNetworkInterfaceResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *AttachNetworkInterfaceResponse) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[35] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *AttachNetworkInterfaceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AttachNetworkInterfaceResponse.Merge(m, src) -} -func (m *AttachNetworkInterfaceResponse) XXX_Size() int { - return m.Size() + +// Deprecated: Use AttachNetworkInterfaceResponse.ProtoReflect.Descriptor instead. +func (*AttachNetworkInterfaceResponse) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{35} } -func (m *AttachNetworkInterfaceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AttachNetworkInterfaceResponse.DiscardUnknown(m) + +type DetachNetworkInterfaceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -var xxx_messageInfo_AttachNetworkInterfaceResponse proto.InternalMessageInfo +func (x *DetachNetworkInterfaceRequest) Reset() { + *x = DetachNetworkInterfaceRequest{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -type DetachNetworkInterfaceRequest struct { - MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DetachNetworkInterfaceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DetachNetworkInterfaceRequest) Reset() { *m = DetachNetworkInterfaceRequest{} } func (*DetachNetworkInterfaceRequest) ProtoMessage() {} -func (*DetachNetworkInterfaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{36} -} -func (m *DetachNetworkInterfaceRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DetachNetworkInterfaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DetachNetworkInterfaceRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *DetachNetworkInterfaceRequest) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[36] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DetachNetworkInterfaceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DetachNetworkInterfaceRequest.Merge(m, src) -} -func (m *DetachNetworkInterfaceRequest) XXX_Size() int { - return m.Size() -} -func (m *DetachNetworkInterfaceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DetachNetworkInterfaceRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DetachNetworkInterfaceRequest proto.InternalMessageInfo +// Deprecated: Use DetachNetworkInterfaceRequest.ProtoReflect.Descriptor instead. +func (*DetachNetworkInterfaceRequest) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{36} +} -func (m *DetachNetworkInterfaceRequest) GetMachineId() string { - if m != nil { - return m.MachineId +func (x *DetachNetworkInterfaceRequest) GetMachineId() string { + if x != nil { + return x.MachineId } return "" } -func (m *DetachNetworkInterfaceRequest) GetName() string { - if m != nil { - return m.Name +func (x *DetachNetworkInterfaceRequest) GetName() string { + if x != nil { + return x.Name } return "" } type DetachNetworkInterfaceResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *DetachNetworkInterfaceResponse) Reset() { + *x = DetachNetworkInterfaceResponse{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DetachNetworkInterfaceResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DetachNetworkInterfaceResponse) Reset() { *m = DetachNetworkInterfaceResponse{} } func (*DetachNetworkInterfaceResponse) ProtoMessage() {} -func (*DetachNetworkInterfaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{37} -} -func (m *DetachNetworkInterfaceResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DetachNetworkInterfaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DetachNetworkInterfaceResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *DetachNetworkInterfaceResponse) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[37] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *DetachNetworkInterfaceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DetachNetworkInterfaceResponse.Merge(m, src) -} -func (m *DetachNetworkInterfaceResponse) XXX_Size() int { - return m.Size() + +// Deprecated: Use DetachNetworkInterfaceResponse.ProtoReflect.Descriptor instead. +func (*DetachNetworkInterfaceResponse) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{37} } -func (m *DetachNetworkInterfaceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DetachNetworkInterfaceResponse.DiscardUnknown(m) + +type StatusRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -var xxx_messageInfo_DetachNetworkInterfaceResponse proto.InternalMessageInfo +func (x *StatusRequest) Reset() { + *x = StatusRequest{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -type StatusRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *StatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StatusRequest) Reset() { *m = StatusRequest{} } func (*StatusRequest) ProtoMessage() {} -func (*StatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{38} -} -func (m *StatusRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StatusRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *StatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[38] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *StatusRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatusRequest.Merge(m, src) -} -func (m *StatusRequest) XXX_Size() int { - return m.Size() + +// Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead. +func (*StatusRequest) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{38} } -func (m *StatusRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StatusRequest.DiscardUnknown(m) + +type StatusResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MachineClassStatus []*MachineClassStatus `protobuf:"bytes,1,rep,name=machine_class_status,json=machineClassStatus,proto3" json:"machine_class_status,omitempty"` } -var xxx_messageInfo_StatusRequest proto.InternalMessageInfo +func (x *StatusResponse) Reset() { + *x = StatusResponse{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -type StatusResponse struct { - MachineClassStatus []*MachineClassStatus `protobuf:"bytes,1,rep,name=machine_class_status,json=machineClassStatus,proto3" json:"machine_class_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *StatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StatusResponse) Reset() { *m = StatusResponse{} } func (*StatusResponse) ProtoMessage() {} -func (*StatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{39} -} -func (m *StatusResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *StatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[39] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *StatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatusResponse.Merge(m, src) -} -func (m *StatusResponse) XXX_Size() int { - return m.Size() -} -func (m *StatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StatusResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_StatusResponse proto.InternalMessageInfo +// Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead. +func (*StatusResponse) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{39} +} -func (m *StatusResponse) GetMachineClassStatus() []*MachineClassStatus { - if m != nil { - return m.MachineClassStatus +func (x *StatusResponse) GetMachineClassStatus() []*MachineClassStatus { + if x != nil { + return x.MachineClassStatus } return nil } type ExecRequest struct { - MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` +} + +func (x *ExecRequest) Reset() { + *x = ExecRequest{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExecRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExecRequest) Reset() { *m = ExecRequest{} } func (*ExecRequest) ProtoMessage() {} -func (*ExecRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{40} -} -func (m *ExecRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExecRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ExecRequest) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[40] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ExecRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecRequest.Merge(m, src) -} -func (m *ExecRequest) XXX_Size() int { - return m.Size() -} -func (m *ExecRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExecRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecRequest proto.InternalMessageInfo - -func (m *ExecRequest) GetMachineId() string { - if m != nil { - return m.MachineId - } - return "" -} - -type ExecResponse struct { - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + return mi.MessageOf(x) } -func (m *ExecResponse) Reset() { *m = ExecResponse{} } -func (*ExecResponse) ProtoMessage() {} -func (*ExecResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{41} -} -func (m *ExecResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExecResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ExecResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecResponse.Merge(m, src) -} -func (m *ExecResponse) XXX_Size() int { - return m.Size() -} -func (m *ExecResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExecResponse.DiscardUnknown(m) +// Deprecated: Use ExecRequest.ProtoReflect.Descriptor instead. +func (*ExecRequest) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{40} } -var xxx_messageInfo_ExecResponse proto.InternalMessageInfo - -func (m *ExecResponse) GetUrl() string { - if m != nil { - return m.Url +func (x *ExecRequest) GetMachineId() string { + if x != nil { + return x.MachineId } return "" } -func init() { - proto.RegisterEnum("machine.v1alpha1.Power", Power_name, Power_value) - proto.RegisterEnum("machine.v1alpha1.VolumeState", VolumeState_name, VolumeState_value) - proto.RegisterEnum("machine.v1alpha1.NetworkInterfaceState", NetworkInterfaceState_name, NetworkInterfaceState_value) - proto.RegisterEnum("machine.v1alpha1.MachineState", MachineState_name, MachineState_value) - proto.RegisterType((*VolumeSpec)(nil), "machine.v1alpha1.VolumeSpec") - proto.RegisterMapType((map[string]string)(nil), "machine.v1alpha1.VolumeSpec.AttributesEntry") - proto.RegisterMapType((map[string][]byte)(nil), "machine.v1alpha1.VolumeSpec.SecretDataEntry") - proto.RegisterType((*MachineFilter)(nil), "machine.v1alpha1.MachineFilter") - proto.RegisterMapType((map[string]string)(nil), "machine.v1alpha1.MachineFilter.LabelSelectorEntry") - proto.RegisterType((*EventFilter)(nil), "machine.v1alpha1.EventFilter") - proto.RegisterMapType((map[string]string)(nil), "machine.v1alpha1.EventFilter.LabelSelectorEntry") - proto.RegisterType((*MachineClassCapabilities)(nil), "machine.v1alpha1.MachineClassCapabilities") - proto.RegisterType((*Machine)(nil), "machine.v1alpha1.Machine") - proto.RegisterType((*ImageSpec)(nil), "machine.v1alpha1.ImageSpec") - proto.RegisterType((*EmptyDisk)(nil), "machine.v1alpha1.EmptyDisk") - proto.RegisterType((*VolumeConnection)(nil), "machine.v1alpha1.VolumeConnection") - proto.RegisterMapType((map[string]string)(nil), "machine.v1alpha1.VolumeConnection.AttributesEntry") - proto.RegisterMapType((map[string][]byte)(nil), "machine.v1alpha1.VolumeConnection.EncryptionDataEntry") - proto.RegisterMapType((map[string][]byte)(nil), "machine.v1alpha1.VolumeConnection.SecretDataEntry") - proto.RegisterType((*Volume)(nil), "machine.v1alpha1.Volume") - proto.RegisterType((*NetworkInterface)(nil), "machine.v1alpha1.NetworkInterface") - proto.RegisterMapType((map[string]string)(nil), "machine.v1alpha1.NetworkInterface.AttributesEntry") - proto.RegisterType((*MachineSpec)(nil), "machine.v1alpha1.MachineSpec") - proto.RegisterType((*MachineStatus)(nil), "machine.v1alpha1.MachineStatus") - proto.RegisterType((*VolumeStatus)(nil), "machine.v1alpha1.VolumeStatus") - proto.RegisterType((*NetworkInterfaceStatus)(nil), "machine.v1alpha1.NetworkInterfaceStatus") - proto.RegisterType((*MachineClass)(nil), "machine.v1alpha1.MachineClass") - proto.RegisterType((*MachineClassStatus)(nil), "machine.v1alpha1.MachineClassStatus") - proto.RegisterType((*VersionRequest)(nil), "machine.v1alpha1.VersionRequest") - proto.RegisterType((*VersionResponse)(nil), "machine.v1alpha1.VersionResponse") - proto.RegisterType((*ListMachinesRequest)(nil), "machine.v1alpha1.ListMachinesRequest") - proto.RegisterType((*ListMachinesResponse)(nil), "machine.v1alpha1.ListMachinesResponse") - proto.RegisterType((*ListEventsRequest)(nil), "machine.v1alpha1.ListEventsRequest") - proto.RegisterType((*ListEventsResponse)(nil), "machine.v1alpha1.ListEventsResponse") - proto.RegisterType((*CreateMachineRequest)(nil), "machine.v1alpha1.CreateMachineRequest") - proto.RegisterType((*CreateMachineResponse)(nil), "machine.v1alpha1.CreateMachineResponse") - proto.RegisterType((*DeleteMachineRequest)(nil), "machine.v1alpha1.DeleteMachineRequest") - proto.RegisterType((*DeleteMachineResponse)(nil), "machine.v1alpha1.DeleteMachineResponse") - proto.RegisterType((*UpdateMachineAnnotationsRequest)(nil), "machine.v1alpha1.UpdateMachineAnnotationsRequest") - proto.RegisterMapType((map[string]string)(nil), "machine.v1alpha1.UpdateMachineAnnotationsRequest.AnnotationsEntry") - proto.RegisterType((*UpdateMachineAnnotationsResponse)(nil), "machine.v1alpha1.UpdateMachineAnnotationsResponse") - proto.RegisterType((*UpdateMachinePowerRequest)(nil), "machine.v1alpha1.UpdateMachinePowerRequest") - proto.RegisterType((*UpdateMachinePowerResponse)(nil), "machine.v1alpha1.UpdateMachinePowerResponse") - proto.RegisterType((*AttachVolumeRequest)(nil), "machine.v1alpha1.AttachVolumeRequest") - proto.RegisterType((*AttachVolumeResponse)(nil), "machine.v1alpha1.AttachVolumeResponse") - proto.RegisterType((*DetachVolumeRequest)(nil), "machine.v1alpha1.DetachVolumeRequest") - proto.RegisterType((*DetachVolumeResponse)(nil), "machine.v1alpha1.DetachVolumeResponse") - proto.RegisterType((*AttachNetworkInterfaceRequest)(nil), "machine.v1alpha1.AttachNetworkInterfaceRequest") - proto.RegisterType((*AttachNetworkInterfaceResponse)(nil), "machine.v1alpha1.AttachNetworkInterfaceResponse") - proto.RegisterType((*DetachNetworkInterfaceRequest)(nil), "machine.v1alpha1.DetachNetworkInterfaceRequest") - proto.RegisterType((*DetachNetworkInterfaceResponse)(nil), "machine.v1alpha1.DetachNetworkInterfaceResponse") - proto.RegisterType((*StatusRequest)(nil), "machine.v1alpha1.StatusRequest") - proto.RegisterType((*StatusResponse)(nil), "machine.v1alpha1.StatusResponse") - proto.RegisterType((*ExecRequest)(nil), "machine.v1alpha1.ExecRequest") - proto.RegisterType((*ExecResponse)(nil), "machine.v1alpha1.ExecResponse") -} - -func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) } - -var fileDescriptor_00212fb1f9d3bf1c = []byte{ - // 1989 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0x4b, 0x73, 0x1b, 0x59, - 0x15, 0x76, 0x4b, 0xb2, 0x6c, 0x1d, 0xc9, 0xb2, 0x72, 0xfd, 0x88, 0xd2, 0x83, 0x14, 0xa5, 0x27, - 0x4c, 0x5c, 0x26, 0x91, 0x62, 0x85, 0xcc, 0x0c, 0xa9, 0x1a, 0x0a, 0x59, 0x96, 0x27, 0x26, 0xb6, - 0x1c, 0xda, 0x8e, 0xc3, 0x50, 0x50, 0x5d, 0xad, 0xd6, 0xb5, 0xdd, 0x44, 0xea, 0xd6, 0x74, 0xb7, - 0x34, 0x98, 0xd9, 0x0c, 0x3b, 0x36, 0x14, 0x6c, 0xf8, 0x0b, 0x6c, 0xd8, 0x40, 0x15, 0x4b, 0x7e, - 0xc0, 0x2c, 0xd9, 0xc1, 0x92, 0x09, 0x55, 0x2c, 0xf8, 0x15, 0xd4, 0x7d, 0x74, 0xab, 0x25, 0xdd, - 0xd6, 0x63, 0xa0, 0x6a, 0x76, 0xba, 0xa7, 0xbf, 0xf3, 0x9d, 0x47, 0x9f, 0x7b, 0xce, 0xe9, 0x12, - 0xa4, 0xf4, 0x9e, 0x59, 0xee, 0x39, 0xb6, 0x67, 0xa3, 0x5c, 0x57, 0x37, 0xae, 0x4d, 0x0b, 0x97, - 0x07, 0x7b, 0x7a, 0xa7, 0x77, 0xad, 0xef, 0xc9, 0x8f, 0xae, 0x4c, 0xef, 0xba, 0xdf, 0x2a, 0x1b, - 0x76, 0xb7, 0x72, 0x65, 0x5f, 0xd9, 0x15, 0x0a, 0x6c, 0xf5, 0x2f, 0xe9, 0x89, 0x1e, 0xe8, 0x2f, - 0x46, 0x20, 0xd7, 0x42, 0x70, 0xd3, 0xb1, 0x2d, 0xc3, 0x76, 0xf0, 0xa3, 0x36, 0x1e, 0x04, 0x87, - 0x8a, 0xe9, 0x98, 0x15, 0xbd, 0x67, 0xba, 0x95, 0x2e, 0xf6, 0xf4, 0x8a, 0x6f, 0xa7, 0x12, 0xf8, - 0x20, 0xef, 0xcf, 0x4f, 0x81, 0x07, 0xd8, 0xf2, 0x04, 0x1c, 0xca, 0xdf, 0x63, 0x00, 0x17, 0x76, - 0xa7, 0xdf, 0xc5, 0x67, 0x3d, 0x6c, 0xa0, 0x6d, 0x48, 0xb6, 0x1d, 0x73, 0x80, 0x9d, 0xbc, 0x54, - 0x92, 0x76, 0x52, 0x2a, 0x3f, 0x11, 0xf9, 0xb5, 0x6e, 0xb5, 0x3b, 0x38, 0x1f, 0x63, 0x72, 0x76, - 0x42, 0xc7, 0x00, 0xba, 0xe7, 0x39, 0x66, 0xab, 0xef, 0x61, 0x37, 0x1f, 0x2f, 0xc5, 0x77, 0xd2, - 0xd5, 0x87, 0xe5, 0xf1, 0xdc, 0x94, 0x87, 0x16, 0xca, 0xb5, 0x00, 0xde, 0xb0, 0x3c, 0xe7, 0x46, - 0x0d, 0xe9, 0xa3, 0x13, 0x48, 0xbb, 0xd8, 0x70, 0xb0, 0xa7, 0xb5, 0x75, 0x4f, 0xcf, 0x27, 0xe6, - 0xa0, 0x3b, 0xa3, 0xf8, 0x03, 0xdd, 0xd3, 0x39, 0x9d, 0x1b, 0x08, 0xe4, 0x8f, 0x60, 0x7d, 0xcc, - 0x1a, 0xca, 0x41, 0xfc, 0x0d, 0xbe, 0xe1, 0xc1, 0x91, 0x9f, 0x68, 0x13, 0x96, 0x07, 0x7a, 0xa7, - 0xef, 0x07, 0xc6, 0x0e, 0xcf, 0x62, 0x1f, 0x4a, 0x44, 0x7d, 0x8c, 0x7d, 0x96, 0x7a, 0x26, 0xa4, - 0xae, 0xfc, 0x55, 0x82, 0xb5, 0x13, 0xe6, 0xf9, 0xa1, 0xd9, 0xf1, 0xb0, 0x83, 0xb2, 0x10, 0x33, - 0xdb, 0x5c, 0x39, 0x66, 0xb6, 0xd1, 0x27, 0x90, 0xed, 0xe8, 0x2d, 0xdc, 0xd1, 0x5c, 0xdc, 0xc1, - 0x86, 0x67, 0x3b, 0xf9, 0x18, 0x8d, 0xb8, 0x3a, 0x19, 0xf1, 0x08, 0x51, 0xf9, 0x98, 0x68, 0x9d, - 0x71, 0x25, 0x16, 0xf7, 0x5a, 0x27, 0x2c, 0x93, 0x7f, 0x00, 0x68, 0x12, 0xb4, 0x48, 0xf4, 0xca, - 0xaf, 0x63, 0x90, 0x6e, 0x90, 0xaa, 0x89, 0x70, 0xfe, 0x75, 0x84, 0xf3, 0x8f, 0x27, 0x9d, 0x0f, - 0xd1, 0xcc, 0x76, 0x1d, 0xed, 0x40, 0x8e, 0x56, 0xab, 0xab, 0x5d, 0x3a, 0x76, 0x57, 0xf3, 0xcc, - 0x2e, 0xce, 0xc7, 0x4b, 0xd2, 0x4e, 0x5c, 0xcd, 0x32, 0xf9, 0xa1, 0x63, 0x77, 0xcf, 0xcd, 0x2e, - 0x46, 0xf7, 0x81, 0x4b, 0x34, 0xcf, 0x66, 0xb8, 0x04, 0xc5, 0x65, 0x98, 0xf4, 0xdc, 0x26, 0xa8, - 0xff, 0x43, 0x2a, 0x7e, 0x0a, 0x79, 0x9e, 0xff, 0x7a, 0x47, 0x77, 0xdd, 0xba, 0xde, 0xd3, 0x5b, - 0x66, 0xc7, 0xf4, 0x4c, 0xec, 0xa2, 0x02, 0x80, 0xd1, 0xeb, 0x6b, 0x5d, 0xb3, 0xd3, 0x31, 0x5d, - 0x4a, 0x17, 0x57, 0x53, 0x46, 0xaf, 0x7f, 0x42, 0x05, 0xe8, 0x1e, 0x64, 0xba, 0xb8, 0x6b, 0x3b, - 0x37, 0x5a, 0xeb, 0x86, 0xdc, 0x90, 0x18, 0x05, 0xa4, 0x99, 0x6c, 0x9f, 0x88, 0x94, 0x3f, 0x49, - 0xb0, 0xc2, 0xe9, 0xd1, 0xf7, 0x60, 0x95, 0x5c, 0x76, 0x5a, 0xfd, 0x84, 0x2b, 0x5d, 0x2d, 0x94, - 0x89, 0x60, 0x98, 0xcb, 0xd3, 0xd6, 0xcf, 0xb1, 0xe1, 0x9d, 0x70, 0x90, 0x1a, 0xc0, 0xd1, 0x1e, - 0x24, 0xdc, 0x1e, 0x36, 0xa8, 0x05, 0xaa, 0x16, 0x51, 0x42, 0xe4, 0xd6, 0xa8, 0x14, 0x8a, 0x3e, - 0x80, 0xa4, 0xeb, 0xe9, 0x5e, 0xdf, 0xa5, 0xf9, 0x4d, 0x57, 0xef, 0x46, 0x2b, 0x51, 0x98, 0xca, - 0xe1, 0xca, 0x3d, 0x48, 0x1d, 0x75, 0xf5, 0x2b, 0xd6, 0x32, 0x36, 0x61, 0xd9, 0x24, 0x07, 0x9e, - 0x4b, 0x76, 0x50, 0x76, 0x21, 0xd5, 0xe8, 0xf6, 0xbc, 0x9b, 0x03, 0xd3, 0x7d, 0x43, 0x92, 0xe4, - 0x9a, 0xbf, 0xc4, 0x3c, 0x07, 0x3c, 0x49, 0x44, 0xc2, 0x32, 0xf0, 0x9b, 0x04, 0xe4, 0xd8, 0x95, - 0xae, 0xdb, 0x96, 0x85, 0x0d, 0xcf, 0xb4, 0xad, 0x85, 0x3b, 0x91, 0x2a, 0xe8, 0x44, 0xd5, 0xa8, - 0xd6, 0x31, 0xb4, 0x33, 0xb5, 0x1f, 0x9d, 0x89, 0xfa, 0xd1, 0x3c, 0xa4, 0x53, 0xba, 0x12, 0xd2, - 0x60, 0x1d, 0x5b, 0x86, 0x73, 0xd3, 0x23, 0x48, 0x46, 0xbc, 0x4c, 0x89, 0xdf, 0x9f, 0x83, 0xb8, - 0x11, 0x68, 0x0e, 0xc9, 0xb3, 0x78, 0x44, 0xf8, 0xcd, 0xb6, 0x3d, 0xb9, 0x06, 0x1b, 0x02, 0x27, - 0x17, 0xea, 0x9c, 0x7f, 0x91, 0x20, 0xc9, 0x22, 0x47, 0x08, 0x12, 0x96, 0xde, 0xf5, 0x6b, 0x8b, - 0xfe, 0xa6, 0x95, 0x81, 0x07, 0xa6, 0x11, 0x54, 0x00, 0x3b, 0xa1, 0x67, 0x00, 0x98, 0x94, 0x9c, - 0xd6, 0x36, 0xdd, 0x37, 0xb4, 0x15, 0xa4, 0xab, 0xef, 0x08, 0xba, 0x91, 0x5f, 0x96, 0x6a, 0x0a, - 0x07, 0x15, 0xba, 0x0f, 0x60, 0x04, 0x59, 0xce, 0x2f, 0x53, 0x5d, 0x65, 0xf6, 0xfb, 0x50, 0x43, - 0x5a, 0xca, 0x7f, 0x24, 0xc8, 0x35, 0xb1, 0xf7, 0x99, 0xed, 0xbc, 0x39, 0xb2, 0x3c, 0xec, 0x5c, - 0xea, 0x86, 0x38, 0x80, 0x02, 0x80, 0xc5, 0x70, 0x9a, 0xd9, 0xe6, 0x41, 0xa4, 0xb8, 0xe4, 0xa8, - 0x4d, 0x52, 0x65, 0xf6, 0x58, 0x09, 0xa7, 0x54, 0xf2, 0x73, 0xac, 0xb6, 0x23, 0xcb, 0x70, 0xdc, - 0xf8, 0xb4, 0xda, 0xfe, 0x1f, 0xab, 0x44, 0xf9, 0x73, 0x0c, 0xd2, 0xa1, 0x8e, 0x82, 0x1e, 0xc1, - 0x72, 0xcf, 0xfe, 0x8c, 0xdf, 0xd6, 0x6c, 0xf5, 0xf6, 0xa4, 0x77, 0x2f, 0xc9, 0x63, 0x95, 0xa1, - 0xd0, 0x9e, 0xdf, 0x34, 0x62, 0x51, 0xaf, 0x29, 0x68, 0x30, 0xbc, 0xa3, 0x10, 0x5f, 0x0c, 0xd2, - 0x7e, 0x69, 0xb3, 0x4a, 0xa9, 0xec, 0x80, 0xde, 0x85, 0x35, 0xf3, 0xca, 0x32, 0x87, 0x77, 0x29, - 0x41, 0xab, 0x29, 0xe3, 0x0b, 0xe9, 0x95, 0xab, 0xc2, 0xca, 0x80, 0xbe, 0x39, 0x97, 0x5f, 0xb5, - 0x7c, 0xd4, 0xab, 0x55, 0x7d, 0x20, 0xfa, 0x11, 0xa0, 0xe0, 0x25, 0xf9, 0x09, 0x75, 0xf3, 0x49, - 0xaa, 0xae, 0xcc, 0xce, 0xbd, 0x7a, 0xcb, 0x1a, 0x93, 0xb8, 0xca, 0x1f, 0x62, 0xc1, 0x46, 0xc0, - 0x1a, 0x2a, 0xaa, 0xc0, 0x86, 0xdd, 0x72, 0xb1, 0x33, 0xc0, 0x6d, 0xed, 0x0a, 0x5b, 0xd8, 0xd1, - 0x69, 0xfd, 0xb1, 0x0e, 0x89, 0xfc, 0x47, 0x1f, 0x07, 0x4f, 0xd0, 0x77, 0x61, 0x99, 0xf4, 0x60, - 0x96, 0xb7, 0x6c, 0xb5, 0x38, 0xb5, 0x63, 0x63, 0x95, 0x81, 0xd1, 0x3b, 0x90, 0xa2, 0x39, 0xd4, - 0x1c, 0x7c, 0xc9, 0xd3, 0xb7, 0x4a, 0x05, 0x2a, 0xbe, 0x44, 0x1f, 0x0e, 0x93, 0xc3, 0x2a, 0xab, - 0x18, 0xb9, 0x70, 0xb1, 0x29, 0x10, 0xa4, 0xe8, 0xb5, 0x30, 0x45, 0x2c, 0xc3, 0x3b, 0xb3, 0x53, - 0xc4, 0xe9, 0x04, 0x89, 0xb2, 0x21, 0x13, 0xb6, 0x18, 0xd5, 0x05, 0x84, 0x73, 0xe0, 0x89, 0x9f, - 0xa1, 0x38, 0xcd, 0x50, 0x61, 0x5a, 0x30, 0x7e, 0x82, 0x94, 0xdf, 0x4b, 0xb0, 0x2d, 0x76, 0x6f, - 0x21, 0xdb, 0x1f, 0x8d, 0xda, 0x7e, 0x30, 0x5f, 0x0e, 0x82, 0xd7, 0xc4, 0x2f, 0x7e, 0x22, 0xb8, - 0xf8, 0x8a, 0x03, 0x99, 0xf0, 0xe6, 0x21, 0x74, 0xa6, 0x09, 0x19, 0x23, 0xb4, 0x91, 0xf0, 0x1b, - 0xb5, 0x1b, 0x59, 0x19, 0x13, 0x3b, 0x8c, 0x3a, 0xa2, 0xaf, 0xf4, 0x01, 0x85, 0x91, 0x3c, 0x0d, - 0x75, 0x58, 0xe3, 0x84, 0x1a, 0xbb, 0x85, 0x6c, 0x3d, 0x29, 0x4e, 0x37, 0xa3, 0x66, 0xba, 0x61, - 0xf7, 0x65, 0x58, 0xfd, 0xb4, 0xaf, 0x5b, 0x9e, 0xe9, 0xdd, 0xf0, 0x4d, 0x28, 0x38, 0x2b, 0xbb, - 0x90, 0xbd, 0xc0, 0x8e, 0x4b, 0x9a, 0x2a, 0xfe, 0xb4, 0x8f, 0x5d, 0x0f, 0xe5, 0x61, 0x65, 0xc0, - 0x24, 0x3c, 0x5e, 0xff, 0xa8, 0xfc, 0x0c, 0xd6, 0x03, 0xac, 0xdb, 0xb3, 0x2d, 0x17, 0x93, 0x45, - 0xcb, 0xe9, 0x5b, 0x64, 0x09, 0xd4, 0x42, 0x19, 0x4a, 0x73, 0x59, 0x93, 0x24, 0xea, 0x01, 0xac, - 0xfb, 0x10, 0x9f, 0x97, 0xbd, 0xbe, 0x2c, 0x17, 0x73, 0x4e, 0xa5, 0x09, 0x1b, 0xc7, 0xa6, 0xeb, - 0xf1, 0x40, 0x5c, 0xdf, 0x9f, 0x0f, 0x20, 0x79, 0x49, 0x97, 0x58, 0x1e, 0xfb, 0xdd, 0x19, 0x6b, - 0xba, 0xca, 0xe1, 0xca, 0x09, 0x6c, 0x8e, 0xf2, 0x71, 0x9f, 0x9f, 0xc2, 0x2a, 0x67, 0x20, 0xe9, - 0x24, 0xb7, 0xe6, 0x4e, 0x24, 0xa5, 0x1a, 0x40, 0x95, 0x1f, 0xc2, 0x2d, 0x42, 0x47, 0xb7, 0xea, - 0xc0, 0xb9, 0xa7, 0x63, 0xce, 0x15, 0xa6, 0xae, 0xe1, 0x81, 0x6b, 0x75, 0x40, 0x61, 0x2e, 0xee, - 0xd8, 0x23, 0x48, 0xb2, 0x15, 0x9a, 0xbb, 0xb5, 0x55, 0xa6, 0xc7, 0x31, 0x2a, 0x95, 0x83, 0x94, - 0x17, 0xb0, 0x59, 0x77, 0xb0, 0xee, 0x61, 0xdf, 0x57, 0xee, 0xd3, 0x13, 0x58, 0xe1, 0x4e, 0x70, - 0xa7, 0xa6, 0x84, 0xe7, 0x23, 0x95, 0x63, 0xd8, 0x1a, 0x23, 0xe3, 0x4e, 0x7d, 0x2d, 0xb6, 0xa7, - 0xb0, 0x79, 0x80, 0x3b, 0x78, 0xc2, 0xb5, 0x02, 0x80, 0x5f, 0xce, 0xc1, 0x57, 0x4d, 0x8a, 0x4b, - 0x8e, 0xda, 0xca, 0x6d, 0xd8, 0x1a, 0x53, 0x63, 0x4e, 0x28, 0xff, 0x96, 0xe0, 0xee, 0xab, 0x5e, - 0x7b, 0xe8, 0x5e, 0xcd, 0xb2, 0x6c, 0x8f, 0xf6, 0x66, 0x77, 0x3e, 0x6e, 0xd4, 0x86, 0xb4, 0x3e, - 0x54, 0xe2, 0x5f, 0x4d, 0xfb, 0x93, 0xb1, 0xcc, 0x30, 0x53, 0x0e, 0x89, 0xd8, 0x74, 0x0f, 0xd3, - 0xca, 0xdf, 0x87, 0xdc, 0x38, 0x60, 0xa1, 0xf9, 0xae, 0x40, 0x29, 0xda, 0x01, 0x9e, 0x0c, 0x13, - 0xee, 0x8c, 0x60, 0xd8, 0x84, 0x9f, 0x2f, 0x0b, 0xc1, 0xbe, 0x10, 0x9b, 0x67, 0x5f, 0x50, 0xbe, - 0x05, 0xb2, 0xc8, 0x14, 0x77, 0xe4, 0x12, 0x36, 0x6a, 0x9e, 0xa7, 0x1b, 0xd7, 0x7c, 0x88, 0xcf, - 0xe7, 0xc2, 0x63, 0x48, 0xb2, 0x49, 0xc6, 0x5b, 0x66, 0xf4, 0x52, 0xc0, 0x71, 0xca, 0x36, 0x6c, - 0x8e, 0xda, 0xe1, 0xf6, 0x9f, 0xc3, 0xc6, 0x01, 0x5e, 0xd8, 0xbe, 0xdf, 0xcc, 0x63, 0xc3, 0x66, - 0x4e, 0x2c, 0x8c, 0x32, 0x71, 0x0b, 0xbf, 0x95, 0xa0, 0xc0, 0x4c, 0x4f, 0x2c, 0x1a, 0xf3, 0x19, - 0x3b, 0x85, 0x5b, 0x13, 0xb3, 0x9a, 0xc7, 0x3d, 0xcf, 0x36, 0x93, 0x1b, 0x1f, 0xd2, 0x4a, 0x09, - 0x8a, 0x51, 0x0e, 0x71, 0x9f, 0x55, 0x28, 0xb0, 0x58, 0xbe, 0xa6, 0xcb, 0xa2, 0xfc, 0x94, 0xa0, - 0x18, 0xc5, 0xc9, 0xad, 0xae, 0xc3, 0x1a, 0x5f, 0x2c, 0x98, 0x15, 0xe5, 0x1a, 0xb2, 0xbe, 0x80, - 0x77, 0x92, 0x0b, 0xd8, 0x1c, 0x99, 0x65, 0x1a, 0xff, 0x0a, 0x66, 0xcd, 0xee, 0xfe, 0xf4, 0x91, - 0xc6, 0xb9, 0x50, 0x77, 0x42, 0xa6, 0x3c, 0x84, 0x74, 0xe3, 0x17, 0xd8, 0x98, 0xb3, 0xc7, 0x94, - 0x20, 0xc3, 0xd0, 0xdc, 0xab, 0x1c, 0xc4, 0xfb, 0x4e, 0xc7, 0xbf, 0x9d, 0x7d, 0xa7, 0xb3, 0x7b, - 0x1f, 0x96, 0x69, 0x9d, 0xa3, 0x0c, 0xac, 0xbe, 0x3c, 0x7d, 0xdd, 0x50, 0xb5, 0xd3, 0x66, 0x6e, - 0x09, 0xad, 0x41, 0x8a, 0x9f, 0x0e, 0x0f, 0x73, 0xd2, 0xee, 0xfb, 0x90, 0x0e, 0x6d, 0x34, 0x08, - 0x41, 0xf6, 0xe2, 0xf4, 0xf8, 0xd5, 0x49, 0x43, 0x7b, 0xd9, 0x68, 0x1e, 0x1c, 0x35, 0x3f, 0xce, - 0x2d, 0xa1, 0x0d, 0x58, 0xe7, 0xb2, 0xda, 0xf9, 0x79, 0xad, 0xfe, 0xbc, 0x71, 0x90, 0x93, 0x76, - 0x2f, 0x60, 0x4b, 0xb8, 0x8d, 0xa0, 0x02, 0xdc, 0x69, 0x36, 0xce, 0x5f, 0x9f, 0xaa, 0x2f, 0xb4, - 0xa3, 0xe6, 0x79, 0x43, 0x3d, 0xac, 0xd5, 0xc3, 0x64, 0x45, 0x90, 0x27, 0x1f, 0x87, 0x78, 0xbf, - 0x90, 0x82, 0xa5, 0x85, 0xf1, 0x6d, 0xc0, 0xfa, 0x49, 0xad, 0xfe, 0xfc, 0xa8, 0x39, 0xe6, 0x92, - 0x2f, 0x54, 0x5f, 0x35, 0x9b, 0x44, 0x28, 0xa1, 0x2d, 0xb8, 0xe5, 0x0b, 0xcf, 0x5e, 0x9d, 0x11, - 0x70, 0xe3, 0x20, 0x17, 0x43, 0xdb, 0x80, 0x7c, 0xf1, 0x79, 0x43, 0x3d, 0x39, 0x6a, 0xd6, 0xce, - 0x1b, 0x07, 0xb9, 0x38, 0xba, 0x0d, 0x1b, 0xe3, 0x72, 0xc2, 0x93, 0xa8, 0xfe, 0x11, 0x20, 0xeb, - 0x77, 0x6e, 0x36, 0xda, 0xd1, 0x4b, 0x58, 0xe1, 0xe3, 0x1d, 0x95, 0x04, 0xf7, 0x7c, 0x64, 0xf3, - 0x90, 0xef, 0x4d, 0x41, 0xf0, 0x32, 0x5b, 0x42, 0x9f, 0x00, 0x0c, 0x47, 0x27, 0x7a, 0x77, 0x52, - 0x65, 0x62, 0x48, 0xcb, 0xf7, 0xa7, 0x83, 0x02, 0x6a, 0x0d, 0x32, 0xe1, 0x85, 0x01, 0x7d, 0x5b, - 0xac, 0x37, 0xb6, 0xa0, 0xc8, 0xef, 0xcd, 0x82, 0x05, 0x06, 0x5a, 0xb0, 0x36, 0x32, 0x64, 0x91, - 0x40, 0x55, 0x34, 0xd2, 0xe5, 0x07, 0x33, 0x71, 0x61, 0x1b, 0x23, 0x33, 0x54, 0x64, 0x43, 0x34, - 0x9b, 0x45, 0x36, 0xc4, 0xc3, 0x78, 0x09, 0xfd, 0x4a, 0x82, 0x7c, 0xd4, 0x98, 0x42, 0x7b, 0x0b, - 0xcf, 0x54, 0xb9, 0xba, 0x88, 0x0a, 0xbf, 0xb7, 0x36, 0xa0, 0xc9, 0xd1, 0x84, 0xbe, 0x33, 0x83, - 0x29, 0x3c, 0x2b, 0xe5, 0x87, 0xf3, 0x81, 0xb9, 0x41, 0x0d, 0x32, 0xe1, 0x29, 0x24, 0xaa, 0x0e, - 0xc1, 0x34, 0x14, 0x55, 0x87, 0x70, 0x98, 0xd1, 0xf2, 0x0b, 0x0f, 0x21, 0x91, 0x01, 0xc1, 0xb8, - 0x93, 0xdf, 0x9b, 0x05, 0x0b, 0x0c, 0x7c, 0x0e, 0xdb, 0xe2, 0xd9, 0x81, 0x2a, 0x51, 0x4e, 0x46, - 0xcc, 0x10, 0xf9, 0xf1, 0xfc, 0x0a, 0x3c, 0x7d, 0x9f, 0xc3, 0xb6, 0x78, 0x84, 0x88, 0x8c, 0x4f, - 0x1d, 0x60, 0x22, 0xe3, 0xd3, 0xa7, 0x13, 0x7a, 0x01, 0x49, 0xfe, 0x41, 0x25, 0xf8, 0x7a, 0x18, - 0x99, 0x5b, 0x72, 0x29, 0x1a, 0xc0, 0xc9, 0x1a, 0x90, 0x20, 0x13, 0x04, 0x89, 0x76, 0xfd, 0xe1, - 0x1c, 0x92, 0x8b, 0x51, 0x8f, 0x19, 0xcd, 0xfe, 0x8f, 0xbf, 0xfc, 0xaa, 0x28, 0xfd, 0xe3, 0xab, - 0xe2, 0xd2, 0x17, 0x6f, 0x8b, 0xd2, 0x97, 0x6f, 0x8b, 0xd2, 0xdf, 0xde, 0x16, 0xa5, 0x7f, 0xbe, - 0x2d, 0x4a, 0xbf, 0xfb, 0x57, 0x71, 0xe9, 0x27, 0xcf, 0x16, 0xf8, 0x9f, 0x8a, 0x99, 0x09, 0xfe, - 0x66, 0x6a, 0x25, 0xe9, 0x7f, 0x4c, 0x4f, 0xfe, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x0b, 0x45, 0x5c, - 0x79, 0x38, 0x1b, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// MachineRuntimeClient is the client API for MachineRuntime service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MachineRuntimeClient interface { - Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) - ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) - ListMachines(ctx context.Context, in *ListMachinesRequest, opts ...grpc.CallOption) (*ListMachinesResponse, error) - CreateMachine(ctx context.Context, in *CreateMachineRequest, opts ...grpc.CallOption) (*CreateMachineResponse, error) - DeleteMachine(ctx context.Context, in *DeleteMachineRequest, opts ...grpc.CallOption) (*DeleteMachineResponse, error) - UpdateMachineAnnotations(ctx context.Context, in *UpdateMachineAnnotationsRequest, opts ...grpc.CallOption) (*UpdateMachineAnnotationsResponse, error) - UpdateMachinePower(ctx context.Context, in *UpdateMachinePowerRequest, opts ...grpc.CallOption) (*UpdateMachinePowerResponse, error) - AttachVolume(ctx context.Context, in *AttachVolumeRequest, opts ...grpc.CallOption) (*AttachVolumeResponse, error) - DetachVolume(ctx context.Context, in *DetachVolumeRequest, opts ...grpc.CallOption) (*DetachVolumeResponse, error) - AttachNetworkInterface(ctx context.Context, in *AttachNetworkInterfaceRequest, opts ...grpc.CallOption) (*AttachNetworkInterfaceResponse, error) - DetachNetworkInterface(ctx context.Context, in *DetachNetworkInterfaceRequest, opts ...grpc.CallOption) (*DetachNetworkInterfaceResponse, error) - Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) - Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error) -} - -type machineRuntimeClient struct { - cc *grpc.ClientConn -} - -func NewMachineRuntimeClient(cc *grpc.ClientConn) MachineRuntimeClient { - return &machineRuntimeClient{cc} -} - -func (c *machineRuntimeClient) Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) { - out := new(VersionResponse) - err := c.cc.Invoke(ctx, "/machine.v1alpha1.MachineRuntime/Version", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *machineRuntimeClient) ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) { - out := new(ListEventsResponse) - err := c.cc.Invoke(ctx, "/machine.v1alpha1.MachineRuntime/ListEvents", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *machineRuntimeClient) ListMachines(ctx context.Context, in *ListMachinesRequest, opts ...grpc.CallOption) (*ListMachinesResponse, error) { - out := new(ListMachinesResponse) - err := c.cc.Invoke(ctx, "/machine.v1alpha1.MachineRuntime/ListMachines", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *machineRuntimeClient) CreateMachine(ctx context.Context, in *CreateMachineRequest, opts ...grpc.CallOption) (*CreateMachineResponse, error) { - out := new(CreateMachineResponse) - err := c.cc.Invoke(ctx, "/machine.v1alpha1.MachineRuntime/CreateMachine", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *machineRuntimeClient) DeleteMachine(ctx context.Context, in *DeleteMachineRequest, opts ...grpc.CallOption) (*DeleteMachineResponse, error) { - out := new(DeleteMachineResponse) - err := c.cc.Invoke(ctx, "/machine.v1alpha1.MachineRuntime/DeleteMachine", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *machineRuntimeClient) UpdateMachineAnnotations(ctx context.Context, in *UpdateMachineAnnotationsRequest, opts ...grpc.CallOption) (*UpdateMachineAnnotationsResponse, error) { - out := new(UpdateMachineAnnotationsResponse) - err := c.cc.Invoke(ctx, "/machine.v1alpha1.MachineRuntime/UpdateMachineAnnotations", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *machineRuntimeClient) UpdateMachinePower(ctx context.Context, in *UpdateMachinePowerRequest, opts ...grpc.CallOption) (*UpdateMachinePowerResponse, error) { - out := new(UpdateMachinePowerResponse) - err := c.cc.Invoke(ctx, "/machine.v1alpha1.MachineRuntime/UpdateMachinePower", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *machineRuntimeClient) AttachVolume(ctx context.Context, in *AttachVolumeRequest, opts ...grpc.CallOption) (*AttachVolumeResponse, error) { - out := new(AttachVolumeResponse) - err := c.cc.Invoke(ctx, "/machine.v1alpha1.MachineRuntime/AttachVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *machineRuntimeClient) DetachVolume(ctx context.Context, in *DetachVolumeRequest, opts ...grpc.CallOption) (*DetachVolumeResponse, error) { - out := new(DetachVolumeResponse) - err := c.cc.Invoke(ctx, "/machine.v1alpha1.MachineRuntime/DetachVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *machineRuntimeClient) AttachNetworkInterface(ctx context.Context, in *AttachNetworkInterfaceRequest, opts ...grpc.CallOption) (*AttachNetworkInterfaceResponse, error) { - out := new(AttachNetworkInterfaceResponse) - err := c.cc.Invoke(ctx, "/machine.v1alpha1.MachineRuntime/AttachNetworkInterface", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *machineRuntimeClient) DetachNetworkInterface(ctx context.Context, in *DetachNetworkInterfaceRequest, opts ...grpc.CallOption) (*DetachNetworkInterfaceResponse, error) { - out := new(DetachNetworkInterfaceResponse) - err := c.cc.Invoke(ctx, "/machine.v1alpha1.MachineRuntime/DetachNetworkInterface", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *machineRuntimeClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) { - out := new(StatusResponse) - err := c.cc.Invoke(ctx, "/machine.v1alpha1.MachineRuntime/Status", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *machineRuntimeClient) Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error) { - out := new(ExecResponse) - err := c.cc.Invoke(ctx, "/machine.v1alpha1.MachineRuntime/Exec", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MachineRuntimeServer is the server API for MachineRuntime service. -type MachineRuntimeServer interface { - Version(context.Context, *VersionRequest) (*VersionResponse, error) - ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error) - ListMachines(context.Context, *ListMachinesRequest) (*ListMachinesResponse, error) - CreateMachine(context.Context, *CreateMachineRequest) (*CreateMachineResponse, error) - DeleteMachine(context.Context, *DeleteMachineRequest) (*DeleteMachineResponse, error) - UpdateMachineAnnotations(context.Context, *UpdateMachineAnnotationsRequest) (*UpdateMachineAnnotationsResponse, error) - UpdateMachinePower(context.Context, *UpdateMachinePowerRequest) (*UpdateMachinePowerResponse, error) - AttachVolume(context.Context, *AttachVolumeRequest) (*AttachVolumeResponse, error) - DetachVolume(context.Context, *DetachVolumeRequest) (*DetachVolumeResponse, error) - AttachNetworkInterface(context.Context, *AttachNetworkInterfaceRequest) (*AttachNetworkInterfaceResponse, error) - DetachNetworkInterface(context.Context, *DetachNetworkInterfaceRequest) (*DetachNetworkInterfaceResponse, error) - Status(context.Context, *StatusRequest) (*StatusResponse, error) - Exec(context.Context, *ExecRequest) (*ExecResponse, error) -} - -// UnimplementedMachineRuntimeServer can be embedded to have forward compatible implementations. -type UnimplementedMachineRuntimeServer struct { -} - -func (*UnimplementedMachineRuntimeServer) Version(ctx context.Context, req *VersionRequest) (*VersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") -} -func (*UnimplementedMachineRuntimeServer) ListEvents(ctx context.Context, req *ListEventsRequest) (*ListEventsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented") -} -func (*UnimplementedMachineRuntimeServer) ListMachines(ctx context.Context, req *ListMachinesRequest) (*ListMachinesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListMachines not implemented") -} -func (*UnimplementedMachineRuntimeServer) CreateMachine(ctx context.Context, req *CreateMachineRequest) (*CreateMachineResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateMachine not implemented") -} -func (*UnimplementedMachineRuntimeServer) DeleteMachine(ctx context.Context, req *DeleteMachineRequest) (*DeleteMachineResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteMachine not implemented") -} -func (*UnimplementedMachineRuntimeServer) UpdateMachineAnnotations(ctx context.Context, req *UpdateMachineAnnotationsRequest) (*UpdateMachineAnnotationsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateMachineAnnotations not implemented") -} -func (*UnimplementedMachineRuntimeServer) UpdateMachinePower(ctx context.Context, req *UpdateMachinePowerRequest) (*UpdateMachinePowerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateMachinePower not implemented") -} -func (*UnimplementedMachineRuntimeServer) AttachVolume(ctx context.Context, req *AttachVolumeRequest) (*AttachVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AttachVolume not implemented") -} -func (*UnimplementedMachineRuntimeServer) DetachVolume(ctx context.Context, req *DetachVolumeRequest) (*DetachVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DetachVolume not implemented") -} -func (*UnimplementedMachineRuntimeServer) AttachNetworkInterface(ctx context.Context, req *AttachNetworkInterfaceRequest) (*AttachNetworkInterfaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AttachNetworkInterface not implemented") -} -func (*UnimplementedMachineRuntimeServer) DetachNetworkInterface(ctx context.Context, req *DetachNetworkInterfaceRequest) (*DetachNetworkInterfaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DetachNetworkInterface not implemented") -} -func (*UnimplementedMachineRuntimeServer) Status(ctx context.Context, req *StatusRequest) (*StatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Status not implemented") -} -func (*UnimplementedMachineRuntimeServer) Exec(ctx context.Context, req *ExecRequest) (*ExecResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Exec not implemented") -} - -func RegisterMachineRuntimeServer(s *grpc.Server, srv MachineRuntimeServer) { - s.RegisterService(&_MachineRuntime_serviceDesc, srv) -} - -func _MachineRuntime_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VersionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MachineRuntimeServer).Version(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/machine.v1alpha1.MachineRuntime/Version", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MachineRuntimeServer).Version(ctx, req.(*VersionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MachineRuntime_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListEventsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MachineRuntimeServer).ListEvents(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/machine.v1alpha1.MachineRuntime/ListEvents", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MachineRuntimeServer).ListEvents(ctx, req.(*ListEventsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MachineRuntime_ListMachines_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListMachinesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MachineRuntimeServer).ListMachines(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/machine.v1alpha1.MachineRuntime/ListMachines", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MachineRuntimeServer).ListMachines(ctx, req.(*ListMachinesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MachineRuntime_CreateMachine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateMachineRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MachineRuntimeServer).CreateMachine(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/machine.v1alpha1.MachineRuntime/CreateMachine", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MachineRuntimeServer).CreateMachine(ctx, req.(*CreateMachineRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MachineRuntime_DeleteMachine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteMachineRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MachineRuntimeServer).DeleteMachine(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/machine.v1alpha1.MachineRuntime/DeleteMachine", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MachineRuntimeServer).DeleteMachine(ctx, req.(*DeleteMachineRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MachineRuntime_UpdateMachineAnnotations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateMachineAnnotationsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MachineRuntimeServer).UpdateMachineAnnotations(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/machine.v1alpha1.MachineRuntime/UpdateMachineAnnotations", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MachineRuntimeServer).UpdateMachineAnnotations(ctx, req.(*UpdateMachineAnnotationsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MachineRuntime_UpdateMachinePower_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateMachinePowerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MachineRuntimeServer).UpdateMachinePower(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/machine.v1alpha1.MachineRuntime/UpdateMachinePower", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MachineRuntimeServer).UpdateMachinePower(ctx, req.(*UpdateMachinePowerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MachineRuntime_AttachVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AttachVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MachineRuntimeServer).AttachVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/machine.v1alpha1.MachineRuntime/AttachVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MachineRuntimeServer).AttachVolume(ctx, req.(*AttachVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MachineRuntime_DetachVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DetachVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MachineRuntimeServer).DetachVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/machine.v1alpha1.MachineRuntime/DetachVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MachineRuntimeServer).DetachVolume(ctx, req.(*DetachVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MachineRuntime_AttachNetworkInterface_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AttachNetworkInterfaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MachineRuntimeServer).AttachNetworkInterface(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/machine.v1alpha1.MachineRuntime/AttachNetworkInterface", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MachineRuntimeServer).AttachNetworkInterface(ctx, req.(*AttachNetworkInterfaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MachineRuntime_DetachNetworkInterface_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DetachNetworkInterfaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MachineRuntimeServer).DetachNetworkInterface(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/machine.v1alpha1.MachineRuntime/DetachNetworkInterface", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MachineRuntimeServer).DetachNetworkInterface(ctx, req.(*DetachNetworkInterfaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MachineRuntime_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MachineRuntimeServer).Status(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/machine.v1alpha1.MachineRuntime/Status", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MachineRuntimeServer).Status(ctx, req.(*StatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MachineRuntime_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExecRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MachineRuntimeServer).Exec(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/machine.v1alpha1.MachineRuntime/Exec", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MachineRuntimeServer).Exec(ctx, req.(*ExecRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _MachineRuntime_serviceDesc = grpc.ServiceDesc{ - ServiceName: "machine.v1alpha1.MachineRuntime", - HandlerType: (*MachineRuntimeServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Version", - Handler: _MachineRuntime_Version_Handler, - }, - { - MethodName: "ListEvents", - Handler: _MachineRuntime_ListEvents_Handler, - }, - { - MethodName: "ListMachines", - Handler: _MachineRuntime_ListMachines_Handler, - }, - { - MethodName: "CreateMachine", - Handler: _MachineRuntime_CreateMachine_Handler, - }, - { - MethodName: "DeleteMachine", - Handler: _MachineRuntime_DeleteMachine_Handler, - }, - { - MethodName: "UpdateMachineAnnotations", - Handler: _MachineRuntime_UpdateMachineAnnotations_Handler, - }, - { - MethodName: "UpdateMachinePower", - Handler: _MachineRuntime_UpdateMachinePower_Handler, - }, - { - MethodName: "AttachVolume", - Handler: _MachineRuntime_AttachVolume_Handler, - }, - { - MethodName: "DetachVolume", - Handler: _MachineRuntime_DetachVolume_Handler, - }, - { - MethodName: "AttachNetworkInterface", - Handler: _MachineRuntime_AttachNetworkInterface_Handler, - }, - { - MethodName: "DetachNetworkInterface", - Handler: _MachineRuntime_DetachNetworkInterface_Handler, - }, - { - MethodName: "Status", - Handler: _MachineRuntime_Status_Handler, - }, - { - MethodName: "Exec", - Handler: _MachineRuntime_Exec_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "api.proto", -} - -func (m *VolumeSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SecretData) > 0 { - for k := range m.SecretData { - v := m.SecretData[k] - baseI := i - if len(v) > 0 { - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Attributes) > 0 { - for k := range m.Attributes { - v := m.Attributes[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Handle) > 0 { - i -= len(m.Handle) - copy(dAtA[i:], m.Handle) - i = encodeVarintApi(dAtA, i, uint64(len(m.Handle))) - i-- - dAtA[i] = 0x12 - } - if len(m.Driver) > 0 { - i -= len(m.Driver) - copy(dAtA[i:], m.Driver) - i = encodeVarintApi(dAtA, i, uint64(len(m.Driver))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MachineFilter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MachineFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MachineFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.LabelSelector) > 0 { - for k := range m.LabelSelector { - v := m.LabelSelector[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintApi(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EventFilter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EventsToTime != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.EventsToTime)) - i-- - dAtA[i] = 0x20 - } - if m.EventsFromTime != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.EventsFromTime)) - i-- - dAtA[i] = 0x18 - } - if len(m.LabelSelector) > 0 { - for k := range m.LabelSelector { - v := m.LabelSelector[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintApi(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MachineClassCapabilities) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MachineClassCapabilities) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MachineClassCapabilities) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MemoryBytes != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.MemoryBytes)) - i-- - dAtA[i] = 0x10 - } - if m.CpuMillis != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.CpuMillis)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Machine) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Machine) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Machine) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Status != nil { - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Metadata != nil { - { - size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ImageSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImageSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Image) > 0 { - i -= len(m.Image) - copy(dAtA[i:], m.Image) - i = encodeVarintApi(dAtA, i, uint64(len(m.Image))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EmptyDisk) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EmptyDisk) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EmptyDisk) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SizeBytes != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.SizeBytes)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *VolumeConnection) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeConnection) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeConnection) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EncryptionData) > 0 { - for k := range m.EncryptionData { - v := m.EncryptionData[k] - baseI := i - if len(v) > 0 { - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - if len(m.SecretData) > 0 { - for k := range m.SecretData { - v := m.SecretData[k] - baseI := i - if len(v) > 0 { - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Attributes) > 0 { - for k := range m.Attributes { - v := m.Attributes[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Handle) > 0 { - i -= len(m.Handle) - copy(dAtA[i:], m.Handle) - i = encodeVarintApi(dAtA, i, uint64(len(m.Handle))) - i-- - dAtA[i] = 0x12 - } - if len(m.Driver) > 0 { - i -= len(m.Driver) - copy(dAtA[i:], m.Driver) - i = encodeVarintApi(dAtA, i, uint64(len(m.Driver))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Volume) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Volume) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Volume) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Connection != nil { - { - size, err := m.Connection.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.EmptyDisk != nil { - { - size, err := m.EmptyDisk.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Device) > 0 { - i -= len(m.Device) - copy(dAtA[i:], m.Device) - i = encodeVarintApi(dAtA, i, uint64(len(m.Device))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintApi(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *NetworkInterface) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkInterface) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkInterface) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Attributes) > 0 { - for k := range m.Attributes { - v := m.Attributes[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Ips) > 0 { - for iNdEx := len(m.Ips) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ips[iNdEx]) - copy(dAtA[i:], m.Ips[iNdEx]) - i = encodeVarintApi(dAtA, i, uint64(len(m.Ips[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.NetworkId) > 0 { - i -= len(m.NetworkId) - copy(dAtA[i:], m.NetworkId) - i = encodeVarintApi(dAtA, i, uint64(len(m.NetworkId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintApi(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MachineSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MachineSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MachineSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NetworkInterfaces) > 0 { - for iNdEx := len(m.NetworkInterfaces) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NetworkInterfaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if len(m.Volumes) > 0 { - for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Volumes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.IgnitionData) > 0 { - i -= len(m.IgnitionData) - copy(dAtA[i:], m.IgnitionData) - i = encodeVarintApi(dAtA, i, uint64(len(m.IgnitionData))) - i-- - dAtA[i] = 0x22 - } - if len(m.Class) > 0 { - i -= len(m.Class) - copy(dAtA[i:], m.Class) - i = encodeVarintApi(dAtA, i, uint64(len(m.Class))) - i-- - dAtA[i] = 0x1a - } - if m.Image != nil { - { - size, err := m.Image.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Power != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.Power)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *MachineStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MachineStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MachineStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NetworkInterfaces) > 0 { - for iNdEx := len(m.NetworkInterfaces) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NetworkInterfaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.Volumes) > 0 { - for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Volumes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.ImageRef) > 0 { - i -= len(m.ImageRef) - copy(dAtA[i:], m.ImageRef) - i = encodeVarintApi(dAtA, i, uint64(len(m.ImageRef))) - i-- - dAtA[i] = 0x1a - } - if m.State != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x10 - } - if m.ObservedGeneration != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *VolumeStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.State != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x18 - } - if len(m.Handle) > 0 { - i -= len(m.Handle) - copy(dAtA[i:], m.Handle) - i = encodeVarintApi(dAtA, i, uint64(len(m.Handle))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintApi(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *NetworkInterfaceStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkInterfaceStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkInterfaceStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ips) > 0 { - for iNdEx := len(m.Ips) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ips[iNdEx]) - copy(dAtA[i:], m.Ips[iNdEx]) - i = encodeVarintApi(dAtA, i, uint64(len(m.Ips[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if m.State != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x18 - } - if len(m.Handle) > 0 { - i -= len(m.Handle) - copy(dAtA[i:], m.Handle) - i = encodeVarintApi(dAtA, i, uint64(len(m.Handle))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintApi(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MachineClass) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MachineClass) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MachineClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Capabilities != nil { - { - size, err := m.Capabilities.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintApi(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MachineClassStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MachineClassStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MachineClassStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Quantity != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.Quantity)) - i-- - dAtA[i] = 0x10 - } - if m.MachineClass != nil { - { - size, err := m.MachineClass.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VersionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VersionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Version) > 0 { - i -= len(m.Version) - copy(dAtA[i:], m.Version) - i = encodeVarintApi(dAtA, i, uint64(len(m.Version))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VersionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +type ExecResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *VersionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` } -func (m *VersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RuntimeVersion) > 0 { - i -= len(m.RuntimeVersion) - copy(dAtA[i:], m.RuntimeVersion) - i = encodeVarintApi(dAtA, i, uint64(len(m.RuntimeVersion))) - i-- - dAtA[i] = 0x12 - } - if len(m.RuntimeName) > 0 { - i -= len(m.RuntimeName) - copy(dAtA[i:], m.RuntimeName) - i = encodeVarintApi(dAtA, i, uint64(len(m.RuntimeName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *ExecResponse) Reset() { + *x = ExecResponse{} + mi := &file_machine_v1alpha1_api_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListMachinesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *ExecResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListMachinesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*ExecResponse) ProtoMessage() {} -func (m *ListMachinesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Filter != nil { - { - size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) +func (x *ExecResponse) ProtoReflect() protoreflect.Message { + mi := &file_machine_v1alpha1_api_proto_msgTypes[41] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListMachinesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListMachinesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListMachinesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Machines) > 0 { - for iNdEx := len(m.Machines) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Machines[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ListEventsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *ListEventsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListEventsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Filter != nil { - { - size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListEventsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListEventsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListEventsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Events) > 0 { - for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil +// Deprecated: Use ExecResponse.ProtoReflect.Descriptor instead. +func (*ExecResponse) Descriptor() ([]byte, []int) { + return file_machine_v1alpha1_api_proto_rawDescGZIP(), []int{41} } -func (m *CreateMachineRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ExecResponse) GetUrl() string { + if x != nil { + return x.Url } - return dAtA[:n], nil -} - -func (m *CreateMachineRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *CreateMachineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Machine != nil { - { - size, err := m.Machine.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +var File_machine_v1alpha1_api_proto protoreflect.FileDescriptor + +var file_machine_v1alpha1_api_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6d, 0x61, + 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x17, + 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x70, + 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xd7, 0x02, 0x0a, 0x0a, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x70, 0x65, 0x63, + 0x12, 0x16, 0x0a, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x61, 0x6e, 0x64, + 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, + 0x12, 0x4c, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x70, + 0x65, 0x63, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x4d, + 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x70, 0x65, + 0x63, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x3d, 0x0a, + 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3d, 0x0a, 0x0f, + 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xbc, 0x01, 0x0a, 0x0d, + 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x59, 0x0a, + 0x0e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x1a, 0x40, 0x0a, 0x12, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x88, 0x02, 0x0a, 0x0b, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x57, 0x0a, 0x0e, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x66, 0x72, + 0x6f, 0x6d, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x24, 0x0a, + 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x54, 0x6f, 0x54, + 0x69, 0x6d, 0x65, 0x1a, 0x40, 0x0a, 0x12, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x5c, 0x0a, 0x18, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, + 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x70, 0x75, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x70, 0x75, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, + 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0x79, + 0x74, 0x65, 0x73, 0x22, 0xb0, 0x01, 0x0a, 0x07, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, + 0x39, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x04, 0x73, 0x70, + 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, + 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x37, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x21, 0x0a, 0x09, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x53, + 0x70, 0x65, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x2a, 0x0a, 0x09, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x44, 0x69, 0x73, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x62, + 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x69, 0x7a, 0x65, + 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x8d, 0x04, 0x0a, 0x10, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x72, + 0x69, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x72, 0x69, 0x76, + 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x52, 0x0a, 0x0a, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, + 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x53, + 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, + 0x61, 0x74, 0x61, 0x12, 0x5f, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x6d, + 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x44, 0x61, 0x74, 0x61, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x1a, 0x3d, 0x0a, 0x0f, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x1a, 0x41, 0x0a, 0x13, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb4, 0x01, 0x0a, 0x06, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x0a, + 0x65, 0x6d, 0x70, 0x74, 0x79, 0x5f, 0x64, 0x69, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x44, 0x69, 0x73, 0x6b, 0x52, 0x09, 0x65, + 0x6d, 0x70, 0x74, 0x79, 0x44, 0x69, 0x73, 0x6b, 0x12, 0x42, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d, + 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xea, 0x01, 0x0a, + 0x10, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x70, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x03, 0x69, 0x70, 0x73, 0x12, 0x52, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb1, 0x02, 0x0a, 0x0b, 0x4d, 0x61, + 0x63, 0x68, 0x69, 0x6e, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x2d, 0x0a, 0x05, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, + 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6f, 0x77, 0x65, + 0x72, 0x52, 0x05, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, + 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, + 0x53, 0x70, 0x65, 0x63, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x67, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x69, 0x67, 0x6e, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x32, 0x0a, 0x07, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, + 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x52, 0x07, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x12, 0x51, 0x0a, 0x12, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x11, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x22, 0xa6, 0x02, + 0x0a, 0x0d, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x2f, 0x0a, 0x13, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x6f, 0x62, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x34, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1e, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, + 0x72, 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x66, 0x12, 0x38, 0x0a, 0x07, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x07, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x12, 0x57, 0x0a, + 0x12, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x11, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x22, 0x6f, 0x0a, 0x0c, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x61, + 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x61, 0x6e, 0x64, + 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x1d, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x95, 0x01, 0x0a, 0x16, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x3d, + 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, + 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, + 0x03, 0x69, 0x70, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x70, 0x73, 0x22, + 0x72, 0x0a, 0x0c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x4e, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x69, 0x65, 0x73, 0x22, 0x75, 0x0a, 0x12, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x43, 0x0a, 0x0d, 0x6d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x52, 0x0c, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x1a, + 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x2a, 0x0a, 0x0e, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x0a, 0x0f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x75, 0x6e, + 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, + 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x4e, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6d, + 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x66, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x4d, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, + 0x08, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x08, 0x6d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x73, 0x22, 0x4a, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x22, 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x4b, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, + 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, + 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, + 0x6e, 0x65, 0x22, 0x4c, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x6d, + 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, + 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x22, 0x35, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, + 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0xe6, 0x01, 0x0a, 0x1f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, + 0x6e, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, + 0x65, 0x49, 0x64, 0x12, 0x64, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, + 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x22, 0x0a, 0x20, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x69, 0x0a, + 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50, 0x6f, + 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, + 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x05, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, + 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6f, 0x77, 0x65, + 0x72, 0x52, 0x05, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x22, 0x1c, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x66, 0x0a, 0x13, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x06, + 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6d, + 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x16, + 0x0a, 0x14, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x0a, 0x13, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0x16, 0x0a, 0x14, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x1d, 0x41, 0x74, 0x74, + 0x61, 0x63, 0x68, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, + 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x4f, 0x0a, 0x11, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x10, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x20, 0x0a, 0x1e, 0x41, 0x74, + 0x74, 0x61, 0x63, 0x68, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, + 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x0a, 0x1d, + 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0x20, 0x0a, 0x1e, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0x68, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x14, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x12, 0x6d, 0x61, 0x63, 0x68, 0x69, + 0x6e, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x2c, 0x0a, + 0x0b, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x22, 0x20, 0x0a, 0x0c, 0x45, + 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, + 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x2a, 0x24, 0x0a, + 0x05, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f, + 0x4f, 0x4e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f, 0x4f, 0x46, + 0x46, 0x10, 0x01, 0x2a, 0x36, 0x0a, 0x0b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x4f, 0x4c, 0x55, 0x4d, 0x45, 0x5f, 0x50, 0x45, 0x4e, + 0x44, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x56, 0x4f, 0x4c, 0x55, 0x4d, 0x45, + 0x5f, 0x41, 0x54, 0x54, 0x41, 0x43, 0x48, 0x45, 0x44, 0x10, 0x01, 0x2a, 0x56, 0x0a, 0x15, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x5f, + 0x49, 0x4e, 0x54, 0x45, 0x52, 0x46, 0x41, 0x43, 0x45, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, + 0x47, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x49, + 0x4e, 0x54, 0x45, 0x52, 0x46, 0x41, 0x43, 0x45, 0x5f, 0x41, 0x54, 0x54, 0x41, 0x43, 0x48, 0x45, + 0x44, 0x10, 0x01, 0x2a, 0x80, 0x01, 0x0a, 0x0c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x41, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x5f, + 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x41, 0x43, + 0x48, 0x49, 0x4e, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x15, + 0x0a, 0x11, 0x4d, 0x41, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x5f, 0x53, 0x55, 0x53, 0x50, 0x45, 0x4e, + 0x44, 0x45, 0x44, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x4d, 0x41, 0x43, 0x48, 0x49, 0x4e, 0x45, + 0x5f, 0x54, 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, 0x17, 0x0a, + 0x13, 0x4d, 0x41, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, + 0x54, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x32, 0xab, 0x0a, 0x0a, 0x0e, 0x4d, 0x61, 0x63, 0x68, 0x69, + 0x6e, 0x65, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x07, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x0a, 0x4c, + 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x23, 0x2e, 0x6d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, + 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5f, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, + 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, + 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, + 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x62, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x26, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, + 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x27, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x62, 0x0a, 0x0d, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x26, 0x2e, 0x6d, + 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, + 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x81, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, + 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x31, 0x2e, 0x6d, + 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x41, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x32, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x6d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x0c, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x25, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x6d, 0x61, + 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, + 0x74, 0x74, 0x61, 0x63, 0x68, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5f, 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x25, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x6d, + 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7b, 0x0a, 0x16, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, + 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x12, 0x2f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x30, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x16, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2f, 0x2e, + 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, + 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x4b, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x2e, 0x6d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x6d, 0x61, + 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, + 0x04, 0x45, 0x78, 0x65, 0x63, 0x12, 0x1d, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x69, 0x72, 0x6f, 0x6e, 0x63, 0x6f, 0x72, 0x65, 0x2d, 0x64, 0x65, 0x76, 0x2f, + 0x69, 0x72, 0x6f, 0x6e, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x72, 0x69, 0x2f, 0x61, 0x70, 0x69, + 0x73, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *CreateMachineResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +var ( + file_machine_v1alpha1_api_proto_rawDescOnce sync.Once + file_machine_v1alpha1_api_proto_rawDescData = file_machine_v1alpha1_api_proto_rawDesc +) -func (m *CreateMachineResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func file_machine_v1alpha1_api_proto_rawDescGZIP() []byte { + file_machine_v1alpha1_api_proto_rawDescOnce.Do(func() { + file_machine_v1alpha1_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_machine_v1alpha1_api_proto_rawDescData) + }) + return file_machine_v1alpha1_api_proto_rawDescData +} + +var file_machine_v1alpha1_api_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_machine_v1alpha1_api_proto_msgTypes = make([]protoimpl.MessageInfo, 51) +var file_machine_v1alpha1_api_proto_goTypes = []any{ + (Power)(0), // 0: machine.v1alpha1.Power + (VolumeState)(0), // 1: machine.v1alpha1.VolumeState + (NetworkInterfaceState)(0), // 2: machine.v1alpha1.NetworkInterfaceState + (MachineState)(0), // 3: machine.v1alpha1.MachineState + (*VolumeSpec)(nil), // 4: machine.v1alpha1.VolumeSpec + (*MachineFilter)(nil), // 5: machine.v1alpha1.MachineFilter + (*EventFilter)(nil), // 6: machine.v1alpha1.EventFilter + (*MachineClassCapabilities)(nil), // 7: machine.v1alpha1.MachineClassCapabilities + (*Machine)(nil), // 8: machine.v1alpha1.Machine + (*ImageSpec)(nil), // 9: machine.v1alpha1.ImageSpec + (*EmptyDisk)(nil), // 10: machine.v1alpha1.EmptyDisk + (*VolumeConnection)(nil), // 11: machine.v1alpha1.VolumeConnection + (*Volume)(nil), // 12: machine.v1alpha1.Volume + (*NetworkInterface)(nil), // 13: machine.v1alpha1.NetworkInterface + (*MachineSpec)(nil), // 14: machine.v1alpha1.MachineSpec + (*MachineStatus)(nil), // 15: machine.v1alpha1.MachineStatus + (*VolumeStatus)(nil), // 16: machine.v1alpha1.VolumeStatus + (*NetworkInterfaceStatus)(nil), // 17: machine.v1alpha1.NetworkInterfaceStatus + (*MachineClass)(nil), // 18: machine.v1alpha1.MachineClass + (*MachineClassStatus)(nil), // 19: machine.v1alpha1.MachineClassStatus + (*VersionRequest)(nil), // 20: machine.v1alpha1.VersionRequest + (*VersionResponse)(nil), // 21: machine.v1alpha1.VersionResponse + (*ListMachinesRequest)(nil), // 22: machine.v1alpha1.ListMachinesRequest + (*ListMachinesResponse)(nil), // 23: machine.v1alpha1.ListMachinesResponse + (*ListEventsRequest)(nil), // 24: machine.v1alpha1.ListEventsRequest + (*ListEventsResponse)(nil), // 25: machine.v1alpha1.ListEventsResponse + (*CreateMachineRequest)(nil), // 26: machine.v1alpha1.CreateMachineRequest + (*CreateMachineResponse)(nil), // 27: machine.v1alpha1.CreateMachineResponse + (*DeleteMachineRequest)(nil), // 28: machine.v1alpha1.DeleteMachineRequest + (*DeleteMachineResponse)(nil), // 29: machine.v1alpha1.DeleteMachineResponse + (*UpdateMachineAnnotationsRequest)(nil), // 30: machine.v1alpha1.UpdateMachineAnnotationsRequest + (*UpdateMachineAnnotationsResponse)(nil), // 31: machine.v1alpha1.UpdateMachineAnnotationsResponse + (*UpdateMachinePowerRequest)(nil), // 32: machine.v1alpha1.UpdateMachinePowerRequest + (*UpdateMachinePowerResponse)(nil), // 33: machine.v1alpha1.UpdateMachinePowerResponse + (*AttachVolumeRequest)(nil), // 34: machine.v1alpha1.AttachVolumeRequest + (*AttachVolumeResponse)(nil), // 35: machine.v1alpha1.AttachVolumeResponse + (*DetachVolumeRequest)(nil), // 36: machine.v1alpha1.DetachVolumeRequest + (*DetachVolumeResponse)(nil), // 37: machine.v1alpha1.DetachVolumeResponse + (*AttachNetworkInterfaceRequest)(nil), // 38: machine.v1alpha1.AttachNetworkInterfaceRequest + (*AttachNetworkInterfaceResponse)(nil), // 39: machine.v1alpha1.AttachNetworkInterfaceResponse + (*DetachNetworkInterfaceRequest)(nil), // 40: machine.v1alpha1.DetachNetworkInterfaceRequest + (*DetachNetworkInterfaceResponse)(nil), // 41: machine.v1alpha1.DetachNetworkInterfaceResponse + (*StatusRequest)(nil), // 42: machine.v1alpha1.StatusRequest + (*StatusResponse)(nil), // 43: machine.v1alpha1.StatusResponse + (*ExecRequest)(nil), // 44: machine.v1alpha1.ExecRequest + (*ExecResponse)(nil), // 45: machine.v1alpha1.ExecResponse + nil, // 46: machine.v1alpha1.VolumeSpec.AttributesEntry + nil, // 47: machine.v1alpha1.VolumeSpec.SecretDataEntry + nil, // 48: machine.v1alpha1.MachineFilter.LabelSelectorEntry + nil, // 49: machine.v1alpha1.EventFilter.LabelSelectorEntry + nil, // 50: machine.v1alpha1.VolumeConnection.AttributesEntry + nil, // 51: machine.v1alpha1.VolumeConnection.SecretDataEntry + nil, // 52: machine.v1alpha1.VolumeConnection.EncryptionDataEntry + nil, // 53: machine.v1alpha1.NetworkInterface.AttributesEntry + nil, // 54: machine.v1alpha1.UpdateMachineAnnotationsRequest.AnnotationsEntry + (*v1alpha1.ObjectMetadata)(nil), // 55: meta.v1alpha1.ObjectMetadata + (*v1alpha11.Event)(nil), // 56: event.v1alpha1.Event +} +var file_machine_v1alpha1_api_proto_depIdxs = []int32{ + 46, // 0: machine.v1alpha1.VolumeSpec.attributes:type_name -> machine.v1alpha1.VolumeSpec.AttributesEntry + 47, // 1: machine.v1alpha1.VolumeSpec.secret_data:type_name -> machine.v1alpha1.VolumeSpec.SecretDataEntry + 48, // 2: machine.v1alpha1.MachineFilter.label_selector:type_name -> machine.v1alpha1.MachineFilter.LabelSelectorEntry + 49, // 3: machine.v1alpha1.EventFilter.label_selector:type_name -> machine.v1alpha1.EventFilter.LabelSelectorEntry + 55, // 4: machine.v1alpha1.Machine.metadata:type_name -> meta.v1alpha1.ObjectMetadata + 14, // 5: machine.v1alpha1.Machine.spec:type_name -> machine.v1alpha1.MachineSpec + 15, // 6: machine.v1alpha1.Machine.status:type_name -> machine.v1alpha1.MachineStatus + 50, // 7: machine.v1alpha1.VolumeConnection.attributes:type_name -> machine.v1alpha1.VolumeConnection.AttributesEntry + 51, // 8: machine.v1alpha1.VolumeConnection.secret_data:type_name -> machine.v1alpha1.VolumeConnection.SecretDataEntry + 52, // 9: machine.v1alpha1.VolumeConnection.encryption_data:type_name -> machine.v1alpha1.VolumeConnection.EncryptionDataEntry + 10, // 10: machine.v1alpha1.Volume.empty_disk:type_name -> machine.v1alpha1.EmptyDisk + 11, // 11: machine.v1alpha1.Volume.connection:type_name -> machine.v1alpha1.VolumeConnection + 53, // 12: machine.v1alpha1.NetworkInterface.attributes:type_name -> machine.v1alpha1.NetworkInterface.AttributesEntry + 0, // 13: machine.v1alpha1.MachineSpec.power:type_name -> machine.v1alpha1.Power + 9, // 14: machine.v1alpha1.MachineSpec.image:type_name -> machine.v1alpha1.ImageSpec + 12, // 15: machine.v1alpha1.MachineSpec.volumes:type_name -> machine.v1alpha1.Volume + 13, // 16: machine.v1alpha1.MachineSpec.network_interfaces:type_name -> machine.v1alpha1.NetworkInterface + 3, // 17: machine.v1alpha1.MachineStatus.state:type_name -> machine.v1alpha1.MachineState + 16, // 18: machine.v1alpha1.MachineStatus.volumes:type_name -> machine.v1alpha1.VolumeStatus + 17, // 19: machine.v1alpha1.MachineStatus.network_interfaces:type_name -> machine.v1alpha1.NetworkInterfaceStatus + 1, // 20: machine.v1alpha1.VolumeStatus.state:type_name -> machine.v1alpha1.VolumeState + 2, // 21: machine.v1alpha1.NetworkInterfaceStatus.state:type_name -> machine.v1alpha1.NetworkInterfaceState + 7, // 22: machine.v1alpha1.MachineClass.capabilities:type_name -> machine.v1alpha1.MachineClassCapabilities + 18, // 23: machine.v1alpha1.MachineClassStatus.machine_class:type_name -> machine.v1alpha1.MachineClass + 5, // 24: machine.v1alpha1.ListMachinesRequest.filter:type_name -> machine.v1alpha1.MachineFilter + 8, // 25: machine.v1alpha1.ListMachinesResponse.machines:type_name -> machine.v1alpha1.Machine + 6, // 26: machine.v1alpha1.ListEventsRequest.filter:type_name -> machine.v1alpha1.EventFilter + 56, // 27: machine.v1alpha1.ListEventsResponse.events:type_name -> event.v1alpha1.Event + 8, // 28: machine.v1alpha1.CreateMachineRequest.machine:type_name -> machine.v1alpha1.Machine + 8, // 29: machine.v1alpha1.CreateMachineResponse.machine:type_name -> machine.v1alpha1.Machine + 54, // 30: machine.v1alpha1.UpdateMachineAnnotationsRequest.annotations:type_name -> machine.v1alpha1.UpdateMachineAnnotationsRequest.AnnotationsEntry + 0, // 31: machine.v1alpha1.UpdateMachinePowerRequest.power:type_name -> machine.v1alpha1.Power + 12, // 32: machine.v1alpha1.AttachVolumeRequest.volume:type_name -> machine.v1alpha1.Volume + 13, // 33: machine.v1alpha1.AttachNetworkInterfaceRequest.network_interface:type_name -> machine.v1alpha1.NetworkInterface + 19, // 34: machine.v1alpha1.StatusResponse.machine_class_status:type_name -> machine.v1alpha1.MachineClassStatus + 20, // 35: machine.v1alpha1.MachineRuntime.Version:input_type -> machine.v1alpha1.VersionRequest + 24, // 36: machine.v1alpha1.MachineRuntime.ListEvents:input_type -> machine.v1alpha1.ListEventsRequest + 22, // 37: machine.v1alpha1.MachineRuntime.ListMachines:input_type -> machine.v1alpha1.ListMachinesRequest + 26, // 38: machine.v1alpha1.MachineRuntime.CreateMachine:input_type -> machine.v1alpha1.CreateMachineRequest + 28, // 39: machine.v1alpha1.MachineRuntime.DeleteMachine:input_type -> machine.v1alpha1.DeleteMachineRequest + 30, // 40: machine.v1alpha1.MachineRuntime.UpdateMachineAnnotations:input_type -> machine.v1alpha1.UpdateMachineAnnotationsRequest + 32, // 41: machine.v1alpha1.MachineRuntime.UpdateMachinePower:input_type -> machine.v1alpha1.UpdateMachinePowerRequest + 34, // 42: machine.v1alpha1.MachineRuntime.AttachVolume:input_type -> machine.v1alpha1.AttachVolumeRequest + 36, // 43: machine.v1alpha1.MachineRuntime.DetachVolume:input_type -> machine.v1alpha1.DetachVolumeRequest + 38, // 44: machine.v1alpha1.MachineRuntime.AttachNetworkInterface:input_type -> machine.v1alpha1.AttachNetworkInterfaceRequest + 40, // 45: machine.v1alpha1.MachineRuntime.DetachNetworkInterface:input_type -> machine.v1alpha1.DetachNetworkInterfaceRequest + 42, // 46: machine.v1alpha1.MachineRuntime.Status:input_type -> machine.v1alpha1.StatusRequest + 44, // 47: machine.v1alpha1.MachineRuntime.Exec:input_type -> machine.v1alpha1.ExecRequest + 21, // 48: machine.v1alpha1.MachineRuntime.Version:output_type -> machine.v1alpha1.VersionResponse + 25, // 49: machine.v1alpha1.MachineRuntime.ListEvents:output_type -> machine.v1alpha1.ListEventsResponse + 23, // 50: machine.v1alpha1.MachineRuntime.ListMachines:output_type -> machine.v1alpha1.ListMachinesResponse + 27, // 51: machine.v1alpha1.MachineRuntime.CreateMachine:output_type -> machine.v1alpha1.CreateMachineResponse + 29, // 52: machine.v1alpha1.MachineRuntime.DeleteMachine:output_type -> machine.v1alpha1.DeleteMachineResponse + 31, // 53: machine.v1alpha1.MachineRuntime.UpdateMachineAnnotations:output_type -> machine.v1alpha1.UpdateMachineAnnotationsResponse + 33, // 54: machine.v1alpha1.MachineRuntime.UpdateMachinePower:output_type -> machine.v1alpha1.UpdateMachinePowerResponse + 35, // 55: machine.v1alpha1.MachineRuntime.AttachVolume:output_type -> machine.v1alpha1.AttachVolumeResponse + 37, // 56: machine.v1alpha1.MachineRuntime.DetachVolume:output_type -> machine.v1alpha1.DetachVolumeResponse + 39, // 57: machine.v1alpha1.MachineRuntime.AttachNetworkInterface:output_type -> machine.v1alpha1.AttachNetworkInterfaceResponse + 41, // 58: machine.v1alpha1.MachineRuntime.DetachNetworkInterface:output_type -> machine.v1alpha1.DetachNetworkInterfaceResponse + 43, // 59: machine.v1alpha1.MachineRuntime.Status:output_type -> machine.v1alpha1.StatusResponse + 45, // 60: machine.v1alpha1.MachineRuntime.Exec:output_type -> machine.v1alpha1.ExecResponse + 48, // [48:61] is the sub-list for method output_type + 35, // [35:48] is the sub-list for method input_type + 35, // [35:35] is the sub-list for extension type_name + 35, // [35:35] is the sub-list for extension extendee + 0, // [0:35] is the sub-list for field type_name +} + +func init() { file_machine_v1alpha1_api_proto_init() } +func file_machine_v1alpha1_api_proto_init() { + if File_machine_v1alpha1_api_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_machine_v1alpha1_api_proto_rawDesc, + NumEnums: 4, + NumMessages: 51, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_machine_v1alpha1_api_proto_goTypes, + DependencyIndexes: file_machine_v1alpha1_api_proto_depIdxs, + EnumInfos: file_machine_v1alpha1_api_proto_enumTypes, + MessageInfos: file_machine_v1alpha1_api_proto_msgTypes, + }.Build() + File_machine_v1alpha1_api_proto = out.File + file_machine_v1alpha1_api_proto_rawDesc = nil + file_machine_v1alpha1_api_proto_goTypes = nil + file_machine_v1alpha1_api_proto_depIdxs = nil } - -func (m *CreateMachineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Machine != nil { - { - size, err := m.Machine.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DeleteMachineRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeleteMachineRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteMachineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MachineId) > 0 { - i -= len(m.MachineId) - copy(dAtA[i:], m.MachineId) - i = encodeVarintApi(dAtA, i, uint64(len(m.MachineId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DeleteMachineResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeleteMachineResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteMachineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *UpdateMachineAnnotationsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateMachineAnnotationsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateMachineAnnotationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Annotations) > 0 { - for k := range m.Annotations { - v := m.Annotations[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.MachineId) > 0 { - i -= len(m.MachineId) - copy(dAtA[i:], m.MachineId) - i = encodeVarintApi(dAtA, i, uint64(len(m.MachineId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *UpdateMachineAnnotationsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateMachineAnnotationsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateMachineAnnotationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *UpdateMachinePowerRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateMachinePowerRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateMachinePowerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Power != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.Power)) - i-- - dAtA[i] = 0x10 - } - if len(m.MachineId) > 0 { - i -= len(m.MachineId) - copy(dAtA[i:], m.MachineId) - i = encodeVarintApi(dAtA, i, uint64(len(m.MachineId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *UpdateMachinePowerResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateMachinePowerResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateMachinePowerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *AttachVolumeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AttachVolumeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AttachVolumeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Volume != nil { - { - size, err := m.Volume.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.MachineId) > 0 { - i -= len(m.MachineId) - copy(dAtA[i:], m.MachineId) - i = encodeVarintApi(dAtA, i, uint64(len(m.MachineId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AttachVolumeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AttachVolumeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AttachVolumeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DetachVolumeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DetachVolumeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DetachVolumeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintApi(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.MachineId) > 0 { - i -= len(m.MachineId) - copy(dAtA[i:], m.MachineId) - i = encodeVarintApi(dAtA, i, uint64(len(m.MachineId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DetachVolumeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DetachVolumeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DetachVolumeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *AttachNetworkInterfaceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AttachNetworkInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AttachNetworkInterfaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NetworkInterface != nil { - { - size, err := m.NetworkInterface.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.MachineId) > 0 { - i -= len(m.MachineId) - copy(dAtA[i:], m.MachineId) - i = encodeVarintApi(dAtA, i, uint64(len(m.MachineId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AttachNetworkInterfaceResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AttachNetworkInterfaceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AttachNetworkInterfaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DetachNetworkInterfaceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DetachNetworkInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DetachNetworkInterfaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintApi(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.MachineId) > 0 { - i -= len(m.MachineId) - copy(dAtA[i:], m.MachineId) - i = encodeVarintApi(dAtA, i, uint64(len(m.MachineId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DetachNetworkInterfaceResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DetachNetworkInterfaceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DetachNetworkInterfaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *StatusRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *StatusResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MachineClassStatus) > 0 { - for iNdEx := len(m.MachineClassStatus) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MachineClassStatus[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ExecRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExecRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExecRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MachineId) > 0 { - i -= len(m.MachineId) - copy(dAtA[i:], m.MachineId) - i = encodeVarintApi(dAtA, i, uint64(len(m.MachineId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ExecResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExecResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExecResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Url) > 0 { - i -= len(m.Url) - copy(dAtA[i:], m.Url) - i = encodeVarintApi(dAtA, i, uint64(len(m.Url))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintApi(dAtA []byte, offset int, v uint64) int { - offset -= sovApi(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *VolumeSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Driver) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Handle) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.Attributes) > 0 { - for k, v := range m.Attributes { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - if len(m.SecretData) > 0 { - for k, v := range m.SecretData { - _ = k - _ = v - l = 0 - if len(v) > 0 { - l = 1 + len(v) + sovApi(uint64(len(v))) - } - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + l - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - return n -} - -func (m *MachineFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.LabelSelector) > 0 { - for k, v := range m.LabelSelector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - return n -} - -func (m *EventFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.LabelSelector) > 0 { - for k, v := range m.LabelSelector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - if m.EventsFromTime != 0 { - n += 1 + sovApi(uint64(m.EventsFromTime)) - } - if m.EventsToTime != 0 { - n += 1 + sovApi(uint64(m.EventsToTime)) - } - return n -} - -func (m *MachineClassCapabilities) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CpuMillis != 0 { - n += 1 + sovApi(uint64(m.CpuMillis)) - } - if m.MemoryBytes != 0 { - n += 1 + sovApi(uint64(m.MemoryBytes)) - } - return n -} - -func (m *Machine) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovApi(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovApi(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *ImageSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Image) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *EmptyDisk) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SizeBytes != 0 { - n += 1 + sovApi(uint64(m.SizeBytes)) - } - return n -} - -func (m *VolumeConnection) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Driver) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Handle) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.Attributes) > 0 { - for k, v := range m.Attributes { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - if len(m.SecretData) > 0 { - for k, v := range m.SecretData { - _ = k - _ = v - l = 0 - if len(v) > 0 { - l = 1 + len(v) + sovApi(uint64(len(v))) - } - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + l - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - if len(m.EncryptionData) > 0 { - for k, v := range m.EncryptionData { - _ = k - _ = v - l = 0 - if len(v) > 0 { - l = 1 + len(v) + sovApi(uint64(len(v))) - } - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + l - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - return n -} - -func (m *Volume) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Device) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.EmptyDisk != nil { - l = m.EmptyDisk.Size() - n += 1 + l + sovApi(uint64(l)) - } - if m.Connection != nil { - l = m.Connection.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *NetworkInterface) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.NetworkId) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.Ips) > 0 { - for _, s := range m.Ips { - l = len(s) - n += 1 + l + sovApi(uint64(l)) - } - } - if len(m.Attributes) > 0 { - for k, v := range m.Attributes { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - return n -} - -func (m *MachineSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Power != 0 { - n += 1 + sovApi(uint64(m.Power)) - } - if m.Image != nil { - l = m.Image.Size() - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Class) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.IgnitionData) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.Volumes) > 0 { - for _, e := range m.Volumes { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - if len(m.NetworkInterfaces) > 0 { - for _, e := range m.NetworkInterfaces { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - return n -} - -func (m *MachineStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ObservedGeneration != 0 { - n += 1 + sovApi(uint64(m.ObservedGeneration)) - } - if m.State != 0 { - n += 1 + sovApi(uint64(m.State)) - } - l = len(m.ImageRef) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.Volumes) > 0 { - for _, e := range m.Volumes { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - if len(m.NetworkInterfaces) > 0 { - for _, e := range m.NetworkInterfaces { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - return n -} - -func (m *VolumeStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Handle) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.State != 0 { - n += 1 + sovApi(uint64(m.State)) - } - return n -} - -func (m *NetworkInterfaceStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Handle) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.State != 0 { - n += 1 + sovApi(uint64(m.State)) - } - if len(m.Ips) > 0 { - for _, s := range m.Ips { - l = len(s) - n += 1 + l + sovApi(uint64(l)) - } - } - return n -} - -func (m *MachineClass) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.Capabilities != nil { - l = m.Capabilities.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *MachineClassStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MachineClass != nil { - l = m.MachineClass.Size() - n += 1 + l + sovApi(uint64(l)) - } - if m.Quantity != 0 { - n += 1 + sovApi(uint64(m.Quantity)) - } - return n -} - -func (m *VersionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Version) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *VersionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RuntimeName) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.RuntimeVersion) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *ListMachinesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Filter != nil { - l = m.Filter.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *ListMachinesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Machines) > 0 { - for _, e := range m.Machines { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - return n -} - -func (m *ListEventsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Filter != nil { - l = m.Filter.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *ListEventsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - return n -} - -func (m *CreateMachineRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Machine != nil { - l = m.Machine.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *CreateMachineResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Machine != nil { - l = m.Machine.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *DeleteMachineRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MachineId) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *DeleteMachineResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *UpdateMachineAnnotationsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MachineId) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.Annotations) > 0 { - for k, v := range m.Annotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - return n -} - -func (m *UpdateMachineAnnotationsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *UpdateMachinePowerRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MachineId) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.Power != 0 { - n += 1 + sovApi(uint64(m.Power)) - } - return n -} - -func (m *UpdateMachinePowerResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *AttachVolumeRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MachineId) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.Volume != nil { - l = m.Volume.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *AttachVolumeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DetachVolumeRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MachineId) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *DetachVolumeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *AttachNetworkInterfaceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MachineId) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.NetworkInterface != nil { - l = m.NetworkInterface.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *AttachNetworkInterfaceResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DetachNetworkInterfaceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MachineId) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *DetachNetworkInterfaceResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *StatusRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *StatusResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.MachineClassStatus) > 0 { - for _, e := range m.MachineClassStatus { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - return n -} - -func (m *ExecRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MachineId) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *ExecResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Url) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func sovApi(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozApi(x uint64) (n int) { - return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *VolumeSpec) String() string { - if this == nil { - return "nil" - } - keysForAttributes := make([]string, 0, len(this.Attributes)) - for k, _ := range this.Attributes { - keysForAttributes = append(keysForAttributes, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAttributes) - mapStringForAttributes := "map[string]string{" - for _, k := range keysForAttributes { - mapStringForAttributes += fmt.Sprintf("%v: %v,", k, this.Attributes[k]) - } - mapStringForAttributes += "}" - keysForSecretData := make([]string, 0, len(this.SecretData)) - for k, _ := range this.SecretData { - keysForSecretData = append(keysForSecretData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSecretData) - mapStringForSecretData := "map[string][]byte{" - for _, k := range keysForSecretData { - mapStringForSecretData += fmt.Sprintf("%v: %v,", k, this.SecretData[k]) - } - mapStringForSecretData += "}" - s := strings.Join([]string{`&VolumeSpec{`, - `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, - `Handle:` + fmt.Sprintf("%v", this.Handle) + `,`, - `Attributes:` + mapStringForAttributes + `,`, - `SecretData:` + mapStringForSecretData + `,`, - `}`, - }, "") - return s -} -func (this *MachineFilter) String() string { - if this == nil { - return "nil" - } - keysForLabelSelector := make([]string, 0, len(this.LabelSelector)) - for k, _ := range this.LabelSelector { - keysForLabelSelector = append(keysForLabelSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForLabelSelector) - mapStringForLabelSelector := "map[string]string{" - for _, k := range keysForLabelSelector { - mapStringForLabelSelector += fmt.Sprintf("%v: %v,", k, this.LabelSelector[k]) - } - mapStringForLabelSelector += "}" - s := strings.Join([]string{`&MachineFilter{`, - `Id:` + fmt.Sprintf("%v", this.Id) + `,`, - `LabelSelector:` + mapStringForLabelSelector + `,`, - `}`, - }, "") - return s -} -func (this *EventFilter) String() string { - if this == nil { - return "nil" - } - keysForLabelSelector := make([]string, 0, len(this.LabelSelector)) - for k, _ := range this.LabelSelector { - keysForLabelSelector = append(keysForLabelSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForLabelSelector) - mapStringForLabelSelector := "map[string]string{" - for _, k := range keysForLabelSelector { - mapStringForLabelSelector += fmt.Sprintf("%v: %v,", k, this.LabelSelector[k]) - } - mapStringForLabelSelector += "}" - s := strings.Join([]string{`&EventFilter{`, - `Id:` + fmt.Sprintf("%v", this.Id) + `,`, - `LabelSelector:` + mapStringForLabelSelector + `,`, - `EventsFromTime:` + fmt.Sprintf("%v", this.EventsFromTime) + `,`, - `EventsToTime:` + fmt.Sprintf("%v", this.EventsToTime) + `,`, - `}`, - }, "") - return s -} -func (this *MachineClassCapabilities) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MachineClassCapabilities{`, - `CpuMillis:` + fmt.Sprintf("%v", this.CpuMillis) + `,`, - `MemoryBytes:` + fmt.Sprintf("%v", this.MemoryBytes) + `,`, - `}`, - }, "") - return s -} -func (this *Machine) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Machine{`, - `Metadata:` + strings.Replace(fmt.Sprintf("%v", this.Metadata), "ObjectMetadata", "v1alpha1.ObjectMetadata", 1) + `,`, - `Spec:` + strings.Replace(this.Spec.String(), "MachineSpec", "MachineSpec", 1) + `,`, - `Status:` + strings.Replace(this.Status.String(), "MachineStatus", "MachineStatus", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageSpec{`, - `Image:` + fmt.Sprintf("%v", this.Image) + `,`, - `}`, - }, "") - return s -} -func (this *EmptyDisk) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EmptyDisk{`, - `SizeBytes:` + fmt.Sprintf("%v", this.SizeBytes) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeConnection) String() string { - if this == nil { - return "nil" - } - keysForAttributes := make([]string, 0, len(this.Attributes)) - for k, _ := range this.Attributes { - keysForAttributes = append(keysForAttributes, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAttributes) - mapStringForAttributes := "map[string]string{" - for _, k := range keysForAttributes { - mapStringForAttributes += fmt.Sprintf("%v: %v,", k, this.Attributes[k]) - } - mapStringForAttributes += "}" - keysForSecretData := make([]string, 0, len(this.SecretData)) - for k, _ := range this.SecretData { - keysForSecretData = append(keysForSecretData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSecretData) - mapStringForSecretData := "map[string][]byte{" - for _, k := range keysForSecretData { - mapStringForSecretData += fmt.Sprintf("%v: %v,", k, this.SecretData[k]) - } - mapStringForSecretData += "}" - keysForEncryptionData := make([]string, 0, len(this.EncryptionData)) - for k, _ := range this.EncryptionData { - keysForEncryptionData = append(keysForEncryptionData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForEncryptionData) - mapStringForEncryptionData := "map[string][]byte{" - for _, k := range keysForEncryptionData { - mapStringForEncryptionData += fmt.Sprintf("%v: %v,", k, this.EncryptionData[k]) - } - mapStringForEncryptionData += "}" - s := strings.Join([]string{`&VolumeConnection{`, - `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, - `Handle:` + fmt.Sprintf("%v", this.Handle) + `,`, - `Attributes:` + mapStringForAttributes + `,`, - `SecretData:` + mapStringForSecretData + `,`, - `EncryptionData:` + mapStringForEncryptionData + `,`, - `}`, - }, "") - return s -} -func (this *Volume) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Volume{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Device:` + fmt.Sprintf("%v", this.Device) + `,`, - `EmptyDisk:` + strings.Replace(this.EmptyDisk.String(), "EmptyDisk", "EmptyDisk", 1) + `,`, - `Connection:` + strings.Replace(this.Connection.String(), "VolumeConnection", "VolumeConnection", 1) + `,`, - `}`, - }, "") - return s -} -func (this *NetworkInterface) String() string { - if this == nil { - return "nil" - } - keysForAttributes := make([]string, 0, len(this.Attributes)) - for k, _ := range this.Attributes { - keysForAttributes = append(keysForAttributes, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAttributes) - mapStringForAttributes := "map[string]string{" - for _, k := range keysForAttributes { - mapStringForAttributes += fmt.Sprintf("%v: %v,", k, this.Attributes[k]) - } - mapStringForAttributes += "}" - s := strings.Join([]string{`&NetworkInterface{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `NetworkId:` + fmt.Sprintf("%v", this.NetworkId) + `,`, - `Ips:` + fmt.Sprintf("%v", this.Ips) + `,`, - `Attributes:` + mapStringForAttributes + `,`, - `}`, - }, "") - return s -} -func (this *MachineSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForVolumes := "[]*Volume{" - for _, f := range this.Volumes { - repeatedStringForVolumes += strings.Replace(f.String(), "Volume", "Volume", 1) + "," - } - repeatedStringForVolumes += "}" - repeatedStringForNetworkInterfaces := "[]*NetworkInterface{" - for _, f := range this.NetworkInterfaces { - repeatedStringForNetworkInterfaces += strings.Replace(f.String(), "NetworkInterface", "NetworkInterface", 1) + "," - } - repeatedStringForNetworkInterfaces += "}" - s := strings.Join([]string{`&MachineSpec{`, - `Power:` + fmt.Sprintf("%v", this.Power) + `,`, - `Image:` + strings.Replace(this.Image.String(), "ImageSpec", "ImageSpec", 1) + `,`, - `Class:` + fmt.Sprintf("%v", this.Class) + `,`, - `IgnitionData:` + fmt.Sprintf("%v", this.IgnitionData) + `,`, - `Volumes:` + repeatedStringForVolumes + `,`, - `NetworkInterfaces:` + repeatedStringForNetworkInterfaces + `,`, - `}`, - }, "") - return s -} -func (this *MachineStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForVolumes := "[]*VolumeStatus{" - for _, f := range this.Volumes { - repeatedStringForVolumes += strings.Replace(f.String(), "VolumeStatus", "VolumeStatus", 1) + "," - } - repeatedStringForVolumes += "}" - repeatedStringForNetworkInterfaces := "[]*NetworkInterfaceStatus{" - for _, f := range this.NetworkInterfaces { - repeatedStringForNetworkInterfaces += strings.Replace(f.String(), "NetworkInterfaceStatus", "NetworkInterfaceStatus", 1) + "," - } - repeatedStringForNetworkInterfaces += "}" - s := strings.Join([]string{`&MachineStatus{`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, - `ImageRef:` + fmt.Sprintf("%v", this.ImageRef) + `,`, - `Volumes:` + repeatedStringForVolumes + `,`, - `NetworkInterfaces:` + repeatedStringForNetworkInterfaces + `,`, - `}`, - }, "") - return s -} -func (this *VolumeStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeStatus{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Handle:` + fmt.Sprintf("%v", this.Handle) + `,`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, - `}`, - }, "") - return s -} -func (this *NetworkInterfaceStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NetworkInterfaceStatus{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Handle:` + fmt.Sprintf("%v", this.Handle) + `,`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, - `Ips:` + fmt.Sprintf("%v", this.Ips) + `,`, - `}`, - }, "") - return s -} -func (this *MachineClass) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MachineClass{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Capabilities:` + strings.Replace(this.Capabilities.String(), "MachineClassCapabilities", "MachineClassCapabilities", 1) + `,`, - `}`, - }, "") - return s -} -func (this *MachineClassStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MachineClassStatus{`, - `MachineClass:` + strings.Replace(this.MachineClass.String(), "MachineClass", "MachineClass", 1) + `,`, - `Quantity:` + fmt.Sprintf("%v", this.Quantity) + `,`, - `}`, - }, "") - return s -} -func (this *VersionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VersionRequest{`, - `Version:` + fmt.Sprintf("%v", this.Version) + `,`, - `}`, - }, "") - return s -} -func (this *VersionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VersionResponse{`, - `RuntimeName:` + fmt.Sprintf("%v", this.RuntimeName) + `,`, - `RuntimeVersion:` + fmt.Sprintf("%v", this.RuntimeVersion) + `,`, - `}`, - }, "") - return s -} -func (this *ListMachinesRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListMachinesRequest{`, - `Filter:` + strings.Replace(this.Filter.String(), "MachineFilter", "MachineFilter", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListMachinesResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForMachines := "[]*Machine{" - for _, f := range this.Machines { - repeatedStringForMachines += strings.Replace(f.String(), "Machine", "Machine", 1) + "," - } - repeatedStringForMachines += "}" - s := strings.Join([]string{`&ListMachinesResponse{`, - `Machines:` + repeatedStringForMachines + `,`, - `}`, - }, "") - return s -} -func (this *ListEventsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListEventsRequest{`, - `Filter:` + strings.Replace(this.Filter.String(), "EventFilter", "EventFilter", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListEventsResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForEvents := "[]*Event{" - for _, f := range this.Events { - repeatedStringForEvents += strings.Replace(fmt.Sprintf("%v", f), "Event", "v1alpha11.Event", 1) + "," - } - repeatedStringForEvents += "}" - s := strings.Join([]string{`&ListEventsResponse{`, - `Events:` + repeatedStringForEvents + `,`, - `}`, - }, "") - return s -} -func (this *CreateMachineRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CreateMachineRequest{`, - `Machine:` + strings.Replace(this.Machine.String(), "Machine", "Machine", 1) + `,`, - `}`, - }, "") - return s -} -func (this *CreateMachineResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CreateMachineResponse{`, - `Machine:` + strings.Replace(this.Machine.String(), "Machine", "Machine", 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeleteMachineRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeleteMachineRequest{`, - `MachineId:` + fmt.Sprintf("%v", this.MachineId) + `,`, - `}`, - }, "") - return s -} -func (this *DeleteMachineResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeleteMachineResponse{`, - `}`, - }, "") - return s -} -func (this *UpdateMachineAnnotationsRequest) String() string { - if this == nil { - return "nil" - } - keysForAnnotations := make([]string, 0, len(this.Annotations)) - for k, _ := range this.Annotations { - keysForAnnotations = append(keysForAnnotations, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) - mapStringForAnnotations := "map[string]string{" - for _, k := range keysForAnnotations { - mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k]) - } - mapStringForAnnotations += "}" - s := strings.Join([]string{`&UpdateMachineAnnotationsRequest{`, - `MachineId:` + fmt.Sprintf("%v", this.MachineId) + `,`, - `Annotations:` + mapStringForAnnotations + `,`, - `}`, - }, "") - return s -} -func (this *UpdateMachineAnnotationsResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UpdateMachineAnnotationsResponse{`, - `}`, - }, "") - return s -} -func (this *UpdateMachinePowerRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UpdateMachinePowerRequest{`, - `MachineId:` + fmt.Sprintf("%v", this.MachineId) + `,`, - `Power:` + fmt.Sprintf("%v", this.Power) + `,`, - `}`, - }, "") - return s -} -func (this *UpdateMachinePowerResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UpdateMachinePowerResponse{`, - `}`, - }, "") - return s -} -func (this *AttachVolumeRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AttachVolumeRequest{`, - `MachineId:` + fmt.Sprintf("%v", this.MachineId) + `,`, - `Volume:` + strings.Replace(this.Volume.String(), "Volume", "Volume", 1) + `,`, - `}`, - }, "") - return s -} -func (this *AttachVolumeResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AttachVolumeResponse{`, - `}`, - }, "") - return s -} -func (this *DetachVolumeRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DetachVolumeRequest{`, - `MachineId:` + fmt.Sprintf("%v", this.MachineId) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *DetachVolumeResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DetachVolumeResponse{`, - `}`, - }, "") - return s -} -func (this *AttachNetworkInterfaceRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AttachNetworkInterfaceRequest{`, - `MachineId:` + fmt.Sprintf("%v", this.MachineId) + `,`, - `NetworkInterface:` + strings.Replace(this.NetworkInterface.String(), "NetworkInterface", "NetworkInterface", 1) + `,`, - `}`, - }, "") - return s -} -func (this *AttachNetworkInterfaceResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AttachNetworkInterfaceResponse{`, - `}`, - }, "") - return s -} -func (this *DetachNetworkInterfaceRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DetachNetworkInterfaceRequest{`, - `MachineId:` + fmt.Sprintf("%v", this.MachineId) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *DetachNetworkInterfaceResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DetachNetworkInterfaceResponse{`, - `}`, - }, "") - return s -} -func (this *StatusRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StatusRequest{`, - `}`, - }, "") - return s -} -func (this *StatusResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForMachineClassStatus := "[]*MachineClassStatus{" - for _, f := range this.MachineClassStatus { - repeatedStringForMachineClassStatus += strings.Replace(f.String(), "MachineClassStatus", "MachineClassStatus", 1) + "," - } - repeatedStringForMachineClassStatus += "}" - s := strings.Join([]string{`&StatusResponse{`, - `MachineClassStatus:` + repeatedStringForMachineClassStatus + `,`, - `}`, - }, "") - return s -} -func (this *ExecRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExecRequest{`, - `MachineId:` + fmt.Sprintf("%v", this.MachineId) + `,`, - `}`, - }, "") - return s -} -func (this *ExecResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExecResponse{`, - `Url:` + fmt.Sprintf("%v", this.Url) + `,`, - `}`, - }, "") - return s -} -func valueToStringApi(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *VolumeSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Driver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Handle", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Handle = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Attributes == nil { - m.Attributes = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Attributes[mapkey] = mapvalue - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretData == nil { - m.SecretData = make(map[string][]byte) - } - var mapkey string - mapvalue := []byte{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapbyteLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapbyteLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intMapbyteLen := int(mapbyteLen) - if intMapbyteLen < 0 { - return ErrInvalidLengthApi - } - postbytesIndex := iNdEx + intMapbyteLen - if postbytesIndex < 0 { - return ErrInvalidLengthApi - } - if postbytesIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = make([]byte, mapbyteLen) - copy(mapvalue, dAtA[iNdEx:postbytesIndex]) - iNdEx = postbytesIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.SecretData[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MachineFilter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MachineFilter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MachineFilter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LabelSelector == nil { - m.LabelSelector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.LabelSelector[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventFilter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventFilter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventFilter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LabelSelector == nil { - m.LabelSelector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.LabelSelector[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EventsFromTime", wireType) - } - m.EventsFromTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EventsFromTime |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EventsToTime", wireType) - } - m.EventsToTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EventsToTime |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MachineClassCapabilities) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MachineClassCapabilities: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MachineClassCapabilities: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CpuMillis", wireType) - } - m.CpuMillis = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CpuMillis |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemoryBytes", wireType) - } - m.MemoryBytes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MemoryBytes |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Machine) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Machine: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Machine: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &v1alpha1.ObjectMetadata{} - } - if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &MachineSpec{} - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &MachineStatus{} - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Image = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EmptyDisk) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EmptyDisk: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EmptyDisk: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SizeBytes", wireType) - } - m.SizeBytes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SizeBytes |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeConnection) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeConnection: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeConnection: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Driver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Handle", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Handle = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Attributes == nil { - m.Attributes = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Attributes[mapkey] = mapvalue - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretData == nil { - m.SecretData = make(map[string][]byte) - } - var mapkey string - mapvalue := []byte{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapbyteLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapbyteLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intMapbyteLen := int(mapbyteLen) - if intMapbyteLen < 0 { - return ErrInvalidLengthApi - } - postbytesIndex := iNdEx + intMapbyteLen - if postbytesIndex < 0 { - return ErrInvalidLengthApi - } - if postbytesIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = make([]byte, mapbyteLen) - copy(mapvalue, dAtA[iNdEx:postbytesIndex]) - iNdEx = postbytesIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.SecretData[mapkey] = mapvalue - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptionData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.EncryptionData == nil { - m.EncryptionData = make(map[string][]byte) - } - var mapkey string - mapvalue := []byte{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapbyteLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapbyteLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intMapbyteLen := int(mapbyteLen) - if intMapbyteLen < 0 { - return ErrInvalidLengthApi - } - postbytesIndex := iNdEx + intMapbyteLen - if postbytesIndex < 0 { - return ErrInvalidLengthApi - } - if postbytesIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = make([]byte, mapbyteLen) - copy(mapvalue, dAtA[iNdEx:postbytesIndex]) - iNdEx = postbytesIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.EncryptionData[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Volume) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Volume: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Volume: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Device", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Device = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EmptyDisk", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.EmptyDisk == nil { - m.EmptyDisk = &EmptyDisk{} - } - if err := m.EmptyDisk.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Connection", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Connection == nil { - m.Connection = &VolumeConnection{} - } - if err := m.Connection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkInterface) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkInterface: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkInterface: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NetworkId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NetworkId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ips", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ips = append(m.Ips, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Attributes == nil { - m.Attributes = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Attributes[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MachineSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MachineSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MachineSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) - } - m.Power = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Power |= Power(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Image == nil { - m.Image = &ImageSpec{} - } - if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Class", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Class = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IgnitionData", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IgnitionData = append(m.IgnitionData[:0], dAtA[iNdEx:postIndex]...) - if m.IgnitionData == nil { - m.IgnitionData = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Volumes = append(m.Volumes, &Volume{}) - if err := m.Volumes[len(m.Volumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NetworkInterfaces", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NetworkInterfaces = append(m.NetworkInterfaces, &NetworkInterface{}) - if err := m.NetworkInterfaces[len(m.NetworkInterfaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MachineStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MachineStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MachineStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.State |= MachineState(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImageRef", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ImageRef = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Volumes = append(m.Volumes, &VolumeStatus{}) - if err := m.Volumes[len(m.Volumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NetworkInterfaces", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NetworkInterfaces = append(m.NetworkInterfaces, &NetworkInterfaceStatus{}) - if err := m.NetworkInterfaces[len(m.NetworkInterfaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Handle", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Handle = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.State |= VolumeState(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkInterfaceStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkInterfaceStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkInterfaceStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Handle", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Handle = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.State |= NetworkInterfaceState(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ips", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ips = append(m.Ips, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MachineClass) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MachineClass: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MachineClass: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Capabilities", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Capabilities == nil { - m.Capabilities = &MachineClassCapabilities{} - } - if err := m.Capabilities.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MachineClassStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MachineClassStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MachineClassStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MachineClass", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MachineClass == nil { - m.MachineClass = &MachineClass{} - } - if err := m.MachineClass.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Quantity", wireType) - } - m.Quantity = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Quantity |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VersionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VersionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VersionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VersionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VersionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VersionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuntimeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RuntimeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuntimeVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RuntimeVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListMachinesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListMachinesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListMachinesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Filter == nil { - m.Filter = &MachineFilter{} - } - if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListMachinesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListMachinesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListMachinesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Machines", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Machines = append(m.Machines, &Machine{}) - if err := m.Machines[len(m.Machines)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListEventsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListEventsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListEventsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Filter == nil { - m.Filter = &EventFilter{} - } - if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListEventsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListEventsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListEventsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Events = append(m.Events, &v1alpha11.Event{}) - if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CreateMachineRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateMachineRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateMachineRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Machine", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Machine == nil { - m.Machine = &Machine{} - } - if err := m.Machine.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CreateMachineResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateMachineResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateMachineResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Machine", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Machine == nil { - m.Machine = &Machine{} - } - if err := m.Machine.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteMachineRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteMachineRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteMachineRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MachineId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MachineId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteMachineResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteMachineResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteMachineResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateMachineAnnotationsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateMachineAnnotationsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateMachineAnnotationsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MachineId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MachineId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Annotations == nil { - m.Annotations = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Annotations[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateMachineAnnotationsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateMachineAnnotationsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateMachineAnnotationsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateMachinePowerRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateMachinePowerRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateMachinePowerRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MachineId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MachineId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) - } - m.Power = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Power |= Power(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateMachinePowerResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateMachinePowerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateMachinePowerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AttachVolumeRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AttachVolumeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AttachVolumeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MachineId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MachineId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volume", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Volume == nil { - m.Volume = &Volume{} - } - if err := m.Volume.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AttachVolumeResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AttachVolumeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AttachVolumeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DetachVolumeRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DetachVolumeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DetachVolumeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MachineId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MachineId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DetachVolumeResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DetachVolumeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DetachVolumeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AttachNetworkInterfaceRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AttachNetworkInterfaceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AttachNetworkInterfaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MachineId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MachineId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NetworkInterface", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NetworkInterface == nil { - m.NetworkInterface = &NetworkInterface{} - } - if err := m.NetworkInterface.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AttachNetworkInterfaceResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AttachNetworkInterfaceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AttachNetworkInterfaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DetachNetworkInterfaceRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DetachNetworkInterfaceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DetachNetworkInterfaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MachineId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MachineId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DetachNetworkInterfaceResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DetachNetworkInterfaceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DetachNetworkInterfaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatusRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatusRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatusResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatusResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MachineClassStatus", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MachineClassStatus = append(m.MachineClassStatus, &MachineClassStatus{}) - if err := m.MachineClassStatus[len(m.MachineClassStatus)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExecRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MachineId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MachineId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExecResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Url = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipApi(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthApi - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupApi - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthApi - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group") -) diff --git a/iri/apis/machine/v1alpha1/api.proto b/iri/apis/machine/v1alpha1/api.proto index ac22fc9f2..2f835f893 100644 --- a/iri/apis/machine/v1alpha1/api.proto +++ b/iri/apis/machine/v1alpha1/api.proto @@ -3,17 +3,8 @@ syntax = "proto3"; package machine.v1alpha1; option go_package = "github.com/ironcore-dev/ironcore/iri/apis/machine/v1alpha1"; -import "github.com/gogo/protobuf/gogoproto/gogo.proto"; -import "github.com/ironcore-dev/ironcore/iri/apis/meta/v1alpha1/api.proto"; -import "github.com/ironcore-dev/ironcore/iri/apis/event/v1alpha1/api.proto"; - -option (gogoproto.goproto_stringer_all) = false; -option (gogoproto.stringer_all) = true; -option (gogoproto.goproto_getters_all) = true; -option (gogoproto.marshaler_all) = true; -option (gogoproto.sizer_all) = true; -option (gogoproto.unmarshaler_all) = true; -option (gogoproto.goproto_unrecognized_all) = false; +import "meta/v1alpha1/api.proto"; +import "event/v1alpha1/api.proto"; service MachineRuntime { rpc Version(VersionRequest) returns (VersionResponse) {}; diff --git a/iri/apis/machine/v1alpha1/api_grpc.pb.go b/iri/apis/machine/v1alpha1/api_grpc.pb.go new file mode 100644 index 000000000..45c7d2b25 --- /dev/null +++ b/iri/apis/machine/v1alpha1/api_grpc.pb.go @@ -0,0 +1,578 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: machine/v1alpha1/api.proto + +package v1alpha1 + +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. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + MachineRuntime_Version_FullMethodName = "/machine.v1alpha1.MachineRuntime/Version" + MachineRuntime_ListEvents_FullMethodName = "/machine.v1alpha1.MachineRuntime/ListEvents" + MachineRuntime_ListMachines_FullMethodName = "/machine.v1alpha1.MachineRuntime/ListMachines" + MachineRuntime_CreateMachine_FullMethodName = "/machine.v1alpha1.MachineRuntime/CreateMachine" + MachineRuntime_DeleteMachine_FullMethodName = "/machine.v1alpha1.MachineRuntime/DeleteMachine" + MachineRuntime_UpdateMachineAnnotations_FullMethodName = "/machine.v1alpha1.MachineRuntime/UpdateMachineAnnotations" + MachineRuntime_UpdateMachinePower_FullMethodName = "/machine.v1alpha1.MachineRuntime/UpdateMachinePower" + MachineRuntime_AttachVolume_FullMethodName = "/machine.v1alpha1.MachineRuntime/AttachVolume" + MachineRuntime_DetachVolume_FullMethodName = "/machine.v1alpha1.MachineRuntime/DetachVolume" + MachineRuntime_AttachNetworkInterface_FullMethodName = "/machine.v1alpha1.MachineRuntime/AttachNetworkInterface" + MachineRuntime_DetachNetworkInterface_FullMethodName = "/machine.v1alpha1.MachineRuntime/DetachNetworkInterface" + MachineRuntime_Status_FullMethodName = "/machine.v1alpha1.MachineRuntime/Status" + MachineRuntime_Exec_FullMethodName = "/machine.v1alpha1.MachineRuntime/Exec" +) + +// MachineRuntimeClient is the client API for MachineRuntime 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 MachineRuntimeClient interface { + Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) + ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) + ListMachines(ctx context.Context, in *ListMachinesRequest, opts ...grpc.CallOption) (*ListMachinesResponse, error) + CreateMachine(ctx context.Context, in *CreateMachineRequest, opts ...grpc.CallOption) (*CreateMachineResponse, error) + DeleteMachine(ctx context.Context, in *DeleteMachineRequest, opts ...grpc.CallOption) (*DeleteMachineResponse, error) + UpdateMachineAnnotations(ctx context.Context, in *UpdateMachineAnnotationsRequest, opts ...grpc.CallOption) (*UpdateMachineAnnotationsResponse, error) + UpdateMachinePower(ctx context.Context, in *UpdateMachinePowerRequest, opts ...grpc.CallOption) (*UpdateMachinePowerResponse, error) + AttachVolume(ctx context.Context, in *AttachVolumeRequest, opts ...grpc.CallOption) (*AttachVolumeResponse, error) + DetachVolume(ctx context.Context, in *DetachVolumeRequest, opts ...grpc.CallOption) (*DetachVolumeResponse, error) + AttachNetworkInterface(ctx context.Context, in *AttachNetworkInterfaceRequest, opts ...grpc.CallOption) (*AttachNetworkInterfaceResponse, error) + DetachNetworkInterface(ctx context.Context, in *DetachNetworkInterfaceRequest, opts ...grpc.CallOption) (*DetachNetworkInterfaceResponse, error) + Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) + Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error) +} + +type machineRuntimeClient struct { + cc grpc.ClientConnInterface +} + +func NewMachineRuntimeClient(cc grpc.ClientConnInterface) MachineRuntimeClient { + return &machineRuntimeClient{cc} +} + +func (c *machineRuntimeClient) Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(VersionResponse) + err := c.cc.Invoke(ctx, MachineRuntime_Version_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *machineRuntimeClient) ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListEventsResponse) + err := c.cc.Invoke(ctx, MachineRuntime_ListEvents_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *machineRuntimeClient) ListMachines(ctx context.Context, in *ListMachinesRequest, opts ...grpc.CallOption) (*ListMachinesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListMachinesResponse) + err := c.cc.Invoke(ctx, MachineRuntime_ListMachines_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *machineRuntimeClient) CreateMachine(ctx context.Context, in *CreateMachineRequest, opts ...grpc.CallOption) (*CreateMachineResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateMachineResponse) + err := c.cc.Invoke(ctx, MachineRuntime_CreateMachine_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *machineRuntimeClient) DeleteMachine(ctx context.Context, in *DeleteMachineRequest, opts ...grpc.CallOption) (*DeleteMachineResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteMachineResponse) + err := c.cc.Invoke(ctx, MachineRuntime_DeleteMachine_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *machineRuntimeClient) UpdateMachineAnnotations(ctx context.Context, in *UpdateMachineAnnotationsRequest, opts ...grpc.CallOption) (*UpdateMachineAnnotationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateMachineAnnotationsResponse) + err := c.cc.Invoke(ctx, MachineRuntime_UpdateMachineAnnotations_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *machineRuntimeClient) UpdateMachinePower(ctx context.Context, in *UpdateMachinePowerRequest, opts ...grpc.CallOption) (*UpdateMachinePowerResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateMachinePowerResponse) + err := c.cc.Invoke(ctx, MachineRuntime_UpdateMachinePower_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *machineRuntimeClient) AttachVolume(ctx context.Context, in *AttachVolumeRequest, opts ...grpc.CallOption) (*AttachVolumeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AttachVolumeResponse) + err := c.cc.Invoke(ctx, MachineRuntime_AttachVolume_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *machineRuntimeClient) DetachVolume(ctx context.Context, in *DetachVolumeRequest, opts ...grpc.CallOption) (*DetachVolumeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DetachVolumeResponse) + err := c.cc.Invoke(ctx, MachineRuntime_DetachVolume_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *machineRuntimeClient) AttachNetworkInterface(ctx context.Context, in *AttachNetworkInterfaceRequest, opts ...grpc.CallOption) (*AttachNetworkInterfaceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AttachNetworkInterfaceResponse) + err := c.cc.Invoke(ctx, MachineRuntime_AttachNetworkInterface_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *machineRuntimeClient) DetachNetworkInterface(ctx context.Context, in *DetachNetworkInterfaceRequest, opts ...grpc.CallOption) (*DetachNetworkInterfaceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DetachNetworkInterfaceResponse) + err := c.cc.Invoke(ctx, MachineRuntime_DetachNetworkInterface_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *machineRuntimeClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(StatusResponse) + err := c.cc.Invoke(ctx, MachineRuntime_Status_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *machineRuntimeClient) Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ExecResponse) + err := c.cc.Invoke(ctx, MachineRuntime_Exec_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MachineRuntimeServer is the server API for MachineRuntime service. +// All implementations must embed UnimplementedMachineRuntimeServer +// for forward compatibility. +type MachineRuntimeServer interface { + Version(context.Context, *VersionRequest) (*VersionResponse, error) + ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error) + ListMachines(context.Context, *ListMachinesRequest) (*ListMachinesResponse, error) + CreateMachine(context.Context, *CreateMachineRequest) (*CreateMachineResponse, error) + DeleteMachine(context.Context, *DeleteMachineRequest) (*DeleteMachineResponse, error) + UpdateMachineAnnotations(context.Context, *UpdateMachineAnnotationsRequest) (*UpdateMachineAnnotationsResponse, error) + UpdateMachinePower(context.Context, *UpdateMachinePowerRequest) (*UpdateMachinePowerResponse, error) + AttachVolume(context.Context, *AttachVolumeRequest) (*AttachVolumeResponse, error) + DetachVolume(context.Context, *DetachVolumeRequest) (*DetachVolumeResponse, error) + AttachNetworkInterface(context.Context, *AttachNetworkInterfaceRequest) (*AttachNetworkInterfaceResponse, error) + DetachNetworkInterface(context.Context, *DetachNetworkInterfaceRequest) (*DetachNetworkInterfaceResponse, error) + Status(context.Context, *StatusRequest) (*StatusResponse, error) + Exec(context.Context, *ExecRequest) (*ExecResponse, error) + mustEmbedUnimplementedMachineRuntimeServer() +} + +// UnimplementedMachineRuntimeServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMachineRuntimeServer struct{} + +func (UnimplementedMachineRuntimeServer) Version(context.Context, *VersionRequest) (*VersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") +} +func (UnimplementedMachineRuntimeServer) ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented") +} +func (UnimplementedMachineRuntimeServer) ListMachines(context.Context, *ListMachinesRequest) (*ListMachinesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListMachines not implemented") +} +func (UnimplementedMachineRuntimeServer) CreateMachine(context.Context, *CreateMachineRequest) (*CreateMachineResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateMachine not implemented") +} +func (UnimplementedMachineRuntimeServer) DeleteMachine(context.Context, *DeleteMachineRequest) (*DeleteMachineResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteMachine not implemented") +} +func (UnimplementedMachineRuntimeServer) UpdateMachineAnnotations(context.Context, *UpdateMachineAnnotationsRequest) (*UpdateMachineAnnotationsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateMachineAnnotations not implemented") +} +func (UnimplementedMachineRuntimeServer) UpdateMachinePower(context.Context, *UpdateMachinePowerRequest) (*UpdateMachinePowerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateMachinePower not implemented") +} +func (UnimplementedMachineRuntimeServer) AttachVolume(context.Context, *AttachVolumeRequest) (*AttachVolumeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AttachVolume not implemented") +} +func (UnimplementedMachineRuntimeServer) DetachVolume(context.Context, *DetachVolumeRequest) (*DetachVolumeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DetachVolume not implemented") +} +func (UnimplementedMachineRuntimeServer) AttachNetworkInterface(context.Context, *AttachNetworkInterfaceRequest) (*AttachNetworkInterfaceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AttachNetworkInterface not implemented") +} +func (UnimplementedMachineRuntimeServer) DetachNetworkInterface(context.Context, *DetachNetworkInterfaceRequest) (*DetachNetworkInterfaceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DetachNetworkInterface not implemented") +} +func (UnimplementedMachineRuntimeServer) Status(context.Context, *StatusRequest) (*StatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Status not implemented") +} +func (UnimplementedMachineRuntimeServer) Exec(context.Context, *ExecRequest) (*ExecResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Exec not implemented") +} +func (UnimplementedMachineRuntimeServer) mustEmbedUnimplementedMachineRuntimeServer() {} +func (UnimplementedMachineRuntimeServer) testEmbeddedByValue() {} + +// UnsafeMachineRuntimeServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MachineRuntimeServer will +// result in compilation errors. +type UnsafeMachineRuntimeServer interface { + mustEmbedUnimplementedMachineRuntimeServer() +} + +func RegisterMachineRuntimeServer(s grpc.ServiceRegistrar, srv MachineRuntimeServer) { + // If the following call pancis, it indicates UnimplementedMachineRuntimeServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&MachineRuntime_ServiceDesc, srv) +} + +func _MachineRuntime_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MachineRuntimeServer).Version(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MachineRuntime_Version_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MachineRuntimeServer).Version(ctx, req.(*VersionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MachineRuntime_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListEventsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MachineRuntimeServer).ListEvents(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MachineRuntime_ListEvents_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MachineRuntimeServer).ListEvents(ctx, req.(*ListEventsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MachineRuntime_ListMachines_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListMachinesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MachineRuntimeServer).ListMachines(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MachineRuntime_ListMachines_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MachineRuntimeServer).ListMachines(ctx, req.(*ListMachinesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MachineRuntime_CreateMachine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateMachineRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MachineRuntimeServer).CreateMachine(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MachineRuntime_CreateMachine_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MachineRuntimeServer).CreateMachine(ctx, req.(*CreateMachineRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MachineRuntime_DeleteMachine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteMachineRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MachineRuntimeServer).DeleteMachine(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MachineRuntime_DeleteMachine_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MachineRuntimeServer).DeleteMachine(ctx, req.(*DeleteMachineRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MachineRuntime_UpdateMachineAnnotations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateMachineAnnotationsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MachineRuntimeServer).UpdateMachineAnnotations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MachineRuntime_UpdateMachineAnnotations_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MachineRuntimeServer).UpdateMachineAnnotations(ctx, req.(*UpdateMachineAnnotationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MachineRuntime_UpdateMachinePower_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateMachinePowerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MachineRuntimeServer).UpdateMachinePower(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MachineRuntime_UpdateMachinePower_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MachineRuntimeServer).UpdateMachinePower(ctx, req.(*UpdateMachinePowerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MachineRuntime_AttachVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AttachVolumeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MachineRuntimeServer).AttachVolume(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MachineRuntime_AttachVolume_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MachineRuntimeServer).AttachVolume(ctx, req.(*AttachVolumeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MachineRuntime_DetachVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DetachVolumeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MachineRuntimeServer).DetachVolume(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MachineRuntime_DetachVolume_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MachineRuntimeServer).DetachVolume(ctx, req.(*DetachVolumeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MachineRuntime_AttachNetworkInterface_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AttachNetworkInterfaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MachineRuntimeServer).AttachNetworkInterface(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MachineRuntime_AttachNetworkInterface_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MachineRuntimeServer).AttachNetworkInterface(ctx, req.(*AttachNetworkInterfaceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MachineRuntime_DetachNetworkInterface_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DetachNetworkInterfaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MachineRuntimeServer).DetachNetworkInterface(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MachineRuntime_DetachNetworkInterface_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MachineRuntimeServer).DetachNetworkInterface(ctx, req.(*DetachNetworkInterfaceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MachineRuntime_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MachineRuntimeServer).Status(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MachineRuntime_Status_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MachineRuntimeServer).Status(ctx, req.(*StatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MachineRuntime_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExecRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MachineRuntimeServer).Exec(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MachineRuntime_Exec_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MachineRuntimeServer).Exec(ctx, req.(*ExecRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// MachineRuntime_ServiceDesc is the grpc.ServiceDesc for MachineRuntime service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var MachineRuntime_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "machine.v1alpha1.MachineRuntime", + HandlerType: (*MachineRuntimeServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Version", + Handler: _MachineRuntime_Version_Handler, + }, + { + MethodName: "ListEvents", + Handler: _MachineRuntime_ListEvents_Handler, + }, + { + MethodName: "ListMachines", + Handler: _MachineRuntime_ListMachines_Handler, + }, + { + MethodName: "CreateMachine", + Handler: _MachineRuntime_CreateMachine_Handler, + }, + { + MethodName: "DeleteMachine", + Handler: _MachineRuntime_DeleteMachine_Handler, + }, + { + MethodName: "UpdateMachineAnnotations", + Handler: _MachineRuntime_UpdateMachineAnnotations_Handler, + }, + { + MethodName: "UpdateMachinePower", + Handler: _MachineRuntime_UpdateMachinePower_Handler, + }, + { + MethodName: "AttachVolume", + Handler: _MachineRuntime_AttachVolume_Handler, + }, + { + MethodName: "DetachVolume", + Handler: _MachineRuntime_DetachVolume_Handler, + }, + { + MethodName: "AttachNetworkInterface", + Handler: _MachineRuntime_AttachNetworkInterface_Handler, + }, + { + MethodName: "DetachNetworkInterface", + Handler: _MachineRuntime_DetachNetworkInterface_Handler, + }, + { + MethodName: "Status", + Handler: _MachineRuntime_Status_Handler, + }, + { + MethodName: "Exec", + Handler: _MachineRuntime_Exec_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "machine/v1alpha1/api.proto", +} diff --git a/iri/apis/meta/v1alpha1/api.pb.go b/iri/apis/meta/v1alpha1/api.pb.go index 5bf570ab2..adec25fe2 100644 --- a/iri/apis/meta/v1alpha1/api.pb.go +++ b/iri/apis/meta/v1alpha1/api.pb.go @@ -1,806 +1,197 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: api.proto +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.1 +// protoc (unknown) +// source: meta/v1alpha1/api.proto package v1alpha1 import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" + sync "sync" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ObjectMetadata struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Annotations map[string]string `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Generation int64 `protobuf:"varint,4,opt,name=generation,proto3" json:"generation,omitempty"` - CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - DeletedAt int64 `protobuf:"varint,6,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Annotations map[string]string `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Generation int64 `protobuf:"varint,4,opt,name=generation,proto3" json:"generation,omitempty"` + CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + DeletedAt int64 `protobuf:"varint,6,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` } -func (m *ObjectMetadata) Reset() { *m = ObjectMetadata{} } -func (*ObjectMetadata) ProtoMessage() {} -func (*ObjectMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{0} +func (x *ObjectMetadata) Reset() { + *x = ObjectMetadata{} + mi := &file_meta_v1alpha1_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ObjectMetadata) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ObjectMetadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ObjectMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ObjectMetadata.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ObjectMetadata) ProtoMessage() {} + +func (x *ObjectMetadata) ProtoReflect() protoreflect.Message { + mi := &file_meta_v1alpha1_api_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ObjectMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectMetadata.Merge(m, src) -} -func (m *ObjectMetadata) XXX_Size() int { - return m.Size() -} -func (m *ObjectMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectMetadata.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ObjectMetadata proto.InternalMessageInfo +// Deprecated: Use ObjectMetadata.ProtoReflect.Descriptor instead. +func (*ObjectMetadata) Descriptor() ([]byte, []int) { + return file_meta_v1alpha1_api_proto_rawDescGZIP(), []int{0} +} -func (m *ObjectMetadata) GetId() string { - if m != nil { - return m.Id +func (x *ObjectMetadata) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *ObjectMetadata) GetAnnotations() map[string]string { - if m != nil { - return m.Annotations +func (x *ObjectMetadata) GetAnnotations() map[string]string { + if x != nil { + return x.Annotations } return nil } -func (m *ObjectMetadata) GetLabels() map[string]string { - if m != nil { - return m.Labels +func (x *ObjectMetadata) GetLabels() map[string]string { + if x != nil { + return x.Labels } return nil } -func (m *ObjectMetadata) GetGeneration() int64 { - if m != nil { - return m.Generation +func (x *ObjectMetadata) GetGeneration() int64 { + if x != nil { + return x.Generation } return 0 } -func (m *ObjectMetadata) GetCreatedAt() int64 { - if m != nil { - return m.CreatedAt +func (x *ObjectMetadata) GetCreatedAt() int64 { + if x != nil { + return x.CreatedAt } return 0 } -func (m *ObjectMetadata) GetDeletedAt() int64 { - if m != nil { - return m.DeletedAt +func (x *ObjectMetadata) GetDeletedAt() int64 { + if x != nil { + return x.DeletedAt } return 0 } -func init() { - proto.RegisterType((*ObjectMetadata)(nil), "meta.v1alpha1.ObjectMetadata") - proto.RegisterMapType((map[string]string)(nil), "meta.v1alpha1.ObjectMetadata.AnnotationsEntry") - proto.RegisterMapType((map[string]string)(nil), "meta.v1alpha1.ObjectMetadata.LabelsEntry") -} - -func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) } - -var fileDescriptor_00212fb1f9d3bf1c = []byte{ - // 346 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x51, 0x4f, 0x4b, 0xfb, 0x40, - 0x14, 0xec, 0x26, 0xbf, 0x16, 0xba, 0xe5, 0x57, 0xca, 0xe2, 0x21, 0x14, 0x5c, 0x8a, 0xa7, 0x7a, - 0x68, 0x42, 0xf5, 0xe0, 0x9f, 0x83, 0x10, 0xc1, 0x9b, 0xa2, 0x14, 0xbc, 0x78, 0x91, 0x97, 0xe4, - 0x99, 0xae, 0xa6, 0xd9, 0xb0, 0xdd, 0x16, 0x7a, 0xf3, 0x13, 0x88, 0x1f, 0xab, 0x47, 0x8f, 0x1e, - 0x6d, 0xfc, 0x22, 0xd2, 0x4d, 0xd4, 0xd4, 0x83, 0xe0, 0xed, 0xcd, 0xcc, 0x9b, 0x49, 0x76, 0x1e, - 0x6d, 0x42, 0x26, 0xdc, 0x4c, 0x49, 0x2d, 0xd9, 0xff, 0x09, 0x6a, 0x70, 0xe7, 0x43, 0x48, 0xb2, - 0x31, 0x0c, 0xbb, 0x83, 0x58, 0xe8, 0xf1, 0x2c, 0x70, 0x43, 0x39, 0xf1, 0x62, 0x19, 0x4b, 0xcf, - 0x6c, 0x05, 0xb3, 0x3b, 0x83, 0x0c, 0x30, 0x53, 0xe1, 0xde, 0x79, 0xb2, 0x69, 0xfb, 0x32, 0xb8, - 0xc7, 0x50, 0x5f, 0xa0, 0x86, 0x08, 0x34, 0xb0, 0x36, 0xb5, 0x44, 0xe4, 0x90, 0x1e, 0xe9, 0x37, - 0x47, 0x96, 0x88, 0xd8, 0x15, 0x6d, 0x41, 0x9a, 0x4a, 0x0d, 0x5a, 0xc8, 0x74, 0xea, 0x58, 0x3d, - 0xbb, 0xdf, 0xda, 0x73, 0xdd, 0x8d, 0xcf, 0xba, 0x9b, 0x19, 0xae, 0xff, 0x6d, 0x38, 0x4b, 0xb5, - 0x5a, 0x8c, 0xaa, 0x11, 0xcc, 0xa7, 0x8d, 0x04, 0x02, 0x4c, 0xa6, 0x8e, 0x6d, 0xc2, 0x76, 0x7f, - 0x0f, 0x3b, 0x37, 0xbb, 0x45, 0x4e, 0x69, 0x64, 0x9c, 0xd2, 0x18, 0x53, 0x54, 0x26, 0xd1, 0xf9, - 0xd7, 0x23, 0x7d, 0x7b, 0x54, 0x61, 0xd8, 0x36, 0xa5, 0xa1, 0x42, 0xd0, 0x18, 0xdd, 0x82, 0x76, - 0xea, 0x46, 0x6f, 0x96, 0x8c, 0xaf, 0xd7, 0x72, 0x84, 0x09, 0x96, 0x72, 0xa3, 0x90, 0x4b, 0xc6, - 0xd7, 0xdd, 0x13, 0xda, 0xf9, 0xf9, 0x02, 0xd6, 0xa1, 0xf6, 0x03, 0x2e, 0xca, 0x5e, 0xd6, 0x23, - 0xdb, 0xa2, 0xf5, 0x39, 0x24, 0x33, 0x74, 0x2c, 0xc3, 0x15, 0xe0, 0xd8, 0x3a, 0x24, 0xdd, 0x23, - 0xda, 0xaa, 0xfc, 0xf4, 0x5f, 0xac, 0xa7, 0xd7, 0xcb, 0x15, 0x27, 0xaf, 0x2b, 0x5e, 0x7b, 0xcc, - 0x39, 0x59, 0xe6, 0x9c, 0xbc, 0xe4, 0x9c, 0xbc, 0xe5, 0x9c, 0x3c, 0xbf, 0xf3, 0xda, 0xcd, 0x41, - 0xe5, 0xba, 0x42, 0xc9, 0x34, 0x94, 0x0a, 0x07, 0x11, 0xce, 0xbf, 0x80, 0x27, 0x94, 0xf0, 0x20, - 0x13, 0x53, 0x6f, 0x5d, 0xa9, 0xf7, 0x59, 0x69, 0xd0, 0x30, 0xe7, 0xde, 0xff, 0x08, 0x00, 0x00, - 0xff, 0xff, 0x99, 0x8d, 0x3d, 0xfa, 0x39, 0x02, 0x00, 0x00, -} - -func (m *ObjectMetadata) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ObjectMetadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ObjectMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DeletedAt != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.DeletedAt)) - i-- - dAtA[i] = 0x30 - } - if m.CreatedAt != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.CreatedAt)) - i-- - dAtA[i] = 0x28 - } - if m.Generation != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.Generation)) - i-- - dAtA[i] = 0x20 - } - if len(m.Labels) > 0 { - for k := range m.Labels { - v := m.Labels[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Annotations) > 0 { - for k := range m.Annotations { - v := m.Annotations[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintApi(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintApi(dAtA []byte, offset int, v uint64) int { - offset -= sovApi(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ObjectMetadata) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.Annotations) > 0 { - for k, v := range m.Annotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - if len(m.Labels) > 0 { - for k, v := range m.Labels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - if m.Generation != 0 { - n += 1 + sovApi(uint64(m.Generation)) - } - if m.CreatedAt != 0 { - n += 1 + sovApi(uint64(m.CreatedAt)) - } - if m.DeletedAt != 0 { - n += 1 + sovApi(uint64(m.DeletedAt)) - } - return n -} - -func sovApi(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozApi(x uint64) (n int) { - return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *ObjectMetadata) String() string { - if this == nil { - return "nil" - } - keysForAnnotations := make([]string, 0, len(this.Annotations)) - for k, _ := range this.Annotations { - keysForAnnotations = append(keysForAnnotations, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) - mapStringForAnnotations := "map[string]string{" - for _, k := range keysForAnnotations { - mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k]) - } - mapStringForAnnotations += "}" - keysForLabels := make([]string, 0, len(this.Labels)) - for k, _ := range this.Labels { - keysForLabels = append(keysForLabels, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) - mapStringForLabels := "map[string]string{" - for _, k := range keysForLabels { - mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k]) - } - mapStringForLabels += "}" - s := strings.Join([]string{`&ObjectMetadata{`, - `Id:` + fmt.Sprintf("%v", this.Id) + `,`, - `Annotations:` + mapStringForAnnotations + `,`, - `Labels:` + mapStringForLabels + `,`, - `Generation:` + fmt.Sprintf("%v", this.Generation) + `,`, - `CreatedAt:` + fmt.Sprintf("%v", this.CreatedAt) + `,`, - `DeletedAt:` + fmt.Sprintf("%v", this.DeletedAt) + `,`, - `}`, - }, "") - return s -} -func valueToStringApi(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *ObjectMetadata) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ObjectMetadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectMetadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Annotations == nil { - m.Annotations = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Annotations[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Labels == nil { - m.Labels = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Labels[mapkey] = mapvalue - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Generation", wireType) - } - m.Generation = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Generation |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) - } - m.CreatedAt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CreatedAt |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeletedAt", wireType) - } - m.DeletedAt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DeletedAt |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipApi(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthApi - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupApi - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthApi - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +var File_meta_v1alpha1_api_proto protoreflect.FileDescriptor + +var file_meta_v1alpha1_api_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6d, 0x65, 0x74, 0x61, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x22, 0x8e, 0x03, 0x0a, 0x0e, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x50, 0x0a, 0x0b, 0x61, + 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x2e, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, 0x0a, + 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, + 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x12, 0x1e, 0x0a, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, + 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x1a, 0x3e, + 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x39, + 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x72, 0x6f, 0x6e, 0x63, 0x6f, 0x72, 0x65, + 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x69, 0x72, 0x6f, 0x6e, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x72, + 0x69, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group") + file_meta_v1alpha1_api_proto_rawDescOnce sync.Once + file_meta_v1alpha1_api_proto_rawDescData = file_meta_v1alpha1_api_proto_rawDesc ) + +func file_meta_v1alpha1_api_proto_rawDescGZIP() []byte { + file_meta_v1alpha1_api_proto_rawDescOnce.Do(func() { + file_meta_v1alpha1_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_meta_v1alpha1_api_proto_rawDescData) + }) + return file_meta_v1alpha1_api_proto_rawDescData +} + +var file_meta_v1alpha1_api_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_meta_v1alpha1_api_proto_goTypes = []any{ + (*ObjectMetadata)(nil), // 0: meta.v1alpha1.ObjectMetadata + nil, // 1: meta.v1alpha1.ObjectMetadata.AnnotationsEntry + nil, // 2: meta.v1alpha1.ObjectMetadata.LabelsEntry +} +var file_meta_v1alpha1_api_proto_depIdxs = []int32{ + 1, // 0: meta.v1alpha1.ObjectMetadata.annotations:type_name -> meta.v1alpha1.ObjectMetadata.AnnotationsEntry + 2, // 1: meta.v1alpha1.ObjectMetadata.labels:type_name -> meta.v1alpha1.ObjectMetadata.LabelsEntry + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_meta_v1alpha1_api_proto_init() } +func file_meta_v1alpha1_api_proto_init() { + if File_meta_v1alpha1_api_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_meta_v1alpha1_api_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_meta_v1alpha1_api_proto_goTypes, + DependencyIndexes: file_meta_v1alpha1_api_proto_depIdxs, + MessageInfos: file_meta_v1alpha1_api_proto_msgTypes, + }.Build() + File_meta_v1alpha1_api_proto = out.File + file_meta_v1alpha1_api_proto_rawDesc = nil + file_meta_v1alpha1_api_proto_goTypes = nil + file_meta_v1alpha1_api_proto_depIdxs = nil +} diff --git a/iri/apis/meta/v1alpha1/api.proto b/iri/apis/meta/v1alpha1/api.proto index e97fbb442..0392ad827 100644 --- a/iri/apis/meta/v1alpha1/api.proto +++ b/iri/apis/meta/v1alpha1/api.proto @@ -3,16 +3,6 @@ syntax = "proto3"; package meta.v1alpha1; option go_package = "github.com/ironcore-dev/ironcore/iri/apis/meta/v1alpha1"; -import "github.com/gogo/protobuf/gogoproto/gogo.proto"; - -option (gogoproto.goproto_stringer_all) = false; -option (gogoproto.stringer_all) = true; -option (gogoproto.goproto_getters_all) = true; -option (gogoproto.marshaler_all) = true; -option (gogoproto.sizer_all) = true; -option (gogoproto.unmarshaler_all) = true; -option (gogoproto.goproto_unrecognized_all) = false; - message ObjectMetadata { string id = 1; map annotations = 2; diff --git a/iri/apis/meta/v1alpha1/interfaces.go b/iri/apis/meta/v1alpha1/interfaces.go index 136d5e5e7..65d1d63de 100644 --- a/iri/apis/meta/v1alpha1/interfaces.go +++ b/iri/apis/meta/v1alpha1/interfaces.go @@ -3,9 +3,14 @@ package v1alpha1 -import "github.com/gogo/protobuf/proto" +import ( + "google.golang.org/protobuf/proto" +) type Object interface { proto.Message GetMetadata() *ObjectMetadata + Reset() + String() string + ProtoMessage() } diff --git a/iri/apis/volume/v1alpha1/api.pb.go b/iri/apis/volume/v1alpha1/api.pb.go index f60a43145..f6479d71a 100644 --- a/iri/apis/volume/v1alpha1/api.pb.go +++ b/iri/apis/volume/v1alpha1/api.pb.go @@ -1,37 +1,27 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: api.proto +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.1 +// protoc (unknown) +// source: volume/v1alpha1/api.proto package v1alpha1 import ( - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" + sync "sync" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" v1alpha11 "github.com/ironcore-dev/ironcore/iri/apis/event/v1alpha1" v1alpha1 "github.com/ironcore-dev/ironcore/iri/apis/meta/v1alpha1" - 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" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type VolumeState int32 @@ -41,6044 +31,1518 @@ const ( VolumeState_VOLUME_ERROR VolumeState = 2 ) -var VolumeState_name = map[int32]string{ - 0: "VOLUME_PENDING", - 1: "VOLUME_AVAILABLE", - 2: "VOLUME_ERROR", -} +// Enum value maps for VolumeState. +var ( + VolumeState_name = map[int32]string{ + 0: "VOLUME_PENDING", + 1: "VOLUME_AVAILABLE", + 2: "VOLUME_ERROR", + } + VolumeState_value = map[string]int32{ + "VOLUME_PENDING": 0, + "VOLUME_AVAILABLE": 1, + "VOLUME_ERROR": 2, + } +) -var VolumeState_value = map[string]int32{ - "VOLUME_PENDING": 0, - "VOLUME_AVAILABLE": 1, - "VOLUME_ERROR": 2, +func (x VolumeState) Enum() *VolumeState { + p := new(VolumeState) + *p = x + return p } func (x VolumeState) String() string { - return proto.EnumName(VolumeState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (VolumeState) Descriptor() protoreflect.EnumDescriptor { + return file_volume_v1alpha1_api_proto_enumTypes[0].Descriptor() +} + +func (VolumeState) Type() protoreflect.EnumType { + return &file_volume_v1alpha1_api_proto_enumTypes[0] +} + +func (x VolumeState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use VolumeState.Descriptor instead. func (VolumeState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{0} + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{0} } type VolumeFilter struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - LabelSelector map[string]string `protobuf:"bytes,2,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + LabelSelector map[string]string `protobuf:"bytes,2,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *VolumeFilter) Reset() { + *x = VolumeFilter{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VolumeFilter) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VolumeFilter) Reset() { *m = VolumeFilter{} } func (*VolumeFilter) ProtoMessage() {} -func (*VolumeFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{0} -} -func (m *VolumeFilter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VolumeFilter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *VolumeFilter) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *VolumeFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeFilter.Merge(m, src) -} -func (m *VolumeFilter) XXX_Size() int { - return m.Size() -} -func (m *VolumeFilter) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeFilter.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_VolumeFilter proto.InternalMessageInfo +// Deprecated: Use VolumeFilter.ProtoReflect.Descriptor instead. +func (*VolumeFilter) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{0} +} -func (m *VolumeFilter) GetId() string { - if m != nil { - return m.Id +func (x *VolumeFilter) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *VolumeFilter) GetLabelSelector() map[string]string { - if m != nil { - return m.LabelSelector +func (x *VolumeFilter) GetLabelSelector() map[string]string { + if x != nil { + return x.LabelSelector } return nil } type EventFilter struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - LabelSelector map[string]string `protobuf:"bytes,2,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - EventsFromTime int64 `protobuf:"varint,3,opt,name=events_from_time,json=eventsFromTime,proto3" json:"events_from_time,omitempty"` - EventsToTime int64 `protobuf:"varint,4,opt,name=events_to_time,json=eventsToTime,proto3" json:"events_to_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + LabelSelector map[string]string `protobuf:"bytes,2,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + EventsFromTime int64 `protobuf:"varint,3,opt,name=events_from_time,json=eventsFromTime,proto3" json:"events_from_time,omitempty"` + EventsToTime int64 `protobuf:"varint,4,opt,name=events_to_time,json=eventsToTime,proto3" json:"events_to_time,omitempty"` +} + +func (x *EventFilter) Reset() { + *x = EventFilter{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EventFilter) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EventFilter) Reset() { *m = EventFilter{} } func (*EventFilter) ProtoMessage() {} -func (*EventFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{1} -} -func (m *EventFilter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventFilter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *EventFilter) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *EventFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventFilter.Merge(m, src) -} -func (m *EventFilter) XXX_Size() int { - return m.Size() -} -func (m *EventFilter) XXX_DiscardUnknown() { - xxx_messageInfo_EventFilter.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_EventFilter proto.InternalMessageInfo +// Deprecated: Use EventFilter.ProtoReflect.Descriptor instead. +func (*EventFilter) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{1} +} -func (m *EventFilter) GetId() string { - if m != nil { - return m.Id +func (x *EventFilter) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *EventFilter) GetLabelSelector() map[string]string { - if m != nil { - return m.LabelSelector +func (x *EventFilter) GetLabelSelector() map[string]string { + if x != nil { + return x.LabelSelector } return nil } -func (m *EventFilter) GetEventsFromTime() int64 { - if m != nil { - return m.EventsFromTime +func (x *EventFilter) GetEventsFromTime() int64 { + if x != nil { + return x.EventsFromTime } return 0 } -func (m *EventFilter) GetEventsToTime() int64 { - if m != nil { - return m.EventsToTime +func (x *EventFilter) GetEventsToTime() int64 { + if x != nil { + return x.EventsToTime } return 0 } type VolumeResources struct { - StorageBytes int64 `protobuf:"varint,1,opt,name=storage_bytes,json=storageBytes,proto3" json:"storage_bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageBytes int64 `protobuf:"varint,1,opt,name=storage_bytes,json=storageBytes,proto3" json:"storage_bytes,omitempty"` +} + +func (x *VolumeResources) Reset() { + *x = VolumeResources{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VolumeResources) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VolumeResources) Reset() { *m = VolumeResources{} } func (*VolumeResources) ProtoMessage() {} -func (*VolumeResources) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{2} -} -func (m *VolumeResources) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VolumeResources.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *VolumeResources) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *VolumeResources) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeResources.Merge(m, src) -} -func (m *VolumeResources) XXX_Size() int { - return m.Size() -} -func (m *VolumeResources) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeResources.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_VolumeResources proto.InternalMessageInfo +// Deprecated: Use VolumeResources.ProtoReflect.Descriptor instead. +func (*VolumeResources) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{2} +} -func (m *VolumeResources) GetStorageBytes() int64 { - if m != nil { - return m.StorageBytes +func (x *VolumeResources) GetStorageBytes() int64 { + if x != nil { + return x.StorageBytes } return 0 } type EncryptionSpec struct { - SecretData map[string][]byte `protobuf:"bytes,1,rep,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SecretData map[string][]byte `protobuf:"bytes,1,rep,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *EncryptionSpec) Reset() { + *x = EncryptionSpec{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EncryptionSpec) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EncryptionSpec) Reset() { *m = EncryptionSpec{} } func (*EncryptionSpec) ProtoMessage() {} -func (*EncryptionSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{3} -} -func (m *EncryptionSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EncryptionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EncryptionSpec.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *EncryptionSpec) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *EncryptionSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_EncryptionSpec.Merge(m, src) -} -func (m *EncryptionSpec) XXX_Size() int { - return m.Size() -} -func (m *EncryptionSpec) XXX_DiscardUnknown() { - xxx_messageInfo_EncryptionSpec.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_EncryptionSpec proto.InternalMessageInfo +// Deprecated: Use EncryptionSpec.ProtoReflect.Descriptor instead. +func (*EncryptionSpec) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{3} +} -func (m *EncryptionSpec) GetSecretData() map[string][]byte { - if m != nil { - return m.SecretData +func (x *EncryptionSpec) GetSecretData() map[string][]byte { + if x != nil { + return x.SecretData } return nil } type VolumeSpec struct { - Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` - Class string `protobuf:"bytes,2,opt,name=class,proto3" json:"class,omitempty"` - Resources *VolumeResources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` - Encryption *EncryptionSpec `protobuf:"bytes,4,opt,name=encryption,proto3" json:"encryption,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` + Class string `protobuf:"bytes,2,opt,name=class,proto3" json:"class,omitempty"` + Resources *VolumeResources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` + Encryption *EncryptionSpec `protobuf:"bytes,4,opt,name=encryption,proto3" json:"encryption,omitempty"` +} + +func (x *VolumeSpec) Reset() { + *x = VolumeSpec{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VolumeSpec) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VolumeSpec) Reset() { *m = VolumeSpec{} } func (*VolumeSpec) ProtoMessage() {} -func (*VolumeSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{4} -} -func (m *VolumeSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VolumeSpec.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *VolumeSpec) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *VolumeSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeSpec.Merge(m, src) -} -func (m *VolumeSpec) XXX_Size() int { - return m.Size() -} -func (m *VolumeSpec) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeSpec.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_VolumeSpec proto.InternalMessageInfo +// Deprecated: Use VolumeSpec.ProtoReflect.Descriptor instead. +func (*VolumeSpec) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{4} +} -func (m *VolumeSpec) GetImage() string { - if m != nil { - return m.Image +func (x *VolumeSpec) GetImage() string { + if x != nil { + return x.Image } return "" } -func (m *VolumeSpec) GetClass() string { - if m != nil { - return m.Class +func (x *VolumeSpec) GetClass() string { + if x != nil { + return x.Class } return "" } -func (m *VolumeSpec) GetResources() *VolumeResources { - if m != nil { - return m.Resources +func (x *VolumeSpec) GetResources() *VolumeResources { + if x != nil { + return x.Resources } return nil } -func (m *VolumeSpec) GetEncryption() *EncryptionSpec { - if m != nil { - return m.Encryption +func (x *VolumeSpec) GetEncryption() *EncryptionSpec { + if x != nil { + return x.Encryption } return nil } type VolumeStatus struct { - State VolumeState `protobuf:"varint,1,opt,name=state,proto3,enum=volume.v1alpha1.VolumeState" json:"state,omitempty"` - Access *VolumeAccess `protobuf:"bytes,2,opt,name=access,proto3" json:"access,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + State VolumeState `protobuf:"varint,1,opt,name=state,proto3,enum=volume.v1alpha1.VolumeState" json:"state,omitempty"` + Access *VolumeAccess `protobuf:"bytes,2,opt,name=access,proto3" json:"access,omitempty"` +} + +func (x *VolumeStatus) Reset() { + *x = VolumeStatus{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VolumeStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VolumeStatus) Reset() { *m = VolumeStatus{} } func (*VolumeStatus) ProtoMessage() {} -func (*VolumeStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{5} -} -func (m *VolumeStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VolumeStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *VolumeStatus) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *VolumeStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeStatus.Merge(m, src) -} -func (m *VolumeStatus) XXX_Size() int { - return m.Size() -} -func (m *VolumeStatus) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeStatus.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_VolumeStatus proto.InternalMessageInfo +// Deprecated: Use VolumeStatus.ProtoReflect.Descriptor instead. +func (*VolumeStatus) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{5} +} -func (m *VolumeStatus) GetState() VolumeState { - if m != nil { - return m.State +func (x *VolumeStatus) GetState() VolumeState { + if x != nil { + return x.State } return VolumeState_VOLUME_PENDING } -func (m *VolumeStatus) GetAccess() *VolumeAccess { - if m != nil { - return m.Access +func (x *VolumeStatus) GetAccess() *VolumeAccess { + if x != nil { + return x.Access } return nil } type Volume struct { - Metadata *v1alpha1.ObjectMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - Spec *VolumeSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - Status *VolumeStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *v1alpha1.ObjectMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *VolumeSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Status *VolumeStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *Volume) Reset() { + *x = Volume{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Volume) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Volume) Reset() { *m = Volume{} } func (*Volume) ProtoMessage() {} -func (*Volume) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{6} -} -func (m *Volume) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Volume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Volume.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *Volume) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *Volume) XXX_Merge(src proto.Message) { - xxx_messageInfo_Volume.Merge(m, src) -} -func (m *Volume) XXX_Size() int { - return m.Size() -} -func (m *Volume) XXX_DiscardUnknown() { - xxx_messageInfo_Volume.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_Volume proto.InternalMessageInfo +// Deprecated: Use Volume.ProtoReflect.Descriptor instead. +func (*Volume) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{6} +} -func (m *Volume) GetMetadata() *v1alpha1.ObjectMetadata { - if m != nil { - return m.Metadata +func (x *Volume) GetMetadata() *v1alpha1.ObjectMetadata { + if x != nil { + return x.Metadata } return nil } -func (m *Volume) GetSpec() *VolumeSpec { - if m != nil { - return m.Spec +func (x *Volume) GetSpec() *VolumeSpec { + if x != nil { + return x.Spec } return nil } -func (m *Volume) GetStatus() *VolumeStatus { - if m != nil { - return m.Status +func (x *Volume) GetStatus() *VolumeStatus { + if x != nil { + return x.Status } return nil } type VolumeClassCapabilities struct { - Tps int64 `protobuf:"varint,1,opt,name=tps,proto3" json:"tps,omitempty"` - Iops int64 `protobuf:"varint,2,opt,name=iops,proto3" json:"iops,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Tps int64 `protobuf:"varint,1,opt,name=tps,proto3" json:"tps,omitempty"` + Iops int64 `protobuf:"varint,2,opt,name=iops,proto3" json:"iops,omitempty"` +} + +func (x *VolumeClassCapabilities) Reset() { + *x = VolumeClassCapabilities{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VolumeClassCapabilities) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VolumeClassCapabilities) Reset() { *m = VolumeClassCapabilities{} } func (*VolumeClassCapabilities) ProtoMessage() {} -func (*VolumeClassCapabilities) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{7} -} -func (m *VolumeClassCapabilities) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeClassCapabilities) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VolumeClassCapabilities.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *VolumeClassCapabilities) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *VolumeClassCapabilities) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeClassCapabilities.Merge(m, src) -} -func (m *VolumeClassCapabilities) XXX_Size() int { - return m.Size() -} -func (m *VolumeClassCapabilities) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeClassCapabilities.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_VolumeClassCapabilities proto.InternalMessageInfo +// Deprecated: Use VolumeClassCapabilities.ProtoReflect.Descriptor instead. +func (*VolumeClassCapabilities) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{7} +} -func (m *VolumeClassCapabilities) GetTps() int64 { - if m != nil { - return m.Tps +func (x *VolumeClassCapabilities) GetTps() int64 { + if x != nil { + return x.Tps } return 0 } -func (m *VolumeClassCapabilities) GetIops() int64 { - if m != nil { - return m.Iops +func (x *VolumeClassCapabilities) GetIops() int64 { + if x != nil { + return x.Iops } return 0 } type VolumeClass struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Capabilities *VolumeClassCapabilities `protobuf:"bytes,2,opt,name=capabilities,proto3" json:"capabilities,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Capabilities *VolumeClassCapabilities `protobuf:"bytes,2,opt,name=capabilities,proto3" json:"capabilities,omitempty"` +} + +func (x *VolumeClass) Reset() { + *x = VolumeClass{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VolumeClass) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VolumeClass) Reset() { *m = VolumeClass{} } func (*VolumeClass) ProtoMessage() {} -func (*VolumeClass) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{8} -} -func (m *VolumeClass) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VolumeClass.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *VolumeClass) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *VolumeClass) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeClass.Merge(m, src) -} -func (m *VolumeClass) XXX_Size() int { - return m.Size() -} -func (m *VolumeClass) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeClass.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_VolumeClass proto.InternalMessageInfo +// Deprecated: Use VolumeClass.ProtoReflect.Descriptor instead. +func (*VolumeClass) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{8} +} -func (m *VolumeClass) GetName() string { - if m != nil { - return m.Name +func (x *VolumeClass) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *VolumeClass) GetCapabilities() *VolumeClassCapabilities { - if m != nil { - return m.Capabilities +func (x *VolumeClass) GetCapabilities() *VolumeClassCapabilities { + if x != nil { + return x.Capabilities } return nil } type VolumeClassStatus struct { - VolumeClass *VolumeClass `protobuf:"bytes,1,opt,name=volume_class,json=volumeClass,proto3" json:"volume_class,omitempty"` - Quantity int64 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + VolumeClass *VolumeClass `protobuf:"bytes,1,opt,name=volume_class,json=volumeClass,proto3" json:"volume_class,omitempty"` + Quantity int64 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"` +} + +func (x *VolumeClassStatus) Reset() { + *x = VolumeClassStatus{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VolumeClassStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VolumeClassStatus) Reset() { *m = VolumeClassStatus{} } func (*VolumeClassStatus) ProtoMessage() {} -func (*VolumeClassStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{9} -} -func (m *VolumeClassStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeClassStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VolumeClassStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *VolumeClassStatus) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *VolumeClassStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeClassStatus.Merge(m, src) -} -func (m *VolumeClassStatus) XXX_Size() int { - return m.Size() -} -func (m *VolumeClassStatus) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeClassStatus.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_VolumeClassStatus proto.InternalMessageInfo +// Deprecated: Use VolumeClassStatus.ProtoReflect.Descriptor instead. +func (*VolumeClassStatus) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{9} +} -func (m *VolumeClassStatus) GetVolumeClass() *VolumeClass { - if m != nil { - return m.VolumeClass +func (x *VolumeClassStatus) GetVolumeClass() *VolumeClass { + if x != nil { + return x.VolumeClass } return nil } -func (m *VolumeClassStatus) GetQuantity() int64 { - if m != nil { - return m.Quantity +func (x *VolumeClassStatus) GetQuantity() int64 { + if x != nil { + return x.Quantity } return 0 } type VolumeAccess struct { - Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` - Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"` - Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - SecretData map[string][]byte `protobuf:"bytes,4,rep,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` + Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"` + Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + SecretData map[string][]byte `protobuf:"bytes,4,rep,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *VolumeAccess) Reset() { + *x = VolumeAccess{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VolumeAccess) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VolumeAccess) Reset() { *m = VolumeAccess{} } func (*VolumeAccess) ProtoMessage() {} -func (*VolumeAccess) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{10} -} -func (m *VolumeAccess) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VolumeAccess.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *VolumeAccess) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *VolumeAccess) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAccess.Merge(m, src) -} -func (m *VolumeAccess) XXX_Size() int { - return m.Size() -} -func (m *VolumeAccess) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAccess.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_VolumeAccess proto.InternalMessageInfo +// Deprecated: Use VolumeAccess.ProtoReflect.Descriptor instead. +func (*VolumeAccess) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{10} +} -func (m *VolumeAccess) GetDriver() string { - if m != nil { - return m.Driver +func (x *VolumeAccess) GetDriver() string { + if x != nil { + return x.Driver } return "" } -func (m *VolumeAccess) GetHandle() string { - if m != nil { - return m.Handle +func (x *VolumeAccess) GetHandle() string { + if x != nil { + return x.Handle } return "" } -func (m *VolumeAccess) GetAttributes() map[string]string { - if m != nil { - return m.Attributes +func (x *VolumeAccess) GetAttributes() map[string]string { + if x != nil { + return x.Attributes } return nil } -func (m *VolumeAccess) GetSecretData() map[string][]byte { - if m != nil { - return m.SecretData +func (x *VolumeAccess) GetSecretData() map[string][]byte { + if x != nil { + return x.SecretData } return nil } type ListEventsRequest struct { - Filter *EventFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Filter *EventFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` +} + +func (x *ListEventsRequest) Reset() { + *x = ListEventsRequest{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListEventsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListEventsRequest) Reset() { *m = ListEventsRequest{} } func (*ListEventsRequest) ProtoMessage() {} -func (*ListEventsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{11} -} -func (m *ListEventsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListEventsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ListEventsRequest) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListEventsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListEventsRequest.Merge(m, src) -} -func (m *ListEventsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListEventsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListEventsRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListEventsRequest proto.InternalMessageInfo +// Deprecated: Use ListEventsRequest.ProtoReflect.Descriptor instead. +func (*ListEventsRequest) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{11} +} -func (m *ListEventsRequest) GetFilter() *EventFilter { - if m != nil { - return m.Filter +func (x *ListEventsRequest) GetFilter() *EventFilter { + if x != nil { + return x.Filter } return nil } type ListEventsResponse struct { - Events []*v1alpha11.Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Events []*v1alpha11.Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` +} + +func (x *ListEventsResponse) Reset() { + *x = ListEventsResponse{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListEventsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListEventsResponse) Reset() { *m = ListEventsResponse{} } func (*ListEventsResponse) ProtoMessage() {} -func (*ListEventsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{12} -} -func (m *ListEventsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListEventsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ListEventsResponse) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListEventsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListEventsResponse.Merge(m, src) -} -func (m *ListEventsResponse) XXX_Size() int { - return m.Size() -} -func (m *ListEventsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListEventsResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListEventsResponse proto.InternalMessageInfo +// Deprecated: Use ListEventsResponse.ProtoReflect.Descriptor instead. +func (*ListEventsResponse) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{12} +} -func (m *ListEventsResponse) GetEvents() []*v1alpha11.Event { - if m != nil { - return m.Events +func (x *ListEventsResponse) GetEvents() []*v1alpha11.Event { + if x != nil { + return x.Events } return nil } type ListVolumesRequest struct { - Filter *VolumeFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Filter *VolumeFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` +} + +func (x *ListVolumesRequest) Reset() { + *x = ListVolumesRequest{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListVolumesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListVolumesRequest) Reset() { *m = ListVolumesRequest{} } func (*ListVolumesRequest) ProtoMessage() {} -func (*ListVolumesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{13} -} -func (m *ListVolumesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListVolumesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListVolumesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ListVolumesRequest) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListVolumesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListVolumesRequest.Merge(m, src) -} -func (m *ListVolumesRequest) XXX_Size() int { - return m.Size() -} -func (m *ListVolumesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListVolumesRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListVolumesRequest proto.InternalMessageInfo +// Deprecated: Use ListVolumesRequest.ProtoReflect.Descriptor instead. +func (*ListVolumesRequest) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{13} +} -func (m *ListVolumesRequest) GetFilter() *VolumeFilter { - if m != nil { - return m.Filter +func (x *ListVolumesRequest) GetFilter() *VolumeFilter { + if x != nil { + return x.Filter } return nil } type ListVolumesResponse struct { - Volumes []*Volume `protobuf:"bytes,1,rep,name=volumes,proto3" json:"volumes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Volumes []*Volume `protobuf:"bytes,1,rep,name=volumes,proto3" json:"volumes,omitempty"` +} + +func (x *ListVolumesResponse) Reset() { + *x = ListVolumesResponse{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListVolumesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListVolumesResponse) Reset() { *m = ListVolumesResponse{} } func (*ListVolumesResponse) ProtoMessage() {} -func (*ListVolumesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{14} -} -func (m *ListVolumesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListVolumesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListVolumesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ListVolumesResponse) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListVolumesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListVolumesResponse.Merge(m, src) -} -func (m *ListVolumesResponse) XXX_Size() int { - return m.Size() -} -func (m *ListVolumesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListVolumesResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListVolumesResponse proto.InternalMessageInfo +// Deprecated: Use ListVolumesResponse.ProtoReflect.Descriptor instead. +func (*ListVolumesResponse) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{14} +} -func (m *ListVolumesResponse) GetVolumes() []*Volume { - if m != nil { - return m.Volumes +func (x *ListVolumesResponse) GetVolumes() []*Volume { + if x != nil { + return x.Volumes } return nil } type CreateVolumeRequest struct { - Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"` +} + +func (x *CreateVolumeRequest) Reset() { + *x = CreateVolumeRequest{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateVolumeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateVolumeRequest) Reset() { *m = CreateVolumeRequest{} } func (*CreateVolumeRequest) ProtoMessage() {} -func (*CreateVolumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{15} -} -func (m *CreateVolumeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CreateVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CreateVolumeRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *CreateVolumeRequest) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *CreateVolumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateVolumeRequest.Merge(m, src) -} -func (m *CreateVolumeRequest) XXX_Size() int { - return m.Size() -} -func (m *CreateVolumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateVolumeRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_CreateVolumeRequest proto.InternalMessageInfo +// Deprecated: Use CreateVolumeRequest.ProtoReflect.Descriptor instead. +func (*CreateVolumeRequest) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{15} +} -func (m *CreateVolumeRequest) GetVolume() *Volume { - if m != nil { - return m.Volume +func (x *CreateVolumeRequest) GetVolume() *Volume { + if x != nil { + return x.Volume } return nil } type ExpandVolumeRequest struct { - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - Resources *VolumeResources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` + Resources *VolumeResources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` +} + +func (x *ExpandVolumeRequest) Reset() { + *x = ExpandVolumeRequest{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExpandVolumeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExpandVolumeRequest) Reset() { *m = ExpandVolumeRequest{} } func (*ExpandVolumeRequest) ProtoMessage() {} -func (*ExpandVolumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{16} -} -func (m *ExpandVolumeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExpandVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExpandVolumeRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ExpandVolumeRequest) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ExpandVolumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExpandVolumeRequest.Merge(m, src) -} -func (m *ExpandVolumeRequest) XXX_Size() int { - return m.Size() -} -func (m *ExpandVolumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExpandVolumeRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ExpandVolumeRequest proto.InternalMessageInfo +// Deprecated: Use ExpandVolumeRequest.ProtoReflect.Descriptor instead. +func (*ExpandVolumeRequest) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{16} +} -func (m *ExpandVolumeRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId +func (x *ExpandVolumeRequest) GetVolumeId() string { + if x != nil { + return x.VolumeId } return "" } -func (m *ExpandVolumeRequest) GetResources() *VolumeResources { - if m != nil { - return m.Resources +func (x *ExpandVolumeRequest) GetResources() *VolumeResources { + if x != nil { + return x.Resources } return nil } type CreateVolumeResponse struct { - Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"` +} + +func (x *CreateVolumeResponse) Reset() { + *x = CreateVolumeResponse{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateVolumeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateVolumeResponse) Reset() { *m = CreateVolumeResponse{} } func (*CreateVolumeResponse) ProtoMessage() {} -func (*CreateVolumeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{17} -} -func (m *CreateVolumeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CreateVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CreateVolumeResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *CreateVolumeResponse) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *CreateVolumeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateVolumeResponse.Merge(m, src) -} -func (m *CreateVolumeResponse) XXX_Size() int { - return m.Size() -} -func (m *CreateVolumeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateVolumeResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_CreateVolumeResponse proto.InternalMessageInfo +// Deprecated: Use CreateVolumeResponse.ProtoReflect.Descriptor instead. +func (*CreateVolumeResponse) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{17} +} -func (m *CreateVolumeResponse) GetVolume() *Volume { - if m != nil { - return m.Volume +func (x *CreateVolumeResponse) GetVolume() *Volume { + if x != nil { + return x.Volume } return nil } type ExpandVolumeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ExpandVolumeResponse) Reset() { + *x = ExpandVolumeResponse{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExpandVolumeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExpandVolumeResponse) Reset() { *m = ExpandVolumeResponse{} } func (*ExpandVolumeResponse) ProtoMessage() {} -func (*ExpandVolumeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{18} -} -func (m *ExpandVolumeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExpandVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExpandVolumeResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ExpandVolumeResponse) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ExpandVolumeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExpandVolumeResponse.Merge(m, src) -} -func (m *ExpandVolumeResponse) XXX_Size() int { - return m.Size() + +// Deprecated: Use ExpandVolumeResponse.ProtoReflect.Descriptor instead. +func (*ExpandVolumeResponse) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{18} } -func (m *ExpandVolumeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExpandVolumeResponse.DiscardUnknown(m) + +type DeleteVolumeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` } -var xxx_messageInfo_ExpandVolumeResponse proto.InternalMessageInfo +func (x *DeleteVolumeRequest) Reset() { + *x = DeleteVolumeRequest{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -type DeleteVolumeRequest struct { - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DeleteVolumeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteVolumeRequest) Reset() { *m = DeleteVolumeRequest{} } func (*DeleteVolumeRequest) ProtoMessage() {} -func (*DeleteVolumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{19} -} -func (m *DeleteVolumeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteVolumeRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *DeleteVolumeRequest) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DeleteVolumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteVolumeRequest.Merge(m, src) -} -func (m *DeleteVolumeRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteVolumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteVolumeRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DeleteVolumeRequest proto.InternalMessageInfo +// Deprecated: Use DeleteVolumeRequest.ProtoReflect.Descriptor instead. +func (*DeleteVolumeRequest) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{19} +} -func (m *DeleteVolumeRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId +func (x *DeleteVolumeRequest) GetVolumeId() string { + if x != nil { + return x.VolumeId } return "" } type DeleteVolumeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *DeleteVolumeResponse) Reset() { *m = DeleteVolumeResponse{} } -func (*DeleteVolumeResponse) ProtoMessage() {} -func (*DeleteVolumeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{20} -} -func (m *DeleteVolumeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteVolumeResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *DeleteVolumeResponse) Reset() { + *x = DeleteVolumeResponse{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *DeleteVolumeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteVolumeResponse.Merge(m, src) + +func (x *DeleteVolumeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteVolumeResponse) XXX_Size() int { - return m.Size() -} -func (m *DeleteVolumeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteVolumeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteVolumeResponse proto.InternalMessageInfo - -type StatusRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StatusRequest) Reset() { *m = StatusRequest{} } -func (*StatusRequest) ProtoMessage() {} -func (*StatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{21} -} -func (m *StatusRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StatusRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *StatusRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatusRequest.Merge(m, src) -} -func (m *StatusRequest) XXX_Size() int { - return m.Size() -} -func (m *StatusRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StatusRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_StatusRequest proto.InternalMessageInfo - -type StatusResponse struct { - VolumeClassStatus []*VolumeClassStatus `protobuf:"bytes,1,rep,name=volume_class_status,json=volumeClassStatus,proto3" json:"volume_class_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StatusResponse) Reset() { *m = StatusResponse{} } -func (*StatusResponse) ProtoMessage() {} -func (*StatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{22} -} -func (m *StatusResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *StatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatusResponse.Merge(m, src) -} -func (m *StatusResponse) XXX_Size() int { - return m.Size() -} -func (m *StatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StatusResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StatusResponse proto.InternalMessageInfo - -func (m *StatusResponse) GetVolumeClassStatus() []*VolumeClassStatus { - if m != nil { - return m.VolumeClassStatus - } - return nil -} - -func init() { - proto.RegisterEnum("volume.v1alpha1.VolumeState", VolumeState_name, VolumeState_value) - proto.RegisterType((*VolumeFilter)(nil), "volume.v1alpha1.VolumeFilter") - proto.RegisterMapType((map[string]string)(nil), "volume.v1alpha1.VolumeFilter.LabelSelectorEntry") - proto.RegisterType((*EventFilter)(nil), "volume.v1alpha1.EventFilter") - proto.RegisterMapType((map[string]string)(nil), "volume.v1alpha1.EventFilter.LabelSelectorEntry") - proto.RegisterType((*VolumeResources)(nil), "volume.v1alpha1.VolumeResources") - proto.RegisterType((*EncryptionSpec)(nil), "volume.v1alpha1.EncryptionSpec") - proto.RegisterMapType((map[string][]byte)(nil), "volume.v1alpha1.EncryptionSpec.SecretDataEntry") - proto.RegisterType((*VolumeSpec)(nil), "volume.v1alpha1.VolumeSpec") - proto.RegisterType((*VolumeStatus)(nil), "volume.v1alpha1.VolumeStatus") - proto.RegisterType((*Volume)(nil), "volume.v1alpha1.Volume") - proto.RegisterType((*VolumeClassCapabilities)(nil), "volume.v1alpha1.VolumeClassCapabilities") - proto.RegisterType((*VolumeClass)(nil), "volume.v1alpha1.VolumeClass") - proto.RegisterType((*VolumeClassStatus)(nil), "volume.v1alpha1.VolumeClassStatus") - proto.RegisterType((*VolumeAccess)(nil), "volume.v1alpha1.VolumeAccess") - proto.RegisterMapType((map[string]string)(nil), "volume.v1alpha1.VolumeAccess.AttributesEntry") - proto.RegisterMapType((map[string][]byte)(nil), "volume.v1alpha1.VolumeAccess.SecretDataEntry") - proto.RegisterType((*ListEventsRequest)(nil), "volume.v1alpha1.ListEventsRequest") - proto.RegisterType((*ListEventsResponse)(nil), "volume.v1alpha1.ListEventsResponse") - proto.RegisterType((*ListVolumesRequest)(nil), "volume.v1alpha1.ListVolumesRequest") - proto.RegisterType((*ListVolumesResponse)(nil), "volume.v1alpha1.ListVolumesResponse") - proto.RegisterType((*CreateVolumeRequest)(nil), "volume.v1alpha1.CreateVolumeRequest") - proto.RegisterType((*ExpandVolumeRequest)(nil), "volume.v1alpha1.ExpandVolumeRequest") - proto.RegisterType((*CreateVolumeResponse)(nil), "volume.v1alpha1.CreateVolumeResponse") - proto.RegisterType((*ExpandVolumeResponse)(nil), "volume.v1alpha1.ExpandVolumeResponse") - proto.RegisterType((*DeleteVolumeRequest)(nil), "volume.v1alpha1.DeleteVolumeRequest") - proto.RegisterType((*DeleteVolumeResponse)(nil), "volume.v1alpha1.DeleteVolumeResponse") - proto.RegisterType((*StatusRequest)(nil), "volume.v1alpha1.StatusRequest") - proto.RegisterType((*StatusResponse)(nil), "volume.v1alpha1.StatusResponse") -} - -func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) } - -var fileDescriptor_00212fb1f9d3bf1c = []byte{ - // 1175 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x41, 0x4f, 0x1b, 0xc7, - 0x17, 0x67, 0x6d, 0xe2, 0x7f, 0x78, 0x36, 0xc6, 0x0c, 0xfc, 0x13, 0xe4, 0x04, 0x07, 0x6d, 0x52, - 0x09, 0x55, 0xc2, 0x2e, 0x6e, 0x53, 0x35, 0x95, 0x5a, 0x6a, 0xc0, 0xa4, 0x28, 0x06, 0xa2, 0x25, - 0x05, 0x29, 0x52, 0x65, 0x8d, 0xd7, 0x03, 0x4c, 0xbb, 0xde, 0xdd, 0xec, 0xcc, 0x5a, 0xf5, 0xad, - 0xb7, 0x5e, 0xfb, 0x15, 0x7a, 0xae, 0xd4, 0x7b, 0xbe, 0x41, 0x8e, 0x3d, 0x56, 0xea, 0xa5, 0xa1, - 0x5f, 0xa4, 0xda, 0x99, 0xd9, 0x65, 0xd7, 0xde, 0x35, 0xa0, 0xf6, 0x36, 0xf3, 0xfc, 0x7b, 0xbf, - 0xf9, 0xbd, 0x37, 0xef, 0xbd, 0xf1, 0xc2, 0x1c, 0x76, 0x69, 0xdd, 0xf5, 0x1c, 0xee, 0xa0, 0x85, - 0xa1, 0x63, 0xf9, 0x03, 0x52, 0x1f, 0x6e, 0x62, 0xcb, 0xbd, 0xc0, 0x9b, 0xd5, 0x8d, 0x73, 0xca, - 0x2f, 0xfc, 0x5e, 0xdd, 0x74, 0x06, 0x8d, 0x73, 0xe7, 0xdc, 0x69, 0x08, 0x5c, 0xcf, 0x3f, 0x13, - 0x3b, 0xb1, 0x11, 0x2b, 0xe9, 0x5f, 0x6d, 0xc5, 0xe0, 0xd4, 0x73, 0x6c, 0xd3, 0xf1, 0xc8, 0x46, - 0x9f, 0x0c, 0xa3, 0x4d, 0x83, 0x7a, 0xb4, 0x81, 0x5d, 0xca, 0x1a, 0x03, 0xc2, 0x71, 0x23, 0x3c, - 0xa7, 0x11, 0x49, 0xa8, 0x6e, 0xdf, 0x9c, 0x82, 0x0c, 0x89, 0xcd, 0x53, 0x38, 0xf4, 0xb7, 0x1a, - 0x94, 0x4e, 0x44, 0x24, 0x7b, 0xd4, 0xe2, 0xc4, 0x43, 0x65, 0xc8, 0xd1, 0xfe, 0x8a, 0xb6, 0xa6, - 0xad, 0xcf, 0x19, 0x39, 0xda, 0x47, 0xa7, 0x50, 0xb6, 0x70, 0x8f, 0x58, 0x5d, 0x46, 0x2c, 0x62, - 0x72, 0xc7, 0x5b, 0xc9, 0xad, 0xe5, 0xd7, 0x8b, 0xcd, 0x8f, 0xea, 0x63, 0x09, 0xa8, 0xc7, 0x69, - 0xea, 0x9d, 0xc0, 0xe7, 0x58, 0xb9, 0xb4, 0x6d, 0xee, 0x8d, 0x8c, 0x79, 0x2b, 0x6e, 0xab, 0x7e, - 0x05, 0x68, 0x12, 0x84, 0x2a, 0x90, 0xff, 0x9e, 0x8c, 0xd4, 0xf9, 0xc1, 0x12, 0x2d, 0xc3, 0x9d, - 0x21, 0xb6, 0x7c, 0xb2, 0x92, 0x13, 0x36, 0xb9, 0xf9, 0x3c, 0xf7, 0x99, 0xa6, 0xff, 0x94, 0x83, - 0x62, 0x3b, 0x08, 0x2c, 0x43, 0xfa, 0x49, 0x86, 0xf4, 0xc6, 0x84, 0xf4, 0x18, 0xcb, 0xf5, 0xca, - 0xd1, 0x3a, 0x54, 0x44, 0x3e, 0x59, 0xf7, 0xcc, 0x73, 0x06, 0x5d, 0x4e, 0x07, 0x64, 0x25, 0xbf, - 0xa6, 0xad, 0xe7, 0x8d, 0xb2, 0xb4, 0xef, 0x79, 0xce, 0xe0, 0x15, 0x1d, 0x10, 0xf4, 0x04, 0x94, - 0xa5, 0xcb, 0x1d, 0x89, 0x9b, 0x15, 0xb8, 0x92, 0xb4, 0xbe, 0x72, 0x02, 0xd4, 0x7f, 0x90, 0x89, - 0x4f, 0x61, 0x41, 0x66, 0xdf, 0x20, 0xcc, 0xf1, 0x3d, 0x93, 0x30, 0xf4, 0x18, 0xe6, 0x19, 0x77, - 0x3c, 0x7c, 0x4e, 0xba, 0xbd, 0x11, 0x27, 0x4c, 0x10, 0xe5, 0x8d, 0x92, 0x32, 0x6e, 0x07, 0x36, - 0xfd, 0x17, 0x0d, 0xca, 0x6d, 0xdb, 0xf4, 0x46, 0x2e, 0xa7, 0x8e, 0x7d, 0xec, 0x12, 0x13, 0xbd, - 0x84, 0x22, 0x23, 0xa6, 0x47, 0x78, 0xb7, 0x8f, 0x39, 0x5e, 0xd1, 0xb2, 0x32, 0x96, 0xf0, 0xaa, - 0x1f, 0x0b, 0x97, 0x5d, 0xcc, 0xb1, 0xcc, 0x18, 0xb0, 0xc8, 0x50, 0xfd, 0x02, 0x16, 0xc6, 0x7e, - 0xbe, 0x2e, 0xb6, 0x52, 0x3c, 0xb6, 0xb7, 0x1a, 0x80, 0x0c, 0x4e, 0xe8, 0x5b, 0x86, 0x3b, 0x74, - 0x80, 0xcf, 0x89, 0x72, 0x96, 0x9b, 0xc0, 0x6a, 0x5a, 0x98, 0xb1, 0x30, 0x35, 0x62, 0x83, 0xbe, - 0x84, 0x39, 0x2f, 0x4c, 0x88, 0xb8, 0xa1, 0x62, 0x73, 0x2d, 0xa3, 0x6c, 0xa3, 0xc4, 0x19, 0x57, - 0x2e, 0x68, 0x0b, 0x80, 0x44, 0x71, 0x8a, 0xab, 0x2b, 0x36, 0x1f, 0x5d, 0x93, 0x0a, 0x23, 0xe6, - 0xa2, 0x8f, 0xc2, 0xe6, 0x3a, 0xe6, 0x98, 0xfb, 0x0c, 0x35, 0xe1, 0x0e, 0xe3, 0x98, 0x4b, 0xf1, - 0xe5, 0xe6, 0xc3, 0x0c, 0x31, 0x01, 0x9a, 0x18, 0x12, 0x8a, 0x9e, 0x42, 0x01, 0x9b, 0x26, 0x51, - 0xb1, 0x15, 0x9b, 0xab, 0x19, 0x4e, 0x2d, 0x01, 0x32, 0x14, 0x58, 0xff, 0x55, 0x83, 0x82, 0xfc, - 0x01, 0x3d, 0x83, 0xbb, 0xc1, 0x08, 0x51, 0xf7, 0x29, 0x39, 0x02, 0xc3, 0x15, 0xc3, 0x51, 0xef, - 0x3b, 0x62, 0xf2, 0x03, 0x05, 0x32, 0x22, 0x38, 0x6a, 0xc0, 0x2c, 0x73, 0x89, 0xa9, 0x8e, 0x7e, - 0x90, 0xa5, 0x37, 0x88, 0x5b, 0x00, 0x03, 0xb5, 0x4c, 0xc4, 0xaa, 0xf2, 0xbd, 0x3a, 0x25, 0x44, - 0x9f, 0x19, 0x0a, 0xac, 0x6f, 0xc1, 0x7d, 0x69, 0xdf, 0x09, 0x2e, 0x6e, 0x07, 0xbb, 0xb8, 0x47, - 0x2d, 0xca, 0x29, 0x61, 0x41, 0xad, 0x70, 0x37, 0x2c, 0xdf, 0x60, 0x89, 0x10, 0xcc, 0x52, 0xc7, - 0x95, 0xf9, 0xc8, 0x1b, 0x62, 0xad, 0x3b, 0x50, 0x8c, 0x11, 0x04, 0x10, 0x1b, 0x0f, 0xc2, 0x22, - 0x11, 0x6b, 0xd4, 0x81, 0x92, 0x19, 0x23, 0x56, 0x31, 0xad, 0x67, 0x08, 0x9c, 0x10, 0x62, 0x24, - 0xbc, 0x75, 0x17, 0x16, 0x63, 0x40, 0x75, 0xbf, 0x5b, 0x50, 0x92, 0x6c, 0x5d, 0x59, 0x8d, 0x32, - 0xdb, 0x0f, 0xa7, 0x1d, 0x61, 0x14, 0x87, 0x31, 0xdd, 0x55, 0xb8, 0xfb, 0xc6, 0xc7, 0x36, 0xa7, - 0x7c, 0xa4, 0xc2, 0x8b, 0xf6, 0xfa, 0x9f, 0xb9, 0xb0, 0x9a, 0xe4, 0x55, 0xa3, 0x7b, 0x50, 0xe8, - 0x7b, 0x74, 0x48, 0x3c, 0x15, 0xa6, 0xda, 0x05, 0xf6, 0x0b, 0x6c, 0xf7, 0xad, 0x70, 0x50, 0xa8, - 0x1d, 0x3a, 0x00, 0xc0, 0x9c, 0x7b, 0xb4, 0xe7, 0x73, 0xd1, 0x0f, 0x41, 0x67, 0x6f, 0x4c, 0xad, - 0xa6, 0x7a, 0x2b, 0xc2, 0xab, 0xbe, 0xbe, 0x22, 0x40, 0x87, 0xc9, 0x49, 0x31, 0x7b, 0x13, 0xbe, - 0x6b, 0xe6, 0xc4, 0xd8, 0x71, 0xb7, 0x99, 0x81, 0xff, 0x76, 0xcc, 0xec, 0xc3, 0x62, 0x87, 0x32, - 0x2e, 0x5e, 0x02, 0x66, 0x90, 0x37, 0x3e, 0x61, 0x1c, 0x7d, 0x02, 0x85, 0x33, 0xf1, 0x2a, 0x64, - 0xde, 0x64, 0xec, 0xe5, 0x30, 0x14, 0x56, 0xdf, 0x01, 0x14, 0xa7, 0x62, 0xae, 0x63, 0x33, 0x82, - 0x36, 0xa0, 0x20, 0xa7, 0xbe, 0x9a, 0xa9, 0xff, 0xaf, 0x8b, 0xed, 0x18, 0x95, 0xa1, 0x40, 0xfa, - 0x0b, 0x49, 0x22, 0xb3, 0x17, 0x09, 0x7a, 0x3a, 0x26, 0x68, 0x75, 0xea, 0x2b, 0x1c, 0x29, 0xfa, - 0x1a, 0x96, 0x12, 0x64, 0x4a, 0xd2, 0x26, 0xfc, 0x4f, 0xba, 0x87, 0x9a, 0xee, 0x67, 0x4d, 0xc7, - 0x10, 0xa7, 0xef, 0xc1, 0xd2, 0x8e, 0x47, 0x30, 0x27, 0xe1, 0xd8, 0x94, 0xba, 0x1a, 0x50, 0x90, - 0x08, 0xa5, 0x2b, 0x93, 0x48, 0xc1, 0x74, 0x0f, 0x96, 0xda, 0x3f, 0xb8, 0xd8, 0xee, 0x27, 0x79, - 0x1e, 0xc0, 0x9c, 0x6a, 0xa0, 0xe8, 0x25, 0xbf, 0x2b, 0x0d, 0xfb, 0xfd, 0xe4, 0x38, 0xcf, 0xdd, - 0x7a, 0x9c, 0xeb, 0xcf, 0x61, 0x39, 0xa9, 0x5d, 0xa5, 0xe1, 0xd6, 0xe2, 0xef, 0xc1, 0x72, 0x52, - 0xbc, 0x24, 0xd2, 0x9b, 0xb0, 0xb4, 0x4b, 0x2c, 0x32, 0x9e, 0x9c, 0x69, 0x41, 0x05, 0x5c, 0x49, - 0x1f, 0xc5, 0xb5, 0x00, 0xf3, 0x6a, 0x46, 0x4a, 0x16, 0xbd, 0x0f, 0xe5, 0xd0, 0xa0, 0x74, 0x1b, - 0xb0, 0x14, 0x9f, 0x36, 0x5d, 0x35, 0x78, 0xe5, 0x55, 0xea, 0xd3, 0x86, 0x8e, 0x22, 0x5a, 0x1c, - 0x8e, 0x9b, 0x3e, 0xdc, 0x0f, 0xe7, 0xa8, 0x78, 0x83, 0x10, 0x82, 0xf2, 0xc9, 0x51, 0xe7, 0x9b, - 0x83, 0x76, 0xf7, 0x65, 0xfb, 0x70, 0x77, 0xff, 0xf0, 0x79, 0x65, 0x06, 0x2d, 0x43, 0x45, 0xd9, - 0x5a, 0x27, 0xad, 0xfd, 0x4e, 0x6b, 0xbb, 0xd3, 0xae, 0x68, 0xa8, 0x02, 0x25, 0x65, 0x6d, 0x1b, - 0xc6, 0x91, 0x51, 0xc9, 0x35, 0x7f, 0x9b, 0x85, 0x79, 0x15, 0x94, 0x6f, 0x07, 0x7f, 0x7e, 0xd0, - 0x29, 0xc0, 0x55, 0x63, 0xa0, 0x49, 0x85, 0x13, 0x0d, 0x58, 0x7d, 0x3c, 0x15, 0xa3, 0x52, 0x35, - 0x83, 0x5e, 0x43, 0x31, 0x56, 0xdf, 0x28, 0xdd, 0x2b, 0xd9, 0x4a, 0xd5, 0x27, 0xd3, 0x41, 0x11, - 0xf7, 0xb7, 0x50, 0x8a, 0x57, 0x0d, 0x9a, 0xf4, 0x4b, 0x69, 0x88, 0xea, 0x07, 0xd7, 0xa0, 0xe2, - 0xf4, 0xf1, 0x5a, 0x4a, 0xa1, 0x4f, 0xe9, 0x93, 0x14, 0xfa, 0xd4, 0x82, 0x14, 0xf4, 0xf1, 0xf2, - 0x4a, 0xa1, 0x4f, 0xa9, 0xd8, 0x14, 0xfa, 0xd4, 0x1a, 0x9d, 0x41, 0x2f, 0xa0, 0xa0, 0x9e, 0xbe, - 0xda, 0x84, 0x4b, 0xa2, 0x7c, 0xab, 0x8f, 0x32, 0x7f, 0x0f, 0xc9, 0xb6, 0x4f, 0xdf, 0xbd, 0xaf, - 0x69, 0x7f, 0xbc, 0xaf, 0xcd, 0xfc, 0x78, 0x59, 0xd3, 0xde, 0x5d, 0xd6, 0xb4, 0xdf, 0x2f, 0x6b, - 0xda, 0x5f, 0x97, 0x35, 0xed, 0xe7, 0xbf, 0x6b, 0x33, 0xaf, 0x9f, 0xdd, 0xfc, 0x6b, 0x47, 0x9e, - 0x14, 0x7d, 0xee, 0xf4, 0x0a, 0xe2, 0x5b, 0xe7, 0xe3, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x94, - 0x3f, 0x92, 0x6e, 0xbf, 0x0d, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// VolumeRuntimeClient is the client API for VolumeRuntime service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type VolumeRuntimeClient interface { - ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) - ListVolumes(ctx context.Context, in *ListVolumesRequest, opts ...grpc.CallOption) (*ListVolumesResponse, error) - CreateVolume(ctx context.Context, in *CreateVolumeRequest, opts ...grpc.CallOption) (*CreateVolumeResponse, error) - ExpandVolume(ctx context.Context, in *ExpandVolumeRequest, opts ...grpc.CallOption) (*ExpandVolumeResponse, error) - DeleteVolume(ctx context.Context, in *DeleteVolumeRequest, opts ...grpc.CallOption) (*DeleteVolumeResponse, error) - Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) -} - -type volumeRuntimeClient struct { - cc *grpc.ClientConn -} - -func NewVolumeRuntimeClient(cc *grpc.ClientConn) VolumeRuntimeClient { - return &volumeRuntimeClient{cc} -} - -func (c *volumeRuntimeClient) ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) { - out := new(ListEventsResponse) - err := c.cc.Invoke(ctx, "/volume.v1alpha1.VolumeRuntime/ListEvents", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeRuntimeClient) ListVolumes(ctx context.Context, in *ListVolumesRequest, opts ...grpc.CallOption) (*ListVolumesResponse, error) { - out := new(ListVolumesResponse) - err := c.cc.Invoke(ctx, "/volume.v1alpha1.VolumeRuntime/ListVolumes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeRuntimeClient) CreateVolume(ctx context.Context, in *CreateVolumeRequest, opts ...grpc.CallOption) (*CreateVolumeResponse, error) { - out := new(CreateVolumeResponse) - err := c.cc.Invoke(ctx, "/volume.v1alpha1.VolumeRuntime/CreateVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeRuntimeClient) ExpandVolume(ctx context.Context, in *ExpandVolumeRequest, opts ...grpc.CallOption) (*ExpandVolumeResponse, error) { - out := new(ExpandVolumeResponse) - err := c.cc.Invoke(ctx, "/volume.v1alpha1.VolumeRuntime/ExpandVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeRuntimeClient) DeleteVolume(ctx context.Context, in *DeleteVolumeRequest, opts ...grpc.CallOption) (*DeleteVolumeResponse, error) { - out := new(DeleteVolumeResponse) - err := c.cc.Invoke(ctx, "/volume.v1alpha1.VolumeRuntime/DeleteVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeRuntimeClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) { - out := new(StatusResponse) - err := c.cc.Invoke(ctx, "/volume.v1alpha1.VolumeRuntime/Status", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// VolumeRuntimeServer is the server API for VolumeRuntime service. -type VolumeRuntimeServer interface { - ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error) - ListVolumes(context.Context, *ListVolumesRequest) (*ListVolumesResponse, error) - CreateVolume(context.Context, *CreateVolumeRequest) (*CreateVolumeResponse, error) - ExpandVolume(context.Context, *ExpandVolumeRequest) (*ExpandVolumeResponse, error) - DeleteVolume(context.Context, *DeleteVolumeRequest) (*DeleteVolumeResponse, error) - Status(context.Context, *StatusRequest) (*StatusResponse, error) -} - -// UnimplementedVolumeRuntimeServer can be embedded to have forward compatible implementations. -type UnimplementedVolumeRuntimeServer struct { -} - -func (*UnimplementedVolumeRuntimeServer) ListEvents(ctx context.Context, req *ListEventsRequest) (*ListEventsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented") -} -func (*UnimplementedVolumeRuntimeServer) ListVolumes(ctx context.Context, req *ListVolumesRequest) (*ListVolumesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListVolumes not implemented") -} -func (*UnimplementedVolumeRuntimeServer) CreateVolume(ctx context.Context, req *CreateVolumeRequest) (*CreateVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateVolume not implemented") -} -func (*UnimplementedVolumeRuntimeServer) ExpandVolume(ctx context.Context, req *ExpandVolumeRequest) (*ExpandVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ExpandVolume not implemented") -} -func (*UnimplementedVolumeRuntimeServer) DeleteVolume(ctx context.Context, req *DeleteVolumeRequest) (*DeleteVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteVolume not implemented") -} -func (*UnimplementedVolumeRuntimeServer) Status(ctx context.Context, req *StatusRequest) (*StatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Status not implemented") -} - -func RegisterVolumeRuntimeServer(s *grpc.Server, srv VolumeRuntimeServer) { - s.RegisterService(&_VolumeRuntime_serviceDesc, srv) -} - -func _VolumeRuntime_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListEventsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeRuntimeServer).ListEvents(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/volume.v1alpha1.VolumeRuntime/ListEvents", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeRuntimeServer).ListEvents(ctx, req.(*ListEventsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _VolumeRuntime_ListVolumes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListVolumesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeRuntimeServer).ListVolumes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/volume.v1alpha1.VolumeRuntime/ListVolumes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeRuntimeServer).ListVolumes(ctx, req.(*ListVolumesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _VolumeRuntime_CreateVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeRuntimeServer).CreateVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/volume.v1alpha1.VolumeRuntime/CreateVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeRuntimeServer).CreateVolume(ctx, req.(*CreateVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _VolumeRuntime_ExpandVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExpandVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeRuntimeServer).ExpandVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/volume.v1alpha1.VolumeRuntime/ExpandVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeRuntimeServer).ExpandVolume(ctx, req.(*ExpandVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _VolumeRuntime_DeleteVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeRuntimeServer).DeleteVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/volume.v1alpha1.VolumeRuntime/DeleteVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeRuntimeServer).DeleteVolume(ctx, req.(*DeleteVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _VolumeRuntime_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeRuntimeServer).Status(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/volume.v1alpha1.VolumeRuntime/Status", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeRuntimeServer).Status(ctx, req.(*StatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _VolumeRuntime_serviceDesc = grpc.ServiceDesc{ - ServiceName: "volume.v1alpha1.VolumeRuntime", - HandlerType: (*VolumeRuntimeServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListEvents", - Handler: _VolumeRuntime_ListEvents_Handler, - }, - { - MethodName: "ListVolumes", - Handler: _VolumeRuntime_ListVolumes_Handler, - }, - { - MethodName: "CreateVolume", - Handler: _VolumeRuntime_CreateVolume_Handler, - }, - { - MethodName: "ExpandVolume", - Handler: _VolumeRuntime_ExpandVolume_Handler, - }, - { - MethodName: "DeleteVolume", - Handler: _VolumeRuntime_DeleteVolume_Handler, - }, - { - MethodName: "Status", - Handler: _VolumeRuntime_Status_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "api.proto", -} - -func (m *VolumeFilter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.LabelSelector) > 0 { - for k := range m.LabelSelector { - v := m.LabelSelector[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintApi(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EventFilter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EventsToTime != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.EventsToTime)) - i-- - dAtA[i] = 0x20 - } - if m.EventsFromTime != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.EventsFromTime)) - i-- - dAtA[i] = 0x18 - } - if len(m.LabelSelector) > 0 { - for k := range m.LabelSelector { - v := m.LabelSelector[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintApi(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VolumeResources) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeResources) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeResources) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StorageBytes != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.StorageBytes)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *EncryptionSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EncryptionSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EncryptionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SecretData) > 0 { - for k := range m.SecretData { - v := m.SecretData[k] - baseI := i - if len(v) > 0 { - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *VolumeSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Encryption != nil { - { - size, err := m.Encryption.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Resources != nil { - { - size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Class) > 0 { - i -= len(m.Class) - copy(dAtA[i:], m.Class) - i = encodeVarintApi(dAtA, i, uint64(len(m.Class))) - i-- - dAtA[i] = 0x12 - } - if len(m.Image) > 0 { - i -= len(m.Image) - copy(dAtA[i:], m.Image) - i = encodeVarintApi(dAtA, i, uint64(len(m.Image))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VolumeStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Access != nil { - { - size, err := m.Access.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.State != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Volume) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Volume) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Volume) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Status != nil { - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Metadata != nil { - { - size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VolumeClassCapabilities) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeClassCapabilities) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeClassCapabilities) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Iops != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.Iops)) - i-- - dAtA[i] = 0x10 - } - if m.Tps != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.Tps)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *VolumeClass) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeClass) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Capabilities != nil { - { - size, err := m.Capabilities.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintApi(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VolumeClassStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeClassStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeClassStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Quantity != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.Quantity)) - i-- - dAtA[i] = 0x10 - } - if m.VolumeClass != nil { - { - size, err := m.VolumeClass.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VolumeAccess) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAccess) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAccess) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SecretData) > 0 { - for k := range m.SecretData { - v := m.SecretData[k] - baseI := i - if len(v) > 0 { - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Attributes) > 0 { - for k := range m.Attributes { - v := m.Attributes[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Handle) > 0 { - i -= len(m.Handle) - copy(dAtA[i:], m.Handle) - i = encodeVarintApi(dAtA, i, uint64(len(m.Handle))) - i-- - dAtA[i] = 0x12 - } - if len(m.Driver) > 0 { - i -= len(m.Driver) - copy(dAtA[i:], m.Driver) - i = encodeVarintApi(dAtA, i, uint64(len(m.Driver))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListEventsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListEventsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListEventsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Filter != nil { - { - size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListEventsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListEventsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListEventsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Events) > 0 { - for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ListVolumesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListVolumesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListVolumesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Filter != nil { - { - size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListVolumesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListVolumesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListVolumesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Volumes) > 0 { - for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Volumes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *CreateVolumeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CreateVolumeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CreateVolumeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Volume != nil { - { - size, err := m.Volume.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ExpandVolumeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExpandVolumeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExpandVolumeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Resources != nil { - { - size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.VolumeId) > 0 { - i -= len(m.VolumeId) - copy(dAtA[i:], m.VolumeId) - i = encodeVarintApi(dAtA, i, uint64(len(m.VolumeId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CreateVolumeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CreateVolumeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CreateVolumeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Volume != nil { - { - size, err := m.Volume.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ExpandVolumeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExpandVolumeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExpandVolumeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DeleteVolumeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeleteVolumeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteVolumeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.VolumeId) > 0 { - i -= len(m.VolumeId) - copy(dAtA[i:], m.VolumeId) - i = encodeVarintApi(dAtA, i, uint64(len(m.VolumeId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DeleteVolumeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeleteVolumeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteVolumeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *StatusRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *StatusResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.VolumeClassStatus) > 0 { - for iNdEx := len(m.VolumeClassStatus) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VolumeClassStatus[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintApi(dAtA []byte, offset int, v uint64) int { - offset -= sovApi(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *VolumeFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.LabelSelector) > 0 { - for k, v := range m.LabelSelector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - return n -} - -func (m *EventFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.LabelSelector) > 0 { - for k, v := range m.LabelSelector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - if m.EventsFromTime != 0 { - n += 1 + sovApi(uint64(m.EventsFromTime)) - } - if m.EventsToTime != 0 { - n += 1 + sovApi(uint64(m.EventsToTime)) - } - return n -} - -func (m *VolumeResources) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StorageBytes != 0 { - n += 1 + sovApi(uint64(m.StorageBytes)) - } - return n -} - -func (m *EncryptionSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.SecretData) > 0 { - for k, v := range m.SecretData { - _ = k - _ = v - l = 0 - if len(v) > 0 { - l = 1 + len(v) + sovApi(uint64(len(v))) - } - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + l - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - return n -} - -func (m *VolumeSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Image) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Class) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.Resources != nil { - l = m.Resources.Size() - n += 1 + l + sovApi(uint64(l)) - } - if m.Encryption != nil { - l = m.Encryption.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *VolumeStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.State != 0 { - n += 1 + sovApi(uint64(m.State)) - } - if m.Access != nil { - l = m.Access.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *Volume) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovApi(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovApi(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *VolumeClassCapabilities) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Tps != 0 { - n += 1 + sovApi(uint64(m.Tps)) - } - if m.Iops != 0 { - n += 1 + sovApi(uint64(m.Iops)) - } - return n -} - -func (m *VolumeClass) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.Capabilities != nil { - l = m.Capabilities.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *VolumeClassStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.VolumeClass != nil { - l = m.VolumeClass.Size() - n += 1 + l + sovApi(uint64(l)) - } - if m.Quantity != 0 { - n += 1 + sovApi(uint64(m.Quantity)) - } - return n -} - -func (m *VolumeAccess) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Driver) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Handle) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.Attributes) > 0 { - for k, v := range m.Attributes { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - if len(m.SecretData) > 0 { - for k, v := range m.SecretData { - _ = k - _ = v - l = 0 - if len(v) > 0 { - l = 1 + len(v) + sovApi(uint64(len(v))) - } - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + l - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - return n -} - -func (m *ListEventsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Filter != nil { - l = m.Filter.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *ListEventsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - return n -} - -func (m *ListVolumesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Filter != nil { - l = m.Filter.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *ListVolumesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Volumes) > 0 { - for _, e := range m.Volumes { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - return n -} - -func (m *CreateVolumeRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Volume != nil { - l = m.Volume.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *ExpandVolumeRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.VolumeId) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.Resources != nil { - l = m.Resources.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *CreateVolumeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Volume != nil { - l = m.Volume.Size() - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *ExpandVolumeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DeleteVolumeRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.VolumeId) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *DeleteVolumeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *StatusRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *StatusResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.VolumeClassStatus) > 0 { - for _, e := range m.VolumeClassStatus { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - return n -} - -func sovApi(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozApi(x uint64) (n int) { - return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *VolumeFilter) String() string { - if this == nil { - return "nil" - } - keysForLabelSelector := make([]string, 0, len(this.LabelSelector)) - for k, _ := range this.LabelSelector { - keysForLabelSelector = append(keysForLabelSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForLabelSelector) - mapStringForLabelSelector := "map[string]string{" - for _, k := range keysForLabelSelector { - mapStringForLabelSelector += fmt.Sprintf("%v: %v,", k, this.LabelSelector[k]) - } - mapStringForLabelSelector += "}" - s := strings.Join([]string{`&VolumeFilter{`, - `Id:` + fmt.Sprintf("%v", this.Id) + `,`, - `LabelSelector:` + mapStringForLabelSelector + `,`, - `}`, - }, "") - return s -} -func (this *EventFilter) String() string { - if this == nil { - return "nil" - } - keysForLabelSelector := make([]string, 0, len(this.LabelSelector)) - for k, _ := range this.LabelSelector { - keysForLabelSelector = append(keysForLabelSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForLabelSelector) - mapStringForLabelSelector := "map[string]string{" - for _, k := range keysForLabelSelector { - mapStringForLabelSelector += fmt.Sprintf("%v: %v,", k, this.LabelSelector[k]) - } - mapStringForLabelSelector += "}" - s := strings.Join([]string{`&EventFilter{`, - `Id:` + fmt.Sprintf("%v", this.Id) + `,`, - `LabelSelector:` + mapStringForLabelSelector + `,`, - `EventsFromTime:` + fmt.Sprintf("%v", this.EventsFromTime) + `,`, - `EventsToTime:` + fmt.Sprintf("%v", this.EventsToTime) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeResources) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeResources{`, - `StorageBytes:` + fmt.Sprintf("%v", this.StorageBytes) + `,`, - `}`, - }, "") - return s -} -func (this *EncryptionSpec) String() string { - if this == nil { - return "nil" - } - keysForSecretData := make([]string, 0, len(this.SecretData)) - for k, _ := range this.SecretData { - keysForSecretData = append(keysForSecretData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSecretData) - mapStringForSecretData := "map[string][]byte{" - for _, k := range keysForSecretData { - mapStringForSecretData += fmt.Sprintf("%v: %v,", k, this.SecretData[k]) - } - mapStringForSecretData += "}" - s := strings.Join([]string{`&EncryptionSpec{`, - `SecretData:` + mapStringForSecretData + `,`, - `}`, - }, "") - return s -} -func (this *VolumeSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeSpec{`, - `Image:` + fmt.Sprintf("%v", this.Image) + `,`, - `Class:` + fmt.Sprintf("%v", this.Class) + `,`, - `Resources:` + strings.Replace(this.Resources.String(), "VolumeResources", "VolumeResources", 1) + `,`, - `Encryption:` + strings.Replace(this.Encryption.String(), "EncryptionSpec", "EncryptionSpec", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeStatus{`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, - `Access:` + strings.Replace(this.Access.String(), "VolumeAccess", "VolumeAccess", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Volume) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Volume{`, - `Metadata:` + strings.Replace(fmt.Sprintf("%v", this.Metadata), "ObjectMetadata", "v1alpha1.ObjectMetadata", 1) + `,`, - `Spec:` + strings.Replace(this.Spec.String(), "VolumeSpec", "VolumeSpec", 1) + `,`, - `Status:` + strings.Replace(this.Status.String(), "VolumeStatus", "VolumeStatus", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeClassCapabilities) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeClassCapabilities{`, - `Tps:` + fmt.Sprintf("%v", this.Tps) + `,`, - `Iops:` + fmt.Sprintf("%v", this.Iops) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeClass) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeClass{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Capabilities:` + strings.Replace(this.Capabilities.String(), "VolumeClassCapabilities", "VolumeClassCapabilities", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeClassStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeClassStatus{`, - `VolumeClass:` + strings.Replace(this.VolumeClass.String(), "VolumeClass", "VolumeClass", 1) + `,`, - `Quantity:` + fmt.Sprintf("%v", this.Quantity) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAccess) String() string { - if this == nil { - return "nil" - } - keysForAttributes := make([]string, 0, len(this.Attributes)) - for k, _ := range this.Attributes { - keysForAttributes = append(keysForAttributes, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAttributes) - mapStringForAttributes := "map[string]string{" - for _, k := range keysForAttributes { - mapStringForAttributes += fmt.Sprintf("%v: %v,", k, this.Attributes[k]) - } - mapStringForAttributes += "}" - keysForSecretData := make([]string, 0, len(this.SecretData)) - for k, _ := range this.SecretData { - keysForSecretData = append(keysForSecretData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSecretData) - mapStringForSecretData := "map[string][]byte{" - for _, k := range keysForSecretData { - mapStringForSecretData += fmt.Sprintf("%v: %v,", k, this.SecretData[k]) - } - mapStringForSecretData += "}" - s := strings.Join([]string{`&VolumeAccess{`, - `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, - `Handle:` + fmt.Sprintf("%v", this.Handle) + `,`, - `Attributes:` + mapStringForAttributes + `,`, - `SecretData:` + mapStringForSecretData + `,`, - `}`, - }, "") - return s -} -func (this *ListEventsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListEventsRequest{`, - `Filter:` + strings.Replace(this.Filter.String(), "EventFilter", "EventFilter", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListEventsResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForEvents := "[]*Event{" - for _, f := range this.Events { - repeatedStringForEvents += strings.Replace(fmt.Sprintf("%v", f), "Event", "v1alpha11.Event", 1) + "," - } - repeatedStringForEvents += "}" - s := strings.Join([]string{`&ListEventsResponse{`, - `Events:` + repeatedStringForEvents + `,`, - `}`, - }, "") - return s -} -func (this *ListVolumesRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListVolumesRequest{`, - `Filter:` + strings.Replace(this.Filter.String(), "VolumeFilter", "VolumeFilter", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListVolumesResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForVolumes := "[]*Volume{" - for _, f := range this.Volumes { - repeatedStringForVolumes += strings.Replace(f.String(), "Volume", "Volume", 1) + "," - } - repeatedStringForVolumes += "}" - s := strings.Join([]string{`&ListVolumesResponse{`, - `Volumes:` + repeatedStringForVolumes + `,`, - `}`, - }, "") - return s -} -func (this *CreateVolumeRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CreateVolumeRequest{`, - `Volume:` + strings.Replace(this.Volume.String(), "Volume", "Volume", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ExpandVolumeRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExpandVolumeRequest{`, - `VolumeId:` + fmt.Sprintf("%v", this.VolumeId) + `,`, - `Resources:` + strings.Replace(this.Resources.String(), "VolumeResources", "VolumeResources", 1) + `,`, - `}`, - }, "") - return s -} -func (this *CreateVolumeResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CreateVolumeResponse{`, - `Volume:` + strings.Replace(this.Volume.String(), "Volume", "Volume", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ExpandVolumeResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExpandVolumeResponse{`, - `}`, - }, "") - return s -} -func (this *DeleteVolumeRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeleteVolumeRequest{`, - `VolumeId:` + fmt.Sprintf("%v", this.VolumeId) + `,`, - `}`, - }, "") - return s -} -func (this *DeleteVolumeResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeleteVolumeResponse{`, - `}`, - }, "") - return s -} -func (this *StatusRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StatusRequest{`, - `}`, - }, "") - return s -} -func (this *StatusResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForVolumeClassStatus := "[]*VolumeClassStatus{" - for _, f := range this.VolumeClassStatus { - repeatedStringForVolumeClassStatus += strings.Replace(f.String(), "VolumeClassStatus", "VolumeClassStatus", 1) + "," - } - repeatedStringForVolumeClassStatus += "}" - s := strings.Join([]string{`&StatusResponse{`, - `VolumeClassStatus:` + repeatedStringForVolumeClassStatus + `,`, - `}`, - }, "") - return s -} -func valueToStringApi(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *VolumeFilter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeFilter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeFilter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LabelSelector == nil { - m.LabelSelector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.LabelSelector[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventFilter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventFilter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventFilter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LabelSelector == nil { - m.LabelSelector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.LabelSelector[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EventsFromTime", wireType) - } - m.EventsFromTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EventsFromTime |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EventsToTime", wireType) - } - m.EventsToTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EventsToTime |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeResources) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeResources: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeResources: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StorageBytes", wireType) - } - m.StorageBytes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StorageBytes |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EncryptionSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EncryptionSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EncryptionSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretData == nil { - m.SecretData = make(map[string][]byte) - } - var mapkey string - mapvalue := []byte{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapbyteLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapbyteLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intMapbyteLen := int(mapbyteLen) - if intMapbyteLen < 0 { - return ErrInvalidLengthApi - } - postbytesIndex := iNdEx + intMapbyteLen - if postbytesIndex < 0 { - return ErrInvalidLengthApi - } - if postbytesIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = make([]byte, mapbyteLen) - copy(mapvalue, dAtA[iNdEx:postbytesIndex]) - iNdEx = postbytesIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.SecretData[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +func (*DeleteVolumeResponse) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeSpec: wiretype end group for non-group") +func (x *DeleteVolumeResponse) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Image = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Class", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Class = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resources == nil { - m.Resources = &VolumeResources{} - } - if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Encryption", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Encryption == nil { - m.Encryption = &EncryptionSpec{} - } - if err := m.Encryption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF + return ms } - return nil + return mi.MessageOf(x) } -func (m *VolumeStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.State |= VolumeState(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Access", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Access == nil { - m.Access = &VolumeAccess{} - } - if err := m.Access.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use DeleteVolumeResponse.ProtoReflect.Descriptor instead. +func (*DeleteVolumeResponse) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{20} } -func (m *Volume) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Volume: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Volume: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &v1alpha1.ObjectMetadata{} - } - if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &VolumeSpec{} - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &VolumeStatus{} - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +type StatusRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *VolumeClassCapabilities) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeClassCapabilities: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeClassCapabilities: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Tps", wireType) - } - m.Tps = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Tps |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Iops", wireType) - } - m.Iops = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Iops |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *StatusRequest) Reset() { + *x = StatusRequest{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *VolumeClass) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeClass: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeClass: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Capabilities", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Capabilities == nil { - m.Capabilities = &VolumeClassCapabilities{} - } - if err := m.Capabilities.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *StatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VolumeClassStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeClassStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeClassStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeClass", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VolumeClass == nil { - m.VolumeClass = &VolumeClass{} - } - if err := m.VolumeClass.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Quantity", wireType) - } - m.Quantity = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Quantity |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAccess) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAccess: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAccess: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Driver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Handle", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Handle = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Attributes == nil { - m.Attributes = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Attributes[mapkey] = mapvalue - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretData == nil { - m.SecretData = make(map[string][]byte) - } - var mapkey string - mapvalue := []byte{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapbyteLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapbyteLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intMapbyteLen := int(mapbyteLen) - if intMapbyteLen < 0 { - return ErrInvalidLengthApi - } - postbytesIndex := iNdEx + intMapbyteLen - if postbytesIndex < 0 { - return ErrInvalidLengthApi - } - if postbytesIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = make([]byte, mapbyteLen) - copy(mapvalue, dAtA[iNdEx:postbytesIndex]) - iNdEx = postbytesIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.SecretData[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +func (*StatusRequest) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListEventsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } +func (x *StatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListEventsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListEventsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Filter == nil { - m.Filter = &EventFilter{} - } - if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF + return ms } - return nil + return mi.MessageOf(x) } -func (m *ListEventsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListEventsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListEventsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Events = append(m.Events, &v1alpha11.Event{}) - if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead. +func (*StatusRequest) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{21} } -func (m *ListVolumesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListVolumesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListVolumesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Filter == nil { - m.Filter = &VolumeFilter{} - } - if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListVolumesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListVolumesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListVolumesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Volumes = append(m.Volumes, &Volume{}) - if err := m.Volumes[len(m.Volumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +type StatusResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + VolumeClassStatus []*VolumeClassStatus `protobuf:"bytes,1,rep,name=volume_class_status,json=volumeClassStatus,proto3" json:"volume_class_status,omitempty"` } -func (m *CreateVolumeRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateVolumeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateVolumeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volume", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Volume == nil { - m.Volume = &Volume{} - } - if err := m.Volume.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *StatusResponse) Reset() { + *x = StatusResponse{} + mi := &file_volume_v1alpha1_api_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ExpandVolumeRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExpandVolumeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExpandVolumeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resources == nil { - m.Resources = &VolumeResources{} - } - if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *StatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateVolumeResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateVolumeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateVolumeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volume", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Volume == nil { - m.Volume = &Volume{} - } - if err := m.Volume.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExpandVolumeResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExpandVolumeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExpandVolumeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +func (*StatusResponse) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteVolumeRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteVolumeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteVolumeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy +func (x *StatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_volume_v1alpha1_api_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return mi.MessageOf(x) } -func (m *DeleteVolumeResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteVolumeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteVolumeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead. +func (*StatusResponse) Descriptor() ([]byte, []int) { + return file_volume_v1alpha1_api_proto_rawDescGZIP(), []int{22} } -func (m *StatusRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatusRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *StatusResponse) GetVolumeClassStatus() []*VolumeClassStatus { + if x != nil { + return x.VolumeClassStatus } return nil } -func (m *StatusResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatusResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeClassStatus", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeClassStatus = append(m.VolumeClassStatus, &VolumeClassStatus{}) - if err := m.VolumeClassStatus[len(m.VolumeClassStatus)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipApi(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthApi - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupApi - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthApi - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +var File_volume_v1alpha1_api_proto protoreflect.FileDescriptor + +var file_volume_v1alpha1_api_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x76, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x17, 0x6d, 0x65, + 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0xb9, 0x01, 0x0a, 0x0c, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x57, 0x0a, 0x0e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x1a, 0x40, 0x0a, 0x12, 0x4c, 0x61, 0x62, + 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x87, 0x02, 0x0a, 0x0b, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x56, 0x0a, 0x0e, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x66, 0x72, + 0x6f, 0x6d, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x24, 0x0a, + 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x54, 0x6f, 0x54, + 0x69, 0x6d, 0x65, 0x1a, 0x40, 0x0a, 0x12, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x36, 0x0a, 0x0f, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0xa1, 0x01, + 0x0a, 0x0e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, + 0x12, 0x50, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x1a, 0x3d, 0x0a, 0x0f, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0xb9, 0x01, 0x0a, 0x0a, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x70, 0x65, 0x63, + 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x09, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x3f, 0x0a, 0x0a, + 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, + 0x63, 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x79, 0x0a, + 0x0c, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x32, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x76, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x35, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0xab, 0x01, 0x0a, 0x06, 0x56, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2f, + 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, + 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x3f, 0x0a, 0x17, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, + 0x73, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x70, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, + 0x74, 0x70, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6f, 0x70, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x04, 0x69, 0x6f, 0x70, 0x73, 0x22, 0x6f, 0x0a, 0x0b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4c, 0x0a, 0x0c, 0x63, 0x61, + 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x28, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x61, + 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x70, 0x0a, 0x11, 0x56, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3f, 0x0a, + 0x0c, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x52, 0x0b, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x1a, + 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xdb, 0x02, 0x0a, 0x0c, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, + 0x72, 0x69, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x72, 0x69, + 0x76, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x4d, 0x0a, 0x0a, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2d, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2e, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x0b, 0x73, 0x65, + 0x63, 0x72, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2d, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2e, 0x53, + 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, + 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3d, 0x0a, 0x0f, 0x53, 0x65, 0x63, + 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x49, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, + 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x22, 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x4b, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, + 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x66, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x48, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x07, + 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x07, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x22, + 0x46, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, + 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x72, 0x0a, 0x13, 0x45, 0x78, 0x70, 0x61, 0x6e, + 0x64, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, + 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x3e, 0x0a, 0x09, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0x47, 0x0a, 0x14, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x06, 0x76, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x0a, 0x13, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, + 0x22, 0x16, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x64, 0x0a, 0x0e, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x13, 0x76, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x11, 0x76, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2a, + 0x49, 0x0a, 0x0b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, + 0x0a, 0x0e, 0x56, 0x4f, 0x4c, 0x55, 0x4d, 0x45, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, + 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x4f, 0x4c, 0x55, 0x4d, 0x45, 0x5f, 0x41, 0x56, 0x41, + 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x56, 0x4f, 0x4c, 0x55, + 0x4d, 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x32, 0xae, 0x04, 0x0a, 0x0d, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x57, 0x0a, 0x0a, + 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x22, 0x2e, 0x76, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, + 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x5d, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x12, 0x24, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x5d, 0x0a, 0x0c, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x12, 0x24, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x5d, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, + 0x24, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, + 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1e, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x3b, 0x5a, 0x39, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x72, 0x6f, 0x6e, 0x63, 0x6f, + 0x72, 0x65, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x69, 0x72, 0x6f, 0x6e, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x69, 0x72, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2f, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group") + file_volume_v1alpha1_api_proto_rawDescOnce sync.Once + file_volume_v1alpha1_api_proto_rawDescData = file_volume_v1alpha1_api_proto_rawDesc ) + +func file_volume_v1alpha1_api_proto_rawDescGZIP() []byte { + file_volume_v1alpha1_api_proto_rawDescOnce.Do(func() { + file_volume_v1alpha1_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_volume_v1alpha1_api_proto_rawDescData) + }) + return file_volume_v1alpha1_api_proto_rawDescData +} + +var file_volume_v1alpha1_api_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_volume_v1alpha1_api_proto_msgTypes = make([]protoimpl.MessageInfo, 28) +var file_volume_v1alpha1_api_proto_goTypes = []any{ + (VolumeState)(0), // 0: volume.v1alpha1.VolumeState + (*VolumeFilter)(nil), // 1: volume.v1alpha1.VolumeFilter + (*EventFilter)(nil), // 2: volume.v1alpha1.EventFilter + (*VolumeResources)(nil), // 3: volume.v1alpha1.VolumeResources + (*EncryptionSpec)(nil), // 4: volume.v1alpha1.EncryptionSpec + (*VolumeSpec)(nil), // 5: volume.v1alpha1.VolumeSpec + (*VolumeStatus)(nil), // 6: volume.v1alpha1.VolumeStatus + (*Volume)(nil), // 7: volume.v1alpha1.Volume + (*VolumeClassCapabilities)(nil), // 8: volume.v1alpha1.VolumeClassCapabilities + (*VolumeClass)(nil), // 9: volume.v1alpha1.VolumeClass + (*VolumeClassStatus)(nil), // 10: volume.v1alpha1.VolumeClassStatus + (*VolumeAccess)(nil), // 11: volume.v1alpha1.VolumeAccess + (*ListEventsRequest)(nil), // 12: volume.v1alpha1.ListEventsRequest + (*ListEventsResponse)(nil), // 13: volume.v1alpha1.ListEventsResponse + (*ListVolumesRequest)(nil), // 14: volume.v1alpha1.ListVolumesRequest + (*ListVolumesResponse)(nil), // 15: volume.v1alpha1.ListVolumesResponse + (*CreateVolumeRequest)(nil), // 16: volume.v1alpha1.CreateVolumeRequest + (*ExpandVolumeRequest)(nil), // 17: volume.v1alpha1.ExpandVolumeRequest + (*CreateVolumeResponse)(nil), // 18: volume.v1alpha1.CreateVolumeResponse + (*ExpandVolumeResponse)(nil), // 19: volume.v1alpha1.ExpandVolumeResponse + (*DeleteVolumeRequest)(nil), // 20: volume.v1alpha1.DeleteVolumeRequest + (*DeleteVolumeResponse)(nil), // 21: volume.v1alpha1.DeleteVolumeResponse + (*StatusRequest)(nil), // 22: volume.v1alpha1.StatusRequest + (*StatusResponse)(nil), // 23: volume.v1alpha1.StatusResponse + nil, // 24: volume.v1alpha1.VolumeFilter.LabelSelectorEntry + nil, // 25: volume.v1alpha1.EventFilter.LabelSelectorEntry + nil, // 26: volume.v1alpha1.EncryptionSpec.SecretDataEntry + nil, // 27: volume.v1alpha1.VolumeAccess.AttributesEntry + nil, // 28: volume.v1alpha1.VolumeAccess.SecretDataEntry + (*v1alpha1.ObjectMetadata)(nil), // 29: meta.v1alpha1.ObjectMetadata + (*v1alpha11.Event)(nil), // 30: event.v1alpha1.Event +} +var file_volume_v1alpha1_api_proto_depIdxs = []int32{ + 24, // 0: volume.v1alpha1.VolumeFilter.label_selector:type_name -> volume.v1alpha1.VolumeFilter.LabelSelectorEntry + 25, // 1: volume.v1alpha1.EventFilter.label_selector:type_name -> volume.v1alpha1.EventFilter.LabelSelectorEntry + 26, // 2: volume.v1alpha1.EncryptionSpec.secret_data:type_name -> volume.v1alpha1.EncryptionSpec.SecretDataEntry + 3, // 3: volume.v1alpha1.VolumeSpec.resources:type_name -> volume.v1alpha1.VolumeResources + 4, // 4: volume.v1alpha1.VolumeSpec.encryption:type_name -> volume.v1alpha1.EncryptionSpec + 0, // 5: volume.v1alpha1.VolumeStatus.state:type_name -> volume.v1alpha1.VolumeState + 11, // 6: volume.v1alpha1.VolumeStatus.access:type_name -> volume.v1alpha1.VolumeAccess + 29, // 7: volume.v1alpha1.Volume.metadata:type_name -> meta.v1alpha1.ObjectMetadata + 5, // 8: volume.v1alpha1.Volume.spec:type_name -> volume.v1alpha1.VolumeSpec + 6, // 9: volume.v1alpha1.Volume.status:type_name -> volume.v1alpha1.VolumeStatus + 8, // 10: volume.v1alpha1.VolumeClass.capabilities:type_name -> volume.v1alpha1.VolumeClassCapabilities + 9, // 11: volume.v1alpha1.VolumeClassStatus.volume_class:type_name -> volume.v1alpha1.VolumeClass + 27, // 12: volume.v1alpha1.VolumeAccess.attributes:type_name -> volume.v1alpha1.VolumeAccess.AttributesEntry + 28, // 13: volume.v1alpha1.VolumeAccess.secret_data:type_name -> volume.v1alpha1.VolumeAccess.SecretDataEntry + 2, // 14: volume.v1alpha1.ListEventsRequest.filter:type_name -> volume.v1alpha1.EventFilter + 30, // 15: volume.v1alpha1.ListEventsResponse.events:type_name -> event.v1alpha1.Event + 1, // 16: volume.v1alpha1.ListVolumesRequest.filter:type_name -> volume.v1alpha1.VolumeFilter + 7, // 17: volume.v1alpha1.ListVolumesResponse.volumes:type_name -> volume.v1alpha1.Volume + 7, // 18: volume.v1alpha1.CreateVolumeRequest.volume:type_name -> volume.v1alpha1.Volume + 3, // 19: volume.v1alpha1.ExpandVolumeRequest.resources:type_name -> volume.v1alpha1.VolumeResources + 7, // 20: volume.v1alpha1.CreateVolumeResponse.volume:type_name -> volume.v1alpha1.Volume + 10, // 21: volume.v1alpha1.StatusResponse.volume_class_status:type_name -> volume.v1alpha1.VolumeClassStatus + 12, // 22: volume.v1alpha1.VolumeRuntime.ListEvents:input_type -> volume.v1alpha1.ListEventsRequest + 14, // 23: volume.v1alpha1.VolumeRuntime.ListVolumes:input_type -> volume.v1alpha1.ListVolumesRequest + 16, // 24: volume.v1alpha1.VolumeRuntime.CreateVolume:input_type -> volume.v1alpha1.CreateVolumeRequest + 17, // 25: volume.v1alpha1.VolumeRuntime.ExpandVolume:input_type -> volume.v1alpha1.ExpandVolumeRequest + 20, // 26: volume.v1alpha1.VolumeRuntime.DeleteVolume:input_type -> volume.v1alpha1.DeleteVolumeRequest + 22, // 27: volume.v1alpha1.VolumeRuntime.Status:input_type -> volume.v1alpha1.StatusRequest + 13, // 28: volume.v1alpha1.VolumeRuntime.ListEvents:output_type -> volume.v1alpha1.ListEventsResponse + 15, // 29: volume.v1alpha1.VolumeRuntime.ListVolumes:output_type -> volume.v1alpha1.ListVolumesResponse + 18, // 30: volume.v1alpha1.VolumeRuntime.CreateVolume:output_type -> volume.v1alpha1.CreateVolumeResponse + 19, // 31: volume.v1alpha1.VolumeRuntime.ExpandVolume:output_type -> volume.v1alpha1.ExpandVolumeResponse + 21, // 32: volume.v1alpha1.VolumeRuntime.DeleteVolume:output_type -> volume.v1alpha1.DeleteVolumeResponse + 23, // 33: volume.v1alpha1.VolumeRuntime.Status:output_type -> volume.v1alpha1.StatusResponse + 28, // [28:34] is the sub-list for method output_type + 22, // [22:28] is the sub-list for method input_type + 22, // [22:22] is the sub-list for extension type_name + 22, // [22:22] is the sub-list for extension extendee + 0, // [0:22] is the sub-list for field type_name +} + +func init() { file_volume_v1alpha1_api_proto_init() } +func file_volume_v1alpha1_api_proto_init() { + if File_volume_v1alpha1_api_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_volume_v1alpha1_api_proto_rawDesc, + NumEnums: 1, + NumMessages: 28, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_volume_v1alpha1_api_proto_goTypes, + DependencyIndexes: file_volume_v1alpha1_api_proto_depIdxs, + EnumInfos: file_volume_v1alpha1_api_proto_enumTypes, + MessageInfos: file_volume_v1alpha1_api_proto_msgTypes, + }.Build() + File_volume_v1alpha1_api_proto = out.File + file_volume_v1alpha1_api_proto_rawDesc = nil + file_volume_v1alpha1_api_proto_goTypes = nil + file_volume_v1alpha1_api_proto_depIdxs = nil +} diff --git a/iri/apis/volume/v1alpha1/api.proto b/iri/apis/volume/v1alpha1/api.proto index 285dc4e1a..8326e4693 100644 --- a/iri/apis/volume/v1alpha1/api.proto +++ b/iri/apis/volume/v1alpha1/api.proto @@ -3,17 +3,8 @@ syntax = "proto3"; package volume.v1alpha1; option go_package = "github.com/ironcore-dev/ironcore/iri/apis/volume/v1alpha1"; -import "github.com/gogo/protobuf/gogoproto/gogo.proto"; -import "github.com/ironcore-dev/ironcore/iri/apis/meta/v1alpha1/api.proto"; -import "github.com/ironcore-dev/ironcore/iri/apis/event/v1alpha1/api.proto"; - -option (gogoproto.goproto_stringer_all) = false; -option (gogoproto.stringer_all) = true; -option (gogoproto.goproto_getters_all) = true; -option (gogoproto.marshaler_all) = true; -option (gogoproto.sizer_all) = true; -option (gogoproto.unmarshaler_all) = true; -option (gogoproto.goproto_unrecognized_all) = false; +import "meta/v1alpha1/api.proto"; +import "event/v1alpha1/api.proto"; service VolumeRuntime { rpc ListEvents(ListEventsRequest) returns (ListEventsResponse) {}; diff --git a/iri/apis/volume/v1alpha1/api_grpc.pb.go b/iri/apis/volume/v1alpha1/api_grpc.pb.go new file mode 100644 index 000000000..c985e3612 --- /dev/null +++ b/iri/apis/volume/v1alpha1/api_grpc.pb.go @@ -0,0 +1,312 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: volume/v1alpha1/api.proto + +package v1alpha1 + +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. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + VolumeRuntime_ListEvents_FullMethodName = "/volume.v1alpha1.VolumeRuntime/ListEvents" + VolumeRuntime_ListVolumes_FullMethodName = "/volume.v1alpha1.VolumeRuntime/ListVolumes" + VolumeRuntime_CreateVolume_FullMethodName = "/volume.v1alpha1.VolumeRuntime/CreateVolume" + VolumeRuntime_ExpandVolume_FullMethodName = "/volume.v1alpha1.VolumeRuntime/ExpandVolume" + VolumeRuntime_DeleteVolume_FullMethodName = "/volume.v1alpha1.VolumeRuntime/DeleteVolume" + VolumeRuntime_Status_FullMethodName = "/volume.v1alpha1.VolumeRuntime/Status" +) + +// VolumeRuntimeClient is the client API for VolumeRuntime 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 VolumeRuntimeClient interface { + ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) + ListVolumes(ctx context.Context, in *ListVolumesRequest, opts ...grpc.CallOption) (*ListVolumesResponse, error) + CreateVolume(ctx context.Context, in *CreateVolumeRequest, opts ...grpc.CallOption) (*CreateVolumeResponse, error) + ExpandVolume(ctx context.Context, in *ExpandVolumeRequest, opts ...grpc.CallOption) (*ExpandVolumeResponse, error) + DeleteVolume(ctx context.Context, in *DeleteVolumeRequest, opts ...grpc.CallOption) (*DeleteVolumeResponse, error) + Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) +} + +type volumeRuntimeClient struct { + cc grpc.ClientConnInterface +} + +func NewVolumeRuntimeClient(cc grpc.ClientConnInterface) VolumeRuntimeClient { + return &volumeRuntimeClient{cc} +} + +func (c *volumeRuntimeClient) ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListEventsResponse) + err := c.cc.Invoke(ctx, VolumeRuntime_ListEvents_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *volumeRuntimeClient) ListVolumes(ctx context.Context, in *ListVolumesRequest, opts ...grpc.CallOption) (*ListVolumesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListVolumesResponse) + err := c.cc.Invoke(ctx, VolumeRuntime_ListVolumes_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *volumeRuntimeClient) CreateVolume(ctx context.Context, in *CreateVolumeRequest, opts ...grpc.CallOption) (*CreateVolumeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateVolumeResponse) + err := c.cc.Invoke(ctx, VolumeRuntime_CreateVolume_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *volumeRuntimeClient) ExpandVolume(ctx context.Context, in *ExpandVolumeRequest, opts ...grpc.CallOption) (*ExpandVolumeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ExpandVolumeResponse) + err := c.cc.Invoke(ctx, VolumeRuntime_ExpandVolume_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *volumeRuntimeClient) DeleteVolume(ctx context.Context, in *DeleteVolumeRequest, opts ...grpc.CallOption) (*DeleteVolumeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteVolumeResponse) + err := c.cc.Invoke(ctx, VolumeRuntime_DeleteVolume_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *volumeRuntimeClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(StatusResponse) + err := c.cc.Invoke(ctx, VolumeRuntime_Status_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// VolumeRuntimeServer is the server API for VolumeRuntime service. +// All implementations must embed UnimplementedVolumeRuntimeServer +// for forward compatibility. +type VolumeRuntimeServer interface { + ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error) + ListVolumes(context.Context, *ListVolumesRequest) (*ListVolumesResponse, error) + CreateVolume(context.Context, *CreateVolumeRequest) (*CreateVolumeResponse, error) + ExpandVolume(context.Context, *ExpandVolumeRequest) (*ExpandVolumeResponse, error) + DeleteVolume(context.Context, *DeleteVolumeRequest) (*DeleteVolumeResponse, error) + Status(context.Context, *StatusRequest) (*StatusResponse, error) + mustEmbedUnimplementedVolumeRuntimeServer() +} + +// UnimplementedVolumeRuntimeServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedVolumeRuntimeServer struct{} + +func (UnimplementedVolumeRuntimeServer) ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented") +} +func (UnimplementedVolumeRuntimeServer) ListVolumes(context.Context, *ListVolumesRequest) (*ListVolumesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListVolumes not implemented") +} +func (UnimplementedVolumeRuntimeServer) CreateVolume(context.Context, *CreateVolumeRequest) (*CreateVolumeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateVolume not implemented") +} +func (UnimplementedVolumeRuntimeServer) ExpandVolume(context.Context, *ExpandVolumeRequest) (*ExpandVolumeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ExpandVolume not implemented") +} +func (UnimplementedVolumeRuntimeServer) DeleteVolume(context.Context, *DeleteVolumeRequest) (*DeleteVolumeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteVolume not implemented") +} +func (UnimplementedVolumeRuntimeServer) Status(context.Context, *StatusRequest) (*StatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Status not implemented") +} +func (UnimplementedVolumeRuntimeServer) mustEmbedUnimplementedVolumeRuntimeServer() {} +func (UnimplementedVolumeRuntimeServer) testEmbeddedByValue() {} + +// UnsafeVolumeRuntimeServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to VolumeRuntimeServer will +// result in compilation errors. +type UnsafeVolumeRuntimeServer interface { + mustEmbedUnimplementedVolumeRuntimeServer() +} + +func RegisterVolumeRuntimeServer(s grpc.ServiceRegistrar, srv VolumeRuntimeServer) { + // If the following call pancis, it indicates UnimplementedVolumeRuntimeServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&VolumeRuntime_ServiceDesc, srv) +} + +func _VolumeRuntime_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListEventsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VolumeRuntimeServer).ListEvents(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: VolumeRuntime_ListEvents_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VolumeRuntimeServer).ListEvents(ctx, req.(*ListEventsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VolumeRuntime_ListVolumes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListVolumesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VolumeRuntimeServer).ListVolumes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: VolumeRuntime_ListVolumes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VolumeRuntimeServer).ListVolumes(ctx, req.(*ListVolumesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VolumeRuntime_CreateVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateVolumeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VolumeRuntimeServer).CreateVolume(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: VolumeRuntime_CreateVolume_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VolumeRuntimeServer).CreateVolume(ctx, req.(*CreateVolumeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VolumeRuntime_ExpandVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExpandVolumeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VolumeRuntimeServer).ExpandVolume(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: VolumeRuntime_ExpandVolume_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VolumeRuntimeServer).ExpandVolume(ctx, req.(*ExpandVolumeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VolumeRuntime_DeleteVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteVolumeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VolumeRuntimeServer).DeleteVolume(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: VolumeRuntime_DeleteVolume_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VolumeRuntimeServer).DeleteVolume(ctx, req.(*DeleteVolumeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VolumeRuntime_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VolumeRuntimeServer).Status(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: VolumeRuntime_Status_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VolumeRuntimeServer).Status(ctx, req.(*StatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// VolumeRuntime_ServiceDesc is the grpc.ServiceDesc for VolumeRuntime service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var VolumeRuntime_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "volume.v1alpha1.VolumeRuntime", + HandlerType: (*VolumeRuntimeServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListEvents", + Handler: _VolumeRuntime_ListEvents_Handler, + }, + { + MethodName: "ListVolumes", + Handler: _VolumeRuntime_ListVolumes_Handler, + }, + { + MethodName: "CreateVolume", + Handler: _VolumeRuntime_CreateVolume_Handler, + }, + { + MethodName: "ExpandVolume", + Handler: _VolumeRuntime_ExpandVolume_Handler, + }, + { + MethodName: "DeleteVolume", + Handler: _VolumeRuntime_DeleteVolume_Handler, + }, + { + MethodName: "Status", + Handler: _VolumeRuntime_Status_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "volume/v1alpha1/api.proto", +} diff --git a/iri/testing/bucket/fake.go b/iri/testing/bucket/fake.go index 5fa48c9c2..eb9e443ec 100644 --- a/iri/testing/bucket/fake.go +++ b/iri/testing/bucket/fake.go @@ -8,6 +8,8 @@ import ( "sync" "time" + "google.golang.org/protobuf/proto" + irievent "github.com/ironcore-dev/ironcore/iri/apis/event/v1alpha1" "k8s.io/apimachinery/pkg/labels" @@ -149,8 +151,8 @@ func (r *FakeRuntimeService) ListBucketClasses(ctx context.Context, req *iri.Lis var res []*iri.BucketClass for _, b := range r.BucketClasses { - bucketClass := b.BucketClass - res = append(res, &bucketClass) + bucketClass := proto.Clone(&b.BucketClass).(*iri.BucketClass) + res = append(res, bucketClass) } return &iri.ListBucketClassesResponse{BucketClasses: res}, nil } diff --git a/iri/testing/machine/fake.go b/iri/testing/machine/fake.go index 3ff0ce8a1..eb5b4231a 100644 --- a/iri/testing/machine/fake.go +++ b/iri/testing/machine/fake.go @@ -11,6 +11,8 @@ import ( "sync" "time" + "google.golang.org/protobuf/proto" + irievent "github.com/ironcore-dev/ironcore/iri/apis/event/v1alpha1" iri "github.com/ironcore-dev/ironcore/iri/apis/machine/v1alpha1" "google.golang.org/grpc/codes" @@ -317,8 +319,8 @@ func (r *FakeRuntimeService) Status(ctx context.Context, req *iri.StatusRequest) var res []*iri.MachineClassStatus for _, m := range r.MachineClassStatus { - machineClassStatus := m.MachineClassStatus - res = append(res, &machineClassStatus) + machineClassStatus := proto.Clone(&m.MachineClassStatus).(*iri.MachineClassStatus) + res = append(res, machineClassStatus) } return &iri.StatusResponse{MachineClassStatus: res}, nil } diff --git a/iri/testing/volume/fake.go b/iri/testing/volume/fake.go index 724df0a51..a1772e6f0 100644 --- a/iri/testing/volume/fake.go +++ b/iri/testing/volume/fake.go @@ -8,6 +8,8 @@ import ( "sync" "time" + "google.golang.org/protobuf/proto" + "github.com/ironcore-dev/ironcore/broker/common/idgen" irievent "github.com/ironcore-dev/ironcore/iri/apis/event/v1alpha1" iri "github.com/ironcore-dev/ironcore/iri/apis/volume/v1alpha1" @@ -166,8 +168,8 @@ func (r *FakeRuntimeService) Status(ctx context.Context, req *iri.StatusRequest) var res []*iri.VolumeClassStatus for _, m := range r.VolumeClassesStatus { - volumeClassStatus := m.VolumeClassStatus - res = append(res, &volumeClassStatus) + volumeClassStatus := proto.Clone(&m.VolumeClassStatus).(*iri.VolumeClassStatus) + res = append(res, volumeClassStatus) } return &iri.StatusResponse{VolumeClassStatus: res}, nil } diff --git a/irictl-machine/tableconverters/status.go b/irictl-machine/tableconverters/status.go index c8cd8d3cb..924445f38 100644 --- a/irictl-machine/tableconverters/status.go +++ b/irictl-machine/tableconverters/status.go @@ -24,7 +24,7 @@ var ( return api.Row{ status.MachineClass.Name, resource.NewMilliQuantity(status.MachineClass.Capabilities.CpuMillis, resource.DecimalSI).String(), - resource.NewQuantity(int64(status.MachineClass.Capabilities.MemoryBytes), resource.DecimalSI).String(), + resource.NewQuantity(status.MachineClass.Capabilities.MemoryBytes, resource.DecimalSI).String(), resource.NewQuantity(status.Quantity, resource.DecimalSI).String(), }, nil }), diff --git a/poollet/bucketpoollet/bcm/generic.go b/poollet/bucketpoollet/bcm/generic.go index 8c8eab5d1..2c98ff884 100644 --- a/poollet/bucketpoollet/bcm/generic.go +++ b/poollet/bucketpoollet/bcm/generic.go @@ -94,8 +94,7 @@ func (g *Generic) GetBucketClassFor(ctx context.Context, name string, caps *iri. case 0: return nil, ErrNoMatchingBucketClass case 1: - class := *byCaps[0] - return &class, nil + return byCaps[0], nil default: return nil, ErrAmbiguousMatchingBucketClass } diff --git a/poollet/bucketpoollet/controllers/bucket_controller.go b/poollet/bucketpoollet/controllers/bucket_controller.go index c79863e22..c54130d30 100644 --- a/poollet/bucketpoollet/controllers/bucket_controller.go +++ b/poollet/bucketpoollet/controllers/bucket_controller.go @@ -209,14 +209,14 @@ func (r *BucketReconciler) delete(ctx context.Context, log logr.Logger, bucket * return ctrl.Result{}, nil } -func getIRIBucketClassCapabilities(bucketClass *storagev1alpha1.BucketClass) (*iri.BucketClassCapabilities, error) { +func getIRIBucketClassCapabilities(bucketClass *storagev1alpha1.BucketClass) *iri.BucketClassCapabilities { tps := bucketClass.Capabilities.TPS() iops := bucketClass.Capabilities.IOPS() return &iri.BucketClassCapabilities{ Tps: tps.Value(), Iops: iops.Value(), - }, nil + } } func (r *BucketReconciler) prepareIRIBucketMetadata(bucket *storagev1alpha1.Bucket) *irimeta.ObjectMetadata { @@ -239,10 +239,7 @@ func (r *BucketReconciler) prepareIRIBucketClass(ctx context.Context, bucket *st return "", false, nil } - caps, err := getIRIBucketClassCapabilities(bucketClass) - if err != nil { - return "", false, fmt.Errorf("error getting iri bucket class capabilities: %w", err) - } + caps := getIRIBucketClassCapabilities(bucketClass) class, err := r.BucketClassMapper.GetBucketClassFor(ctx, bucketClassName, caps) if err != nil { diff --git a/poollet/bucketpoollet/controllers/bucketpool_controller.go b/poollet/bucketpoollet/controllers/bucketpool_controller.go index f5c156065..5389f8af1 100644 --- a/poollet/bucketpoollet/controllers/bucketpool_controller.go +++ b/poollet/bucketpoollet/controllers/bucketpool_controller.go @@ -54,13 +54,10 @@ func (r *BucketPoolReconciler) delete(ctx context.Context, log logr.Logger, buck return ctrl.Result{}, nil } -func (r *BucketPoolReconciler) supportsBucketClass(ctx context.Context, log logr.Logger, bucketClass *storagev1alpha1.BucketClass) (bool, error) { - iriCapabilities, err := getIRIBucketClassCapabilities(bucketClass) - if err != nil { - return false, fmt.Errorf("error getting iri bucket class capabilities: %w", err) - } +func (r *BucketPoolReconciler) supportsBucketClass(ctx context.Context, bucketClass *storagev1alpha1.BucketClass) (bool, error) { + iriCapabilities := getIRIBucketClassCapabilities(bucketClass) - _, err = r.BucketClassMapper.GetBucketClassFor(ctx, bucketClass.Name, iriCapabilities) + _, err := r.BucketClassMapper.GetBucketClassFor(ctx, bucketClass.Name, iriCapabilities) if err != nil { if !errors.Is(err, bcm.ErrNoMatchingBucketClass) && !errors.Is(err, bcm.ErrAmbiguousMatchingBucketClass) { return false, fmt.Errorf("error getting bucket class for %s: %w", bucketClass.Name, err) @@ -82,7 +79,7 @@ func (r *BucketPoolReconciler) reconcile(ctx context.Context, log logr.Logger, b log.V(1).Info("Determining supported bucket classes") var supported []corev1.LocalObjectReference for _, bucketClass := range bucketClassList.Items { - ok, err := r.supportsBucketClass(ctx, log, &bucketClass) + ok, err := r.supportsBucketClass(ctx, &bucketClass) if err != nil { return ctrl.Result{}, fmt.Errorf("error checking whether bucket class %s is supported: %w", bucketClass.Name, err) } diff --git a/poollet/irievent/generator.go b/poollet/irievent/generator.go index 6650fdd8a..9faf86c11 100644 --- a/poollet/irievent/generator.go +++ b/poollet/irievent/generator.go @@ -14,8 +14,8 @@ import ( "time" "github.com/go-logr/logr" - "github.com/gogo/protobuf/proto" irimeta "github.com/ironcore-dev/ironcore/iri/apis/meta/v1alpha1" + "google.golang.org/protobuf/proto" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/apiserver/pkg/server/healthz" ctrl "sigs.k8s.io/controller-runtime" @@ -52,7 +52,6 @@ func (m oldNewMap[O]) setCurrent(current []O) { } for _, item := range current { - item := item id := m.id(item) if r, ok := m[id]; ok { r.Current = &item diff --git a/poollet/machinepoollet/controllers/machine_controller.go b/poollet/machinepoollet/controllers/machine_controller.go index ee6c778cc..65495a2f7 100644 --- a/poollet/machinepoollet/controllers/machine_controller.go +++ b/poollet/machinepoollet/controllers/machine_controller.go @@ -737,10 +737,7 @@ func (r *MachineReconciler) prepareIRIMachineClass(ctx context.Context, machine return "", false, nil } - caps, err := getIRIMachineClassCapabilities(machineClass) - if err != nil { - return "", false, fmt.Errorf("error getting iri machine class capabilities: %w", err) - } + caps := getIRIMachineClassCapabilities(machineClass) class, _, err := r.MachineClassMapper.GetMachineClassFor(ctx, machineClassName, caps) if err != nil { @@ -749,14 +746,14 @@ func (r *MachineReconciler) prepareIRIMachineClass(ctx context.Context, machine return class.Name, true, nil } -func getIRIMachineClassCapabilities(machineClass *computev1alpha1.MachineClass) (*iri.MachineClassCapabilities, error) { +func getIRIMachineClassCapabilities(machineClass *computev1alpha1.MachineClass) *iri.MachineClassCapabilities { cpu := machineClass.Capabilities.CPU() memory := machineClass.Capabilities.Memory() return &iri.MachineClassCapabilities{ CpuMillis: cpu.MilliValue(), MemoryBytes: memory.Value(), - }, nil + } } func (r *MachineReconciler) prepareIRIIgnitionData(ctx context.Context, machine *computev1alpha1.Machine, ignitionRef *commonv1alpha1.SecretKeySelector) ([]byte, bool, error) { diff --git a/poollet/machinepoollet/controllers/machine_controller_networkinterface.go b/poollet/machinepoollet/controllers/machine_controller_networkinterface.go index 5e76a4b58..13536e6c4 100644 --- a/poollet/machinepoollet/controllers/machine_controller_networkinterface.go +++ b/poollet/machinepoollet/controllers/machine_controller_networkinterface.go @@ -9,7 +9,6 @@ import ( "fmt" "github.com/go-logr/logr" - "github.com/gogo/protobuf/proto" commonv1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" computev1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" ipamv1alpha1 "github.com/ironcore-dev/ironcore/api/ipam/v1alpha1" @@ -21,6 +20,7 @@ import ( utilslices "github.com/ironcore-dev/ironcore/utils/slices" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/poollet/machinepoollet/controllers/machine_controller_test.go b/poollet/machinepoollet/controllers/machine_controller_test.go index ce3439161..c5f75457b 100644 --- a/poollet/machinepoollet/controllers/machine_controller_test.go +++ b/poollet/machinepoollet/controllers/machine_controller_test.go @@ -6,7 +6,7 @@ package controllers_test import ( "fmt" - "github.com/gogo/protobuf/proto" + . "github.com/afritzler/protoequal" commonv1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" computev1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" @@ -18,6 +18,7 @@ import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" . "github.com/onsi/gomega/gstruct" + "google.golang.org/protobuf/proto" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" @@ -40,6 +41,7 @@ var _ = Describe("MachineController", func() { }, } Expect(k8sClient.Create(ctx, network)).To(Succeed()) + DeferCleanup(k8sClient.Delete, network) By("patching the network to be available") Eventually(UpdateStatus(network, func() { @@ -55,6 +57,7 @@ var _ = Describe("MachineController", func() { Spec: storagev1alpha1.VolumeSpec{}, } Expect(k8sClient.Create(ctx, volume)).To(Succeed()) + DeferCleanup(k8sClient.Delete, volume) By("patching the volume to be available") Eventually(UpdateStatus(volume, func() { @@ -104,6 +107,7 @@ var _ = Describe("MachineController", func() { }, } Expect(k8sClient.Create(ctx, machine)).To(Succeed()) + DeferCleanup(k8sClient.Delete, machine) By("waiting for the runtime to report the machine, volume and network interface") Eventually(srv).Should(SatisfyAll( @@ -116,19 +120,19 @@ var _ = Describe("MachineController", func() { Expect(iriMachine.Metadata.Labels).To(HaveKeyWithValue(machinepoolletv1alpha1.DownwardAPILabel(fooDownwardAPILabel), fooAnnotationValue)) Expect(iriMachine.Spec.Class).To(Equal(mc.Name)) Expect(iriMachine.Spec.Power).To(Equal(iri.Power_POWER_ON)) - Expect(iriMachine.Spec.Volumes).To(ConsistOf(&iri.Volume{ + Expect(iriMachine.Spec.Volumes).To(ConsistOf(ProtoEqual(&iri.Volume{ Name: "primary", Device: "oda", Connection: &iri.VolumeConnection{ Driver: "test", Handle: "testhandle", }, - })) - Expect(iriMachine.Spec.NetworkInterfaces).To(ConsistOf(&iri.NetworkInterface{ + }))) + Expect(iriMachine.Spec.NetworkInterfaces).To(ConsistOf(ProtoEqual(&iri.NetworkInterface{ Name: "primary", NetworkId: "foo", Ips: []string{"10.0.0.11"}, - })) + }))) By("waiting for the ironcore machine status to be up-to-date") expectedMachineID := machinepoolletmachine.MakeID(testingmachine.FakeRuntimeName, iriMachine.Metadata.Id) @@ -182,6 +186,7 @@ var _ = Describe("MachineController", func() { }, } Expect(k8sClient.Create(ctx, network)).To(Succeed()) + DeferCleanup(k8sClient.Delete, network) By("patching the network to be available") Eventually(UpdateStatus(network, func() { @@ -202,6 +207,7 @@ var _ = Describe("MachineController", func() { }, } Expect(k8sClient.Create(ctx, nic)).To(Succeed()) + DeferCleanup(k8sClient.Delete, nic) By("creating a volume") volume := &storagev1alpha1.Volume{ @@ -212,6 +218,7 @@ var _ = Describe("MachineController", func() { Spec: storagev1alpha1.VolumeSpec{}, } Expect(k8sClient.Create(ctx, volume)).To(Succeed()) + DeferCleanup(k8sClient.Delete, volume) By("patching the volume to be available") Eventually(UpdateStatus(volume, func() { @@ -254,6 +261,7 @@ var _ = Describe("MachineController", func() { }, } Expect(k8sClient.Create(ctx, machine)).To(Succeed()) + DeferCleanup(k8sClient.Delete, machine) By("waiting for the runtime to report the machine, volume and network interface") Eventually(srv).Should(SatisfyAll( @@ -265,19 +273,19 @@ var _ = Describe("MachineController", func() { Expect(iriMachine.Metadata.Labels).To(HaveKeyWithValue(machinepoolletv1alpha1.DownwardAPILabel(fooDownwardAPILabel), fooAnnotationValue)) Expect(iriMachine.Spec.Class).To(Equal(mc.Name)) Expect(iriMachine.Spec.Power).To(Equal(iri.Power_POWER_ON)) - Expect(iriMachine.Spec.Volumes).To(ConsistOf(&iri.Volume{ + Expect(iriMachine.Spec.Volumes).To(ConsistOf(ProtoEqual(&iri.Volume{ Name: "primary", Device: "oda", Connection: &iri.VolumeConnection{ Driver: "test", Handle: "testhandle", }, - })) - Expect(iriMachine.Spec.NetworkInterfaces).To(ConsistOf(&iri.NetworkInterface{ + }))) + Expect(iriMachine.Spec.NetworkInterfaces).To(ConsistOf(ProtoEqual(&iri.NetworkInterface{ Name: "primary", NetworkId: "foo", Ips: []string{"10.0.0.1"}, - })) + }))) By("waiting for the ironcore machine status to be up-to-date") expectedMachineID := machinepoolletmachine.MakeID(testingmachine.FakeRuntimeName, iriMachine.Metadata.Id) @@ -348,6 +356,7 @@ var _ = Describe("MachineController", func() { }, } Expect(k8sClient.Create(ctx, machine)).To(Succeed()) + DeferCleanup(k8sClient.Delete, machine) By("waiting for the machine to be created") Eventually(srv).Should(HaveField("Machines", HaveLen(1))) @@ -378,6 +387,7 @@ var _ = Describe("MachineController", func() { }, } Expect(k8sClient.Create(ctx, machine)).To(Succeed()) + DeferCleanup(k8sClient.Delete, machine) By("waiting for the machine to be created") Eventually(srv).Should(HaveField("Machines", HaveLen(1))) @@ -430,6 +440,8 @@ var _ = Describe("MachineController", func() { }, } Expect(k8sClient.Create(ctx, machine)).To(Succeed()) + DeferCleanup(k8sClient.Delete, machine) + By("By getting ephimeral volume") volumeKey := types.NamespacedName{ Namespace: ns.Name, @@ -461,14 +473,14 @@ var _ = Describe("MachineController", func() { Expect(iriMachine.Metadata.Labels).To(HaveKeyWithValue(machinepoolletv1alpha1.DownwardAPILabel(fooDownwardAPILabel), fooAnnotationValue)) Expect(iriMachine.Spec.Class).To(Equal(mc.Name)) Expect(iriMachine.Spec.Power).To(Equal(iri.Power_POWER_ON)) - Expect(iriMachine.Spec.Volumes).To(ConsistOf(&iri.Volume{ + Expect(iriMachine.Spec.Volumes).To(ConsistOf(ProtoEqual(&iri.Volume{ Name: "primary", Device: "oda", Connection: &iri.VolumeConnection{ Driver: "test", Handle: "testhandle", }, - })) + }))) By("waiting for the ironcore machine status to be up-to-date") expectedMachineID := machinepoolletmachine.MakeID(testingmachine.FakeRuntimeName, iriMachine.Metadata.Id) diff --git a/poollet/machinepoollet/controllers/machine_controller_volume.go b/poollet/machinepoollet/controllers/machine_controller_volume.go index 42b559bc2..dcc09df96 100644 --- a/poollet/machinepoollet/controllers/machine_controller_volume.go +++ b/poollet/machinepoollet/controllers/machine_controller_volume.go @@ -9,7 +9,6 @@ import ( "fmt" "github.com/go-logr/logr" - "github.com/gogo/protobuf/proto" commonv1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" computev1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" @@ -19,6 +18,7 @@ import ( utilslices "github.com/ironcore-dev/ironcore/utils/slices" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/poollet/machinepoollet/controllers/machinepool_controller.go b/poollet/machinepoollet/controllers/machinepool_controller.go index eef77329f..faf89261e 100644 --- a/poollet/machinepoollet/controllers/machinepool_controller.go +++ b/poollet/machinepoollet/controllers/machinepool_controller.go @@ -67,11 +67,8 @@ func (r *MachinePoolReconciler) delete(ctx context.Context, log logr.Logger, mac return ctrl.Result{}, nil } -func (r *MachinePoolReconciler) supportsMachineClass(ctx context.Context, log logr.Logger, machineClass *computev1alpha1.MachineClass) (*iri.MachineClass, int64, error) { - iriCapabilities, err := getIRIMachineClassCapabilities(machineClass) - if err != nil { - return nil, 0, fmt.Errorf("error getting iri machine class capabilities: %w", err) - } +func (r *MachinePoolReconciler) supportsMachineClass(ctx context.Context, machineClass *computev1alpha1.MachineClass) (*iri.MachineClass, int64, error) { + iriCapabilities := getIRIMachineClassCapabilities(machineClass) class, quantity, err := r.MachineClassMapper.GetMachineClassFor(ctx, machineClass.Name, iriCapabilities) if err != nil { @@ -93,7 +90,7 @@ func (r *MachinePoolReconciler) calculateCapacity( capacity = corev1alpha1.ResourceList{} for _, machineClass := range machineClassList { - class, quantity, err := r.supportsMachineClass(ctx, log, &machineClass) + class, quantity, err := r.supportsMachineClass(ctx, &machineClass) if err != nil { return nil, nil, nil, fmt.Errorf("error checking whether machine class %s is supported: %w", machineClass.Name, err) } diff --git a/poollet/machinepoollet/controllers/machinepool_controller_test.go b/poollet/machinepoollet/controllers/machinepool_controller_test.go index 75c8a4419..d40dcf7c3 100644 --- a/poollet/machinepoollet/controllers/machinepool_controller_test.go +++ b/poollet/machinepoollet/controllers/machinepool_controller_test.go @@ -91,6 +91,7 @@ var _ = Describe("MachinePoolController", func() { }, } Expect(k8sClient.Create(ctx, machine)).To(Succeed(), "failed to create machine") + DeferCleanup(k8sClient.Delete, machine) By("checking if the allocatable resources are correct") Eventually(Object(machinePool)).Should(SatisfyAll( @@ -118,6 +119,7 @@ var _ = Describe("MachinePoolController", func() { }, } Expect(k8sClient.Create(ctx, machine2)).To(Succeed(), "failed to create test machine class") + DeferCleanup(k8sClient.Delete, machine2) By("checking if the allocatable resources are correct") Eventually(Object(machinePool)).Should(SatisfyAll( @@ -221,5 +223,4 @@ var _ = Describe("MachinePoolController", func() { ))), ) }) - }) diff --git a/poollet/machinepoollet/mcm/generic.go b/poollet/machinepoollet/mcm/generic.go index 78111bf9a..202adc35b 100644 --- a/poollet/machinepoollet/mcm/generic.go +++ b/poollet/machinepoollet/mcm/generic.go @@ -10,11 +10,11 @@ import ( "time" "github.com/go-logr/logr" - "github.com/gogo/protobuf/proto" "github.com/ironcore-dev/ironcore/iri/apis/machine" iri "github.com/ironcore-dev/ironcore/iri/apis/machine/v1alpha1" "github.com/ironcore-dev/ironcore/poollet/irievent" "golang.org/x/exp/maps" + "google.golang.org/protobuf/proto" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/apimachinery/pkg/util/wait" ctrl "sigs.k8s.io/controller-runtime" @@ -161,8 +161,7 @@ func (g *Generic) GetMachineClassFor(ctx context.Context, name string, caps *iri case 0: return nil, 0, ErrNoMatchingMachineClass case 1: - classStatus := *byCaps[0] - return classStatus.MachineClass, classStatus.Quantity, nil + return byCaps[0].MachineClass, byCaps[0].Quantity, nil default: return nil, 0, ErrAmbiguousMatchingMachineClass } diff --git a/poollet/volumepoollet/controllers/volume_controller.go b/poollet/volumepoollet/controllers/volume_controller.go index 571f0982f..890f7b671 100644 --- a/poollet/volumepoollet/controllers/volume_controller.go +++ b/poollet/volumepoollet/controllers/volume_controller.go @@ -210,14 +210,14 @@ func (r *VolumeReconciler) delete(ctx context.Context, log logr.Logger, volume * return ctrl.Result{}, nil } -func getIRIVolumeClassCapabilities(volumeClass *storagev1alpha1.VolumeClass) (*iri.VolumeClassCapabilities, error) { +func getIRIVolumeClassCapabilities(volumeClass *storagev1alpha1.VolumeClass) *iri.VolumeClassCapabilities { tps := volumeClass.Capabilities.TPS() iops := volumeClass.Capabilities.IOPS() return &iri.VolumeClassCapabilities{ Tps: tps.Value(), Iops: iops.Value(), - }, nil + } } func (r *VolumeReconciler) prepareIRIVolumeMetadata(volume *storagev1alpha1.Volume) *irimeta.ObjectMetadata { @@ -240,10 +240,7 @@ func (r *VolumeReconciler) prepareIRIVolumeClass(ctx context.Context, volume *st return "", false, nil } - caps, err := getIRIVolumeClassCapabilities(volumeClass) - if err != nil { - return "", false, fmt.Errorf("error getting iri volume class capabilities: %w", err) - } + caps := getIRIVolumeClassCapabilities(volumeClass) class, _, err := r.VolumeClassMapper.GetVolumeClassFor(ctx, volumeClassName, caps) if err != nil { @@ -275,12 +272,12 @@ func (r *VolumeReconciler) prepareIRIVolumeEncryption(ctx context.Context, volum }, true, nil } -func (r *VolumeReconciler) prepareIRIVolumeResources(_ context.Context, _ *storagev1alpha1.Volume, resources corev1alpha1.ResourceList) (*iri.VolumeResources, bool, error) { +func (r *VolumeReconciler) prepareIRIVolumeResources(resources corev1alpha1.ResourceList) *iri.VolumeResources { storageBytes := resources.Storage().Value() return &iri.VolumeResources{ StorageBytes: storageBytes, - }, true, nil + } } func (r *VolumeReconciler) prepareIRIVolume(ctx context.Context, log logr.Logger, volume *storagev1alpha1.Volume) (*iri.Volume, bool, error) { @@ -307,14 +304,7 @@ func (r *VolumeReconciler) prepareIRIVolume(ctx context.Context, log logr.Logger ok = false } - resources, resourcesOK, err := r.prepareIRIVolumeResources(ctx, volume, volume.Spec.Resources) - switch { - case err != nil: - errs = append(errs, fmt.Errorf("error preparing iri volume resources: %w", err)) - case !resourcesOK: - ok = false - } - + resources := r.prepareIRIVolumeResources(volume.Spec.Resources) metadata := r.prepareIRIVolumeMetadata(volume) if len(errs) > 0 { diff --git a/poollet/volumepoollet/controllers/volumepool_controller.go b/poollet/volumepoollet/controllers/volumepool_controller.go index 1e85715a5..fc146b990 100644 --- a/poollet/volumepoollet/controllers/volumepool_controller.go +++ b/poollet/volumepoollet/controllers/volumepool_controller.go @@ -61,11 +61,8 @@ func (r *VolumePoolReconciler) delete(ctx context.Context, log logr.Logger, volu return ctrl.Result{}, nil } -func (r *VolumePoolReconciler) supportsVolumeClass(ctx context.Context, log logr.Logger, volumeClass *storagev1alpha1.VolumeClass) (*iri.VolumeClass, *resource.Quantity, error) { - iriCapabilities, err := getIRIVolumeClassCapabilities(volumeClass) - if err != nil { - return nil, nil, fmt.Errorf("error getting iri volume class capabilities: %w", err) - } +func (r *VolumePoolReconciler) supportsVolumeClass(ctx context.Context, volumeClass *storagev1alpha1.VolumeClass) (*iri.VolumeClass, *resource.Quantity, error) { + iriCapabilities := getIRIVolumeClassCapabilities(volumeClass) class, quantity, err := r.VolumeClassMapper.GetVolumeClassFor(ctx, volumeClass.Name, iriCapabilities) if err != nil { @@ -87,7 +84,7 @@ func (r *VolumePoolReconciler) calculateCapacity( capacity = corev1alpha1.ResourceList{} for _, volumeClass := range volumeClassList { - class, quantity, err := r.supportsVolumeClass(ctx, log, &volumeClass) + class, quantity, err := r.supportsVolumeClass(ctx, &volumeClass) if err != nil { return nil, nil, nil, fmt.Errorf("error checking whether volume class %s is supported: %w", volumeClass.Name, err) } diff --git a/poollet/volumepoollet/vcm/generic.go b/poollet/volumepoollet/vcm/generic.go index cbd79e37d..45e35694a 100644 --- a/poollet/volumepoollet/vcm/generic.go +++ b/poollet/volumepoollet/vcm/generic.go @@ -10,11 +10,11 @@ import ( "time" "github.com/go-logr/logr" - "github.com/gogo/protobuf/proto" "github.com/ironcore-dev/ironcore/iri/apis/volume" iri "github.com/ironcore-dev/ironcore/iri/apis/volume/v1alpha1" "github.com/ironcore-dev/ironcore/poollet/irievent" "golang.org/x/exp/maps" + "google.golang.org/protobuf/proto" "k8s.io/apimachinery/pkg/api/resource" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/apimachinery/pkg/util/wait" @@ -149,8 +149,7 @@ func (g *Generic) GetVolumeClassFor(ctx context.Context, name string, caps *iri. case 0: return nil, nil, ErrNoMatchingVolumeClass case 1: - classStatus := *byCaps[0] - return classStatus.VolumeClass, resource.NewQuantity(classStatus.Quantity, resource.BinarySI), nil + return byCaps[0].VolumeClass, resource.NewQuantity(byCaps[0].Quantity, resource.BinarySI), nil default: return nil, nil, ErrAmbiguousMatchingVolumeClass } diff --git a/poollet/volumepoollet/vem/vem_test.go b/poollet/volumepoollet/vem/vem_test.go index 096c42a67..47fbb772b 100644 --- a/poollet/volumepoollet/vem/vem_test.go +++ b/poollet/volumepoollet/vem/vem_test.go @@ -12,7 +12,6 @@ import ( storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" irievent "github.com/ironcore-dev/ironcore/iri/apis/event/v1alpha1" "github.com/ironcore-dev/ironcore/iri/apis/meta/v1alpha1" - iri "github.com/ironcore-dev/ironcore/iri/apis/volume/v1alpha1" fakevolume "github.com/ironcore-dev/ironcore/iri/testing/volume" "github.com/ironcore-dev/ironcore/poollet/volumepoollet/controllers" diff --git a/utils/client/readercache.go b/utils/client/readercache.go index 5bdcb296b..855cc7010 100644 --- a/utils/client/readercache.go +++ b/utils/client/readercache.go @@ -54,17 +54,17 @@ func (c *ReaderCache) CanList(list client.ObjectList) (bool, error) { return ok, nil } -func (c *ReaderCache) entryForGVK(gk schema.GroupKind) (*groupKindEntry, error) { +func (c *ReaderCache) entryForGVK(gk schema.GroupKind) *groupKindEntry { entry, ok := c.groupKinds[gk] if ok { - return entry, nil + return entry } entry = &groupKindEntry{ objects: make(map[client.ObjectKey]client.Object), } c.groupKinds[gk] = entry - return entry, nil + return entry } func (c *ReaderCache) InsertList(list client.ObjectList) error { @@ -74,10 +74,7 @@ func (c *ReaderCache) InsertList(list client.ObjectList) error { } gk := gvk.GroupKind() - entry, err := c.entryForGVK(gk) - if err != nil { - return err - } + entry := c.entryForGVK(gk) if err := meta.EachListItem(list, func(obj runtime.Object) error { cObj := obj.(client.Object) @@ -97,10 +94,7 @@ func (c *ReaderCache) Insert(obj client.Object) error { } gk := gvk.GroupKind() - entry, err := c.entryForGVK(gk) - if err != nil { - return err - } + entry := c.entryForGVK(gk) entry.objects[client.ObjectKeyFromObject(obj)] = obj return nil diff --git a/utils/envtest/internal/testing/addr/addr.go b/utils/envtest/internal/testing/addr/addr.go index c4eaf74e3..0f6b76ff5 100644 --- a/utils/envtest/internal/testing/addr/addr.go +++ b/utils/envtest/internal/testing/addr/addr.go @@ -115,7 +115,9 @@ func Suggest(listenHost string) (int, string, error) { if err != nil { return -1, "", err } - defer listener.Close() + defer func() { + _ = listener.Close() + }() if ok, err := cache.add(port); ok { return port, resolvedHost, nil } else if err != nil { From e46ff3e61a7078d70e95be3efb617f5ce28211a5 Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Mon, 28 Oct 2024 14:33:12 +0100 Subject: [PATCH 2/2] Fix linting issues by excluding tests and fake server --- .golangci.yml | 9 +++++++++ Makefile | 2 +- broker/machinebroker/cmd/machinebroker/app/app.go | 4 ++-- go.mod | 3 ++- go.sum | 4 ++-- hack/tools.go | 2 -- poollet/bucketpoollet/bcm/generic.go | 3 ++- poollet/volumepoollet/vcm/generic.go | 3 ++- 8 files changed, 20 insertions(+), 10 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 59c483f3a..639ee8fcb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -48,6 +48,15 @@ linters-settings: alias: ${1}client issues: + # exclude copylocks issues in fake servers and unit tests + exclude-files: + - iri/testing/volume/fake.go + - iri/testing/bucket/fake.go + - iri/testing/machine/fake.go + - poollet/machinepoollet/controllers/machine_controller_test.go + # TODO: fis copylocks issues in those files + - poollet/volumepoollet/vcm/generic.go + - poollet/bucketpoollet/bcm/generic.go # don't skip warning about doc comments # don't exclude the default set of lint exclude-use-default: false diff --git a/Makefile b/Makefile index 97584ff63..2b8b3973f 100644 --- a/Makefile +++ b/Makefile @@ -99,7 +99,7 @@ fmt: goimports ## Run goimports against code. .PHONY: vet vet: ## Run go vet against code. - go vet ./... + go vet -copylocks=false ./... .PHONY: lint lint: golangci-lint ## Run golangci-lint on the code. diff --git a/broker/machinebroker/cmd/machinebroker/app/app.go b/broker/machinebroker/cmd/machinebroker/app/app.go index f288a67d3..88598b0d0 100644 --- a/broker/machinebroker/cmd/machinebroker/app/app.go +++ b/broker/machinebroker/cmd/machinebroker/app/app.go @@ -122,7 +122,7 @@ func Run(ctx context.Context, opts Options) error { g, ctx := errgroup.WithContext(ctx) g.Go(func() error { - return runServer(ctx, setupLog, log, srv) + return runServer(ctx, setupLog, srv) }) g.Go(func() error { return runGRPCServer(ctx, setupLog, log, srv, opts) @@ -133,7 +133,7 @@ func Run(ctx context.Context, opts Options) error { return g.Wait() } -func runServer(ctx context.Context, setupLog, _ logr.Logger, srv *server.Server) error { +func runServer(ctx context.Context, setupLog logr.Logger, srv *server.Server) error { setupLog.V(1).Info("Starting server loops") if err := srv.Start(ctx); err != nil { return fmt.Errorf("error starting server loops: %w", err) diff --git a/go.mod b/go.mod index 52298fd3a..7fc0a32f6 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/ironcore-dev/ironcore go 1.23.2 require ( - github.com/afritzler/protoequal v0.1.0 + github.com/afritzler/protoequal v0.1.1 github.com/bits-and-blooms/bitset v1.14.3 github.com/blang/semver/v4 v4.0.0 github.com/go-chi/chi/v5 v5.1.0 @@ -19,6 +19,7 @@ require ( golang.org/x/sync v0.8.0 golang.org/x/sys v0.26.0 google.golang.org/grpc v1.67.1 + google.golang.org/protobuf v1.35.1 k8s.io/api v0.30.4 k8s.io/apimachinery v0.30.4 k8s.io/apiserver v0.30.4 diff --git a/go.sum b/go.sum index 3752773e4..c9b2d9b93 100644 --- a/go.sum +++ b/go.sum @@ -6,8 +6,8 @@ github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOEl github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I= github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= -github.com/afritzler/protoequal v0.1.0 h1:2D3rLHXQB+wzPOJHuG3H7p/H16g3pEQwyvtkNkS1pYs= -github.com/afritzler/protoequal v0.1.0/go.mod h1:Ube4ogd+UZ3f8PfmeQfO2SJBCLHT6gmkEtpqvXmJhBU= +github.com/afritzler/protoequal v0.1.1 h1:t3jAXLzRrVbkUg3Hom7rQdUck2kpAgR5JD9/68Lht90= +github.com/afritzler/protoequal v0.1.1/go.mod h1:Ube4ogd+UZ3f8PfmeQfO2SJBCLHT6gmkEtpqvXmJhBU= github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df h1:7RFfzj4SSt6nnvCPbCqijJi1nWCd+TqAT3bYCStRC18= github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df/go.mod h1:pSwJ0fSY5KhvocuWSx4fz3BA8OrA1bQn+K1Eli3BRwM= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= diff --git a/hack/tools.go b/hack/tools.go index f1690ea49..f74bc7e6d 100644 --- a/hack/tools.go +++ b/hack/tools.go @@ -9,7 +9,5 @@ package hack import ( - // Use gogoproto for protobuf generation. - _ "github.com/gogo/protobuf/gogoproto" _ "k8s.io/code-generator" ) diff --git a/poollet/bucketpoollet/bcm/generic.go b/poollet/bucketpoollet/bcm/generic.go index 2c98ff884..8c8eab5d1 100644 --- a/poollet/bucketpoollet/bcm/generic.go +++ b/poollet/bucketpoollet/bcm/generic.go @@ -94,7 +94,8 @@ func (g *Generic) GetBucketClassFor(ctx context.Context, name string, caps *iri. case 0: return nil, ErrNoMatchingBucketClass case 1: - return byCaps[0], nil + class := *byCaps[0] + return &class, nil default: return nil, ErrAmbiguousMatchingBucketClass } diff --git a/poollet/volumepoollet/vcm/generic.go b/poollet/volumepoollet/vcm/generic.go index 45e35694a..8426bb25d 100644 --- a/poollet/volumepoollet/vcm/generic.go +++ b/poollet/volumepoollet/vcm/generic.go @@ -149,7 +149,8 @@ func (g *Generic) GetVolumeClassFor(ctx context.Context, name string, caps *iri. case 0: return nil, nil, ErrNoMatchingVolumeClass case 1: - return byCaps[0].VolumeClass, resource.NewQuantity(byCaps[0].Quantity, resource.BinarySI), nil + classStatus := *byCaps[0] + return classStatus.VolumeClass, resource.NewQuantity(classStatus.Quantity, resource.BinarySI), nil default: return nil, nil, ErrAmbiguousMatchingVolumeClass }