Files
EdgeCommon/pkg/rpc/pb/service_ns_key.pb.go

1307 lines
46 KiB
Go
Raw Normal View History

2021-07-25 09:43:47 +08:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.12.3
// source: service_ns_key.proto
package pb
import (
context "context"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// 创建密钥
type CreateNSKeyRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsDomainId int64 `protobuf:"varint,1,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"`
NsZoneId int64 `protobuf:"varint,2,opt,name=nsZoneId,proto3" json:"nsZoneId,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Algo string `protobuf:"bytes,4,opt,name=algo,proto3" json:"algo,omitempty"`
Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"`
SecretType string `protobuf:"bytes,6,opt,name=secretType,proto3" json:"secretType,omitempty"`
}
func (x *CreateNSKeyRequest) Reset() {
*x = CreateNSKeyRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateNSKeyRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateNSKeyRequest) ProtoMessage() {}
func (x *CreateNSKeyRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_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 CreateNSKeyRequest.ProtoReflect.Descriptor instead.
func (*CreateNSKeyRequest) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{0}
}
func (x *CreateNSKeyRequest) GetNsDomainId() int64 {
if x != nil {
return x.NsDomainId
}
return 0
}
func (x *CreateNSKeyRequest) GetNsZoneId() int64 {
if x != nil {
return x.NsZoneId
}
return 0
}
func (x *CreateNSKeyRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CreateNSKeyRequest) GetAlgo() string {
if x != nil {
return x.Algo
}
return ""
}
func (x *CreateNSKeyRequest) GetSecret() string {
if x != nil {
return x.Secret
}
return ""
}
func (x *CreateNSKeyRequest) GetSecretType() string {
if x != nil {
return x.SecretType
}
return ""
}
type CreateNSKeyResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsKeyId int64 `protobuf:"varint,1,opt,name=nsKeyId,proto3" json:"nsKeyId,omitempty"`
}
func (x *CreateNSKeyResponse) Reset() {
*x = CreateNSKeyResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateNSKeyResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateNSKeyResponse) ProtoMessage() {}
func (x *CreateNSKeyResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_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 CreateNSKeyResponse.ProtoReflect.Descriptor instead.
func (*CreateNSKeyResponse) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{1}
}
func (x *CreateNSKeyResponse) GetNsKeyId() int64 {
if x != nil {
return x.NsKeyId
}
return 0
}
// 修改密钥
type UpdateNSKeyRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsKeyId int64 `protobuf:"varint,1,opt,name=nsKeyId,proto3" json:"nsKeyId,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Algo string `protobuf:"bytes,3,opt,name=algo,proto3" json:"algo,omitempty"`
Secret string `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret,omitempty"`
SecretType string `protobuf:"bytes,5,opt,name=secretType,proto3" json:"secretType,omitempty"`
IsOn bool `protobuf:"varint,6,opt,name=isOn,proto3" json:"isOn,omitempty"`
}
func (x *UpdateNSKeyRequest) Reset() {
*x = UpdateNSKeyRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateNSKeyRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateNSKeyRequest) ProtoMessage() {}
func (x *UpdateNSKeyRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_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 UpdateNSKeyRequest.ProtoReflect.Descriptor instead.
func (*UpdateNSKeyRequest) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{2}
}
func (x *UpdateNSKeyRequest) GetNsKeyId() int64 {
if x != nil {
return x.NsKeyId
}
return 0
}
func (x *UpdateNSKeyRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *UpdateNSKeyRequest) GetAlgo() string {
if x != nil {
return x.Algo
}
return ""
}
func (x *UpdateNSKeyRequest) GetSecret() string {
if x != nil {
return x.Secret
}
return ""
}
func (x *UpdateNSKeyRequest) GetSecretType() string {
if x != nil {
return x.SecretType
}
return ""
}
func (x *UpdateNSKeyRequest) GetIsOn() bool {
if x != nil {
return x.IsOn
}
return false
}
// 删除密钥
type DeleteNSKeyRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsKeyId int64 `protobuf:"varint,1,opt,name=nsKeyId,proto3" json:"nsKeyId,omitempty"`
}
func (x *DeleteNSKeyRequest) Reset() {
*x = DeleteNSKeyRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteNSKeyRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteNSKeyRequest) ProtoMessage() {}
func (x *DeleteNSKeyRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_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 DeleteNSKeyRequest.ProtoReflect.Descriptor instead.
func (*DeleteNSKeyRequest) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{3}
}
func (x *DeleteNSKeyRequest) GetNsKeyId() int64 {
if x != nil {
return x.NsKeyId
}
return 0
}
// 查找单个密钥
type FindEnabledNSKeyRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsKeyId int64 `protobuf:"varint,1,opt,name=nsKeyId,proto3" json:"nsKeyId,omitempty"`
}
func (x *FindEnabledNSKeyRequest) Reset() {
*x = FindEnabledNSKeyRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindEnabledNSKeyRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledNSKeyRequest) ProtoMessage() {}
func (x *FindEnabledNSKeyRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_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 FindEnabledNSKeyRequest.ProtoReflect.Descriptor instead.
func (*FindEnabledNSKeyRequest) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{4}
}
func (x *FindEnabledNSKeyRequest) GetNsKeyId() int64 {
if x != nil {
return x.NsKeyId
}
return 0
}
type FindEnabledNSKeyResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsKey *NSKey `protobuf:"bytes,1,opt,name=nsKey,proto3" json:"nsKey,omitempty"`
}
func (x *FindEnabledNSKeyResponse) Reset() {
*x = FindEnabledNSKeyResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindEnabledNSKeyResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledNSKeyResponse) ProtoMessage() {}
func (x *FindEnabledNSKeyResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_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 FindEnabledNSKeyResponse.ProtoReflect.Descriptor instead.
func (*FindEnabledNSKeyResponse) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{5}
}
func (x *FindEnabledNSKeyResponse) GetNsKey() *NSKey {
if x != nil {
return x.NsKey
}
return nil
}
// 计算密钥数量
type CountAllEnabledNSKeysRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsDomainId int64 `protobuf:"varint,1,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"`
NsZoneId int64 `protobuf:"varint,2,opt,name=nsZoneId,proto3" json:"nsZoneId,omitempty"`
}
func (x *CountAllEnabledNSKeysRequest) Reset() {
*x = CountAllEnabledNSKeysRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CountAllEnabledNSKeysRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CountAllEnabledNSKeysRequest) ProtoMessage() {}
func (x *CountAllEnabledNSKeysRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_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 CountAllEnabledNSKeysRequest.ProtoReflect.Descriptor instead.
func (*CountAllEnabledNSKeysRequest) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{6}
}
func (x *CountAllEnabledNSKeysRequest) GetNsDomainId() int64 {
if x != nil {
return x.NsDomainId
}
return 0
}
func (x *CountAllEnabledNSKeysRequest) GetNsZoneId() int64 {
if x != nil {
return x.NsZoneId
}
return 0
}
// 列出单页密钥
type ListEnabledNSKeysRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsDomainId int64 `protobuf:"varint,1,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"`
NsZoneId int64 `protobuf:"varint,2,opt,name=nsZoneId,proto3" json:"nsZoneId,omitempty"`
Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
}
func (x *ListEnabledNSKeysRequest) Reset() {
*x = ListEnabledNSKeysRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListEnabledNSKeysRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListEnabledNSKeysRequest) ProtoMessage() {}
func (x *ListEnabledNSKeysRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_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 ListEnabledNSKeysRequest.ProtoReflect.Descriptor instead.
func (*ListEnabledNSKeysRequest) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{7}
}
func (x *ListEnabledNSKeysRequest) GetNsDomainId() int64 {
if x != nil {
return x.NsDomainId
}
return 0
}
func (x *ListEnabledNSKeysRequest) GetNsZoneId() int64 {
if x != nil {
return x.NsZoneId
}
return 0
}
func (x *ListEnabledNSKeysRequest) GetOffset() int64 {
if x != nil {
return x.Offset
}
return 0
}
func (x *ListEnabledNSKeysRequest) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
type ListEnabledNSKeysResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsKeys []*NSKey `protobuf:"bytes,1,rep,name=nsKeys,proto3" json:"nsKeys,omitempty"`
}
func (x *ListEnabledNSKeysResponse) Reset() {
*x = ListEnabledNSKeysResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListEnabledNSKeysResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListEnabledNSKeysResponse) ProtoMessage() {}
func (x *ListEnabledNSKeysResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_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 ListEnabledNSKeysResponse.ProtoReflect.Descriptor instead.
func (*ListEnabledNSKeysResponse) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{8}
}
func (x *ListEnabledNSKeysResponse) GetNsKeys() []*NSKey {
if x != nil {
return x.NsKeys
}
return nil
}
2021-07-25 15:08:38 +08:00
// 根据版本列出一组密钥
type ListNSKeysAfterVersionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
}
func (x *ListNSKeysAfterVersionRequest) Reset() {
*x = ListNSKeysAfterVersionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListNSKeysAfterVersionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListNSKeysAfterVersionRequest) ProtoMessage() {}
func (x *ListNSKeysAfterVersionRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_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 ListNSKeysAfterVersionRequest.ProtoReflect.Descriptor instead.
func (*ListNSKeysAfterVersionRequest) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{9}
}
func (x *ListNSKeysAfterVersionRequest) GetVersion() int64 {
if x != nil {
return x.Version
}
return 0
}
func (x *ListNSKeysAfterVersionRequest) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
type ListNSKeysAfterVersionResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsKeys []*NSKey `protobuf:"bytes,1,rep,name=nsKeys,proto3" json:"nsKeys,omitempty"`
}
func (x *ListNSKeysAfterVersionResponse) Reset() {
*x = ListNSKeysAfterVersionResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListNSKeysAfterVersionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListNSKeysAfterVersionResponse) ProtoMessage() {}
func (x *ListNSKeysAfterVersionResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_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 ListNSKeysAfterVersionResponse.ProtoReflect.Descriptor instead.
func (*ListNSKeysAfterVersionResponse) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{10}
}
func (x *ListNSKeysAfterVersionResponse) GetNsKeys() []*NSKey {
if x != nil {
return x.NsKeys
}
return nil
}
2021-07-25 09:43:47 +08:00
var File_service_ns_key_proto protoreflect.FileDescriptor
var file_service_ns_key_proto_rawDesc = []byte{
0x0a, 0x14, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x73, 0x5f, 0x6b, 0x65, 0x79,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65,
0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0xb0, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e,
0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e,
0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x6c, 0x67, 0x6f, 0x18,
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x6c, 0x67, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x73,
0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63,
0x72, 0x65, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x54, 0x79, 0x70,
0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x54,
0x79, 0x70, 0x65, 0x22, 0x2f, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b,
0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x73,
0x4b, 0x65, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6e, 0x73, 0x4b,
0x65, 0x79, 0x49, 0x64, 0x22, 0xa2, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e,
0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6e,
0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6e, 0x73,
0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x6c, 0x67,
0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x6c, 0x67, 0x6f, 0x12, 0x16, 0x0a,
0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73,
0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x54,
0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65,
0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x06, 0x20,
0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x22, 0x2e, 0x0a, 0x12, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x18, 0x0a, 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x33, 0x0a, 0x17, 0x46, 0x69, 0x6e,
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x3b,
0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b,
0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x6e, 0x73,
0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x4e,
0x53, 0x4b, 0x65, 0x79, 0x52, 0x05, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x22, 0x5a, 0x0a, 0x1c, 0x43,
0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53,
0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e,
0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e,
0x73, 0x5a, 0x6f, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e,
0x73, 0x5a, 0x6f, 0x6e, 0x65, 0x49, 0x64, 0x22, 0x82, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e, 0x65, 0x49, 0x64,
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e, 0x65, 0x49, 0x64,
0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65,
0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x3e, 0x0a, 0x19,
0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x6e, 0x73, 0x4b,
0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x4e,
2021-07-25 15:08:38 +08:00
0x53, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x4d, 0x0a, 0x1d,
0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56,
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a,
0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07,
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x43, 0x0a, 0x1e, 0x4c,
0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a,
0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e,
0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73,
0x32, 0x8f, 0x04, 0x0a, 0x0c, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79,
0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65,
0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x35, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79,
0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65,
0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50,
0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, 0x0b, 0x64, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12,
0x4d, 0x0a, 0x10, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53,
0x4b, 0x65, 0x79, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f,
0x0a, 0x15, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75,
0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65,
0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52,
0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x50, 0x0a, 0x11, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53,
0x4b, 0x65, 0x79, 0x73, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x5f, 0x0a, 0x16, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41,
0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x70, 0x62,
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72,
0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22,
0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66,
0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
2021-07-25 09:43:47 +08:00
}
var (
file_service_ns_key_proto_rawDescOnce sync.Once
file_service_ns_key_proto_rawDescData = file_service_ns_key_proto_rawDesc
)
func file_service_ns_key_proto_rawDescGZIP() []byte {
file_service_ns_key_proto_rawDescOnce.Do(func() {
file_service_ns_key_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_ns_key_proto_rawDescData)
})
return file_service_ns_key_proto_rawDescData
}
2021-07-25 15:08:38 +08:00
var file_service_ns_key_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
2021-07-25 09:43:47 +08:00
var file_service_ns_key_proto_goTypes = []interface{}{
2021-07-25 15:08:38 +08:00
(*CreateNSKeyRequest)(nil), // 0: pb.CreateNSKeyRequest
(*CreateNSKeyResponse)(nil), // 1: pb.CreateNSKeyResponse
(*UpdateNSKeyRequest)(nil), // 2: pb.UpdateNSKeyRequest
(*DeleteNSKeyRequest)(nil), // 3: pb.DeleteNSKeyRequest
(*FindEnabledNSKeyRequest)(nil), // 4: pb.FindEnabledNSKeyRequest
(*FindEnabledNSKeyResponse)(nil), // 5: pb.FindEnabledNSKeyResponse
(*CountAllEnabledNSKeysRequest)(nil), // 6: pb.CountAllEnabledNSKeysRequest
(*ListEnabledNSKeysRequest)(nil), // 7: pb.ListEnabledNSKeysRequest
(*ListEnabledNSKeysResponse)(nil), // 8: pb.ListEnabledNSKeysResponse
(*ListNSKeysAfterVersionRequest)(nil), // 9: pb.ListNSKeysAfterVersionRequest
(*ListNSKeysAfterVersionResponse)(nil), // 10: pb.ListNSKeysAfterVersionResponse
(*NSKey)(nil), // 11: pb.NSKey
(*RPCSuccess)(nil), // 12: pb.RPCSuccess
(*RPCCountResponse)(nil), // 13: pb.RPCCountResponse
2021-07-25 09:43:47 +08:00
}
var file_service_ns_key_proto_depIdxs = []int32{
2021-07-25 15:08:38 +08:00
11, // 0: pb.FindEnabledNSKeyResponse.nsKey:type_name -> pb.NSKey
11, // 1: pb.ListEnabledNSKeysResponse.nsKeys:type_name -> pb.NSKey
11, // 2: pb.ListNSKeysAfterVersionResponse.nsKeys:type_name -> pb.NSKey
0, // 3: pb.NSKeyService.createNSKey:input_type -> pb.CreateNSKeyRequest
2, // 4: pb.NSKeyService.updateNSKey:input_type -> pb.UpdateNSKeyRequest
3, // 5: pb.NSKeyService.deleteNSKey:input_type -> pb.DeleteNSKeyRequest
4, // 6: pb.NSKeyService.findEnabledNSKey:input_type -> pb.FindEnabledNSKeyRequest
6, // 7: pb.NSKeyService.countAllEnabledNSKeys:input_type -> pb.CountAllEnabledNSKeysRequest
7, // 8: pb.NSKeyService.listEnabledNSKeys:input_type -> pb.ListEnabledNSKeysRequest
9, // 9: pb.NSKeyService.listNSKeysAfterVersion:input_type -> pb.ListNSKeysAfterVersionRequest
1, // 10: pb.NSKeyService.createNSKey:output_type -> pb.CreateNSKeyResponse
12, // 11: pb.NSKeyService.updateNSKey:output_type -> pb.RPCSuccess
12, // 12: pb.NSKeyService.deleteNSKey:output_type -> pb.RPCSuccess
5, // 13: pb.NSKeyService.findEnabledNSKey:output_type -> pb.FindEnabledNSKeyResponse
13, // 14: pb.NSKeyService.countAllEnabledNSKeys:output_type -> pb.RPCCountResponse
8, // 15: pb.NSKeyService.listEnabledNSKeys:output_type -> pb.ListEnabledNSKeysResponse
10, // 16: pb.NSKeyService.listNSKeysAfterVersion:output_type -> pb.ListNSKeysAfterVersionResponse
10, // [10:17] is the sub-list for method output_type
3, // [3:10] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
2021-07-25 09:43:47 +08:00
}
func init() { file_service_ns_key_proto_init() }
func file_service_ns_key_proto_init() {
if File_service_ns_key_proto != nil {
return
}
file_models_rpc_messages_proto_init()
file_models_model_ns_key_proto_init()
if !protoimpl.UnsafeEnabled {
file_service_ns_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateNSKeyRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_key_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateNSKeyResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_key_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateNSKeyRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_key_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteNSKeyRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_key_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindEnabledNSKeyRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_key_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindEnabledNSKeyResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_key_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CountAllEnabledNSKeysRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_key_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListEnabledNSKeysRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_key_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListEnabledNSKeysResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2021-07-25 15:08:38 +08:00
file_service_ns_key_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListNSKeysAfterVersionRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_key_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListNSKeysAfterVersionResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2021-07-25 09:43:47 +08:00
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_ns_key_proto_rawDesc,
NumEnums: 0,
2021-07-25 15:08:38 +08:00
NumMessages: 11,
2021-07-25 09:43:47 +08:00
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_service_ns_key_proto_goTypes,
DependencyIndexes: file_service_ns_key_proto_depIdxs,
MessageInfos: file_service_ns_key_proto_msgTypes,
}.Build()
File_service_ns_key_proto = out.File
file_service_ns_key_proto_rawDesc = nil
file_service_ns_key_proto_goTypes = nil
file_service_ns_key_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
// NSKeyServiceClient is the client API for NSKeyService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type NSKeyServiceClient interface {
// 创建密钥
CreateNSKey(ctx context.Context, in *CreateNSKeyRequest, opts ...grpc.CallOption) (*CreateNSKeyResponse, error)
// 修改密钥
UpdateNSKey(ctx context.Context, in *UpdateNSKeyRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 删除密钥
DeleteNSKey(ctx context.Context, in *DeleteNSKeyRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 查找单个密钥
FindEnabledNSKey(ctx context.Context, in *FindEnabledNSKeyRequest, opts ...grpc.CallOption) (*FindEnabledNSKeyResponse, error)
// 计算密钥数量
CountAllEnabledNSKeys(ctx context.Context, in *CountAllEnabledNSKeysRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
// 列出单页密钥
ListEnabledNSKeys(ctx context.Context, in *ListEnabledNSKeysRequest, opts ...grpc.CallOption) (*ListEnabledNSKeysResponse, error)
2021-07-25 15:08:38 +08:00
// 根据版本列出一组密钥
ListNSKeysAfterVersion(ctx context.Context, in *ListNSKeysAfterVersionRequest, opts ...grpc.CallOption) (*ListNSKeysAfterVersionResponse, error)
2021-07-25 09:43:47 +08:00
}
type nSKeyServiceClient struct {
cc grpc.ClientConnInterface
}
func NewNSKeyServiceClient(cc grpc.ClientConnInterface) NSKeyServiceClient {
return &nSKeyServiceClient{cc}
}
func (c *nSKeyServiceClient) CreateNSKey(ctx context.Context, in *CreateNSKeyRequest, opts ...grpc.CallOption) (*CreateNSKeyResponse, error) {
out := new(CreateNSKeyResponse)
err := c.cc.Invoke(ctx, "/pb.NSKeyService/createNSKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nSKeyServiceClient) UpdateNSKey(ctx context.Context, in *UpdateNSKeyRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.NSKeyService/updateNSKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nSKeyServiceClient) DeleteNSKey(ctx context.Context, in *DeleteNSKeyRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.NSKeyService/deleteNSKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nSKeyServiceClient) FindEnabledNSKey(ctx context.Context, in *FindEnabledNSKeyRequest, opts ...grpc.CallOption) (*FindEnabledNSKeyResponse, error) {
out := new(FindEnabledNSKeyResponse)
err := c.cc.Invoke(ctx, "/pb.NSKeyService/findEnabledNSKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nSKeyServiceClient) CountAllEnabledNSKeys(ctx context.Context, in *CountAllEnabledNSKeysRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
out := new(RPCCountResponse)
err := c.cc.Invoke(ctx, "/pb.NSKeyService/countAllEnabledNSKeys", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nSKeyServiceClient) ListEnabledNSKeys(ctx context.Context, in *ListEnabledNSKeysRequest, opts ...grpc.CallOption) (*ListEnabledNSKeysResponse, error) {
out := new(ListEnabledNSKeysResponse)
err := c.cc.Invoke(ctx, "/pb.NSKeyService/listEnabledNSKeys", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
2021-07-25 15:08:38 +08:00
func (c *nSKeyServiceClient) ListNSKeysAfterVersion(ctx context.Context, in *ListNSKeysAfterVersionRequest, opts ...grpc.CallOption) (*ListNSKeysAfterVersionResponse, error) {
out := new(ListNSKeysAfterVersionResponse)
err := c.cc.Invoke(ctx, "/pb.NSKeyService/listNSKeysAfterVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
2021-07-25 09:43:47 +08:00
// NSKeyServiceServer is the server API for NSKeyService service.
type NSKeyServiceServer interface {
// 创建密钥
CreateNSKey(context.Context, *CreateNSKeyRequest) (*CreateNSKeyResponse, error)
// 修改密钥
UpdateNSKey(context.Context, *UpdateNSKeyRequest) (*RPCSuccess, error)
// 删除密钥
DeleteNSKey(context.Context, *DeleteNSKeyRequest) (*RPCSuccess, error)
// 查找单个密钥
FindEnabledNSKey(context.Context, *FindEnabledNSKeyRequest) (*FindEnabledNSKeyResponse, error)
// 计算密钥数量
CountAllEnabledNSKeys(context.Context, *CountAllEnabledNSKeysRequest) (*RPCCountResponse, error)
// 列出单页密钥
ListEnabledNSKeys(context.Context, *ListEnabledNSKeysRequest) (*ListEnabledNSKeysResponse, error)
2021-07-25 15:08:38 +08:00
// 根据版本列出一组密钥
ListNSKeysAfterVersion(context.Context, *ListNSKeysAfterVersionRequest) (*ListNSKeysAfterVersionResponse, error)
2021-07-25 09:43:47 +08:00
}
// UnimplementedNSKeyServiceServer can be embedded to have forward compatible implementations.
type UnimplementedNSKeyServiceServer struct {
}
func (*UnimplementedNSKeyServiceServer) CreateNSKey(context.Context, *CreateNSKeyRequest) (*CreateNSKeyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateNSKey not implemented")
}
func (*UnimplementedNSKeyServiceServer) UpdateNSKey(context.Context, *UpdateNSKeyRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSKey not implemented")
}
func (*UnimplementedNSKeyServiceServer) DeleteNSKey(context.Context, *DeleteNSKeyRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteNSKey not implemented")
}
func (*UnimplementedNSKeyServiceServer) FindEnabledNSKey(context.Context, *FindEnabledNSKeyRequest) (*FindEnabledNSKeyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNSKey not implemented")
}
func (*UnimplementedNSKeyServiceServer) CountAllEnabledNSKeys(context.Context, *CountAllEnabledNSKeysRequest) (*RPCCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledNSKeys not implemented")
}
func (*UnimplementedNSKeyServiceServer) ListEnabledNSKeys(context.Context, *ListEnabledNSKeysRequest) (*ListEnabledNSKeysResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListEnabledNSKeys not implemented")
}
2021-07-25 15:08:38 +08:00
func (*UnimplementedNSKeyServiceServer) ListNSKeysAfterVersion(context.Context, *ListNSKeysAfterVersionRequest) (*ListNSKeysAfterVersionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListNSKeysAfterVersion not implemented")
}
2021-07-25 09:43:47 +08:00
func RegisterNSKeyServiceServer(s *grpc.Server, srv NSKeyServiceServer) {
s.RegisterService(&_NSKeyService_serviceDesc, srv)
}
func _NSKeyService_CreateNSKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateNSKeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSKeyServiceServer).CreateNSKey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSKeyService/CreateNSKey",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSKeyServiceServer).CreateNSKey(ctx, req.(*CreateNSKeyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NSKeyService_UpdateNSKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateNSKeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSKeyServiceServer).UpdateNSKey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSKeyService/UpdateNSKey",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSKeyServiceServer).UpdateNSKey(ctx, req.(*UpdateNSKeyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NSKeyService_DeleteNSKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteNSKeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSKeyServiceServer).DeleteNSKey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSKeyService/DeleteNSKey",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSKeyServiceServer).DeleteNSKey(ctx, req.(*DeleteNSKeyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NSKeyService_FindEnabledNSKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindEnabledNSKeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSKeyServiceServer).FindEnabledNSKey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSKeyService/FindEnabledNSKey",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSKeyServiceServer).FindEnabledNSKey(ctx, req.(*FindEnabledNSKeyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NSKeyService_CountAllEnabledNSKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CountAllEnabledNSKeysRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSKeyServiceServer).CountAllEnabledNSKeys(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSKeyService/CountAllEnabledNSKeys",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSKeyServiceServer).CountAllEnabledNSKeys(ctx, req.(*CountAllEnabledNSKeysRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NSKeyService_ListEnabledNSKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListEnabledNSKeysRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSKeyServiceServer).ListEnabledNSKeys(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSKeyService/ListEnabledNSKeys",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSKeyServiceServer).ListEnabledNSKeys(ctx, req.(*ListEnabledNSKeysRequest))
}
return interceptor(ctx, in, info, handler)
}
2021-07-25 15:08:38 +08:00
func _NSKeyService_ListNSKeysAfterVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListNSKeysAfterVersionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSKeyServiceServer).ListNSKeysAfterVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSKeyService/ListNSKeysAfterVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSKeyServiceServer).ListNSKeysAfterVersion(ctx, req.(*ListNSKeysAfterVersionRequest))
}
return interceptor(ctx, in, info, handler)
}
2021-07-25 09:43:47 +08:00
var _NSKeyService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.NSKeyService",
HandlerType: (*NSKeyServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "createNSKey",
Handler: _NSKeyService_CreateNSKey_Handler,
},
{
MethodName: "updateNSKey",
Handler: _NSKeyService_UpdateNSKey_Handler,
},
{
MethodName: "deleteNSKey",
Handler: _NSKeyService_DeleteNSKey_Handler,
},
{
MethodName: "findEnabledNSKey",
Handler: _NSKeyService_FindEnabledNSKey_Handler,
},
{
MethodName: "countAllEnabledNSKeys",
Handler: _NSKeyService_CountAllEnabledNSKeys_Handler,
},
{
MethodName: "listEnabledNSKeys",
Handler: _NSKeyService_ListEnabledNSKeys_Handler,
},
2021-07-25 15:08:38 +08:00
{
MethodName: "listNSKeysAfterVersion",
Handler: _NSKeyService_ListNSKeysAfterVersion_Handler,
},
2021-07-25 09:43:47 +08:00
},
Streams: []grpc.StreamDesc{},
Metadata: "service_ns_key.proto",
}