Skip to content
Snippets Groups Projects
Commit 0327ada6 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

pnd ppart of nbi

parent 1386b857
No related branches found
No related tags found
No related merge requests found
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.15.7
// source: proto/gosdn/gosdn.proto
package gosdn
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
pnd "proto/gosdn/pnd"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type GetRequestGetType int32
const (
GetRequest_PND GetRequestGetType = 0
GetRequest_PNDS GetRequestGetType = 1
)
// Enum value maps for GetRequestGetType.
var (
GetRequestGetType_name = map[int32]string{
0: "PND",
1: "PNDS",
}
GetRequestGetType_value = map[string]int32{
"PND": 0,
"PNDS": 1,
}
)
func (x GetRequestGetType) Enum() *GetRequestGetType {
p := new(GetRequestGetType)
*p = x
return p
}
func (x GetRequestGetType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (GetRequestGetType) Descriptor() protoreflect.EnumDescriptor {
return file_proto_gosdn_gosdn_proto_enumTypes[0].Descriptor()
}
func (GetRequestGetType) Type() protoreflect.EnumType {
return &file_proto_gosdn_gosdn_proto_enumTypes[0]
}
func (x GetRequestGetType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use GetRequestGetType.Descriptor instead.
func (GetRequestGetType) EnumDescriptor() ([]byte, []int) {
return file_proto_gosdn_gosdn_proto_rawDescGZIP(), []int{0, 0}
}
type SetResponseStatus int32
const (
SetResponse_OK SetResponseStatus = 0
SetResponse_ERROR SetResponseStatus = 1
)
// Enum value maps for SetResponseStatus.
var (
SetResponseStatus_name = map[int32]string{
0: "OK",
1: "ERROR",
}
SetResponseStatus_value = map[string]int32{
"OK": 0,
"ERROR": 1,
}
)
func (x SetResponseStatus) Enum() *SetResponseStatus {
p := new(SetResponseStatus)
*p = x
return p
}
func (x SetResponseStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SetResponseStatus) Descriptor() protoreflect.EnumDescriptor {
return file_proto_gosdn_gosdn_proto_enumTypes[1].Descriptor()
}
func (SetResponseStatus) Type() protoreflect.EnumType {
return &file_proto_gosdn_gosdn_proto_enumTypes[1]
}
func (x SetResponseStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SetResponseStatus.Descriptor instead.
func (SetResponseStatus) EnumDescriptor() ([]byte, []int) {
return file_proto_gosdn_gosdn_proto_rawDescGZIP(), []int{3, 0}
}
type GetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch.
Type GetRequestGetType `protobuf:"varint,2,opt,name=type,proto3,enum=gosdn.GetRequestGetType" json:"type,omitempty"`
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *GetRequest) Reset() {
*x = GetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_gosdn_gosdn_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRequest) ProtoMessage() {}
func (x *GetRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_gosdn_gosdn_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 GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) Descriptor() ([]byte, []int) {
return file_proto_gosdn_gosdn_proto_rawDescGZIP(), []int{0}
}
func (x *GetRequest) GetTimestamp() int64 {
if x != nil {
return x.Timestamp
}
return 0
}
func (x *GetRequest) GetType() GetRequestGetType {
if x != nil {
return x.Type
}
return GetRequest_PND
}
func (x *GetRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type GetResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch.
// Types that are assignable to GetOneof:
// *GetResponse_Pnds
// *GetResponse_Pnd
GetOneof isGetResponse_GetOneof `protobuf_oneof:"get_oneof"`
}
func (x *GetResponse) Reset() {
*x = GetResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_gosdn_gosdn_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetResponse) ProtoMessage() {}
func (x *GetResponse) ProtoReflect() protoreflect.Message {
mi := &file_proto_gosdn_gosdn_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 GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) Descriptor() ([]byte, []int) {
return file_proto_gosdn_gosdn_proto_rawDescGZIP(), []int{1}
}
func (x *GetResponse) GetTimestamp() int64 {
if x != nil {
return x.Timestamp
}
return 0
}
func (m *GetResponse) GetGetOneof() isGetResponse_GetOneof {
if m != nil {
return m.GetOneof
}
return nil
}
func (x *GetResponse) GetPnds() *PrincipalNetworkDomains {
if x, ok := x.GetGetOneof().(*GetResponse_Pnds); ok {
return x.Pnds
}
return nil
}
func (x *GetResponse) GetPnd() *pnd.PrincipalNetworkDomain {
if x, ok := x.GetGetOneof().(*GetResponse_Pnd); ok {
return x.Pnd
}
return nil
}
type isGetResponse_GetOneof interface {
isGetResponse_GetOneof()
}
type GetResponse_Pnds struct {
Pnds *PrincipalNetworkDomains `protobuf:"bytes,2,opt,name=pnds,proto3,oneof"`
}
type GetResponse_Pnd struct {
Pnd *pnd.PrincipalNetworkDomain `protobuf:"bytes,3,opt,name=pnd,proto3,oneof"`
}
func (*GetResponse_Pnds) isGetResponse_GetOneof() {}
func (*GetResponse_Pnd) isGetResponse_GetOneof() {}
type SetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch.
}
func (x *SetRequest) Reset() {
*x = SetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_gosdn_gosdn_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetRequest) ProtoMessage() {}
func (x *SetRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_gosdn_gosdn_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 SetRequest.ProtoReflect.Descriptor instead.
func (*SetRequest) Descriptor() ([]byte, []int) {
return file_proto_gosdn_gosdn_proto_rawDescGZIP(), []int{2}
}
func (x *SetRequest) GetTimestamp() int64 {
if x != nil {
return x.Timestamp
}
return 0
}
type SetResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch.
}
func (x *SetResponse) Reset() {
*x = SetResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_gosdn_gosdn_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetResponse) ProtoMessage() {}
func (x *SetResponse) ProtoReflect() protoreflect.Message {
mi := &file_proto_gosdn_gosdn_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetResponse.ProtoReflect.Descriptor instead.
func (*SetResponse) Descriptor() ([]byte, []int) {
return file_proto_gosdn_gosdn_proto_rawDescGZIP(), []int{3}
}
func (x *SetResponse) GetTimestamp() int64 {
if x != nil {
return x.Timestamp
}
return 0
}
type PrincipalNetworkDomains struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Pnds map[string]*pnd.PrincipalNetworkDomain `protobuf:"bytes,1,rep,name=pnds,proto3" json:"pnds,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *PrincipalNetworkDomains) Reset() {
*x = PrincipalNetworkDomains{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_gosdn_gosdn_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PrincipalNetworkDomains) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PrincipalNetworkDomains) ProtoMessage() {}
func (x *PrincipalNetworkDomains) ProtoReflect() protoreflect.Message {
mi := &file_proto_gosdn_gosdn_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PrincipalNetworkDomains.ProtoReflect.Descriptor instead.
func (*PrincipalNetworkDomains) Descriptor() ([]byte, []int) {
return file_proto_gosdn_gosdn_proto_rawDescGZIP(), []int{4}
}
func (x *PrincipalNetworkDomains) GetPnds() map[string]*pnd.PrincipalNetworkDomain {
if x != nil {
return x.Pnds
}
return nil
}
var File_proto_gosdn_gosdn_proto protoreflect.FileDescriptor
var file_proto_gosdn_gosdn_proto_rawDesc = []byte{
0x0a, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2f, 0x67, 0x6f,
0x73, 0x64, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x67, 0x6f, 0x73, 0x64, 0x6e,
0x1a, 0x19, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2f, 0x70, 0x6e,
0x64, 0x2f, 0x70, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x0a,
0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x47,
0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79,
0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x1d, 0x0a, 0x08, 0x67, 0x65, 0x74, 0x5f,
0x74, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x4e, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a,
0x04, 0x50, 0x4e, 0x44, 0x53, 0x10, 0x01, 0x22, 0xa5, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x34, 0x0a, 0x04, 0x70, 0x6e, 0x64, 0x73, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x50, 0x72, 0x69, 0x6e,
0x63, 0x69, 0x70, 0x61, 0x6c, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x04, 0x70, 0x6e, 0x64, 0x73, 0x12, 0x35, 0x0a, 0x03, 0x70,
0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e,
0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x4e, 0x65,
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x48, 0x00, 0x52, 0x03, 0x70,
0x6e, 0x64, 0x42, 0x0b, 0x0a, 0x09, 0x67, 0x65, 0x74, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x22,
0x2a, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a,
0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x48, 0x0a, 0x0b, 0x53,
0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x1b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74,
0x75, 0x73, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52,
0x52, 0x4f, 0x52, 0x10, 0x01, 0x22, 0xb3, 0x01, 0x0a, 0x17, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69,
0x70, 0x61, 0x6c, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x73, 0x12, 0x3c, 0x0a, 0x04, 0x70, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x28, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61,
0x6c, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x2e,
0x50, 0x6e, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x70, 0x6e, 0x64, 0x73, 0x1a,
0x5a, 0x0a, 0x09, 0x50, 0x6e, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x37,
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e,
0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69,
0x70, 0x61, 0x6c, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0x63, 0x0a, 0x05, 0x67,
0x6f, 0x73, 0x64, 0x6e, 0x12, 0x2c, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x11, 0x2e, 0x67, 0x6f,
0x73, 0x64, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12,
0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x2c, 0x0a, 0x03, 0x53, 0x65, 0x74, 0x12, 0x11, 0x2e, 0x67, 0x6f, 0x73, 0x64,
0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x67,
0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x42, 0x0d, 0x5a, 0x0b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_proto_gosdn_gosdn_proto_rawDescOnce sync.Once
file_proto_gosdn_gosdn_proto_rawDescData = file_proto_gosdn_gosdn_proto_rawDesc
)
func file_proto_gosdn_gosdn_proto_rawDescGZIP() []byte {
file_proto_gosdn_gosdn_proto_rawDescOnce.Do(func() {
file_proto_gosdn_gosdn_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_gosdn_gosdn_proto_rawDescData)
})
return file_proto_gosdn_gosdn_proto_rawDescData
}
var file_proto_gosdn_gosdn_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_proto_gosdn_gosdn_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_proto_gosdn_gosdn_proto_goTypes = []interface{}{
(GetRequestGetType)(0), // 0: gosdn.GetRequest.get_type
(SetResponseStatus)(0), // 1: gosdn.SetResponse.status
(*GetRequest)(nil), // 2: gosdn.GetRequest
(*GetResponse)(nil), // 3: gosdn.GetResponse
(*SetRequest)(nil), // 4: gosdn.SetRequest
(*SetResponse)(nil), // 5: gosdn.SetResponse
(*PrincipalNetworkDomains)(nil), // 6: gosdn.PrincipalNetworkDomains
nil, // 7: gosdn.PrincipalNetworkDomains.PndsEntry
(*pnd.PrincipalNetworkDomain)(nil), // 8: gosdn.pnd.PrincipalNetworkDomain
}
var file_proto_gosdn_gosdn_proto_depIdxs = []int32{
0, // 0: gosdn.GetRequest.type:type_name -> gosdn.GetRequest.get_type
6, // 1: gosdn.GetResponse.pnds:type_name -> gosdn.PrincipalNetworkDomains
8, // 2: gosdn.GetResponse.pnd:type_name -> gosdn.pnd.PrincipalNetworkDomain
7, // 3: gosdn.PrincipalNetworkDomains.pnds:type_name -> gosdn.PrincipalNetworkDomains.PndsEntry
8, // 4: gosdn.PrincipalNetworkDomains.PndsEntry.value:type_name -> gosdn.pnd.PrincipalNetworkDomain
2, // 5: gosdn.gosdn.Get:input_type -> gosdn.GetRequest
4, // 6: gosdn.gosdn.Set:input_type -> gosdn.SetRequest
3, // 7: gosdn.gosdn.Get:output_type -> gosdn.GetResponse
5, // 8: gosdn.gosdn.Set:output_type -> gosdn.SetResponse
7, // [7:9] is the sub-list for method output_type
5, // [5:7] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
}
func init() { file_proto_gosdn_gosdn_proto_init() }
func file_proto_gosdn_gosdn_proto_init() {
if File_proto_gosdn_gosdn_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_proto_gosdn_gosdn_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_proto_gosdn_gosdn_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_proto_gosdn_gosdn_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SetRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_proto_gosdn_gosdn_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SetResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_proto_gosdn_gosdn_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PrincipalNetworkDomains); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_proto_gosdn_gosdn_proto_msgTypes[1].OneofWrappers = []interface{}{
(*GetResponse_Pnds)(nil),
(*GetResponse_Pnd)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_proto_gosdn_gosdn_proto_rawDesc,
NumEnums: 2,
NumMessages: 6,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_proto_gosdn_gosdn_proto_goTypes,
DependencyIndexes: file_proto_gosdn_gosdn_proto_depIdxs,
EnumInfos: file_proto_gosdn_gosdn_proto_enumTypes,
MessageInfos: file_proto_gosdn_gosdn_proto_msgTypes,
}.Build()
File_proto_gosdn_gosdn_proto = out.File
file_proto_gosdn_gosdn_proto_rawDesc = nil
file_proto_gosdn_gosdn_proto_goTypes = nil
file_proto_gosdn_gosdn_proto_depIdxs = nil
}
syntax = "proto3";
package gosdn;
import "proto/gosdn/pnd/pnd.proto";
option go_package = "proto/gosdn";
service gosdn {
rpc Get(GetRequest) returns (GetResponse);
rpc Set(SetRequest) returns (SetResponse);
}
message GetRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
enum get_type {
PND = 0;
PNDS = 1;
}
get_type type = 2;
string id = 3;
}
message GetResponse {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
oneof get_oneof {
PrincipalNetworkDomains pnds = 2;
pnd.PrincipalNetworkDomain pnd = 3;
}
}
message SetRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
}
message SetResponse {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
enum status {
OK = 0;
ERROR = 1;
}
}
message PrincipalNetworkDomains {
map<string, pnd.PrincipalNetworkDomain> pnds = 1;
}
\ No newline at end of file
This diff is collapsed.
syntax = "proto3"; syntax = "proto3";
package gosdn; package gosdn.pnd;
import "google/protobuf/descriptor.proto";
import "github.com/openconfig/gnmi/proto/gnmi/gnmi.proto"; import "github.com/openconfig/gnmi/proto/gnmi/gnmi.proto";
option (pnd_service) = "0.0.1"; option go_package = "proto/gosdn/pnd";
option go_package = "code.fbi.h-da.de/cocsn/api/proto/gosdn";
service pnd { service pnd {
rpc Get(GetRequest) returns (GetResponse); rpc Get(GetRequest) returns (GetResponse);
...@@ -29,7 +29,7 @@ message GetRequest { ...@@ -29,7 +29,7 @@ message GetRequest {
message GetResponse { message GetResponse {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
oneof get_oneof { oneof get_oneof {
PrincipalNetworkingDomain pnd = 2; PrincipalNetworkDomain pnd = 2;
OrchestratedNetworkingDevice ond = 3; OrchestratedNetworkingDevice ond = 3;
OrchestratedNetworkingDevices onds = 4; OrchestratedNetworkingDevices onds = 4;
SouthboundInterface sbi = 5; SouthboundInterface sbi = 5;
...@@ -39,11 +39,7 @@ message GetResponse { ...@@ -39,11 +39,7 @@ message GetResponse {
} }
message SetRequest {} message PrincipalNetworkDomain {
message SetResponse{}
message PrincipalNetworkingDomain {
string id = 1; string id = 1;
string name = 2; string name = 2;
string description = 3; string description = 3;
...@@ -53,42 +49,70 @@ message PrincipalNetworkingDomain { ...@@ -53,42 +49,70 @@ message PrincipalNetworkingDomain {
} }
message SouthboundInterface { message SouthboundInterface {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. string id = 1;
string id = 2; string schema = 2;
string schema = 3;
} }
message OrchestratedNetworkingDevice { message OrchestratedNetworkingDevice {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. string id = 1;
string id = 2; string name = 2;
string name = 3; gnmi.Notification device = 3;
gnmi.Notification device = 4;
} }
message SouthboundInterfaces { message SouthboundInterfaces {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. map<string, SouthboundInterface> sbis = 1;
map<string, SouthboundInterface> sbis = 2;
} }
message OrchestratedNetworkingDevices { message OrchestratedNetworkingDevices {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. map<string, OrchestratedNetworkingDevice> sbis = 1;
map<string, OrchestratedNetworkingDevice> sbis = 2;
} }
message Change { message Change {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. string id = 1;
string id = 2; int64 age = 2;
int64 age = 3; enum State {
enum state {
PENDING = 0; PENDING = 0;
COMMITTED = 1; COMMITTED = 1;
CONFIRMED = 2; CONFIRMED = 2;
} }
State state = 3;
} }
message Changes { message Changes {
map<string, Change> sbis = 1;
}
message SetRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
map<string, Change> sbis = 2; oneof request {
ChangeRequest change = 2;
OrchestratedNetworkingDevice ond = 3;
SouthboundInterface sbi = 4;
}
} }
message SetResponse{
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
enum status {
OK = 0;
ERROR = 1;
}
}
message ChangeRequest {
enum Operation {
CREATE = 0;
COMMIT = 1;
CONFIRM = 2;
}
enum ApiOperation {
UPDATE = 0;
REPLACE = 1;
DELETE = 2;
}
string id = 1;
string path = 2;
string value = 3;
ApiOperation apiOp = 4;
Operation op = 5;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment