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

1720 lines
69 KiB
Go
Raw Normal View History

2020-09-13 19:27: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_node_ip_address.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
// 创建IP地址
type CreateNodeIPAddressRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-08-18 17:09:34 +08:00
NodeId int64 `protobuf:"varint,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
CanAccess bool `protobuf:"varint,5,opt,name=canAccess,proto3" json:"canAccess,omitempty"`
ThresholdsJSON []byte `protobuf:"bytes,6,opt,name=thresholdsJSON,proto3" json:"thresholdsJSON,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *CreateNodeIPAddressRequest) Reset() {
*x = CreateNodeIPAddressRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateNodeIPAddressRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateNodeIPAddressRequest) ProtoMessage() {}
func (x *CreateNodeIPAddressRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_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 CreateNodeIPAddressRequest.ProtoReflect.Descriptor instead.
func (*CreateNodeIPAddressRequest) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{0}
}
func (x *CreateNodeIPAddressRequest) GetNodeId() int64 {
if x != nil {
return x.NodeId
}
return 0
}
func (x *CreateNodeIPAddressRequest) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
2020-09-13 19:27:47 +08:00
func (x *CreateNodeIPAddressRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CreateNodeIPAddressRequest) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
func (x *CreateNodeIPAddressRequest) GetCanAccess() bool {
if x != nil {
return x.CanAccess
}
return false
}
2021-08-18 17:09:34 +08:00
func (x *CreateNodeIPAddressRequest) GetThresholdsJSON() []byte {
if x != nil {
return x.ThresholdsJSON
}
return nil
}
2020-09-13 19:27:47 +08:00
type CreateNodeIPAddressResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-08-31 17:24:41 +08:00
NodeIPAddressId int64 `protobuf:"varint,1,opt,name=nodeIPAddressId,proto3" json:"nodeIPAddressId,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *CreateNodeIPAddressResponse) Reset() {
*x = CreateNodeIPAddressResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateNodeIPAddressResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateNodeIPAddressResponse) ProtoMessage() {}
func (x *CreateNodeIPAddressResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_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 CreateNodeIPAddressResponse.ProtoReflect.Descriptor instead.
func (*CreateNodeIPAddressResponse) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{1}
}
2021-08-31 17:24:41 +08:00
func (x *CreateNodeIPAddressResponse) GetNodeIPAddressId() int64 {
2020-09-13 19:27:47 +08:00
if x != nil {
2021-08-31 17:24:41 +08:00
return x.NodeIPAddressId
2020-09-13 19:27:47 +08:00
}
return 0
}
// 修改IP地址
type UpdateNodeIPAddressRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-08-31 17:24:41 +08:00
NodeIPAddressId int64 `protobuf:"varint,1,opt,name=nodeIPAddressId,proto3" json:"nodeIPAddressId,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
CanAccess bool `protobuf:"varint,4,opt,name=canAccess,proto3" json:"canAccess,omitempty"`
IsOn bool `protobuf:"varint,5,opt,name=isOn,proto3" json:"isOn,omitempty"`
ThresholdsJSON []byte `protobuf:"bytes,6,opt,name=thresholdsJSON,proto3" json:"thresholdsJSON,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *UpdateNodeIPAddressRequest) Reset() {
*x = UpdateNodeIPAddressRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateNodeIPAddressRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateNodeIPAddressRequest) ProtoMessage() {}
func (x *UpdateNodeIPAddressRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_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 UpdateNodeIPAddressRequest.ProtoReflect.Descriptor instead.
func (*UpdateNodeIPAddressRequest) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{2}
}
2021-08-31 17:24:41 +08:00
func (x *UpdateNodeIPAddressRequest) GetNodeIPAddressId() int64 {
2020-09-13 19:27:47 +08:00
if x != nil {
2021-08-31 17:24:41 +08:00
return x.NodeIPAddressId
2020-09-13 19:27:47 +08:00
}
return 0
}
func (x *UpdateNodeIPAddressRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *UpdateNodeIPAddressRequest) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
func (x *UpdateNodeIPAddressRequest) GetCanAccess() bool {
if x != nil {
return x.CanAccess
}
return false
}
func (x *UpdateNodeIPAddressRequest) GetIsOn() bool {
if x != nil {
return x.IsOn
}
return false
}
2021-08-18 17:09:34 +08:00
func (x *UpdateNodeIPAddressRequest) GetThresholdsJSON() []byte {
if x != nil {
return x.ThresholdsJSON
}
return nil
}
2020-09-13 19:27:47 +08:00
// 修改IP地址所属节点
type UpdateNodeIPAddressNodeIdRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-08-31 17:24:41 +08:00
NodeIPAddressId int64 `protobuf:"varint,1,opt,name=nodeIPAddressId,proto3" json:"nodeIPAddressId,omitempty"`
NodeId int64 `protobuf:"varint,2,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *UpdateNodeIPAddressNodeIdRequest) Reset() {
*x = UpdateNodeIPAddressNodeIdRequest{}
if protoimpl.UnsafeEnabled {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[3]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateNodeIPAddressNodeIdRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateNodeIPAddressNodeIdRequest) ProtoMessage() {}
func (x *UpdateNodeIPAddressNodeIdRequest) ProtoReflect() protoreflect.Message {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[3]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateNodeIPAddressNodeIdRequest.ProtoReflect.Descriptor instead.
func (*UpdateNodeIPAddressNodeIdRequest) Descriptor() ([]byte, []int) {
2020-09-17 10:15:55 +08:00
return file_service_node_ip_address_proto_rawDescGZIP(), []int{3}
2020-09-13 19:27:47 +08:00
}
2021-08-31 17:24:41 +08:00
func (x *UpdateNodeIPAddressNodeIdRequest) GetNodeIPAddressId() int64 {
2020-09-13 19:27:47 +08:00
if x != nil {
2021-08-31 17:24:41 +08:00
return x.NodeIPAddressId
2020-09-13 19:27:47 +08:00
}
return 0
}
func (x *UpdateNodeIPAddressNodeIdRequest) GetNodeId() int64 {
if x != nil {
return x.NodeId
}
return 0
}
// 禁用单个IP地址
type DisableNodeIPAddressRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-08-31 17:24:41 +08:00
NodeIPAddressId int64 `protobuf:"varint,1,opt,name=nodeIPAddressId,proto3" json:"nodeIPAddressId,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *DisableNodeIPAddressRequest) Reset() {
*x = DisableNodeIPAddressRequest{}
if protoimpl.UnsafeEnabled {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[4]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DisableNodeIPAddressRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DisableNodeIPAddressRequest) ProtoMessage() {}
func (x *DisableNodeIPAddressRequest) ProtoReflect() protoreflect.Message {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[4]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DisableNodeIPAddressRequest.ProtoReflect.Descriptor instead.
func (*DisableNodeIPAddressRequest) Descriptor() ([]byte, []int) {
2020-09-17 10:15:55 +08:00
return file_service_node_ip_address_proto_rawDescGZIP(), []int{4}
2020-09-13 19:27:47 +08:00
}
2021-08-31 17:24:41 +08:00
func (x *DisableNodeIPAddressRequest) GetNodeIPAddressId() int64 {
2020-09-13 19:27:47 +08:00
if x != nil {
2021-08-31 17:24:41 +08:00
return x.NodeIPAddressId
2020-09-13 19:27:47 +08:00
}
return 0
}
type DisableNodeIPAddressResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *DisableNodeIPAddressResponse) Reset() {
*x = DisableNodeIPAddressResponse{}
if protoimpl.UnsafeEnabled {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[5]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DisableNodeIPAddressResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DisableNodeIPAddressResponse) ProtoMessage() {}
func (x *DisableNodeIPAddressResponse) ProtoReflect() protoreflect.Message {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[5]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DisableNodeIPAddressResponse.ProtoReflect.Descriptor instead.
func (*DisableNodeIPAddressResponse) Descriptor() ([]byte, []int) {
2020-09-17 10:15:55 +08:00
return file_service_node_ip_address_proto_rawDescGZIP(), []int{5}
2020-09-13 19:27:47 +08:00
}
// 禁用节点的所有IP地址
type DisableAllIPAddressesWithNodeIdRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NodeId int64 `protobuf:"varint,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *DisableAllIPAddressesWithNodeIdRequest) Reset() {
*x = DisableAllIPAddressesWithNodeIdRequest{}
if protoimpl.UnsafeEnabled {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[6]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DisableAllIPAddressesWithNodeIdRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DisableAllIPAddressesWithNodeIdRequest) ProtoMessage() {}
func (x *DisableAllIPAddressesWithNodeIdRequest) ProtoReflect() protoreflect.Message {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[6]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DisableAllIPAddressesWithNodeIdRequest.ProtoReflect.Descriptor instead.
func (*DisableAllIPAddressesWithNodeIdRequest) Descriptor() ([]byte, []int) {
2020-09-17 10:15:55 +08:00
return file_service_node_ip_address_proto_rawDescGZIP(), []int{6}
2020-09-13 19:27:47 +08:00
}
func (x *DisableAllIPAddressesWithNodeIdRequest) GetNodeId() int64 {
if x != nil {
return x.NodeId
}
return 0
}
func (x *DisableAllIPAddressesWithNodeIdRequest) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
2020-09-13 19:27:47 +08:00
type DisableAllIPAddressesWithNodeIdResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *DisableAllIPAddressesWithNodeIdResponse) Reset() {
*x = DisableAllIPAddressesWithNodeIdResponse{}
if protoimpl.UnsafeEnabled {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[7]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DisableAllIPAddressesWithNodeIdResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DisableAllIPAddressesWithNodeIdResponse) ProtoMessage() {}
func (x *DisableAllIPAddressesWithNodeIdResponse) ProtoReflect() protoreflect.Message {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[7]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DisableAllIPAddressesWithNodeIdResponse.ProtoReflect.Descriptor instead.
func (*DisableAllIPAddressesWithNodeIdResponse) Descriptor() ([]byte, []int) {
2020-09-17 10:15:55 +08:00
return file_service_node_ip_address_proto_rawDescGZIP(), []int{7}
2020-09-13 19:27:47 +08:00
}
// 查找单个IP地址
type FindEnabledNodeIPAddressRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-08-31 17:24:41 +08:00
NodeIPAddressId int64 `protobuf:"varint,1,opt,name=nodeIPAddressId,proto3" json:"nodeIPAddressId,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *FindEnabledNodeIPAddressRequest) Reset() {
*x = FindEnabledNodeIPAddressRequest{}
if protoimpl.UnsafeEnabled {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[8]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindEnabledNodeIPAddressRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledNodeIPAddressRequest) ProtoMessage() {}
func (x *FindEnabledNodeIPAddressRequest) ProtoReflect() protoreflect.Message {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[8]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindEnabledNodeIPAddressRequest.ProtoReflect.Descriptor instead.
func (*FindEnabledNodeIPAddressRequest) Descriptor() ([]byte, []int) {
2020-09-17 10:15:55 +08:00
return file_service_node_ip_address_proto_rawDescGZIP(), []int{8}
2020-09-13 19:27:47 +08:00
}
2021-08-31 17:24:41 +08:00
func (x *FindEnabledNodeIPAddressRequest) GetNodeIPAddressId() int64 {
2020-09-13 19:27:47 +08:00
if x != nil {
2021-08-31 17:24:41 +08:00
return x.NodeIPAddressId
2020-09-13 19:27:47 +08:00
}
return 0
}
type FindEnabledNodeIPAddressResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-08-31 17:24:41 +08:00
NodeIPAddress *NodeIPAddress `protobuf:"bytes,1,opt,name=nodeIPAddress,proto3" json:"nodeIPAddress,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *FindEnabledNodeIPAddressResponse) Reset() {
*x = FindEnabledNodeIPAddressResponse{}
if protoimpl.UnsafeEnabled {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[9]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindEnabledNodeIPAddressResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledNodeIPAddressResponse) ProtoMessage() {}
func (x *FindEnabledNodeIPAddressResponse) ProtoReflect() protoreflect.Message {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[9]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindEnabledNodeIPAddressResponse.ProtoReflect.Descriptor instead.
func (*FindEnabledNodeIPAddressResponse) Descriptor() ([]byte, []int) {
2020-09-17 10:15:55 +08:00
return file_service_node_ip_address_proto_rawDescGZIP(), []int{9}
2020-09-13 19:27:47 +08:00
}
2021-08-31 17:24:41 +08:00
func (x *FindEnabledNodeIPAddressResponse) GetNodeIPAddress() *NodeIPAddress {
2020-09-13 19:27:47 +08:00
if x != nil {
2021-08-31 17:24:41 +08:00
return x.NodeIPAddress
2020-09-13 19:27:47 +08:00
}
return nil
}
// 查找节点的所有地址
type FindAllEnabledIPAddressesWithNodeIdRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NodeId int64 `protobuf:"varint,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *FindAllEnabledIPAddressesWithNodeIdRequest) Reset() {
*x = FindAllEnabledIPAddressesWithNodeIdRequest{}
if protoimpl.UnsafeEnabled {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[10]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllEnabledIPAddressesWithNodeIdRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledIPAddressesWithNodeIdRequest) ProtoMessage() {}
func (x *FindAllEnabledIPAddressesWithNodeIdRequest) ProtoReflect() protoreflect.Message {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[10]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledIPAddressesWithNodeIdRequest.ProtoReflect.Descriptor instead.
func (*FindAllEnabledIPAddressesWithNodeIdRequest) Descriptor() ([]byte, []int) {
2020-09-17 10:15:55 +08:00
return file_service_node_ip_address_proto_rawDescGZIP(), []int{10}
2020-09-13 19:27:47 +08:00
}
func (x *FindAllEnabledIPAddressesWithNodeIdRequest) GetNodeId() int64 {
if x != nil {
return x.NodeId
}
return 0
}
func (x *FindAllEnabledIPAddressesWithNodeIdRequest) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
2020-09-13 19:27:47 +08:00
type FindAllEnabledIPAddressesWithNodeIdResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Addresses []*NodeIPAddress `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
}
func (x *FindAllEnabledIPAddressesWithNodeIdResponse) Reset() {
*x = FindAllEnabledIPAddressesWithNodeIdResponse{}
if protoimpl.UnsafeEnabled {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[11]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllEnabledIPAddressesWithNodeIdResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledIPAddressesWithNodeIdResponse) ProtoMessage() {}
func (x *FindAllEnabledIPAddressesWithNodeIdResponse) ProtoReflect() protoreflect.Message {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_ip_address_proto_msgTypes[11]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledIPAddressesWithNodeIdResponse.ProtoReflect.Descriptor instead.
func (*FindAllEnabledIPAddressesWithNodeIdResponse) Descriptor() ([]byte, []int) {
2020-09-17 10:15:55 +08:00
return file_service_node_ip_address_proto_rawDescGZIP(), []int{11}
2020-09-13 19:27:47 +08:00
}
func (x *FindAllEnabledIPAddressesWithNodeIdResponse) GetAddresses() []*NodeIPAddress {
if x != nil {
return x.Addresses
}
return nil
}
2021-08-31 17:24:41 +08:00
// 计算IP地址数量
type CountAllEnabledIPAddressesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NodeClusterId int64 `protobuf:"varint,1,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"`
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
UpState int32 `protobuf:"varint,3,opt,name=upState,proto3" json:"upState,omitempty"`
Keyword string `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"`
}
func (x *CountAllEnabledIPAddressesRequest) Reset() {
*x = CountAllEnabledIPAddressesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CountAllEnabledIPAddressesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CountAllEnabledIPAddressesRequest) ProtoMessage() {}
func (x *CountAllEnabledIPAddressesRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CountAllEnabledIPAddressesRequest.ProtoReflect.Descriptor instead.
func (*CountAllEnabledIPAddressesRequest) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{12}
}
func (x *CountAllEnabledIPAddressesRequest) GetNodeClusterId() int64 {
if x != nil {
return x.NodeClusterId
}
return 0
}
func (x *CountAllEnabledIPAddressesRequest) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
func (x *CountAllEnabledIPAddressesRequest) GetUpState() int32 {
if x != nil {
return x.UpState
}
return 0
}
func (x *CountAllEnabledIPAddressesRequest) GetKeyword() string {
if x != nil {
return x.Keyword
}
return ""
}
// 列出单页IP地址
type ListEnabledIPAddressesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NodeClusterId int64 `protobuf:"varint,1,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"`
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
UpState int32 `protobuf:"varint,3,opt,name=upState,proto3" json:"upState,omitempty"`
Keyword string `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"`
Offset int64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
}
func (x *ListEnabledIPAddressesRequest) Reset() {
*x = ListEnabledIPAddressesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListEnabledIPAddressesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListEnabledIPAddressesRequest) ProtoMessage() {}
func (x *ListEnabledIPAddressesRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListEnabledIPAddressesRequest.ProtoReflect.Descriptor instead.
func (*ListEnabledIPAddressesRequest) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{13}
}
func (x *ListEnabledIPAddressesRequest) GetNodeClusterId() int64 {
if x != nil {
return x.NodeClusterId
}
return 0
}
func (x *ListEnabledIPAddressesRequest) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
func (x *ListEnabledIPAddressesRequest) GetUpState() int32 {
if x != nil {
return x.UpState
}
return 0
}
func (x *ListEnabledIPAddressesRequest) GetKeyword() string {
if x != nil {
return x.Keyword
}
return ""
}
func (x *ListEnabledIPAddressesRequest) GetOffset() int64 {
if x != nil {
return x.Offset
}
return 0
}
func (x *ListEnabledIPAddressesRequest) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
type ListEnabledIPAddressesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NodeIPAddresses []*NodeIPAddress `protobuf:"bytes,1,rep,name=nodeIPAddresses,proto3" json:"nodeIPAddresses,omitempty"`
}
func (x *ListEnabledIPAddressesResponse) Reset() {
*x = ListEnabledIPAddressesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListEnabledIPAddressesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListEnabledIPAddressesResponse) ProtoMessage() {}
func (x *ListEnabledIPAddressesResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_proto_msgTypes[14]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListEnabledIPAddressesResponse.ProtoReflect.Descriptor instead.
func (*ListEnabledIPAddressesResponse) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{14}
}
func (x *ListEnabledIPAddressesResponse) GetNodeIPAddresses() []*NodeIPAddress {
if x != nil {
return x.NodeIPAddresses
}
return nil
}
2020-09-13 19:27:47 +08:00
var File_service_node_ip_address_proto protoreflect.FileDescriptor
var file_service_node_ip_address_proto_rawDesc = []byte{
0x0a, 0x1d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69,
0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x02, 0x70, 0x62, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65,
0x6c, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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,
2021-08-18 17:09:34 +08:00
0x74, 0x6f, 0x22, 0xb2, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64,
0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x12, 0x0a,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
0x70, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x61, 0x6e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x05,
2021-08-18 17:09:34 +08:00
0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x61, 0x6e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12,
0x26, 0x0a, 0x0e, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x4a, 0x53, 0x4f,
0x4e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f,
2021-08-31 17:24:41 +08:00
0x6c, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x47, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74,
2021-08-18 17:09:34 +08:00
0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65,
2021-08-31 17:24:41 +08:00
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50,
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64,
0x22, 0xc4, 0x01, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x28, 0x0a, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50,
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a,
0x02, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x1c, 0x0a,
0x09, 0x63, 0x61, 0x6e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08,
0x52, 0x09, 0x63, 0x61, 0x6e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x69,
0x73, 0x4f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12,
0x26, 0x0a, 0x0e, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x4a, 0x53, 0x4f,
0x4e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f,
0x6c, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x64, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4e, 0x6f,
0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x6e,
0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x47, 0x0a,
0x1b, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f,
0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x22, 0x1e, 0x0a, 0x1c, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c,
0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x0a, 0x26, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c,
0x65, 0x41, 0x6c, 0x6c, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57,
0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x29, 0x0a, 0x27,
0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x6c, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52,
2021-08-31 17:24:41 +08:00
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72,
2021-08-31 17:24:41 +08:00
0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x6f,
0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65,
0x73, 0x73, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65,
0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65,
2021-08-31 17:24:41 +08:00
0x73, 0x73, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x22, 0x58, 0x0a, 0x2a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69,
0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x5e, 0x0a, 0x2b, 0x46,
0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41,
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65,
0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x61, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e,
0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x22, 0x91, 0x01, 0x0a, 0x21,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c,
0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x75,
0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x75, 0x70,
0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64,
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x22,
0xb9, 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c,
0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x75,
0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x75, 0x70,
0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64,
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12,
0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18,
0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x5d, 0x0a, 0x1e, 0x4c,
0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a,
0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65,
0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x32, 0x8b, 0x07, 0x0a, 0x14, 0x4e,
0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64,
0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x13, 0x75,
0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65,
0x73, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f,
0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65,
2021-08-31 17:24:41 +08:00
0x73, 0x73, 0x12, 0x51, 0x0a, 0x19, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65,
0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12,
0x24, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75,
0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x59, 0x0a, 0x14, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65,
0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x2e,
0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50,
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20,
0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
2021-08-31 17:24:41 +08:00
0x12, 0x7a, 0x0a, 0x1f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x6c, 0x49, 0x50,
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64,
0x65, 0x49, 0x64, 0x12, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65,
0x41, 0x6c, 0x6c, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69,
0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x2b, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x6c, 0x49,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f,
0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x18,
0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41,
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f,
0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x23, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65,
0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x2e, 0x2e, 0x70, 0x62,
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f,
0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x70, 0x62,
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f,
0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x1a,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 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, 0x5f, 0x0a, 0x16, 0x6c, 0x69, 0x73, 0x74, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65,
0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
2020-09-13 19:27:47 +08:00
}
var (
file_service_node_ip_address_proto_rawDescOnce sync.Once
file_service_node_ip_address_proto_rawDescData = file_service_node_ip_address_proto_rawDesc
)
func file_service_node_ip_address_proto_rawDescGZIP() []byte {
file_service_node_ip_address_proto_rawDescOnce.Do(func() {
file_service_node_ip_address_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_node_ip_address_proto_rawDescData)
})
return file_service_node_ip_address_proto_rawDescData
}
2021-08-31 17:24:41 +08:00
var file_service_node_ip_address_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
2020-09-13 19:27:47 +08:00
var file_service_node_ip_address_proto_goTypes = []interface{}{
(*CreateNodeIPAddressRequest)(nil), // 0: pb.CreateNodeIPAddressRequest
(*CreateNodeIPAddressResponse)(nil), // 1: pb.CreateNodeIPAddressResponse
(*UpdateNodeIPAddressRequest)(nil), // 2: pb.UpdateNodeIPAddressRequest
2020-09-17 10:15:55 +08:00
(*UpdateNodeIPAddressNodeIdRequest)(nil), // 3: pb.UpdateNodeIPAddressNodeIdRequest
(*DisableNodeIPAddressRequest)(nil), // 4: pb.DisableNodeIPAddressRequest
(*DisableNodeIPAddressResponse)(nil), // 5: pb.DisableNodeIPAddressResponse
(*DisableAllIPAddressesWithNodeIdRequest)(nil), // 6: pb.DisableAllIPAddressesWithNodeIdRequest
(*DisableAllIPAddressesWithNodeIdResponse)(nil), // 7: pb.DisableAllIPAddressesWithNodeIdResponse
(*FindEnabledNodeIPAddressRequest)(nil), // 8: pb.FindEnabledNodeIPAddressRequest
(*FindEnabledNodeIPAddressResponse)(nil), // 9: pb.FindEnabledNodeIPAddressResponse
(*FindAllEnabledIPAddressesWithNodeIdRequest)(nil), // 10: pb.FindAllEnabledIPAddressesWithNodeIdRequest
(*FindAllEnabledIPAddressesWithNodeIdResponse)(nil), // 11: pb.FindAllEnabledIPAddressesWithNodeIdResponse
2021-08-31 17:24:41 +08:00
(*CountAllEnabledIPAddressesRequest)(nil), // 12: pb.CountAllEnabledIPAddressesRequest
(*ListEnabledIPAddressesRequest)(nil), // 13: pb.ListEnabledIPAddressesRequest
(*ListEnabledIPAddressesResponse)(nil), // 14: pb.ListEnabledIPAddressesResponse
(*NodeIPAddress)(nil), // 15: pb.NodeIPAddress
(*RPCSuccess)(nil), // 16: pb.RPCSuccess
(*RPCCountResponse)(nil), // 17: pb.RPCCountResponse
2020-09-13 19:27:47 +08:00
}
var file_service_node_ip_address_proto_depIdxs = []int32{
2021-08-31 17:24:41 +08:00
15, // 0: pb.FindEnabledNodeIPAddressResponse.nodeIPAddress:type_name -> pb.NodeIPAddress
15, // 1: pb.FindAllEnabledIPAddressesWithNodeIdResponse.addresses:type_name -> pb.NodeIPAddress
15, // 2: pb.ListEnabledIPAddressesResponse.nodeIPAddresses:type_name -> pb.NodeIPAddress
0, // 3: pb.NodeIPAddressService.createNodeIPAddress:input_type -> pb.CreateNodeIPAddressRequest
2, // 4: pb.NodeIPAddressService.updateNodeIPAddress:input_type -> pb.UpdateNodeIPAddressRequest
3, // 5: pb.NodeIPAddressService.updateNodeIPAddressNodeId:input_type -> pb.UpdateNodeIPAddressNodeIdRequest
4, // 6: pb.NodeIPAddressService.disableNodeIPAddress:input_type -> pb.DisableNodeIPAddressRequest
6, // 7: pb.NodeIPAddressService.disableAllIPAddressesWithNodeId:input_type -> pb.DisableAllIPAddressesWithNodeIdRequest
8, // 8: pb.NodeIPAddressService.findEnabledNodeIPAddress:input_type -> pb.FindEnabledNodeIPAddressRequest
10, // 9: pb.NodeIPAddressService.findAllEnabledIPAddressesWithNodeId:input_type -> pb.FindAllEnabledIPAddressesWithNodeIdRequest
12, // 10: pb.NodeIPAddressService.countAllEnabledIPAddresses:input_type -> pb.CountAllEnabledIPAddressesRequest
13, // 11: pb.NodeIPAddressService.listEnabledIPAddresses:input_type -> pb.ListEnabledIPAddressesRequest
1, // 12: pb.NodeIPAddressService.createNodeIPAddress:output_type -> pb.CreateNodeIPAddressResponse
16, // 13: pb.NodeIPAddressService.updateNodeIPAddress:output_type -> pb.RPCSuccess
16, // 14: pb.NodeIPAddressService.updateNodeIPAddressNodeId:output_type -> pb.RPCSuccess
5, // 15: pb.NodeIPAddressService.disableNodeIPAddress:output_type -> pb.DisableNodeIPAddressResponse
7, // 16: pb.NodeIPAddressService.disableAllIPAddressesWithNodeId:output_type -> pb.DisableAllIPAddressesWithNodeIdResponse
9, // 17: pb.NodeIPAddressService.findEnabledNodeIPAddress:output_type -> pb.FindEnabledNodeIPAddressResponse
11, // 18: pb.NodeIPAddressService.findAllEnabledIPAddressesWithNodeId:output_type -> pb.FindAllEnabledIPAddressesWithNodeIdResponse
17, // 19: pb.NodeIPAddressService.countAllEnabledIPAddresses:output_type -> pb.RPCCountResponse
14, // 20: pb.NodeIPAddressService.listEnabledIPAddresses:output_type -> pb.ListEnabledIPAddressesResponse
12, // [12:21] is the sub-list for method output_type
3, // [3:12] 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
2020-09-13 19:27:47 +08:00
}
func init() { file_service_node_ip_address_proto_init() }
func file_service_node_ip_address_proto_init() {
if File_service_node_ip_address_proto != nil {
return
}
file_models_model_node_ip_address_proto_init()
file_models_rpc_messages_proto_init()
2020-09-13 19:27:47 +08:00
if !protoimpl.UnsafeEnabled {
file_service_node_ip_address_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateNodeIPAddressRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_node_ip_address_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateNodeIPAddressResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_node_ip_address_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateNodeIPAddressRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_node_ip_address_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateNodeIPAddressNodeIdRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-09-17 10:15:55 +08:00
file_service_node_ip_address_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
2020-09-13 19:27:47 +08:00
switch v := v.(*DisableNodeIPAddressRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-09-17 10:15:55 +08:00
file_service_node_ip_address_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
2020-09-13 19:27:47 +08:00
switch v := v.(*DisableNodeIPAddressResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-09-17 10:15:55 +08:00
file_service_node_ip_address_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
2020-09-13 19:27:47 +08:00
switch v := v.(*DisableAllIPAddressesWithNodeIdRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-09-17 10:15:55 +08:00
file_service_node_ip_address_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
2020-09-13 19:27:47 +08:00
switch v := v.(*DisableAllIPAddressesWithNodeIdResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-09-17 10:15:55 +08:00
file_service_node_ip_address_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
2020-09-13 19:27:47 +08:00
switch v := v.(*FindEnabledNodeIPAddressRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-09-17 10:15:55 +08:00
file_service_node_ip_address_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
2020-09-13 19:27:47 +08:00
switch v := v.(*FindEnabledNodeIPAddressResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-09-17 10:15:55 +08:00
file_service_node_ip_address_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
2020-09-13 19:27:47 +08:00
switch v := v.(*FindAllEnabledIPAddressesWithNodeIdRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-09-17 10:15:55 +08:00
file_service_node_ip_address_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
2020-09-13 19:27:47 +08:00
switch v := v.(*FindAllEnabledIPAddressesWithNodeIdResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2021-08-31 17:24:41 +08:00
file_service_node_ip_address_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CountAllEnabledIPAddressesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_node_ip_address_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListEnabledIPAddressesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_node_ip_address_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListEnabledIPAddressesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-09-13 19:27:47 +08:00
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_node_ip_address_proto_rawDesc,
NumEnums: 0,
2021-08-31 17:24:41 +08:00
NumMessages: 15,
2020-09-13 19:27:47 +08:00
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_service_node_ip_address_proto_goTypes,
DependencyIndexes: file_service_node_ip_address_proto_depIdxs,
MessageInfos: file_service_node_ip_address_proto_msgTypes,
}.Build()
File_service_node_ip_address_proto = out.File
file_service_node_ip_address_proto_rawDesc = nil
file_service_node_ip_address_proto_goTypes = nil
file_service_node_ip_address_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
// NodeIPAddressServiceClient is the client API for NodeIPAddressService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type NodeIPAddressServiceClient interface {
// 创建IP地址
CreateNodeIPAddress(ctx context.Context, in *CreateNodeIPAddressRequest, opts ...grpc.CallOption) (*CreateNodeIPAddressResponse, error)
// 修改IP地址
UpdateNodeIPAddress(ctx context.Context, in *UpdateNodeIPAddressRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
2020-09-13 19:27:47 +08:00
// 修改IP地址所属节点
UpdateNodeIPAddressNodeId(ctx context.Context, in *UpdateNodeIPAddressNodeIdRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
2020-09-13 19:27:47 +08:00
// 禁用单个IP地址
DisableNodeIPAddress(ctx context.Context, in *DisableNodeIPAddressRequest, opts ...grpc.CallOption) (*DisableNodeIPAddressResponse, error)
// 禁用节点的所有IP地址
DisableAllIPAddressesWithNodeId(ctx context.Context, in *DisableAllIPAddressesWithNodeIdRequest, opts ...grpc.CallOption) (*DisableAllIPAddressesWithNodeIdResponse, error)
// 查找单个IP地址
FindEnabledNodeIPAddress(ctx context.Context, in *FindEnabledNodeIPAddressRequest, opts ...grpc.CallOption) (*FindEnabledNodeIPAddressResponse, error)
// 查找节点的所有地址
FindAllEnabledIPAddressesWithNodeId(ctx context.Context, in *FindAllEnabledIPAddressesWithNodeIdRequest, opts ...grpc.CallOption) (*FindAllEnabledIPAddressesWithNodeIdResponse, error)
2021-08-31 17:24:41 +08:00
// 计算IP地址数量
CountAllEnabledIPAddresses(ctx context.Context, in *CountAllEnabledIPAddressesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
// 列出单页IP地址
ListEnabledIPAddresses(ctx context.Context, in *ListEnabledIPAddressesRequest, opts ...grpc.CallOption) (*ListEnabledIPAddressesResponse, error)
2020-09-13 19:27:47 +08:00
}
type nodeIPAddressServiceClient struct {
cc grpc.ClientConnInterface
}
func NewNodeIPAddressServiceClient(cc grpc.ClientConnInterface) NodeIPAddressServiceClient {
return &nodeIPAddressServiceClient{cc}
}
func (c *nodeIPAddressServiceClient) CreateNodeIPAddress(ctx context.Context, in *CreateNodeIPAddressRequest, opts ...grpc.CallOption) (*CreateNodeIPAddressResponse, error) {
out := new(CreateNodeIPAddressResponse)
err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/createNodeIPAddress", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeIPAddressServiceClient) UpdateNodeIPAddress(ctx context.Context, in *UpdateNodeIPAddressRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
2020-09-13 19:27:47 +08:00
err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/updateNodeIPAddress", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeIPAddressServiceClient) UpdateNodeIPAddressNodeId(ctx context.Context, in *UpdateNodeIPAddressNodeIdRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
2020-09-13 19:27:47 +08:00
err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/updateNodeIPAddressNodeId", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeIPAddressServiceClient) DisableNodeIPAddress(ctx context.Context, in *DisableNodeIPAddressRequest, opts ...grpc.CallOption) (*DisableNodeIPAddressResponse, error) {
out := new(DisableNodeIPAddressResponse)
err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/disableNodeIPAddress", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeIPAddressServiceClient) DisableAllIPAddressesWithNodeId(ctx context.Context, in *DisableAllIPAddressesWithNodeIdRequest, opts ...grpc.CallOption) (*DisableAllIPAddressesWithNodeIdResponse, error) {
out := new(DisableAllIPAddressesWithNodeIdResponse)
err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/disableAllIPAddressesWithNodeId", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeIPAddressServiceClient) FindEnabledNodeIPAddress(ctx context.Context, in *FindEnabledNodeIPAddressRequest, opts ...grpc.CallOption) (*FindEnabledNodeIPAddressResponse, error) {
out := new(FindEnabledNodeIPAddressResponse)
err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/findEnabledNodeIPAddress", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeIPAddressServiceClient) FindAllEnabledIPAddressesWithNodeId(ctx context.Context, in *FindAllEnabledIPAddressesWithNodeIdRequest, opts ...grpc.CallOption) (*FindAllEnabledIPAddressesWithNodeIdResponse, error) {
out := new(FindAllEnabledIPAddressesWithNodeIdResponse)
err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/findAllEnabledIPAddressesWithNodeId", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
2021-08-31 17:24:41 +08:00
func (c *nodeIPAddressServiceClient) CountAllEnabledIPAddresses(ctx context.Context, in *CountAllEnabledIPAddressesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
out := new(RPCCountResponse)
err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/countAllEnabledIPAddresses", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeIPAddressServiceClient) ListEnabledIPAddresses(ctx context.Context, in *ListEnabledIPAddressesRequest, opts ...grpc.CallOption) (*ListEnabledIPAddressesResponse, error) {
out := new(ListEnabledIPAddressesResponse)
err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/listEnabledIPAddresses", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
2020-09-13 19:27:47 +08:00
// NodeIPAddressServiceServer is the server API for NodeIPAddressService service.
type NodeIPAddressServiceServer interface {
// 创建IP地址
CreateNodeIPAddress(context.Context, *CreateNodeIPAddressRequest) (*CreateNodeIPAddressResponse, error)
// 修改IP地址
UpdateNodeIPAddress(context.Context, *UpdateNodeIPAddressRequest) (*RPCSuccess, error)
2020-09-13 19:27:47 +08:00
// 修改IP地址所属节点
UpdateNodeIPAddressNodeId(context.Context, *UpdateNodeIPAddressNodeIdRequest) (*RPCSuccess, error)
2020-09-13 19:27:47 +08:00
// 禁用单个IP地址
DisableNodeIPAddress(context.Context, *DisableNodeIPAddressRequest) (*DisableNodeIPAddressResponse, error)
// 禁用节点的所有IP地址
DisableAllIPAddressesWithNodeId(context.Context, *DisableAllIPAddressesWithNodeIdRequest) (*DisableAllIPAddressesWithNodeIdResponse, error)
// 查找单个IP地址
FindEnabledNodeIPAddress(context.Context, *FindEnabledNodeIPAddressRequest) (*FindEnabledNodeIPAddressResponse, error)
// 查找节点的所有地址
FindAllEnabledIPAddressesWithNodeId(context.Context, *FindAllEnabledIPAddressesWithNodeIdRequest) (*FindAllEnabledIPAddressesWithNodeIdResponse, error)
2021-08-31 17:24:41 +08:00
// 计算IP地址数量
CountAllEnabledIPAddresses(context.Context, *CountAllEnabledIPAddressesRequest) (*RPCCountResponse, error)
// 列出单页IP地址
ListEnabledIPAddresses(context.Context, *ListEnabledIPAddressesRequest) (*ListEnabledIPAddressesResponse, error)
2020-09-13 19:27:47 +08:00
}
// UnimplementedNodeIPAddressServiceServer can be embedded to have forward compatible implementations.
type UnimplementedNodeIPAddressServiceServer struct {
}
func (*UnimplementedNodeIPAddressServiceServer) CreateNodeIPAddress(context.Context, *CreateNodeIPAddressRequest) (*CreateNodeIPAddressResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateNodeIPAddress not implemented")
}
func (*UnimplementedNodeIPAddressServiceServer) UpdateNodeIPAddress(context.Context, *UpdateNodeIPAddressRequest) (*RPCSuccess, error) {
2020-09-13 19:27:47 +08:00
return nil, status.Errorf(codes.Unimplemented, "method UpdateNodeIPAddress not implemented")
}
func (*UnimplementedNodeIPAddressServiceServer) UpdateNodeIPAddressNodeId(context.Context, *UpdateNodeIPAddressNodeIdRequest) (*RPCSuccess, error) {
2020-09-13 19:27:47 +08:00
return nil, status.Errorf(codes.Unimplemented, "method UpdateNodeIPAddressNodeId not implemented")
}
func (*UnimplementedNodeIPAddressServiceServer) DisableNodeIPAddress(context.Context, *DisableNodeIPAddressRequest) (*DisableNodeIPAddressResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DisableNodeIPAddress not implemented")
}
func (*UnimplementedNodeIPAddressServiceServer) DisableAllIPAddressesWithNodeId(context.Context, *DisableAllIPAddressesWithNodeIdRequest) (*DisableAllIPAddressesWithNodeIdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DisableAllIPAddressesWithNodeId not implemented")
}
func (*UnimplementedNodeIPAddressServiceServer) FindEnabledNodeIPAddress(context.Context, *FindEnabledNodeIPAddressRequest) (*FindEnabledNodeIPAddressResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNodeIPAddress not implemented")
}
func (*UnimplementedNodeIPAddressServiceServer) FindAllEnabledIPAddressesWithNodeId(context.Context, *FindAllEnabledIPAddressesWithNodeIdRequest) (*FindAllEnabledIPAddressesWithNodeIdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledIPAddressesWithNodeId not implemented")
}
2021-08-31 17:24:41 +08:00
func (*UnimplementedNodeIPAddressServiceServer) CountAllEnabledIPAddresses(context.Context, *CountAllEnabledIPAddressesRequest) (*RPCCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledIPAddresses not implemented")
}
func (*UnimplementedNodeIPAddressServiceServer) ListEnabledIPAddresses(context.Context, *ListEnabledIPAddressesRequest) (*ListEnabledIPAddressesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListEnabledIPAddresses not implemented")
}
2020-09-13 19:27:47 +08:00
func RegisterNodeIPAddressServiceServer(s *grpc.Server, srv NodeIPAddressServiceServer) {
s.RegisterService(&_NodeIPAddressService_serviceDesc, srv)
}
func _NodeIPAddressService_CreateNodeIPAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateNodeIPAddressRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeIPAddressServiceServer).CreateNodeIPAddress(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeIPAddressService/CreateNodeIPAddress",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeIPAddressServiceServer).CreateNodeIPAddress(ctx, req.(*CreateNodeIPAddressRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeIPAddressService_UpdateNodeIPAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateNodeIPAddressRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeIPAddressServiceServer).UpdateNodeIPAddress(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeIPAddressService/UpdateNodeIPAddress",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeIPAddressServiceServer).UpdateNodeIPAddress(ctx, req.(*UpdateNodeIPAddressRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeIPAddressService_UpdateNodeIPAddressNodeId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateNodeIPAddressNodeIdRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeIPAddressServiceServer).UpdateNodeIPAddressNodeId(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeIPAddressService/UpdateNodeIPAddressNodeId",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeIPAddressServiceServer).UpdateNodeIPAddressNodeId(ctx, req.(*UpdateNodeIPAddressNodeIdRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeIPAddressService_DisableNodeIPAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DisableNodeIPAddressRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeIPAddressServiceServer).DisableNodeIPAddress(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeIPAddressService/DisableNodeIPAddress",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeIPAddressServiceServer).DisableNodeIPAddress(ctx, req.(*DisableNodeIPAddressRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeIPAddressService_DisableAllIPAddressesWithNodeId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DisableAllIPAddressesWithNodeIdRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeIPAddressServiceServer).DisableAllIPAddressesWithNodeId(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeIPAddressService/DisableAllIPAddressesWithNodeId",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeIPAddressServiceServer).DisableAllIPAddressesWithNodeId(ctx, req.(*DisableAllIPAddressesWithNodeIdRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeIPAddressService_FindEnabledNodeIPAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindEnabledNodeIPAddressRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeIPAddressServiceServer).FindEnabledNodeIPAddress(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeIPAddressService/FindEnabledNodeIPAddress",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeIPAddressServiceServer).FindEnabledNodeIPAddress(ctx, req.(*FindEnabledNodeIPAddressRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeIPAddressService_FindAllEnabledIPAddressesWithNodeId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllEnabledIPAddressesWithNodeIdRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeIPAddressServiceServer).FindAllEnabledIPAddressesWithNodeId(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeIPAddressService/FindAllEnabledIPAddressesWithNodeId",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeIPAddressServiceServer).FindAllEnabledIPAddressesWithNodeId(ctx, req.(*FindAllEnabledIPAddressesWithNodeIdRequest))
}
return interceptor(ctx, in, info, handler)
}
2021-08-31 17:24:41 +08:00
func _NodeIPAddressService_CountAllEnabledIPAddresses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CountAllEnabledIPAddressesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeIPAddressServiceServer).CountAllEnabledIPAddresses(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeIPAddressService/CountAllEnabledIPAddresses",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeIPAddressServiceServer).CountAllEnabledIPAddresses(ctx, req.(*CountAllEnabledIPAddressesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeIPAddressService_ListEnabledIPAddresses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListEnabledIPAddressesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeIPAddressServiceServer).ListEnabledIPAddresses(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeIPAddressService/ListEnabledIPAddresses",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeIPAddressServiceServer).ListEnabledIPAddresses(ctx, req.(*ListEnabledIPAddressesRequest))
}
return interceptor(ctx, in, info, handler)
}
2020-09-13 19:27:47 +08:00
var _NodeIPAddressService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.NodeIPAddressService",
HandlerType: (*NodeIPAddressServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "createNodeIPAddress",
Handler: _NodeIPAddressService_CreateNodeIPAddress_Handler,
},
{
MethodName: "updateNodeIPAddress",
Handler: _NodeIPAddressService_UpdateNodeIPAddress_Handler,
},
{
MethodName: "updateNodeIPAddressNodeId",
Handler: _NodeIPAddressService_UpdateNodeIPAddressNodeId_Handler,
},
{
MethodName: "disableNodeIPAddress",
Handler: _NodeIPAddressService_DisableNodeIPAddress_Handler,
},
{
MethodName: "disableAllIPAddressesWithNodeId",
Handler: _NodeIPAddressService_DisableAllIPAddressesWithNodeId_Handler,
},
{
MethodName: "findEnabledNodeIPAddress",
Handler: _NodeIPAddressService_FindEnabledNodeIPAddress_Handler,
},
{
MethodName: "findAllEnabledIPAddressesWithNodeId",
Handler: _NodeIPAddressService_FindAllEnabledIPAddressesWithNodeId_Handler,
},
2021-08-31 17:24:41 +08:00
{
MethodName: "countAllEnabledIPAddresses",
Handler: _NodeIPAddressService_CountAllEnabledIPAddresses_Handler,
},
{
MethodName: "listEnabledIPAddresses",
Handler: _NodeIPAddressService_ListEnabledIPAddresses_Handler,
},
2020-09-13 19:27:47 +08:00
},
Streams: []grpc.StreamDesc{},
Metadata: "service_node_ip_address.proto",
}