2 // Copyright 2019 AT&T Intellectual Property
3 // Copyright 2019 Nokia
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 // This source code is part of the near-RT RIC (RAN Intelligent Controller)
19 // platform project (RICP).
21 // Code generated by protoc-gen-go. DO NOT EDIT.
23 // protoc-gen-go v1.25.0
25 // source: nb_identity.proto
30 proto "github.com/golang/protobuf/proto"
31 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
32 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
38 // Verify that this generated code is sufficiently up-to-date.
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40 // Verify that runtime/protoimpl is sufficiently up-to-date.
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
44 // This is a compile-time assertion that a sufficiently up-to-date version
45 // of the legacy proto package is being used.
46 const _ = proto.ProtoPackageIsVersion4
48 type ConnectionStatus int32
51 ConnectionStatus_UNKNOWN_CONNECTION_STATUS ConnectionStatus = 0
52 ConnectionStatus_CONNECTED ConnectionStatus = 1
53 ConnectionStatus_DISCONNECTED ConnectionStatus = 2
54 ConnectionStatus_CONNECTED_SETUP_FAILED ConnectionStatus = 3
55 ConnectionStatus_CONNECTING ConnectionStatus = 4
56 ConnectionStatus_SHUTTING_DOWN ConnectionStatus = 5
57 ConnectionStatus_SHUT_DOWN ConnectionStatus = 6
60 // Enum value maps for ConnectionStatus.
62 ConnectionStatus_name = map[int32]string{
63 0: "UNKNOWN_CONNECTION_STATUS",
66 3: "CONNECTED_SETUP_FAILED",
71 ConnectionStatus_value = map[string]int32{
72 "UNKNOWN_CONNECTION_STATUS": 0,
75 "CONNECTED_SETUP_FAILED": 3,
82 func (x ConnectionStatus) Enum() *ConnectionStatus {
83 p := new(ConnectionStatus)
88 func (x ConnectionStatus) String() string {
89 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
92 func (ConnectionStatus) Descriptor() protoreflect.EnumDescriptor {
93 return file_nb_identity_proto_enumTypes[0].Descriptor()
96 func (ConnectionStatus) Type() protoreflect.EnumType {
97 return &file_nb_identity_proto_enumTypes[0]
100 func (x ConnectionStatus) Number() protoreflect.EnumNumber {
101 return protoreflect.EnumNumber(x)
104 // Deprecated: Use ConnectionStatus.Descriptor instead.
105 func (ConnectionStatus) EnumDescriptor() ([]byte, []int) {
106 return file_nb_identity_proto_rawDescGZIP(), []int{0}
109 type GlobalNbId struct {
110 state protoimpl.MessageState
111 sizeCache protoimpl.SizeCache
112 unknownFields protoimpl.UnknownFields
114 PlmnId string `protobuf:"bytes,1,opt,name=plmn_id,json=plmnId,proto3" json:"plmn_id,omitempty"`
115 NbId string `protobuf:"bytes,2,opt,name=nb_id,json=nbId,proto3" json:"nb_id,omitempty"`
118 func (x *GlobalNbId) Reset() {
120 if protoimpl.UnsafeEnabled {
121 mi := &file_nb_identity_proto_msgTypes[0]
122 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
123 ms.StoreMessageInfo(mi)
127 func (x *GlobalNbId) String() string {
128 return protoimpl.X.MessageStringOf(x)
131 func (*GlobalNbId) ProtoMessage() {}
133 func (x *GlobalNbId) ProtoReflect() protoreflect.Message {
134 mi := &file_nb_identity_proto_msgTypes[0]
135 if protoimpl.UnsafeEnabled && x != nil {
136 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
137 if ms.LoadMessageInfo() == nil {
138 ms.StoreMessageInfo(mi)
142 return mi.MessageOf(x)
145 // Deprecated: Use GlobalNbId.ProtoReflect.Descriptor instead.
146 func (*GlobalNbId) Descriptor() ([]byte, []int) {
147 return file_nb_identity_proto_rawDescGZIP(), []int{0}
150 func (x *GlobalNbId) GetPlmnId() string {
157 func (x *GlobalNbId) GetNbId() string {
164 type NbIdentity struct {
165 state protoimpl.MessageState
166 sizeCache protoimpl.SizeCache
167 unknownFields protoimpl.UnknownFields
169 InventoryName string `protobuf:"bytes,1,opt,name=inventory_name,json=inventoryName,proto3" json:"inventory_name,omitempty"`
170 GlobalNbId *GlobalNbId `protobuf:"bytes,2,opt,name=global_nb_id,json=globalNbId,proto3" json:"global_nb_id,omitempty"`
171 ConnectionStatus ConnectionStatus `protobuf:"varint,3,opt,name=connection_status,json=connectionStatus,proto3,enum=entities.ConnectionStatus" json:"connection_status,omitempty"`
172 HealthCheckTimestampSent int64 `protobuf:"varint,4,opt,name=health_check_timestamp_sent,json=healthCheckTimestampSent,proto3" json:"health_check_timestamp_sent,omitempty"`
173 HealthCheckTimestampReceived int64 `protobuf:"varint,5,opt,name=health_check_timestamp_received,json=healthCheckTimestampReceived,proto3" json:"health_check_timestamp_received,omitempty"`
176 func (x *NbIdentity) Reset() {
178 if protoimpl.UnsafeEnabled {
179 mi := &file_nb_identity_proto_msgTypes[1]
180 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
181 ms.StoreMessageInfo(mi)
185 func (x *NbIdentity) String() string {
186 return protoimpl.X.MessageStringOf(x)
189 func (*NbIdentity) ProtoMessage() {}
191 func (x *NbIdentity) ProtoReflect() protoreflect.Message {
192 mi := &file_nb_identity_proto_msgTypes[1]
193 if protoimpl.UnsafeEnabled && x != nil {
194 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
195 if ms.LoadMessageInfo() == nil {
196 ms.StoreMessageInfo(mi)
200 return mi.MessageOf(x)
203 // Deprecated: Use NbIdentity.ProtoReflect.Descriptor instead.
204 func (*NbIdentity) Descriptor() ([]byte, []int) {
205 return file_nb_identity_proto_rawDescGZIP(), []int{1}
208 func (x *NbIdentity) GetInventoryName() string {
210 return x.InventoryName
215 func (x *NbIdentity) GetGlobalNbId() *GlobalNbId {
222 func (x *NbIdentity) GetConnectionStatus() ConnectionStatus {
224 return x.ConnectionStatus
226 return ConnectionStatus_UNKNOWN_CONNECTION_STATUS
229 func (x *NbIdentity) GetHealthCheckTimestampSent() int64 {
231 return x.HealthCheckTimestampSent
236 func (x *NbIdentity) GetHealthCheckTimestampReceived() int64 {
238 return x.HealthCheckTimestampReceived
243 var File_nb_identity_proto protoreflect.FileDescriptor
245 var file_nb_identity_proto_rawDesc = []byte{
246 0x0a, 0x11, 0x6e, 0x62, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72,
247 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x0a,
248 0x0a, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4e, 0x62, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x70,
249 0x6c, 0x6d, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6c,
250 0x6d, 0x6e, 0x49, 0x64, 0x12, 0x13, 0x0a, 0x05, 0x6e, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
251 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x62, 0x49, 0x64, 0x22, 0xba, 0x02, 0x0a, 0x0a, 0x4e, 0x62,
252 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x76, 0x65,
253 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
254 0x52, 0x0d, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12,
255 0x36, 0x0a, 0x0c, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x6e, 0x62, 0x5f, 0x69, 0x64, 0x18,
256 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73,
257 0x2e, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4e, 0x62, 0x49, 0x64, 0x52, 0x0a, 0x67, 0x6c, 0x6f,
258 0x62, 0x61, 0x6c, 0x4e, 0x62, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x6e, 0x65,
259 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01,
260 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2e, 0x43, 0x6f,
261 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x10,
262 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
263 0x12, 0x3d, 0x0a, 0x1b, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b,
264 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18,
265 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x18, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65,
266 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x53, 0x65, 0x6e, 0x74, 0x12,
267 0x45, 0x0a, 0x1f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f,
268 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76,
269 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68,
270 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65,
271 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x2a, 0xa0, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x6e, 0x65,
272 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x19, 0x55,
273 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4f,
274 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f,
275 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x49, 0x53,
276 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x43,
277 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x5f, 0x53, 0x45, 0x54, 0x55, 0x50, 0x5f, 0x46,
278 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4f, 0x4e, 0x4e, 0x45,
279 0x43, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x48, 0x55, 0x54, 0x54,
280 0x49, 0x4e, 0x47, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x48,
281 0x55, 0x54, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x06, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
286 file_nb_identity_proto_rawDescOnce sync.Once
287 file_nb_identity_proto_rawDescData = file_nb_identity_proto_rawDesc
290 func file_nb_identity_proto_rawDescGZIP() []byte {
291 file_nb_identity_proto_rawDescOnce.Do(func() {
292 file_nb_identity_proto_rawDescData = protoimpl.X.CompressGZIP(file_nb_identity_proto_rawDescData)
294 return file_nb_identity_proto_rawDescData
297 var file_nb_identity_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
298 var file_nb_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
299 var file_nb_identity_proto_goTypes = []interface{}{
300 (ConnectionStatus)(0), // 0: entities.ConnectionStatus
301 (*GlobalNbId)(nil), // 1: entities.GlobalNbId
302 (*NbIdentity)(nil), // 2: entities.NbIdentity
304 var file_nb_identity_proto_depIdxs = []int32{
305 1, // 0: entities.NbIdentity.global_nb_id:type_name -> entities.GlobalNbId
306 0, // 1: entities.NbIdentity.connection_status:type_name -> entities.ConnectionStatus
307 2, // [2:2] is the sub-list for method output_type
308 2, // [2:2] is the sub-list for method input_type
309 2, // [2:2] is the sub-list for extension type_name
310 2, // [2:2] is the sub-list for extension extendee
311 0, // [0:2] is the sub-list for field type_name
314 func init() { file_nb_identity_proto_init() }
315 func file_nb_identity_proto_init() {
316 if File_nb_identity_proto != nil {
319 if !protoimpl.UnsafeEnabled {
320 file_nb_identity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
321 switch v := v.(*GlobalNbId); i {
327 return &v.unknownFields
332 file_nb_identity_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
333 switch v := v.(*NbIdentity); i {
339 return &v.unknownFields
346 out := protoimpl.TypeBuilder{
347 File: protoimpl.DescBuilder{
348 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
349 RawDescriptor: file_nb_identity_proto_rawDesc,
355 GoTypes: file_nb_identity_proto_goTypes,
356 DependencyIndexes: file_nb_identity_proto_depIdxs,
357 EnumInfos: file_nb_identity_proto_enumTypes,
358 MessageInfos: file_nb_identity_proto_msgTypes,
360 File_nb_identity_proto = out.File
361 file_nb_identity_proto_rawDesc = nil
362 file_nb_identity_proto_goTypes = nil
363 file_nb_identity_proto_depIdxs = nil