NS域名增加状态

This commit is contained in:
GoEdgeLab
2022-09-09 15:25:46 +08:00
parent 5109ab37ea
commit 7394037ccd
7 changed files with 3909 additions and 3713 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +0,0 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package dnsconfigs
type NSDomainStatus = string
const (
NSDomainStatusNone = "none"
NSDomainStatusVerified = "verified"
)

54
pkg/dnsconfigs/status.go Normal file
View File

@@ -0,0 +1,54 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package dnsconfigs
import "github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/shared"
// NSDomainStatus 域名状态
type NSDomainStatus = string
const (
NSDomainStatusNone NSDomainStatus = "none" // 初始状态
NSDomainStatusVerified NSDomainStatus = "verified" // 已验证
NSDomainStatusRejected NSDomainStatus = "rejected" // 已驳回(可以重新提交)
NSDomainStatusForbidden NSDomainStatus = "forbidden" // 已禁止(禁止继续使用此域名)
)
func FindAllNSDomainStatusList() []*shared.Definition {
return []*shared.Definition{
{
Name: "未验证",
Code: NSDomainStatusNone,
},
{
Name: "已验证",
Code: NSDomainStatusVerified,
},
{
Name: "已驳回",
Code: NSDomainStatusRejected,
},
{
Name: "已禁止",
Code: NSDomainStatusForbidden,
},
}
}
func NSDomainStatusIsValid(status string) bool {
for _, def := range FindAllNSDomainStatusList() {
if def.Code == status {
return true
}
}
return false
}
func NSDomainStatusName(status string) string {
for _, def := range FindAllNSDomainStatusList() {
if def.Code == status {
return def.Name
}
}
return ""
}

View File

@@ -39,6 +39,7 @@ type NSDomain struct {
Version int64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
TsigJSON []byte `protobuf:"bytes,7,opt,name=tsigJSON,proto3" json:"tsigJSON,omitempty"`
NsDomainGroupIds []int64 `protobuf:"varint,8,rep,packed,name=nsDomainGroupIds,proto3" json:"nsDomainGroupIds,omitempty"`
Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
NsCluster *NSCluster `protobuf:"bytes,30,opt,name=nsCluster,proto3" json:"nsCluster,omitempty"`
User *User `protobuf:"bytes,31,opt,name=user,proto3" json:"user,omitempty"`
NsDomainGroups []*NSDomainGroup `protobuf:"bytes,32,rep,name=nsDomainGroups,proto3" json:"nsDomainGroups,omitempty"`
@@ -132,6 +133,13 @@ func (x *NSDomain) GetNsDomainGroupIds() []int64 {
return nil
}
func (x *NSDomain) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *NSDomain) GetNsCluster() *NSCluster {
if x != nil {
return x.NsCluster
@@ -163,7 +171,7 @@ var file_models_model_ns_domain_proto_rawDesc = []byte{
0x6f, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f,
0x6e, 0x73, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe6,
0x64, 0x65, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfe,
0x02, 0x0a, 0x08, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
@@ -178,16 +186,17 @@ var file_models_model_ns_domain_proto_rawDesc = []byte{
0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x2a, 0x0a, 0x10, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x03, 0x52,
0x10, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64,
0x73, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x1e,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73,
0x74, 0x65, 0x72, 0x52, 0x09, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1c,
0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70,
0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x0e,
0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x20,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0e, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x73, 0x43,
0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70,
0x62, 0x2e, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x09, 0x6e, 0x73, 0x43,
0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x1f,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04,
0x75, 0x73, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x0e, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x20, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70,
0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,
0x0e, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42,
0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (

View File

@@ -268,7 +268,7 @@ func (x *CreateNSDomainsResponse) GetNsDomainIds() []int64 {
}
// 修改域名
// 注意:名称不修改
// 注意:名称不允许修改
type UpdateNSDomainRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -348,6 +348,62 @@ func (x *UpdateNSDomainRequest) GetIsOn() bool {
return false
}
// 修改域名状态
type UpdateNSDomainStatusRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsDomainId int64 `protobuf:"varint,1,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
}
func (x *UpdateNSDomainStatusRequest) Reset() {
*x = UpdateNSDomainStatusRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateNSDomainStatusRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateNSDomainStatusRequest) ProtoMessage() {}
func (x *UpdateNSDomainStatusRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_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 UpdateNSDomainStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdateNSDomainStatusRequest) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{5}
}
func (x *UpdateNSDomainStatusRequest) GetNsDomainId() int64 {
if x != nil {
return x.NsDomainId
}
return 0
}
func (x *UpdateNSDomainStatusRequest) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
// 删除域名
type DeleteNSDomainRequest struct {
state protoimpl.MessageState
@@ -360,7 +416,7 @@ type DeleteNSDomainRequest struct {
func (x *DeleteNSDomainRequest) Reset() {
*x = DeleteNSDomainRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[5]
mi := &file_service_ns_domain_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -373,7 +429,7 @@ func (x *DeleteNSDomainRequest) String() string {
func (*DeleteNSDomainRequest) ProtoMessage() {}
func (x *DeleteNSDomainRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[5]
mi := &file_service_ns_domain_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -386,7 +442,7 @@ func (x *DeleteNSDomainRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteNSDomainRequest.ProtoReflect.Descriptor instead.
func (*DeleteNSDomainRequest) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{5}
return file_service_ns_domain_proto_rawDescGZIP(), []int{6}
}
func (x *DeleteNSDomainRequest) GetNsDomainId() int64 {
@@ -409,7 +465,7 @@ type DeleteNSDomainsRequest struct {
func (x *DeleteNSDomainsRequest) Reset() {
*x = DeleteNSDomainsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[6]
mi := &file_service_ns_domain_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -422,7 +478,7 @@ func (x *DeleteNSDomainsRequest) String() string {
func (*DeleteNSDomainsRequest) ProtoMessage() {}
func (x *DeleteNSDomainsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[6]
mi := &file_service_ns_domain_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -435,7 +491,7 @@ func (x *DeleteNSDomainsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteNSDomainsRequest.ProtoReflect.Descriptor instead.
func (*DeleteNSDomainsRequest) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{6}
return file_service_ns_domain_proto_rawDescGZIP(), []int{7}
}
func (x *DeleteNSDomainsRequest) GetNames() []string {
@@ -464,7 +520,7 @@ type FindNSDomainRequest struct {
func (x *FindNSDomainRequest) Reset() {
*x = FindNSDomainRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[7]
mi := &file_service_ns_domain_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -477,7 +533,7 @@ func (x *FindNSDomainRequest) String() string {
func (*FindNSDomainRequest) ProtoMessage() {}
func (x *FindNSDomainRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[7]
mi := &file_service_ns_domain_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -490,7 +546,7 @@ func (x *FindNSDomainRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use FindNSDomainRequest.ProtoReflect.Descriptor instead.
func (*FindNSDomainRequest) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{7}
return file_service_ns_domain_proto_rawDescGZIP(), []int{8}
}
func (x *FindNSDomainRequest) GetNsDomainId() int64 {
@@ -511,7 +567,7 @@ type FindNSDomainResponse struct {
func (x *FindNSDomainResponse) Reset() {
*x = FindNSDomainResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[8]
mi := &file_service_ns_domain_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -524,7 +580,7 @@ func (x *FindNSDomainResponse) String() string {
func (*FindNSDomainResponse) ProtoMessage() {}
func (x *FindNSDomainResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[8]
mi := &file_service_ns_domain_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -537,7 +593,7 @@ func (x *FindNSDomainResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use FindNSDomainResponse.ProtoReflect.Descriptor instead.
func (*FindNSDomainResponse) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{8}
return file_service_ns_domain_proto_rawDescGZIP(), []int{9}
}
func (x *FindNSDomainResponse) GetNsDomain() *NSDomain {
@@ -559,7 +615,7 @@ type FindNSDomainWithNameRequest struct {
func (x *FindNSDomainWithNameRequest) Reset() {
*x = FindNSDomainWithNameRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[9]
mi := &file_service_ns_domain_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -572,7 +628,7 @@ func (x *FindNSDomainWithNameRequest) String() string {
func (*FindNSDomainWithNameRequest) ProtoMessage() {}
func (x *FindNSDomainWithNameRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[9]
mi := &file_service_ns_domain_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -585,7 +641,7 @@ func (x *FindNSDomainWithNameRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use FindNSDomainWithNameRequest.ProtoReflect.Descriptor instead.
func (*FindNSDomainWithNameRequest) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{9}
return file_service_ns_domain_proto_rawDescGZIP(), []int{10}
}
func (x *FindNSDomainWithNameRequest) GetName() string {
@@ -606,7 +662,7 @@ type FindNSDomainWithNameResponse struct {
func (x *FindNSDomainWithNameResponse) Reset() {
*x = FindNSDomainWithNameResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[10]
mi := &file_service_ns_domain_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -619,7 +675,7 @@ func (x *FindNSDomainWithNameResponse) String() string {
func (*FindNSDomainWithNameResponse) ProtoMessage() {}
func (x *FindNSDomainWithNameResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[10]
mi := &file_service_ns_domain_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -632,7 +688,7 @@ func (x *FindNSDomainWithNameResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use FindNSDomainWithNameResponse.ProtoReflect.Descriptor instead.
func (*FindNSDomainWithNameResponse) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{10}
return file_service_ns_domain_proto_rawDescGZIP(), []int{11}
}
func (x *FindNSDomainWithNameResponse) GetNsDomain() *NSDomain {
@@ -657,7 +713,7 @@ type CountAllNSDomainsRequest struct {
func (x *CountAllNSDomainsRequest) Reset() {
*x = CountAllNSDomainsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[11]
mi := &file_service_ns_domain_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -670,7 +726,7 @@ func (x *CountAllNSDomainsRequest) String() string {
func (*CountAllNSDomainsRequest) ProtoMessage() {}
func (x *CountAllNSDomainsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[11]
mi := &file_service_ns_domain_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -683,7 +739,7 @@ func (x *CountAllNSDomainsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CountAllNSDomainsRequest.ProtoReflect.Descriptor instead.
func (*CountAllNSDomainsRequest) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{11}
return file_service_ns_domain_proto_rawDescGZIP(), []int{12}
}
func (x *CountAllNSDomainsRequest) GetUserId() int64 {
@@ -731,7 +787,7 @@ type ListNSDomainsRequest struct {
func (x *ListNSDomainsRequest) Reset() {
*x = ListNSDomainsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[12]
mi := &file_service_ns_domain_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -744,7 +800,7 @@ func (x *ListNSDomainsRequest) String() string {
func (*ListNSDomainsRequest) ProtoMessage() {}
func (x *ListNSDomainsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[12]
mi := &file_service_ns_domain_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -757,7 +813,7 @@ func (x *ListNSDomainsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListNSDomainsRequest.ProtoReflect.Descriptor instead.
func (*ListNSDomainsRequest) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{12}
return file_service_ns_domain_proto_rawDescGZIP(), []int{13}
}
func (x *ListNSDomainsRequest) GetUserId() int64 {
@@ -813,7 +869,7 @@ type ListNSDomainsResponse struct {
func (x *ListNSDomainsResponse) Reset() {
*x = ListNSDomainsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[13]
mi := &file_service_ns_domain_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -826,7 +882,7 @@ func (x *ListNSDomainsResponse) String() string {
func (*ListNSDomainsResponse) ProtoMessage() {}
func (x *ListNSDomainsResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[13]
mi := &file_service_ns_domain_proto_msgTypes[14]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -839,7 +895,7 @@ func (x *ListNSDomainsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListNSDomainsResponse.ProtoReflect.Descriptor instead.
func (*ListNSDomainsResponse) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{13}
return file_service_ns_domain_proto_rawDescGZIP(), []int{14}
}
func (x *ListNSDomainsResponse) GetNsDomains() []*NSDomain {
@@ -862,7 +918,7 @@ type ListNSDomainsAfterVersionRequest struct {
func (x *ListNSDomainsAfterVersionRequest) Reset() {
*x = ListNSDomainsAfterVersionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[14]
mi := &file_service_ns_domain_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -875,7 +931,7 @@ func (x *ListNSDomainsAfterVersionRequest) String() string {
func (*ListNSDomainsAfterVersionRequest) ProtoMessage() {}
func (x *ListNSDomainsAfterVersionRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[14]
mi := &file_service_ns_domain_proto_msgTypes[15]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -888,7 +944,7 @@ func (x *ListNSDomainsAfterVersionRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListNSDomainsAfterVersionRequest.ProtoReflect.Descriptor instead.
func (*ListNSDomainsAfterVersionRequest) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{14}
return file_service_ns_domain_proto_rawDescGZIP(), []int{15}
}
func (x *ListNSDomainsAfterVersionRequest) GetVersion() int64 {
@@ -916,7 +972,7 @@ type ListNSDomainsAfterVersionResponse struct {
func (x *ListNSDomainsAfterVersionResponse) Reset() {
*x = ListNSDomainsAfterVersionResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[15]
mi := &file_service_ns_domain_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -929,7 +985,7 @@ func (x *ListNSDomainsAfterVersionResponse) String() string {
func (*ListNSDomainsAfterVersionResponse) ProtoMessage() {}
func (x *ListNSDomainsAfterVersionResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[15]
mi := &file_service_ns_domain_proto_msgTypes[16]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -942,7 +998,7 @@ func (x *ListNSDomainsAfterVersionResponse) ProtoReflect() protoreflect.Message
// Deprecated: Use ListNSDomainsAfterVersionResponse.ProtoReflect.Descriptor instead.
func (*ListNSDomainsAfterVersionResponse) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{15}
return file_service_ns_domain_proto_rawDescGZIP(), []int{16}
}
func (x *ListNSDomainsAfterVersionResponse) GetNsDomains() []*NSDomain {
@@ -964,7 +1020,7 @@ type FindNSDomainTSIGRequest struct {
func (x *FindNSDomainTSIGRequest) Reset() {
*x = FindNSDomainTSIGRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[16]
mi := &file_service_ns_domain_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -977,7 +1033,7 @@ func (x *FindNSDomainTSIGRequest) String() string {
func (*FindNSDomainTSIGRequest) ProtoMessage() {}
func (x *FindNSDomainTSIGRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[16]
mi := &file_service_ns_domain_proto_msgTypes[17]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -990,7 +1046,7 @@ func (x *FindNSDomainTSIGRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use FindNSDomainTSIGRequest.ProtoReflect.Descriptor instead.
func (*FindNSDomainTSIGRequest) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{16}
return file_service_ns_domain_proto_rawDescGZIP(), []int{17}
}
func (x *FindNSDomainTSIGRequest) GetNsDomainId() int64 {
@@ -1011,7 +1067,7 @@ type FindNSDomainTSIGResponse struct {
func (x *FindNSDomainTSIGResponse) Reset() {
*x = FindNSDomainTSIGResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[17]
mi := &file_service_ns_domain_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1024,7 +1080,7 @@ func (x *FindNSDomainTSIGResponse) String() string {
func (*FindNSDomainTSIGResponse) ProtoMessage() {}
func (x *FindNSDomainTSIGResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[17]
mi := &file_service_ns_domain_proto_msgTypes[18]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1037,7 +1093,7 @@ func (x *FindNSDomainTSIGResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use FindNSDomainTSIGResponse.ProtoReflect.Descriptor instead.
func (*FindNSDomainTSIGResponse) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{17}
return file_service_ns_domain_proto_rawDescGZIP(), []int{18}
}
func (x *FindNSDomainTSIGResponse) GetTsigJSON() []byte {
@@ -1060,7 +1116,7 @@ type UpdateNSDomainTSIGRequest struct {
func (x *UpdateNSDomainTSIGRequest) Reset() {
*x = UpdateNSDomainTSIGRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[18]
mi := &file_service_ns_domain_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1073,7 +1129,7 @@ func (x *UpdateNSDomainTSIGRequest) String() string {
func (*UpdateNSDomainTSIGRequest) ProtoMessage() {}
func (x *UpdateNSDomainTSIGRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[18]
mi := &file_service_ns_domain_proto_msgTypes[19]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1086,7 +1142,7 @@ func (x *UpdateNSDomainTSIGRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateNSDomainTSIGRequest.ProtoReflect.Descriptor instead.
func (*UpdateNSDomainTSIGRequest) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{18}
return file_service_ns_domain_proto_rawDescGZIP(), []int{19}
}
func (x *UpdateNSDomainTSIGRequest) GetNsDomainId() int64 {
@@ -1116,7 +1172,7 @@ type ExistNSDomainsRequest struct {
func (x *ExistNSDomainsRequest) Reset() {
*x = ExistNSDomainsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[19]
mi := &file_service_ns_domain_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1129,7 +1185,7 @@ func (x *ExistNSDomainsRequest) String() string {
func (*ExistNSDomainsRequest) ProtoMessage() {}
func (x *ExistNSDomainsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[19]
mi := &file_service_ns_domain_proto_msgTypes[20]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1142,7 +1198,7 @@ func (x *ExistNSDomainsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ExistNSDomainsRequest.ProtoReflect.Descriptor instead.
func (*ExistNSDomainsRequest) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{19}
return file_service_ns_domain_proto_rawDescGZIP(), []int{20}
}
func (x *ExistNSDomainsRequest) GetNames() []string {
@@ -1170,7 +1226,7 @@ type ExistNSDomainsResponse struct {
func (x *ExistNSDomainsResponse) Reset() {
*x = ExistNSDomainsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[20]
mi := &file_service_ns_domain_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1183,7 +1239,7 @@ func (x *ExistNSDomainsResponse) String() string {
func (*ExistNSDomainsResponse) ProtoMessage() {}
func (x *ExistNSDomainsResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[20]
mi := &file_service_ns_domain_proto_msgTypes[21]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1196,7 +1252,7 @@ func (x *ExistNSDomainsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ExistNSDomainsResponse.ProtoReflect.Descriptor instead.
func (*ExistNSDomainsResponse) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{20}
return file_service_ns_domain_proto_rawDescGZIP(), []int{21}
}
func (x *ExistNSDomainsResponse) GetExistingNames() []string {
@@ -1251,101 +1307,111 @@ var file_service_ns_domain_proto_rawDesc = []byte{
0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73,
0x18, 0x05, 0x20, 0x03, 0x28, 0x03, 0x52, 0x10, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e,
0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x22, 0x37, 0x0a, 0x15,
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x22, 0x46, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e,
0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05,
0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x35, 0x0a,
0x13, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x22, 0x40, 0x0a, 0x14, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f,
0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x08,
0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c,
0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x08, 0x6e, 0x73,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x31, 0x0a, 0x1b, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 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, 0x48, 0x0a, 0x1c, 0x46, 0x69, 0x6e,
0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d,
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x44,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62,
0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x08, 0x6e, 0x73, 0x44, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x22, 0x98, 0x01, 0x0a, 0x18, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c,
0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c,
0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e,
0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65,
0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79,
0x77, 0x6f, 0x72, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e,
0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0xc0,
0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73,
0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x22, 0x55, 0x0a, 0x1b,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74,
0x61, 0x74, 0x75, 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, 0x16, 0x0a, 0x06, 0x73,
0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61,
0x74, 0x75, 0x73, 0x22, 0x37, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x22, 0x46, 0x0a, 0x16,
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06,
0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73,
0x65, 0x72, 0x49, 0x64, 0x22, 0x35, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f,
0x6d, 0x61, 0x69, 0x6e, 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, 0x22, 0x40, 0x0a, 0x14, 0x46,
0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x52, 0x08, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x31, 0x0a,
0x1b, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x57, 0x69, 0x74,
0x68, 0x4e, 0x61, 0x6d, 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, 0x48, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x52, 0x08, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x98, 0x01, 0x0a, 0x18, 0x43,
0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49,
0x64, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x6e,
0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x06,
0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x04,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72,
0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18,
0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a,
0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a,
0x65, 0x22, 0x43, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e,
0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x09, 0x6e, 0x73, 0x44,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x22, 0x50, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x4f, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74,
0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a,
0x09, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x09,
0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x22, 0x39, 0x0a, 0x17, 0x46, 0x69, 0x6e,
0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 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, 0x22, 0x36, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f,
0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x1a, 0x0a, 0x08, 0x74, 0x73, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0c, 0x52, 0x08, 0x74, 0x73, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x57, 0x0a, 0x19,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53,
0x49, 0x47, 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, 0x74, 0x73, 0x69,
0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x74, 0x73, 0x69,
0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x45, 0x0a, 0x15, 0x45, 0x78, 0x69, 0x73, 0x74, 0x4e, 0x53,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14,
0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e,
0x61, 0x6d, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02,
0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x3e, 0x0a, 0x16,
0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0xc0, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16,
0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73,
0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43,
0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77,
0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f,
0x72, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72,
0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x73, 0x44,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06,
0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66,
0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01,
0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x43, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74,
0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x01,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x52, 0x09, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x22, 0x50, 0x0a,
0x20, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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,
0x4f, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73,
0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x09, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73,
0x22, 0x39, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x54, 0x53, 0x49, 0x47, 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, 0x22, 0x36, 0x0a, 0x18, 0x46,
0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x73, 0x69, 0x67, 0x4a,
0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x74, 0x73, 0x69, 0x67, 0x4a,
0x53, 0x4f, 0x4e, 0x22, 0x57, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 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, 0x74, 0x73, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0c, 0x52, 0x08, 0x74, 0x73, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x45, 0x0a, 0x15,
0x45, 0x78, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69,
0x6e, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x65,
0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x32, 0xd3, 0x07, 0x0a,
0x0f, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x12, 0x47, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e,
0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72, 0x65,
0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x1a, 0x2e, 0x70,
0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e,
0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01,
0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75,
0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65,
0x72, 0x49, 0x64, 0x22, 0x3e, 0x0a, 0x16, 0x45, 0x78, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f,
0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a,
0x0d, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01,
0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4e, 0x61,
0x6d, 0x65, 0x73, 0x32, 0x9c, 0x08, 0x0a, 0x0f, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74,
0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e,
0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0e,
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x19,
0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52,
0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x14, 0x75, 0x70, 0x64,
0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75,
0x73, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65,
0x73, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f,
0x6d, 0x61, 0x69, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
@@ -1410,66 +1476,69 @@ func file_service_ns_domain_proto_rawDescGZIP() []byte {
return file_service_ns_domain_proto_rawDescData
}
var file_service_ns_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
var file_service_ns_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
var file_service_ns_domain_proto_goTypes = []interface{}{
(*CreateNSDomainRequest)(nil), // 0: pb.CreateNSDomainRequest
(*CreateNSDomainResponse)(nil), // 1: pb.CreateNSDomainResponse
(*CreateNSDomainsRequest)(nil), // 2: pb.CreateNSDomainsRequest
(*CreateNSDomainsResponse)(nil), // 3: pb.CreateNSDomainsResponse
(*UpdateNSDomainRequest)(nil), // 4: pb.UpdateNSDomainRequest
(*DeleteNSDomainRequest)(nil), // 5: pb.DeleteNSDomainRequest
(*DeleteNSDomainsRequest)(nil), // 6: pb.DeleteNSDomainsRequest
(*FindNSDomainRequest)(nil), // 7: pb.FindNSDomainRequest
(*FindNSDomainResponse)(nil), // 8: pb.FindNSDomainResponse
(*FindNSDomainWithNameRequest)(nil), // 9: pb.FindNSDomainWithNameRequest
(*FindNSDomainWithNameResponse)(nil), // 10: pb.FindNSDomainWithNameResponse
(*CountAllNSDomainsRequest)(nil), // 11: pb.CountAllNSDomainsRequest
(*ListNSDomainsRequest)(nil), // 12: pb.ListNSDomainsRequest
(*ListNSDomainsResponse)(nil), // 13: pb.ListNSDomainsResponse
(*ListNSDomainsAfterVersionRequest)(nil), // 14: pb.ListNSDomainsAfterVersionRequest
(*ListNSDomainsAfterVersionResponse)(nil), // 15: pb.ListNSDomainsAfterVersionResponse
(*FindNSDomainTSIGRequest)(nil), // 16: pb.FindNSDomainTSIGRequest
(*FindNSDomainTSIGResponse)(nil), // 17: pb.FindNSDomainTSIGResponse
(*UpdateNSDomainTSIGRequest)(nil), // 18: pb.UpdateNSDomainTSIGRequest
(*ExistNSDomainsRequest)(nil), // 19: pb.ExistNSDomainsRequest
(*ExistNSDomainsResponse)(nil), // 20: pb.ExistNSDomainsResponse
(*NSDomain)(nil), // 21: pb.NSDomain
(*RPCSuccess)(nil), // 22: pb.RPCSuccess
(*RPCCountResponse)(nil), // 23: pb.RPCCountResponse
(*UpdateNSDomainStatusRequest)(nil), // 5: pb.UpdateNSDomainStatusRequest
(*DeleteNSDomainRequest)(nil), // 6: pb.DeleteNSDomainRequest
(*DeleteNSDomainsRequest)(nil), // 7: pb.DeleteNSDomainsRequest
(*FindNSDomainRequest)(nil), // 8: pb.FindNSDomainRequest
(*FindNSDomainResponse)(nil), // 9: pb.FindNSDomainResponse
(*FindNSDomainWithNameRequest)(nil), // 10: pb.FindNSDomainWithNameRequest
(*FindNSDomainWithNameResponse)(nil), // 11: pb.FindNSDomainWithNameResponse
(*CountAllNSDomainsRequest)(nil), // 12: pb.CountAllNSDomainsRequest
(*ListNSDomainsRequest)(nil), // 13: pb.ListNSDomainsRequest
(*ListNSDomainsResponse)(nil), // 14: pb.ListNSDomainsResponse
(*ListNSDomainsAfterVersionRequest)(nil), // 15: pb.ListNSDomainsAfterVersionRequest
(*ListNSDomainsAfterVersionResponse)(nil), // 16: pb.ListNSDomainsAfterVersionResponse
(*FindNSDomainTSIGRequest)(nil), // 17: pb.FindNSDomainTSIGRequest
(*FindNSDomainTSIGResponse)(nil), // 18: pb.FindNSDomainTSIGResponse
(*UpdateNSDomainTSIGRequest)(nil), // 19: pb.UpdateNSDomainTSIGRequest
(*ExistNSDomainsRequest)(nil), // 20: pb.ExistNSDomainsRequest
(*ExistNSDomainsResponse)(nil), // 21: pb.ExistNSDomainsResponse
(*NSDomain)(nil), // 22: pb.NSDomain
(*RPCSuccess)(nil), // 23: pb.RPCSuccess
(*RPCCountResponse)(nil), // 24: pb.RPCCountResponse
}
var file_service_ns_domain_proto_depIdxs = []int32{
21, // 0: pb.FindNSDomainResponse.nsDomain:type_name -> pb.NSDomain
21, // 1: pb.FindNSDomainWithNameResponse.nsDomain:type_name -> pb.NSDomain
21, // 2: pb.ListNSDomainsResponse.nsDomains:type_name -> pb.NSDomain
21, // 3: pb.ListNSDomainsAfterVersionResponse.nsDomains:type_name -> pb.NSDomain
22, // 0: pb.FindNSDomainResponse.nsDomain:type_name -> pb.NSDomain
22, // 1: pb.FindNSDomainWithNameResponse.nsDomain:type_name -> pb.NSDomain
22, // 2: pb.ListNSDomainsResponse.nsDomains:type_name -> pb.NSDomain
22, // 3: pb.ListNSDomainsAfterVersionResponse.nsDomains:type_name -> pb.NSDomain
0, // 4: pb.NSDomainService.createNSDomain:input_type -> pb.CreateNSDomainRequest
2, // 5: pb.NSDomainService.createNSDomains:input_type -> pb.CreateNSDomainsRequest
4, // 6: pb.NSDomainService.updateNSDomain:input_type -> pb.UpdateNSDomainRequest
5, // 7: pb.NSDomainService.deleteNSDomain:input_type -> pb.DeleteNSDomainRequest
6, // 8: pb.NSDomainService.deleteNSDomains:input_type -> pb.DeleteNSDomainsRequest
7, // 9: pb.NSDomainService.findNSDomain:input_type -> pb.FindNSDomainRequest
9, // 10: pb.NSDomainService.findNSDomainWithName:input_type -> pb.FindNSDomainWithNameRequest
11, // 11: pb.NSDomainService.countAllNSDomains:input_type -> pb.CountAllNSDomainsRequest
12, // 12: pb.NSDomainService.listNSDomains:input_type -> pb.ListNSDomainsRequest
14, // 13: pb.NSDomainService.listNSDomainsAfterVersion:input_type -> pb.ListNSDomainsAfterVersionRequest
16, // 14: pb.NSDomainService.findNSDomainTSIG:input_type -> pb.FindNSDomainTSIGRequest
18, // 15: pb.NSDomainService.updateNSDomainTSIG:input_type -> pb.UpdateNSDomainTSIGRequest
19, // 16: pb.NSDomainService.existNSDomains:input_type -> pb.ExistNSDomainsRequest
1, // 17: pb.NSDomainService.createNSDomain:output_type -> pb.CreateNSDomainResponse
3, // 18: pb.NSDomainService.createNSDomains:output_type -> pb.CreateNSDomainsResponse
22, // 19: pb.NSDomainService.updateNSDomain:output_type -> pb.RPCSuccess
22, // 20: pb.NSDomainService.deleteNSDomain:output_type -> pb.RPCSuccess
22, // 21: pb.NSDomainService.deleteNSDomains:output_type -> pb.RPCSuccess
8, // 22: pb.NSDomainService.findNSDomain:output_type -> pb.FindNSDomainResponse
10, // 23: pb.NSDomainService.findNSDomainWithName:output_type -> pb.FindNSDomainWithNameResponse
23, // 24: pb.NSDomainService.countAllNSDomains:output_type -> pb.RPCCountResponse
13, // 25: pb.NSDomainService.listNSDomains:output_type -> pb.ListNSDomainsResponse
15, // 26: pb.NSDomainService.listNSDomainsAfterVersion:output_type -> pb.ListNSDomainsAfterVersionResponse
17, // 27: pb.NSDomainService.findNSDomainTSIG:output_type -> pb.FindNSDomainTSIGResponse
22, // 28: pb.NSDomainService.updateNSDomainTSIG:output_type -> pb.RPCSuccess
20, // 29: pb.NSDomainService.existNSDomains:output_type -> pb.ExistNSDomainsResponse
17, // [17:30] is the sub-list for method output_type
4, // [4:17] is the sub-list for method input_type
5, // 7: pb.NSDomainService.updateNSDomainStatus:input_type -> pb.UpdateNSDomainStatusRequest
6, // 8: pb.NSDomainService.deleteNSDomain:input_type -> pb.DeleteNSDomainRequest
7, // 9: pb.NSDomainService.deleteNSDomains:input_type -> pb.DeleteNSDomainsRequest
8, // 10: pb.NSDomainService.findNSDomain:input_type -> pb.FindNSDomainRequest
10, // 11: pb.NSDomainService.findNSDomainWithName:input_type -> pb.FindNSDomainWithNameRequest
12, // 12: pb.NSDomainService.countAllNSDomains:input_type -> pb.CountAllNSDomainsRequest
13, // 13: pb.NSDomainService.listNSDomains:input_type -> pb.ListNSDomainsRequest
15, // 14: pb.NSDomainService.listNSDomainsAfterVersion:input_type -> pb.ListNSDomainsAfterVersionRequest
17, // 15: pb.NSDomainService.findNSDomainTSIG:input_type -> pb.FindNSDomainTSIGRequest
19, // 16: pb.NSDomainService.updateNSDomainTSIG:input_type -> pb.UpdateNSDomainTSIGRequest
20, // 17: pb.NSDomainService.existNSDomains:input_type -> pb.ExistNSDomainsRequest
1, // 18: pb.NSDomainService.createNSDomain:output_type -> pb.CreateNSDomainResponse
3, // 19: pb.NSDomainService.createNSDomains:output_type -> pb.CreateNSDomainsResponse
23, // 20: pb.NSDomainService.updateNSDomain:output_type -> pb.RPCSuccess
23, // 21: pb.NSDomainService.updateNSDomainStatus:output_type -> pb.RPCSuccess
23, // 22: pb.NSDomainService.deleteNSDomain:output_type -> pb.RPCSuccess
23, // 23: pb.NSDomainService.deleteNSDomains:output_type -> pb.RPCSuccess
9, // 24: pb.NSDomainService.findNSDomain:output_type -> pb.FindNSDomainResponse
11, // 25: pb.NSDomainService.findNSDomainWithName:output_type -> pb.FindNSDomainWithNameResponse
24, // 26: pb.NSDomainService.countAllNSDomains:output_type -> pb.RPCCountResponse
14, // 27: pb.NSDomainService.listNSDomains:output_type -> pb.ListNSDomainsResponse
16, // 28: pb.NSDomainService.listNSDomainsAfterVersion:output_type -> pb.ListNSDomainsAfterVersionResponse
18, // 29: pb.NSDomainService.findNSDomainTSIG:output_type -> pb.FindNSDomainTSIGResponse
23, // 30: pb.NSDomainService.updateNSDomainTSIG:output_type -> pb.RPCSuccess
21, // 31: pb.NSDomainService.existNSDomains:output_type -> pb.ExistNSDomainsResponse
18, // [18:32] is the sub-list for method output_type
4, // [4:18] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
@@ -1544,7 +1613,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteNSDomainRequest); i {
switch v := v.(*UpdateNSDomainStatusRequest); i {
case 0:
return &v.state
case 1:
@@ -1556,7 +1625,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteNSDomainsRequest); i {
switch v := v.(*DeleteNSDomainRequest); i {
case 0:
return &v.state
case 1:
@@ -1568,7 +1637,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindNSDomainRequest); i {
switch v := v.(*DeleteNSDomainsRequest); i {
case 0:
return &v.state
case 1:
@@ -1580,7 +1649,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindNSDomainResponse); i {
switch v := v.(*FindNSDomainRequest); i {
case 0:
return &v.state
case 1:
@@ -1592,7 +1661,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindNSDomainWithNameRequest); i {
switch v := v.(*FindNSDomainResponse); i {
case 0:
return &v.state
case 1:
@@ -1604,7 +1673,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindNSDomainWithNameResponse); i {
switch v := v.(*FindNSDomainWithNameRequest); i {
case 0:
return &v.state
case 1:
@@ -1616,7 +1685,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CountAllNSDomainsRequest); i {
switch v := v.(*FindNSDomainWithNameResponse); i {
case 0:
return &v.state
case 1:
@@ -1628,7 +1697,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListNSDomainsRequest); i {
switch v := v.(*CountAllNSDomainsRequest); i {
case 0:
return &v.state
case 1:
@@ -1640,7 +1709,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListNSDomainsResponse); i {
switch v := v.(*ListNSDomainsRequest); i {
case 0:
return &v.state
case 1:
@@ -1652,7 +1721,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListNSDomainsAfterVersionRequest); i {
switch v := v.(*ListNSDomainsResponse); i {
case 0:
return &v.state
case 1:
@@ -1664,7 +1733,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListNSDomainsAfterVersionResponse); i {
switch v := v.(*ListNSDomainsAfterVersionRequest); i {
case 0:
return &v.state
case 1:
@@ -1676,7 +1745,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindNSDomainTSIGRequest); i {
switch v := v.(*ListNSDomainsAfterVersionResponse); i {
case 0:
return &v.state
case 1:
@@ -1688,7 +1757,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindNSDomainTSIGResponse); i {
switch v := v.(*FindNSDomainTSIGRequest); i {
case 0:
return &v.state
case 1:
@@ -1700,7 +1769,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateNSDomainTSIGRequest); i {
switch v := v.(*FindNSDomainTSIGResponse); i {
case 0:
return &v.state
case 1:
@@ -1712,7 +1781,7 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ExistNSDomainsRequest); i {
switch v := v.(*UpdateNSDomainTSIGRequest); i {
case 0:
return &v.state
case 1:
@@ -1724,6 +1793,18 @@ func file_service_ns_domain_proto_init() {
}
}
file_service_ns_domain_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ExistNSDomainsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_domain_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ExistNSDomainsResponse); i {
case 0:
return &v.state
@@ -1742,7 +1823,7 @@ func file_service_ns_domain_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_ns_domain_proto_rawDesc,
NumEnums: 0,
NumMessages: 21,
NumMessages: 22,
NumExtensions: 0,
NumServices: 1,
},
@@ -1774,6 +1855,8 @@ type NSDomainServiceClient interface {
CreateNSDomains(ctx context.Context, in *CreateNSDomainsRequest, opts ...grpc.CallOption) (*CreateNSDomainsResponse, error)
// 修改域名
UpdateNSDomain(ctx context.Context, in *UpdateNSDomainRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 修改域名状态
UpdateNSDomainStatus(ctx context.Context, in *UpdateNSDomainStatusRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 删除域名
DeleteNSDomain(ctx context.Context, in *DeleteNSDomainRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 批量删除域名
@@ -1831,6 +1914,15 @@ func (c *nSDomainServiceClient) UpdateNSDomain(ctx context.Context, in *UpdateNS
return out, nil
}
func (c *nSDomainServiceClient) UpdateNSDomainStatus(ctx context.Context, in *UpdateNSDomainStatusRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.NSDomainService/updateNSDomainStatus", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nSDomainServiceClient) DeleteNSDomain(ctx context.Context, in *DeleteNSDomainRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.NSDomainService/deleteNSDomain", in, out, opts...)
@@ -1929,6 +2021,8 @@ type NSDomainServiceServer interface {
CreateNSDomains(context.Context, *CreateNSDomainsRequest) (*CreateNSDomainsResponse, error)
// 修改域名
UpdateNSDomain(context.Context, *UpdateNSDomainRequest) (*RPCSuccess, error)
// 修改域名状态
UpdateNSDomainStatus(context.Context, *UpdateNSDomainStatusRequest) (*RPCSuccess, error)
// 删除域名
DeleteNSDomain(context.Context, *DeleteNSDomainRequest) (*RPCSuccess, error)
// 批量删除域名
@@ -1964,6 +2058,9 @@ func (*UnimplementedNSDomainServiceServer) CreateNSDomains(context.Context, *Cre
func (*UnimplementedNSDomainServiceServer) UpdateNSDomain(context.Context, *UpdateNSDomainRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSDomain not implemented")
}
func (*UnimplementedNSDomainServiceServer) UpdateNSDomainStatus(context.Context, *UpdateNSDomainStatusRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSDomainStatus not implemented")
}
func (*UnimplementedNSDomainServiceServer) DeleteNSDomain(context.Context, *DeleteNSDomainRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteNSDomain not implemented")
}
@@ -2053,6 +2150,24 @@ func _NSDomainService_UpdateNSDomain_Handler(srv interface{}, ctx context.Contex
return interceptor(ctx, in, info, handler)
}
func _NSDomainService_UpdateNSDomainStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateNSDomainStatusRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSDomainServiceServer).UpdateNSDomainStatus(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSDomainService/UpdateNSDomainStatus",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSDomainServiceServer).UpdateNSDomainStatus(ctx, req.(*UpdateNSDomainStatusRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NSDomainService_DeleteNSDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteNSDomainRequest)
if err := dec(in); err != nil {
@@ -2249,6 +2364,10 @@ var _NSDomainService_serviceDesc = grpc.ServiceDesc{
MethodName: "updateNSDomain",
Handler: _NSDomainService_UpdateNSDomain_Handler,
},
{
MethodName: "updateNSDomainStatus",
Handler: _NSDomainService_UpdateNSDomainStatus_Handler,
},
{
MethodName: "deleteNSDomain",
Handler: _NSDomainService_DeleteNSDomain_Handler,

View File

@@ -17,6 +17,7 @@ message NSDomain {
int64 version = 6;
bytes tsigJSON = 7;
repeated int64 nsDomainGroupIds = 8;
string status = 9;
NSCluster nsCluster = 30;
User user = 31;

View File

@@ -17,6 +17,9 @@ service NSDomainService {
// 修改域名
rpc updateNSDomain (UpdateNSDomainRequest) returns (RPCSuccess);
// 修改域名状态
rpc updateNSDomainStatus(UpdateNSDomainStatusRequest) returns (RPCSuccess);
// 删除域名
rpc deleteNSDomain (DeleteNSDomainRequest) returns (RPCSuccess);
@@ -73,7 +76,7 @@ message CreateNSDomainsResponse {
}
// 修改域名
// 注意:名称不修改
// 注意:名称不允许修改
message UpdateNSDomainRequest {
int64 nsDomainId = 1;
int64 nsClusterId = 2;
@@ -82,6 +85,12 @@ message UpdateNSDomainRequest {
bool isOn = 4;
}
// 修改域名状态
message UpdateNSDomainStatusRequest {
int64 nsDomainId = 1;
string status = 2;
}
// 删除域名
message DeleteNSDomainRequest {
int64 nsDomainId = 1;