f3e02e64fc7a26316ceb3bd049a8302867744ffd
[ric-plt/nodeb-rnib.git] / entities / nb_identity.pb.go
1 //
2 // Copyright 2019 AT&T Intellectual Property
3 // Copyright 2019 Nokia
4 //
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
8 //
9 //      http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16
17 //
18 // This source code is part of the near-RT RIC (RAN Intelligent Controller)
19 // platform project (RICP).
20
21 // Code generated by protoc-gen-go. DO NOT EDIT.
22 // versions:
23 //      protoc-gen-go v1.26.0
24 //      protoc        v3.15.8
25 // source: nb_identity.proto
26
27 package entities
28
29 import (
30         protoreflect "google.golang.org/protobuf/reflect/protoreflect"
31         protoimpl "google.golang.org/protobuf/runtime/protoimpl"
32         reflect "reflect"
33         sync "sync"
34 )
35
36 const (
37         // Verify that this generated code is sufficiently up-to-date.
38         _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39         // Verify that runtime/protoimpl is sufficiently up-to-date.
40         _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43 type ConnectionStatus int32
44
45 const (
46         ConnectionStatus_UNKNOWN_CONNECTION_STATUS ConnectionStatus = 0
47         ConnectionStatus_CONNECTED                 ConnectionStatus = 1
48         ConnectionStatus_DISCONNECTED              ConnectionStatus = 2
49         ConnectionStatus_CONNECTED_SETUP_FAILED    ConnectionStatus = 3
50         ConnectionStatus_CONNECTING                ConnectionStatus = 4
51         ConnectionStatus_SHUTTING_DOWN             ConnectionStatus = 5
52         ConnectionStatus_SHUT_DOWN                 ConnectionStatus = 6
53 )
54
55 // Enum value maps for ConnectionStatus.
56 var (
57         ConnectionStatus_name = map[int32]string{
58                 0: "UNKNOWN_CONNECTION_STATUS",
59                 1: "CONNECTED",
60                 2: "DISCONNECTED",
61                 3: "CONNECTED_SETUP_FAILED",
62                 4: "CONNECTING",
63                 5: "SHUTTING_DOWN",
64                 6: "SHUT_DOWN",
65         }
66         ConnectionStatus_value = map[string]int32{
67                 "UNKNOWN_CONNECTION_STATUS": 0,
68                 "CONNECTED":                 1,
69                 "DISCONNECTED":              2,
70                 "CONNECTED_SETUP_FAILED":    3,
71                 "CONNECTING":                4,
72                 "SHUTTING_DOWN":             5,
73                 "SHUT_DOWN":                 6,
74         }
75 )
76
77 func (x ConnectionStatus) Enum() *ConnectionStatus {
78         p := new(ConnectionStatus)
79         *p = x
80         return p
81 }
82
83 func (x ConnectionStatus) String() string {
84         return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
85 }
86
87 func (ConnectionStatus) Descriptor() protoreflect.EnumDescriptor {
88         return file_nb_identity_proto_enumTypes[0].Descriptor()
89 }
90
91 func (ConnectionStatus) Type() protoreflect.EnumType {
92         return &file_nb_identity_proto_enumTypes[0]
93 }
94
95 func (x ConnectionStatus) Number() protoreflect.EnumNumber {
96         return protoreflect.EnumNumber(x)
97 }
98
99 // Deprecated: Use ConnectionStatus.Descriptor instead.
100 func (ConnectionStatus) EnumDescriptor() ([]byte, []int) {
101         return file_nb_identity_proto_rawDescGZIP(), []int{0}
102 }
103
104 type GlobalNbId struct {
105         state         protoimpl.MessageState
106         sizeCache     protoimpl.SizeCache
107         unknownFields protoimpl.UnknownFields
108
109         PlmnId string `protobuf:"bytes,1,opt,name=plmn_id,json=plmnId,proto3" json:"plmn_id,omitempty"`
110         NbId   string `protobuf:"bytes,2,opt,name=nb_id,json=nbId,proto3" json:"nb_id,omitempty"`
111 }
112
113 func (x *GlobalNbId) Reset() {
114         *x = GlobalNbId{}
115         if protoimpl.UnsafeEnabled {
116                 mi := &file_nb_identity_proto_msgTypes[0]
117                 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
118                 ms.StoreMessageInfo(mi)
119         }
120 }
121
122 func (x *GlobalNbId) String() string {
123         return protoimpl.X.MessageStringOf(x)
124 }
125
126 func (*GlobalNbId) ProtoMessage() {}
127
128 func (x *GlobalNbId) ProtoReflect() protoreflect.Message {
129         mi := &file_nb_identity_proto_msgTypes[0]
130         if protoimpl.UnsafeEnabled && x != nil {
131                 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
132                 if ms.LoadMessageInfo() == nil {
133                         ms.StoreMessageInfo(mi)
134                 }
135                 return ms
136         }
137         return mi.MessageOf(x)
138 }
139
140 // Deprecated: Use GlobalNbId.ProtoReflect.Descriptor instead.
141 func (*GlobalNbId) Descriptor() ([]byte, []int) {
142         return file_nb_identity_proto_rawDescGZIP(), []int{0}
143 }
144
145 func (x *GlobalNbId) GetPlmnId() string {
146         if x != nil {
147                 return x.PlmnId
148         }
149         return ""
150 }
151
152 func (x *GlobalNbId) GetNbId() string {
153         if x != nil {
154                 return x.NbId
155         }
156         return ""
157 }
158
159 type NbIdentity struct {
160         state         protoimpl.MessageState
161         sizeCache     protoimpl.SizeCache
162         unknownFields protoimpl.UnknownFields
163
164         InventoryName                string           `protobuf:"bytes,1,opt,name=inventory_name,json=inventoryName,proto3" json:"inventory_name,omitempty"`
165         GlobalNbId                   *GlobalNbId      `protobuf:"bytes,2,opt,name=global_nb_id,json=globalNbId,proto3" json:"global_nb_id,omitempty"`
166         ConnectionStatus             ConnectionStatus `protobuf:"varint,3,opt,name=connection_status,json=connectionStatus,proto3,enum=entities.ConnectionStatus" json:"connection_status,omitempty"`
167         HealthCheckTimestampSent     int64            `protobuf:"varint,4,opt,name=health_check_timestamp_sent,json=healthCheckTimestampSent,proto3" json:"health_check_timestamp_sent,omitempty"`
168         HealthCheckTimestampReceived int64            `protobuf:"varint,5,opt,name=health_check_timestamp_received,json=healthCheckTimestampReceived,proto3" json:"health_check_timestamp_received,omitempty"`
169 }
170
171 func (x *NbIdentity) Reset() {
172         *x = NbIdentity{}
173         if protoimpl.UnsafeEnabled {
174                 mi := &file_nb_identity_proto_msgTypes[1]
175                 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
176                 ms.StoreMessageInfo(mi)
177         }
178 }
179
180 func (x *NbIdentity) String() string {
181         return protoimpl.X.MessageStringOf(x)
182 }
183
184 func (*NbIdentity) ProtoMessage() {}
185
186 func (x *NbIdentity) ProtoReflect() protoreflect.Message {
187         mi := &file_nb_identity_proto_msgTypes[1]
188         if protoimpl.UnsafeEnabled && x != nil {
189                 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
190                 if ms.LoadMessageInfo() == nil {
191                         ms.StoreMessageInfo(mi)
192                 }
193                 return ms
194         }
195         return mi.MessageOf(x)
196 }
197
198 // Deprecated: Use NbIdentity.ProtoReflect.Descriptor instead.
199 func (*NbIdentity) Descriptor() ([]byte, []int) {
200         return file_nb_identity_proto_rawDescGZIP(), []int{1}
201 }
202
203 func (x *NbIdentity) GetInventoryName() string {
204         if x != nil {
205                 return x.InventoryName
206         }
207         return ""
208 }
209
210 func (x *NbIdentity) GetGlobalNbId() *GlobalNbId {
211         if x != nil {
212                 return x.GlobalNbId
213         }
214         return nil
215 }
216
217 func (x *NbIdentity) GetConnectionStatus() ConnectionStatus {
218         if x != nil {
219                 return x.ConnectionStatus
220         }
221         return ConnectionStatus_UNKNOWN_CONNECTION_STATUS
222 }
223
224 func (x *NbIdentity) GetHealthCheckTimestampSent() int64 {
225         if x != nil {
226                 return x.HealthCheckTimestampSent
227         }
228         return 0
229 }
230
231 func (x *NbIdentity) GetHealthCheckTimestampReceived() int64 {
232         if x != nil {
233                 return x.HealthCheckTimestampReceived
234         }
235         return 0
236 }
237
238 var File_nb_identity_proto protoreflect.FileDescriptor
239
240 var file_nb_identity_proto_rawDesc = []byte{
241         0x0a, 0x11, 0x6e, 0x62, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72,
242         0x6f, 0x74, 0x6f, 0x12, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x0a,
243         0x0a, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4e, 0x62, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x70,
244         0x6c, 0x6d, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6c,
245         0x6d, 0x6e, 0x49, 0x64, 0x12, 0x13, 0x0a, 0x05, 0x6e, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
246         0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x62, 0x49, 0x64, 0x22, 0xba, 0x02, 0x0a, 0x0a, 0x4e, 0x62,
247         0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x76, 0x65,
248         0x6e, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
249         0x52, 0x0d, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12,
250         0x36, 0x0a, 0x0c, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x6e, 0x62, 0x5f, 0x69, 0x64, 0x18,
251         0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73,
252         0x2e, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4e, 0x62, 0x49, 0x64, 0x52, 0x0a, 0x67, 0x6c, 0x6f,
253         0x62, 0x61, 0x6c, 0x4e, 0x62, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x6e, 0x65,
254         0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01,
255         0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2e, 0x43, 0x6f,
256         0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x10,
257         0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
258         0x12, 0x3d, 0x0a, 0x1b, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b,
259         0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18,
260         0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x18, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65,
261         0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x53, 0x65, 0x6e, 0x74, 0x12,
262         0x45, 0x0a, 0x1f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f,
263         0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76,
264         0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68,
265         0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65,
266         0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x2a, 0xa0, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x6e, 0x65,
267         0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x19, 0x55,
268         0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4f,
269         0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f,
270         0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x49, 0x53,
271         0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x43,
272         0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x5f, 0x53, 0x45, 0x54, 0x55, 0x50, 0x5f, 0x46,
273         0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4f, 0x4e, 0x4e, 0x45,
274         0x43, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x48, 0x55, 0x54, 0x54,
275         0x49, 0x4e, 0x47, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x48,
276         0x55, 0x54, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x06, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x65, 0x72,
277         0x72, 0x69, 0x74, 0x2e, 0x6f, 0x2d, 0x72, 0x61, 0x6e, 0x2d, 0x73, 0x63, 0x2e, 0x6f, 0x72, 0x67,
278         0x2f, 0x72, 0x2f, 0x72, 0x69, 0x63, 0x2d, 0x70, 0x6c, 0x74, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x62,
279         0x2d, 0x72, 0x6e, 0x69, 0x62, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x62, 0x06,
280         0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
281 }
282
283 var (
284         file_nb_identity_proto_rawDescOnce sync.Once
285         file_nb_identity_proto_rawDescData = file_nb_identity_proto_rawDesc
286 )
287
288 func file_nb_identity_proto_rawDescGZIP() []byte {
289         file_nb_identity_proto_rawDescOnce.Do(func() {
290                 file_nb_identity_proto_rawDescData = protoimpl.X.CompressGZIP(file_nb_identity_proto_rawDescData)
291         })
292         return file_nb_identity_proto_rawDescData
293 }
294
295 var file_nb_identity_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
296 var file_nb_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
297 var file_nb_identity_proto_goTypes = []interface{}{
298         (ConnectionStatus)(0), // 0: entities.ConnectionStatus
299         (*GlobalNbId)(nil),    // 1: entities.GlobalNbId
300         (*NbIdentity)(nil),    // 2: entities.NbIdentity
301 }
302 var file_nb_identity_proto_depIdxs = []int32{
303         1, // 0: entities.NbIdentity.global_nb_id:type_name -> entities.GlobalNbId
304         0, // 1: entities.NbIdentity.connection_status:type_name -> entities.ConnectionStatus
305         2, // [2:2] is the sub-list for method output_type
306         2, // [2:2] is the sub-list for method input_type
307         2, // [2:2] is the sub-list for extension type_name
308         2, // [2:2] is the sub-list for extension extendee
309         0, // [0:2] is the sub-list for field type_name
310 }
311
312 func init() { file_nb_identity_proto_init() }
313 func file_nb_identity_proto_init() {
314         if File_nb_identity_proto != nil {
315                 return
316         }
317         if !protoimpl.UnsafeEnabled {
318                 file_nb_identity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
319                         switch v := v.(*GlobalNbId); i {
320                         case 0:
321                                 return &v.state
322                         case 1:
323                                 return &v.sizeCache
324                         case 2:
325                                 return &v.unknownFields
326                         default:
327                                 return nil
328                         }
329                 }
330                 file_nb_identity_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
331                         switch v := v.(*NbIdentity); i {
332                         case 0:
333                                 return &v.state
334                         case 1:
335                                 return &v.sizeCache
336                         case 2:
337                                 return &v.unknownFields
338                         default:
339                                 return nil
340                         }
341                 }
342         }
343         type x struct{}
344         out := protoimpl.TypeBuilder{
345                 File: protoimpl.DescBuilder{
346                         GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
347                         RawDescriptor: file_nb_identity_proto_rawDesc,
348                         NumEnums:      1,
349                         NumMessages:   2,
350                         NumExtensions: 0,
351                         NumServices:   0,
352                 },
353                 GoTypes:           file_nb_identity_proto_goTypes,
354                 DependencyIndexes: file_nb_identity_proto_depIdxs,
355                 EnumInfos:         file_nb_identity_proto_enumTypes,
356                 MessageInfos:      file_nb_identity_proto_msgTypes,
357         }.Build()
358         File_nb_identity_proto = out.File
359         file_nb_identity_proto_rawDesc = nil
360         file_nb_identity_proto_goTypes = nil
361         file_nb_identity_proto_depIdxs = nil
362 }