diff --git a/proto/gosdn/gosdn.pb.go b/proto/gosdn/gosdn.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..08dd9db2087bee4f7c1b190d55bf9412b3869a42 --- /dev/null +++ b/proto/gosdn/gosdn.pb.go @@ -0,0 +1,600 @@ +// 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 +} diff --git a/proto/gosdn/gosdn.proto b/proto/gosdn/gosdn.proto new file mode 100644 index 0000000000000000000000000000000000000000..c1c3a0aa3bbddc2fe455fa0644d74dae3d33f4ce --- /dev/null +++ b/proto/gosdn/gosdn.proto @@ -0,0 +1,43 @@ +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 diff --git a/proto/gosdn/pnd/pnd.pb.go b/proto/gosdn/pnd/pnd.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..ea2fd126857afc787621e468b0752f15e9959731 --- /dev/null +++ b/proto/gosdn/pnd/pnd.pb.go @@ -0,0 +1,1569 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0-devel +// protoc v3.15.7 +// source: proto/gosdn/pnd/pnd.proto + +package pnd + +import ( + proto "github.com/golang/protobuf/proto" + gnmi "github.com/openconfig/gnmi/proto/gnmi" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + _ "google.golang.org/protobuf/types/descriptorpb" + 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_OND GetRequestGetType = 1 + GetRequest_ONDS GetRequestGetType = 2 + GetRequest_SBI GetRequestGetType = 3 + GetRequest_SBIS GetRequestGetType = 4 + GetRequest_Changes GetRequestGetType = 5 +) + +// Enum value maps for GetRequestGetType. +var ( + GetRequestGetType_name = map[int32]string{ + 0: "PND", + 1: "OND", + 2: "ONDS", + 3: "SBI", + 4: "SBIS", + 5: "Changes", + } + GetRequestGetType_value = map[string]int32{ + "PND": 0, + "OND": 1, + "ONDS": 2, + "SBI": 3, + "SBIS": 4, + "Changes": 5, + } +) + +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_pnd_pnd_proto_enumTypes[0].Descriptor() +} + +func (GetRequestGetType) Type() protoreflect.EnumType { + return &file_proto_gosdn_pnd_pnd_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_pnd_pnd_proto_rawDescGZIP(), []int{0, 0} +} + +type Change_State int32 + +const ( + Change_PENDING Change_State = 0 + Change_COMMITTED Change_State = 1 + Change_CONFIRMED Change_State = 2 +) + +// Enum value maps for Change_State. +var ( + Change_State_name = map[int32]string{ + 0: "PENDING", + 1: "COMMITTED", + 2: "CONFIRMED", + } + Change_State_value = map[string]int32{ + "PENDING": 0, + "COMMITTED": 1, + "CONFIRMED": 2, + } +) + +func (x Change_State) Enum() *Change_State { + p := new(Change_State) + *p = x + return p +} + +func (x Change_State) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Change_State) Descriptor() protoreflect.EnumDescriptor { + return file_proto_gosdn_pnd_pnd_proto_enumTypes[1].Descriptor() +} + +func (Change_State) Type() protoreflect.EnumType { + return &file_proto_gosdn_pnd_pnd_proto_enumTypes[1] +} + +func (x Change_State) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Change_State.Descriptor instead. +func (Change_State) EnumDescriptor() ([]byte, []int) { + return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{7, 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_pnd_pnd_proto_enumTypes[2].Descriptor() +} + +func (SetResponseStatus) Type() protoreflect.EnumType { + return &file_proto_gosdn_pnd_pnd_proto_enumTypes[2] +} + +func (x SetResponseStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SetResponseStatus.Descriptor instead. +func (SetResponseStatus) EnumDescriptor() ([]byte, []int) { + return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{10, 0} +} + +type ChangeRequest_Operation int32 + +const ( + ChangeRequest_CREATE ChangeRequest_Operation = 0 + ChangeRequest_COMMIT ChangeRequest_Operation = 1 + ChangeRequest_CONFIRM ChangeRequest_Operation = 2 +) + +// Enum value maps for ChangeRequest_Operation. +var ( + ChangeRequest_Operation_name = map[int32]string{ + 0: "CREATE", + 1: "COMMIT", + 2: "CONFIRM", + } + ChangeRequest_Operation_value = map[string]int32{ + "CREATE": 0, + "COMMIT": 1, + "CONFIRM": 2, + } +) + +func (x ChangeRequest_Operation) Enum() *ChangeRequest_Operation { + p := new(ChangeRequest_Operation) + *p = x + return p +} + +func (x ChangeRequest_Operation) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ChangeRequest_Operation) Descriptor() protoreflect.EnumDescriptor { + return file_proto_gosdn_pnd_pnd_proto_enumTypes[3].Descriptor() +} + +func (ChangeRequest_Operation) Type() protoreflect.EnumType { + return &file_proto_gosdn_pnd_pnd_proto_enumTypes[3] +} + +func (x ChangeRequest_Operation) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ChangeRequest_Operation.Descriptor instead. +func (ChangeRequest_Operation) EnumDescriptor() ([]byte, []int) { + return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{11, 0} +} + +type ChangeRequest_ApiOperation int32 + +const ( + ChangeRequest_UPDATE ChangeRequest_ApiOperation = 0 + ChangeRequest_REPLACE ChangeRequest_ApiOperation = 1 + ChangeRequest_DELETE ChangeRequest_ApiOperation = 2 +) + +// Enum value maps for ChangeRequest_ApiOperation. +var ( + ChangeRequest_ApiOperation_name = map[int32]string{ + 0: "UPDATE", + 1: "REPLACE", + 2: "DELETE", + } + ChangeRequest_ApiOperation_value = map[string]int32{ + "UPDATE": 0, + "REPLACE": 1, + "DELETE": 2, + } +) + +func (x ChangeRequest_ApiOperation) Enum() *ChangeRequest_ApiOperation { + p := new(ChangeRequest_ApiOperation) + *p = x + return p +} + +func (x ChangeRequest_ApiOperation) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ChangeRequest_ApiOperation) Descriptor() protoreflect.EnumDescriptor { + return file_proto_gosdn_pnd_pnd_proto_enumTypes[4].Descriptor() +} + +func (ChangeRequest_ApiOperation) Type() protoreflect.EnumType { + return &file_proto_gosdn_pnd_pnd_proto_enumTypes[4] +} + +func (x ChangeRequest_ApiOperation) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ChangeRequest_ApiOperation.Descriptor instead. +func (ChangeRequest_ApiOperation) EnumDescriptor() ([]byte, []int) { + return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{11, 1} +} + +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.pnd.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_pnd_pnd_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_pnd_pnd_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_pnd_pnd_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_Pnd + // *GetResponse_Ond + // *GetResponse_Onds + // *GetResponse_Sbi + // *GetResponse_Sbis + // *GetResponse_Changes + GetOneof isGetResponse_GetOneof `protobuf_oneof:"get_oneof"` +} + +func (x *GetResponse) Reset() { + *x = GetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_gosdn_pnd_pnd_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_pnd_pnd_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_pnd_pnd_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) GetPnd() *PrincipalNetworkDomain { + if x, ok := x.GetGetOneof().(*GetResponse_Pnd); ok { + return x.Pnd + } + return nil +} + +func (x *GetResponse) GetOnd() *OrchestratedNetworkingDevice { + if x, ok := x.GetGetOneof().(*GetResponse_Ond); ok { + return x.Ond + } + return nil +} + +func (x *GetResponse) GetOnds() *OrchestratedNetworkingDevices { + if x, ok := x.GetGetOneof().(*GetResponse_Onds); ok { + return x.Onds + } + return nil +} + +func (x *GetResponse) GetSbi() *SouthboundInterface { + if x, ok := x.GetGetOneof().(*GetResponse_Sbi); ok { + return x.Sbi + } + return nil +} + +func (x *GetResponse) GetSbis() *SouthboundInterfaces { + if x, ok := x.GetGetOneof().(*GetResponse_Sbis); ok { + return x.Sbis + } + return nil +} + +func (x *GetResponse) GetChanges() *Changes { + if x, ok := x.GetGetOneof().(*GetResponse_Changes); ok { + return x.Changes + } + return nil +} + +type isGetResponse_GetOneof interface { + isGetResponse_GetOneof() +} + +type GetResponse_Pnd struct { + Pnd *PrincipalNetworkDomain `protobuf:"bytes,2,opt,name=pnd,proto3,oneof"` +} + +type GetResponse_Ond struct { + Ond *OrchestratedNetworkingDevice `protobuf:"bytes,3,opt,name=ond,proto3,oneof"` +} + +type GetResponse_Onds struct { + Onds *OrchestratedNetworkingDevices `protobuf:"bytes,4,opt,name=onds,proto3,oneof"` +} + +type GetResponse_Sbi struct { + Sbi *SouthboundInterface `protobuf:"bytes,5,opt,name=sbi,proto3,oneof"` +} + +type GetResponse_Sbis struct { + Sbis *SouthboundInterfaces `protobuf:"bytes,6,opt,name=sbis,proto3,oneof"` +} + +type GetResponse_Changes struct { + Changes *Changes `protobuf:"bytes,7,opt,name=changes,proto3,oneof"` +} + +func (*GetResponse_Pnd) isGetResponse_GetOneof() {} + +func (*GetResponse_Ond) isGetResponse_GetOneof() {} + +func (*GetResponse_Onds) isGetResponse_GetOneof() {} + +func (*GetResponse_Sbi) isGetResponse_GetOneof() {} + +func (*GetResponse_Sbis) isGetResponse_GetOneof() {} + +func (*GetResponse_Changes) isGetResponse_GetOneof() {} + +type PrincipalNetworkDomain struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Onds map[string]*OrchestratedNetworkingDevice `protobuf:"bytes,4,rep,name=onds,proto3" json:"onds,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Sbis map[string]*SouthboundInterface `protobuf:"bytes,5,rep,name=sbis,proto3" json:"sbis,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Changes map[string]*Change `protobuf:"bytes,6,rep,name=changes,proto3" json:"changes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *PrincipalNetworkDomain) Reset() { + *x = PrincipalNetworkDomain{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_gosdn_pnd_pnd_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PrincipalNetworkDomain) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PrincipalNetworkDomain) ProtoMessage() {} + +func (x *PrincipalNetworkDomain) ProtoReflect() protoreflect.Message { + mi := &file_proto_gosdn_pnd_pnd_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 PrincipalNetworkDomain.ProtoReflect.Descriptor instead. +func (*PrincipalNetworkDomain) Descriptor() ([]byte, []int) { + return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{2} +} + +func (x *PrincipalNetworkDomain) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *PrincipalNetworkDomain) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *PrincipalNetworkDomain) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *PrincipalNetworkDomain) GetOnds() map[string]*OrchestratedNetworkingDevice { + if x != nil { + return x.Onds + } + return nil +} + +func (x *PrincipalNetworkDomain) GetSbis() map[string]*SouthboundInterface { + if x != nil { + return x.Sbis + } + return nil +} + +func (x *PrincipalNetworkDomain) GetChanges() map[string]*Change { + if x != nil { + return x.Changes + } + return nil +} + +type SouthboundInterface struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` +} + +func (x *SouthboundInterface) Reset() { + *x = SouthboundInterface{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_gosdn_pnd_pnd_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SouthboundInterface) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SouthboundInterface) ProtoMessage() {} + +func (x *SouthboundInterface) ProtoReflect() protoreflect.Message { + mi := &file_proto_gosdn_pnd_pnd_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 SouthboundInterface.ProtoReflect.Descriptor instead. +func (*SouthboundInterface) Descriptor() ([]byte, []int) { + return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{3} +} + +func (x *SouthboundInterface) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *SouthboundInterface) GetSchema() string { + if x != nil { + return x.Schema + } + return "" +} + +type OrchestratedNetworkingDevice struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Device *gnmi.Notification `protobuf:"bytes,3,opt,name=device,proto3" json:"device,omitempty"` +} + +func (x *OrchestratedNetworkingDevice) Reset() { + *x = OrchestratedNetworkingDevice{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_gosdn_pnd_pnd_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OrchestratedNetworkingDevice) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrchestratedNetworkingDevice) ProtoMessage() {} + +func (x *OrchestratedNetworkingDevice) ProtoReflect() protoreflect.Message { + mi := &file_proto_gosdn_pnd_pnd_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 OrchestratedNetworkingDevice.ProtoReflect.Descriptor instead. +func (*OrchestratedNetworkingDevice) Descriptor() ([]byte, []int) { + return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{4} +} + +func (x *OrchestratedNetworkingDevice) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *OrchestratedNetworkingDevice) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *OrchestratedNetworkingDevice) GetDevice() *gnmi.Notification { + if x != nil { + return x.Device + } + return nil +} + +type SouthboundInterfaces struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Sbis map[string]*SouthboundInterface `protobuf:"bytes,1,rep,name=sbis,proto3" json:"sbis,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *SouthboundInterfaces) Reset() { + *x = SouthboundInterfaces{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_gosdn_pnd_pnd_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SouthboundInterfaces) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SouthboundInterfaces) ProtoMessage() {} + +func (x *SouthboundInterfaces) ProtoReflect() protoreflect.Message { + mi := &file_proto_gosdn_pnd_pnd_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SouthboundInterfaces.ProtoReflect.Descriptor instead. +func (*SouthboundInterfaces) Descriptor() ([]byte, []int) { + return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{5} +} + +func (x *SouthboundInterfaces) GetSbis() map[string]*SouthboundInterface { + if x != nil { + return x.Sbis + } + return nil +} + +type OrchestratedNetworkingDevices struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Sbis map[string]*OrchestratedNetworkingDevice `protobuf:"bytes,1,rep,name=sbis,proto3" json:"sbis,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *OrchestratedNetworkingDevices) Reset() { + *x = OrchestratedNetworkingDevices{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_gosdn_pnd_pnd_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OrchestratedNetworkingDevices) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrchestratedNetworkingDevices) ProtoMessage() {} + +func (x *OrchestratedNetworkingDevices) ProtoReflect() protoreflect.Message { + mi := &file_proto_gosdn_pnd_pnd_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrchestratedNetworkingDevices.ProtoReflect.Descriptor instead. +func (*OrchestratedNetworkingDevices) Descriptor() ([]byte, []int) { + return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{6} +} + +func (x *OrchestratedNetworkingDevices) GetSbis() map[string]*OrchestratedNetworkingDevice { + if x != nil { + return x.Sbis + } + return nil +} + +type Change struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Age int64 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"` + State Change_State `protobuf:"varint,3,opt,name=state,proto3,enum=gosdn.pnd.Change_State" json:"state,omitempty"` +} + +func (x *Change) Reset() { + *x = Change{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_gosdn_pnd_pnd_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Change) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Change) ProtoMessage() {} + +func (x *Change) ProtoReflect() protoreflect.Message { + mi := &file_proto_gosdn_pnd_pnd_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Change.ProtoReflect.Descriptor instead. +func (*Change) Descriptor() ([]byte, []int) { + return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{7} +} + +func (x *Change) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Change) GetAge() int64 { + if x != nil { + return x.Age + } + return 0 +} + +func (x *Change) GetState() Change_State { + if x != nil { + return x.State + } + return Change_PENDING +} + +type Changes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Sbis map[string]*Change `protobuf:"bytes,1,rep,name=sbis,proto3" json:"sbis,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *Changes) Reset() { + *x = Changes{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_gosdn_pnd_pnd_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Changes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Changes) ProtoMessage() {} + +func (x *Changes) ProtoReflect() protoreflect.Message { + mi := &file_proto_gosdn_pnd_pnd_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Changes.ProtoReflect.Descriptor instead. +func (*Changes) Descriptor() ([]byte, []int) { + return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{8} +} + +func (x *Changes) GetSbis() map[string]*Change { + if x != nil { + return x.Sbis + } + return nil +} + +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. + // Types that are assignable to Request: + // *SetRequest_Change + // *SetRequest_Ond + // *SetRequest_Sbi + Request isSetRequest_Request `protobuf_oneof:"request"` +} + +func (x *SetRequest) Reset() { + *x = SetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_gosdn_pnd_pnd_proto_msgTypes[9] + 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_pnd_pnd_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetRequest.ProtoReflect.Descriptor instead. +func (*SetRequest) Descriptor() ([]byte, []int) { + return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{9} +} + +func (x *SetRequest) GetTimestamp() int64 { + if x != nil { + return x.Timestamp + } + return 0 +} + +func (m *SetRequest) GetRequest() isSetRequest_Request { + if m != nil { + return m.Request + } + return nil +} + +func (x *SetRequest) GetChange() *ChangeRequest { + if x, ok := x.GetRequest().(*SetRequest_Change); ok { + return x.Change + } + return nil +} + +func (x *SetRequest) GetOnd() *OrchestratedNetworkingDevice { + if x, ok := x.GetRequest().(*SetRequest_Ond); ok { + return x.Ond + } + return nil +} + +func (x *SetRequest) GetSbi() *SouthboundInterface { + if x, ok := x.GetRequest().(*SetRequest_Sbi); ok { + return x.Sbi + } + return nil +} + +type isSetRequest_Request interface { + isSetRequest_Request() +} + +type SetRequest_Change struct { + Change *ChangeRequest `protobuf:"bytes,2,opt,name=change,proto3,oneof"` +} + +type SetRequest_Ond struct { + Ond *OrchestratedNetworkingDevice `protobuf:"bytes,3,opt,name=ond,proto3,oneof"` +} + +type SetRequest_Sbi struct { + Sbi *SouthboundInterface `protobuf:"bytes,4,opt,name=sbi,proto3,oneof"` +} + +func (*SetRequest_Change) isSetRequest_Request() {} + +func (*SetRequest_Ond) isSetRequest_Request() {} + +func (*SetRequest_Sbi) isSetRequest_Request() {} + +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_pnd_pnd_proto_msgTypes[10] + 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_pnd_pnd_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetResponse.ProtoReflect.Descriptor instead. +func (*SetResponse) Descriptor() ([]byte, []int) { + return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{10} +} + +func (x *SetResponse) GetTimestamp() int64 { + if x != nil { + return x.Timestamp + } + return 0 +} + +type ChangeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` + Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + ApiOp ChangeRequest_ApiOperation `protobuf:"varint,4,opt,name=apiOp,proto3,enum=gosdn.pnd.ChangeRequest_ApiOperation" json:"apiOp,omitempty"` + Op ChangeRequest_Operation `protobuf:"varint,5,opt,name=op,proto3,enum=gosdn.pnd.ChangeRequest_Operation" json:"op,omitempty"` +} + +func (x *ChangeRequest) Reset() { + *x = ChangeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_gosdn_pnd_pnd_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeRequest) ProtoMessage() {} + +func (x *ChangeRequest) ProtoReflect() protoreflect.Message { + mi := &file_proto_gosdn_pnd_pnd_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChangeRequest.ProtoReflect.Descriptor instead. +func (*ChangeRequest) Descriptor() ([]byte, []int) { + return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{11} +} + +func (x *ChangeRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ChangeRequest) GetPath() string { + if x != nil { + return x.Path + } + return "" +} + +func (x *ChangeRequest) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +func (x *ChangeRequest) GetApiOp() ChangeRequest_ApiOperation { + if x != nil { + return x.ApiOp + } + return ChangeRequest_UPDATE +} + +func (x *ChangeRequest) GetOp() ChangeRequest_Operation { + if x != nil { + return x.Op + } + return ChangeRequest_CREATE +} + +var File_proto_gosdn_pnd_pnd_proto protoreflect.FileDescriptor + +var file_proto_gosdn_pnd_pnd_proto_rawDesc = []byte{ + 0x0a, 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, 0x12, 0x09, 0x67, 0x6f, 0x73, + 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x67, 0x6e, 0x6d, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6e, 0x6d, 0x69, 0x2f, + 0x67, 0x6e, 0x6d, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6, 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, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, + 0x64, 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, 0x46, 0x0a, 0x08, 0x67, + 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x4e, 0x44, 0x10, 0x00, + 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4f, 0x4e, 0x44, + 0x53, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x42, 0x49, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, + 0x53, 0x42, 0x49, 0x53, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x73, 0x10, 0x05, 0x22, 0x87, 0x03, 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, 0x35, 0x0a, 0x03, 0x70, 0x6e, 0x64, 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, 0x48, 0x00, 0x52, 0x03, 0x70, 0x6e, 0x64, 0x12, 0x3b, 0x0a, 0x03, 0x6f, 0x6e, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, + 0x64, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x48, 0x00, + 0x52, 0x03, 0x6f, 0x6e, 0x64, 0x12, 0x3e, 0x0a, 0x04, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, + 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x48, 0x00, 0x52, + 0x04, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x32, 0x0a, 0x03, 0x73, 0x62, 0x69, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x53, + 0x6f, 0x75, 0x74, 0x68, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x48, 0x00, 0x52, 0x03, 0x73, 0x62, 0x69, 0x12, 0x35, 0x0a, 0x04, 0x73, 0x62, 0x69, + 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, + 0x70, 0x6e, 0x64, 0x2e, 0x53, 0x6f, 0x75, 0x74, 0x68, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x48, 0x00, 0x52, 0x04, 0x73, 0x62, 0x69, 0x73, + 0x12, 0x2e, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x73, 0x48, 0x00, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, + 0x42, 0x0b, 0x0a, 0x09, 0x67, 0x65, 0x74, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x22, 0xb4, 0x04, + 0x0a, 0x16, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, + 0x0a, 0x04, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 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, 0x2e, + 0x4f, 0x6e, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6f, 0x6e, 0x64, 0x73, 0x12, + 0x3f, 0x0a, 0x04, 0x73, 0x62, 0x69, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 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, + 0x2e, 0x53, 0x62, 0x69, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x73, 0x62, 0x69, 0x73, + 0x12, 0x48, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2e, 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, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x1a, 0x60, 0x0a, 0x09, 0x4f, 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, 0x3d, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, + 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, + 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x57, 0x0a, 0x09, + 0x53, 0x62, 0x69, 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, 0x34, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x73, + 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x53, 0x6f, 0x75, 0x74, 0x68, 0x62, 0x6f, 0x75, 0x6e, + 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4d, 0x0a, 0x0c, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, + 0x6e, 0x64, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x13, 0x53, 0x6f, 0x75, 0x74, 0x68, 0x62, 0x6f, 0x75, + 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x22, 0x6e, 0x0a, 0x1c, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, + 0x74, 0x65, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6e, 0x6d, 0x69, 0x2e, 0x4e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x22, 0xae, 0x01, 0x0a, 0x14, 0x53, 0x6f, 0x75, 0x74, 0x68, 0x62, 0x6f, 0x75, + 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x3d, 0x0a, 0x04, + 0x73, 0x62, 0x69, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x73, + 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x53, 0x6f, 0x75, 0x74, 0x68, 0x62, 0x6f, 0x75, 0x6e, + 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x53, 0x62, 0x69, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x73, 0x62, 0x69, 0x73, 0x1a, 0x57, 0x0a, 0x09, 0x53, + 0x62, 0x69, 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, 0x34, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x73, 0x64, + 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x53, 0x6f, 0x75, 0x74, 0x68, 0x62, 0x6f, 0x75, 0x6e, 0x64, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc9, 0x01, 0x0a, 0x1d, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, + 0x72, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x44, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x46, 0x0a, 0x04, 0x73, 0x62, 0x69, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, + 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x53, + 0x62, 0x69, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x73, 0x62, 0x69, 0x73, 0x1a, 0x60, + 0x0a, 0x09, 0x53, 0x62, 0x69, 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, 0x3d, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, + 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, + 0x72, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x44, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0x8d, 0x01, 0x0a, 0x06, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x61, + 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x61, 0x67, 0x65, 0x12, 0x2d, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, + 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x32, 0x0a, 0x05, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, + 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x54, 0x45, 0x44, 0x10, + 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x45, 0x44, 0x10, 0x02, + 0x22, 0x87, 0x01, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x04, + 0x73, 0x62, 0x69, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x73, + 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x2e, 0x53, + 0x62, 0x69, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x73, 0x62, 0x69, 0x73, 0x1a, 0x4a, + 0x0a, 0x09, 0x53, 0x62, 0x69, 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, 0x27, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, + 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xda, 0x01, 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, 0x12, 0x32, 0x0a, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, + 0x70, 0x6e, 0x64, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x3b, 0x0a, 0x03, 0x6f, + 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, + 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, + 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x48, 0x00, 0x52, 0x03, 0x6f, 0x6e, 0x64, 0x12, 0x32, 0x0a, 0x03, 0x73, 0x62, 0x69, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, + 0x64, 0x2e, 0x53, 0x6f, 0x75, 0x74, 0x68, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x48, 0x00, 0x52, 0x03, 0x73, 0x62, 0x69, 0x42, 0x09, 0x0a, 0x07, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 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, 0xa1, 0x02, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, + 0x05, 0x61, 0x70, 0x69, 0x4f, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x67, + 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x41, 0x70, 0x69, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x61, 0x70, 0x69, 0x4f, 0x70, 0x12, 0x32, 0x0a, 0x02, 0x6f, 0x70, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, + 0x6e, 0x64, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x02, 0x6f, 0x70, 0x22, 0x30, + 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x0a, 0x06, 0x43, + 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4f, 0x4d, 0x4d, 0x49, + 0x54, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x10, 0x02, + 0x22, 0x33, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, + 0x52, 0x45, 0x50, 0x4c, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, + 0x45, 0x54, 0x45, 0x10, 0x02, 0x32, 0x71, 0x0a, 0x03, 0x70, 0x6e, 0x64, 0x12, 0x34, 0x0a, 0x03, + 0x47, 0x65, 0x74, 0x12, 0x15, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x73, + 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x34, 0x0a, 0x03, 0x53, 0x65, 0x74, 0x12, 0x15, 0x2e, 0x67, 0x6f, 0x73, 0x64, + 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x53, 0x65, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x11, 0x5a, 0x0f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2f, 0x70, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_proto_gosdn_pnd_pnd_proto_rawDescOnce sync.Once + file_proto_gosdn_pnd_pnd_proto_rawDescData = file_proto_gosdn_pnd_pnd_proto_rawDesc +) + +func file_proto_gosdn_pnd_pnd_proto_rawDescGZIP() []byte { + file_proto_gosdn_pnd_pnd_proto_rawDescOnce.Do(func() { + file_proto_gosdn_pnd_pnd_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_gosdn_pnd_pnd_proto_rawDescData) + }) + return file_proto_gosdn_pnd_pnd_proto_rawDescData +} + +var file_proto_gosdn_pnd_pnd_proto_enumTypes = make([]protoimpl.EnumInfo, 5) +var file_proto_gosdn_pnd_pnd_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_proto_gosdn_pnd_pnd_proto_goTypes = []interface{}{ + (GetRequestGetType)(0), // 0: gosdn.pnd.GetRequest.get_type + (Change_State)(0), // 1: gosdn.pnd.Change.State + (SetResponseStatus)(0), // 2: gosdn.pnd.SetResponse.status + (ChangeRequest_Operation)(0), // 3: gosdn.pnd.ChangeRequest.Operation + (ChangeRequest_ApiOperation)(0), // 4: gosdn.pnd.ChangeRequest.ApiOperation + (*GetRequest)(nil), // 5: gosdn.pnd.GetRequest + (*GetResponse)(nil), // 6: gosdn.pnd.GetResponse + (*PrincipalNetworkDomain)(nil), // 7: gosdn.pnd.PrincipalNetworkDomain + (*SouthboundInterface)(nil), // 8: gosdn.pnd.SouthboundInterface + (*OrchestratedNetworkingDevice)(nil), // 9: gosdn.pnd.OrchestratedNetworkingDevice + (*SouthboundInterfaces)(nil), // 10: gosdn.pnd.SouthboundInterfaces + (*OrchestratedNetworkingDevices)(nil), // 11: gosdn.pnd.OrchestratedNetworkingDevices + (*Change)(nil), // 12: gosdn.pnd.Change + (*Changes)(nil), // 13: gosdn.pnd.Changes + (*SetRequest)(nil), // 14: gosdn.pnd.SetRequest + (*SetResponse)(nil), // 15: gosdn.pnd.SetResponse + (*ChangeRequest)(nil), // 16: gosdn.pnd.ChangeRequest + nil, // 17: gosdn.pnd.PrincipalNetworkDomain.OndsEntry + nil, // 18: gosdn.pnd.PrincipalNetworkDomain.SbisEntry + nil, // 19: gosdn.pnd.PrincipalNetworkDomain.ChangesEntry + nil, // 20: gosdn.pnd.SouthboundInterfaces.SbisEntry + nil, // 21: gosdn.pnd.OrchestratedNetworkingDevices.SbisEntry + nil, // 22: gosdn.pnd.Changes.SbisEntry + (*gnmi.Notification)(nil), // 23: gnmi.Notification +} +var file_proto_gosdn_pnd_pnd_proto_depIdxs = []int32{ + 0, // 0: gosdn.pnd.GetRequest.type:type_name -> gosdn.pnd.GetRequest.get_type + 7, // 1: gosdn.pnd.GetResponse.pnd:type_name -> gosdn.pnd.PrincipalNetworkDomain + 9, // 2: gosdn.pnd.GetResponse.ond:type_name -> gosdn.pnd.OrchestratedNetworkingDevice + 11, // 3: gosdn.pnd.GetResponse.onds:type_name -> gosdn.pnd.OrchestratedNetworkingDevices + 8, // 4: gosdn.pnd.GetResponse.sbi:type_name -> gosdn.pnd.SouthboundInterface + 10, // 5: gosdn.pnd.GetResponse.sbis:type_name -> gosdn.pnd.SouthboundInterfaces + 13, // 6: gosdn.pnd.GetResponse.changes:type_name -> gosdn.pnd.Changes + 17, // 7: gosdn.pnd.PrincipalNetworkDomain.onds:type_name -> gosdn.pnd.PrincipalNetworkDomain.OndsEntry + 18, // 8: gosdn.pnd.PrincipalNetworkDomain.sbis:type_name -> gosdn.pnd.PrincipalNetworkDomain.SbisEntry + 19, // 9: gosdn.pnd.PrincipalNetworkDomain.changes:type_name -> gosdn.pnd.PrincipalNetworkDomain.ChangesEntry + 23, // 10: gosdn.pnd.OrchestratedNetworkingDevice.device:type_name -> gnmi.Notification + 20, // 11: gosdn.pnd.SouthboundInterfaces.sbis:type_name -> gosdn.pnd.SouthboundInterfaces.SbisEntry + 21, // 12: gosdn.pnd.OrchestratedNetworkingDevices.sbis:type_name -> gosdn.pnd.OrchestratedNetworkingDevices.SbisEntry + 1, // 13: gosdn.pnd.Change.state:type_name -> gosdn.pnd.Change.State + 22, // 14: gosdn.pnd.Changes.sbis:type_name -> gosdn.pnd.Changes.SbisEntry + 16, // 15: gosdn.pnd.SetRequest.change:type_name -> gosdn.pnd.ChangeRequest + 9, // 16: gosdn.pnd.SetRequest.ond:type_name -> gosdn.pnd.OrchestratedNetworkingDevice + 8, // 17: gosdn.pnd.SetRequest.sbi:type_name -> gosdn.pnd.SouthboundInterface + 4, // 18: gosdn.pnd.ChangeRequest.apiOp:type_name -> gosdn.pnd.ChangeRequest.ApiOperation + 3, // 19: gosdn.pnd.ChangeRequest.op:type_name -> gosdn.pnd.ChangeRequest.Operation + 9, // 20: gosdn.pnd.PrincipalNetworkDomain.OndsEntry.value:type_name -> gosdn.pnd.OrchestratedNetworkingDevice + 8, // 21: gosdn.pnd.PrincipalNetworkDomain.SbisEntry.value:type_name -> gosdn.pnd.SouthboundInterface + 12, // 22: gosdn.pnd.PrincipalNetworkDomain.ChangesEntry.value:type_name -> gosdn.pnd.Change + 8, // 23: gosdn.pnd.SouthboundInterfaces.SbisEntry.value:type_name -> gosdn.pnd.SouthboundInterface + 9, // 24: gosdn.pnd.OrchestratedNetworkingDevices.SbisEntry.value:type_name -> gosdn.pnd.OrchestratedNetworkingDevice + 12, // 25: gosdn.pnd.Changes.SbisEntry.value:type_name -> gosdn.pnd.Change + 5, // 26: gosdn.pnd.pnd.Get:input_type -> gosdn.pnd.GetRequest + 14, // 27: gosdn.pnd.pnd.Set:input_type -> gosdn.pnd.SetRequest + 6, // 28: gosdn.pnd.pnd.Get:output_type -> gosdn.pnd.GetResponse + 15, // 29: gosdn.pnd.pnd.Set:output_type -> gosdn.pnd.SetResponse + 28, // [28:30] is the sub-list for method output_type + 26, // [26:28] is the sub-list for method input_type + 26, // [26:26] is the sub-list for extension type_name + 26, // [26:26] is the sub-list for extension extendee + 0, // [0:26] is the sub-list for field type_name +} + +func init() { file_proto_gosdn_pnd_pnd_proto_init() } +func file_proto_gosdn_pnd_pnd_proto_init() { + if File_proto_gosdn_pnd_pnd_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_proto_gosdn_pnd_pnd_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_pnd_pnd_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_pnd_pnd_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PrincipalNetworkDomain); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_gosdn_pnd_pnd_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SouthboundInterface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_gosdn_pnd_pnd_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrchestratedNetworkingDevice); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_gosdn_pnd_pnd_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SouthboundInterfaces); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_gosdn_pnd_pnd_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrchestratedNetworkingDevices); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_gosdn_pnd_pnd_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Change); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_gosdn_pnd_pnd_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Changes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_gosdn_pnd_pnd_proto_msgTypes[9].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_pnd_pnd_proto_msgTypes[10].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_pnd_pnd_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChangeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_proto_gosdn_pnd_pnd_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*GetResponse_Pnd)(nil), + (*GetResponse_Ond)(nil), + (*GetResponse_Onds)(nil), + (*GetResponse_Sbi)(nil), + (*GetResponse_Sbis)(nil), + (*GetResponse_Changes)(nil), + } + file_proto_gosdn_pnd_pnd_proto_msgTypes[9].OneofWrappers = []interface{}{ + (*SetRequest_Change)(nil), + (*SetRequest_Ond)(nil), + (*SetRequest_Sbi)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_proto_gosdn_pnd_pnd_proto_rawDesc, + NumEnums: 5, + NumMessages: 18, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_proto_gosdn_pnd_pnd_proto_goTypes, + DependencyIndexes: file_proto_gosdn_pnd_pnd_proto_depIdxs, + EnumInfos: file_proto_gosdn_pnd_pnd_proto_enumTypes, + MessageInfos: file_proto_gosdn_pnd_pnd_proto_msgTypes, + }.Build() + File_proto_gosdn_pnd_pnd_proto = out.File + file_proto_gosdn_pnd_pnd_proto_rawDesc = nil + file_proto_gosdn_pnd_pnd_proto_goTypes = nil + file_proto_gosdn_pnd_pnd_proto_depIdxs = nil +} diff --git a/proto/nbi/gosdn.proto b/proto/gosdn/pnd/pnd.proto similarity index 57% rename from proto/nbi/gosdn.proto rename to proto/gosdn/pnd/pnd.proto index adf4b9ea804faef5c04ae1b6e024cece5cc50b5b..43e9b6184c73d0f605926b76c526100376599af0 100644 --- a/proto/nbi/gosdn.proto +++ b/proto/gosdn/pnd/pnd.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package gosdn; +package gosdn.pnd; +import "google/protobuf/descriptor.proto"; import "github.com/openconfig/gnmi/proto/gnmi/gnmi.proto"; -option (pnd_service) = "0.0.1"; -option go_package = "code.fbi.h-da.de/cocsn/api/proto/gosdn"; +option go_package = "proto/gosdn/pnd"; service pnd { rpc Get(GetRequest) returns (GetResponse); @@ -29,7 +29,7 @@ message GetRequest { message GetResponse { int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. oneof get_oneof { - PrincipalNetworkingDomain pnd = 2; + PrincipalNetworkDomain pnd = 2; OrchestratedNetworkingDevice ond = 3; OrchestratedNetworkingDevices onds = 4; SouthboundInterface sbi = 5; @@ -39,11 +39,7 @@ message GetResponse { } -message SetRequest {} - -message SetResponse{} - -message PrincipalNetworkingDomain { +message PrincipalNetworkDomain { string id = 1; string name = 2; string description = 3; @@ -53,42 +49,70 @@ message PrincipalNetworkingDomain { } message SouthboundInterface { - int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. - string id = 2; - string schema = 3; + string id = 1; + string schema = 2; } message OrchestratedNetworkingDevice { - int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. - string id = 2; - string name = 3; - gnmi.Notification device = 4; + string id = 1; + string name = 2; + gnmi.Notification device = 3; } message SouthboundInterfaces { - int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. - map<string, SouthboundInterface> sbis = 2; + map<string, SouthboundInterface> sbis = 1; } message OrchestratedNetworkingDevices { - int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. - map<string, OrchestratedNetworkingDevice> sbis = 2; + map<string, OrchestratedNetworkingDevice> sbis = 1; } message Change { - int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. - string id = 2; - int64 age = 3; - enum state { + string id = 1; + int64 age = 2; + enum State { PENDING = 0; COMMITTED = 1; CONFIRMED = 2; } - + State state = 3; } message Changes { + map<string, Change> sbis = 1; +} + +message SetRequest { 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