go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/generic/model.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: ligato/generic/model.proto 6 7 package generic 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 // ModelSpec defines a model specification to identify a model. 24 type ModelSpec struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 // Module describes grouping for the model. 30 Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` 31 // Version describes version of the model schema. 32 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 33 // Type describes name of type described by this model. 34 Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` 35 // Class describes purpose for the model. 36 Class string `protobuf:"bytes,4,opt,name=class,proto3" json:"class,omitempty"` 37 } 38 39 func (x *ModelSpec) Reset() { 40 *x = ModelSpec{} 41 if protoimpl.UnsafeEnabled { 42 mi := &file_ligato_generic_model_proto_msgTypes[0] 43 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 44 ms.StoreMessageInfo(mi) 45 } 46 } 47 48 func (x *ModelSpec) String() string { 49 return protoimpl.X.MessageStringOf(x) 50 } 51 52 func (*ModelSpec) ProtoMessage() {} 53 54 func (x *ModelSpec) ProtoReflect() protoreflect.Message { 55 mi := &file_ligato_generic_model_proto_msgTypes[0] 56 if protoimpl.UnsafeEnabled && x != nil { 57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 if ms.LoadMessageInfo() == nil { 59 ms.StoreMessageInfo(mi) 60 } 61 return ms 62 } 63 return mi.MessageOf(x) 64 } 65 66 // Deprecated: Use ModelSpec.ProtoReflect.Descriptor instead. 67 func (*ModelSpec) Descriptor() ([]byte, []int) { 68 return file_ligato_generic_model_proto_rawDescGZIP(), []int{0} 69 } 70 71 func (x *ModelSpec) GetModule() string { 72 if x != nil { 73 return x.Module 74 } 75 return "" 76 } 77 78 func (x *ModelSpec) GetVersion() string { 79 if x != nil { 80 return x.Version 81 } 82 return "" 83 } 84 85 func (x *ModelSpec) GetType() string { 86 if x != nil { 87 return x.Type 88 } 89 return "" 90 } 91 92 func (x *ModelSpec) GetClass() string { 93 if x != nil { 94 return x.Class 95 } 96 return "" 97 } 98 99 // ModelDetail represents info about model details. 100 type ModelDetail struct { 101 state protoimpl.MessageState 102 sizeCache protoimpl.SizeCache 103 unknownFields protoimpl.UnknownFields 104 105 // Spec is a specificaiton the model was registered with. 106 Spec *ModelSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` 107 // ProtoName is a name of protobuf message representing the model. 108 ProtoName string `protobuf:"bytes,2,opt,name=proto_name,json=protoName,proto3" json:"proto_name,omitempty"` 109 Options []*ModelDetail_Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` 110 } 111 112 func (x *ModelDetail) Reset() { 113 *x = ModelDetail{} 114 if protoimpl.UnsafeEnabled { 115 mi := &file_ligato_generic_model_proto_msgTypes[1] 116 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 117 ms.StoreMessageInfo(mi) 118 } 119 } 120 121 func (x *ModelDetail) String() string { 122 return protoimpl.X.MessageStringOf(x) 123 } 124 125 func (*ModelDetail) ProtoMessage() {} 126 127 func (x *ModelDetail) ProtoReflect() protoreflect.Message { 128 mi := &file_ligato_generic_model_proto_msgTypes[1] 129 if protoimpl.UnsafeEnabled && x != nil { 130 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 131 if ms.LoadMessageInfo() == nil { 132 ms.StoreMessageInfo(mi) 133 } 134 return ms 135 } 136 return mi.MessageOf(x) 137 } 138 139 // Deprecated: Use ModelDetail.ProtoReflect.Descriptor instead. 140 func (*ModelDetail) Descriptor() ([]byte, []int) { 141 return file_ligato_generic_model_proto_rawDescGZIP(), []int{1} 142 } 143 144 func (x *ModelDetail) GetSpec() *ModelSpec { 145 if x != nil { 146 return x.Spec 147 } 148 return nil 149 } 150 151 func (x *ModelDetail) GetProtoName() string { 152 if x != nil { 153 return x.ProtoName 154 } 155 return "" 156 } 157 158 func (x *ModelDetail) GetOptions() []*ModelDetail_Option { 159 if x != nil { 160 return x.Options 161 } 162 return nil 163 } 164 165 type ModelDetail_Option struct { 166 state protoimpl.MessageState 167 sizeCache protoimpl.SizeCache 168 unknownFields protoimpl.UnknownFields 169 170 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 171 Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` 172 } 173 174 func (x *ModelDetail_Option) Reset() { 175 *x = ModelDetail_Option{} 176 if protoimpl.UnsafeEnabled { 177 mi := &file_ligato_generic_model_proto_msgTypes[2] 178 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 179 ms.StoreMessageInfo(mi) 180 } 181 } 182 183 func (x *ModelDetail_Option) String() string { 184 return protoimpl.X.MessageStringOf(x) 185 } 186 187 func (*ModelDetail_Option) ProtoMessage() {} 188 189 func (x *ModelDetail_Option) ProtoReflect() protoreflect.Message { 190 mi := &file_ligato_generic_model_proto_msgTypes[2] 191 if protoimpl.UnsafeEnabled && x != nil { 192 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 193 if ms.LoadMessageInfo() == nil { 194 ms.StoreMessageInfo(mi) 195 } 196 return ms 197 } 198 return mi.MessageOf(x) 199 } 200 201 // Deprecated: Use ModelDetail_Option.ProtoReflect.Descriptor instead. 202 func (*ModelDetail_Option) Descriptor() ([]byte, []int) { 203 return file_ligato_generic_model_proto_rawDescGZIP(), []int{1, 0} 204 } 205 206 func (x *ModelDetail_Option) GetKey() string { 207 if x != nil { 208 return x.Key 209 } 210 return "" 211 } 212 213 func (x *ModelDetail_Option) GetValues() []string { 214 if x != nil { 215 return x.Values 216 } 217 return nil 218 } 219 220 var File_ligato_generic_model_proto protoreflect.FileDescriptor 221 222 var file_ligato_generic_model_proto_rawDesc = []byte{ 223 0x0a, 0x1a, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 224 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6c, 0x69, 225 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x22, 0x67, 0x0a, 0x09, 226 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x53, 0x70, 0x65, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 227 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 228 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 229 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 230 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 231 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 232 0x63, 0x6c, 0x61, 0x73, 0x73, 0x22, 0xcd, 0x01, 0x0a, 0x0b, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x44, 233 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20, 234 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 0x6e, 235 0x65, 0x72, 0x69, 0x63, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 236 0x73, 0x70, 0x65, 0x63, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6e, 0x61, 237 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x4e, 238 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 239 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x67, 0x65, 240 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, 241 0x6c, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 242 0x73, 0x1a, 0x32, 0x0a, 0x06, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 243 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x16, 0x0a, 244 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 245 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 246 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 247 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 248 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 249 } 250 251 var ( 252 file_ligato_generic_model_proto_rawDescOnce sync.Once 253 file_ligato_generic_model_proto_rawDescData = file_ligato_generic_model_proto_rawDesc 254 ) 255 256 func file_ligato_generic_model_proto_rawDescGZIP() []byte { 257 file_ligato_generic_model_proto_rawDescOnce.Do(func() { 258 file_ligato_generic_model_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_generic_model_proto_rawDescData) 259 }) 260 return file_ligato_generic_model_proto_rawDescData 261 } 262 263 var file_ligato_generic_model_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 264 var file_ligato_generic_model_proto_goTypes = []interface{}{ 265 (*ModelSpec)(nil), // 0: ligato.generic.ModelSpec 266 (*ModelDetail)(nil), // 1: ligato.generic.ModelDetail 267 (*ModelDetail_Option)(nil), // 2: ligato.generic.ModelDetail.Option 268 } 269 var file_ligato_generic_model_proto_depIdxs = []int32{ 270 0, // 0: ligato.generic.ModelDetail.spec:type_name -> ligato.generic.ModelSpec 271 2, // 1: ligato.generic.ModelDetail.options:type_name -> ligato.generic.ModelDetail.Option 272 2, // [2:2] is the sub-list for method output_type 273 2, // [2:2] is the sub-list for method input_type 274 2, // [2:2] is the sub-list for extension type_name 275 2, // [2:2] is the sub-list for extension extendee 276 0, // [0:2] is the sub-list for field type_name 277 } 278 279 func init() { file_ligato_generic_model_proto_init() } 280 func file_ligato_generic_model_proto_init() { 281 if File_ligato_generic_model_proto != nil { 282 return 283 } 284 if !protoimpl.UnsafeEnabled { 285 file_ligato_generic_model_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 286 switch v := v.(*ModelSpec); i { 287 case 0: 288 return &v.state 289 case 1: 290 return &v.sizeCache 291 case 2: 292 return &v.unknownFields 293 default: 294 return nil 295 } 296 } 297 file_ligato_generic_model_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 298 switch v := v.(*ModelDetail); i { 299 case 0: 300 return &v.state 301 case 1: 302 return &v.sizeCache 303 case 2: 304 return &v.unknownFields 305 default: 306 return nil 307 } 308 } 309 file_ligato_generic_model_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 310 switch v := v.(*ModelDetail_Option); i { 311 case 0: 312 return &v.state 313 case 1: 314 return &v.sizeCache 315 case 2: 316 return &v.unknownFields 317 default: 318 return nil 319 } 320 } 321 } 322 type x struct{} 323 out := protoimpl.TypeBuilder{ 324 File: protoimpl.DescBuilder{ 325 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 326 RawDescriptor: file_ligato_generic_model_proto_rawDesc, 327 NumEnums: 0, 328 NumMessages: 3, 329 NumExtensions: 0, 330 NumServices: 0, 331 }, 332 GoTypes: file_ligato_generic_model_proto_goTypes, 333 DependencyIndexes: file_ligato_generic_model_proto_depIdxs, 334 MessageInfos: file_ligato_generic_model_proto_msgTypes, 335 }.Build() 336 File_ligato_generic_model_proto = out.File 337 file_ligato_generic_model_proto_rawDesc = nil 338 file_ligato_generic_model_proto_goTypes = nil 339 file_ligato_generic_model_proto_depIdxs = nil 340 }