diff --git a/app/cmd/start.go b/app/cmd/start.go index 95d927f76..9f88b65b7 100644 --- a/app/cmd/start.go +++ b/app/cmd/start.go @@ -31,15 +31,14 @@ import ( helperutil "github.com/longhorn/go-spdk-helper/pkg/util" spdk "github.com/longhorn/longhorn-spdk-engine/pkg/spdk" spdkutil "github.com/longhorn/longhorn-spdk-engine/pkg/util" - spdkrpc "github.com/longhorn/longhorn-spdk-engine/proto/spdkrpc" + rpc "github.com/longhorn/types/pkg/imrpc" + spdkrpc "github.com/longhorn/types/pkg/spdkrpc" "github.com/longhorn/longhorn-instance-manager/pkg/disk" "github.com/longhorn/longhorn-instance-manager/pkg/health" - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" "github.com/longhorn/longhorn-instance-manager/pkg/instance" "github.com/longhorn/longhorn-instance-manager/pkg/process" "github.com/longhorn/longhorn-instance-manager/pkg/proxy" - "github.com/longhorn/longhorn-instance-manager/pkg/types" "github.com/longhorn/longhorn-instance-manager/pkg/util" ) diff --git a/generate_grpc.sh b/generate_grpc.sh deleted file mode 100755 index 217714110..000000000 --- a/generate_grpc.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -set -e - -# check and download dependency for gRPC code generate -if [ ! -e ./proto/vendor/protobuf/src/google/protobuf ]; then - rm -rf ./proto/vendor/protobuf/src/google/protobuf - DIR="./proto/vendor/protobuf/src/google/protobuf" - mkdir -p $DIR - wget https://raw.githubusercontent.com/protocolbuffers/protobuf/v24.3/src/google/protobuf/empty.proto -P $DIR -fi -DIR="./proto/vendor/github.com/longhorn/longhorn-engine/proto/ptypes" -if [ ! -e ${DIR} ]; then - rm -rf ${DIR} - mkdir -p $DIR - wget https://raw.githubusercontent.com/longhorn/longhorn-engine/master/proto/ptypes/common.proto -P $DIR - wget https://raw.githubusercontent.com/longhorn/longhorn-engine/master/proto/ptypes/controller.proto -P $DIR - wget https://raw.githubusercontent.com/longhorn/longhorn-engine/master/proto/ptypes/syncagent.proto -P $DIR -fi - - -PKG_DIR="pkg/imrpc" -TMP_DIR_BASE=".protobuild" -TMP_DIR="${TMP_DIR_BASE}/github.com/longhorn/longhorn-instance-manager/pkg/imrpc/" -mkdir -p "${TMP_DIR}" -cp -a "${PKG_DIR}"/*.proto "${TMP_DIR}" -for PROTO in common imrpc proxy disk instance; do - mkdir -p "integration/rpc/${PROTO}" - python3 -m grpc_tools.protoc -I "${TMP_DIR_BASE}" -I "proto/vendor/" -I "proto/vendor/protobuf/src/" --python_out=integration/rpc/${PROTO} --grpc_python_out=integration/rpc/${PROTO} "${TMP_DIR}/${PROTO}.proto" - protoc -I ${TMP_DIR_BASE}/ -I proto/vendor/ -I proto/vendor/protobuf/src/ "${TMP_DIR}/${PROTO}.proto" --go_out=plugins=grpc:"${TMP_DIR_BASE}" - mv "${TMP_DIR}/${PROTO}.pb.go" "${PKG_DIR}/${PROTO}.pb.go" - - # Known issue: https://github.com/grpc/grpc/issues/10790 - mv integration/rpc/${PROTO}/github.com/longhorn/longhorn_instance_manager/pkg/imrpc/${PROTO}_pb2_grpc.py integration/rpc/${PROTO}/github/com/longhorn/longhorn_instance_manager/pkg/imrpc/${PROTO}_pb2_grpc.py - rm -rf integration/rpc/${PROTO}/github.com - - if [ "${PROTO}" != "common" ]; then - cp -a integration/rpc/common/github/com/longhorn/longhorn_instance_manager/pkg/imrpc/*.py integration/rpc/${PROTO}/github/com/longhorn/longhorn_instance_manager/pkg/imrpc/ - fi -done - -rm -rf "${TMP_DIR_BASE}" diff --git a/pkg/api/instance.go b/pkg/api/instance.go index 48fab62b2..85d54a8a5 100644 --- a/pkg/api/instance.go +++ b/pkg/api/instance.go @@ -1,10 +1,9 @@ package api import ( + rpc "github.com/longhorn/types/pkg/imrpc" + "github.com/longhorn/types/pkg/spdkrpc" "google.golang.org/protobuf/types/known/emptypb" - - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" - "github.com/longhorn/longhorn-spdk-engine/proto/spdkrpc" ) var ( diff --git a/pkg/api/process.go b/pkg/api/process.go index c41be9243..432c0744b 100644 --- a/pkg/api/process.go +++ b/pkg/api/process.go @@ -1,7 +1,7 @@ package api import ( - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" + rpc "github.com/longhorn/types/pkg/imrpc" ) type Process struct { diff --git a/pkg/client/disk.go b/pkg/client/disk.go index bd92aa218..7cf039a61 100644 --- a/pkg/client/disk.go +++ b/pkg/client/disk.go @@ -5,13 +5,13 @@ import ( "crypto/tls" "fmt" + rpc "github.com/longhorn/types/pkg/imrpc" "github.com/pkg/errors" "google.golang.org/grpc" healthpb "google.golang.org/grpc/health/grpc_health_v1" "google.golang.org/protobuf/types/known/emptypb" "github.com/longhorn/longhorn-instance-manager/pkg/api" - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" "github.com/longhorn/longhorn-instance-manager/pkg/meta" "github.com/longhorn/longhorn-instance-manager/pkg/types" "github.com/longhorn/longhorn-instance-manager/pkg/util" diff --git a/pkg/client/instance.go b/pkg/client/instance.go index 2164528fd..cacc52088 100644 --- a/pkg/client/instance.go +++ b/pkg/client/instance.go @@ -5,13 +5,13 @@ import ( "crypto/tls" "fmt" + rpc "github.com/longhorn/types/pkg/imrpc" "github.com/pkg/errors" "google.golang.org/grpc" healthpb "google.golang.org/grpc/health/grpc_health_v1" "google.golang.org/protobuf/types/known/emptypb" "github.com/longhorn/longhorn-instance-manager/pkg/api" - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" "github.com/longhorn/longhorn-instance-manager/pkg/meta" "github.com/longhorn/longhorn-instance-manager/pkg/types" "github.com/longhorn/longhorn-instance-manager/pkg/util" diff --git a/pkg/client/process_manager.go b/pkg/client/process_manager.go index a7805755a..cd12c1a1d 100644 --- a/pkg/client/process_manager.go +++ b/pkg/client/process_manager.go @@ -5,6 +5,7 @@ import ( "crypto/tls" "fmt" + rpc "github.com/longhorn/types/pkg/imrpc" "github.com/pkg/errors" "github.com/sirupsen/logrus" "google.golang.org/grpc" @@ -12,7 +13,6 @@ import ( "google.golang.org/protobuf/types/known/emptypb" "github.com/longhorn/longhorn-instance-manager/pkg/api" - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" "github.com/longhorn/longhorn-instance-manager/pkg/meta" "github.com/longhorn/longhorn-instance-manager/pkg/types" "github.com/longhorn/longhorn-instance-manager/pkg/util" diff --git a/pkg/client/proxy.go b/pkg/client/proxy.go index 13ebc4dca..d63b060bb 100644 --- a/pkg/client/proxy.go +++ b/pkg/client/proxy.go @@ -4,6 +4,9 @@ import ( "crypto/tls" "fmt" + emeta "github.com/longhorn/longhorn-engine/pkg/meta" + eclient "github.com/longhorn/longhorn-engine/pkg/replica/client" + rpc "github.com/longhorn/types/pkg/imrpc" "github.com/pkg/errors" "github.com/sirupsen/logrus" "golang.org/x/net/context" @@ -11,12 +14,8 @@ import ( "google.golang.org/grpc/connectivity" healthpb "google.golang.org/grpc/health/grpc_health_v1" - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" "github.com/longhorn/longhorn-instance-manager/pkg/meta" "github.com/longhorn/longhorn-instance-manager/pkg/util" - - emeta "github.com/longhorn/longhorn-engine/pkg/meta" - eclient "github.com/longhorn/longhorn-engine/pkg/replica/client" ) var ( diff --git a/pkg/client/proxy_backup.go b/pkg/client/proxy_backup.go index 79b6a4138..367a5601a 100644 --- a/pkg/client/proxy_backup.go +++ b/pkg/client/proxy_backup.go @@ -4,10 +4,9 @@ import ( "encoding/json" "fmt" + rpc "github.com/longhorn/types/pkg/imrpc" "github.com/pkg/errors" "google.golang.org/protobuf/types/known/emptypb" - - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" ) func (c *ProxyClient) CleanupBackupMountPoints() (err error) { diff --git a/pkg/client/proxy_metrics.go b/pkg/client/proxy_metrics.go index d4ed0a4c3..c70e0b28c 100644 --- a/pkg/client/proxy_metrics.go +++ b/pkg/client/proxy_metrics.go @@ -3,7 +3,7 @@ package client import ( "github.com/pkg/errors" - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" + rpc "github.com/longhorn/types/pkg/imrpc" ) func (c *ProxyClient) MetricsGet(engineName, volumeName, serviceAddress string) (metrics *Metrics, err error) { diff --git a/pkg/client/proxy_replica.go b/pkg/client/proxy_replica.go index 137c8a719..4230dd6d0 100644 --- a/pkg/client/proxy_replica.go +++ b/pkg/client/proxy_replica.go @@ -3,12 +3,9 @@ package client import ( "fmt" - "github.com/pkg/errors" - etypes "github.com/longhorn/longhorn-engine/pkg/types" - eptypes "github.com/longhorn/longhorn-engine/proto/ptypes" - - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" + rpc "github.com/longhorn/types/pkg/imrpc" + "github.com/pkg/errors" ) func (c *ProxyClient) ReplicaAdd(dataEngine, engineName, volumeName, serviceAddress, replicaName, @@ -99,7 +96,7 @@ func (c *ProxyClient) ReplicaList(dataEngine, engineName, volumeName, for _, cr := range resp.ReplicaList.Replicas { rInfoList = append(rInfoList, &etypes.ControllerReplicaInfo{ Address: cr.Address.Address, - Mode: eptypes.GRPCReplicaModeToReplicaMode(cr.Mode), + Mode: etypes.GRPCReplicaModeToReplicaMode(cr.Mode), }) } @@ -258,7 +255,7 @@ func (c *ProxyClient) ReplicaModeUpdate(dataEngine, serviceAddress, replicaAddre DataEngine: rpc.DataEngine(driver), }, ReplicaAddress: replicaAddress, - Mode: eptypes.ReplicaModeToGRPCReplicaMode(etypes.Mode(mode)), + Mode: etypes.ReplicaModeToGRPCReplicaMode(etypes.Mode(mode)), } _, err = c.service.ReplicaModeUpdate(getContextWithGRPCTimeout(c.ctx), req) if err != nil { diff --git a/pkg/client/proxy_snapshot.go b/pkg/client/proxy_snapshot.go index f34ac15fb..e38858f0f 100644 --- a/pkg/client/proxy_snapshot.go +++ b/pkg/client/proxy_snapshot.go @@ -7,9 +7,8 @@ import ( etypes "github.com/longhorn/longhorn-engine/pkg/types" eutil "github.com/longhorn/longhorn-engine/pkg/util" - eptypes "github.com/longhorn/longhorn-engine/proto/ptypes" - - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" + "github.com/longhorn/types/pkg/enginerpc" + rpc "github.com/longhorn/types/pkg/imrpc" ) func (c *ProxyClient) VolumeSnapshot(dataEngine, engineName, volumeName, serviceAddress, @@ -55,7 +54,7 @@ func (c *ProxyClient) VolumeSnapshot(dataEngine, engineName, volumeName, service DataEngine: rpc.DataEngine(driver), VolumeName: volumeName, }, - SnapshotVolume: &eptypes.VolumeSnapshotRequest{ + SnapshotVolume: &enginerpc.VolumeSnapshotRequest{ Name: volumeSnapshotName, Labels: labels, }, diff --git a/pkg/client/proxy_volume.go b/pkg/client/proxy_volume.go index d40fe11f4..3ec1b02a7 100644 --- a/pkg/client/proxy_volume.go +++ b/pkg/client/proxy_volume.go @@ -7,9 +7,8 @@ import ( "github.com/pkg/errors" etypes "github.com/longhorn/longhorn-engine/pkg/types" - eptypes "github.com/longhorn/longhorn-engine/proto/ptypes" - - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" + "github.com/longhorn/types/pkg/enginerpc" + rpc "github.com/longhorn/types/pkg/imrpc" ) func (c *ProxyClient) VolumeGet(dataEngine, engineName, volumeName, serviceAddress string) (info *etypes.VolumeInfo, err error) { @@ -90,7 +89,7 @@ func (c *ProxyClient) VolumeExpand(dataEngine, engineName, volumeName, serviceAd DataEngine: rpc.DataEngine(driver), VolumeName: volumeName, }, - Expand: &eptypes.VolumeExpandRequest{ + Expand: &enginerpc.VolumeExpandRequest{ Size: size, }, } @@ -131,7 +130,7 @@ func (c *ProxyClient) VolumeFrontendStart(dataEngine, engineName, volumeName, se DataEngine: rpc.DataEngine(driver), VolumeName: volumeName, }, - FrontendStart: &eptypes.VolumeFrontendStartRequest{ + FrontendStart: &enginerpc.VolumeFrontendStartRequest{ Frontend: frontendName, }, } @@ -207,7 +206,7 @@ func (c *ProxyClient) VolumeUnmapMarkSnapChainRemovedSet(dataEngine, engineName, DataEngine: rpc.DataEngine(driver), VolumeName: volumeName, }, - UnmapMarkSnap: &eptypes.VolumeUnmapMarkSnapChainRemovedSetRequest{Enabled: enabled}, + UnmapMarkSnap: &enginerpc.VolumeUnmapMarkSnapChainRemovedSetRequest{Enabled: enabled}, } _, err = c.service.VolumeUnmapMarkSnapChainRemovedSet(getContextWithGRPCTimeout(c.ctx), req) if err != nil { @@ -247,7 +246,7 @@ func (c *ProxyClient) VolumeSnapshotMaxCountSet(dataEngine, engineName, volumeNa DataEngine: rpc.DataEngine(driver), VolumeName: volumeName, }, - Count: &eptypes.VolumeSnapshotMaxCountSetRequest{Count: int32(count)}, + Count: &enginerpc.VolumeSnapshotMaxCountSetRequest{Count: int32(count)}, } _, err = c.service.VolumeSnapshotMaxCountSet(getContextWithGRPCTimeout(c.ctx), req) if err != nil { @@ -287,7 +286,7 @@ func (c *ProxyClient) VolumeSnapshotMaxSizeSet(dataEngine, engineName, volumeNam DataEngine: rpc.DataEngine(driver), VolumeName: volumeName, }, - Size: &eptypes.VolumeSnapshotMaxSizeSetRequest{Size: size}, + Size: &enginerpc.VolumeSnapshotMaxSizeSetRequest{Size: size}, } _, err = c.service.VolumeSnapshotMaxSizeSet(getContextWithGRPCTimeout(c.ctx), req) if err != nil { diff --git a/pkg/client/types.go b/pkg/client/types.go index ddb2b8af5..144f00704 100644 --- a/pkg/client/types.go +++ b/pkg/client/types.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" + rpc "github.com/longhorn/types/pkg/imrpc" ) const ( diff --git a/pkg/disk/disk.go b/pkg/disk/disk.go index ea3f78854..513cabeb4 100644 --- a/pkg/disk/disk.go +++ b/pkg/disk/disk.go @@ -6,19 +6,19 @@ import ( "sync" "time" + "github.com/longhorn/longhorn-spdk-engine/pkg/api" + spdkclient "github.com/longhorn/longhorn-spdk-engine/pkg/client" + rpc "github.com/longhorn/types/pkg/imrpc" + spdkrpc "github.com/longhorn/types/pkg/spdkrpc" "github.com/pkg/errors" "github.com/sirupsen/logrus" grpccodes "google.golang.org/grpc/codes" grpcstatus "google.golang.org/grpc/status" "google.golang.org/protobuf/types/known/emptypb" - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" "github.com/longhorn/longhorn-instance-manager/pkg/meta" "github.com/longhorn/longhorn-instance-manager/pkg/types" "github.com/longhorn/longhorn-instance-manager/pkg/util" - "github.com/longhorn/longhorn-spdk-engine/pkg/api" - spdkclient "github.com/longhorn/longhorn-spdk-engine/pkg/client" - spdkrpc "github.com/longhorn/longhorn-spdk-engine/proto/spdkrpc" ) const ( @@ -39,6 +39,7 @@ type BlockDiskOps struct { } type Server struct { + rpc.UnimplementedDiskServiceServer sync.RWMutex ctx context.Context diff --git a/pkg/imrpc/common.pb.go b/pkg/imrpc/common.pb.go deleted file mode 100644 index 3c5f54dc4..000000000 --- a/pkg/imrpc/common.pb.go +++ /dev/null @@ -1,184 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v4.24.3 -// source: github.com/longhorn/longhorn-instance-manager/pkg/imrpc/common.proto - -package imrpc - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Deprecated: Use DataEngine instead. -type BackendStoreDriver int32 - -const ( - BackendStoreDriver_v1 BackendStoreDriver = 0 - BackendStoreDriver_v2 BackendStoreDriver = 1 -) - -// Enum value maps for BackendStoreDriver. -var ( - BackendStoreDriver_name = map[int32]string{ - 0: "v1", - 1: "v2", - } - BackendStoreDriver_value = map[string]int32{ - "v1": 0, - "v2": 1, - } -) - -func (x BackendStoreDriver) Enum() *BackendStoreDriver { - p := new(BackendStoreDriver) - *p = x - return p -} - -func (x BackendStoreDriver) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (BackendStoreDriver) Descriptor() protoreflect.EnumDescriptor { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_enumTypes[0].Descriptor() -} - -func (BackendStoreDriver) Type() protoreflect.EnumType { - return &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_enumTypes[0] -} - -func (x BackendStoreDriver) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use BackendStoreDriver.Descriptor instead. -func (BackendStoreDriver) EnumDescriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_rawDescGZIP(), []int{0} -} - -type DataEngine int32 - -const ( - DataEngine_DATA_ENGINE_V1 DataEngine = 0 - DataEngine_DATA_ENGINE_V2 DataEngine = 1 -) - -// Enum value maps for DataEngine. -var ( - DataEngine_name = map[int32]string{ - 0: "DATA_ENGINE_V1", - 1: "DATA_ENGINE_V2", - } - DataEngine_value = map[string]int32{ - "DATA_ENGINE_V1": 0, - "DATA_ENGINE_V2": 1, - } -) - -func (x DataEngine) Enum() *DataEngine { - p := new(DataEngine) - *p = x - return p -} - -func (x DataEngine) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (DataEngine) Descriptor() protoreflect.EnumDescriptor { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_enumTypes[1].Descriptor() -} - -func (DataEngine) Type() protoreflect.EnumType { - return &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_enumTypes[1] -} - -func (x DataEngine) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use DataEngine.Descriptor instead. -func (DataEngine) EnumDescriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_rawDescGZIP(), []int{1} -} - -var File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto protoreflect.FileDescriptor - -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_rawDesc = []byte{ - 0x0a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, 0x6e, - 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2d, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, - 0x70, 0x6b, 0x67, 0x2f, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2a, 0x24, 0x0a, - 0x12, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x44, 0x72, 0x69, - 0x76, 0x65, 0x72, 0x12, 0x06, 0x0a, 0x02, 0x76, 0x31, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x76, - 0x32, 0x10, 0x01, 0x2a, 0x34, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, - 0x5f, 0x56, 0x31, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x45, 0x4e, - 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x56, 0x32, 0x10, 0x01, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, - 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x69, - 0x6d, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_rawDescOnce sync.Once - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_rawDescData = file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_rawDesc -) - -func file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_rawDescGZIP() []byte { - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_rawDescOnce.Do(func() { - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_rawDescData) - }) - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_rawDescData -} - -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_goTypes = []interface{}{ - (BackendStoreDriver)(0), // 0: imrpc.BackendStoreDriver - (DataEngine)(0), // 1: imrpc.DataEngine -} -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_init() } -func file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_init() { - if File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_rawDesc, - NumEnums: 2, - NumMessages: 0, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_goTypes, - DependencyIndexes: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_depIdxs, - EnumInfos: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_enumTypes, - }.Build() - File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto = out.File - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_rawDesc = nil - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_goTypes = nil - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_depIdxs = nil -} diff --git a/pkg/imrpc/common.proto b/pkg/imrpc/common.proto deleted file mode 100644 index ccdba6af5..000000000 --- a/pkg/imrpc/common.proto +++ /dev/null @@ -1,16 +0,0 @@ -syntax="proto3"; - -package imrpc; - -option go_package = "github.com/longhorn/longhorn-instance-manager/pkg/imrpc"; - -// Deprecated: Use DataEngine instead. -enum BackendStoreDriver { - v1 = 0; - v2 = 1; -} - -enum DataEngine { - DATA_ENGINE_V1 = 0; - DATA_ENGINE_V2 = 1; -} \ No newline at end of file diff --git a/pkg/imrpc/disk.pb.go b/pkg/imrpc/disk.pb.go deleted file mode 100644 index 290dfe0d8..000000000 --- a/pkg/imrpc/disk.pb.go +++ /dev/null @@ -1,1340 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v4.24.3 -// source: github.com/longhorn/longhorn-instance-manager/pkg/imrpc/disk.proto - -package imrpc - -import ( - context "context" - 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" - emptypb "google.golang.org/protobuf/types/known/emptypb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type DiskType int32 - -const ( - DiskType_filesystem DiskType = 0 - DiskType_block DiskType = 1 -) - -// Enum value maps for DiskType. -var ( - DiskType_name = map[int32]string{ - 0: "filesystem", - 1: "block", - } - DiskType_value = map[string]int32{ - "filesystem": 0, - "block": 1, - } -) - -func (x DiskType) Enum() *DiskType { - p := new(DiskType) - *p = x - return p -} - -func (x DiskType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (DiskType) Descriptor() protoreflect.EnumDescriptor { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_enumTypes[0].Descriptor() -} - -func (DiskType) Type() protoreflect.EnumType { - return &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_enumTypes[0] -} - -func (x DiskType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use DiskType.Descriptor instead. -func (DiskType) EnumDescriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescGZIP(), []int{0} -} - -type Disk struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` - Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` - Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` - TotalSize int64 `protobuf:"varint,5,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` - FreeSize int64 `protobuf:"varint,6,opt,name=free_size,json=freeSize,proto3" json:"free_size,omitempty"` - TotalBlocks int64 `protobuf:"varint,7,opt,name=total_blocks,json=totalBlocks,proto3" json:"total_blocks,omitempty"` - FreeBlocks int64 `protobuf:"varint,8,opt,name=free_blocks,json=freeBlocks,proto3" json:"free_blocks,omitempty"` - BlockSize int64 `protobuf:"varint,9,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"` - ClusterSize int64 `protobuf:"varint,10,opt,name=cluster_size,json=clusterSize,proto3" json:"cluster_size,omitempty"` -} - -func (x *Disk) Reset() { - *x = Disk{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Disk) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Disk) ProtoMessage() {} - -func (x *Disk) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Disk.ProtoReflect.Descriptor instead. -func (*Disk) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescGZIP(), []int{0} -} - -func (x *Disk) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Disk) GetUuid() string { - if x != nil { - return x.Uuid - } - return "" -} - -func (x *Disk) GetPath() string { - if x != nil { - return x.Path - } - return "" -} - -func (x *Disk) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *Disk) GetTotalSize() int64 { - if x != nil { - return x.TotalSize - } - return 0 -} - -func (x *Disk) GetFreeSize() int64 { - if x != nil { - return x.FreeSize - } - return 0 -} - -func (x *Disk) GetTotalBlocks() int64 { - if x != nil { - return x.TotalBlocks - } - return 0 -} - -func (x *Disk) GetFreeBlocks() int64 { - if x != nil { - return x.FreeBlocks - } - return 0 -} - -func (x *Disk) GetBlockSize() int64 { - if x != nil { - return x.BlockSize - } - return 0 -} - -func (x *Disk) GetClusterSize() int64 { - if x != nil { - return x.ClusterSize - } - return 0 -} - -type ReplicaInstance struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` - DiskName string `protobuf:"bytes,3,opt,name=disk_name,json=diskName,proto3" json:"disk_name,omitempty"` - DiskUuid string `protobuf:"bytes,4,opt,name=disk_uuid,json=diskUuid,proto3" json:"disk_uuid,omitempty"` - SpecSize uint64 `protobuf:"varint,5,opt,name=spec_size,json=specSize,proto3" json:"spec_size,omitempty"` - ActualSize uint64 `protobuf:"varint,6,opt,name=actual_size,json=actualSize,proto3" json:"actual_size,omitempty"` -} - -func (x *ReplicaInstance) Reset() { - *x = ReplicaInstance{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReplicaInstance) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReplicaInstance) ProtoMessage() {} - -func (x *ReplicaInstance) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReplicaInstance.ProtoReflect.Descriptor instead. -func (*ReplicaInstance) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescGZIP(), []int{1} -} - -func (x *ReplicaInstance) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ReplicaInstance) GetUuid() string { - if x != nil { - return x.Uuid - } - return "" -} - -func (x *ReplicaInstance) GetDiskName() string { - if x != nil { - return x.DiskName - } - return "" -} - -func (x *ReplicaInstance) GetDiskUuid() string { - if x != nil { - return x.DiskUuid - } - return "" -} - -func (x *ReplicaInstance) GetSpecSize() uint64 { - if x != nil { - return x.SpecSize - } - return 0 -} - -func (x *ReplicaInstance) GetActualSize() uint64 { - if x != nil { - return x.ActualSize - } - return 0 -} - -type DiskCreateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DiskType DiskType `protobuf:"varint,1,opt,name=disk_type,json=diskType,proto3,enum=imrpc.DiskType" json:"disk_type,omitempty"` - DiskName string `protobuf:"bytes,2,opt,name=disk_name,json=diskName,proto3" json:"disk_name,omitempty"` - DiskUuid string `protobuf:"bytes,3,opt,name=disk_uuid,json=diskUuid,proto3" json:"disk_uuid,omitempty"` - DiskPath string `protobuf:"bytes,4,opt,name=disk_path,json=diskPath,proto3" json:"disk_path,omitempty"` - BlockSize int64 `protobuf:"varint,5,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"` -} - -func (x *DiskCreateRequest) Reset() { - *x = DiskCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DiskCreateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DiskCreateRequest) ProtoMessage() {} - -func (x *DiskCreateRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DiskCreateRequest.ProtoReflect.Descriptor instead. -func (*DiskCreateRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescGZIP(), []int{2} -} - -func (x *DiskCreateRequest) GetDiskType() DiskType { - if x != nil { - return x.DiskType - } - return DiskType_filesystem -} - -func (x *DiskCreateRequest) GetDiskName() string { - if x != nil { - return x.DiskName - } - return "" -} - -func (x *DiskCreateRequest) GetDiskUuid() string { - if x != nil { - return x.DiskUuid - } - return "" -} - -func (x *DiskCreateRequest) GetDiskPath() string { - if x != nil { - return x.DiskPath - } - return "" -} - -func (x *DiskCreateRequest) GetBlockSize() int64 { - if x != nil { - return x.BlockSize - } - return 0 -} - -type DiskGetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DiskType DiskType `protobuf:"varint,1,opt,name=disk_type,json=diskType,proto3,enum=imrpc.DiskType" json:"disk_type,omitempty"` - DiskName string `protobuf:"bytes,2,opt,name=disk_name,json=diskName,proto3" json:"disk_name,omitempty"` - DiskPath string `protobuf:"bytes,3,opt,name=disk_path,json=diskPath,proto3" json:"disk_path,omitempty"` -} - -func (x *DiskGetRequest) Reset() { - *x = DiskGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DiskGetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DiskGetRequest) ProtoMessage() {} - -func (x *DiskGetRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DiskGetRequest.ProtoReflect.Descriptor instead. -func (*DiskGetRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescGZIP(), []int{3} -} - -func (x *DiskGetRequest) GetDiskType() DiskType { - if x != nil { - return x.DiskType - } - return DiskType_filesystem -} - -func (x *DiskGetRequest) GetDiskName() string { - if x != nil { - return x.DiskName - } - return "" -} - -func (x *DiskGetRequest) GetDiskPath() string { - if x != nil { - return x.DiskPath - } - return "" -} - -type DiskDeleteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DiskType DiskType `protobuf:"varint,1,opt,name=disk_type,json=diskType,proto3,enum=imrpc.DiskType" json:"disk_type,omitempty"` - DiskName string `protobuf:"bytes,2,opt,name=disk_name,json=diskName,proto3" json:"disk_name,omitempty"` - DiskUuid string `protobuf:"bytes,3,opt,name=disk_uuid,json=diskUuid,proto3" json:"disk_uuid,omitempty"` -} - -func (x *DiskDeleteRequest) Reset() { - *x = DiskDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DiskDeleteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DiskDeleteRequest) ProtoMessage() {} - -func (x *DiskDeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DiskDeleteRequest.ProtoReflect.Descriptor instead. -func (*DiskDeleteRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescGZIP(), []int{4} -} - -func (x *DiskDeleteRequest) GetDiskType() DiskType { - if x != nil { - return x.DiskType - } - return DiskType_filesystem -} - -func (x *DiskDeleteRequest) GetDiskName() string { - if x != nil { - return x.DiskName - } - return "" -} - -func (x *DiskDeleteRequest) GetDiskUuid() string { - if x != nil { - return x.DiskUuid - } - return "" -} - -type DiskReplicaInstanceListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DiskType DiskType `protobuf:"varint,1,opt,name=disk_type,json=diskType,proto3,enum=imrpc.DiskType" json:"disk_type,omitempty"` - DiskName string `protobuf:"bytes,2,opt,name=disk_name,json=diskName,proto3" json:"disk_name,omitempty"` -} - -func (x *DiskReplicaInstanceListRequest) Reset() { - *x = DiskReplicaInstanceListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DiskReplicaInstanceListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DiskReplicaInstanceListRequest) ProtoMessage() {} - -func (x *DiskReplicaInstanceListRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DiskReplicaInstanceListRequest.ProtoReflect.Descriptor instead. -func (*DiskReplicaInstanceListRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescGZIP(), []int{5} -} - -func (x *DiskReplicaInstanceListRequest) GetDiskType() DiskType { - if x != nil { - return x.DiskType - } - return DiskType_filesystem -} - -func (x *DiskReplicaInstanceListRequest) GetDiskName() string { - if x != nil { - return x.DiskName - } - return "" -} - -type DiskReplicaInstanceListResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReplicaInstances map[string]*ReplicaInstance `protobuf:"bytes,1,rep,name=replica_instances,json=replicaInstances,proto3" json:"replica_instances,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *DiskReplicaInstanceListResponse) Reset() { - *x = DiskReplicaInstanceListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DiskReplicaInstanceListResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DiskReplicaInstanceListResponse) ProtoMessage() {} - -func (x *DiskReplicaInstanceListResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DiskReplicaInstanceListResponse.ProtoReflect.Descriptor instead. -func (*DiskReplicaInstanceListResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescGZIP(), []int{6} -} - -func (x *DiskReplicaInstanceListResponse) GetReplicaInstances() map[string]*ReplicaInstance { - if x != nil { - return x.ReplicaInstances - } - return nil -} - -type DiskReplicaInstanceDeleteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DiskType DiskType `protobuf:"varint,1,opt,name=disk_type,json=diskType,proto3,enum=imrpc.DiskType" json:"disk_type,omitempty"` - DiskName string `protobuf:"bytes,2,opt,name=disk_name,json=diskName,proto3" json:"disk_name,omitempty"` - DiskUuid string `protobuf:"bytes,3,opt,name=disk_uuid,json=diskUuid,proto3" json:"disk_uuid,omitempty"` - ReplciaInstanceName string `protobuf:"bytes,4,opt,name=replcia_instance_name,json=replciaInstanceName,proto3" json:"replcia_instance_name,omitempty"` -} - -func (x *DiskReplicaInstanceDeleteRequest) Reset() { - *x = DiskReplicaInstanceDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DiskReplicaInstanceDeleteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DiskReplicaInstanceDeleteRequest) ProtoMessage() {} - -func (x *DiskReplicaInstanceDeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DiskReplicaInstanceDeleteRequest.ProtoReflect.Descriptor instead. -func (*DiskReplicaInstanceDeleteRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescGZIP(), []int{7} -} - -func (x *DiskReplicaInstanceDeleteRequest) GetDiskType() DiskType { - if x != nil { - return x.DiskType - } - return DiskType_filesystem -} - -func (x *DiskReplicaInstanceDeleteRequest) GetDiskName() string { - if x != nil { - return x.DiskName - } - return "" -} - -func (x *DiskReplicaInstanceDeleteRequest) GetDiskUuid() string { - if x != nil { - return x.DiskUuid - } - return "" -} - -func (x *DiskReplicaInstanceDeleteRequest) GetReplciaInstanceName() string { - if x != nil { - return x.ReplciaInstanceName - } - return "" -} - -type DiskVersionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - GitCommit string `protobuf:"bytes,2,opt,name=gitCommit,proto3" json:"gitCommit,omitempty"` - BuildDate string `protobuf:"bytes,3,opt,name=buildDate,proto3" json:"buildDate,omitempty"` - InstanceManagerDiskServiceAPIVersion int64 `protobuf:"varint,4,opt,name=instanceManagerDiskServiceAPIVersion,proto3" json:"instanceManagerDiskServiceAPIVersion,omitempty"` - InstanceManagerDiskServiceAPIMinVersion int64 `protobuf:"varint,5,opt,name=instanceManagerDiskServiceAPIMinVersion,proto3" json:"instanceManagerDiskServiceAPIMinVersion,omitempty"` -} - -func (x *DiskVersionResponse) Reset() { - *x = DiskVersionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DiskVersionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DiskVersionResponse) ProtoMessage() {} - -func (x *DiskVersionResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DiskVersionResponse.ProtoReflect.Descriptor instead. -func (*DiskVersionResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescGZIP(), []int{8} -} - -func (x *DiskVersionResponse) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *DiskVersionResponse) GetGitCommit() string { - if x != nil { - return x.GitCommit - } - return "" -} - -func (x *DiskVersionResponse) GetBuildDate() string { - if x != nil { - return x.BuildDate - } - return "" -} - -func (x *DiskVersionResponse) GetInstanceManagerDiskServiceAPIVersion() int64 { - if x != nil { - return x.InstanceManagerDiskServiceAPIVersion - } - return 0 -} - -func (x *DiskVersionResponse) GetInstanceManagerDiskServiceAPIMinVersion() int64 { - if x != nil { - return x.InstanceManagerDiskServiceAPIMinVersion - } - return 0 -} - -var File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto protoreflect.FileDescriptor - -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDesc = []byte{ - 0x0a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, 0x6e, - 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2d, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, - 0x70, 0x6b, 0x67, 0x2f, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2f, 0x64, 0x69, 0x73, 0x6b, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, - 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x02, 0x0a, 0x04, 0x44, 0x69, 0x73, - 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, - 0x66, 0x72, 0x65, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x08, 0x66, 0x72, 0x65, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, - 0x61, 0x6c, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x1f, 0x0a, 0x0b, - 0x66, 0x72, 0x65, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x0a, 0x66, 0x72, 0x65, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x1d, 0x0a, - 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x21, 0x0a, 0x0c, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x69, 0x7a, 0x65, 0x22, - 0xb1, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, - 0x69, 0x73, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x64, 0x69, 0x73, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, - 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x69, 0x73, - 0x6b, 0x55, 0x75, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x73, 0x69, - 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x70, 0x65, 0x63, 0x53, 0x69, - 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x53, - 0x69, 0x7a, 0x65, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x44, 0x69, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x09, 0x64, 0x69, 0x73, - 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x69, - 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, - 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x75, 0x75, 0x69, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x55, 0x75, 0x69, - 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1d, - 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x78, 0x0a, - 0x0e, 0x44, 0x69, 0x73, 0x6b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x2c, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, - 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x69, - 0x73, 0x6b, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, - 0x69, 0x73, 0x6b, 0x50, 0x61, 0x74, 0x68, 0x22, 0x7b, 0x0a, 0x11, 0x44, 0x69, 0x73, 0x6b, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x09, - 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x0f, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x69, - 0x73, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, - 0x69, 0x73, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, - 0x75, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, - 0x55, 0x75, 0x69, 0x64, 0x22, 0x6b, 0x0a, 0x1e, 0x44, 0x69, 0x73, 0x6b, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x69, 0x6d, 0x72, 0x70, - 0x63, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x4e, 0x61, 0x6d, - 0x65, 0x22, 0xe9, 0x01, 0x0a, 0x1f, 0x44, 0x69, 0x73, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x3c, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x52, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, - 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, - 0x1a, 0x5b, 0x0a, 0x15, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 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, 0x2c, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x69, 0x6d, 0x72, - 0x70, 0x63, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xbe, 0x01, - 0x0a, 0x20, 0x44, 0x69, 0x73, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, - 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, - 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x55, 0x75, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, - 0x70, 0x6c, 0x63, 0x69, 0x61, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x72, 0x65, 0x70, 0x6c, 0x63, - 0x69, 0x61, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x99, - 0x02, 0x0a, 0x13, 0x44, 0x69, 0x73, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 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, - 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x1c, - 0x0a, 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x44, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x52, 0x0a, 0x24, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x44, - 0x69, 0x73, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x50, 0x49, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x24, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x44, 0x69, 0x73, 0x6b, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x50, 0x49, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x58, 0x0a, 0x27, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x72, 0x44, 0x69, 0x73, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x50, - 0x49, 0x4d, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x27, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x44, 0x69, 0x73, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x50, 0x49, - 0x4d, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2a, 0x25, 0x0a, 0x08, 0x44, 0x69, - 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x10, - 0x01, 0x32, 0xbb, 0x03, 0x0a, 0x0b, 0x44, 0x69, 0x73, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x12, 0x33, 0x0a, 0x0a, 0x44, 0x69, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, - 0x18, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0b, 0x2e, 0x69, 0x6d, 0x72, 0x70, - 0x63, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x12, 0x3e, 0x0a, 0x0a, 0x44, 0x69, 0x73, 0x6b, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, 0x73, - 0x6b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x2d, 0x0a, 0x07, 0x44, 0x69, 0x73, 0x6b, 0x47, 0x65, - 0x74, 0x12, 0x15, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x47, 0x65, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0b, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, - 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x12, 0x68, 0x0a, 0x17, 0x44, 0x69, 0x73, 0x6b, 0x52, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, - 0x12, 0x25, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x52, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, - 0x44, 0x69, 0x73, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x5c, 0x0a, 0x19, 0x44, 0x69, 0x73, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x27, 0x2e, 0x69, - 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x40, 0x0a, - 0x0a, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x1a, 0x1a, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, 0x73, 0x6b, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, - 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, - 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2d, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, - 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescOnce sync.Once - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescData = file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDesc -) - -func file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescGZIP() []byte { - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescOnce.Do(func() { - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescData) - }) - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDescData -} - -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_goTypes = []interface{}{ - (DiskType)(0), // 0: imrpc.DiskType - (*Disk)(nil), // 1: imrpc.Disk - (*ReplicaInstance)(nil), // 2: imrpc.ReplicaInstance - (*DiskCreateRequest)(nil), // 3: imrpc.DiskCreateRequest - (*DiskGetRequest)(nil), // 4: imrpc.DiskGetRequest - (*DiskDeleteRequest)(nil), // 5: imrpc.DiskDeleteRequest - (*DiskReplicaInstanceListRequest)(nil), // 6: imrpc.DiskReplicaInstanceListRequest - (*DiskReplicaInstanceListResponse)(nil), // 7: imrpc.DiskReplicaInstanceListResponse - (*DiskReplicaInstanceDeleteRequest)(nil), // 8: imrpc.DiskReplicaInstanceDeleteRequest - (*DiskVersionResponse)(nil), // 9: imrpc.DiskVersionResponse - nil, // 10: imrpc.DiskReplicaInstanceListResponse.ReplicaInstancesEntry - (*emptypb.Empty)(nil), // 11: google.protobuf.Empty -} -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_depIdxs = []int32{ - 0, // 0: imrpc.DiskCreateRequest.disk_type:type_name -> imrpc.DiskType - 0, // 1: imrpc.DiskGetRequest.disk_type:type_name -> imrpc.DiskType - 0, // 2: imrpc.DiskDeleteRequest.disk_type:type_name -> imrpc.DiskType - 0, // 3: imrpc.DiskReplicaInstanceListRequest.disk_type:type_name -> imrpc.DiskType - 10, // 4: imrpc.DiskReplicaInstanceListResponse.replica_instances:type_name -> imrpc.DiskReplicaInstanceListResponse.ReplicaInstancesEntry - 0, // 5: imrpc.DiskReplicaInstanceDeleteRequest.disk_type:type_name -> imrpc.DiskType - 2, // 6: imrpc.DiskReplicaInstanceListResponse.ReplicaInstancesEntry.value:type_name -> imrpc.ReplicaInstance - 3, // 7: imrpc.DiskService.DiskCreate:input_type -> imrpc.DiskCreateRequest - 5, // 8: imrpc.DiskService.DiskDelete:input_type -> imrpc.DiskDeleteRequest - 4, // 9: imrpc.DiskService.DiskGet:input_type -> imrpc.DiskGetRequest - 6, // 10: imrpc.DiskService.DiskReplicaInstanceList:input_type -> imrpc.DiskReplicaInstanceListRequest - 8, // 11: imrpc.DiskService.DiskReplicaInstanceDelete:input_type -> imrpc.DiskReplicaInstanceDeleteRequest - 11, // 12: imrpc.DiskService.VersionGet:input_type -> google.protobuf.Empty - 1, // 13: imrpc.DiskService.DiskCreate:output_type -> imrpc.Disk - 11, // 14: imrpc.DiskService.DiskDelete:output_type -> google.protobuf.Empty - 1, // 15: imrpc.DiskService.DiskGet:output_type -> imrpc.Disk - 7, // 16: imrpc.DiskService.DiskReplicaInstanceList:output_type -> imrpc.DiskReplicaInstanceListResponse - 11, // 17: imrpc.DiskService.DiskReplicaInstanceDelete:output_type -> google.protobuf.Empty - 9, // 18: imrpc.DiskService.VersionGet:output_type -> imrpc.DiskVersionResponse - 13, // [13:19] is the sub-list for method output_type - 7, // [7:13] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name -} - -func init() { file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_init() } -func file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_init() { - if File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Disk); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReplicaInstance); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DiskCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DiskGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DiskDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DiskReplicaInstanceListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DiskReplicaInstanceListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DiskReplicaInstanceDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DiskVersionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDesc, - NumEnums: 1, - NumMessages: 10, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_goTypes, - DependencyIndexes: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_depIdxs, - EnumInfos: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_enumTypes, - MessageInfos: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_msgTypes, - }.Build() - File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto = out.File - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_rawDesc = nil - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_goTypes = nil - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_disk_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// DiskServiceClient is the client API for DiskService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type DiskServiceClient interface { - DiskCreate(ctx context.Context, in *DiskCreateRequest, opts ...grpc.CallOption) (*Disk, error) - DiskDelete(ctx context.Context, in *DiskDeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - DiskGet(ctx context.Context, in *DiskGetRequest, opts ...grpc.CallOption) (*Disk, error) - DiskReplicaInstanceList(ctx context.Context, in *DiskReplicaInstanceListRequest, opts ...grpc.CallOption) (*DiskReplicaInstanceListResponse, error) - DiskReplicaInstanceDelete(ctx context.Context, in *DiskReplicaInstanceDeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - VersionGet(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DiskVersionResponse, error) -} - -type diskServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewDiskServiceClient(cc grpc.ClientConnInterface) DiskServiceClient { - return &diskServiceClient{cc} -} - -func (c *diskServiceClient) DiskCreate(ctx context.Context, in *DiskCreateRequest, opts ...grpc.CallOption) (*Disk, error) { - out := new(Disk) - err := c.cc.Invoke(ctx, "/imrpc.DiskService/DiskCreate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *diskServiceClient) DiskDelete(ctx context.Context, in *DiskDeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.DiskService/DiskDelete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *diskServiceClient) DiskGet(ctx context.Context, in *DiskGetRequest, opts ...grpc.CallOption) (*Disk, error) { - out := new(Disk) - err := c.cc.Invoke(ctx, "/imrpc.DiskService/DiskGet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *diskServiceClient) DiskReplicaInstanceList(ctx context.Context, in *DiskReplicaInstanceListRequest, opts ...grpc.CallOption) (*DiskReplicaInstanceListResponse, error) { - out := new(DiskReplicaInstanceListResponse) - err := c.cc.Invoke(ctx, "/imrpc.DiskService/DiskReplicaInstanceList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *diskServiceClient) DiskReplicaInstanceDelete(ctx context.Context, in *DiskReplicaInstanceDeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.DiskService/DiskReplicaInstanceDelete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *diskServiceClient) VersionGet(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DiskVersionResponse, error) { - out := new(DiskVersionResponse) - err := c.cc.Invoke(ctx, "/imrpc.DiskService/VersionGet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DiskServiceServer is the server API for DiskService service. -type DiskServiceServer interface { - DiskCreate(context.Context, *DiskCreateRequest) (*Disk, error) - DiskDelete(context.Context, *DiskDeleteRequest) (*emptypb.Empty, error) - DiskGet(context.Context, *DiskGetRequest) (*Disk, error) - DiskReplicaInstanceList(context.Context, *DiskReplicaInstanceListRequest) (*DiskReplicaInstanceListResponse, error) - DiskReplicaInstanceDelete(context.Context, *DiskReplicaInstanceDeleteRequest) (*emptypb.Empty, error) - VersionGet(context.Context, *emptypb.Empty) (*DiskVersionResponse, error) -} - -// UnimplementedDiskServiceServer can be embedded to have forward compatible implementations. -type UnimplementedDiskServiceServer struct { -} - -func (*UnimplementedDiskServiceServer) DiskCreate(context.Context, *DiskCreateRequest) (*Disk, error) { - return nil, status.Errorf(codes.Unimplemented, "method DiskCreate not implemented") -} -func (*UnimplementedDiskServiceServer) DiskDelete(context.Context, *DiskDeleteRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DiskDelete not implemented") -} -func (*UnimplementedDiskServiceServer) DiskGet(context.Context, *DiskGetRequest) (*Disk, error) { - return nil, status.Errorf(codes.Unimplemented, "method DiskGet not implemented") -} -func (*UnimplementedDiskServiceServer) DiskReplicaInstanceList(context.Context, *DiskReplicaInstanceListRequest) (*DiskReplicaInstanceListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DiskReplicaInstanceList not implemented") -} -func (*UnimplementedDiskServiceServer) DiskReplicaInstanceDelete(context.Context, *DiskReplicaInstanceDeleteRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DiskReplicaInstanceDelete not implemented") -} -func (*UnimplementedDiskServiceServer) VersionGet(context.Context, *emptypb.Empty) (*DiskVersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VersionGet not implemented") -} - -func RegisterDiskServiceServer(s *grpc.Server, srv DiskServiceServer) { - s.RegisterService(&_DiskService_serviceDesc, srv) -} - -func _DiskService_DiskCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DiskCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiskServiceServer).DiskCreate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.DiskService/DiskCreate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiskServiceServer).DiskCreate(ctx, req.(*DiskCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DiskService_DiskDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DiskDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiskServiceServer).DiskDelete(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.DiskService/DiskDelete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiskServiceServer).DiskDelete(ctx, req.(*DiskDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DiskService_DiskGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DiskGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiskServiceServer).DiskGet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.DiskService/DiskGet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiskServiceServer).DiskGet(ctx, req.(*DiskGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DiskService_DiskReplicaInstanceList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DiskReplicaInstanceListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiskServiceServer).DiskReplicaInstanceList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.DiskService/DiskReplicaInstanceList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiskServiceServer).DiskReplicaInstanceList(ctx, req.(*DiskReplicaInstanceListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DiskService_DiskReplicaInstanceDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DiskReplicaInstanceDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiskServiceServer).DiskReplicaInstanceDelete(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.DiskService/DiskReplicaInstanceDelete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiskServiceServer).DiskReplicaInstanceDelete(ctx, req.(*DiskReplicaInstanceDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DiskService_VersionGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiskServiceServer).VersionGet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.DiskService/VersionGet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiskServiceServer).VersionGet(ctx, req.(*emptypb.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -var _DiskService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "imrpc.DiskService", - HandlerType: (*DiskServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DiskCreate", - Handler: _DiskService_DiskCreate_Handler, - }, - { - MethodName: "DiskDelete", - Handler: _DiskService_DiskDelete_Handler, - }, - { - MethodName: "DiskGet", - Handler: _DiskService_DiskGet_Handler, - }, - { - MethodName: "DiskReplicaInstanceList", - Handler: _DiskService_DiskReplicaInstanceList_Handler, - }, - { - MethodName: "DiskReplicaInstanceDelete", - Handler: _DiskService_DiskReplicaInstanceDelete_Handler, - }, - { - MethodName: "VersionGet", - Handler: _DiskService_VersionGet_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "github.com/longhorn/longhorn-instance-manager/pkg/imrpc/disk.proto", -} diff --git a/pkg/imrpc/disk.proto b/pkg/imrpc/disk.proto deleted file mode 100644 index 5d1985568..000000000 --- a/pkg/imrpc/disk.proto +++ /dev/null @@ -1,97 +0,0 @@ -syntax="proto3"; - -package imrpc; - -option go_package = "github.com/longhorn/longhorn-instance-manager/pkg/imrpc"; - -import "google/protobuf/empty.proto"; - -service DiskService { - rpc DiskCreate(DiskCreateRequest) returns (Disk); - rpc DiskDelete(DiskDeleteRequest) returns (google.protobuf.Empty); - rpc DiskGet(DiskGetRequest) returns (Disk); - rpc DiskReplicaInstanceList(DiskReplicaInstanceListRequest) returns (DiskReplicaInstanceListResponse); - rpc DiskReplicaInstanceDelete(DiskReplicaInstanceDeleteRequest) returns (google.protobuf.Empty); - - rpc VersionGet(google.protobuf.Empty) returns(DiskVersionResponse); -} - -message Disk { - string id = 1; - string uuid = 2; - string path = 3; - string type = 4; - - int64 total_size = 5; - int64 free_size = 6; - - int64 total_blocks = 7; - int64 free_blocks = 8; - - int64 block_size = 9; - int64 cluster_size = 10; -} - -message ReplicaInstance { - string name = 1; - string uuid = 2; - string disk_name = 3; - string disk_uuid = 4; - uint64 spec_size = 5; - uint64 actual_size = 6; -} - -enum DiskType { - filesystem = 0; - block = 1; -} - -message DiskCreateRequest{ - DiskType disk_type = 1; - - string disk_name = 2; - string disk_uuid = 3; - string disk_path = 4; - int64 block_size = 5; -} - -message DiskGetRequest { - DiskType disk_type = 1; - - string disk_name = 2; - string disk_path = 3; -} - -message DiskDeleteRequest { - DiskType disk_type = 1; - - string disk_name = 2; - string disk_uuid = 3; -} - -message DiskReplicaInstanceListRequest { - DiskType disk_type = 1; - - string disk_name = 2; -} - -message DiskReplicaInstanceListResponse { - map replica_instances = 1; -} - -message DiskReplicaInstanceDeleteRequest { - DiskType disk_type = 1; - - string disk_name = 2; - string disk_uuid = 3; - string replcia_instance_name = 4; -} - -message DiskVersionResponse { - string version = 1; - string gitCommit = 2; - string buildDate = 3; - - int64 instanceManagerDiskServiceAPIVersion = 4; - int64 instanceManagerDiskServiceAPIMinVersion = 5; -} diff --git a/pkg/imrpc/imrpc.pb.go b/pkg/imrpc/imrpc.pb.go deleted file mode 100644 index 139d1ced7..000000000 --- a/pkg/imrpc/imrpc.pb.go +++ /dev/null @@ -1,1470 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v4.24.3 -// source: github.com/longhorn/longhorn-instance-manager/pkg/imrpc/imrpc.proto - -package imrpc - -import ( - context "context" - 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" - emptypb "google.golang.org/protobuf/types/known/emptypb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ProcessSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Binary string `protobuf:"bytes,2,opt,name=binary,proto3" json:"binary,omitempty"` - Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` - PortCount int32 `protobuf:"varint,4,opt,name=port_count,json=portCount,proto3" json:"port_count,omitempty"` - PortArgs []string `protobuf:"bytes,5,rep,name=port_args,json=portArgs,proto3" json:"port_args,omitempty"` -} - -func (x *ProcessSpec) Reset() { - *x = ProcessSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProcessSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProcessSpec) ProtoMessage() {} - -func (x *ProcessSpec) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProcessSpec.ProtoReflect.Descriptor instead. -func (*ProcessSpec) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescGZIP(), []int{0} -} - -func (x *ProcessSpec) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ProcessSpec) GetBinary() string { - if x != nil { - return x.Binary - } - return "" -} - -func (x *ProcessSpec) GetArgs() []string { - if x != nil { - return x.Args - } - return nil -} - -func (x *ProcessSpec) GetPortCount() int32 { - if x != nil { - return x.PortCount - } - return 0 -} - -func (x *ProcessSpec) GetPortArgs() []string { - if x != nil { - return x.PortArgs - } - return nil -} - -type ProcessStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` - ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` - PortStart int32 `protobuf:"varint,3,opt,name=port_start,json=portStart,proto3" json:"port_start,omitempty"` - PortEnd int32 `protobuf:"varint,4,opt,name=port_end,json=portEnd,proto3" json:"port_end,omitempty"` - Conditions map[string]bool `protobuf:"bytes,5,rep,name=conditions,proto3" json:"conditions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` -} - -func (x *ProcessStatus) Reset() { - *x = ProcessStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProcessStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProcessStatus) ProtoMessage() {} - -func (x *ProcessStatus) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProcessStatus.ProtoReflect.Descriptor instead. -func (*ProcessStatus) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescGZIP(), []int{1} -} - -func (x *ProcessStatus) GetState() string { - if x != nil { - return x.State - } - return "" -} - -func (x *ProcessStatus) GetErrorMsg() string { - if x != nil { - return x.ErrorMsg - } - return "" -} - -func (x *ProcessStatus) GetPortStart() int32 { - if x != nil { - return x.PortStart - } - return 0 -} - -func (x *ProcessStatus) GetPortEnd() int32 { - if x != nil { - return x.PortEnd - } - return 0 -} - -func (x *ProcessStatus) GetConditions() map[string]bool { - if x != nil { - return x.Conditions - } - return nil -} - -type ProcessCreateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Spec *ProcessSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` -} - -func (x *ProcessCreateRequest) Reset() { - *x = ProcessCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProcessCreateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProcessCreateRequest) ProtoMessage() {} - -func (x *ProcessCreateRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProcessCreateRequest.ProtoReflect.Descriptor instead. -func (*ProcessCreateRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescGZIP(), []int{2} -} - -func (x *ProcessCreateRequest) GetSpec() *ProcessSpec { - if x != nil { - return x.Spec - } - return nil -} - -type ProcessDeleteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *ProcessDeleteRequest) Reset() { - *x = ProcessDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProcessDeleteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProcessDeleteRequest) ProtoMessage() {} - -func (x *ProcessDeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProcessDeleteRequest.ProtoReflect.Descriptor instead. -func (*ProcessDeleteRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescGZIP(), []int{3} -} - -func (x *ProcessDeleteRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type ProcessGetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *ProcessGetRequest) Reset() { - *x = ProcessGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProcessGetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProcessGetRequest) ProtoMessage() {} - -func (x *ProcessGetRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProcessGetRequest.ProtoReflect.Descriptor instead. -func (*ProcessGetRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescGZIP(), []int{4} -} - -func (x *ProcessGetRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type ProcessResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Spec *ProcessSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` - Status *ProcessStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - Deleted bool `protobuf:"varint,3,opt,name=deleted,proto3" json:"deleted,omitempty"` -} - -func (x *ProcessResponse) Reset() { - *x = ProcessResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProcessResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProcessResponse) ProtoMessage() {} - -func (x *ProcessResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProcessResponse.ProtoReflect.Descriptor instead. -func (*ProcessResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescGZIP(), []int{5} -} - -func (x *ProcessResponse) GetSpec() *ProcessSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *ProcessResponse) GetStatus() *ProcessStatus { - if x != nil { - return x.Status - } - return nil -} - -func (x *ProcessResponse) GetDeleted() bool { - if x != nil { - return x.Deleted - } - return false -} - -type ProcessListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ProcessListRequest) Reset() { - *x = ProcessListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProcessListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProcessListRequest) ProtoMessage() {} - -func (x *ProcessListRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProcessListRequest.ProtoReflect.Descriptor instead. -func (*ProcessListRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescGZIP(), []int{6} -} - -type ProcessListResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Processes map[string]*ProcessResponse `protobuf:"bytes,1,rep,name=processes,proto3" json:"processes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *ProcessListResponse) Reset() { - *x = ProcessListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProcessListResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProcessListResponse) ProtoMessage() {} - -func (x *ProcessListResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProcessListResponse.ProtoReflect.Descriptor instead. -func (*ProcessListResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescGZIP(), []int{7} -} - -func (x *ProcessListResponse) GetProcesses() map[string]*ProcessResponse { - if x != nil { - return x.Processes - } - return nil -} - -type LogRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *LogRequest) Reset() { - *x = LogRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LogRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LogRequest) ProtoMessage() {} - -func (x *LogRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LogRequest.ProtoReflect.Descriptor instead. -func (*LogRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescGZIP(), []int{8} -} - -func (x *LogRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type ProcessReplaceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Spec *ProcessSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` - TerminateSignal string `protobuf:"bytes,2,opt,name=terminate_signal,json=terminateSignal,proto3" json:"terminate_signal,omitempty"` -} - -func (x *ProcessReplaceRequest) Reset() { - *x = ProcessReplaceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProcessReplaceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProcessReplaceRequest) ProtoMessage() {} - -func (x *ProcessReplaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProcessReplaceRequest.ProtoReflect.Descriptor instead. -func (*ProcessReplaceRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescGZIP(), []int{9} -} - -func (x *ProcessReplaceRequest) GetSpec() *ProcessSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *ProcessReplaceRequest) GetTerminateSignal() string { - if x != nil { - return x.TerminateSignal - } - return "" -} - -type LogResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Line string `protobuf:"bytes,2,opt,name=line,proto3" json:"line,omitempty"` -} - -func (x *LogResponse) Reset() { - *x = LogResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LogResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LogResponse) ProtoMessage() {} - -func (x *LogResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LogResponse.ProtoReflect.Descriptor instead. -func (*LogResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescGZIP(), []int{10} -} - -func (x *LogResponse) GetLine() string { - if x != nil { - return x.Line - } - return "" -} - -type VersionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - GitCommit string `protobuf:"bytes,2,opt,name=gitCommit,proto3" json:"gitCommit,omitempty"` - BuildDate string `protobuf:"bytes,3,opt,name=buildDate,proto3" json:"buildDate,omitempty"` - InstanceManagerAPIVersion int64 `protobuf:"varint,4,opt,name=instanceManagerAPIVersion,proto3" json:"instanceManagerAPIVersion,omitempty"` - InstanceManagerAPIMinVersion int64 `protobuf:"varint,5,opt,name=instanceManagerAPIMinVersion,proto3" json:"instanceManagerAPIMinVersion,omitempty"` - InstanceManagerProxyAPIVersion int64 `protobuf:"varint,6,opt,name=instanceManagerProxyAPIVersion,proto3" json:"instanceManagerProxyAPIVersion,omitempty"` - InstanceManagerProxyAPIMinVersion int64 `protobuf:"varint,7,opt,name=instanceManagerProxyAPIMinVersion,proto3" json:"instanceManagerProxyAPIMinVersion,omitempty"` -} - -func (x *VersionResponse) Reset() { - *x = VersionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VersionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VersionResponse) ProtoMessage() {} - -func (x *VersionResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead. -func (*VersionResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescGZIP(), []int{11} -} - -func (x *VersionResponse) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *VersionResponse) GetGitCommit() string { - if x != nil { - return x.GitCommit - } - return "" -} - -func (x *VersionResponse) GetBuildDate() string { - if x != nil { - return x.BuildDate - } - return "" -} - -func (x *VersionResponse) GetInstanceManagerAPIVersion() int64 { - if x != nil { - return x.InstanceManagerAPIVersion - } - return 0 -} - -func (x *VersionResponse) GetInstanceManagerAPIMinVersion() int64 { - if x != nil { - return x.InstanceManagerAPIMinVersion - } - return 0 -} - -func (x *VersionResponse) GetInstanceManagerProxyAPIVersion() int64 { - if x != nil { - return x.InstanceManagerProxyAPIVersion - } - return 0 -} - -func (x *VersionResponse) GetInstanceManagerProxyAPIMinVersion() int64 { - if x != nil { - return x.InstanceManagerProxyAPIMinVersion - } - return 0 -} - -var File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto protoreflect.FileDescriptor - -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDesc = []byte{ - 0x0a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, 0x6e, - 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2d, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, - 0x70, 0x6b, 0x67, 0x2f, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2f, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x70, - 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x12, 0x12, - 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, - 0x67, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x41, 0x72, 0x67, 0x73, 0x22, 0xfb, - 0x01, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, - 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, - 0x72, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x64, 0x12, 0x3e, 0x0a, - 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1e, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3d, 0x0a, - 0x0f, 0x43, 0x6f, 0x6e, 0x64, 0x69, 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, - 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x38, 0x0a, 0x14, - 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x70, 0x65, 0x63, - 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x2a, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, - 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x22, 0x27, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x75, 0x0a, 0x0f, 0x50, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, - 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x50, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, - 0x12, 0x26, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x0e, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x69, 0x73, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa8, 0x01, 0x0a, 0x13, 0x50, 0x72, 0x6f, - 0x63, 0x65, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x41, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x69, 0x73, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, - 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, - 0x73, 0x65, 0x73, 0x1a, 0x4e, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 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, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0x20, 0x0a, 0x0a, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x64, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, - 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, - 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x50, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, - 0x12, 0x29, 0x0a, 0x10, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x69, - 0x67, 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x61, 0x74, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x22, 0x21, 0x0a, 0x0b, 0x4c, - 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, - 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x22, 0xff, - 0x02, 0x0a, 0x0f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 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, 0x12, 0x1c, 0x0a, 0x09, - 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x75, - 0x69, 0x6c, 0x64, 0x44, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, - 0x75, 0x69, 0x6c, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x19, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x41, 0x50, 0x49, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x19, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x41, 0x50, 0x49, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x1c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x41, 0x50, 0x49, 0x4d, 0x69, 0x6e, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x69, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x41, 0x50, 0x49, - 0x4d, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x1e, 0x69, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x41, 0x50, 0x49, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x1e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x41, 0x50, 0x49, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x12, 0x4c, 0x0a, 0x21, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x41, 0x50, 0x49, 0x4d, 0x69, 0x6e, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x21, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x50, 0x72, - 0x6f, 0x78, 0x79, 0x41, 0x50, 0x49, 0x4d, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x32, 0xe2, 0x03, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x4d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x0d, 0x50, 0x72, - 0x6f, 0x63, 0x65, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x50, 0x72, - 0x6f, 0x63, 0x65, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3a, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, - 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, - 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, - 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x34, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x47, 0x65, 0x74, - 0x12, 0x12, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3a, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x63, - 0x65, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x13, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, - 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x50, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x2b, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x4c, - 0x6f, 0x67, 0x12, 0x0b, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x0c, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, - 0x01, 0x12, 0x3c, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x57, 0x61, 0x74, 0x63, - 0x68, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x10, 0x2e, 0x50, 0x72, 0x6f, 0x63, - 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, - 0x3c, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, - 0x65, 0x12, 0x16, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x61, - 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x50, 0x72, 0x6f, 0x63, - 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x36, 0x0a, - 0x0a, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x1a, 0x10, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, - 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x69, 0x6d, 0x72, 0x70, 0x63, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescOnce sync.Once - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescData = file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDesc -) - -func file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescGZIP() []byte { - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescOnce.Do(func() { - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescData) - }) - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDescData -} - -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_goTypes = []interface{}{ - (*ProcessSpec)(nil), // 0: ProcessSpec - (*ProcessStatus)(nil), // 1: ProcessStatus - (*ProcessCreateRequest)(nil), // 2: ProcessCreateRequest - (*ProcessDeleteRequest)(nil), // 3: ProcessDeleteRequest - (*ProcessGetRequest)(nil), // 4: ProcessGetRequest - (*ProcessResponse)(nil), // 5: ProcessResponse - (*ProcessListRequest)(nil), // 6: ProcessListRequest - (*ProcessListResponse)(nil), // 7: ProcessListResponse - (*LogRequest)(nil), // 8: LogRequest - (*ProcessReplaceRequest)(nil), // 9: ProcessReplaceRequest - (*LogResponse)(nil), // 10: LogResponse - (*VersionResponse)(nil), // 11: VersionResponse - nil, // 12: ProcessStatus.ConditionsEntry - nil, // 13: ProcessListResponse.ProcessesEntry - (*emptypb.Empty)(nil), // 14: google.protobuf.Empty -} -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_depIdxs = []int32{ - 12, // 0: ProcessStatus.conditions:type_name -> ProcessStatus.ConditionsEntry - 0, // 1: ProcessCreateRequest.spec:type_name -> ProcessSpec - 0, // 2: ProcessResponse.spec:type_name -> ProcessSpec - 1, // 3: ProcessResponse.status:type_name -> ProcessStatus - 13, // 4: ProcessListResponse.processes:type_name -> ProcessListResponse.ProcessesEntry - 0, // 5: ProcessReplaceRequest.spec:type_name -> ProcessSpec - 5, // 6: ProcessListResponse.ProcessesEntry.value:type_name -> ProcessResponse - 2, // 7: ProcessManagerService.ProcessCreate:input_type -> ProcessCreateRequest - 3, // 8: ProcessManagerService.ProcessDelete:input_type -> ProcessDeleteRequest - 4, // 9: ProcessManagerService.ProcessGet:input_type -> ProcessGetRequest - 6, // 10: ProcessManagerService.ProcessList:input_type -> ProcessListRequest - 8, // 11: ProcessManagerService.ProcessLog:input_type -> LogRequest - 14, // 12: ProcessManagerService.ProcessWatch:input_type -> google.protobuf.Empty - 9, // 13: ProcessManagerService.ProcessReplace:input_type -> ProcessReplaceRequest - 14, // 14: ProcessManagerService.VersionGet:input_type -> google.protobuf.Empty - 5, // 15: ProcessManagerService.ProcessCreate:output_type -> ProcessResponse - 5, // 16: ProcessManagerService.ProcessDelete:output_type -> ProcessResponse - 5, // 17: ProcessManagerService.ProcessGet:output_type -> ProcessResponse - 7, // 18: ProcessManagerService.ProcessList:output_type -> ProcessListResponse - 10, // 19: ProcessManagerService.ProcessLog:output_type -> LogResponse - 5, // 20: ProcessManagerService.ProcessWatch:output_type -> ProcessResponse - 5, // 21: ProcessManagerService.ProcessReplace:output_type -> ProcessResponse - 11, // 22: ProcessManagerService.VersionGet:output_type -> VersionResponse - 15, // [15:23] is the sub-list for method output_type - 7, // [7:15] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name -} - -func init() { file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_init() } -func file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_init() { - if File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LogRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessReplaceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LogResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VersionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDesc, - NumEnums: 0, - NumMessages: 14, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_goTypes, - DependencyIndexes: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_depIdxs, - MessageInfos: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_msgTypes, - }.Build() - File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto = out.File - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_rawDesc = nil - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_goTypes = nil - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// ProcessManagerServiceClient is the client API for ProcessManagerService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ProcessManagerServiceClient interface { - ProcessCreate(ctx context.Context, in *ProcessCreateRequest, opts ...grpc.CallOption) (*ProcessResponse, error) - ProcessDelete(ctx context.Context, in *ProcessDeleteRequest, opts ...grpc.CallOption) (*ProcessResponse, error) - ProcessGet(ctx context.Context, in *ProcessGetRequest, opts ...grpc.CallOption) (*ProcessResponse, error) - ProcessList(ctx context.Context, in *ProcessListRequest, opts ...grpc.CallOption) (*ProcessListResponse, error) - ProcessLog(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (ProcessManagerService_ProcessLogClient, error) - ProcessWatch(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (ProcessManagerService_ProcessWatchClient, error) - ProcessReplace(ctx context.Context, in *ProcessReplaceRequest, opts ...grpc.CallOption) (*ProcessResponse, error) - VersionGet(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionResponse, error) -} - -type processManagerServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewProcessManagerServiceClient(cc grpc.ClientConnInterface) ProcessManagerServiceClient { - return &processManagerServiceClient{cc} -} - -func (c *processManagerServiceClient) ProcessCreate(ctx context.Context, in *ProcessCreateRequest, opts ...grpc.CallOption) (*ProcessResponse, error) { - out := new(ProcessResponse) - err := c.cc.Invoke(ctx, "/ProcessManagerService/ProcessCreate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *processManagerServiceClient) ProcessDelete(ctx context.Context, in *ProcessDeleteRequest, opts ...grpc.CallOption) (*ProcessResponse, error) { - out := new(ProcessResponse) - err := c.cc.Invoke(ctx, "/ProcessManagerService/ProcessDelete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *processManagerServiceClient) ProcessGet(ctx context.Context, in *ProcessGetRequest, opts ...grpc.CallOption) (*ProcessResponse, error) { - out := new(ProcessResponse) - err := c.cc.Invoke(ctx, "/ProcessManagerService/ProcessGet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *processManagerServiceClient) ProcessList(ctx context.Context, in *ProcessListRequest, opts ...grpc.CallOption) (*ProcessListResponse, error) { - out := new(ProcessListResponse) - err := c.cc.Invoke(ctx, "/ProcessManagerService/ProcessList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *processManagerServiceClient) ProcessLog(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (ProcessManagerService_ProcessLogClient, error) { - stream, err := c.cc.NewStream(ctx, &_ProcessManagerService_serviceDesc.Streams[0], "/ProcessManagerService/ProcessLog", opts...) - if err != nil { - return nil, err - } - x := &processManagerServiceProcessLogClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ProcessManagerService_ProcessLogClient interface { - Recv() (*LogResponse, error) - grpc.ClientStream -} - -type processManagerServiceProcessLogClient struct { - grpc.ClientStream -} - -func (x *processManagerServiceProcessLogClient) Recv() (*LogResponse, error) { - m := new(LogResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *processManagerServiceClient) ProcessWatch(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (ProcessManagerService_ProcessWatchClient, error) { - stream, err := c.cc.NewStream(ctx, &_ProcessManagerService_serviceDesc.Streams[1], "/ProcessManagerService/ProcessWatch", opts...) - if err != nil { - return nil, err - } - x := &processManagerServiceProcessWatchClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ProcessManagerService_ProcessWatchClient interface { - Recv() (*ProcessResponse, error) - grpc.ClientStream -} - -type processManagerServiceProcessWatchClient struct { - grpc.ClientStream -} - -func (x *processManagerServiceProcessWatchClient) Recv() (*ProcessResponse, error) { - m := new(ProcessResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *processManagerServiceClient) ProcessReplace(ctx context.Context, in *ProcessReplaceRequest, opts ...grpc.CallOption) (*ProcessResponse, error) { - out := new(ProcessResponse) - err := c.cc.Invoke(ctx, "/ProcessManagerService/ProcessReplace", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *processManagerServiceClient) VersionGet(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionResponse, error) { - out := new(VersionResponse) - err := c.cc.Invoke(ctx, "/ProcessManagerService/VersionGet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ProcessManagerServiceServer is the server API for ProcessManagerService service. -type ProcessManagerServiceServer interface { - ProcessCreate(context.Context, *ProcessCreateRequest) (*ProcessResponse, error) - ProcessDelete(context.Context, *ProcessDeleteRequest) (*ProcessResponse, error) - ProcessGet(context.Context, *ProcessGetRequest) (*ProcessResponse, error) - ProcessList(context.Context, *ProcessListRequest) (*ProcessListResponse, error) - ProcessLog(*LogRequest, ProcessManagerService_ProcessLogServer) error - ProcessWatch(*emptypb.Empty, ProcessManagerService_ProcessWatchServer) error - ProcessReplace(context.Context, *ProcessReplaceRequest) (*ProcessResponse, error) - VersionGet(context.Context, *emptypb.Empty) (*VersionResponse, error) -} - -// UnimplementedProcessManagerServiceServer can be embedded to have forward compatible implementations. -type UnimplementedProcessManagerServiceServer struct { -} - -func (*UnimplementedProcessManagerServiceServer) ProcessCreate(context.Context, *ProcessCreateRequest) (*ProcessResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProcessCreate not implemented") -} -func (*UnimplementedProcessManagerServiceServer) ProcessDelete(context.Context, *ProcessDeleteRequest) (*ProcessResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProcessDelete not implemented") -} -func (*UnimplementedProcessManagerServiceServer) ProcessGet(context.Context, *ProcessGetRequest) (*ProcessResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProcessGet not implemented") -} -func (*UnimplementedProcessManagerServiceServer) ProcessList(context.Context, *ProcessListRequest) (*ProcessListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProcessList not implemented") -} -func (*UnimplementedProcessManagerServiceServer) ProcessLog(*LogRequest, ProcessManagerService_ProcessLogServer) error { - return status.Errorf(codes.Unimplemented, "method ProcessLog not implemented") -} -func (*UnimplementedProcessManagerServiceServer) ProcessWatch(*emptypb.Empty, ProcessManagerService_ProcessWatchServer) error { - return status.Errorf(codes.Unimplemented, "method ProcessWatch not implemented") -} -func (*UnimplementedProcessManagerServiceServer) ProcessReplace(context.Context, *ProcessReplaceRequest) (*ProcessResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProcessReplace not implemented") -} -func (*UnimplementedProcessManagerServiceServer) VersionGet(context.Context, *emptypb.Empty) (*VersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VersionGet not implemented") -} - -func RegisterProcessManagerServiceServer(s *grpc.Server, srv ProcessManagerServiceServer) { - s.RegisterService(&_ProcessManagerService_serviceDesc, srv) -} - -func _ProcessManagerService_ProcessCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProcessCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProcessManagerServiceServer).ProcessCreate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ProcessManagerService/ProcessCreate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProcessManagerServiceServer).ProcessCreate(ctx, req.(*ProcessCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProcessManagerService_ProcessDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProcessDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProcessManagerServiceServer).ProcessDelete(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ProcessManagerService/ProcessDelete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProcessManagerServiceServer).ProcessDelete(ctx, req.(*ProcessDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProcessManagerService_ProcessGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProcessGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProcessManagerServiceServer).ProcessGet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ProcessManagerService/ProcessGet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProcessManagerServiceServer).ProcessGet(ctx, req.(*ProcessGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProcessManagerService_ProcessList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProcessListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProcessManagerServiceServer).ProcessList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ProcessManagerService/ProcessList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProcessManagerServiceServer).ProcessList(ctx, req.(*ProcessListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProcessManagerService_ProcessLog_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(LogRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ProcessManagerServiceServer).ProcessLog(m, &processManagerServiceProcessLogServer{stream}) -} - -type ProcessManagerService_ProcessLogServer interface { - Send(*LogResponse) error - grpc.ServerStream -} - -type processManagerServiceProcessLogServer struct { - grpc.ServerStream -} - -func (x *processManagerServiceProcessLogServer) Send(m *LogResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _ProcessManagerService_ProcessWatch_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(emptypb.Empty) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ProcessManagerServiceServer).ProcessWatch(m, &processManagerServiceProcessWatchServer{stream}) -} - -type ProcessManagerService_ProcessWatchServer interface { - Send(*ProcessResponse) error - grpc.ServerStream -} - -type processManagerServiceProcessWatchServer struct { - grpc.ServerStream -} - -func (x *processManagerServiceProcessWatchServer) Send(m *ProcessResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _ProcessManagerService_ProcessReplace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProcessReplaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProcessManagerServiceServer).ProcessReplace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ProcessManagerService/ProcessReplace", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProcessManagerServiceServer).ProcessReplace(ctx, req.(*ProcessReplaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProcessManagerService_VersionGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProcessManagerServiceServer).VersionGet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ProcessManagerService/VersionGet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProcessManagerServiceServer).VersionGet(ctx, req.(*emptypb.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -var _ProcessManagerService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ProcessManagerService", - HandlerType: (*ProcessManagerServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ProcessCreate", - Handler: _ProcessManagerService_ProcessCreate_Handler, - }, - { - MethodName: "ProcessDelete", - Handler: _ProcessManagerService_ProcessDelete_Handler, - }, - { - MethodName: "ProcessGet", - Handler: _ProcessManagerService_ProcessGet_Handler, - }, - { - MethodName: "ProcessList", - Handler: _ProcessManagerService_ProcessList_Handler, - }, - { - MethodName: "ProcessReplace", - Handler: _ProcessManagerService_ProcessReplace_Handler, - }, - { - MethodName: "VersionGet", - Handler: _ProcessManagerService_VersionGet_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "ProcessLog", - Handler: _ProcessManagerService_ProcessLog_Handler, - ServerStreams: true, - }, - { - StreamName: "ProcessWatch", - Handler: _ProcessManagerService_ProcessWatch_Handler, - ServerStreams: true, - }, - }, - Metadata: "github.com/longhorn/longhorn-instance-manager/pkg/imrpc/imrpc.proto", -} diff --git a/pkg/imrpc/imrpc.proto b/pkg/imrpc/imrpc.proto deleted file mode 100644 index 51adf7f85..000000000 --- a/pkg/imrpc/imrpc.proto +++ /dev/null @@ -1,82 +0,0 @@ -syntax="proto3"; - -import "google/protobuf/empty.proto"; -option go_package = "github.com/longhorn/longhorn-instance-manager/pkg/imrpc"; - -service ProcessManagerService { - rpc ProcessCreate(ProcessCreateRequest) returns (ProcessResponse) {} - rpc ProcessDelete(ProcessDeleteRequest) returns (ProcessResponse) {} - rpc ProcessGet(ProcessGetRequest) returns (ProcessResponse) {} - rpc ProcessList(ProcessListRequest) returns (ProcessListResponse) {} - rpc ProcessLog(LogRequest) returns (stream LogResponse) {} - rpc ProcessWatch(google.protobuf.Empty) returns (stream ProcessResponse) {} - rpc ProcessReplace(ProcessReplaceRequest) returns (ProcessResponse) {} - - rpc VersionGet(google.protobuf.Empty) returns(VersionResponse); -} - -message ProcessSpec { - string name = 1; - string binary = 2; - repeated string args = 3; - int32 port_count = 4; - repeated string port_args = 5; -} - -message ProcessStatus { - string state = 1; - string error_msg = 2; - int32 port_start = 3; - int32 port_end = 4; - map conditions = 5; -} - -message ProcessCreateRequest { - ProcessSpec spec = 1; -} - -message ProcessDeleteRequest { - string name = 1; -} - -message ProcessGetRequest { - string name = 1; -} - -message ProcessResponse { - ProcessSpec spec = 1; - ProcessStatus status = 2; - bool deleted = 3; -} - -message ProcessListRequest{ -} - -message ProcessListResponse{ - map processes = 1; -} - -message LogRequest { - string name = 1; -} - -message ProcessReplaceRequest { - ProcessSpec spec = 1; - string terminate_signal = 2; -} - -message LogResponse { - string line = 2; -} - -message VersionResponse { - string version = 1; - string gitCommit = 2; - string buildDate = 3; - - int64 instanceManagerAPIVersion = 4; - int64 instanceManagerAPIMinVersion = 5; - - int64 instanceManagerProxyAPIVersion = 6; - int64 instanceManagerProxyAPIMinVersion = 7; -} diff --git a/pkg/imrpc/instance.pb.go b/pkg/imrpc/instance.pb.go deleted file mode 100644 index 8ee70fe26..000000000 --- a/pkg/imrpc/instance.pb.go +++ /dev/null @@ -1,1641 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v4.24.3 -// source: github.com/longhorn/longhorn-instance-manager/pkg/imrpc/instance.proto - -package imrpc - -import ( - context "context" - 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" - emptypb "google.golang.org/protobuf/types/known/emptypb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ProcessInstanceSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Binary string `protobuf:"bytes,1,opt,name=binary,proto3" json:"binary,omitempty"` - Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` -} - -func (x *ProcessInstanceSpec) Reset() { - *x = ProcessInstanceSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProcessInstanceSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProcessInstanceSpec) ProtoMessage() {} - -func (x *ProcessInstanceSpec) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProcessInstanceSpec.ProtoReflect.Descriptor instead. -func (*ProcessInstanceSpec) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescGZIP(), []int{0} -} - -func (x *ProcessInstanceSpec) GetBinary() string { - if x != nil { - return x.Binary - } - return "" -} - -func (x *ProcessInstanceSpec) GetArgs() []string { - if x != nil { - return x.Args - } - return nil -} - -type SpdkInstanceSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReplicaAddressMap map[string]string `protobuf:"bytes,1,rep,name=replica_address_map,json=replicaAddressMap,proto3" json:"replica_address_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - DiskName string `protobuf:"bytes,2,opt,name=disk_name,json=diskName,proto3" json:"disk_name,omitempty"` - DiskUuid string `protobuf:"bytes,3,opt,name=disk_uuid,json=diskUuid,proto3" json:"disk_uuid,omitempty"` - Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` - ExposeRequired bool `protobuf:"varint,5,opt,name=expose_required,json=exposeRequired,proto3" json:"expose_required,omitempty"` - Frontend string `protobuf:"bytes,6,opt,name=frontend,proto3" json:"frontend,omitempty"` -} - -func (x *SpdkInstanceSpec) Reset() { - *x = SpdkInstanceSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SpdkInstanceSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SpdkInstanceSpec) ProtoMessage() {} - -func (x *SpdkInstanceSpec) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SpdkInstanceSpec.ProtoReflect.Descriptor instead. -func (*SpdkInstanceSpec) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescGZIP(), []int{1} -} - -func (x *SpdkInstanceSpec) GetReplicaAddressMap() map[string]string { - if x != nil { - return x.ReplicaAddressMap - } - return nil -} - -func (x *SpdkInstanceSpec) GetDiskName() string { - if x != nil { - return x.DiskName - } - return "" -} - -func (x *SpdkInstanceSpec) GetDiskUuid() string { - if x != nil { - return x.DiskUuid - } - return "" -} - -func (x *SpdkInstanceSpec) GetSize() uint64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *SpdkInstanceSpec) GetExposeRequired() bool { - if x != nil { - return x.ExposeRequired - } - return false -} - -func (x *SpdkInstanceSpec) GetFrontend() string { - if x != nil { - return x.Frontend - } - return "" -} - -type InstanceSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Deprecated: Replaced by `data_engine`. - // - // Deprecated: Do not use. - BackendStoreDriver BackendStoreDriver `protobuf:"varint,1,opt,name=backend_store_driver,json=backendStoreDriver,proto3,enum=imrpc.BackendStoreDriver" json:"backend_store_driver,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - VolumeName string `protobuf:"bytes,4,opt,name=volume_name,json=volumeName,proto3" json:"volume_name,omitempty"` - PortCount int32 `protobuf:"varint,5,opt,name=port_count,json=portCount,proto3" json:"port_count,omitempty"` - PortArgs []string `protobuf:"bytes,6,rep,name=port_args,json=portArgs,proto3" json:"port_args,omitempty"` - ProcessInstanceSpec *ProcessInstanceSpec `protobuf:"bytes,7,opt,name=process_instance_spec,json=processInstanceSpec,proto3" json:"process_instance_spec,omitempty"` - SpdkInstanceSpec *SpdkInstanceSpec `protobuf:"bytes,8,opt,name=spdk_instance_spec,json=spdkInstanceSpec,proto3" json:"spdk_instance_spec,omitempty"` - DataEngine DataEngine `protobuf:"varint,9,opt,name=data_engine,json=dataEngine,proto3,enum=imrpc.DataEngine" json:"data_engine,omitempty"` -} - -func (x *InstanceSpec) Reset() { - *x = InstanceSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstanceSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstanceSpec) ProtoMessage() {} - -func (x *InstanceSpec) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstanceSpec.ProtoReflect.Descriptor instead. -func (*InstanceSpec) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescGZIP(), []int{2} -} - -// Deprecated: Do not use. -func (x *InstanceSpec) GetBackendStoreDriver() BackendStoreDriver { - if x != nil { - return x.BackendStoreDriver - } - return BackendStoreDriver_v1 -} - -func (x *InstanceSpec) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *InstanceSpec) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *InstanceSpec) GetVolumeName() string { - if x != nil { - return x.VolumeName - } - return "" -} - -func (x *InstanceSpec) GetPortCount() int32 { - if x != nil { - return x.PortCount - } - return 0 -} - -func (x *InstanceSpec) GetPortArgs() []string { - if x != nil { - return x.PortArgs - } - return nil -} - -func (x *InstanceSpec) GetProcessInstanceSpec() *ProcessInstanceSpec { - if x != nil { - return x.ProcessInstanceSpec - } - return nil -} - -func (x *InstanceSpec) GetSpdkInstanceSpec() *SpdkInstanceSpec { - if x != nil { - return x.SpdkInstanceSpec - } - return nil -} - -func (x *InstanceSpec) GetDataEngine() DataEngine { - if x != nil { - return x.DataEngine - } - return DataEngine_DATA_ENGINE_V1 -} - -type InstanceStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` - ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` - PortStart int32 `protobuf:"varint,3,opt,name=port_start,json=portStart,proto3" json:"port_start,omitempty"` - PortEnd int32 `protobuf:"varint,4,opt,name=port_end,json=portEnd,proto3" json:"port_end,omitempty"` - Conditions map[string]bool `protobuf:"bytes,5,rep,name=conditions,proto3" json:"conditions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` -} - -func (x *InstanceStatus) Reset() { - *x = InstanceStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstanceStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstanceStatus) ProtoMessage() {} - -func (x *InstanceStatus) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstanceStatus.ProtoReflect.Descriptor instead. -func (*InstanceStatus) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescGZIP(), []int{3} -} - -func (x *InstanceStatus) GetState() string { - if x != nil { - return x.State - } - return "" -} - -func (x *InstanceStatus) GetErrorMsg() string { - if x != nil { - return x.ErrorMsg - } - return "" -} - -func (x *InstanceStatus) GetPortStart() int32 { - if x != nil { - return x.PortStart - } - return 0 -} - -func (x *InstanceStatus) GetPortEnd() int32 { - if x != nil { - return x.PortEnd - } - return 0 -} - -func (x *InstanceStatus) GetConditions() map[string]bool { - if x != nil { - return x.Conditions - } - return nil -} - -type InstanceCreateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Spec *InstanceSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` -} - -func (x *InstanceCreateRequest) Reset() { - *x = InstanceCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstanceCreateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstanceCreateRequest) ProtoMessage() {} - -func (x *InstanceCreateRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstanceCreateRequest.ProtoReflect.Descriptor instead. -func (*InstanceCreateRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescGZIP(), []int{4} -} - -func (x *InstanceCreateRequest) GetSpec() *InstanceSpec { - if x != nil { - return x.Spec - } - return nil -} - -type InstanceDeleteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Deprecated: Replaced by `data_engine`. - // - // Deprecated: Do not use. - BackendStoreDriver BackendStoreDriver `protobuf:"varint,1,opt,name=backend_store_driver,json=backendStoreDriver,proto3,enum=imrpc.BackendStoreDriver" json:"backend_store_driver,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - DiskUuid string `protobuf:"bytes,4,opt,name=disk_uuid,json=diskUuid,proto3" json:"disk_uuid,omitempty"` - CleanupRequired bool `protobuf:"varint,5,opt,name=cleanup_required,json=cleanupRequired,proto3" json:"cleanup_required,omitempty"` - DataEngine DataEngine `protobuf:"varint,6,opt,name=data_engine,json=dataEngine,proto3,enum=imrpc.DataEngine" json:"data_engine,omitempty"` -} - -func (x *InstanceDeleteRequest) Reset() { - *x = InstanceDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstanceDeleteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstanceDeleteRequest) ProtoMessage() {} - -func (x *InstanceDeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstanceDeleteRequest.ProtoReflect.Descriptor instead. -func (*InstanceDeleteRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescGZIP(), []int{5} -} - -// Deprecated: Do not use. -func (x *InstanceDeleteRequest) GetBackendStoreDriver() BackendStoreDriver { - if x != nil { - return x.BackendStoreDriver - } - return BackendStoreDriver_v1 -} - -func (x *InstanceDeleteRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *InstanceDeleteRequest) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *InstanceDeleteRequest) GetDiskUuid() string { - if x != nil { - return x.DiskUuid - } - return "" -} - -func (x *InstanceDeleteRequest) GetCleanupRequired() bool { - if x != nil { - return x.CleanupRequired - } - return false -} - -func (x *InstanceDeleteRequest) GetDataEngine() DataEngine { - if x != nil { - return x.DataEngine - } - return DataEngine_DATA_ENGINE_V1 -} - -type InstanceGetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Deprecated: Replaced by `data_engine`. - // - // Deprecated: Do not use. - BackendStoreDriver BackendStoreDriver `protobuf:"varint,1,opt,name=backend_store_driver,json=backendStoreDriver,proto3,enum=imrpc.BackendStoreDriver" json:"backend_store_driver,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - DataEngine DataEngine `protobuf:"varint,4,opt,name=data_engine,json=dataEngine,proto3,enum=imrpc.DataEngine" json:"data_engine,omitempty"` -} - -func (x *InstanceGetRequest) Reset() { - *x = InstanceGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstanceGetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstanceGetRequest) ProtoMessage() {} - -func (x *InstanceGetRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstanceGetRequest.ProtoReflect.Descriptor instead. -func (*InstanceGetRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescGZIP(), []int{6} -} - -// Deprecated: Do not use. -func (x *InstanceGetRequest) GetBackendStoreDriver() BackendStoreDriver { - if x != nil { - return x.BackendStoreDriver - } - return BackendStoreDriver_v1 -} - -func (x *InstanceGetRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *InstanceGetRequest) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *InstanceGetRequest) GetDataEngine() DataEngine { - if x != nil { - return x.DataEngine - } - return DataEngine_DATA_ENGINE_V1 -} - -type InstanceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Spec *InstanceSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` - Status *InstanceStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - Deleted bool `protobuf:"varint,3,opt,name=deleted,proto3" json:"deleted,omitempty"` -} - -func (x *InstanceResponse) Reset() { - *x = InstanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstanceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstanceResponse) ProtoMessage() {} - -func (x *InstanceResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstanceResponse.ProtoReflect.Descriptor instead. -func (*InstanceResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescGZIP(), []int{7} -} - -func (x *InstanceResponse) GetSpec() *InstanceSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *InstanceResponse) GetStatus() *InstanceStatus { - if x != nil { - return x.Status - } - return nil -} - -func (x *InstanceResponse) GetDeleted() bool { - if x != nil { - return x.Deleted - } - return false -} - -type InstanceListResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Instances map[string]*InstanceResponse `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *InstanceListResponse) Reset() { - *x = InstanceListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstanceListResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstanceListResponse) ProtoMessage() {} - -func (x *InstanceListResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstanceListResponse.ProtoReflect.Descriptor instead. -func (*InstanceListResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescGZIP(), []int{8} -} - -func (x *InstanceListResponse) GetInstances() map[string]*InstanceResponse { - if x != nil { - return x.Instances - } - return nil -} - -type InstanceLogRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Deprecated: Replaced by `data_engine`. - // - // Deprecated: Do not use. - BackendStoreDriver BackendStoreDriver `protobuf:"varint,1,opt,name=backend_store_driver,json=backendStoreDriver,proto3,enum=imrpc.BackendStoreDriver" json:"backend_store_driver,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - DataEngine DataEngine `protobuf:"varint,4,opt,name=data_engine,json=dataEngine,proto3,enum=imrpc.DataEngine" json:"data_engine,omitempty"` -} - -func (x *InstanceLogRequest) Reset() { - *x = InstanceLogRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstanceLogRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstanceLogRequest) ProtoMessage() {} - -func (x *InstanceLogRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstanceLogRequest.ProtoReflect.Descriptor instead. -func (*InstanceLogRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescGZIP(), []int{9} -} - -// Deprecated: Do not use. -func (x *InstanceLogRequest) GetBackendStoreDriver() BackendStoreDriver { - if x != nil { - return x.BackendStoreDriver - } - return BackendStoreDriver_v1 -} - -func (x *InstanceLogRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *InstanceLogRequest) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *InstanceLogRequest) GetDataEngine() DataEngine { - if x != nil { - return x.DataEngine - } - return DataEngine_DATA_ENGINE_V1 -} - -type InstanceReplaceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Spec *InstanceSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` - TerminateSignal string `protobuf:"bytes,2,opt,name=terminate_signal,json=terminateSignal,proto3" json:"terminate_signal,omitempty"` -} - -func (x *InstanceReplaceRequest) Reset() { - *x = InstanceReplaceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstanceReplaceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstanceReplaceRequest) ProtoMessage() {} - -func (x *InstanceReplaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstanceReplaceRequest.ProtoReflect.Descriptor instead. -func (*InstanceReplaceRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescGZIP(), []int{10} -} - -func (x *InstanceReplaceRequest) GetSpec() *InstanceSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *InstanceReplaceRequest) GetTerminateSignal() string { - if x != nil { - return x.TerminateSignal - } - return "" -} - -var File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto protoreflect.FileDescriptor - -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDesc = []byte{ - 0x0a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, 0x6e, - 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2d, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, - 0x70, 0x6b, 0x67, 0x2f, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x1a, - 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x44, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, - 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2d, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, - 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, - 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, - 0x2d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2f, 0x69, 0x6d, 0x72, 0x70, - 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x41, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x63, 0x65, - 0x73, 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x16, - 0x0a, 0x06, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0xcb, 0x02, 0x0a, 0x10, 0x53, - 0x70, 0x64, 0x6b, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, - 0x5e, 0x0a, 0x13, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x69, - 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x70, 0x64, 0x6b, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x72, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x61, 0x70, 0x12, - 0x1b, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, - 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x64, 0x69, 0x73, 0x6b, 0x55, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x27, 0x0a, - 0x0f, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x64, 0x1a, 0x44, 0x0a, 0x16, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 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, 0xaf, 0x03, 0x0a, 0x0c, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x4f, 0x0a, 0x14, 0x62, 0x61, 0x63, - 0x6b, 0x65, 0x6e, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x64, 0x72, 0x69, 0x76, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, - 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x44, 0x72, 0x69, 0x76, - 0x65, 0x72, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x53, - 0x74, 0x6f, 0x72, 0x65, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x18, - 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x41, 0x72, 0x67, 0x73, 0x12, - 0x4e, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x63, - 0x65, 0x73, 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, - 0x45, 0x0a, 0x12, 0x73, 0x70, 0x64, 0x6b, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6d, - 0x72, 0x70, 0x63, 0x2e, 0x53, 0x70, 0x64, 0x6b, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x53, 0x70, 0x65, 0x63, 0x52, 0x10, 0x73, 0x70, 0x64, 0x6b, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x32, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x69, 0x6d, - 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x0a, - 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x22, 0x83, 0x02, 0x0a, 0x0e, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, - 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, - 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x07, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x64, 0x12, 0x45, 0x0a, 0x0a, 0x63, 0x6f, - 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x64, 0x69, 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, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x22, 0x40, 0x0a, 0x15, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x04, 0x73, 0x70, 0x65, - 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, - 0x65, 0x63, 0x22, 0x8c, 0x02, 0x0a, 0x15, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x14, - 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x64, 0x72, - 0x69, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, - 0x70, 0x63, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x44, - 0x72, 0x69, 0x76, 0x65, 0x72, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x62, 0x61, 0x63, 0x6b, 0x65, - 0x6e, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x75, 0x75, - 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x55, 0x75, - 0x69, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x5f, 0x72, 0x65, - 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x63, 0x6c, - 0x65, 0x61, 0x6e, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x32, 0x0a, - 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x22, 0xc1, 0x01, 0x0a, 0x12, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x47, 0x65, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x14, 0x62, 0x61, 0x63, 0x6b, - 0x65, 0x6e, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x42, - 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x44, 0x72, 0x69, 0x76, 0x65, - 0x72, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x53, 0x74, - 0x6f, 0x72, 0x65, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x12, 0x32, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x44, - 0x61, 0x74, 0x61, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x45, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x22, 0x84, 0x01, 0x0a, 0x10, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x04, 0x73, 0x70, - 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, - 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, - 0x70, 0x65, 0x63, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x22, 0xb7, 0x01, 0x0a, - 0x14, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, - 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x1a, - 0x55, 0x0a, 0x0e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 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, 0x2d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc1, 0x01, 0x0a, 0x12, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, - 0x14, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x64, - 0x72, 0x69, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x69, 0x6d, - 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x65, - 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x62, 0x61, 0x63, 0x6b, - 0x65, 0x6e, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x69, 0x6d, - 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x0a, - 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x22, 0x6c, 0x0a, 0x16, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x29, 0x0a, - 0x10, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, - 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, - 0x74, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x32, 0xb9, 0x04, 0x0a, 0x0f, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x49, 0x0a, 0x0e, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1c, - 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x69, - 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x0e, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1c, 0x2e, 0x69, 0x6d, 0x72, 0x70, - 0x63, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0b, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x47, 0x65, - 0x74, 0x12, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x69, - 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0c, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, - 0x1b, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3a, - 0x0a, 0x0b, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4c, 0x6f, 0x67, 0x12, 0x19, 0x2e, - 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4c, 0x6f, - 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0c, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x43, 0x0a, 0x0d, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x61, 0x74, 0x63, 0x68, 0x12, 0x16, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x30, 0x01, 0x12, - 0x4b, 0x0a, 0x0f, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x61, - 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x17, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x0a, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x1a, 0x10, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, - 0x68, 0x6f, 0x72, 0x6e, 0x2d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescOnce sync.Once - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescData = file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDesc -) - -func file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescGZIP() []byte { - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescOnce.Do(func() { - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescData) - }) - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDescData -} - -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_goTypes = []interface{}{ - (*ProcessInstanceSpec)(nil), // 0: imrpc.ProcessInstanceSpec - (*SpdkInstanceSpec)(nil), // 1: imrpc.SpdkInstanceSpec - (*InstanceSpec)(nil), // 2: imrpc.InstanceSpec - (*InstanceStatus)(nil), // 3: imrpc.InstanceStatus - (*InstanceCreateRequest)(nil), // 4: imrpc.InstanceCreateRequest - (*InstanceDeleteRequest)(nil), // 5: imrpc.InstanceDeleteRequest - (*InstanceGetRequest)(nil), // 6: imrpc.InstanceGetRequest - (*InstanceResponse)(nil), // 7: imrpc.InstanceResponse - (*InstanceListResponse)(nil), // 8: imrpc.InstanceListResponse - (*InstanceLogRequest)(nil), // 9: imrpc.InstanceLogRequest - (*InstanceReplaceRequest)(nil), // 10: imrpc.InstanceReplaceRequest - nil, // 11: imrpc.SpdkInstanceSpec.ReplicaAddressMapEntry - nil, // 12: imrpc.InstanceStatus.ConditionsEntry - nil, // 13: imrpc.InstanceListResponse.InstancesEntry - (BackendStoreDriver)(0), // 14: imrpc.BackendStoreDriver - (DataEngine)(0), // 15: imrpc.DataEngine - (*emptypb.Empty)(nil), // 16: google.protobuf.Empty - (*LogResponse)(nil), // 17: LogResponse - (*VersionResponse)(nil), // 18: VersionResponse -} -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_depIdxs = []int32{ - 11, // 0: imrpc.SpdkInstanceSpec.replica_address_map:type_name -> imrpc.SpdkInstanceSpec.ReplicaAddressMapEntry - 14, // 1: imrpc.InstanceSpec.backend_store_driver:type_name -> imrpc.BackendStoreDriver - 0, // 2: imrpc.InstanceSpec.process_instance_spec:type_name -> imrpc.ProcessInstanceSpec - 1, // 3: imrpc.InstanceSpec.spdk_instance_spec:type_name -> imrpc.SpdkInstanceSpec - 15, // 4: imrpc.InstanceSpec.data_engine:type_name -> imrpc.DataEngine - 12, // 5: imrpc.InstanceStatus.conditions:type_name -> imrpc.InstanceStatus.ConditionsEntry - 2, // 6: imrpc.InstanceCreateRequest.spec:type_name -> imrpc.InstanceSpec - 14, // 7: imrpc.InstanceDeleteRequest.backend_store_driver:type_name -> imrpc.BackendStoreDriver - 15, // 8: imrpc.InstanceDeleteRequest.data_engine:type_name -> imrpc.DataEngine - 14, // 9: imrpc.InstanceGetRequest.backend_store_driver:type_name -> imrpc.BackendStoreDriver - 15, // 10: imrpc.InstanceGetRequest.data_engine:type_name -> imrpc.DataEngine - 2, // 11: imrpc.InstanceResponse.spec:type_name -> imrpc.InstanceSpec - 3, // 12: imrpc.InstanceResponse.status:type_name -> imrpc.InstanceStatus - 13, // 13: imrpc.InstanceListResponse.instances:type_name -> imrpc.InstanceListResponse.InstancesEntry - 14, // 14: imrpc.InstanceLogRequest.backend_store_driver:type_name -> imrpc.BackendStoreDriver - 15, // 15: imrpc.InstanceLogRequest.data_engine:type_name -> imrpc.DataEngine - 2, // 16: imrpc.InstanceReplaceRequest.spec:type_name -> imrpc.InstanceSpec - 7, // 17: imrpc.InstanceListResponse.InstancesEntry.value:type_name -> imrpc.InstanceResponse - 4, // 18: imrpc.InstanceService.InstanceCreate:input_type -> imrpc.InstanceCreateRequest - 5, // 19: imrpc.InstanceService.InstanceDelete:input_type -> imrpc.InstanceDeleteRequest - 6, // 20: imrpc.InstanceService.InstanceGet:input_type -> imrpc.InstanceGetRequest - 16, // 21: imrpc.InstanceService.InstanceList:input_type -> google.protobuf.Empty - 9, // 22: imrpc.InstanceService.InstanceLog:input_type -> imrpc.InstanceLogRequest - 16, // 23: imrpc.InstanceService.InstanceWatch:input_type -> google.protobuf.Empty - 10, // 24: imrpc.InstanceService.InstanceReplace:input_type -> imrpc.InstanceReplaceRequest - 16, // 25: imrpc.InstanceService.VersionGet:input_type -> google.protobuf.Empty - 7, // 26: imrpc.InstanceService.InstanceCreate:output_type -> imrpc.InstanceResponse - 7, // 27: imrpc.InstanceService.InstanceDelete:output_type -> imrpc.InstanceResponse - 7, // 28: imrpc.InstanceService.InstanceGet:output_type -> imrpc.InstanceResponse - 8, // 29: imrpc.InstanceService.InstanceList:output_type -> imrpc.InstanceListResponse - 17, // 30: imrpc.InstanceService.InstanceLog:output_type -> LogResponse - 16, // 31: imrpc.InstanceService.InstanceWatch:output_type -> google.protobuf.Empty - 7, // 32: imrpc.InstanceService.InstanceReplace:output_type -> imrpc.InstanceResponse - 18, // 33: imrpc.InstanceService.VersionGet:output_type -> VersionResponse - 26, // [26:34] is the sub-list for method output_type - 18, // [18:26] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name -} - -func init() { file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_init() } -func file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_init() { - if File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto != nil { - return - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_init() - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_imrpc_proto_init() - if !protoimpl.UnsafeEnabled { - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessInstanceSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SpdkInstanceSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstanceSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstanceStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstanceCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstanceDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstanceGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstanceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstanceListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstanceLogRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstanceReplaceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDesc, - NumEnums: 0, - NumMessages: 14, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_goTypes, - DependencyIndexes: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_depIdxs, - MessageInfos: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_msgTypes, - }.Build() - File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto = out.File - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_rawDesc = nil - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_goTypes = nil - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_instance_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// InstanceServiceClient is the client API for InstanceService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type InstanceServiceClient interface { - InstanceCreate(ctx context.Context, in *InstanceCreateRequest, opts ...grpc.CallOption) (*InstanceResponse, error) - InstanceDelete(ctx context.Context, in *InstanceDeleteRequest, opts ...grpc.CallOption) (*InstanceResponse, error) - InstanceGet(ctx context.Context, in *InstanceGetRequest, opts ...grpc.CallOption) (*InstanceResponse, error) - InstanceList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*InstanceListResponse, error) - InstanceLog(ctx context.Context, in *InstanceLogRequest, opts ...grpc.CallOption) (InstanceService_InstanceLogClient, error) - InstanceWatch(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (InstanceService_InstanceWatchClient, error) - InstanceReplace(ctx context.Context, in *InstanceReplaceRequest, opts ...grpc.CallOption) (*InstanceResponse, error) - VersionGet(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionResponse, error) -} - -type instanceServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewInstanceServiceClient(cc grpc.ClientConnInterface) InstanceServiceClient { - return &instanceServiceClient{cc} -} - -func (c *instanceServiceClient) InstanceCreate(ctx context.Context, in *InstanceCreateRequest, opts ...grpc.CallOption) (*InstanceResponse, error) { - out := new(InstanceResponse) - err := c.cc.Invoke(ctx, "/imrpc.InstanceService/InstanceCreate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *instanceServiceClient) InstanceDelete(ctx context.Context, in *InstanceDeleteRequest, opts ...grpc.CallOption) (*InstanceResponse, error) { - out := new(InstanceResponse) - err := c.cc.Invoke(ctx, "/imrpc.InstanceService/InstanceDelete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *instanceServiceClient) InstanceGet(ctx context.Context, in *InstanceGetRequest, opts ...grpc.CallOption) (*InstanceResponse, error) { - out := new(InstanceResponse) - err := c.cc.Invoke(ctx, "/imrpc.InstanceService/InstanceGet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *instanceServiceClient) InstanceList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*InstanceListResponse, error) { - out := new(InstanceListResponse) - err := c.cc.Invoke(ctx, "/imrpc.InstanceService/InstanceList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *instanceServiceClient) InstanceLog(ctx context.Context, in *InstanceLogRequest, opts ...grpc.CallOption) (InstanceService_InstanceLogClient, error) { - stream, err := c.cc.NewStream(ctx, &_InstanceService_serviceDesc.Streams[0], "/imrpc.InstanceService/InstanceLog", opts...) - if err != nil { - return nil, err - } - x := &instanceServiceInstanceLogClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type InstanceService_InstanceLogClient interface { - Recv() (*LogResponse, error) - grpc.ClientStream -} - -type instanceServiceInstanceLogClient struct { - grpc.ClientStream -} - -func (x *instanceServiceInstanceLogClient) Recv() (*LogResponse, error) { - m := new(LogResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *instanceServiceClient) InstanceWatch(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (InstanceService_InstanceWatchClient, error) { - stream, err := c.cc.NewStream(ctx, &_InstanceService_serviceDesc.Streams[1], "/imrpc.InstanceService/InstanceWatch", opts...) - if err != nil { - return nil, err - } - x := &instanceServiceInstanceWatchClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type InstanceService_InstanceWatchClient interface { - Recv() (*emptypb.Empty, error) - grpc.ClientStream -} - -type instanceServiceInstanceWatchClient struct { - grpc.ClientStream -} - -func (x *instanceServiceInstanceWatchClient) Recv() (*emptypb.Empty, error) { - m := new(emptypb.Empty) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *instanceServiceClient) InstanceReplace(ctx context.Context, in *InstanceReplaceRequest, opts ...grpc.CallOption) (*InstanceResponse, error) { - out := new(InstanceResponse) - err := c.cc.Invoke(ctx, "/imrpc.InstanceService/InstanceReplace", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *instanceServiceClient) VersionGet(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionResponse, error) { - out := new(VersionResponse) - err := c.cc.Invoke(ctx, "/imrpc.InstanceService/VersionGet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// InstanceServiceServer is the server API for InstanceService service. -type InstanceServiceServer interface { - InstanceCreate(context.Context, *InstanceCreateRequest) (*InstanceResponse, error) - InstanceDelete(context.Context, *InstanceDeleteRequest) (*InstanceResponse, error) - InstanceGet(context.Context, *InstanceGetRequest) (*InstanceResponse, error) - InstanceList(context.Context, *emptypb.Empty) (*InstanceListResponse, error) - InstanceLog(*InstanceLogRequest, InstanceService_InstanceLogServer) error - InstanceWatch(*emptypb.Empty, InstanceService_InstanceWatchServer) error - InstanceReplace(context.Context, *InstanceReplaceRequest) (*InstanceResponse, error) - VersionGet(context.Context, *emptypb.Empty) (*VersionResponse, error) -} - -// UnimplementedInstanceServiceServer can be embedded to have forward compatible implementations. -type UnimplementedInstanceServiceServer struct { -} - -func (*UnimplementedInstanceServiceServer) InstanceCreate(context.Context, *InstanceCreateRequest) (*InstanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InstanceCreate not implemented") -} -func (*UnimplementedInstanceServiceServer) InstanceDelete(context.Context, *InstanceDeleteRequest) (*InstanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InstanceDelete not implemented") -} -func (*UnimplementedInstanceServiceServer) InstanceGet(context.Context, *InstanceGetRequest) (*InstanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InstanceGet not implemented") -} -func (*UnimplementedInstanceServiceServer) InstanceList(context.Context, *emptypb.Empty) (*InstanceListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InstanceList not implemented") -} -func (*UnimplementedInstanceServiceServer) InstanceLog(*InstanceLogRequest, InstanceService_InstanceLogServer) error { - return status.Errorf(codes.Unimplemented, "method InstanceLog not implemented") -} -func (*UnimplementedInstanceServiceServer) InstanceWatch(*emptypb.Empty, InstanceService_InstanceWatchServer) error { - return status.Errorf(codes.Unimplemented, "method InstanceWatch not implemented") -} -func (*UnimplementedInstanceServiceServer) InstanceReplace(context.Context, *InstanceReplaceRequest) (*InstanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InstanceReplace not implemented") -} -func (*UnimplementedInstanceServiceServer) VersionGet(context.Context, *emptypb.Empty) (*VersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VersionGet not implemented") -} - -func RegisterInstanceServiceServer(s *grpc.Server, srv InstanceServiceServer) { - s.RegisterService(&_InstanceService_serviceDesc, srv) -} - -func _InstanceService_InstanceCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InstanceCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InstanceServiceServer).InstanceCreate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.InstanceService/InstanceCreate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InstanceServiceServer).InstanceCreate(ctx, req.(*InstanceCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _InstanceService_InstanceDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InstanceDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InstanceServiceServer).InstanceDelete(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.InstanceService/InstanceDelete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InstanceServiceServer).InstanceDelete(ctx, req.(*InstanceDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _InstanceService_InstanceGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InstanceGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InstanceServiceServer).InstanceGet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.InstanceService/InstanceGet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InstanceServiceServer).InstanceGet(ctx, req.(*InstanceGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _InstanceService_InstanceList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InstanceServiceServer).InstanceList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.InstanceService/InstanceList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InstanceServiceServer).InstanceList(ctx, req.(*emptypb.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _InstanceService_InstanceLog_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(InstanceLogRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(InstanceServiceServer).InstanceLog(m, &instanceServiceInstanceLogServer{stream}) -} - -type InstanceService_InstanceLogServer interface { - Send(*LogResponse) error - grpc.ServerStream -} - -type instanceServiceInstanceLogServer struct { - grpc.ServerStream -} - -func (x *instanceServiceInstanceLogServer) Send(m *LogResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _InstanceService_InstanceWatch_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(emptypb.Empty) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(InstanceServiceServer).InstanceWatch(m, &instanceServiceInstanceWatchServer{stream}) -} - -type InstanceService_InstanceWatchServer interface { - Send(*emptypb.Empty) error - grpc.ServerStream -} - -type instanceServiceInstanceWatchServer struct { - grpc.ServerStream -} - -func (x *instanceServiceInstanceWatchServer) Send(m *emptypb.Empty) error { - return x.ServerStream.SendMsg(m) -} - -func _InstanceService_InstanceReplace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InstanceReplaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InstanceServiceServer).InstanceReplace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.InstanceService/InstanceReplace", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InstanceServiceServer).InstanceReplace(ctx, req.(*InstanceReplaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _InstanceService_VersionGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InstanceServiceServer).VersionGet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.InstanceService/VersionGet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InstanceServiceServer).VersionGet(ctx, req.(*emptypb.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -var _InstanceService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "imrpc.InstanceService", - HandlerType: (*InstanceServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "InstanceCreate", - Handler: _InstanceService_InstanceCreate_Handler, - }, - { - MethodName: "InstanceDelete", - Handler: _InstanceService_InstanceDelete_Handler, - }, - { - MethodName: "InstanceGet", - Handler: _InstanceService_InstanceGet_Handler, - }, - { - MethodName: "InstanceList", - Handler: _InstanceService_InstanceList_Handler, - }, - { - MethodName: "InstanceReplace", - Handler: _InstanceService_InstanceReplace_Handler, - }, - { - MethodName: "VersionGet", - Handler: _InstanceService_VersionGet_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "InstanceLog", - Handler: _InstanceService_InstanceLog_Handler, - ServerStreams: true, - }, - { - StreamName: "InstanceWatch", - Handler: _InstanceService_InstanceWatch_Handler, - ServerStreams: true, - }, - }, - Metadata: "github.com/longhorn/longhorn-instance-manager/pkg/imrpc/instance.proto", -} diff --git a/pkg/imrpc/instance.proto b/pkg/imrpc/instance.proto deleted file mode 100644 index e169a7c42..000000000 --- a/pkg/imrpc/instance.proto +++ /dev/null @@ -1,104 +0,0 @@ -syntax="proto3"; - -package imrpc; - -option go_package = "github.com/longhorn/longhorn-instance-manager/pkg/imrpc"; - -import "google/protobuf/empty.proto"; -import "github.com/longhorn/longhorn-instance-manager/pkg/imrpc/common.proto"; -import "github.com/longhorn/longhorn-instance-manager/pkg/imrpc/imrpc.proto"; - -service InstanceService { - rpc InstanceCreate(InstanceCreateRequest) returns (InstanceResponse) {} - rpc InstanceDelete(InstanceDeleteRequest) returns (InstanceResponse) {} - rpc InstanceGet(InstanceGetRequest) returns (InstanceResponse) {} - rpc InstanceList(google.protobuf.Empty) returns (InstanceListResponse) {} - rpc InstanceLog(InstanceLogRequest) returns (stream LogResponse) {} - rpc InstanceWatch(google.protobuf.Empty) returns (stream google.protobuf.Empty) {} - rpc InstanceReplace(InstanceReplaceRequest) returns (InstanceResponse) {} - - rpc VersionGet(google.protobuf.Empty) returns (VersionResponse); -} - -message ProcessInstanceSpec { - string binary = 1; - repeated string args = 2; -} - -message SpdkInstanceSpec { - map replica_address_map = 1; - string disk_name = 2; - string disk_uuid = 3; - uint64 size = 4; - bool expose_required = 5; - string frontend = 6; -} - -message InstanceSpec { - // Deprecated: Replaced by `data_engine`. - BackendStoreDriver backend_store_driver = 1 [deprecated=true]; - string name = 2; - string type = 3; - string volume_name = 4; - - int32 port_count = 5; - repeated string port_args = 6; - - ProcessInstanceSpec process_instance_spec = 7; - SpdkInstanceSpec spdk_instance_spec = 8; - DataEngine data_engine = 9; -} - -message InstanceStatus { - string state = 1; - string error_msg = 2; - int32 port_start = 3; - int32 port_end = 4; - map conditions = 5; -} - -message InstanceCreateRequest { - InstanceSpec spec = 1; -} - -message InstanceDeleteRequest { - // Deprecated: Replaced by `data_engine`. - BackendStoreDriver backend_store_driver = 1 [deprecated=true]; - string name = 2; - string type = 3; - - string disk_uuid = 4; - bool cleanup_required = 5; - DataEngine data_engine = 6; -} - -message InstanceGetRequest { - // Deprecated: Replaced by `data_engine`. - BackendStoreDriver backend_store_driver = 1 [deprecated=true]; - string name = 2; - string type = 3; - DataEngine data_engine = 4; -} - -message InstanceResponse { - InstanceSpec spec = 1; - InstanceStatus status = 2; - bool deleted = 3; -} - -message InstanceListResponse{ - map instances = 1; -} - -message InstanceLogRequest { - // Deprecated: Replaced by `data_engine`. - BackendStoreDriver backend_store_driver = 1 [deprecated=true]; - string name = 2; - string type = 3; - DataEngine data_engine = 4; -} - -message InstanceReplaceRequest { - InstanceSpec spec = 1; - string terminate_signal = 2; -} diff --git a/pkg/imrpc/proxy.pb.go b/pkg/imrpc/proxy.pb.go deleted file mode 100644 index 73e376df7..000000000 --- a/pkg/imrpc/proxy.pb.go +++ /dev/null @@ -1,4968 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v4.24.3 -// source: github.com/longhorn/longhorn-instance-manager/pkg/imrpc/proxy.proto - -package imrpc - -import ( - context "context" - ptypes "github.com/longhorn/longhorn-engine/proto/ptypes" - 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" - emptypb "google.golang.org/protobuf/types/known/emptypb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ProxyEngineRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // Deprecated: Replaced by `data_engine`. - // - // Deprecated: Do not use. - BackendStoreDriver BackendStoreDriver `protobuf:"varint,2,opt,name=backend_store_driver,json=backendStoreDriver,proto3,enum=imrpc.BackendStoreDriver" json:"backend_store_driver,omitempty"` - EngineName string `protobuf:"bytes,3,opt,name=engine_name,json=engineName,proto3" json:"engine_name,omitempty"` - VolumeName string `protobuf:"bytes,4,opt,name=volume_name,json=volumeName,proto3" json:"volume_name,omitempty"` - DataEngine DataEngine `protobuf:"varint,5,opt,name=data_engine,json=dataEngine,proto3,enum=imrpc.DataEngine" json:"data_engine,omitempty"` -} - -func (x *ProxyEngineRequest) Reset() { - *x = ProxyEngineRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProxyEngineRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProxyEngineRequest) ProtoMessage() {} - -func (x *ProxyEngineRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProxyEngineRequest.ProtoReflect.Descriptor instead. -func (*ProxyEngineRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{0} -} - -func (x *ProxyEngineRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -// Deprecated: Do not use. -func (x *ProxyEngineRequest) GetBackendStoreDriver() BackendStoreDriver { - if x != nil { - return x.BackendStoreDriver - } - return BackendStoreDriver_v1 -} - -func (x *ProxyEngineRequest) GetEngineName() string { - if x != nil { - return x.EngineName - } - return "" -} - -func (x *ProxyEngineRequest) GetVolumeName() string { - if x != nil { - return x.VolumeName - } - return "" -} - -func (x *ProxyEngineRequest) GetDataEngine() DataEngine { - if x != nil { - return x.DataEngine - } - return DataEngine_DATA_ENGINE_V1 -} - -type EngineVersionProxyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version *ptypes.VersionOutput `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` -} - -func (x *EngineVersionProxyResponse) Reset() { - *x = EngineVersionProxyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineVersionProxyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineVersionProxyResponse) ProtoMessage() {} - -func (x *EngineVersionProxyResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineVersionProxyResponse.ProtoReflect.Descriptor instead. -func (*EngineVersionProxyResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{1} -} - -func (x *EngineVersionProxyResponse) GetVersion() *ptypes.VersionOutput { - if x != nil { - return x.Version - } - return nil -} - -type EngineVolumeGetProxyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Volume *ptypes.Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"` -} - -func (x *EngineVolumeGetProxyResponse) Reset() { - *x = EngineVolumeGetProxyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineVolumeGetProxyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineVolumeGetProxyResponse) ProtoMessage() {} - -func (x *EngineVolumeGetProxyResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineVolumeGetProxyResponse.ProtoReflect.Descriptor instead. -func (*EngineVolumeGetProxyResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{2} -} - -func (x *EngineVolumeGetProxyResponse) GetVolume() *ptypes.Volume { - if x != nil { - return x.Volume - } - return nil -} - -type EngineVolumeExpandRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - Expand *ptypes.VolumeExpandRequest `protobuf:"bytes,2,opt,name=expand,proto3" json:"expand,omitempty"` -} - -func (x *EngineVolumeExpandRequest) Reset() { - *x = EngineVolumeExpandRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineVolumeExpandRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineVolumeExpandRequest) ProtoMessage() {} - -func (x *EngineVolumeExpandRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineVolumeExpandRequest.ProtoReflect.Descriptor instead. -func (*EngineVolumeExpandRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{3} -} - -func (x *EngineVolumeExpandRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineVolumeExpandRequest) GetExpand() *ptypes.VolumeExpandRequest { - if x != nil { - return x.Expand - } - return nil -} - -type EngineVolumeFrontendStartRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - FrontendStart *ptypes.VolumeFrontendStartRequest `protobuf:"bytes,2,opt,name=frontend_start,json=frontendStart,proto3" json:"frontend_start,omitempty"` -} - -func (x *EngineVolumeFrontendStartRequest) Reset() { - *x = EngineVolumeFrontendStartRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineVolumeFrontendStartRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineVolumeFrontendStartRequest) ProtoMessage() {} - -func (x *EngineVolumeFrontendStartRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineVolumeFrontendStartRequest.ProtoReflect.Descriptor instead. -func (*EngineVolumeFrontendStartRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{4} -} - -func (x *EngineVolumeFrontendStartRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineVolumeFrontendStartRequest) GetFrontendStart() *ptypes.VolumeFrontendStartRequest { - if x != nil { - return x.FrontendStart - } - return nil -} - -type EngineVolumeSnapshotRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - SnapshotVolume *ptypes.VolumeSnapshotRequest `protobuf:"bytes,2,opt,name=snapshot_volume,json=snapshotVolume,proto3" json:"snapshot_volume,omitempty"` -} - -func (x *EngineVolumeSnapshotRequest) Reset() { - *x = EngineVolumeSnapshotRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineVolumeSnapshotRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineVolumeSnapshotRequest) ProtoMessage() {} - -func (x *EngineVolumeSnapshotRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineVolumeSnapshotRequest.ProtoReflect.Descriptor instead. -func (*EngineVolumeSnapshotRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{5} -} - -func (x *EngineVolumeSnapshotRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineVolumeSnapshotRequest) GetSnapshotVolume() *ptypes.VolumeSnapshotRequest { - if x != nil { - return x.SnapshotVolume - } - return nil -} - -type EngineVolumeSnapshotProxyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Snapshot *ptypes.VolumeSnapshotReply `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"` -} - -func (x *EngineVolumeSnapshotProxyResponse) Reset() { - *x = EngineVolumeSnapshotProxyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineVolumeSnapshotProxyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineVolumeSnapshotProxyResponse) ProtoMessage() {} - -func (x *EngineVolumeSnapshotProxyResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineVolumeSnapshotProxyResponse.ProtoReflect.Descriptor instead. -func (*EngineVolumeSnapshotProxyResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{6} -} - -func (x *EngineVolumeSnapshotProxyResponse) GetSnapshot() *ptypes.VolumeSnapshotReply { - if x != nil { - return x.Snapshot - } - return nil -} - -type EngineVolumeUnmapMarkSnapChainRemovedSetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - UnmapMarkSnap *ptypes.VolumeUnmapMarkSnapChainRemovedSetRequest `protobuf:"bytes,2,opt,name=unmap_mark_snap,json=unmapMarkSnap,proto3" json:"unmap_mark_snap,omitempty"` -} - -func (x *EngineVolumeUnmapMarkSnapChainRemovedSetRequest) Reset() { - *x = EngineVolumeUnmapMarkSnapChainRemovedSetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineVolumeUnmapMarkSnapChainRemovedSetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineVolumeUnmapMarkSnapChainRemovedSetRequest) ProtoMessage() {} - -func (x *EngineVolumeUnmapMarkSnapChainRemovedSetRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineVolumeUnmapMarkSnapChainRemovedSetRequest.ProtoReflect.Descriptor instead. -func (*EngineVolumeUnmapMarkSnapChainRemovedSetRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{7} -} - -func (x *EngineVolumeUnmapMarkSnapChainRemovedSetRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineVolumeUnmapMarkSnapChainRemovedSetRequest) GetUnmapMarkSnap() *ptypes.VolumeUnmapMarkSnapChainRemovedSetRequest { - if x != nil { - return x.UnmapMarkSnap - } - return nil -} - -type EngineVolumeSnapshotMaxCountSetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - Count *ptypes.VolumeSnapshotMaxCountSetRequest `protobuf:"bytes,2,opt,name=count,proto3" json:"count,omitempty"` -} - -func (x *EngineVolumeSnapshotMaxCountSetRequest) Reset() { - *x = EngineVolumeSnapshotMaxCountSetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineVolumeSnapshotMaxCountSetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineVolumeSnapshotMaxCountSetRequest) ProtoMessage() {} - -func (x *EngineVolumeSnapshotMaxCountSetRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineVolumeSnapshotMaxCountSetRequest.ProtoReflect.Descriptor instead. -func (*EngineVolumeSnapshotMaxCountSetRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{8} -} - -func (x *EngineVolumeSnapshotMaxCountSetRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineVolumeSnapshotMaxCountSetRequest) GetCount() *ptypes.VolumeSnapshotMaxCountSetRequest { - if x != nil { - return x.Count - } - return nil -} - -type EngineVolumeSnapshotMaxSizeSetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - Size *ptypes.VolumeSnapshotMaxSizeSetRequest `protobuf:"bytes,2,opt,name=size,proto3" json:"size,omitempty"` -} - -func (x *EngineVolumeSnapshotMaxSizeSetRequest) Reset() { - *x = EngineVolumeSnapshotMaxSizeSetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineVolumeSnapshotMaxSizeSetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineVolumeSnapshotMaxSizeSetRequest) ProtoMessage() {} - -func (x *EngineVolumeSnapshotMaxSizeSetRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineVolumeSnapshotMaxSizeSetRequest.ProtoReflect.Descriptor instead. -func (*EngineVolumeSnapshotMaxSizeSetRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{9} -} - -func (x *EngineVolumeSnapshotMaxSizeSetRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineVolumeSnapshotMaxSizeSetRequest) GetSize() *ptypes.VolumeSnapshotMaxSizeSetRequest { - if x != nil { - return x.Size - } - return nil -} - -type EngineSnapshotListProxyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Disks map[string]*EngineSnapshotDiskInfo `protobuf:"bytes,1,rep,name=disks,proto3" json:"disks,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *EngineSnapshotListProxyResponse) Reset() { - *x = EngineSnapshotListProxyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotListProxyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotListProxyResponse) ProtoMessage() {} - -func (x *EngineSnapshotListProxyResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotListProxyResponse.ProtoReflect.Descriptor instead. -func (*EngineSnapshotListProxyResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{10} -} - -func (x *EngineSnapshotListProxyResponse) GetDisks() map[string]*EngineSnapshotDiskInfo { - if x != nil { - return x.Disks - } - return nil -} - -type EngineSnapshotDiskInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` - Children map[string]bool `protobuf:"bytes,3,rep,name=children,proto3" json:"children,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - Removed bool `protobuf:"varint,4,opt,name=removed,proto3" json:"removed,omitempty"` - UserCreated bool `protobuf:"varint,5,opt,name=user_created,json=userCreated,proto3" json:"user_created,omitempty"` - Created string `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"` - Size string `protobuf:"bytes,7,opt,name=size,proto3" json:"size,omitempty"` - Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *EngineSnapshotDiskInfo) Reset() { - *x = EngineSnapshotDiskInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotDiskInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotDiskInfo) ProtoMessage() {} - -func (x *EngineSnapshotDiskInfo) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotDiskInfo.ProtoReflect.Descriptor instead. -func (*EngineSnapshotDiskInfo) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{11} -} - -func (x *EngineSnapshotDiskInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *EngineSnapshotDiskInfo) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *EngineSnapshotDiskInfo) GetChildren() map[string]bool { - if x != nil { - return x.Children - } - return nil -} - -func (x *EngineSnapshotDiskInfo) GetRemoved() bool { - if x != nil { - return x.Removed - } - return false -} - -func (x *EngineSnapshotDiskInfo) GetUserCreated() bool { - if x != nil { - return x.UserCreated - } - return false -} - -func (x *EngineSnapshotDiskInfo) GetCreated() string { - if x != nil { - return x.Created - } - return "" -} - -func (x *EngineSnapshotDiskInfo) GetSize() string { - if x != nil { - return x.Size - } - return "" -} - -func (x *EngineSnapshotDiskInfo) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -type EngineSnapshotRevertRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *EngineSnapshotRevertRequest) Reset() { - *x = EngineSnapshotRevertRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotRevertRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotRevertRequest) ProtoMessage() {} - -func (x *EngineSnapshotRevertRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotRevertRequest.ProtoReflect.Descriptor instead. -func (*EngineSnapshotRevertRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{12} -} - -func (x *EngineSnapshotRevertRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineSnapshotRevertRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type EngineSnapshotPurgeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - SkipIfInProgress bool `protobuf:"varint,2,opt,name=skip_if_in_progress,json=skipIfInProgress,proto3" json:"skip_if_in_progress,omitempty"` -} - -func (x *EngineSnapshotPurgeRequest) Reset() { - *x = EngineSnapshotPurgeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotPurgeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotPurgeRequest) ProtoMessage() {} - -func (x *EngineSnapshotPurgeRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotPurgeRequest.ProtoReflect.Descriptor instead. -func (*EngineSnapshotPurgeRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{13} -} - -func (x *EngineSnapshotPurgeRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineSnapshotPurgeRequest) GetSkipIfInProgress() bool { - if x != nil { - return x.SkipIfInProgress - } - return false -} - -type EngineSnapshotPurgeStatusProxyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status map[string]*ptypes.SnapshotPurgeStatusResponse `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *EngineSnapshotPurgeStatusProxyResponse) Reset() { - *x = EngineSnapshotPurgeStatusProxyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotPurgeStatusProxyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotPurgeStatusProxyResponse) ProtoMessage() {} - -func (x *EngineSnapshotPurgeStatusProxyResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotPurgeStatusProxyResponse.ProtoReflect.Descriptor instead. -func (*EngineSnapshotPurgeStatusProxyResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{14} -} - -func (x *EngineSnapshotPurgeStatusProxyResponse) GetStatus() map[string]*ptypes.SnapshotPurgeStatusResponse { - if x != nil { - return x.Status - } - return nil -} - -type EngineSnapshotCloneRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - FromEngineAddress string `protobuf:"bytes,2,opt,name=from_engine_address,json=fromEngineAddress,proto3" json:"from_engine_address,omitempty"` - SnapshotName string `protobuf:"bytes,3,opt,name=snapshot_name,json=snapshotName,proto3" json:"snapshot_name,omitempty"` - ExportBackingImageIfExist bool `protobuf:"varint,4,opt,name=export_backing_image_if_exist,json=exportBackingImageIfExist,proto3" json:"export_backing_image_if_exist,omitempty"` - FileSyncHttpClientTimeout int32 `protobuf:"varint,5,opt,name=file_sync_http_client_timeout,json=fileSyncHttpClientTimeout,proto3" json:"file_sync_http_client_timeout,omitempty"` - FromEngineName string `protobuf:"bytes,6,opt,name=from_engine_name,json=fromEngineName,proto3" json:"from_engine_name,omitempty"` - FromVolumeName string `protobuf:"bytes,7,opt,name=from_volume_name,json=fromVolumeName,proto3" json:"from_volume_name,omitempty"` -} - -func (x *EngineSnapshotCloneRequest) Reset() { - *x = EngineSnapshotCloneRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotCloneRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotCloneRequest) ProtoMessage() {} - -func (x *EngineSnapshotCloneRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotCloneRequest.ProtoReflect.Descriptor instead. -func (*EngineSnapshotCloneRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{15} -} - -func (x *EngineSnapshotCloneRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineSnapshotCloneRequest) GetFromEngineAddress() string { - if x != nil { - return x.FromEngineAddress - } - return "" -} - -func (x *EngineSnapshotCloneRequest) GetSnapshotName() string { - if x != nil { - return x.SnapshotName - } - return "" -} - -func (x *EngineSnapshotCloneRequest) GetExportBackingImageIfExist() bool { - if x != nil { - return x.ExportBackingImageIfExist - } - return false -} - -func (x *EngineSnapshotCloneRequest) GetFileSyncHttpClientTimeout() int32 { - if x != nil { - return x.FileSyncHttpClientTimeout - } - return 0 -} - -func (x *EngineSnapshotCloneRequest) GetFromEngineName() string { - if x != nil { - return x.FromEngineName - } - return "" -} - -func (x *EngineSnapshotCloneRequest) GetFromVolumeName() string { - if x != nil { - return x.FromVolumeName - } - return "" -} - -type EngineSnapshotCloneStatusProxyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status map[string]*ptypes.SnapshotCloneStatusResponse `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *EngineSnapshotCloneStatusProxyResponse) Reset() { - *x = EngineSnapshotCloneStatusProxyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotCloneStatusProxyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotCloneStatusProxyResponse) ProtoMessage() {} - -func (x *EngineSnapshotCloneStatusProxyResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotCloneStatusProxyResponse.ProtoReflect.Descriptor instead. -func (*EngineSnapshotCloneStatusProxyResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{16} -} - -func (x *EngineSnapshotCloneStatusProxyResponse) GetStatus() map[string]*ptypes.SnapshotCloneStatusResponse { - if x != nil { - return x.Status - } - return nil -} - -type EngineSnapshotRemoveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` -} - -func (x *EngineSnapshotRemoveRequest) Reset() { - *x = EngineSnapshotRemoveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotRemoveRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotRemoveRequest) ProtoMessage() {} - -func (x *EngineSnapshotRemoveRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotRemoveRequest.ProtoReflect.Descriptor instead. -func (*EngineSnapshotRemoveRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{17} -} - -func (x *EngineSnapshotRemoveRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineSnapshotRemoveRequest) GetNames() []string { - if x != nil { - return x.Names - } - return nil -} - -type EngineSnapshotBackupRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - Envs []string `protobuf:"bytes,8,rep,name=envs,proto3" json:"envs,omitempty"` - BackupName string `protobuf:"bytes,2,opt,name=backup_name,json=backupName,proto3" json:"backup_name,omitempty"` - SnapshotName string `protobuf:"bytes,3,opt,name=snapshot_name,json=snapshotName,proto3" json:"snapshot_name,omitempty"` - BackupTarget string `protobuf:"bytes,4,opt,name=backup_target,json=backupTarget,proto3" json:"backup_target,omitempty"` - BackingImageName string `protobuf:"bytes,5,opt,name=backing_image_name,json=backingImageName,proto3" json:"backing_image_name,omitempty"` - BackingImageChecksum string `protobuf:"bytes,6,opt,name=backing_image_checksum,json=backingImageChecksum,proto3" json:"backing_image_checksum,omitempty"` - Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - CompressionMethod string `protobuf:"bytes,9,opt,name=compression_method,json=compressionMethod,proto3" json:"compression_method,omitempty"` - ConcurrentLimit int32 `protobuf:"varint,10,opt,name=concurrent_limit,json=concurrentLimit,proto3" json:"concurrent_limit,omitempty"` - StorageClassName string `protobuf:"bytes,11,opt,name=storage_class_name,json=storageClassName,proto3" json:"storage_class_name,omitempty"` -} - -func (x *EngineSnapshotBackupRequest) Reset() { - *x = EngineSnapshotBackupRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotBackupRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotBackupRequest) ProtoMessage() {} - -func (x *EngineSnapshotBackupRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotBackupRequest.ProtoReflect.Descriptor instead. -func (*EngineSnapshotBackupRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{18} -} - -func (x *EngineSnapshotBackupRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineSnapshotBackupRequest) GetEnvs() []string { - if x != nil { - return x.Envs - } - return nil -} - -func (x *EngineSnapshotBackupRequest) GetBackupName() string { - if x != nil { - return x.BackupName - } - return "" -} - -func (x *EngineSnapshotBackupRequest) GetSnapshotName() string { - if x != nil { - return x.SnapshotName - } - return "" -} - -func (x *EngineSnapshotBackupRequest) GetBackupTarget() string { - if x != nil { - return x.BackupTarget - } - return "" -} - -func (x *EngineSnapshotBackupRequest) GetBackingImageName() string { - if x != nil { - return x.BackingImageName - } - return "" -} - -func (x *EngineSnapshotBackupRequest) GetBackingImageChecksum() string { - if x != nil { - return x.BackingImageChecksum - } - return "" -} - -func (x *EngineSnapshotBackupRequest) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *EngineSnapshotBackupRequest) GetCompressionMethod() string { - if x != nil { - return x.CompressionMethod - } - return "" -} - -func (x *EngineSnapshotBackupRequest) GetConcurrentLimit() int32 { - if x != nil { - return x.ConcurrentLimit - } - return 0 -} - -func (x *EngineSnapshotBackupRequest) GetStorageClassName() string { - if x != nil { - return x.StorageClassName - } - return "" -} - -type EngineSnapshotBackupProxyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BackupId string `protobuf:"bytes,1,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"` - Replica string `protobuf:"bytes,2,opt,name=replica,proto3" json:"replica,omitempty"` - IsIncremental bool `protobuf:"varint,3,opt,name=is_incremental,json=isIncremental,proto3" json:"is_incremental,omitempty"` -} - -func (x *EngineSnapshotBackupProxyResponse) Reset() { - *x = EngineSnapshotBackupProxyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotBackupProxyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotBackupProxyResponse) ProtoMessage() {} - -func (x *EngineSnapshotBackupProxyResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotBackupProxyResponse.ProtoReflect.Descriptor instead. -func (*EngineSnapshotBackupProxyResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{19} -} - -func (x *EngineSnapshotBackupProxyResponse) GetBackupId() string { - if x != nil { - return x.BackupId - } - return "" -} - -func (x *EngineSnapshotBackupProxyResponse) GetReplica() string { - if x != nil { - return x.Replica - } - return "" -} - -func (x *EngineSnapshotBackupProxyResponse) GetIsIncremental() bool { - if x != nil { - return x.IsIncremental - } - return false -} - -type EngineSnapshotBackupStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - BackupName string `protobuf:"bytes,2,opt,name=backup_name,json=backupName,proto3" json:"backup_name,omitempty"` - ReplicaAddress string `protobuf:"bytes,3,opt,name=replica_address,json=replicaAddress,proto3" json:"replica_address,omitempty"` - ReplicaName string `protobuf:"bytes,4,opt,name=replica_name,json=replicaName,proto3" json:"replica_name,omitempty"` -} - -func (x *EngineSnapshotBackupStatusRequest) Reset() { - *x = EngineSnapshotBackupStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotBackupStatusRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotBackupStatusRequest) ProtoMessage() {} - -func (x *EngineSnapshotBackupStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotBackupStatusRequest.ProtoReflect.Descriptor instead. -func (*EngineSnapshotBackupStatusRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{20} -} - -func (x *EngineSnapshotBackupStatusRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineSnapshotBackupStatusRequest) GetBackupName() string { - if x != nil { - return x.BackupName - } - return "" -} - -func (x *EngineSnapshotBackupStatusRequest) GetReplicaAddress() string { - if x != nil { - return x.ReplicaAddress - } - return "" -} - -func (x *EngineSnapshotBackupStatusRequest) GetReplicaName() string { - if x != nil { - return x.ReplicaName - } - return "" -} - -type EngineSnapshotBackupStatusProxyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BackupUrl string `protobuf:"bytes,1,opt,name=backup_url,json=backupUrl,proto3" json:"backup_url,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Progress int32 `protobuf:"varint,3,opt,name=progress,proto3" json:"progress,omitempty"` - SnapshotName string `protobuf:"bytes,4,opt,name=snapshot_name,json=snapshotName,proto3" json:"snapshot_name,omitempty"` - State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` - ReplicaAddress string `protobuf:"bytes,6,opt,name=replica_address,json=replicaAddress,proto3" json:"replica_address,omitempty"` -} - -func (x *EngineSnapshotBackupStatusProxyResponse) Reset() { - *x = EngineSnapshotBackupStatusProxyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotBackupStatusProxyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotBackupStatusProxyResponse) ProtoMessage() {} - -func (x *EngineSnapshotBackupStatusProxyResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotBackupStatusProxyResponse.ProtoReflect.Descriptor instead. -func (*EngineSnapshotBackupStatusProxyResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{21} -} - -func (x *EngineSnapshotBackupStatusProxyResponse) GetBackupUrl() string { - if x != nil { - return x.BackupUrl - } - return "" -} - -func (x *EngineSnapshotBackupStatusProxyResponse) GetError() string { - if x != nil { - return x.Error - } - return "" -} - -func (x *EngineSnapshotBackupStatusProxyResponse) GetProgress() int32 { - if x != nil { - return x.Progress - } - return 0 -} - -func (x *EngineSnapshotBackupStatusProxyResponse) GetSnapshotName() string { - if x != nil { - return x.SnapshotName - } - return "" -} - -func (x *EngineSnapshotBackupStatusProxyResponse) GetState() string { - if x != nil { - return x.State - } - return "" -} - -func (x *EngineSnapshotBackupStatusProxyResponse) GetReplicaAddress() string { - if x != nil { - return x.ReplicaAddress - } - return "" -} - -type EngineBackupRestoreRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - Envs []string `protobuf:"bytes,2,rep,name=envs,proto3" json:"envs,omitempty"` - Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` - Target string `protobuf:"bytes,4,opt,name=target,proto3" json:"target,omitempty"` - VolumeName string `protobuf:"bytes,5,opt,name=volume_name,json=volumeName,proto3" json:"volume_name,omitempty"` - ConcurrentLimit int32 `protobuf:"varint,6,opt,name=concurrent_limit,json=concurrentLimit,proto3" json:"concurrent_limit,omitempty"` -} - -func (x *EngineBackupRestoreRequest) Reset() { - *x = EngineBackupRestoreRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineBackupRestoreRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineBackupRestoreRequest) ProtoMessage() {} - -func (x *EngineBackupRestoreRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineBackupRestoreRequest.ProtoReflect.Descriptor instead. -func (*EngineBackupRestoreRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{22} -} - -func (x *EngineBackupRestoreRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineBackupRestoreRequest) GetEnvs() []string { - if x != nil { - return x.Envs - } - return nil -} - -func (x *EngineBackupRestoreRequest) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -func (x *EngineBackupRestoreRequest) GetTarget() string { - if x != nil { - return x.Target - } - return "" -} - -func (x *EngineBackupRestoreRequest) GetVolumeName() string { - if x != nil { - return x.VolumeName - } - return "" -} - -func (x *EngineBackupRestoreRequest) GetConcurrentLimit() int32 { - if x != nil { - return x.ConcurrentLimit - } - return 0 -} - -type EngineBackupRestoreProxyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TaskError []byte `protobuf:"bytes,1,opt,name=taskError,proto3" json:"taskError,omitempty"` -} - -func (x *EngineBackupRestoreProxyResponse) Reset() { - *x = EngineBackupRestoreProxyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineBackupRestoreProxyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineBackupRestoreProxyResponse) ProtoMessage() {} - -func (x *EngineBackupRestoreProxyResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineBackupRestoreProxyResponse.ProtoReflect.Descriptor instead. -func (*EngineBackupRestoreProxyResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{23} -} - -func (x *EngineBackupRestoreProxyResponse) GetTaskError() []byte { - if x != nil { - return x.TaskError - } - return nil -} - -type EngineBackupRestoreStatusProxyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status map[string]*EngineBackupRestoreStatus `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *EngineBackupRestoreStatusProxyResponse) Reset() { - *x = EngineBackupRestoreStatusProxyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineBackupRestoreStatusProxyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineBackupRestoreStatusProxyResponse) ProtoMessage() {} - -func (x *EngineBackupRestoreStatusProxyResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineBackupRestoreStatusProxyResponse.ProtoReflect.Descriptor instead. -func (*EngineBackupRestoreStatusProxyResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{24} -} - -func (x *EngineBackupRestoreStatusProxyResponse) GetStatus() map[string]*EngineBackupRestoreStatus { - if x != nil { - return x.Status - } - return nil -} - -type EngineBackupRestoreStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IsRestoring bool `protobuf:"varint,1,opt,name=is_restoring,json=isRestoring,proto3" json:"is_restoring,omitempty"` - LastRestored string `protobuf:"bytes,2,opt,name=last_restored,json=lastRestored,proto3" json:"last_restored,omitempty"` - CurrentRestoringBackup string `protobuf:"bytes,3,opt,name=current_restoring_backup,json=currentRestoringBackup,proto3" json:"current_restoring_backup,omitempty"` - Progress int32 `protobuf:"varint,4,opt,name=progress,proto3" json:"progress,omitempty"` - Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` - Filename string `protobuf:"bytes,6,opt,name=filename,proto3" json:"filename,omitempty"` - State string `protobuf:"bytes,7,opt,name=state,proto3" json:"state,omitempty"` - BackupUrl string `protobuf:"bytes,8,opt,name=backup_url,json=backupUrl,proto3" json:"backup_url,omitempty"` -} - -func (x *EngineBackupRestoreStatus) Reset() { - *x = EngineBackupRestoreStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineBackupRestoreStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineBackupRestoreStatus) ProtoMessage() {} - -func (x *EngineBackupRestoreStatus) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineBackupRestoreStatus.ProtoReflect.Descriptor instead. -func (*EngineBackupRestoreStatus) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{25} -} - -func (x *EngineBackupRestoreStatus) GetIsRestoring() bool { - if x != nil { - return x.IsRestoring - } - return false -} - -func (x *EngineBackupRestoreStatus) GetLastRestored() string { - if x != nil { - return x.LastRestored - } - return "" -} - -func (x *EngineBackupRestoreStatus) GetCurrentRestoringBackup() string { - if x != nil { - return x.CurrentRestoringBackup - } - return "" -} - -func (x *EngineBackupRestoreStatus) GetProgress() int32 { - if x != nil { - return x.Progress - } - return 0 -} - -func (x *EngineBackupRestoreStatus) GetError() string { - if x != nil { - return x.Error - } - return "" -} - -func (x *EngineBackupRestoreStatus) GetFilename() string { - if x != nil { - return x.Filename - } - return "" -} - -func (x *EngineBackupRestoreStatus) GetState() string { - if x != nil { - return x.State - } - return "" -} - -func (x *EngineBackupRestoreStatus) GetBackupUrl() string { - if x != nil { - return x.BackupUrl - } - return "" -} - -type EngineBackupRestoreFinishRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` -} - -func (x *EngineBackupRestoreFinishRequest) Reset() { - *x = EngineBackupRestoreFinishRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineBackupRestoreFinishRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineBackupRestoreFinishRequest) ProtoMessage() {} - -func (x *EngineBackupRestoreFinishRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineBackupRestoreFinishRequest.ProtoReflect.Descriptor instead. -func (*EngineBackupRestoreFinishRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{26} -} - -func (x *EngineBackupRestoreFinishRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -type EngineReplicaAddRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - ReplicaAddress string `protobuf:"bytes,2,opt,name=replica_address,json=replicaAddress,proto3" json:"replica_address,omitempty"` - Restore bool `protobuf:"varint,3,opt,name=restore,proto3" json:"restore,omitempty"` - Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` - CurrentSize int64 `protobuf:"varint,5,opt,name=current_size,json=currentSize,proto3" json:"current_size,omitempty"` - FastSync bool `protobuf:"varint,6,opt,name=fast_sync,json=fastSync,proto3" json:"fast_sync,omitempty"` - FileSyncHttpClientTimeout int32 `protobuf:"varint,7,opt,name=file_sync_http_client_timeout,json=fileSyncHttpClientTimeout,proto3" json:"file_sync_http_client_timeout,omitempty"` - ReplicaName string `protobuf:"bytes,8,opt,name=replica_name,json=replicaName,proto3" json:"replica_name,omitempty"` -} - -func (x *EngineReplicaAddRequest) Reset() { - *x = EngineReplicaAddRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineReplicaAddRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineReplicaAddRequest) ProtoMessage() {} - -func (x *EngineReplicaAddRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineReplicaAddRequest.ProtoReflect.Descriptor instead. -func (*EngineReplicaAddRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{27} -} - -func (x *EngineReplicaAddRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineReplicaAddRequest) GetReplicaAddress() string { - if x != nil { - return x.ReplicaAddress - } - return "" -} - -func (x *EngineReplicaAddRequest) GetRestore() bool { - if x != nil { - return x.Restore - } - return false -} - -func (x *EngineReplicaAddRequest) GetSize() int64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *EngineReplicaAddRequest) GetCurrentSize() int64 { - if x != nil { - return x.CurrentSize - } - return 0 -} - -func (x *EngineReplicaAddRequest) GetFastSync() bool { - if x != nil { - return x.FastSync - } - return false -} - -func (x *EngineReplicaAddRequest) GetFileSyncHttpClientTimeout() int32 { - if x != nil { - return x.FileSyncHttpClientTimeout - } - return 0 -} - -func (x *EngineReplicaAddRequest) GetReplicaName() string { - if x != nil { - return x.ReplicaName - } - return "" -} - -type EngineReplicaListProxyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReplicaList *ptypes.ReplicaListReply `protobuf:"bytes,1,opt,name=replica_list,json=replicaList,proto3" json:"replica_list,omitempty"` -} - -func (x *EngineReplicaListProxyResponse) Reset() { - *x = EngineReplicaListProxyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineReplicaListProxyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineReplicaListProxyResponse) ProtoMessage() {} - -func (x *EngineReplicaListProxyResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineReplicaListProxyResponse.ProtoReflect.Descriptor instead. -func (*EngineReplicaListProxyResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{28} -} - -func (x *EngineReplicaListProxyResponse) GetReplicaList() *ptypes.ReplicaListReply { - if x != nil { - return x.ReplicaList - } - return nil -} - -type EngineReplicaVerifyRebuildRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - ReplicaAddress string `protobuf:"bytes,2,opt,name=replica_address,json=replicaAddress,proto3" json:"replica_address,omitempty"` - ReplicaName string `protobuf:"bytes,3,opt,name=replica_name,json=replicaName,proto3" json:"replica_name,omitempty"` -} - -func (x *EngineReplicaVerifyRebuildRequest) Reset() { - *x = EngineReplicaVerifyRebuildRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineReplicaVerifyRebuildRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineReplicaVerifyRebuildRequest) ProtoMessage() {} - -func (x *EngineReplicaVerifyRebuildRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineReplicaVerifyRebuildRequest.ProtoReflect.Descriptor instead. -func (*EngineReplicaVerifyRebuildRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{29} -} - -func (x *EngineReplicaVerifyRebuildRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineReplicaVerifyRebuildRequest) GetReplicaAddress() string { - if x != nil { - return x.ReplicaAddress - } - return "" -} - -func (x *EngineReplicaVerifyRebuildRequest) GetReplicaName() string { - if x != nil { - return x.ReplicaName - } - return "" -} - -type EngineReplicaRebuildStatusProxyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status map[string]*ptypes.ReplicaRebuildStatusResponse `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *EngineReplicaRebuildStatusProxyResponse) Reset() { - *x = EngineReplicaRebuildStatusProxyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineReplicaRebuildStatusProxyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineReplicaRebuildStatusProxyResponse) ProtoMessage() {} - -func (x *EngineReplicaRebuildStatusProxyResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineReplicaRebuildStatusProxyResponse.ProtoReflect.Descriptor instead. -func (*EngineReplicaRebuildStatusProxyResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{30} -} - -func (x *EngineReplicaRebuildStatusProxyResponse) GetStatus() map[string]*ptypes.ReplicaRebuildStatusResponse { - if x != nil { - return x.Status - } - return nil -} - -type EngineReplicaRemoveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - ReplicaAddress string `protobuf:"bytes,2,opt,name=replica_address,json=replicaAddress,proto3" json:"replica_address,omitempty"` - ReplicaName string `protobuf:"bytes,3,opt,name=replica_name,json=replicaName,proto3" json:"replica_name,omitempty"` -} - -func (x *EngineReplicaRemoveRequest) Reset() { - *x = EngineReplicaRemoveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineReplicaRemoveRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineReplicaRemoveRequest) ProtoMessage() {} - -func (x *EngineReplicaRemoveRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineReplicaRemoveRequest.ProtoReflect.Descriptor instead. -func (*EngineReplicaRemoveRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{31} -} - -func (x *EngineReplicaRemoveRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineReplicaRemoveRequest) GetReplicaAddress() string { - if x != nil { - return x.ReplicaAddress - } - return "" -} - -func (x *EngineReplicaRemoveRequest) GetReplicaName() string { - if x != nil { - return x.ReplicaName - } - return "" -} - -type EngineReplicaModeUpdateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - ReplicaAddress string `protobuf:"bytes,2,opt,name=replica_address,json=replicaAddress,proto3" json:"replica_address,omitempty"` - Mode ptypes.ReplicaMode `protobuf:"varint,3,opt,name=mode,proto3,enum=ptypes.ReplicaMode" json:"mode,omitempty"` -} - -func (x *EngineReplicaModeUpdateRequest) Reset() { - *x = EngineReplicaModeUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineReplicaModeUpdateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineReplicaModeUpdateRequest) ProtoMessage() {} - -func (x *EngineReplicaModeUpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineReplicaModeUpdateRequest.ProtoReflect.Descriptor instead. -func (*EngineReplicaModeUpdateRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{32} -} - -func (x *EngineReplicaModeUpdateRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineReplicaModeUpdateRequest) GetReplicaAddress() string { - if x != nil { - return x.ReplicaAddress - } - return "" -} - -func (x *EngineReplicaModeUpdateRequest) GetMode() ptypes.ReplicaMode { - if x != nil { - return x.Mode - } - return ptypes.ReplicaMode_WO -} - -type EngineSnapshotHashRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - SnapshotName string `protobuf:"bytes,2,opt,name=snapshot_name,json=snapshotName,proto3" json:"snapshot_name,omitempty"` - Rehash bool `protobuf:"varint,3,opt,name=rehash,proto3" json:"rehash,omitempty"` -} - -func (x *EngineSnapshotHashRequest) Reset() { - *x = EngineSnapshotHashRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotHashRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotHashRequest) ProtoMessage() {} - -func (x *EngineSnapshotHashRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotHashRequest.ProtoReflect.Descriptor instead. -func (*EngineSnapshotHashRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{33} -} - -func (x *EngineSnapshotHashRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineSnapshotHashRequest) GetSnapshotName() string { - if x != nil { - return x.SnapshotName - } - return "" -} - -func (x *EngineSnapshotHashRequest) GetRehash() bool { - if x != nil { - return x.Rehash - } - return false -} - -type EngineSnapshotHashStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxyEngineRequest *ProxyEngineRequest `protobuf:"bytes,1,opt,name=proxy_engine_request,json=proxyEngineRequest,proto3" json:"proxy_engine_request,omitempty"` - SnapshotName string `protobuf:"bytes,2,opt,name=snapshot_name,json=snapshotName,proto3" json:"snapshot_name,omitempty"` -} - -func (x *EngineSnapshotHashStatusRequest) Reset() { - *x = EngineSnapshotHashStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotHashStatusRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotHashStatusRequest) ProtoMessage() {} - -func (x *EngineSnapshotHashStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotHashStatusRequest.ProtoReflect.Descriptor instead. -func (*EngineSnapshotHashStatusRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{34} -} - -func (x *EngineSnapshotHashStatusRequest) GetProxyEngineRequest() *ProxyEngineRequest { - if x != nil { - return x.ProxyEngineRequest - } - return nil -} - -func (x *EngineSnapshotHashStatusRequest) GetSnapshotName() string { - if x != nil { - return x.SnapshotName - } - return "" -} - -type EngineSnapshotHashStatusProxyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status map[string]*ptypes.SnapshotHashStatusResponse `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *EngineSnapshotHashStatusProxyResponse) Reset() { - *x = EngineSnapshotHashStatusProxyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineSnapshotHashStatusProxyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineSnapshotHashStatusProxyResponse) ProtoMessage() {} - -func (x *EngineSnapshotHashStatusProxyResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineSnapshotHashStatusProxyResponse.ProtoReflect.Descriptor instead. -func (*EngineSnapshotHashStatusProxyResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{35} -} - -func (x *EngineSnapshotHashStatusProxyResponse) GetStatus() map[string]*ptypes.SnapshotHashStatusResponse { - if x != nil { - return x.Status - } - return nil -} - -type EngineMetricsGetProxyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Metrics *ptypes.Metrics `protobuf:"bytes,1,opt,name=metrics,proto3" json:"metrics,omitempty"` -} - -func (x *EngineMetricsGetProxyResponse) Reset() { - *x = EngineMetricsGetProxyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EngineMetricsGetProxyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EngineMetricsGetProxyResponse) ProtoMessage() {} - -func (x *EngineMetricsGetProxyResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EngineMetricsGetProxyResponse.ProtoReflect.Descriptor instead. -func (*EngineMetricsGetProxyResponse) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{36} -} - -func (x *EngineMetricsGetProxyResponse) GetMetrics() *ptypes.Metrics { - if x != nil { - return x.Metrics - } - return nil -} - -type RemountVolumeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - VolumeName string `protobuf:"bytes,1,opt,name=volume_name,json=volumeName,proto3" json:"volume_name,omitempty"` -} - -func (x *RemountVolumeRequest) Reset() { - *x = RemountVolumeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemountVolumeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemountVolumeRequest) ProtoMessage() {} - -func (x *RemountVolumeRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RemountVolumeRequest.ProtoReflect.Descriptor instead. -func (*RemountVolumeRequest) Descriptor() ([]byte, []int) { - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP(), []int{37} -} - -func (x *RemountVolumeRequest) GetVolumeName() string { - if x != nil { - return x.VolumeName - } - return "" -} - -var File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto protoreflect.FileDescriptor - -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDesc = []byte{ - 0x0a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, 0x6e, - 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2d, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, - 0x70, 0x6b, 0x67, 0x2f, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x1a, 0x1b, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, - 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2f, 0x6c, - 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2d, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x40, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, - 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2d, 0x65, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x73, - 0x79, 0x6e, 0x63, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x44, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, - 0x6f, 0x72, 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2d, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x70, 0x6b, - 0x67, 0x2f, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf5, 0x01, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4f, 0x0a, 0x14, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, - 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x63, 0x6b, - 0x65, 0x6e, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x42, 0x02, - 0x18, 0x01, 0x52, 0x12, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x65, - 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x6f, 0x6c, 0x75, 0x6d, - 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, - 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, - 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x22, 0x4d, 0x0a, 0x1a, - 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x46, 0x0a, 0x1c, 0x45, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x47, 0x65, 0x74, 0x50, 0x72, - 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x76, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x06, 0x76, 0x6f, 0x6c, - 0x75, 0x6d, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x19, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, - 0x0a, 0x06, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x45, 0x78, - 0x70, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x06, 0x65, 0x78, 0x70, - 0x61, 0x6e, 0x64, 0x22, 0xba, 0x01, 0x0a, 0x20, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, - 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x0e, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x64, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, - 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x46, 0x72, 0x6f, - 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x52, 0x0d, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, - 0x22, 0xb2, 0x01, 0x0a, 0x1b, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, - 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x4b, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, - 0x0f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0e, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x56, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x5c, 0x0a, 0x21, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x73, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, - 0x68, 0x6f, 0x74, 0x22, 0xd9, 0x01, 0x0a, 0x2f, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x55, 0x6e, 0x6d, 0x61, 0x70, 0x4d, 0x61, 0x72, 0x6b, 0x53, 0x6e, 0x61, - 0x70, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x53, 0x65, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, - 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x59, 0x0a, 0x0f, 0x75, 0x6e, 0x6d, 0x61, 0x70, 0x5f, 0x6d, 0x61, - 0x72, 0x6b, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, - 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x55, 0x6e, 0x6d, - 0x61, 0x70, 0x4d, 0x61, 0x72, 0x6b, 0x53, 0x6e, 0x61, 0x70, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x0d, 0x75, 0x6e, 0x6d, 0x61, 0x70, 0x4d, 0x61, 0x72, 0x6b, 0x53, 0x6e, 0x61, 0x70, 0x22, - 0xb5, 0x01, 0x0a, 0x26, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4d, 0x61, 0x78, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, - 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4d, 0x61, - 0x78, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xb1, 0x01, 0x0a, 0x25, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x4d, 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, - 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x4d, 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0xc3, 0x01, 0x0a, 0x1f, - 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4c, 0x69, - 0x73, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x47, 0x0a, 0x05, 0x64, 0x69, 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, - 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, - 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x05, 0x64, 0x69, 0x73, 0x6b, 0x73, 0x1a, 0x57, 0x0a, 0x0a, 0x44, 0x69, 0x73, 0x6b, - 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, 0x33, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, - 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x44, 0x69, - 0x73, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x22, 0xb3, 0x03, 0x0a, 0x16, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x44, 0x69, 0x73, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x47, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, - 0x64, 0x72, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x69, 0x6d, 0x72, - 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x44, 0x69, 0x73, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x72, - 0x65, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, - 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x75, - 0x73, 0x65, 0x72, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x41, 0x0a, 0x06, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x69, - 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, - 0x68, 0x6f, 0x74, 0x44, 0x69, 0x73, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, - 0x3b, 0x0a, 0x0d, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 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, - 0x08, 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, 0x22, 0x7e, 0x0a, 0x1b, 0x45, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x76, 0x65, 0x72, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, - 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, - 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x1a, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x50, 0x75, 0x72, 0x67, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, - 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, - 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x69, - 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x10, 0x73, 0x6b, 0x69, 0x70, 0x49, 0x66, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, - 0x73, 0x73, 0x22, 0xdb, 0x01, 0x0a, 0x26, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, - 0x70, 0x73, 0x68, 0x6f, 0x74, 0x50, 0x75, 0x72, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, - 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x50, 0x75, 0x72, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50, - 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x1a, 0x5e, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x75, 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, 0x39, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x23, 0x2e, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x50, 0x75, 0x72, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x22, 0x96, 0x03, 0x0a, 0x1a, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, - 0x68, 0x6f, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x4b, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x45, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x13, - 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x66, 0x72, 0x6f, 0x6d, 0x45, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, - 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x40, 0x0a, 0x1d, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x61, 0x63, 0x6b, - 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, - 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x42, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x49, 0x66, 0x45, 0x78, - 0x69, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x1d, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, - 0x5f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x19, 0x66, 0x69, 0x6c, 0x65, - 0x53, 0x79, 0x6e, 0x63, 0x48, 0x74, 0x74, 0x70, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x69, - 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x65, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0e, 0x66, 0x72, 0x6f, 0x6d, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x28, 0x0a, 0x10, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x66, 0x72, 0x6f, 0x6d, 0x56, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xdb, 0x01, 0x0a, 0x26, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x6c, 0x6f, 0x6e, - 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x1a, 0x5e, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x75, - 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, 0x39, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x80, 0x01, 0x0a, 0x1b, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, - 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0xd8, 0x04, 0x0a, 0x1b, 0x45, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x61, 0x63, - 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, - 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x6e, 0x76, 0x73, 0x18, - 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x65, 0x6e, 0x76, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, - 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, - 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x62, 0x61, 0x63, 0x6b, 0x69, 0x6e, - 0x67, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x10, 0x62, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x49, 0x6d, 0x61, 0x67, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x62, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x5f, - 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x62, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x49, 0x6d, 0x61, - 0x67, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12, 0x46, 0x0a, 0x06, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x69, 0x6d, 0x72, - 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, - 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x63, 0x6f, 0x6e, - 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2c, 0x0a, 0x12, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 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, 0x22, 0x81, 0x01, 0x0a, 0x21, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x72, - 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x62, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x73, 0x49, 0x6e, - 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x22, 0xdd, 0x01, 0x0a, 0x21, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x4b, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x45, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, - 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, - 0x0f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xde, 0x01, 0x0a, 0x27, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, - 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xf3, 0x01, 0x0a, 0x1a, 0x45, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x74, 0x6f, - 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x70, 0x72, 0x6f, - 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, - 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x6e, 0x76, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x65, 0x6e, 0x76, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, - 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x6f, 0x6c, 0x75, 0x6d, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, - 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x0f, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, - 0x22, 0x40, 0x0a, 0x20, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, - 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x22, 0xd8, 0x01, 0x0a, 0x26, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x42, 0x61, 0x63, - 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, - 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x42, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50, - 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x1a, 0x5b, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x75, 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, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x42, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa0, 0x02, - 0x0a, 0x19, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x69, - 0x73, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0b, 0x69, 0x73, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x23, - 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x73, 0x74, 0x6f, - 0x72, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x18, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x72, - 0x65, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x1a, 0x0a, - 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, - 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x75, 0x72, 0x6c, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x55, 0x72, 0x6c, - 0x22, 0x6f, 0x0a, 0x20, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, - 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, - 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x12, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0xe2, 0x02, 0x0a, 0x17, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, - 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6d, - 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, - 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x7a, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, - 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x79, 0x6e, - 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x66, 0x61, 0x73, 0x74, 0x53, 0x79, 0x6e, - 0x63, 0x12, 0x40, 0x0a, 0x1d, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x68, - 0x74, 0x74, 0x70, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, - 0x75, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x19, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x79, - 0x6e, 0x63, 0x48, 0x74, 0x74, 0x70, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, - 0x6f, 0x75, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x5d, 0x0a, 0x1e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, - 0x2e, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x0b, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x4c, 0x69, 0x73, 0x74, 0x22, 0xbc, 0x01, 0x0a, 0x21, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x62, - 0x75, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, - 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xde, 0x01, 0x0a, 0x27, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x52, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x3a, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x1a, 0x5f, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x75, 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, 0x3a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb5, 0x01, 0x0a, 0x1a, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, - 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x12, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xbf, 0x01, - 0x0a, 0x1e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x4d, - 0x6f, 0x64, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x4b, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, - 0x0f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, - 0xa5, 0x01, 0x0a, 0x19, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, - 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6d, - 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x72, 0x65, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x06, 0x72, 0x65, 0x68, 0x61, 0x73, 0x68, 0x22, 0x93, 0x01, 0x0a, 0x1f, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, - 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xd8, 0x01, - 0x0a, 0x25, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x48, 0x61, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, - 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x61, - 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x1a, 0x5d, 0x0a, 0x0b, 0x53, 0x74, 0x61, - 0x74, 0x75, 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, 0x38, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4a, 0x0a, 0x1d, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x07, 0x6d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x07, 0x6d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x73, 0x22, 0x37, 0x0a, 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x56, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, - 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0x85, 0x16, - 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x50, 0x0a, 0x10, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x12, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, - 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x09, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, - 0x47, 0x65, 0x74, 0x12, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, - 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, 0x6f, 0x6c, - 0x75, 0x6d, 0x65, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0c, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x45, 0x78, 0x70, - 0x61, 0x6e, 0x64, 0x12, 0x20, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x56, 0x0a, - 0x13, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x53, - 0x74, 0x61, 0x72, 0x74, 0x12, 0x27, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4b, 0x0a, 0x16, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x46, - 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x12, - 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x12, 0x74, 0x0a, 0x22, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x55, 0x6e, 0x6d, 0x61, - 0x70, 0x4d, 0x61, 0x72, 0x6b, 0x53, 0x6e, 0x61, 0x70, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x53, 0x65, 0x74, 0x12, 0x36, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, - 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x55, 0x6e, 0x6d, - 0x61, 0x70, 0x4d, 0x61, 0x72, 0x6b, 0x53, 0x6e, 0x61, 0x70, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x62, 0x0a, 0x19, 0x56, 0x6f, 0x6c, 0x75, - 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4d, 0x61, 0x78, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x53, 0x65, 0x74, 0x12, 0x2d, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x4d, 0x61, 0x78, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x60, 0x0a, 0x18, - 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4d, 0x61, - 0x78, 0x53, 0x69, 0x7a, 0x65, 0x53, 0x65, 0x74, 0x12, 0x2c, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, - 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, - 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4d, 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x53, 0x65, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x5e, - 0x0a, 0x0e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x12, 0x22, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x56, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, - 0x0a, 0x0c, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, - 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x6d, 0x72, 0x70, - 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x4c, 0x0a, 0x0e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x76, - 0x65, 0x72, 0x74, 0x12, 0x22, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x76, 0x65, 0x72, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, - 0x4a, 0x0a, 0x0d, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x50, 0x75, 0x72, 0x67, 0x65, - 0x12, 0x21, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x50, 0x75, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x5f, 0x0a, 0x13, 0x53, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x50, 0x75, 0x72, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, - 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, - 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x50, 0x75, 0x72, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50, - 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0d, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x12, 0x21, 0x2e, - 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x5f, 0x0a, 0x13, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x69, 0x6d, 0x72, - 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0e, 0x53, 0x6e, 0x61, - 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x22, 0x2e, 0x69, 0x6d, - 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x48, 0x0a, 0x0c, 0x53, 0x6e, 0x61, 0x70, 0x73, - 0x68, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x20, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, - 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x61, - 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x12, 0x6a, 0x0a, 0x12, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x61, 0x73, - 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, - 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x61, - 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2c, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, - 0x0e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, - 0x22, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, - 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x70, 0x0a, - 0x14, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x28, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2e, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x53, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x5b, 0x0a, 0x0d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, - 0x12, 0x21, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x42, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x50, - 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x13, - 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, - 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x42, 0x61, 0x63, - 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, - 0x13, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x69, - 0x6e, 0x69, 0x73, 0x68, 0x12, 0x27, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, - 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4a, 0x0a, 0x18, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, - 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, - 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x12, 0x44, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x41, 0x64, 0x64, 0x12, - 0x1e, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4f, 0x0a, 0x0b, 0x52, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, - 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x17, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, - 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, - 0x0a, 0x14, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, - 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x12, 0x28, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x56, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4a, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x21, 0x2e, 0x69, 0x6d, 0x72, 0x70, - 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x12, 0x52, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x4d, - 0x6f, 0x64, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x25, 0x2e, 0x69, 0x6d, 0x72, 0x70, - 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x4d, - 0x6f, 0x64, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4d, 0x0a, 0x0a, 0x4d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x73, 0x47, 0x65, 0x74, 0x12, 0x19, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x50, - 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x24, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x15, 0x52, 0x65, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, - 0x12, 0x1b, 0x2e, 0x69, 0x6d, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, - 0x67, 0x68, 0x6f, 0x72, 0x6e, 0x2d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x69, 0x6d, 0x72, 0x70, 0x63, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescOnce sync.Once - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescData = file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDesc -) - -func file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescGZIP() []byte { - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescOnce.Do(func() { - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescData) - }) - return file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDescData -} - -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes = make([]protoimpl.MessageInfo, 47) -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_goTypes = []interface{}{ - (*ProxyEngineRequest)(nil), // 0: imrpc.ProxyEngineRequest - (*EngineVersionProxyResponse)(nil), // 1: imrpc.EngineVersionProxyResponse - (*EngineVolumeGetProxyResponse)(nil), // 2: imrpc.EngineVolumeGetProxyResponse - (*EngineVolumeExpandRequest)(nil), // 3: imrpc.EngineVolumeExpandRequest - (*EngineVolumeFrontendStartRequest)(nil), // 4: imrpc.EngineVolumeFrontendStartRequest - (*EngineVolumeSnapshotRequest)(nil), // 5: imrpc.EngineVolumeSnapshotRequest - (*EngineVolumeSnapshotProxyResponse)(nil), // 6: imrpc.EngineVolumeSnapshotProxyResponse - (*EngineVolumeUnmapMarkSnapChainRemovedSetRequest)(nil), // 7: imrpc.EngineVolumeUnmapMarkSnapChainRemovedSetRequest - (*EngineVolumeSnapshotMaxCountSetRequest)(nil), // 8: imrpc.EngineVolumeSnapshotMaxCountSetRequest - (*EngineVolumeSnapshotMaxSizeSetRequest)(nil), // 9: imrpc.EngineVolumeSnapshotMaxSizeSetRequest - (*EngineSnapshotListProxyResponse)(nil), // 10: imrpc.EngineSnapshotListProxyResponse - (*EngineSnapshotDiskInfo)(nil), // 11: imrpc.EngineSnapshotDiskInfo - (*EngineSnapshotRevertRequest)(nil), // 12: imrpc.EngineSnapshotRevertRequest - (*EngineSnapshotPurgeRequest)(nil), // 13: imrpc.EngineSnapshotPurgeRequest - (*EngineSnapshotPurgeStatusProxyResponse)(nil), // 14: imrpc.EngineSnapshotPurgeStatusProxyResponse - (*EngineSnapshotCloneRequest)(nil), // 15: imrpc.EngineSnapshotCloneRequest - (*EngineSnapshotCloneStatusProxyResponse)(nil), // 16: imrpc.EngineSnapshotCloneStatusProxyResponse - (*EngineSnapshotRemoveRequest)(nil), // 17: imrpc.EngineSnapshotRemoveRequest - (*EngineSnapshotBackupRequest)(nil), // 18: imrpc.EngineSnapshotBackupRequest - (*EngineSnapshotBackupProxyResponse)(nil), // 19: imrpc.EngineSnapshotBackupProxyResponse - (*EngineSnapshotBackupStatusRequest)(nil), // 20: imrpc.EngineSnapshotBackupStatusRequest - (*EngineSnapshotBackupStatusProxyResponse)(nil), // 21: imrpc.EngineSnapshotBackupStatusProxyResponse - (*EngineBackupRestoreRequest)(nil), // 22: imrpc.EngineBackupRestoreRequest - (*EngineBackupRestoreProxyResponse)(nil), // 23: imrpc.EngineBackupRestoreProxyResponse - (*EngineBackupRestoreStatusProxyResponse)(nil), // 24: imrpc.EngineBackupRestoreStatusProxyResponse - (*EngineBackupRestoreStatus)(nil), // 25: imrpc.EngineBackupRestoreStatus - (*EngineBackupRestoreFinishRequest)(nil), // 26: imrpc.EngineBackupRestoreFinishRequest - (*EngineReplicaAddRequest)(nil), // 27: imrpc.EngineReplicaAddRequest - (*EngineReplicaListProxyResponse)(nil), // 28: imrpc.EngineReplicaListProxyResponse - (*EngineReplicaVerifyRebuildRequest)(nil), // 29: imrpc.EngineReplicaVerifyRebuildRequest - (*EngineReplicaRebuildStatusProxyResponse)(nil), // 30: imrpc.EngineReplicaRebuildStatusProxyResponse - (*EngineReplicaRemoveRequest)(nil), // 31: imrpc.EngineReplicaRemoveRequest - (*EngineReplicaModeUpdateRequest)(nil), // 32: imrpc.EngineReplicaModeUpdateRequest - (*EngineSnapshotHashRequest)(nil), // 33: imrpc.EngineSnapshotHashRequest - (*EngineSnapshotHashStatusRequest)(nil), // 34: imrpc.EngineSnapshotHashStatusRequest - (*EngineSnapshotHashStatusProxyResponse)(nil), // 35: imrpc.EngineSnapshotHashStatusProxyResponse - (*EngineMetricsGetProxyResponse)(nil), // 36: imrpc.EngineMetricsGetProxyResponse - (*RemountVolumeRequest)(nil), // 37: imrpc.RemountVolumeRequest - nil, // 38: imrpc.EngineSnapshotListProxyResponse.DisksEntry - nil, // 39: imrpc.EngineSnapshotDiskInfo.ChildrenEntry - nil, // 40: imrpc.EngineSnapshotDiskInfo.LabelsEntry - nil, // 41: imrpc.EngineSnapshotPurgeStatusProxyResponse.StatusEntry - nil, // 42: imrpc.EngineSnapshotCloneStatusProxyResponse.StatusEntry - nil, // 43: imrpc.EngineSnapshotBackupRequest.LabelsEntry - nil, // 44: imrpc.EngineBackupRestoreStatusProxyResponse.StatusEntry - nil, // 45: imrpc.EngineReplicaRebuildStatusProxyResponse.StatusEntry - nil, // 46: imrpc.EngineSnapshotHashStatusProxyResponse.StatusEntry - (BackendStoreDriver)(0), // 47: imrpc.BackendStoreDriver - (DataEngine)(0), // 48: imrpc.DataEngine - (*ptypes.VersionOutput)(nil), // 49: ptypes.VersionOutput - (*ptypes.Volume)(nil), // 50: ptypes.Volume - (*ptypes.VolumeExpandRequest)(nil), // 51: ptypes.VolumeExpandRequest - (*ptypes.VolumeFrontendStartRequest)(nil), // 52: ptypes.VolumeFrontendStartRequest - (*ptypes.VolumeSnapshotRequest)(nil), // 53: ptypes.VolumeSnapshotRequest - (*ptypes.VolumeSnapshotReply)(nil), // 54: ptypes.VolumeSnapshotReply - (*ptypes.VolumeUnmapMarkSnapChainRemovedSetRequest)(nil), // 55: ptypes.VolumeUnmapMarkSnapChainRemovedSetRequest - (*ptypes.VolumeSnapshotMaxCountSetRequest)(nil), // 56: ptypes.VolumeSnapshotMaxCountSetRequest - (*ptypes.VolumeSnapshotMaxSizeSetRequest)(nil), // 57: ptypes.VolumeSnapshotMaxSizeSetRequest - (*ptypes.ReplicaListReply)(nil), // 58: ptypes.ReplicaListReply - (ptypes.ReplicaMode)(0), // 59: ptypes.ReplicaMode - (*ptypes.Metrics)(nil), // 60: ptypes.Metrics - (*ptypes.SnapshotPurgeStatusResponse)(nil), // 61: ptypes.SnapshotPurgeStatusResponse - (*ptypes.SnapshotCloneStatusResponse)(nil), // 62: ptypes.SnapshotCloneStatusResponse - (*ptypes.ReplicaRebuildStatusResponse)(nil), // 63: ptypes.ReplicaRebuildStatusResponse - (*ptypes.SnapshotHashStatusResponse)(nil), // 64: ptypes.SnapshotHashStatusResponse - (*emptypb.Empty)(nil), // 65: google.protobuf.Empty -} -var file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_depIdxs = []int32{ - 47, // 0: imrpc.ProxyEngineRequest.backend_store_driver:type_name -> imrpc.BackendStoreDriver - 48, // 1: imrpc.ProxyEngineRequest.data_engine:type_name -> imrpc.DataEngine - 49, // 2: imrpc.EngineVersionProxyResponse.version:type_name -> ptypes.VersionOutput - 50, // 3: imrpc.EngineVolumeGetProxyResponse.volume:type_name -> ptypes.Volume - 0, // 4: imrpc.EngineVolumeExpandRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 51, // 5: imrpc.EngineVolumeExpandRequest.expand:type_name -> ptypes.VolumeExpandRequest - 0, // 6: imrpc.EngineVolumeFrontendStartRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 52, // 7: imrpc.EngineVolumeFrontendStartRequest.frontend_start:type_name -> ptypes.VolumeFrontendStartRequest - 0, // 8: imrpc.EngineVolumeSnapshotRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 53, // 9: imrpc.EngineVolumeSnapshotRequest.snapshot_volume:type_name -> ptypes.VolumeSnapshotRequest - 54, // 10: imrpc.EngineVolumeSnapshotProxyResponse.snapshot:type_name -> ptypes.VolumeSnapshotReply - 0, // 11: imrpc.EngineVolumeUnmapMarkSnapChainRemovedSetRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 55, // 12: imrpc.EngineVolumeUnmapMarkSnapChainRemovedSetRequest.unmap_mark_snap:type_name -> ptypes.VolumeUnmapMarkSnapChainRemovedSetRequest - 0, // 13: imrpc.EngineVolumeSnapshotMaxCountSetRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 56, // 14: imrpc.EngineVolumeSnapshotMaxCountSetRequest.count:type_name -> ptypes.VolumeSnapshotMaxCountSetRequest - 0, // 15: imrpc.EngineVolumeSnapshotMaxSizeSetRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 57, // 16: imrpc.EngineVolumeSnapshotMaxSizeSetRequest.size:type_name -> ptypes.VolumeSnapshotMaxSizeSetRequest - 38, // 17: imrpc.EngineSnapshotListProxyResponse.disks:type_name -> imrpc.EngineSnapshotListProxyResponse.DisksEntry - 39, // 18: imrpc.EngineSnapshotDiskInfo.children:type_name -> imrpc.EngineSnapshotDiskInfo.ChildrenEntry - 40, // 19: imrpc.EngineSnapshotDiskInfo.labels:type_name -> imrpc.EngineSnapshotDiskInfo.LabelsEntry - 0, // 20: imrpc.EngineSnapshotRevertRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 0, // 21: imrpc.EngineSnapshotPurgeRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 41, // 22: imrpc.EngineSnapshotPurgeStatusProxyResponse.status:type_name -> imrpc.EngineSnapshotPurgeStatusProxyResponse.StatusEntry - 0, // 23: imrpc.EngineSnapshotCloneRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 42, // 24: imrpc.EngineSnapshotCloneStatusProxyResponse.status:type_name -> imrpc.EngineSnapshotCloneStatusProxyResponse.StatusEntry - 0, // 25: imrpc.EngineSnapshotRemoveRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 0, // 26: imrpc.EngineSnapshotBackupRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 43, // 27: imrpc.EngineSnapshotBackupRequest.labels:type_name -> imrpc.EngineSnapshotBackupRequest.LabelsEntry - 0, // 28: imrpc.EngineSnapshotBackupStatusRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 0, // 29: imrpc.EngineBackupRestoreRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 44, // 30: imrpc.EngineBackupRestoreStatusProxyResponse.status:type_name -> imrpc.EngineBackupRestoreStatusProxyResponse.StatusEntry - 0, // 31: imrpc.EngineBackupRestoreFinishRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 0, // 32: imrpc.EngineReplicaAddRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 58, // 33: imrpc.EngineReplicaListProxyResponse.replica_list:type_name -> ptypes.ReplicaListReply - 0, // 34: imrpc.EngineReplicaVerifyRebuildRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 45, // 35: imrpc.EngineReplicaRebuildStatusProxyResponse.status:type_name -> imrpc.EngineReplicaRebuildStatusProxyResponse.StatusEntry - 0, // 36: imrpc.EngineReplicaRemoveRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 0, // 37: imrpc.EngineReplicaModeUpdateRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 59, // 38: imrpc.EngineReplicaModeUpdateRequest.mode:type_name -> ptypes.ReplicaMode - 0, // 39: imrpc.EngineSnapshotHashRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 0, // 40: imrpc.EngineSnapshotHashStatusRequest.proxy_engine_request:type_name -> imrpc.ProxyEngineRequest - 46, // 41: imrpc.EngineSnapshotHashStatusProxyResponse.status:type_name -> imrpc.EngineSnapshotHashStatusProxyResponse.StatusEntry - 60, // 42: imrpc.EngineMetricsGetProxyResponse.metrics:type_name -> ptypes.Metrics - 11, // 43: imrpc.EngineSnapshotListProxyResponse.DisksEntry.value:type_name -> imrpc.EngineSnapshotDiskInfo - 61, // 44: imrpc.EngineSnapshotPurgeStatusProxyResponse.StatusEntry.value:type_name -> ptypes.SnapshotPurgeStatusResponse - 62, // 45: imrpc.EngineSnapshotCloneStatusProxyResponse.StatusEntry.value:type_name -> ptypes.SnapshotCloneStatusResponse - 25, // 46: imrpc.EngineBackupRestoreStatusProxyResponse.StatusEntry.value:type_name -> imrpc.EngineBackupRestoreStatus - 63, // 47: imrpc.EngineReplicaRebuildStatusProxyResponse.StatusEntry.value:type_name -> ptypes.ReplicaRebuildStatusResponse - 64, // 48: imrpc.EngineSnapshotHashStatusProxyResponse.StatusEntry.value:type_name -> ptypes.SnapshotHashStatusResponse - 0, // 49: imrpc.ProxyEngineService.ServerVersionGet:input_type -> imrpc.ProxyEngineRequest - 0, // 50: imrpc.ProxyEngineService.VolumeGet:input_type -> imrpc.ProxyEngineRequest - 3, // 51: imrpc.ProxyEngineService.VolumeExpand:input_type -> imrpc.EngineVolumeExpandRequest - 4, // 52: imrpc.ProxyEngineService.VolumeFrontendStart:input_type -> imrpc.EngineVolumeFrontendStartRequest - 0, // 53: imrpc.ProxyEngineService.VolumeFrontendShutdown:input_type -> imrpc.ProxyEngineRequest - 7, // 54: imrpc.ProxyEngineService.VolumeUnmapMarkSnapChainRemovedSet:input_type -> imrpc.EngineVolumeUnmapMarkSnapChainRemovedSetRequest - 8, // 55: imrpc.ProxyEngineService.VolumeSnapshotMaxCountSet:input_type -> imrpc.EngineVolumeSnapshotMaxCountSetRequest - 9, // 56: imrpc.ProxyEngineService.VolumeSnapshotMaxSizeSet:input_type -> imrpc.EngineVolumeSnapshotMaxSizeSetRequest - 5, // 57: imrpc.ProxyEngineService.VolumeSnapshot:input_type -> imrpc.EngineVolumeSnapshotRequest - 0, // 58: imrpc.ProxyEngineService.SnapshotList:input_type -> imrpc.ProxyEngineRequest - 12, // 59: imrpc.ProxyEngineService.SnapshotRevert:input_type -> imrpc.EngineSnapshotRevertRequest - 13, // 60: imrpc.ProxyEngineService.SnapshotPurge:input_type -> imrpc.EngineSnapshotPurgeRequest - 0, // 61: imrpc.ProxyEngineService.SnapshotPurgeStatus:input_type -> imrpc.ProxyEngineRequest - 15, // 62: imrpc.ProxyEngineService.SnapshotClone:input_type -> imrpc.EngineSnapshotCloneRequest - 0, // 63: imrpc.ProxyEngineService.SnapshotCloneStatus:input_type -> imrpc.ProxyEngineRequest - 17, // 64: imrpc.ProxyEngineService.SnapshotRemove:input_type -> imrpc.EngineSnapshotRemoveRequest - 33, // 65: imrpc.ProxyEngineService.SnapshotHash:input_type -> imrpc.EngineSnapshotHashRequest - 34, // 66: imrpc.ProxyEngineService.SnapshotHashStatus:input_type -> imrpc.EngineSnapshotHashStatusRequest - 18, // 67: imrpc.ProxyEngineService.SnapshotBackup:input_type -> imrpc.EngineSnapshotBackupRequest - 20, // 68: imrpc.ProxyEngineService.SnapshotBackupStatus:input_type -> imrpc.EngineSnapshotBackupStatusRequest - 22, // 69: imrpc.ProxyEngineService.BackupRestore:input_type -> imrpc.EngineBackupRestoreRequest - 0, // 70: imrpc.ProxyEngineService.BackupRestoreStatus:input_type -> imrpc.ProxyEngineRequest - 26, // 71: imrpc.ProxyEngineService.BackupRestoreFinish:input_type -> imrpc.EngineBackupRestoreFinishRequest - 65, // 72: imrpc.ProxyEngineService.CleanupBackupMountPoints:input_type -> google.protobuf.Empty - 27, // 73: imrpc.ProxyEngineService.ReplicaAdd:input_type -> imrpc.EngineReplicaAddRequest - 0, // 74: imrpc.ProxyEngineService.ReplicaList:input_type -> imrpc.ProxyEngineRequest - 0, // 75: imrpc.ProxyEngineService.ReplicaRebuildingStatus:input_type -> imrpc.ProxyEngineRequest - 29, // 76: imrpc.ProxyEngineService.ReplicaVerifyRebuild:input_type -> imrpc.EngineReplicaVerifyRebuildRequest - 31, // 77: imrpc.ProxyEngineService.ReplicaRemove:input_type -> imrpc.EngineReplicaRemoveRequest - 32, // 78: imrpc.ProxyEngineService.ReplicaModeUpdate:input_type -> imrpc.EngineReplicaModeUpdateRequest - 0, // 79: imrpc.ProxyEngineService.MetricsGet:input_type -> imrpc.ProxyEngineRequest - 37, // 80: imrpc.ProxyEngineService.RemountReadOnlyVolume:input_type -> imrpc.RemountVolumeRequest - 1, // 81: imrpc.ProxyEngineService.ServerVersionGet:output_type -> imrpc.EngineVersionProxyResponse - 2, // 82: imrpc.ProxyEngineService.VolumeGet:output_type -> imrpc.EngineVolumeGetProxyResponse - 65, // 83: imrpc.ProxyEngineService.VolumeExpand:output_type -> google.protobuf.Empty - 65, // 84: imrpc.ProxyEngineService.VolumeFrontendStart:output_type -> google.protobuf.Empty - 65, // 85: imrpc.ProxyEngineService.VolumeFrontendShutdown:output_type -> google.protobuf.Empty - 65, // 86: imrpc.ProxyEngineService.VolumeUnmapMarkSnapChainRemovedSet:output_type -> google.protobuf.Empty - 65, // 87: imrpc.ProxyEngineService.VolumeSnapshotMaxCountSet:output_type -> google.protobuf.Empty - 65, // 88: imrpc.ProxyEngineService.VolumeSnapshotMaxSizeSet:output_type -> google.protobuf.Empty - 6, // 89: imrpc.ProxyEngineService.VolumeSnapshot:output_type -> imrpc.EngineVolumeSnapshotProxyResponse - 10, // 90: imrpc.ProxyEngineService.SnapshotList:output_type -> imrpc.EngineSnapshotListProxyResponse - 65, // 91: imrpc.ProxyEngineService.SnapshotRevert:output_type -> google.protobuf.Empty - 65, // 92: imrpc.ProxyEngineService.SnapshotPurge:output_type -> google.protobuf.Empty - 14, // 93: imrpc.ProxyEngineService.SnapshotPurgeStatus:output_type -> imrpc.EngineSnapshotPurgeStatusProxyResponse - 65, // 94: imrpc.ProxyEngineService.SnapshotClone:output_type -> google.protobuf.Empty - 16, // 95: imrpc.ProxyEngineService.SnapshotCloneStatus:output_type -> imrpc.EngineSnapshotCloneStatusProxyResponse - 65, // 96: imrpc.ProxyEngineService.SnapshotRemove:output_type -> google.protobuf.Empty - 65, // 97: imrpc.ProxyEngineService.SnapshotHash:output_type -> google.protobuf.Empty - 35, // 98: imrpc.ProxyEngineService.SnapshotHashStatus:output_type -> imrpc.EngineSnapshotHashStatusProxyResponse - 19, // 99: imrpc.ProxyEngineService.SnapshotBackup:output_type -> imrpc.EngineSnapshotBackupProxyResponse - 21, // 100: imrpc.ProxyEngineService.SnapshotBackupStatus:output_type -> imrpc.EngineSnapshotBackupStatusProxyResponse - 23, // 101: imrpc.ProxyEngineService.BackupRestore:output_type -> imrpc.EngineBackupRestoreProxyResponse - 24, // 102: imrpc.ProxyEngineService.BackupRestoreStatus:output_type -> imrpc.EngineBackupRestoreStatusProxyResponse - 65, // 103: imrpc.ProxyEngineService.BackupRestoreFinish:output_type -> google.protobuf.Empty - 65, // 104: imrpc.ProxyEngineService.CleanupBackupMountPoints:output_type -> google.protobuf.Empty - 65, // 105: imrpc.ProxyEngineService.ReplicaAdd:output_type -> google.protobuf.Empty - 28, // 106: imrpc.ProxyEngineService.ReplicaList:output_type -> imrpc.EngineReplicaListProxyResponse - 30, // 107: imrpc.ProxyEngineService.ReplicaRebuildingStatus:output_type -> imrpc.EngineReplicaRebuildStatusProxyResponse - 65, // 108: imrpc.ProxyEngineService.ReplicaVerifyRebuild:output_type -> google.protobuf.Empty - 65, // 109: imrpc.ProxyEngineService.ReplicaRemove:output_type -> google.protobuf.Empty - 65, // 110: imrpc.ProxyEngineService.ReplicaModeUpdate:output_type -> google.protobuf.Empty - 36, // 111: imrpc.ProxyEngineService.MetricsGet:output_type -> imrpc.EngineMetricsGetProxyResponse - 65, // 112: imrpc.ProxyEngineService.RemountReadOnlyVolume:output_type -> google.protobuf.Empty - 81, // [81:113] is the sub-list for method output_type - 49, // [49:81] is the sub-list for method input_type - 49, // [49:49] is the sub-list for extension type_name - 49, // [49:49] is the sub-list for extension extendee - 0, // [0:49] is the sub-list for field type_name -} - -func init() { file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_init() } -func file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_init() { - if File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto != nil { - return - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProxyEngineRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineVersionProxyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineVolumeGetProxyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineVolumeExpandRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineVolumeFrontendStartRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineVolumeSnapshotRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineVolumeSnapshotProxyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineVolumeUnmapMarkSnapChainRemovedSetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineVolumeSnapshotMaxCountSetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineVolumeSnapshotMaxSizeSetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotListProxyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotDiskInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotRevertRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotPurgeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotPurgeStatusProxyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotCloneRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotCloneStatusProxyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotRemoveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotBackupRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotBackupProxyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotBackupStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotBackupStatusProxyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineBackupRestoreRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineBackupRestoreProxyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineBackupRestoreStatusProxyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineBackupRestoreStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineBackupRestoreFinishRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineReplicaAddRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineReplicaListProxyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineReplicaVerifyRebuildRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineReplicaRebuildStatusProxyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineReplicaRemoveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineReplicaModeUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotHashRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotHashStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineSnapshotHashStatusProxyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EngineMetricsGetProxyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemountVolumeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDesc, - NumEnums: 0, - NumMessages: 47, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_goTypes, - DependencyIndexes: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_depIdxs, - MessageInfos: file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_msgTypes, - }.Build() - File_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto = out.File - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_rawDesc = nil - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_goTypes = nil - file_github_com_longhorn_longhorn_instance_manager_pkg_imrpc_proxy_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// ProxyEngineServiceClient is the client API for ProxyEngineService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ProxyEngineServiceClient interface { - ServerVersionGet(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineVersionProxyResponse, error) - VolumeGet(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineVolumeGetProxyResponse, error) - VolumeExpand(ctx context.Context, in *EngineVolumeExpandRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - VolumeFrontendStart(ctx context.Context, in *EngineVolumeFrontendStartRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - VolumeFrontendShutdown(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - VolumeUnmapMarkSnapChainRemovedSet(ctx context.Context, in *EngineVolumeUnmapMarkSnapChainRemovedSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - VolumeSnapshotMaxCountSet(ctx context.Context, in *EngineVolumeSnapshotMaxCountSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - VolumeSnapshotMaxSizeSet(ctx context.Context, in *EngineVolumeSnapshotMaxSizeSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - VolumeSnapshot(ctx context.Context, in *EngineVolumeSnapshotRequest, opts ...grpc.CallOption) (*EngineVolumeSnapshotProxyResponse, error) - SnapshotList(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineSnapshotListProxyResponse, error) - SnapshotRevert(ctx context.Context, in *EngineSnapshotRevertRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - SnapshotPurge(ctx context.Context, in *EngineSnapshotPurgeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - SnapshotPurgeStatus(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineSnapshotPurgeStatusProxyResponse, error) - SnapshotClone(ctx context.Context, in *EngineSnapshotCloneRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - SnapshotCloneStatus(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineSnapshotCloneStatusProxyResponse, error) - SnapshotRemove(ctx context.Context, in *EngineSnapshotRemoveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - SnapshotHash(ctx context.Context, in *EngineSnapshotHashRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - SnapshotHashStatus(ctx context.Context, in *EngineSnapshotHashStatusRequest, opts ...grpc.CallOption) (*EngineSnapshotHashStatusProxyResponse, error) - SnapshotBackup(ctx context.Context, in *EngineSnapshotBackupRequest, opts ...grpc.CallOption) (*EngineSnapshotBackupProxyResponse, error) - SnapshotBackupStatus(ctx context.Context, in *EngineSnapshotBackupStatusRequest, opts ...grpc.CallOption) (*EngineSnapshotBackupStatusProxyResponse, error) - BackupRestore(ctx context.Context, in *EngineBackupRestoreRequest, opts ...grpc.CallOption) (*EngineBackupRestoreProxyResponse, error) - BackupRestoreStatus(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineBackupRestoreStatusProxyResponse, error) - BackupRestoreFinish(ctx context.Context, in *EngineBackupRestoreFinishRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - CleanupBackupMountPoints(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) - ReplicaAdd(ctx context.Context, in *EngineReplicaAddRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - ReplicaList(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineReplicaListProxyResponse, error) - ReplicaRebuildingStatus(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineReplicaRebuildStatusProxyResponse, error) - ReplicaVerifyRebuild(ctx context.Context, in *EngineReplicaVerifyRebuildRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - ReplicaRemove(ctx context.Context, in *EngineReplicaRemoveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - ReplicaModeUpdate(ctx context.Context, in *EngineReplicaModeUpdateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - MetricsGet(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineMetricsGetProxyResponse, error) - RemountReadOnlyVolume(ctx context.Context, in *RemountVolumeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) -} - -type proxyEngineServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewProxyEngineServiceClient(cc grpc.ClientConnInterface) ProxyEngineServiceClient { - return &proxyEngineServiceClient{cc} -} - -func (c *proxyEngineServiceClient) ServerVersionGet(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineVersionProxyResponse, error) { - out := new(EngineVersionProxyResponse) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/ServerVersionGet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) VolumeGet(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineVolumeGetProxyResponse, error) { - out := new(EngineVolumeGetProxyResponse) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/VolumeGet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) VolumeExpand(ctx context.Context, in *EngineVolumeExpandRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/VolumeExpand", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) VolumeFrontendStart(ctx context.Context, in *EngineVolumeFrontendStartRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/VolumeFrontendStart", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) VolumeFrontendShutdown(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/VolumeFrontendShutdown", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) VolumeUnmapMarkSnapChainRemovedSet(ctx context.Context, in *EngineVolumeUnmapMarkSnapChainRemovedSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/VolumeUnmapMarkSnapChainRemovedSet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) VolumeSnapshotMaxCountSet(ctx context.Context, in *EngineVolumeSnapshotMaxCountSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/VolumeSnapshotMaxCountSet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) VolumeSnapshotMaxSizeSet(ctx context.Context, in *EngineVolumeSnapshotMaxSizeSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/VolumeSnapshotMaxSizeSet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) VolumeSnapshot(ctx context.Context, in *EngineVolumeSnapshotRequest, opts ...grpc.CallOption) (*EngineVolumeSnapshotProxyResponse, error) { - out := new(EngineVolumeSnapshotProxyResponse) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/VolumeSnapshot", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) SnapshotList(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineSnapshotListProxyResponse, error) { - out := new(EngineSnapshotListProxyResponse) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/SnapshotList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) SnapshotRevert(ctx context.Context, in *EngineSnapshotRevertRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/SnapshotRevert", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) SnapshotPurge(ctx context.Context, in *EngineSnapshotPurgeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/SnapshotPurge", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) SnapshotPurgeStatus(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineSnapshotPurgeStatusProxyResponse, error) { - out := new(EngineSnapshotPurgeStatusProxyResponse) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/SnapshotPurgeStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) SnapshotClone(ctx context.Context, in *EngineSnapshotCloneRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/SnapshotClone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) SnapshotCloneStatus(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineSnapshotCloneStatusProxyResponse, error) { - out := new(EngineSnapshotCloneStatusProxyResponse) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/SnapshotCloneStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) SnapshotRemove(ctx context.Context, in *EngineSnapshotRemoveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/SnapshotRemove", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) SnapshotHash(ctx context.Context, in *EngineSnapshotHashRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/SnapshotHash", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) SnapshotHashStatus(ctx context.Context, in *EngineSnapshotHashStatusRequest, opts ...grpc.CallOption) (*EngineSnapshotHashStatusProxyResponse, error) { - out := new(EngineSnapshotHashStatusProxyResponse) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/SnapshotHashStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) SnapshotBackup(ctx context.Context, in *EngineSnapshotBackupRequest, opts ...grpc.CallOption) (*EngineSnapshotBackupProxyResponse, error) { - out := new(EngineSnapshotBackupProxyResponse) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/SnapshotBackup", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) SnapshotBackupStatus(ctx context.Context, in *EngineSnapshotBackupStatusRequest, opts ...grpc.CallOption) (*EngineSnapshotBackupStatusProxyResponse, error) { - out := new(EngineSnapshotBackupStatusProxyResponse) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/SnapshotBackupStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) BackupRestore(ctx context.Context, in *EngineBackupRestoreRequest, opts ...grpc.CallOption) (*EngineBackupRestoreProxyResponse, error) { - out := new(EngineBackupRestoreProxyResponse) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/BackupRestore", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) BackupRestoreStatus(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineBackupRestoreStatusProxyResponse, error) { - out := new(EngineBackupRestoreStatusProxyResponse) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/BackupRestoreStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) BackupRestoreFinish(ctx context.Context, in *EngineBackupRestoreFinishRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/BackupRestoreFinish", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) CleanupBackupMountPoints(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/CleanupBackupMountPoints", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) ReplicaAdd(ctx context.Context, in *EngineReplicaAddRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/ReplicaAdd", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) ReplicaList(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineReplicaListProxyResponse, error) { - out := new(EngineReplicaListProxyResponse) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/ReplicaList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) ReplicaRebuildingStatus(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineReplicaRebuildStatusProxyResponse, error) { - out := new(EngineReplicaRebuildStatusProxyResponse) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/ReplicaRebuildingStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) ReplicaVerifyRebuild(ctx context.Context, in *EngineReplicaVerifyRebuildRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/ReplicaVerifyRebuild", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) ReplicaRemove(ctx context.Context, in *EngineReplicaRemoveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/ReplicaRemove", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) ReplicaModeUpdate(ctx context.Context, in *EngineReplicaModeUpdateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/ReplicaModeUpdate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) MetricsGet(ctx context.Context, in *ProxyEngineRequest, opts ...grpc.CallOption) (*EngineMetricsGetProxyResponse, error) { - out := new(EngineMetricsGetProxyResponse) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/MetricsGet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proxyEngineServiceClient) RemountReadOnlyVolume(ctx context.Context, in *RemountVolumeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/imrpc.ProxyEngineService/RemountReadOnlyVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ProxyEngineServiceServer is the server API for ProxyEngineService service. -type ProxyEngineServiceServer interface { - ServerVersionGet(context.Context, *ProxyEngineRequest) (*EngineVersionProxyResponse, error) - VolumeGet(context.Context, *ProxyEngineRequest) (*EngineVolumeGetProxyResponse, error) - VolumeExpand(context.Context, *EngineVolumeExpandRequest) (*emptypb.Empty, error) - VolumeFrontendStart(context.Context, *EngineVolumeFrontendStartRequest) (*emptypb.Empty, error) - VolumeFrontendShutdown(context.Context, *ProxyEngineRequest) (*emptypb.Empty, error) - VolumeUnmapMarkSnapChainRemovedSet(context.Context, *EngineVolumeUnmapMarkSnapChainRemovedSetRequest) (*emptypb.Empty, error) - VolumeSnapshotMaxCountSet(context.Context, *EngineVolumeSnapshotMaxCountSetRequest) (*emptypb.Empty, error) - VolumeSnapshotMaxSizeSet(context.Context, *EngineVolumeSnapshotMaxSizeSetRequest) (*emptypb.Empty, error) - VolumeSnapshot(context.Context, *EngineVolumeSnapshotRequest) (*EngineVolumeSnapshotProxyResponse, error) - SnapshotList(context.Context, *ProxyEngineRequest) (*EngineSnapshotListProxyResponse, error) - SnapshotRevert(context.Context, *EngineSnapshotRevertRequest) (*emptypb.Empty, error) - SnapshotPurge(context.Context, *EngineSnapshotPurgeRequest) (*emptypb.Empty, error) - SnapshotPurgeStatus(context.Context, *ProxyEngineRequest) (*EngineSnapshotPurgeStatusProxyResponse, error) - SnapshotClone(context.Context, *EngineSnapshotCloneRequest) (*emptypb.Empty, error) - SnapshotCloneStatus(context.Context, *ProxyEngineRequest) (*EngineSnapshotCloneStatusProxyResponse, error) - SnapshotRemove(context.Context, *EngineSnapshotRemoveRequest) (*emptypb.Empty, error) - SnapshotHash(context.Context, *EngineSnapshotHashRequest) (*emptypb.Empty, error) - SnapshotHashStatus(context.Context, *EngineSnapshotHashStatusRequest) (*EngineSnapshotHashStatusProxyResponse, error) - SnapshotBackup(context.Context, *EngineSnapshotBackupRequest) (*EngineSnapshotBackupProxyResponse, error) - SnapshotBackupStatus(context.Context, *EngineSnapshotBackupStatusRequest) (*EngineSnapshotBackupStatusProxyResponse, error) - BackupRestore(context.Context, *EngineBackupRestoreRequest) (*EngineBackupRestoreProxyResponse, error) - BackupRestoreStatus(context.Context, *ProxyEngineRequest) (*EngineBackupRestoreStatusProxyResponse, error) - BackupRestoreFinish(context.Context, *EngineBackupRestoreFinishRequest) (*emptypb.Empty, error) - CleanupBackupMountPoints(context.Context, *emptypb.Empty) (*emptypb.Empty, error) - ReplicaAdd(context.Context, *EngineReplicaAddRequest) (*emptypb.Empty, error) - ReplicaList(context.Context, *ProxyEngineRequest) (*EngineReplicaListProxyResponse, error) - ReplicaRebuildingStatus(context.Context, *ProxyEngineRequest) (*EngineReplicaRebuildStatusProxyResponse, error) - ReplicaVerifyRebuild(context.Context, *EngineReplicaVerifyRebuildRequest) (*emptypb.Empty, error) - ReplicaRemove(context.Context, *EngineReplicaRemoveRequest) (*emptypb.Empty, error) - ReplicaModeUpdate(context.Context, *EngineReplicaModeUpdateRequest) (*emptypb.Empty, error) - MetricsGet(context.Context, *ProxyEngineRequest) (*EngineMetricsGetProxyResponse, error) - RemountReadOnlyVolume(context.Context, *RemountVolumeRequest) (*emptypb.Empty, error) -} - -// UnimplementedProxyEngineServiceServer can be embedded to have forward compatible implementations. -type UnimplementedProxyEngineServiceServer struct { -} - -func (*UnimplementedProxyEngineServiceServer) ServerVersionGet(context.Context, *ProxyEngineRequest) (*EngineVersionProxyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ServerVersionGet not implemented") -} -func (*UnimplementedProxyEngineServiceServer) VolumeGet(context.Context, *ProxyEngineRequest) (*EngineVolumeGetProxyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VolumeGet not implemented") -} -func (*UnimplementedProxyEngineServiceServer) VolumeExpand(context.Context, *EngineVolumeExpandRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method VolumeExpand not implemented") -} -func (*UnimplementedProxyEngineServiceServer) VolumeFrontendStart(context.Context, *EngineVolumeFrontendStartRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method VolumeFrontendStart not implemented") -} -func (*UnimplementedProxyEngineServiceServer) VolumeFrontendShutdown(context.Context, *ProxyEngineRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method VolumeFrontendShutdown not implemented") -} -func (*UnimplementedProxyEngineServiceServer) VolumeUnmapMarkSnapChainRemovedSet(context.Context, *EngineVolumeUnmapMarkSnapChainRemovedSetRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method VolumeUnmapMarkSnapChainRemovedSet not implemented") -} -func (*UnimplementedProxyEngineServiceServer) VolumeSnapshotMaxCountSet(context.Context, *EngineVolumeSnapshotMaxCountSetRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method VolumeSnapshotMaxCountSet not implemented") -} -func (*UnimplementedProxyEngineServiceServer) VolumeSnapshotMaxSizeSet(context.Context, *EngineVolumeSnapshotMaxSizeSetRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method VolumeSnapshotMaxSizeSet not implemented") -} -func (*UnimplementedProxyEngineServiceServer) VolumeSnapshot(context.Context, *EngineVolumeSnapshotRequest) (*EngineVolumeSnapshotProxyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VolumeSnapshot not implemented") -} -func (*UnimplementedProxyEngineServiceServer) SnapshotList(context.Context, *ProxyEngineRequest) (*EngineSnapshotListProxyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SnapshotList not implemented") -} -func (*UnimplementedProxyEngineServiceServer) SnapshotRevert(context.Context, *EngineSnapshotRevertRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SnapshotRevert not implemented") -} -func (*UnimplementedProxyEngineServiceServer) SnapshotPurge(context.Context, *EngineSnapshotPurgeRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SnapshotPurge not implemented") -} -func (*UnimplementedProxyEngineServiceServer) SnapshotPurgeStatus(context.Context, *ProxyEngineRequest) (*EngineSnapshotPurgeStatusProxyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SnapshotPurgeStatus not implemented") -} -func (*UnimplementedProxyEngineServiceServer) SnapshotClone(context.Context, *EngineSnapshotCloneRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SnapshotClone not implemented") -} -func (*UnimplementedProxyEngineServiceServer) SnapshotCloneStatus(context.Context, *ProxyEngineRequest) (*EngineSnapshotCloneStatusProxyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SnapshotCloneStatus not implemented") -} -func (*UnimplementedProxyEngineServiceServer) SnapshotRemove(context.Context, *EngineSnapshotRemoveRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SnapshotRemove not implemented") -} -func (*UnimplementedProxyEngineServiceServer) SnapshotHash(context.Context, *EngineSnapshotHashRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SnapshotHash not implemented") -} -func (*UnimplementedProxyEngineServiceServer) SnapshotHashStatus(context.Context, *EngineSnapshotHashStatusRequest) (*EngineSnapshotHashStatusProxyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SnapshotHashStatus not implemented") -} -func (*UnimplementedProxyEngineServiceServer) SnapshotBackup(context.Context, *EngineSnapshotBackupRequest) (*EngineSnapshotBackupProxyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SnapshotBackup not implemented") -} -func (*UnimplementedProxyEngineServiceServer) SnapshotBackupStatus(context.Context, *EngineSnapshotBackupStatusRequest) (*EngineSnapshotBackupStatusProxyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SnapshotBackupStatus not implemented") -} -func (*UnimplementedProxyEngineServiceServer) BackupRestore(context.Context, *EngineBackupRestoreRequest) (*EngineBackupRestoreProxyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BackupRestore not implemented") -} -func (*UnimplementedProxyEngineServiceServer) BackupRestoreStatus(context.Context, *ProxyEngineRequest) (*EngineBackupRestoreStatusProxyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BackupRestoreStatus not implemented") -} -func (*UnimplementedProxyEngineServiceServer) BackupRestoreFinish(context.Context, *EngineBackupRestoreFinishRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method BackupRestoreFinish not implemented") -} -func (*UnimplementedProxyEngineServiceServer) CleanupBackupMountPoints(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method CleanupBackupMountPoints not implemented") -} -func (*UnimplementedProxyEngineServiceServer) ReplicaAdd(context.Context, *EngineReplicaAddRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReplicaAdd not implemented") -} -func (*UnimplementedProxyEngineServiceServer) ReplicaList(context.Context, *ProxyEngineRequest) (*EngineReplicaListProxyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReplicaList not implemented") -} -func (*UnimplementedProxyEngineServiceServer) ReplicaRebuildingStatus(context.Context, *ProxyEngineRequest) (*EngineReplicaRebuildStatusProxyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReplicaRebuildingStatus not implemented") -} -func (*UnimplementedProxyEngineServiceServer) ReplicaVerifyRebuild(context.Context, *EngineReplicaVerifyRebuildRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReplicaVerifyRebuild not implemented") -} -func (*UnimplementedProxyEngineServiceServer) ReplicaRemove(context.Context, *EngineReplicaRemoveRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReplicaRemove not implemented") -} -func (*UnimplementedProxyEngineServiceServer) ReplicaModeUpdate(context.Context, *EngineReplicaModeUpdateRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReplicaModeUpdate not implemented") -} -func (*UnimplementedProxyEngineServiceServer) MetricsGet(context.Context, *ProxyEngineRequest) (*EngineMetricsGetProxyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MetricsGet not implemented") -} -func (*UnimplementedProxyEngineServiceServer) RemountReadOnlyVolume(context.Context, *RemountVolumeRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemountReadOnlyVolume not implemented") -} - -func RegisterProxyEngineServiceServer(s *grpc.Server, srv ProxyEngineServiceServer) { - s.RegisterService(&_ProxyEngineService_serviceDesc, srv) -} - -func _ProxyEngineService_ServerVersionGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProxyEngineRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).ServerVersionGet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/ServerVersionGet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).ServerVersionGet(ctx, req.(*ProxyEngineRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_VolumeGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProxyEngineRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).VolumeGet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/VolumeGet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).VolumeGet(ctx, req.(*ProxyEngineRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_VolumeExpand_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineVolumeExpandRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).VolumeExpand(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/VolumeExpand", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).VolumeExpand(ctx, req.(*EngineVolumeExpandRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_VolumeFrontendStart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineVolumeFrontendStartRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).VolumeFrontendStart(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/VolumeFrontendStart", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).VolumeFrontendStart(ctx, req.(*EngineVolumeFrontendStartRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_VolumeFrontendShutdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProxyEngineRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).VolumeFrontendShutdown(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/VolumeFrontendShutdown", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).VolumeFrontendShutdown(ctx, req.(*ProxyEngineRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_VolumeUnmapMarkSnapChainRemovedSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineVolumeUnmapMarkSnapChainRemovedSetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).VolumeUnmapMarkSnapChainRemovedSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/VolumeUnmapMarkSnapChainRemovedSet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).VolumeUnmapMarkSnapChainRemovedSet(ctx, req.(*EngineVolumeUnmapMarkSnapChainRemovedSetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_VolumeSnapshotMaxCountSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineVolumeSnapshotMaxCountSetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).VolumeSnapshotMaxCountSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/VolumeSnapshotMaxCountSet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).VolumeSnapshotMaxCountSet(ctx, req.(*EngineVolumeSnapshotMaxCountSetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_VolumeSnapshotMaxSizeSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineVolumeSnapshotMaxSizeSetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).VolumeSnapshotMaxSizeSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/VolumeSnapshotMaxSizeSet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).VolumeSnapshotMaxSizeSet(ctx, req.(*EngineVolumeSnapshotMaxSizeSetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_VolumeSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineVolumeSnapshotRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).VolumeSnapshot(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/VolumeSnapshot", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).VolumeSnapshot(ctx, req.(*EngineVolumeSnapshotRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_SnapshotList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProxyEngineRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).SnapshotList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/SnapshotList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).SnapshotList(ctx, req.(*ProxyEngineRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_SnapshotRevert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineSnapshotRevertRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).SnapshotRevert(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/SnapshotRevert", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).SnapshotRevert(ctx, req.(*EngineSnapshotRevertRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_SnapshotPurge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineSnapshotPurgeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).SnapshotPurge(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/SnapshotPurge", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).SnapshotPurge(ctx, req.(*EngineSnapshotPurgeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_SnapshotPurgeStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProxyEngineRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).SnapshotPurgeStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/SnapshotPurgeStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).SnapshotPurgeStatus(ctx, req.(*ProxyEngineRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_SnapshotClone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineSnapshotCloneRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).SnapshotClone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/SnapshotClone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).SnapshotClone(ctx, req.(*EngineSnapshotCloneRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_SnapshotCloneStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProxyEngineRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).SnapshotCloneStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/SnapshotCloneStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).SnapshotCloneStatus(ctx, req.(*ProxyEngineRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_SnapshotRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineSnapshotRemoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).SnapshotRemove(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/SnapshotRemove", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).SnapshotRemove(ctx, req.(*EngineSnapshotRemoveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_SnapshotHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineSnapshotHashRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).SnapshotHash(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/SnapshotHash", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).SnapshotHash(ctx, req.(*EngineSnapshotHashRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_SnapshotHashStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineSnapshotHashStatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).SnapshotHashStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/SnapshotHashStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).SnapshotHashStatus(ctx, req.(*EngineSnapshotHashStatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_SnapshotBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineSnapshotBackupRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).SnapshotBackup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/SnapshotBackup", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).SnapshotBackup(ctx, req.(*EngineSnapshotBackupRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_SnapshotBackupStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineSnapshotBackupStatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).SnapshotBackupStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/SnapshotBackupStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).SnapshotBackupStatus(ctx, req.(*EngineSnapshotBackupStatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_BackupRestore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineBackupRestoreRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).BackupRestore(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/BackupRestore", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).BackupRestore(ctx, req.(*EngineBackupRestoreRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_BackupRestoreStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProxyEngineRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).BackupRestoreStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/BackupRestoreStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).BackupRestoreStatus(ctx, req.(*ProxyEngineRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_BackupRestoreFinish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineBackupRestoreFinishRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).BackupRestoreFinish(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/BackupRestoreFinish", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).BackupRestoreFinish(ctx, req.(*EngineBackupRestoreFinishRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_CleanupBackupMountPoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).CleanupBackupMountPoints(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/CleanupBackupMountPoints", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).CleanupBackupMountPoints(ctx, req.(*emptypb.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_ReplicaAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineReplicaAddRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).ReplicaAdd(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/ReplicaAdd", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).ReplicaAdd(ctx, req.(*EngineReplicaAddRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_ReplicaList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProxyEngineRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).ReplicaList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/ReplicaList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).ReplicaList(ctx, req.(*ProxyEngineRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_ReplicaRebuildingStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProxyEngineRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).ReplicaRebuildingStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/ReplicaRebuildingStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).ReplicaRebuildingStatus(ctx, req.(*ProxyEngineRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_ReplicaVerifyRebuild_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineReplicaVerifyRebuildRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).ReplicaVerifyRebuild(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/ReplicaVerifyRebuild", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).ReplicaVerifyRebuild(ctx, req.(*EngineReplicaVerifyRebuildRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_ReplicaRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineReplicaRemoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).ReplicaRemove(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/ReplicaRemove", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).ReplicaRemove(ctx, req.(*EngineReplicaRemoveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_ReplicaModeUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EngineReplicaModeUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).ReplicaModeUpdate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/ReplicaModeUpdate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).ReplicaModeUpdate(ctx, req.(*EngineReplicaModeUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_MetricsGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProxyEngineRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).MetricsGet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/MetricsGet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).MetricsGet(ctx, req.(*ProxyEngineRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProxyEngineService_RemountReadOnlyVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemountVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyEngineServiceServer).RemountReadOnlyVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/imrpc.ProxyEngineService/RemountReadOnlyVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyEngineServiceServer).RemountReadOnlyVolume(ctx, req.(*RemountVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _ProxyEngineService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "imrpc.ProxyEngineService", - HandlerType: (*ProxyEngineServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ServerVersionGet", - Handler: _ProxyEngineService_ServerVersionGet_Handler, - }, - { - MethodName: "VolumeGet", - Handler: _ProxyEngineService_VolumeGet_Handler, - }, - { - MethodName: "VolumeExpand", - Handler: _ProxyEngineService_VolumeExpand_Handler, - }, - { - MethodName: "VolumeFrontendStart", - Handler: _ProxyEngineService_VolumeFrontendStart_Handler, - }, - { - MethodName: "VolumeFrontendShutdown", - Handler: _ProxyEngineService_VolumeFrontendShutdown_Handler, - }, - { - MethodName: "VolumeUnmapMarkSnapChainRemovedSet", - Handler: _ProxyEngineService_VolumeUnmapMarkSnapChainRemovedSet_Handler, - }, - { - MethodName: "VolumeSnapshotMaxCountSet", - Handler: _ProxyEngineService_VolumeSnapshotMaxCountSet_Handler, - }, - { - MethodName: "VolumeSnapshotMaxSizeSet", - Handler: _ProxyEngineService_VolumeSnapshotMaxSizeSet_Handler, - }, - { - MethodName: "VolumeSnapshot", - Handler: _ProxyEngineService_VolumeSnapshot_Handler, - }, - { - MethodName: "SnapshotList", - Handler: _ProxyEngineService_SnapshotList_Handler, - }, - { - MethodName: "SnapshotRevert", - Handler: _ProxyEngineService_SnapshotRevert_Handler, - }, - { - MethodName: "SnapshotPurge", - Handler: _ProxyEngineService_SnapshotPurge_Handler, - }, - { - MethodName: "SnapshotPurgeStatus", - Handler: _ProxyEngineService_SnapshotPurgeStatus_Handler, - }, - { - MethodName: "SnapshotClone", - Handler: _ProxyEngineService_SnapshotClone_Handler, - }, - { - MethodName: "SnapshotCloneStatus", - Handler: _ProxyEngineService_SnapshotCloneStatus_Handler, - }, - { - MethodName: "SnapshotRemove", - Handler: _ProxyEngineService_SnapshotRemove_Handler, - }, - { - MethodName: "SnapshotHash", - Handler: _ProxyEngineService_SnapshotHash_Handler, - }, - { - MethodName: "SnapshotHashStatus", - Handler: _ProxyEngineService_SnapshotHashStatus_Handler, - }, - { - MethodName: "SnapshotBackup", - Handler: _ProxyEngineService_SnapshotBackup_Handler, - }, - { - MethodName: "SnapshotBackupStatus", - Handler: _ProxyEngineService_SnapshotBackupStatus_Handler, - }, - { - MethodName: "BackupRestore", - Handler: _ProxyEngineService_BackupRestore_Handler, - }, - { - MethodName: "BackupRestoreStatus", - Handler: _ProxyEngineService_BackupRestoreStatus_Handler, - }, - { - MethodName: "BackupRestoreFinish", - Handler: _ProxyEngineService_BackupRestoreFinish_Handler, - }, - { - MethodName: "CleanupBackupMountPoints", - Handler: _ProxyEngineService_CleanupBackupMountPoints_Handler, - }, - { - MethodName: "ReplicaAdd", - Handler: _ProxyEngineService_ReplicaAdd_Handler, - }, - { - MethodName: "ReplicaList", - Handler: _ProxyEngineService_ReplicaList_Handler, - }, - { - MethodName: "ReplicaRebuildingStatus", - Handler: _ProxyEngineService_ReplicaRebuildingStatus_Handler, - }, - { - MethodName: "ReplicaVerifyRebuild", - Handler: _ProxyEngineService_ReplicaVerifyRebuild_Handler, - }, - { - MethodName: "ReplicaRemove", - Handler: _ProxyEngineService_ReplicaRemove_Handler, - }, - { - MethodName: "ReplicaModeUpdate", - Handler: _ProxyEngineService_ReplicaModeUpdate_Handler, - }, - { - MethodName: "MetricsGet", - Handler: _ProxyEngineService_MetricsGet_Handler, - }, - { - MethodName: "RemountReadOnlyVolume", - Handler: _ProxyEngineService_RemountReadOnlyVolume_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "github.com/longhorn/longhorn-instance-manager/pkg/imrpc/proxy.proto", -} diff --git a/pkg/imrpc/proxy.proto b/pkg/imrpc/proxy.proto deleted file mode 100644 index f4391ce64..000000000 --- a/pkg/imrpc/proxy.proto +++ /dev/null @@ -1,300 +0,0 @@ -syntax="proto3"; - -package imrpc; - -option go_package = "github.com/longhorn/longhorn-instance-manager/pkg/imrpc"; - -import "google/protobuf/empty.proto"; -import "github.com/longhorn/longhorn-engine/proto/ptypes/controller.proto"; -import "github.com/longhorn/longhorn-engine/proto/ptypes/syncagent.proto"; -import "github.com/longhorn/longhorn-instance-manager/pkg/imrpc/common.proto"; - - -service ProxyEngineService { - rpc ServerVersionGet(ProxyEngineRequest) returns (EngineVersionProxyResponse); - - rpc VolumeGet(ProxyEngineRequest) returns (EngineVolumeGetProxyResponse); - rpc VolumeExpand(EngineVolumeExpandRequest) returns (google.protobuf.Empty); - rpc VolumeFrontendStart(EngineVolumeFrontendStartRequest) returns (google.protobuf.Empty); - rpc VolumeFrontendShutdown(ProxyEngineRequest) returns (google.protobuf.Empty); - rpc VolumeUnmapMarkSnapChainRemovedSet(EngineVolumeUnmapMarkSnapChainRemovedSetRequest) returns (google.protobuf.Empty); - rpc VolumeSnapshotMaxCountSet(EngineVolumeSnapshotMaxCountSetRequest) returns (google.protobuf.Empty); - rpc VolumeSnapshotMaxSizeSet(EngineVolumeSnapshotMaxSizeSetRequest) returns (google.protobuf.Empty); - - rpc VolumeSnapshot(EngineVolumeSnapshotRequest) returns (EngineVolumeSnapshotProxyResponse); - rpc SnapshotList(ProxyEngineRequest) returns (EngineSnapshotListProxyResponse); - rpc SnapshotRevert(EngineSnapshotRevertRequest) returns (google.protobuf.Empty); - rpc SnapshotPurge(EngineSnapshotPurgeRequest) returns (google.protobuf.Empty); - rpc SnapshotPurgeStatus(ProxyEngineRequest) returns (EngineSnapshotPurgeStatusProxyResponse); - rpc SnapshotClone(EngineSnapshotCloneRequest) returns (google.protobuf.Empty); - rpc SnapshotCloneStatus(ProxyEngineRequest) returns (EngineSnapshotCloneStatusProxyResponse); - rpc SnapshotRemove(EngineSnapshotRemoveRequest) returns (google.protobuf.Empty); - rpc SnapshotHash(EngineSnapshotHashRequest) returns (google.protobuf.Empty); - rpc SnapshotHashStatus(EngineSnapshotHashStatusRequest) returns (EngineSnapshotHashStatusProxyResponse); - - rpc SnapshotBackup(EngineSnapshotBackupRequest) returns (EngineSnapshotBackupProxyResponse); - rpc SnapshotBackupStatus(EngineSnapshotBackupStatusRequest) returns (EngineSnapshotBackupStatusProxyResponse); - rpc BackupRestore(EngineBackupRestoreRequest) returns (EngineBackupRestoreProxyResponse); - rpc BackupRestoreStatus(ProxyEngineRequest) returns (EngineBackupRestoreStatusProxyResponse); - rpc BackupRestoreFinish(EngineBackupRestoreFinishRequest) returns (google.protobuf.Empty); - rpc CleanupBackupMountPoints(google.protobuf.Empty) returns (google.protobuf.Empty); - - rpc ReplicaAdd(EngineReplicaAddRequest) returns (google.protobuf.Empty); - rpc ReplicaList(ProxyEngineRequest) returns (EngineReplicaListProxyResponse); - rpc ReplicaRebuildingStatus(ProxyEngineRequest) returns (EngineReplicaRebuildStatusProxyResponse); - rpc ReplicaVerifyRebuild(EngineReplicaVerifyRebuildRequest) returns (google.protobuf.Empty); - rpc ReplicaRemove(EngineReplicaRemoveRequest) returns (google.protobuf.Empty); - rpc ReplicaModeUpdate(EngineReplicaModeUpdateRequest) returns (google.protobuf.Empty); - - rpc MetricsGet(ProxyEngineRequest) returns (EngineMetricsGetProxyResponse); - rpc RemountReadOnlyVolume(RemountVolumeRequest) returns (google.protobuf.Empty); -} - -message ProxyEngineRequest{ - string address = 1; - // Deprecated: Replaced by `data_engine`. - BackendStoreDriver backend_store_driver = 2 [deprecated=true]; - string engine_name = 3; - string volume_name = 4; - DataEngine data_engine = 5; -} - -message EngineVersionProxyResponse { - ptypes.VersionOutput version = 1; -} - -message EngineVolumeGetProxyResponse { - ptypes.Volume volume = 1; -} - -message EngineVolumeExpandRequest { - ProxyEngineRequest proxy_engine_request = 1; - - ptypes.VolumeExpandRequest expand = 2; -} - -message EngineVolumeFrontendStartRequest { - ProxyEngineRequest proxy_engine_request = 1; - - ptypes.VolumeFrontendStartRequest frontend_start = 2; -} - -message EngineVolumeSnapshotRequest { - ProxyEngineRequest proxy_engine_request = 1; - - ptypes.VolumeSnapshotRequest snapshot_volume = 2; -} - -message EngineVolumeSnapshotProxyResponse { - ptypes.VolumeSnapshotReply snapshot = 1; -} - -message EngineVolumeUnmapMarkSnapChainRemovedSetRequest { - ProxyEngineRequest proxy_engine_request = 1; - - ptypes.VolumeUnmapMarkSnapChainRemovedSetRequest unmap_mark_snap = 2; -} - -message EngineVolumeSnapshotMaxCountSetRequest { - ProxyEngineRequest proxy_engine_request = 1; - - ptypes.VolumeSnapshotMaxCountSetRequest count = 2; -} - -message EngineVolumeSnapshotMaxSizeSetRequest { - ProxyEngineRequest proxy_engine_request = 1; - - ptypes.VolumeSnapshotMaxSizeSetRequest size = 2; -} - -message EngineSnapshotListProxyResponse { - map disks = 1; -} - -message EngineSnapshotDiskInfo { - string name = 1; - string parent = 2; - map children = 3; - bool removed = 4; - bool user_created = 5; - string created = 6; - string size = 7; - map labels = 8; -} - -message EngineSnapshotRevertRequest { - ProxyEngineRequest proxy_engine_request = 1; - - string name = 2; -} - -message EngineSnapshotPurgeRequest { - ProxyEngineRequest proxy_engine_request = 1; - - bool skip_if_in_progress = 2; -} - -message EngineSnapshotPurgeStatusProxyResponse { - map status = 1; -} - -message EngineSnapshotCloneRequest { - ProxyEngineRequest proxy_engine_request = 1; - - string from_engine_address = 2; - string snapshot_name = 3; - bool export_backing_image_if_exist = 4; - int32 file_sync_http_client_timeout = 5; - string from_engine_name = 6; - string from_volume_name = 7; -} - -message EngineSnapshotCloneStatusProxyResponse { - map status = 1; -} - -message EngineSnapshotRemoveRequest { - ProxyEngineRequest proxy_engine_request = 1; - - repeated string names = 2; -} - -message EngineSnapshotBackupRequest { - ProxyEngineRequest proxy_engine_request = 1; - - repeated string envs = 8; - - string backup_name = 2; - string snapshot_name = 3; - string backup_target = 4; - string backing_image_name = 5; - string backing_image_checksum = 6; - map labels = 7; - string compression_method = 9; - int32 concurrent_limit = 10; - string storage_class_name = 11; -} - -message EngineSnapshotBackupProxyResponse { - string backup_id = 1; - string replica = 2; - bool is_incremental = 3; -} - -message EngineSnapshotBackupStatusRequest { - ProxyEngineRequest proxy_engine_request = 1; - - string backup_name = 2; - string replica_address = 3; - string replica_name = 4; -} - -message EngineSnapshotBackupStatusProxyResponse { - string backup_url = 1; - string error = 2; - int32 progress = 3; - string snapshot_name = 4; - string state = 5; - - string replica_address = 6; -} - -message EngineBackupRestoreRequest { - ProxyEngineRequest proxy_engine_request = 1; - - repeated string envs = 2; - - string url = 3; - string target = 4; - string volume_name = 5; - int32 concurrent_limit = 6; -} - -message EngineBackupRestoreProxyResponse { - bytes taskError = 1; -} - -message EngineBackupRestoreStatusProxyResponse { - map status = 1; -} - -message EngineBackupRestoreStatus { - bool is_restoring = 1; - string last_restored = 2; - string current_restoring_backup = 3; - int32 progress = 4; - string error = 5; - string filename = 6; - string state = 7; - string backup_url = 8; -} - -message EngineBackupRestoreFinishRequest { - ProxyEngineRequest proxy_engine_request = 1; -} - -message EngineReplicaAddRequest { - ProxyEngineRequest proxy_engine_request = 1; - - string replica_address = 2; - bool restore = 3; - int64 size = 4; - int64 current_size = 5; - bool fast_sync = 6; - int32 file_sync_http_client_timeout = 7; - string replica_name = 8; -} - -message EngineReplicaListProxyResponse { - ptypes.ReplicaListReply replica_list = 1; -} - -message EngineReplicaVerifyRebuildRequest { - ProxyEngineRequest proxy_engine_request = 1; - - string replica_address = 2; - string replica_name = 3; -} - -message EngineReplicaRebuildStatusProxyResponse { - map status = 1; -} - -message EngineReplicaRemoveRequest { - ProxyEngineRequest proxy_engine_request = 1; - - string replica_address = 2; - string replica_name = 3; -} - -message EngineReplicaModeUpdateRequest { - ProxyEngineRequest proxy_engine_request = 1; - - string replica_address = 2; - ptypes.ReplicaMode mode = 3; -} - -message EngineSnapshotHashRequest { - ProxyEngineRequest proxy_engine_request = 1; - - string snapshot_name = 2; - bool rehash = 3; -} - -message EngineSnapshotHashStatusRequest { - ProxyEngineRequest proxy_engine_request = 1; - - string snapshot_name = 2; -} - -message EngineSnapshotHashStatusProxyResponse { - map status = 1; -} - -message EngineMetricsGetProxyResponse { - ptypes.Metrics metrics = 1; -} - -message RemountVolumeRequest { - string volume_name = 1; -} diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 4de47e490..cd8baa4f4 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -15,12 +15,11 @@ import ( spdkapi "github.com/longhorn/longhorn-spdk-engine/pkg/api" spdkclient "github.com/longhorn/longhorn-spdk-engine/pkg/client" + rpc "github.com/longhorn/types/pkg/imrpc" "github.com/longhorn/longhorn-instance-manager/pkg/client" "github.com/longhorn/longhorn-instance-manager/pkg/meta" "github.com/longhorn/longhorn-instance-manager/pkg/types" - - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" ) const ( @@ -45,6 +44,7 @@ type V2DataEngineInstanceOps struct { } type Server struct { + rpc.UnimplementedInstanceServiceServer ctx context.Context logsDir string HealthChecker HealthChecker diff --git a/pkg/process/process.go b/pkg/process/process.go index 5db78e6d8..d79b64c1a 100644 --- a/pkg/process/process.go +++ b/pkg/process/process.go @@ -5,9 +5,9 @@ import ( "syscall" "time" + rpc "github.com/longhorn/types/pkg/imrpc" "github.com/sirupsen/logrus" - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" "github.com/longhorn/longhorn-instance-manager/pkg/types" "github.com/longhorn/longhorn-instance-manager/pkg/util" ) diff --git a/pkg/process/process_manager.go b/pkg/process/process_manager.go index 758ee5418..0d4a28a2a 100644 --- a/pkg/process/process_manager.go +++ b/pkg/process/process_manager.go @@ -11,6 +11,7 @@ import ( "syscall" "time" + rpc "github.com/longhorn/types/pkg/imrpc" "github.com/pkg/errors" "github.com/sirupsen/logrus" "golang.org/x/net/context" @@ -19,7 +20,6 @@ import ( "google.golang.org/protobuf/types/known/emptypb" "k8s.io/mount-utils" - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" "github.com/longhorn/longhorn-instance-manager/pkg/types" "github.com/longhorn/longhorn-instance-manager/pkg/util" "github.com/longhorn/longhorn-instance-manager/pkg/util/broadcaster" @@ -37,6 +37,7 @@ const ( */ type Manager struct { + rpc.UnimplementedProcessManagerServiceServer ctx context.Context portRangeMin int32 diff --git a/pkg/process/process_test.go b/pkg/process/process_test.go index 22aa5fbd0..bb31eb57f 100644 --- a/pkg/process/process_test.go +++ b/pkg/process/process_test.go @@ -10,15 +10,14 @@ import ( "time" "github.com/google/uuid" + rpc "github.com/longhorn/types/pkg/imrpc" "github.com/sirupsen/logrus" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + . "gopkg.in/check.v1" - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" "github.com/longhorn/longhorn-instance-manager/pkg/types" - - . "gopkg.in/check.v1" ) const ( diff --git a/pkg/process/version.go b/pkg/process/version.go index 060779510..a2f576555 100644 --- a/pkg/process/version.go +++ b/pkg/process/version.go @@ -1,10 +1,10 @@ package process import ( + rpc "github.com/longhorn/types/pkg/imrpc" "golang.org/x/net/context" "google.golang.org/protobuf/types/known/emptypb" - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" "github.com/longhorn/longhorn-instance-manager/pkg/meta" ) diff --git a/pkg/proxy/backup.go b/pkg/proxy/backup.go index 3dcec1ade..3bfaea6a5 100644 --- a/pkg/proxy/backup.go +++ b/pkg/proxy/backup.go @@ -19,12 +19,11 @@ import ( rclient "github.com/longhorn/longhorn-engine/pkg/replica/client" esync "github.com/longhorn/longhorn-engine/pkg/sync" etypes "github.com/longhorn/longhorn-engine/pkg/types" - eptypes "github.com/longhorn/longhorn-engine/proto/ptypes" + spdkclient "github.com/longhorn/longhorn-spdk-engine/pkg/client" + rpc "github.com/longhorn/types/pkg/imrpc" "github.com/longhorn/longhorn-instance-manager/pkg/util" - - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" ) func (p *Proxy) CleanupBackupMountPoints(ctx context.Context, req *emptypb.Empty) (resp *emptypb.Empty, err error) { @@ -160,7 +159,7 @@ func (ops V1DataEngineProxyOps) SnapshotBackupStatus(ctx context.Context, req *r if replicaAddress == "" { // find a replica which has the corresponding backup for _, r := range replicas.ReplicaList.Replicas { - mode := eptypes.GRPCReplicaModeToReplicaMode(r.Mode) + mode := etypes.GRPCReplicaModeToReplicaMode(r.Mode) if mode != etypes.RW { continue } @@ -192,7 +191,7 @@ func (ops V1DataEngineProxyOps) SnapshotBackupStatus(ctx context.Context, req *r if r.Address.Address != replicaAddress { continue } - mode := eptypes.GRPCReplicaModeToReplicaMode(r.Mode) + mode := etypes.GRPCReplicaModeToReplicaMode(r.Mode) if mode != etypes.RW { return nil, errors.Errorf("failed to get backup %v status on unknown replica %s", req.BackupName, replicaAddress) } diff --git a/pkg/proxy/metrics.go b/pkg/proxy/metrics.go index 697d21c5e..8db3bc901 100644 --- a/pkg/proxy/metrics.go +++ b/pkg/proxy/metrics.go @@ -4,10 +4,9 @@ import ( "github.com/sirupsen/logrus" "golang.org/x/net/context" - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" - eclient "github.com/longhorn/longhorn-engine/pkg/controller/client" - "github.com/longhorn/longhorn-engine/proto/ptypes" + "github.com/longhorn/types/pkg/enginerpc" + rpc "github.com/longhorn/types/pkg/imrpc" ) func (p *Proxy) MetricsGet(ctx context.Context, req *rpc.ProxyEngineRequest) (resp *rpc.EngineMetricsGetProxyResponse, err error) { @@ -26,7 +25,7 @@ func (p *Proxy) MetricsGet(ctx context.Context, req *rpc.ProxyEngineRequest) (re } return &rpc.EngineMetricsGetProxyResponse{ - Metrics: &ptypes.Metrics{ + Metrics: &enginerpc.Metrics{ ReadThroughput: metrics.Throughput.Read, WriteThroughput: metrics.Throughput.Write, ReadLatency: metrics.TotalLatency.Read, diff --git a/pkg/proxy/proxy.go b/pkg/proxy/proxy.go index 2f4c8c2f3..0f0c17f8e 100644 --- a/pkg/proxy/proxy.go +++ b/pkg/proxy/proxy.go @@ -5,16 +5,15 @@ import ( "strconv" eclient "github.com/longhorn/longhorn-engine/pkg/controller/client" - eptypes "github.com/longhorn/longhorn-engine/proto/ptypes" + "github.com/longhorn/types/pkg/enginerpc" "github.com/sirupsen/logrus" "golang.org/x/net/context" "google.golang.org/protobuf/types/known/emptypb" spdkclient "github.com/longhorn/longhorn-spdk-engine/pkg/client" + rpc "github.com/longhorn/types/pkg/imrpc" "github.com/longhorn/longhorn-instance-manager/pkg/types" - - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" ) type ProxyOps interface { @@ -55,6 +54,7 @@ type V1DataEngineProxyOps struct{} type V2DataEngineProxyOps struct{} type Proxy struct { + rpc.UnimplementedProxyEngineServiceServer ctx context.Context logsDir string shutdownCh chan error @@ -109,7 +109,7 @@ func (p *Proxy) ServerVersionGet(ctx context.Context, req *rpc.ProxyEngineReques } return &rpc.EngineVersionProxyResponse{ - Version: &eptypes.VersionOutput{ + Version: &enginerpc.VersionOutput{ Version: recv.Version, GitCommit: recv.GitCommit, BuildDate: recv.BuildDate, diff --git a/pkg/proxy/replica.go b/pkg/proxy/replica.go index 25eb43dad..e8f0b0b0d 100644 --- a/pkg/proxy/replica.go +++ b/pkg/proxy/replica.go @@ -12,10 +12,10 @@ import ( eclient "github.com/longhorn/longhorn-engine/pkg/controller/client" esync "github.com/longhorn/longhorn-engine/pkg/sync" - eptypes "github.com/longhorn/longhorn-engine/proto/ptypes" + etypes "github.com/longhorn/longhorn-engine/pkg/types" spdktypes "github.com/longhorn/longhorn-spdk-engine/pkg/types" - - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" + "github.com/longhorn/types/pkg/enginerpc" + rpc "github.com/longhorn/types/pkg/imrpc" ) func (p *Proxy) ReplicaAdd(ctx context.Context, req *rpc.EngineReplicaAddRequest) (resp *emptypb.Empty, err error) { @@ -103,34 +103,34 @@ func (ops V1DataEngineProxyOps) ReplicaList(ctx context.Context, req *rpc.ProxyE return nil, err } - replicas := []*eptypes.ControllerReplica{} + replicas := []*enginerpc.ControllerReplica{} for _, r := range recv { - replica := &eptypes.ControllerReplica{ - Address: &eptypes.ReplicaAddress{ + replica := &enginerpc.ControllerReplica{ + Address: &enginerpc.ReplicaAddress{ Address: r.Address, }, - Mode: eptypes.ReplicaModeToGRPCReplicaMode(r.Mode), + Mode: etypes.ReplicaModeToGRPCReplicaMode(r.Mode), } replicas = append(replicas, replica) } return &rpc.EngineReplicaListProxyResponse{ - ReplicaList: &eptypes.ReplicaListReply{ + ReplicaList: &enginerpc.ReplicaListReply{ Replicas: replicas, }, }, nil } -func replicaModeToGRPCReplicaMode(mode spdktypes.Mode) eptypes.ReplicaMode { +func replicaModeToGRPCReplicaMode(mode spdktypes.Mode) enginerpc.ReplicaMode { switch mode { case spdktypes.ModeWO: - return eptypes.ReplicaMode_WO + return enginerpc.ReplicaMode_WO case spdktypes.ModeRW: - return eptypes.ReplicaMode_RW + return enginerpc.ReplicaMode_RW case spdktypes.ModeERR: - return eptypes.ReplicaMode_ERR + return enginerpc.ReplicaMode_ERR } - return eptypes.ReplicaMode_ERR + return enginerpc.ReplicaMode_ERR } func (ops V2DataEngineProxyOps) ReplicaList(ctx context.Context, req *rpc.ProxyEngineRequest) (resp *rpc.EngineReplicaListProxyResponse, err error) { @@ -145,14 +145,14 @@ func (ops V2DataEngineProxyOps) ReplicaList(ctx context.Context, req *rpc.ProxyE return nil, grpcstatus.Error(grpccodes.Internal, errors.Wrapf(err, "failed to get engine %v", req.EngineName).Error()) } - replicas := []*eptypes.ControllerReplica{} + replicas := []*enginerpc.ControllerReplica{} for replicaName, mode := range recv.ReplicaModeMap { address, ok := recv.ReplicaAddressMap[replicaName] if !ok { return nil, grpcstatus.Errorf(grpccodes.Internal, "failed to get replica address for %v", replicaName) } - replica := &eptypes.ControllerReplica{ - Address: &eptypes.ReplicaAddress{ + replica := &enginerpc.ControllerReplica{ + Address: &enginerpc.ReplicaAddress{ Address: address, }, Mode: replicaModeToGRPCReplicaMode(mode), @@ -161,7 +161,7 @@ func (ops V2DataEngineProxyOps) ReplicaList(ctx context.Context, req *rpc.ProxyE } return &rpc.EngineReplicaListProxyResponse{ - ReplicaList: &eptypes.ReplicaListReply{ + ReplicaList: &enginerpc.ReplicaListReply{ Replicas: replicas, }, }, nil @@ -195,10 +195,10 @@ func (ops V1DataEngineProxyOps) ReplicaRebuildingStatus(ctx context.Context, req } resp = &rpc.EngineReplicaRebuildStatusProxyResponse{ - Status: make(map[string]*eptypes.ReplicaRebuildStatusResponse), + Status: make(map[string]*enginerpc.ReplicaRebuildStatusResponse), } for k, v := range recv { - resp.Status[k] = &eptypes.ReplicaRebuildStatusResponse{ + resp.Status[k] = &enginerpc.ReplicaRebuildStatusResponse{ Error: v.Error, IsRebuilding: v.IsRebuilding, Progress: int32(v.Progress), @@ -213,7 +213,7 @@ func (ops V1DataEngineProxyOps) ReplicaRebuildingStatus(ctx context.Context, req func (ops V2DataEngineProxyOps) ReplicaRebuildingStatus(ctx context.Context, req *rpc.ProxyEngineRequest) (resp *rpc.EngineReplicaRebuildStatusProxyResponse, err error) { /* TODO: implement this */ return &rpc.EngineReplicaRebuildStatusProxyResponse{ - Status: make(map[string]*eptypes.ReplicaRebuildStatusResponse), + Status: make(map[string]*enginerpc.ReplicaRebuildStatusResponse), }, nil } @@ -313,7 +313,7 @@ func (ops V1DataEngineProxyOps) ReplicaModeUpdate(ctx context.Context, req *rpc. } defer c.Close() - if _, err = c.ReplicaUpdate(req.ReplicaAddress, eptypes.GRPCReplicaModeToReplicaMode(req.Mode)); err != nil { + if _, err = c.ReplicaUpdate(req.ReplicaAddress, etypes.GRPCReplicaModeToReplicaMode(req.Mode)); err != nil { return nil, err } diff --git a/pkg/proxy/snapshot.go b/pkg/proxy/snapshot.go index d9fa6a12f..24b392562 100644 --- a/pkg/proxy/snapshot.go +++ b/pkg/proxy/snapshot.go @@ -12,10 +12,9 @@ import ( eclient "github.com/longhorn/longhorn-engine/pkg/controller/client" esync "github.com/longhorn/longhorn-engine/pkg/sync" - eptypes "github.com/longhorn/longhorn-engine/proto/ptypes" "github.com/longhorn/longhorn-instance-manager/pkg/util" - - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" + "github.com/longhorn/types/pkg/enginerpc" + rpc "github.com/longhorn/types/pkg/imrpc" ) func (p *Proxy) VolumeSnapshot(ctx context.Context, req *rpc.EngineVolumeSnapshotRequest) (resp *rpc.EngineVolumeSnapshotProxyResponse, err error) { @@ -48,7 +47,7 @@ func (ops V1DataEngineProxyOps) VolumeSnapshot(ctx context.Context, req *rpc.Eng } return &rpc.EngineVolumeSnapshotProxyResponse{ - Snapshot: &eptypes.VolumeSnapshotReply{ + Snapshot: &enginerpc.VolumeSnapshotReply{ Name: recv, }, }, nil @@ -66,12 +65,12 @@ func (ops V2DataEngineProxyOps) VolumeSnapshot(ctx context.Context, req *rpc.Eng snapshotName = util.UUID() } - _, err = c.EngineSnapshotCreate(req.ProxyEngineRequest.EngineName, snapshotName) + _, err = c.EngineSnapshotCreate(req.ProxyEngineRequest.EngineName, snapshotName, nil) if err != nil { return nil, grpcstatus.Errorf(grpccodes.Internal, errors.Wrapf(err, "failed to create snapshot %v", snapshotName).Error()) } return &rpc.EngineVolumeSnapshotProxyResponse{ - Snapshot: &eptypes.VolumeSnapshotReply{ + Snapshot: &enginerpc.VolumeSnapshotReply{ Name: snapshotName, }, }, nil @@ -235,10 +234,10 @@ func (ops V1DataEngineProxyOps) SnapshotCloneStatus(ctx context.Context, req *rp } resp = &rpc.EngineSnapshotCloneStatusProxyResponse{ - Status: map[string]*eptypes.SnapshotCloneStatusResponse{}, + Status: map[string]*enginerpc.SnapshotCloneStatusResponse{}, } for k, v := range recv { - resp.Status[k] = &eptypes.SnapshotCloneStatusResponse{ + resp.Status[k] = &enginerpc.SnapshotCloneStatusResponse{ IsCloning: v.IsCloning, Error: v.Error, Progress: int32(v.Progress), @@ -254,7 +253,7 @@ func (ops V1DataEngineProxyOps) SnapshotCloneStatus(ctx context.Context, req *rp func (ops V2DataEngineProxyOps) SnapshotCloneStatus(ctx context.Context, req *rpc.ProxyEngineRequest) (resp *rpc.EngineSnapshotCloneStatusProxyResponse, err error) { /* TODO: implement this */ return &rpc.EngineSnapshotCloneStatusProxyResponse{ - Status: map[string]*eptypes.SnapshotCloneStatusResponse{}, + Status: map[string]*enginerpc.SnapshotCloneStatusResponse{}, }, nil } @@ -367,10 +366,10 @@ func (ops V1DataEngineProxyOps) SnapshotPurgeStatus(ctx context.Context, req *rp } resp = &rpc.EngineSnapshotPurgeStatusProxyResponse{ - Status: map[string]*eptypes.SnapshotPurgeStatusResponse{}, + Status: map[string]*enginerpc.SnapshotPurgeStatusResponse{}, } for k, v := range recv { - resp.Status[k] = &eptypes.SnapshotPurgeStatusResponse{ + resp.Status[k] = &enginerpc.SnapshotPurgeStatusResponse{ IsPurging: v.IsPurging, Error: v.Error, Progress: int32(v.Progress), @@ -384,7 +383,7 @@ func (ops V1DataEngineProxyOps) SnapshotPurgeStatus(ctx context.Context, req *rp func (ops V2DataEngineProxyOps) SnapshotPurgeStatus(ctx context.Context, req *rpc.ProxyEngineRequest) (resp *rpc.EngineSnapshotPurgeStatusProxyResponse, err error) { /* TODO: implement this */ return &rpc.EngineSnapshotPurgeStatusProxyResponse{ - Status: map[string]*eptypes.SnapshotPurgeStatusResponse{}, + Status: map[string]*enginerpc.SnapshotPurgeStatusResponse{}, }, nil } @@ -503,10 +502,10 @@ func (ops V1DataEngineProxyOps) SnapshotHashStatus(ctx context.Context, req *rpc } resp = &rpc.EngineSnapshotHashStatusProxyResponse{ - Status: map[string]*eptypes.SnapshotHashStatusResponse{}, + Status: map[string]*enginerpc.SnapshotHashStatusResponse{}, } for k, v := range recv { - resp.Status[k] = &eptypes.SnapshotHashStatusResponse{ + resp.Status[k] = &enginerpc.SnapshotHashStatusResponse{ State: v.State, Checksum: v.Checksum, Error: v.Error, diff --git a/pkg/proxy/volume.go b/pkg/proxy/volume.go index 217535ec1..925f02e81 100644 --- a/pkg/proxy/volume.go +++ b/pkg/proxy/volume.go @@ -4,6 +4,11 @@ import ( "crypto/sha256" "encoding/hex" + lhns "github.com/longhorn/go-common-libs/ns" + lhtypes "github.com/longhorn/go-common-libs/types" + eclient "github.com/longhorn/longhorn-engine/pkg/controller/client" + "github.com/longhorn/types/pkg/enginerpc" + rpc "github.com/longhorn/types/pkg/imrpc" "github.com/pkg/errors" "github.com/sirupsen/logrus" "golang.org/x/net/context" @@ -11,11 +16,6 @@ import ( grpcstatus "google.golang.org/grpc/status" "google.golang.org/protobuf/types/known/emptypb" - lhns "github.com/longhorn/go-common-libs/ns" - lhtypes "github.com/longhorn/go-common-libs/types" - eclient "github.com/longhorn/longhorn-engine/pkg/controller/client" - eptypes "github.com/longhorn/longhorn-engine/proto/ptypes" - rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc" "github.com/longhorn/longhorn-instance-manager/pkg/util" ) @@ -48,7 +48,7 @@ func (ops V1DataEngineProxyOps) VolumeGet(ctx context.Context, req *rpc.ProxyEng } return &rpc.EngineVolumeGetProxyResponse{ - Volume: &eptypes.Volume{ + Volume: &enginerpc.Volume{ Name: recv.Name, Size: recv.Size, ReplicaCount: int32(recv.ReplicaCount), @@ -78,7 +78,7 @@ func (ops V2DataEngineProxyOps) VolumeGet(ctx context.Context, req *rpc.ProxyEng } return &rpc.EngineVolumeGetProxyResponse{ - Volume: &eptypes.Volume{ + Volume: &enginerpc.Volume{ Name: recv.Name, Size: int64(recv.SpecSize), ReplicaCount: int32(len(recv.ReplicaAddressMap)), @@ -336,7 +336,7 @@ func (p *Proxy) RemountReadOnlyVolume(ctx context.Context, req *rpc.RemountVolum "remount,rw", mp.Path, } - if _, err := nsexec.Execute("mount", opts, lhtypes.ExecuteDefaultTimeout); err != nil { + if _, err := nsexec.Execute(nil, "mount", opts, lhtypes.ExecuteDefaultTimeout); err != nil { return nil, grpcstatus.Errorf(grpccodes.Internal, "remount failed with error: %v", err) } } diff --git a/proto/vendor/github.com/longhorn/longhorn-engine/proto/ptypes/common.proto b/proto/vendor/github.com/longhorn/longhorn-engine/proto/ptypes/common.proto deleted file mode 100644 index 0178e2e07..000000000 --- a/proto/vendor/github.com/longhorn/longhorn-engine/proto/ptypes/common.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax="proto3"; - -package ptypes; -option go_package = "github.com/longhorn/longhorn-engine/proto/ptypes"; - -message SyncFileInfo { - string from_file_name = 1; - string to_file_name = 2; - int64 actual_size = 3; -} diff --git a/proto/vendor/github.com/longhorn/longhorn-engine/proto/ptypes/controller.proto b/proto/vendor/github.com/longhorn/longhorn-engine/proto/ptypes/controller.proto deleted file mode 100644 index 850d59f3d..000000000 --- a/proto/vendor/github.com/longhorn/longhorn-engine/proto/ptypes/controller.proto +++ /dev/null @@ -1,165 +0,0 @@ -syntax="proto3"; - -package ptypes; - -option go_package = "github.com/longhorn/longhorn-engine/proto/ptypes"; - -import "google/protobuf/empty.proto"; -import "github.com/longhorn/longhorn-engine/proto/ptypes/common.proto"; - -service ControllerService { - rpc VolumeGet(google.protobuf.Empty) returns (Volume); - rpc VolumeStart(VolumeStartRequest) returns (Volume); - rpc VolumeShutdown(google.protobuf.Empty) returns (Volume); - rpc VolumeSnapshot(VolumeSnapshotRequest) returns (VolumeSnapshotReply); - rpc VolumeRevert(VolumeRevertRequest) returns (Volume); - rpc VolumeExpand(VolumeExpandRequest) returns (Volume); - rpc VolumeFrontendStart(VolumeFrontendStartRequest) returns (Volume); - rpc VolumeFrontendShutdown(google.protobuf.Empty) returns (Volume); - rpc VolumeUnmapMarkSnapChainRemovedSet(VolumeUnmapMarkSnapChainRemovedSetRequest) returns (Volume); - rpc VolumeSnapshotMaxCountSet(VolumeSnapshotMaxCountSetRequest) returns (Volume); - rpc VolumeSnapshotMaxSizeSet(VolumeSnapshotMaxSizeSetRequest) returns (Volume); - - rpc ReplicaList(google.protobuf.Empty) returns (ReplicaListReply); - rpc ReplicaGet(ReplicaAddress) returns (ControllerReplica); - rpc ControllerReplicaCreate(ControllerReplicaCreateRequest) returns (ControllerReplica); - rpc ReplicaDelete(ReplicaAddress) returns (google.protobuf.Empty); - rpc ReplicaUpdate(ControllerReplica) returns (ControllerReplica); - rpc ReplicaPrepareRebuild(ReplicaAddress) returns (ReplicaPrepareRebuildReply); - rpc ReplicaVerifyRebuild(ReplicaAddress) returns (ControllerReplica); - - rpc JournalList(JournalListRequest) returns (google.protobuf.Empty); - - rpc VersionDetailGet(google.protobuf.Empty) returns(VersionDetailGetReply); - - rpc MetricsGet(google.protobuf.Empty) returns(MetricsGetReply); -} - -message Volume { - string name = 1; - int64 size = 2; - int32 replicaCount = 3; - string endpoint = 4; - string frontend = 5; - string frontendState = 6; - bool isExpanding = 7; - - string last_expansion_error = 8; - string last_expansion_failed_at = 9; - - bool unmap_mark_snap_chain_removed = 10; - int32 snapshot_max_count = 11; - int64 snapshot_max_size = 12; -} - -message ReplicaAddress { - string address = 1; - string instanceName = 2; -} - -enum ReplicaMode { - WO = 0; - RW = 1; - ERR = 2; -} - -message ControllerReplica { - ReplicaAddress address = 1; - ReplicaMode mode = 2; -} - -message VolumeStartRequest { - repeated string replicaAddresses = 1; - int64 size = 2; - int64 currentSize = 3; -} - -message VolumeSnapshotRequest { - string name = 1; - map labels = 2; -} - -message VolumeSnapshotReply { - string name = 1; -} - -message VolumeRevertRequest { - string name = 1; -} - -message VolumeExpandRequest { - int64 size = 1; -} - -message VolumeFrontendStartRequest { - string frontend = 1; -} - -message VolumeUnmapMarkSnapChainRemovedSetRequest { - bool enabled = 1; -} - -message VolumeSnapshotMaxCountSetRequest { - int32 count = 1; -} - -message VolumeSnapshotMaxSizeSetRequest { - int64 size = 1; -} - -message VolumePrepareRestoreRequest { - string lastRestored = 1; -} - -message VolumeFinishRestoreRequest { - string currentRestored = 1; -} - -message ReplicaListReply { - repeated ControllerReplica replicas = 1; -} - -message ControllerReplicaCreateRequest { - string address = 1; - bool snapshot_required = 2; - ReplicaMode mode = 3; -} - -message ReplicaPrepareRebuildReply { - ControllerReplica replica = 1; - repeated SyncFileInfo sync_file_info_list = 2; -} - -message JournalListRequest { - int64 limit = 1; -} - -message VersionOutput { - string version = 1; - string gitCommit = 2; - string buildDate = 3; - - int64 cliAPIVersion = 4; - int64 cliAPIMinVersion = 5; - int64 controllerAPIVersion = 6; - int64 controllerAPIMinVersion = 7; - int64 dataFormatVersion = 8; - int64 dataFormatMinVersion = 9; -} - -message VersionDetailGetReply { - VersionOutput version = 1; -} - -message Metrics { - uint64 readThroughput = 1; - uint64 writeThroughput = 2; - uint64 readLatency = 3; - uint64 writeLatency = 4; - uint64 readIOPS = 5; - uint64 writeIOPS = 6; -} - -message MetricsGetReply { - Metrics metrics = 1; -} diff --git a/proto/vendor/github.com/longhorn/longhorn-engine/proto/ptypes/syncagent.proto b/proto/vendor/github.com/longhorn/longhorn-engine/proto/ptypes/syncagent.proto deleted file mode 100644 index 9470801d2..000000000 --- a/proto/vendor/github.com/longhorn/longhorn-engine/proto/ptypes/syncagent.proto +++ /dev/null @@ -1,195 +0,0 @@ -syntax="proto3"; - -package ptypes; - -option go_package = "github.com/longhorn/longhorn-engine/proto/ptypes"; - -import "google/protobuf/empty.proto"; -import "github.com/longhorn/longhorn-engine/proto/ptypes/common.proto"; - -service SyncAgentService { - rpc FileRemove(FileRemoveRequest) returns (google.protobuf.Empty) {} - rpc FileRename(FileRenameRequest) returns (google.protobuf.Empty) {} - rpc FileSend(FileSendRequest) returns (google.protobuf.Empty) {} - rpc FilesSync(FilesSyncRequest) returns (google.protobuf.Empty) {} - rpc SnapshotClone(SnapshotCloneRequest) returns (google.protobuf.Empty) {} - rpc VolumeExport(VolumeExportRequest) returns (google.protobuf.Empty) {} - rpc ReceiverLaunch(ReceiverLaunchRequest) returns (ReceiverLaunchResponse) {} - rpc BackupCreate(BackupCreateRequest) returns (BackupCreateResponse) {} - rpc BackupRemove(BackupRemoveRequest) returns (google.protobuf.Empty) {} - rpc BackupRestore(BackupRestoreRequest) returns (google.protobuf.Empty) {} - rpc BackupStatus(BackupStatusRequest) returns (BackupStatusResponse) {} - rpc Reset(google.protobuf.Empty) returns (google.protobuf.Empty) {} - rpc RestoreStatus(google.protobuf.Empty) returns (RestoreStatusResponse) {} - rpc SnapshotPurge(google.protobuf.Empty) returns (google.protobuf.Empty) {} - rpc SnapshotPurgeStatus(google.protobuf.Empty) returns - (SnapshotPurgeStatusResponse) {} - rpc ReplicaRebuildStatus(google.protobuf.Empty) returns - (ReplicaRebuildStatusResponse) {} - rpc SnapshotCloneStatus(google.protobuf.Empty) returns (SnapshotCloneStatusResponse) {} - rpc SnapshotHash(SnapshotHashRequest) returns (google.protobuf.Empty) {} - rpc SnapshotHashStatus(SnapshotHashStatusRequest) returns - (SnapshotHashStatusResponse) {} - rpc SnapshotHashCancel(SnapshotHashCancelRequest) returns (google.protobuf.Empty) {} - rpc SnapshotHashLockState(google.protobuf.Empty) returns (SnapshotHashLockStateResponse) {} -} - -message FileRemoveRequest { - string file_name = 1; -} - -message FileRenameRequest { - string old_file_name = 1; - string new_file_name = 2; -} - -message ReceiverLaunchRequest { - string to_file_name = 1; -} - -message ReceiverLaunchResponse { - int32 port = 1; -} - -message FileSendRequest { - string from_file_name = 1; - string host = 2; - int32 port = 3; - bool fast_sync = 4; - int32 file_sync_http_client_timeout = 5; -} - -message FilesSyncRequest { - string from_address = 1; - string to_host = 2; - repeated SyncFileInfo sync_file_info_list = 3; - bool fast_sync = 4; - int32 file_sync_http_client_timeout = 5; -} - -message SnapshotCloneRequest { - string from_address = 1; - string to_host = 2; - string snapshot_file_name = 3; - bool export_backing_image_if_exist = 4; - int32 file_sync_http_client_timeout = 5; - string from_volume_name = 6; -} - -message VolumeExportRequest { - string snapshot_file_name = 1; - string host = 2; - int32 port = 3; - bool export_backing_image_if_exist = 4; - int32 file_sync_http_client_timeout = 5; -} - -message BackupCreateRequest { - string snapshot_file_name = 1; - string backup_target = 2; - string volume_name = 3; - repeated string labels = 4; - map credential = 5; - string backing_image_name = 6; - string backing_image_checksum = 7; - string backup_name = 8; - string compression_method = 9; - int32 concurrent_limit = 10; - string storage_class_name = 11; -} - -message BackupCreateResponse { - string backup = 1; - bool is_incremental = 2; -} - -message BackupRemoveRequest { - string backup = 1; -}; - -message BackupStatusRequest { - string backup = 1; -} - -message BackupStatusResponse { - int32 progress = 1; - string backup_url = 2; - string error = 3; - string snapshot_name = 4; - string state = 5; -} - -message BackupRestoreRequest { - string backup = 1; - string snapshot_disk_name = 2; - map credential = 3; - int32 concurrent_limit = 4; -} - -message BackupRestoreIncrementallyRequest { - string backup = 1; - string delta_file_name = 2; - string last_restored_backup_name = 3; - string snapshot_disk_name = 4; - map credential = 5; - int32 concurrent_limit = 6; -} - -message RestoreStatusResponse { - bool is_restoring = 1; - string last_restored = 2; - int32 progress = 3; - string error = 4; - string dest_file_name = 5; - string state = 6; - string backup_url = 7; - string current_restoring_backup = 8; -} - -message SnapshotPurgeStatusResponse { - bool is_purging = 1; - string error = 2; - int32 progress = 3; - string state = 4; -} - -message ReplicaRebuildStatusResponse { - bool is_rebuilding = 1; - string error = 2; - int32 progress = 3; - string state = 4; - string from_replica_address = 5; -} - -message SnapshotCloneStatusResponse { - bool is_cloning = 1; - string error = 2; - int32 progress = 3; - string state = 4; - string from_replica_address = 5; - string snapshot_name = 6; -} - -message SnapshotHashRequest { - string snapshot_name = 1; - bool rehash = 2; -} - -message SnapshotHashStatusRequest { - string snapshot_name = 1; -} - -message SnapshotHashStatusResponse { - string state = 1; - string checksum = 2; - string error = 3; - bool silently_corrupted = 4; -} - -message SnapshotHashCancelRequest { - string snapshot_name = 1; -} - -message SnapshotHashLockStateResponse { - bool is_locked = 1; -} diff --git a/proto/vendor/protobuf/src/google/protobuf/empty.proto b/proto/vendor/protobuf/src/google/protobuf/empty.proto deleted file mode 100644 index b87c89dcf..000000000 --- a/proto/vendor/protobuf/src/google/protobuf/empty.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option go_package = "google.golang.org/protobuf/types/known/emptypb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "EmptyProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; - -// A generic empty message that you can re-use to avoid defining duplicated -// empty messages in your APIs. A typical example is to use it as the request -// or the response type of an API method. For instance: -// -// service Foo { -// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); -// } -// -message Empty {}