github.com/onosproject/onos-api/go@v0.10.32/onos/config/admin/admin.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: onos/config/admin/admin.proto 3 4 // Package admin defines the administrative gRPC interfaces. 5 6 package admin 7 8 import ( 9 context "context" 10 fmt "fmt" 11 _ "github.com/gogo/protobuf/gogoproto" 12 proto "github.com/gogo/protobuf/proto" 13 github_com_onosproject_onos_api_go_onos_config_v2 "github.com/onosproject/onos-api/go/onos/config/v2" 14 v2 "github.com/onosproject/onos-api/go/onos/config/v2" 15 gnmi "github.com/openconfig/gnmi/proto/gnmi" 16 grpc "google.golang.org/grpc" 17 codes "google.golang.org/grpc/codes" 18 status "google.golang.org/grpc/status" 19 math "math" 20 ) 21 22 // Reference imports to suppress errors if they are not otherwise used. 23 var _ = proto.Marshal 24 var _ = fmt.Errorf 25 var _ = math.Inf 26 27 // This is a compile-time assertion to ensure that this generated file 28 // is compatible with the proto package it is being compiled against. 29 // A compilation error at this line likely means your copy of the 30 // proto package needs to be updated. 31 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 32 33 // ReadOnlySubPath is an extension to the ReadOnlyPath to define the datatype of 34 // the subpath 35 type ReadOnlySubPath struct { 36 // sub_path is the relative path of a child object e.g. /list2b/index 37 SubPath string `protobuf:"bytes,1,opt,name=sub_path,json=subPath,proto3" json:"sub_path,omitempty"` 38 // value_type is the datatype of the read only path 39 ValueType v2.ValueType `protobuf:"varint,2,opt,name=value_type,json=valueType,proto3,enum=onos.config.v2.ValueType" json:"value_type,omitempty"` 40 TypeOpts []uint64 `protobuf:"varint,3,rep,packed,name=type_opts,json=typeOpts,proto3" json:"type_opts,omitempty"` 41 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` 42 Units string `protobuf:"bytes,5,opt,name=units,proto3" json:"units,omitempty"` 43 IsAKey bool `protobuf:"varint,6,opt,name=IsAKey,proto3" json:"IsAKey,omitempty"` 44 AttrName string `protobuf:"bytes,7,opt,name=AttrName,proto3" json:"AttrName,omitempty"` 45 XXX_NoUnkeyedLiteral struct{} `json:"-"` 46 XXX_unrecognized []byte `json:"-"` 47 XXX_sizecache int32 `json:"-"` 48 } 49 50 func (m *ReadOnlySubPath) Reset() { *m = ReadOnlySubPath{} } 51 func (m *ReadOnlySubPath) String() string { return proto.CompactTextString(m) } 52 func (*ReadOnlySubPath) ProtoMessage() {} 53 func (*ReadOnlySubPath) Descriptor() ([]byte, []int) { 54 return fileDescriptor_1fd496319a120412, []int{0} 55 } 56 func (m *ReadOnlySubPath) XXX_Unmarshal(b []byte) error { 57 return xxx_messageInfo_ReadOnlySubPath.Unmarshal(m, b) 58 } 59 func (m *ReadOnlySubPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 60 return xxx_messageInfo_ReadOnlySubPath.Marshal(b, m, deterministic) 61 } 62 func (m *ReadOnlySubPath) XXX_Merge(src proto.Message) { 63 xxx_messageInfo_ReadOnlySubPath.Merge(m, src) 64 } 65 func (m *ReadOnlySubPath) XXX_Size() int { 66 return xxx_messageInfo_ReadOnlySubPath.Size(m) 67 } 68 func (m *ReadOnlySubPath) XXX_DiscardUnknown() { 69 xxx_messageInfo_ReadOnlySubPath.DiscardUnknown(m) 70 } 71 72 var xxx_messageInfo_ReadOnlySubPath proto.InternalMessageInfo 73 74 func (m *ReadOnlySubPath) GetSubPath() string { 75 if m != nil { 76 return m.SubPath 77 } 78 return "" 79 } 80 81 func (m *ReadOnlySubPath) GetValueType() v2.ValueType { 82 if m != nil { 83 return m.ValueType 84 } 85 return v2.ValueType_EMPTY 86 } 87 88 func (m *ReadOnlySubPath) GetTypeOpts() []uint64 { 89 if m != nil { 90 return m.TypeOpts 91 } 92 return nil 93 } 94 95 func (m *ReadOnlySubPath) GetDescription() string { 96 if m != nil { 97 return m.Description 98 } 99 return "" 100 } 101 102 func (m *ReadOnlySubPath) GetUnits() string { 103 if m != nil { 104 return m.Units 105 } 106 return "" 107 } 108 109 func (m *ReadOnlySubPath) GetIsAKey() bool { 110 if m != nil { 111 return m.IsAKey 112 } 113 return false 114 } 115 116 func (m *ReadOnlySubPath) GetAttrName() string { 117 if m != nil { 118 return m.AttrName 119 } 120 return "" 121 } 122 123 // ReadOnlyPath extracted from the model plugin as the definition of a tree of read only items. 124 // In YANG models items are defined as ReadOnly with the `config false` keyword. 125 // This can be applied to single items (leafs) or collections (containers or lists). 126 // When this `config false` is applied to an object every item beneath it will 127 // also become readonly - here these are shown as subpaths. 128 // The complete read only path then will be a concatenation of both e.g. 129 // /cont1a/cont1b-state/list2b/index and the type is defined in the SubPath as UInt8. 130 type ReadOnlyPath struct { 131 // path of the topmost `config false` object e.g. /cont1a/cont1b-state 132 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` 133 // ReadOnlySubPath is a set of children of the path including an entry for the 134 // type of the topmost object with subpath `/` 135 // An example is /list2b/index 136 SubPath []*ReadOnlySubPath `protobuf:"bytes,2,rep,name=sub_path,json=subPath,proto3" json:"sub_path,omitempty"` 137 XXX_NoUnkeyedLiteral struct{} `json:"-"` 138 XXX_unrecognized []byte `json:"-"` 139 XXX_sizecache int32 `json:"-"` 140 } 141 142 func (m *ReadOnlyPath) Reset() { *m = ReadOnlyPath{} } 143 func (m *ReadOnlyPath) String() string { return proto.CompactTextString(m) } 144 func (*ReadOnlyPath) ProtoMessage() {} 145 func (*ReadOnlyPath) Descriptor() ([]byte, []int) { 146 return fileDescriptor_1fd496319a120412, []int{1} 147 } 148 func (m *ReadOnlyPath) XXX_Unmarshal(b []byte) error { 149 return xxx_messageInfo_ReadOnlyPath.Unmarshal(m, b) 150 } 151 func (m *ReadOnlyPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 152 return xxx_messageInfo_ReadOnlyPath.Marshal(b, m, deterministic) 153 } 154 func (m *ReadOnlyPath) XXX_Merge(src proto.Message) { 155 xxx_messageInfo_ReadOnlyPath.Merge(m, src) 156 } 157 func (m *ReadOnlyPath) XXX_Size() int { 158 return xxx_messageInfo_ReadOnlyPath.Size(m) 159 } 160 func (m *ReadOnlyPath) XXX_DiscardUnknown() { 161 xxx_messageInfo_ReadOnlyPath.DiscardUnknown(m) 162 } 163 164 var xxx_messageInfo_ReadOnlyPath proto.InternalMessageInfo 165 166 func (m *ReadOnlyPath) GetPath() string { 167 if m != nil { 168 return m.Path 169 } 170 return "" 171 } 172 173 func (m *ReadOnlyPath) GetSubPath() []*ReadOnlySubPath { 174 if m != nil { 175 return m.SubPath 176 } 177 return nil 178 } 179 180 // ReadWritePath is extracted from the model plugin as the definition of a writeable attributes. 181 // In YANG models items are writable by default unless they are specified as `config false` or 182 // have an item with `config false` as a parent. 183 // Each configurable item has metadata with meanings taken from the YANG specification RFC 6020. 184 type ReadWritePath struct { 185 // path is the full path to the attribute (leaf or leaf-list) 186 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` 187 // value_type is the data type of the attribute 188 ValueType v2.ValueType `protobuf:"varint,2,opt,name=value_type,json=valueType,proto3,enum=onos.config.v2.ValueType" json:"value_type,omitempty"` 189 // units is the unit of measurement e.g. dB, mV 190 Units string `protobuf:"bytes,3,opt,name=units,proto3" json:"units,omitempty"` 191 // description is an explaination of the meaning of the attribute 192 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` 193 // mandatory shows whether the attribute is optional (false) or required (true) 194 Mandatory bool `protobuf:"varint,5,opt,name=mandatory,proto3" json:"mandatory,omitempty"` 195 // default is a default value used with optional attributes. Replaced by 'defaults' below 196 Default string `protobuf:"bytes,6,opt,name=default,proto3" json:"default,omitempty"` // Deprecated: Do not use. 197 // range is definition of the range of values a value is allowed 198 Range []string `protobuf:"bytes,7,rep,name=range,proto3" json:"range,omitempty"` 199 // length is a defintion of the length restrictions for the attribute 200 Length []string `protobuf:"bytes,8,rep,name=length,proto3" json:"length,omitempty"` 201 TypeOpts []uint64 `protobuf:"varint,9,rep,packed,name=type_opts,json=typeOpts,proto3" json:"type_opts,omitempty"` 202 IsAKey bool `protobuf:"varint,10,opt,name=IsAKey,proto3" json:"IsAKey,omitempty"` 203 AttrName string `protobuf:"bytes,11,opt,name=AttrName,proto3" json:"AttrName,omitempty"` 204 // defaults is a default value(s) used with optional attributes. For leaf-list can have repeated values 205 // replaces the 'default' attribute above 206 Defaults []string `protobuf:"bytes,12,rep,name=defaults,proto3" json:"defaults,omitempty"` 207 XXX_NoUnkeyedLiteral struct{} `json:"-"` 208 XXX_unrecognized []byte `json:"-"` 209 XXX_sizecache int32 `json:"-"` 210 } 211 212 func (m *ReadWritePath) Reset() { *m = ReadWritePath{} } 213 func (m *ReadWritePath) String() string { return proto.CompactTextString(m) } 214 func (*ReadWritePath) ProtoMessage() {} 215 func (*ReadWritePath) Descriptor() ([]byte, []int) { 216 return fileDescriptor_1fd496319a120412, []int{2} 217 } 218 func (m *ReadWritePath) XXX_Unmarshal(b []byte) error { 219 return xxx_messageInfo_ReadWritePath.Unmarshal(m, b) 220 } 221 func (m *ReadWritePath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 222 return xxx_messageInfo_ReadWritePath.Marshal(b, m, deterministic) 223 } 224 func (m *ReadWritePath) XXX_Merge(src proto.Message) { 225 xxx_messageInfo_ReadWritePath.Merge(m, src) 226 } 227 func (m *ReadWritePath) XXX_Size() int { 228 return xxx_messageInfo_ReadWritePath.Size(m) 229 } 230 func (m *ReadWritePath) XXX_DiscardUnknown() { 231 xxx_messageInfo_ReadWritePath.DiscardUnknown(m) 232 } 233 234 var xxx_messageInfo_ReadWritePath proto.InternalMessageInfo 235 236 func (m *ReadWritePath) GetPath() string { 237 if m != nil { 238 return m.Path 239 } 240 return "" 241 } 242 243 func (m *ReadWritePath) GetValueType() v2.ValueType { 244 if m != nil { 245 return m.ValueType 246 } 247 return v2.ValueType_EMPTY 248 } 249 250 func (m *ReadWritePath) GetUnits() string { 251 if m != nil { 252 return m.Units 253 } 254 return "" 255 } 256 257 func (m *ReadWritePath) GetDescription() string { 258 if m != nil { 259 return m.Description 260 } 261 return "" 262 } 263 264 func (m *ReadWritePath) GetMandatory() bool { 265 if m != nil { 266 return m.Mandatory 267 } 268 return false 269 } 270 271 // Deprecated: Do not use. 272 func (m *ReadWritePath) GetDefault() string { 273 if m != nil { 274 return m.Default 275 } 276 return "" 277 } 278 279 func (m *ReadWritePath) GetRange() []string { 280 if m != nil { 281 return m.Range 282 } 283 return nil 284 } 285 286 func (m *ReadWritePath) GetLength() []string { 287 if m != nil { 288 return m.Length 289 } 290 return nil 291 } 292 293 func (m *ReadWritePath) GetTypeOpts() []uint64 { 294 if m != nil { 295 return m.TypeOpts 296 } 297 return nil 298 } 299 300 func (m *ReadWritePath) GetIsAKey() bool { 301 if m != nil { 302 return m.IsAKey 303 } 304 return false 305 } 306 307 func (m *ReadWritePath) GetAttrName() string { 308 if m != nil { 309 return m.AttrName 310 } 311 return "" 312 } 313 314 func (m *ReadWritePath) GetDefaults() []string { 315 if m != nil { 316 return m.Defaults 317 } 318 return nil 319 } 320 321 // Namespace is a mapping between a module name and its shorthand prefix 322 type Namespace struct { 323 Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` 324 Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"` 325 XXX_NoUnkeyedLiteral struct{} `json:"-"` 326 XXX_unrecognized []byte `json:"-"` 327 XXX_sizecache int32 `json:"-"` 328 } 329 330 func (m *Namespace) Reset() { *m = Namespace{} } 331 func (m *Namespace) String() string { return proto.CompactTextString(m) } 332 func (*Namespace) ProtoMessage() {} 333 func (*Namespace) Descriptor() ([]byte, []int) { 334 return fileDescriptor_1fd496319a120412, []int{3} 335 } 336 func (m *Namespace) XXX_Unmarshal(b []byte) error { 337 return xxx_messageInfo_Namespace.Unmarshal(m, b) 338 } 339 func (m *Namespace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 340 return xxx_messageInfo_Namespace.Marshal(b, m, deterministic) 341 } 342 func (m *Namespace) XXX_Merge(src proto.Message) { 343 xxx_messageInfo_Namespace.Merge(m, src) 344 } 345 func (m *Namespace) XXX_Size() int { 346 return xxx_messageInfo_Namespace.Size(m) 347 } 348 func (m *Namespace) XXX_DiscardUnknown() { 349 xxx_messageInfo_Namespace.DiscardUnknown(m) 350 } 351 352 var xxx_messageInfo_Namespace proto.InternalMessageInfo 353 354 func (m *Namespace) GetModule() string { 355 if m != nil { 356 return m.Module 357 } 358 return "" 359 } 360 361 func (m *Namespace) GetPrefix() string { 362 if m != nil { 363 return m.Prefix 364 } 365 return "" 366 } 367 368 // ModelInfo is general information about a model plugin. 369 type ModelInfo struct { 370 // name is the name given to the model plugin - no spaces and title case. 371 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 372 // version is the semantic version of the Plugin e.g. 1.0.0. 373 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 374 // model_data is a set of metadata about the YANG files that went in to 375 // generating the model plugin. It includes name, version and organization for 376 // each YANG file, similar to how they are represented in gNMI Capabilities. 377 ModelData []*gnmi.ModelData `protobuf:"bytes,3,rep,name=model_data,json=modelData,proto3" json:"model_data,omitempty"` 378 // module is no longer used 379 Module string `protobuf:"bytes,4,opt,name=module,proto3" json:"module,omitempty"` // Deprecated: Do not use. 380 // getStateMode is flag that defines how the "get state" operation works. 381 // 0. means that no retrieval of state is attempted 382 // 1. means that the synchronizer will make 2 requests to the device - one for 383 // Get with State and another for Get with Operational. 384 // 2. means that the synchronizer will do a Get request comprising of each 385 // one of the ReadOnlyPaths and their sub paths. If there is a `list` 386 // in any one of these paths it will be sent down as is, expecting the 387 // devices implementation of gNMI will be able to expand wildcards. 388 // 3. means that the synchronizer will do a Get request comprising of each 389 // one of the ReadOnlyPaths and their sub paths. If there is a `list` 390 // in any one of these paths, a separate call will be made first to find 391 // all the instances in the list and a Get including these expanded wildcards 392 // will be sent down to the device. 393 GetStateMode uint32 `protobuf:"varint,5,opt,name=getStateMode,proto3" json:"getStateMode,omitempty"` 394 // read_only_path is all of the read only paths for the model plugin. 395 ReadOnlyPath []*ReadOnlyPath `protobuf:"bytes,7,rep,name=read_only_path,json=readOnlyPath,proto3" json:"read_only_path,omitempty"` 396 // read_write_path is all of the read write paths for the model plugin. 397 ReadWritePath []*ReadWritePath `protobuf:"bytes,8,rep,name=read_write_path,json=readWritePath,proto3" json:"read_write_path,omitempty"` 398 SupportedEncodings []gnmi.Encoding `protobuf:"varint,9,rep,packed,name=supported_encodings,json=supportedEncodings,proto3,enum=gnmi.Encoding" json:"supported_encodings,omitempty"` 399 // namespace_mappings is a set of all prefix to module name mapping in the model 400 NamespaceMappings []*Namespace `protobuf:"bytes,10,rep,name=namespace_mappings,json=namespaceMappings,proto3" json:"namespace_mappings,omitempty"` 401 // southboundUsePrefix indicates that the southbound should add prefixes in gNMI paths 402 SouthboundUsePrefix bool `protobuf:"varint,11,opt,name=southboundUsePrefix,proto3" json:"southboundUsePrefix,omitempty"` 403 XXX_NoUnkeyedLiteral struct{} `json:"-"` 404 XXX_unrecognized []byte `json:"-"` 405 XXX_sizecache int32 `json:"-"` 406 } 407 408 func (m *ModelInfo) Reset() { *m = ModelInfo{} } 409 func (m *ModelInfo) String() string { return proto.CompactTextString(m) } 410 func (*ModelInfo) ProtoMessage() {} 411 func (*ModelInfo) Descriptor() ([]byte, []int) { 412 return fileDescriptor_1fd496319a120412, []int{4} 413 } 414 func (m *ModelInfo) XXX_Unmarshal(b []byte) error { 415 return xxx_messageInfo_ModelInfo.Unmarshal(m, b) 416 } 417 func (m *ModelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 418 return xxx_messageInfo_ModelInfo.Marshal(b, m, deterministic) 419 } 420 func (m *ModelInfo) XXX_Merge(src proto.Message) { 421 xxx_messageInfo_ModelInfo.Merge(m, src) 422 } 423 func (m *ModelInfo) XXX_Size() int { 424 return xxx_messageInfo_ModelInfo.Size(m) 425 } 426 func (m *ModelInfo) XXX_DiscardUnknown() { 427 xxx_messageInfo_ModelInfo.DiscardUnknown(m) 428 } 429 430 var xxx_messageInfo_ModelInfo proto.InternalMessageInfo 431 432 func (m *ModelInfo) GetName() string { 433 if m != nil { 434 return m.Name 435 } 436 return "" 437 } 438 439 func (m *ModelInfo) GetVersion() string { 440 if m != nil { 441 return m.Version 442 } 443 return "" 444 } 445 446 func (m *ModelInfo) GetModelData() []*gnmi.ModelData { 447 if m != nil { 448 return m.ModelData 449 } 450 return nil 451 } 452 453 // Deprecated: Do not use. 454 func (m *ModelInfo) GetModule() string { 455 if m != nil { 456 return m.Module 457 } 458 return "" 459 } 460 461 func (m *ModelInfo) GetGetStateMode() uint32 { 462 if m != nil { 463 return m.GetStateMode 464 } 465 return 0 466 } 467 468 func (m *ModelInfo) GetReadOnlyPath() []*ReadOnlyPath { 469 if m != nil { 470 return m.ReadOnlyPath 471 } 472 return nil 473 } 474 475 func (m *ModelInfo) GetReadWritePath() []*ReadWritePath { 476 if m != nil { 477 return m.ReadWritePath 478 } 479 return nil 480 } 481 482 func (m *ModelInfo) GetSupportedEncodings() []gnmi.Encoding { 483 if m != nil { 484 return m.SupportedEncodings 485 } 486 return nil 487 } 488 489 func (m *ModelInfo) GetNamespaceMappings() []*Namespace { 490 if m != nil { 491 return m.NamespaceMappings 492 } 493 return nil 494 } 495 496 func (m *ModelInfo) GetSouthboundUsePrefix() bool { 497 if m != nil { 498 return m.SouthboundUsePrefix 499 } 500 return false 501 } 502 503 type ModelPlugin struct { 504 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 505 Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` 506 Info *ModelInfo `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` 507 Status string `protobuf:"bytes,10,opt,name=status,proto3" json:"status,omitempty"` 508 Error string `protobuf:"bytes,11,opt,name=error,proto3" json:"error,omitempty"` 509 XXX_NoUnkeyedLiteral struct{} `json:"-"` 510 XXX_unrecognized []byte `json:"-"` 511 XXX_sizecache int32 `json:"-"` 512 } 513 514 func (m *ModelPlugin) Reset() { *m = ModelPlugin{} } 515 func (m *ModelPlugin) String() string { return proto.CompactTextString(m) } 516 func (*ModelPlugin) ProtoMessage() {} 517 func (*ModelPlugin) Descriptor() ([]byte, []int) { 518 return fileDescriptor_1fd496319a120412, []int{5} 519 } 520 func (m *ModelPlugin) XXX_Unmarshal(b []byte) error { 521 return xxx_messageInfo_ModelPlugin.Unmarshal(m, b) 522 } 523 func (m *ModelPlugin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 524 return xxx_messageInfo_ModelPlugin.Marshal(b, m, deterministic) 525 } 526 func (m *ModelPlugin) XXX_Merge(src proto.Message) { 527 xxx_messageInfo_ModelPlugin.Merge(m, src) 528 } 529 func (m *ModelPlugin) XXX_Size() int { 530 return xxx_messageInfo_ModelPlugin.Size(m) 531 } 532 func (m *ModelPlugin) XXX_DiscardUnknown() { 533 xxx_messageInfo_ModelPlugin.DiscardUnknown(m) 534 } 535 536 var xxx_messageInfo_ModelPlugin proto.InternalMessageInfo 537 538 func (m *ModelPlugin) GetId() string { 539 if m != nil { 540 return m.Id 541 } 542 return "" 543 } 544 545 func (m *ModelPlugin) GetEndpoint() string { 546 if m != nil { 547 return m.Endpoint 548 } 549 return "" 550 } 551 552 func (m *ModelPlugin) GetInfo() *ModelInfo { 553 if m != nil { 554 return m.Info 555 } 556 return nil 557 } 558 559 func (m *ModelPlugin) GetStatus() string { 560 if m != nil { 561 return m.Status 562 } 563 return "" 564 } 565 566 func (m *ModelPlugin) GetError() string { 567 if m != nil { 568 return m.Error 569 } 570 return "" 571 } 572 573 // ListModelsRequest carries data for querying registered model plugins. 574 type ListModelsRequest struct { 575 // verbose option causes all of the ReadWrite and ReadOnly paths to be included. 576 Verbose bool `protobuf:"varint,1,opt,name=verbose,proto3" json:"verbose,omitempty"` 577 // An optional filter on the name of the model plugins to list. 578 ModelName string `protobuf:"bytes,2,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"` 579 // An optional filter on the version of the model plugins to list 580 ModelVersion string `protobuf:"bytes,3,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"` 581 XXX_NoUnkeyedLiteral struct{} `json:"-"` 582 XXX_unrecognized []byte `json:"-"` 583 XXX_sizecache int32 `json:"-"` 584 } 585 586 func (m *ListModelsRequest) Reset() { *m = ListModelsRequest{} } 587 func (m *ListModelsRequest) String() string { return proto.CompactTextString(m) } 588 func (*ListModelsRequest) ProtoMessage() {} 589 func (*ListModelsRequest) Descriptor() ([]byte, []int) { 590 return fileDescriptor_1fd496319a120412, []int{6} 591 } 592 func (m *ListModelsRequest) XXX_Unmarshal(b []byte) error { 593 return xxx_messageInfo_ListModelsRequest.Unmarshal(m, b) 594 } 595 func (m *ListModelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 596 return xxx_messageInfo_ListModelsRequest.Marshal(b, m, deterministic) 597 } 598 func (m *ListModelsRequest) XXX_Merge(src proto.Message) { 599 xxx_messageInfo_ListModelsRequest.Merge(m, src) 600 } 601 func (m *ListModelsRequest) XXX_Size() int { 602 return xxx_messageInfo_ListModelsRequest.Size(m) 603 } 604 func (m *ListModelsRequest) XXX_DiscardUnknown() { 605 xxx_messageInfo_ListModelsRequest.DiscardUnknown(m) 606 } 607 608 var xxx_messageInfo_ListModelsRequest proto.InternalMessageInfo 609 610 func (m *ListModelsRequest) GetVerbose() bool { 611 if m != nil { 612 return m.Verbose 613 } 614 return false 615 } 616 617 func (m *ListModelsRequest) GetModelName() string { 618 if m != nil { 619 return m.ModelName 620 } 621 return "" 622 } 623 624 func (m *ListModelsRequest) GetModelVersion() string { 625 if m != nil { 626 return m.ModelVersion 627 } 628 return "" 629 } 630 631 // RollbackRequest carries the index of the configuration change transaction to rollback. 632 type RollbackRequest struct { 633 // index of the transaction that should be rolled back 634 Index github_com_onosproject_onos_api_go_onos_config_v2.Index `protobuf:"varint,1,opt,name=index,proto3,casttype=github.com/onosproject/onos-api/go/onos/config/v2.Index" json:"index,omitempty"` 635 XXX_NoUnkeyedLiteral struct{} `json:"-"` 636 XXX_unrecognized []byte `json:"-"` 637 XXX_sizecache int32 `json:"-"` 638 } 639 640 func (m *RollbackRequest) Reset() { *m = RollbackRequest{} } 641 func (m *RollbackRequest) String() string { return proto.CompactTextString(m) } 642 func (*RollbackRequest) ProtoMessage() {} 643 func (*RollbackRequest) Descriptor() ([]byte, []int) { 644 return fileDescriptor_1fd496319a120412, []int{7} 645 } 646 func (m *RollbackRequest) XXX_Unmarshal(b []byte) error { 647 return xxx_messageInfo_RollbackRequest.Unmarshal(m, b) 648 } 649 func (m *RollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 650 return xxx_messageInfo_RollbackRequest.Marshal(b, m, deterministic) 651 } 652 func (m *RollbackRequest) XXX_Merge(src proto.Message) { 653 xxx_messageInfo_RollbackRequest.Merge(m, src) 654 } 655 func (m *RollbackRequest) XXX_Size() int { 656 return xxx_messageInfo_RollbackRequest.Size(m) 657 } 658 func (m *RollbackRequest) XXX_DiscardUnknown() { 659 xxx_messageInfo_RollbackRequest.DiscardUnknown(m) 660 } 661 662 var xxx_messageInfo_RollbackRequest proto.InternalMessageInfo 663 664 func (m *RollbackRequest) GetIndex() github_com_onosproject_onos_api_go_onos_config_v2.Index { 665 if m != nil { 666 return m.Index 667 } 668 return 0 669 } 670 671 // RollbackResponse carries the response of the rollback operation 672 type RollbackResponse struct { 673 // ID of the rollback transaction 674 ID github_com_onosproject_onos_api_go_onos_config_v2.TransactionID `protobuf:"bytes,1,opt,name=id,proto3,casttype=github.com/onosproject/onos-api/go/onos/config/v2.TransactionID" json:"id,omitempty"` 675 // index of the rollback transaction 676 Index github_com_onosproject_onos_api_go_onos_config_v2.Index `protobuf:"varint,2,opt,name=index,proto3,casttype=github.com/onosproject/onos-api/go/onos/config/v2.Index" json:"index,omitempty"` 677 XXX_NoUnkeyedLiteral struct{} `json:"-"` 678 XXX_unrecognized []byte `json:"-"` 679 XXX_sizecache int32 `json:"-"` 680 } 681 682 func (m *RollbackResponse) Reset() { *m = RollbackResponse{} } 683 func (m *RollbackResponse) String() string { return proto.CompactTextString(m) } 684 func (*RollbackResponse) ProtoMessage() {} 685 func (*RollbackResponse) Descriptor() ([]byte, []int) { 686 return fileDescriptor_1fd496319a120412, []int{8} 687 } 688 func (m *RollbackResponse) XXX_Unmarshal(b []byte) error { 689 return xxx_messageInfo_RollbackResponse.Unmarshal(m, b) 690 } 691 func (m *RollbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 692 return xxx_messageInfo_RollbackResponse.Marshal(b, m, deterministic) 693 } 694 func (m *RollbackResponse) XXX_Merge(src proto.Message) { 695 xxx_messageInfo_RollbackResponse.Merge(m, src) 696 } 697 func (m *RollbackResponse) XXX_Size() int { 698 return xxx_messageInfo_RollbackResponse.Size(m) 699 } 700 func (m *RollbackResponse) XXX_DiscardUnknown() { 701 xxx_messageInfo_RollbackResponse.DiscardUnknown(m) 702 } 703 704 var xxx_messageInfo_RollbackResponse proto.InternalMessageInfo 705 706 func (m *RollbackResponse) GetID() github_com_onosproject_onos_api_go_onos_config_v2.TransactionID { 707 if m != nil { 708 return m.ID 709 } 710 return "" 711 } 712 713 func (m *RollbackResponse) GetIndex() github_com_onosproject_onos_api_go_onos_config_v2.Index { 714 if m != nil { 715 return m.Index 716 } 717 return 0 718 } 719 720 // LeafSelectionQueryRequest carries request for the selection of leaf values 721 type LeafSelectionQueryRequest struct { 722 // target is the name of the target (device) to perform the query on 723 Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` 724 // type of model plugin to perform the query on 725 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` 726 // version of model plugin to perform the query on 727 Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` 728 // selectionPath is a configuration path to a leaf in the format: 729 // /a/b[key1=index][key2=index2]/c/d where d is a leaf node 730 SelectionPath string `protobuf:"bytes,4,opt,name=selectionPath,proto3" json:"selectionPath,omitempty"` 731 // changeContext is the set of changes (e.g. from the GUI form) that have to be superimposed 732 // on the current configuration before the leaf selection can be made 733 // All the changes in this request should match the target given above 734 // optional 735 ChangeContext *gnmi.SetRequest `protobuf:"bytes,5,opt,name=changeContext,proto3" json:"changeContext,omitempty"` 736 XXX_NoUnkeyedLiteral struct{} `json:"-"` 737 XXX_unrecognized []byte `json:"-"` 738 XXX_sizecache int32 `json:"-"` 739 } 740 741 func (m *LeafSelectionQueryRequest) Reset() { *m = LeafSelectionQueryRequest{} } 742 func (m *LeafSelectionQueryRequest) String() string { return proto.CompactTextString(m) } 743 func (*LeafSelectionQueryRequest) ProtoMessage() {} 744 func (*LeafSelectionQueryRequest) Descriptor() ([]byte, []int) { 745 return fileDescriptor_1fd496319a120412, []int{9} 746 } 747 func (m *LeafSelectionQueryRequest) XXX_Unmarshal(b []byte) error { 748 return xxx_messageInfo_LeafSelectionQueryRequest.Unmarshal(m, b) 749 } 750 func (m *LeafSelectionQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 751 return xxx_messageInfo_LeafSelectionQueryRequest.Marshal(b, m, deterministic) 752 } 753 func (m *LeafSelectionQueryRequest) XXX_Merge(src proto.Message) { 754 xxx_messageInfo_LeafSelectionQueryRequest.Merge(m, src) 755 } 756 func (m *LeafSelectionQueryRequest) XXX_Size() int { 757 return xxx_messageInfo_LeafSelectionQueryRequest.Size(m) 758 } 759 func (m *LeafSelectionQueryRequest) XXX_DiscardUnknown() { 760 xxx_messageInfo_LeafSelectionQueryRequest.DiscardUnknown(m) 761 } 762 763 var xxx_messageInfo_LeafSelectionQueryRequest proto.InternalMessageInfo 764 765 func (m *LeafSelectionQueryRequest) GetTarget() string { 766 if m != nil { 767 return m.Target 768 } 769 return "" 770 } 771 772 func (m *LeafSelectionQueryRequest) GetType() string { 773 if m != nil { 774 return m.Type 775 } 776 return "" 777 } 778 779 func (m *LeafSelectionQueryRequest) GetVersion() string { 780 if m != nil { 781 return m.Version 782 } 783 return "" 784 } 785 786 func (m *LeafSelectionQueryRequest) GetSelectionPath() string { 787 if m != nil { 788 return m.SelectionPath 789 } 790 return "" 791 } 792 793 func (m *LeafSelectionQueryRequest) GetChangeContext() *gnmi.SetRequest { 794 if m != nil { 795 return m.ChangeContext 796 } 797 return nil 798 } 799 800 // LeafSelectionQueryResponse carries response for the model information query 801 type LeafSelectionQueryResponse struct { 802 // selection is an array of string values 803 Selection []string `protobuf:"bytes,1,rep,name=selection,proto3" json:"selection,omitempty"` 804 XXX_NoUnkeyedLiteral struct{} `json:"-"` 805 XXX_unrecognized []byte `json:"-"` 806 XXX_sizecache int32 `json:"-"` 807 } 808 809 func (m *LeafSelectionQueryResponse) Reset() { *m = LeafSelectionQueryResponse{} } 810 func (m *LeafSelectionQueryResponse) String() string { return proto.CompactTextString(m) } 811 func (*LeafSelectionQueryResponse) ProtoMessage() {} 812 func (*LeafSelectionQueryResponse) Descriptor() ([]byte, []int) { 813 return fileDescriptor_1fd496319a120412, []int{10} 814 } 815 func (m *LeafSelectionQueryResponse) XXX_Unmarshal(b []byte) error { 816 return xxx_messageInfo_LeafSelectionQueryResponse.Unmarshal(m, b) 817 } 818 func (m *LeafSelectionQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 819 return xxx_messageInfo_LeafSelectionQueryResponse.Marshal(b, m, deterministic) 820 } 821 func (m *LeafSelectionQueryResponse) XXX_Merge(src proto.Message) { 822 xxx_messageInfo_LeafSelectionQueryResponse.Merge(m, src) 823 } 824 func (m *LeafSelectionQueryResponse) XXX_Size() int { 825 return xxx_messageInfo_LeafSelectionQueryResponse.Size(m) 826 } 827 func (m *LeafSelectionQueryResponse) XXX_DiscardUnknown() { 828 xxx_messageInfo_LeafSelectionQueryResponse.DiscardUnknown(m) 829 } 830 831 var xxx_messageInfo_LeafSelectionQueryResponse proto.InternalMessageInfo 832 833 func (m *LeafSelectionQueryResponse) GetSelection() []string { 834 if m != nil { 835 return m.Selection 836 } 837 return nil 838 } 839 840 // ModelInfoRequest carries request for the model information 841 type ModelInfoRequest struct { 842 XXX_NoUnkeyedLiteral struct{} `json:"-"` 843 XXX_unrecognized []byte `json:"-"` 844 XXX_sizecache int32 `json:"-"` 845 } 846 847 func (m *ModelInfoRequest) Reset() { *m = ModelInfoRequest{} } 848 func (m *ModelInfoRequest) String() string { return proto.CompactTextString(m) } 849 func (*ModelInfoRequest) ProtoMessage() {} 850 func (*ModelInfoRequest) Descriptor() ([]byte, []int) { 851 return fileDescriptor_1fd496319a120412, []int{11} 852 } 853 func (m *ModelInfoRequest) XXX_Unmarshal(b []byte) error { 854 return xxx_messageInfo_ModelInfoRequest.Unmarshal(m, b) 855 } 856 func (m *ModelInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 857 return xxx_messageInfo_ModelInfoRequest.Marshal(b, m, deterministic) 858 } 859 func (m *ModelInfoRequest) XXX_Merge(src proto.Message) { 860 xxx_messageInfo_ModelInfoRequest.Merge(m, src) 861 } 862 func (m *ModelInfoRequest) XXX_Size() int { 863 return xxx_messageInfo_ModelInfoRequest.Size(m) 864 } 865 func (m *ModelInfoRequest) XXX_DiscardUnknown() { 866 xxx_messageInfo_ModelInfoRequest.DiscardUnknown(m) 867 } 868 869 var xxx_messageInfo_ModelInfoRequest proto.InternalMessageInfo 870 871 // ModelInfoResponse carries response for the model information query 872 type ModelInfoResponse struct { 873 ModelInfo *ModelInfo `protobuf:"bytes,1,opt,name=modelInfo,proto3" json:"modelInfo,omitempty"` 874 XXX_NoUnkeyedLiteral struct{} `json:"-"` 875 XXX_unrecognized []byte `json:"-"` 876 XXX_sizecache int32 `json:"-"` 877 } 878 879 func (m *ModelInfoResponse) Reset() { *m = ModelInfoResponse{} } 880 func (m *ModelInfoResponse) String() string { return proto.CompactTextString(m) } 881 func (*ModelInfoResponse) ProtoMessage() {} 882 func (*ModelInfoResponse) Descriptor() ([]byte, []int) { 883 return fileDescriptor_1fd496319a120412, []int{12} 884 } 885 func (m *ModelInfoResponse) XXX_Unmarshal(b []byte) error { 886 return xxx_messageInfo_ModelInfoResponse.Unmarshal(m, b) 887 } 888 func (m *ModelInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 889 return xxx_messageInfo_ModelInfoResponse.Marshal(b, m, deterministic) 890 } 891 func (m *ModelInfoResponse) XXX_Merge(src proto.Message) { 892 xxx_messageInfo_ModelInfoResponse.Merge(m, src) 893 } 894 func (m *ModelInfoResponse) XXX_Size() int { 895 return xxx_messageInfo_ModelInfoResponse.Size(m) 896 } 897 func (m *ModelInfoResponse) XXX_DiscardUnknown() { 898 xxx_messageInfo_ModelInfoResponse.DiscardUnknown(m) 899 } 900 901 var xxx_messageInfo_ModelInfoResponse proto.InternalMessageInfo 902 903 func (m *ModelInfoResponse) GetModelInfo() *ModelInfo { 904 if m != nil { 905 return m.ModelInfo 906 } 907 return nil 908 } 909 910 // ValidateConfigRequest carries configuration data to be validated as a JSON blob 911 // 912 // Deprecated: Do not use. 913 type ValidateConfigRequest struct { 914 Json []byte `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"` 915 XXX_NoUnkeyedLiteral struct{} `json:"-"` 916 XXX_unrecognized []byte `json:"-"` 917 XXX_sizecache int32 `json:"-"` 918 } 919 920 func (m *ValidateConfigRequest) Reset() { *m = ValidateConfigRequest{} } 921 func (m *ValidateConfigRequest) String() string { return proto.CompactTextString(m) } 922 func (*ValidateConfigRequest) ProtoMessage() {} 923 func (*ValidateConfigRequest) Descriptor() ([]byte, []int) { 924 return fileDescriptor_1fd496319a120412, []int{13} 925 } 926 func (m *ValidateConfigRequest) XXX_Unmarshal(b []byte) error { 927 return xxx_messageInfo_ValidateConfigRequest.Unmarshal(m, b) 928 } 929 func (m *ValidateConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 930 return xxx_messageInfo_ValidateConfigRequest.Marshal(b, m, deterministic) 931 } 932 func (m *ValidateConfigRequest) XXX_Merge(src proto.Message) { 933 xxx_messageInfo_ValidateConfigRequest.Merge(m, src) 934 } 935 func (m *ValidateConfigRequest) XXX_Size() int { 936 return xxx_messageInfo_ValidateConfigRequest.Size(m) 937 } 938 func (m *ValidateConfigRequest) XXX_DiscardUnknown() { 939 xxx_messageInfo_ValidateConfigRequest.DiscardUnknown(m) 940 } 941 942 var xxx_messageInfo_ValidateConfigRequest proto.InternalMessageInfo 943 944 func (m *ValidateConfigRequest) GetJson() []byte { 945 if m != nil { 946 return m.Json 947 } 948 return nil 949 } 950 951 // ValidateConfigRequestChunk carries configuration data to be validated as a JSON blob 952 // Recommended maximum size is 100kB 953 type ValidateConfigRequestChunk struct { 954 Json []byte `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"` 955 XXX_NoUnkeyedLiteral struct{} `json:"-"` 956 XXX_unrecognized []byte `json:"-"` 957 XXX_sizecache int32 `json:"-"` 958 } 959 960 func (m *ValidateConfigRequestChunk) Reset() { *m = ValidateConfigRequestChunk{} } 961 func (m *ValidateConfigRequestChunk) String() string { return proto.CompactTextString(m) } 962 func (*ValidateConfigRequestChunk) ProtoMessage() {} 963 func (*ValidateConfigRequestChunk) Descriptor() ([]byte, []int) { 964 return fileDescriptor_1fd496319a120412, []int{14} 965 } 966 func (m *ValidateConfigRequestChunk) XXX_Unmarshal(b []byte) error { 967 return xxx_messageInfo_ValidateConfigRequestChunk.Unmarshal(m, b) 968 } 969 func (m *ValidateConfigRequestChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 970 return xxx_messageInfo_ValidateConfigRequestChunk.Marshal(b, m, deterministic) 971 } 972 func (m *ValidateConfigRequestChunk) XXX_Merge(src proto.Message) { 973 xxx_messageInfo_ValidateConfigRequestChunk.Merge(m, src) 974 } 975 func (m *ValidateConfigRequestChunk) XXX_Size() int { 976 return xxx_messageInfo_ValidateConfigRequestChunk.Size(m) 977 } 978 func (m *ValidateConfigRequestChunk) XXX_DiscardUnknown() { 979 xxx_messageInfo_ValidateConfigRequestChunk.DiscardUnknown(m) 980 } 981 982 var xxx_messageInfo_ValidateConfigRequestChunk proto.InternalMessageInfo 983 984 func (m *ValidateConfigRequestChunk) GetJson() []byte { 985 if m != nil { 986 return m.Json 987 } 988 return nil 989 } 990 991 // ValidateConfigRequest carries configuration data to be validated as a JSON blob 992 type ValidateConfigChunkRequest struct { 993 Json []byte `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"` 994 XXX_NoUnkeyedLiteral struct{} `json:"-"` 995 XXX_unrecognized []byte `json:"-"` 996 XXX_sizecache int32 `json:"-"` 997 } 998 999 func (m *ValidateConfigChunkRequest) Reset() { *m = ValidateConfigChunkRequest{} } 1000 func (m *ValidateConfigChunkRequest) String() string { return proto.CompactTextString(m) } 1001 func (*ValidateConfigChunkRequest) ProtoMessage() {} 1002 func (*ValidateConfigChunkRequest) Descriptor() ([]byte, []int) { 1003 return fileDescriptor_1fd496319a120412, []int{15} 1004 } 1005 func (m *ValidateConfigChunkRequest) XXX_Unmarshal(b []byte) error { 1006 return xxx_messageInfo_ValidateConfigChunkRequest.Unmarshal(m, b) 1007 } 1008 func (m *ValidateConfigChunkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1009 return xxx_messageInfo_ValidateConfigChunkRequest.Marshal(b, m, deterministic) 1010 } 1011 func (m *ValidateConfigChunkRequest) XXX_Merge(src proto.Message) { 1012 xxx_messageInfo_ValidateConfigChunkRequest.Merge(m, src) 1013 } 1014 func (m *ValidateConfigChunkRequest) XXX_Size() int { 1015 return xxx_messageInfo_ValidateConfigChunkRequest.Size(m) 1016 } 1017 func (m *ValidateConfigChunkRequest) XXX_DiscardUnknown() { 1018 xxx_messageInfo_ValidateConfigChunkRequest.DiscardUnknown(m) 1019 } 1020 1021 var xxx_messageInfo_ValidateConfigChunkRequest proto.InternalMessageInfo 1022 1023 func (m *ValidateConfigChunkRequest) GetJson() []byte { 1024 if m != nil { 1025 return m.Json 1026 } 1027 return nil 1028 } 1029 1030 // ValidateConfigResponse carries the result of the validation 1031 type ValidateConfigResponse struct { 1032 Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` 1033 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` 1034 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1035 XXX_unrecognized []byte `json:"-"` 1036 XXX_sizecache int32 `json:"-"` 1037 } 1038 1039 func (m *ValidateConfigResponse) Reset() { *m = ValidateConfigResponse{} } 1040 func (m *ValidateConfigResponse) String() string { return proto.CompactTextString(m) } 1041 func (*ValidateConfigResponse) ProtoMessage() {} 1042 func (*ValidateConfigResponse) Descriptor() ([]byte, []int) { 1043 return fileDescriptor_1fd496319a120412, []int{16} 1044 } 1045 func (m *ValidateConfigResponse) XXX_Unmarshal(b []byte) error { 1046 return xxx_messageInfo_ValidateConfigResponse.Unmarshal(m, b) 1047 } 1048 func (m *ValidateConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1049 return xxx_messageInfo_ValidateConfigResponse.Marshal(b, m, deterministic) 1050 } 1051 func (m *ValidateConfigResponse) XXX_Merge(src proto.Message) { 1052 xxx_messageInfo_ValidateConfigResponse.Merge(m, src) 1053 } 1054 func (m *ValidateConfigResponse) XXX_Size() int { 1055 return xxx_messageInfo_ValidateConfigResponse.Size(m) 1056 } 1057 func (m *ValidateConfigResponse) XXX_DiscardUnknown() { 1058 xxx_messageInfo_ValidateConfigResponse.DiscardUnknown(m) 1059 } 1060 1061 var xxx_messageInfo_ValidateConfigResponse proto.InternalMessageInfo 1062 1063 func (m *ValidateConfigResponse) GetValid() bool { 1064 if m != nil { 1065 return m.Valid 1066 } 1067 return false 1068 } 1069 1070 func (m *ValidateConfigResponse) GetMessage() string { 1071 if m != nil { 1072 return m.Message 1073 } 1074 return "" 1075 } 1076 1077 // PathValuesRequest carries configuration change as a JSON blob 1078 type PathValuesRequest struct { 1079 PathPrefix string `protobuf:"bytes,1,opt,name=pathPrefix,proto3" json:"pathPrefix,omitempty"` 1080 Json []byte `protobuf:"bytes,2,opt,name=json,proto3" json:"json,omitempty"` 1081 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1082 XXX_unrecognized []byte `json:"-"` 1083 XXX_sizecache int32 `json:"-"` 1084 } 1085 1086 func (m *PathValuesRequest) Reset() { *m = PathValuesRequest{} } 1087 func (m *PathValuesRequest) String() string { return proto.CompactTextString(m) } 1088 func (*PathValuesRequest) ProtoMessage() {} 1089 func (*PathValuesRequest) Descriptor() ([]byte, []int) { 1090 return fileDescriptor_1fd496319a120412, []int{17} 1091 } 1092 func (m *PathValuesRequest) XXX_Unmarshal(b []byte) error { 1093 return xxx_messageInfo_PathValuesRequest.Unmarshal(m, b) 1094 } 1095 func (m *PathValuesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1096 return xxx_messageInfo_PathValuesRequest.Marshal(b, m, deterministic) 1097 } 1098 func (m *PathValuesRequest) XXX_Merge(src proto.Message) { 1099 xxx_messageInfo_PathValuesRequest.Merge(m, src) 1100 } 1101 func (m *PathValuesRequest) XXX_Size() int { 1102 return xxx_messageInfo_PathValuesRequest.Size(m) 1103 } 1104 func (m *PathValuesRequest) XXX_DiscardUnknown() { 1105 xxx_messageInfo_PathValuesRequest.DiscardUnknown(m) 1106 } 1107 1108 var xxx_messageInfo_PathValuesRequest proto.InternalMessageInfo 1109 1110 func (m *PathValuesRequest) GetPathPrefix() string { 1111 if m != nil { 1112 return m.PathPrefix 1113 } 1114 return "" 1115 } 1116 1117 func (m *PathValuesRequest) GetJson() []byte { 1118 if m != nil { 1119 return m.Json 1120 } 1121 return nil 1122 } 1123 1124 // PathValuesResponse carries a list of typed path values 1125 type PathValuesResponse struct { 1126 PathValues []*v2.PathValue `protobuf:"bytes,1,rep,name=pathValues,proto3" json:"pathValues,omitempty"` 1127 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1128 XXX_unrecognized []byte `json:"-"` 1129 XXX_sizecache int32 `json:"-"` 1130 } 1131 1132 func (m *PathValuesResponse) Reset() { *m = PathValuesResponse{} } 1133 func (m *PathValuesResponse) String() string { return proto.CompactTextString(m) } 1134 func (*PathValuesResponse) ProtoMessage() {} 1135 func (*PathValuesResponse) Descriptor() ([]byte, []int) { 1136 return fileDescriptor_1fd496319a120412, []int{18} 1137 } 1138 func (m *PathValuesResponse) XXX_Unmarshal(b []byte) error { 1139 return xxx_messageInfo_PathValuesResponse.Unmarshal(m, b) 1140 } 1141 func (m *PathValuesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1142 return xxx_messageInfo_PathValuesResponse.Marshal(b, m, deterministic) 1143 } 1144 func (m *PathValuesResponse) XXX_Merge(src proto.Message) { 1145 xxx_messageInfo_PathValuesResponse.Merge(m, src) 1146 } 1147 func (m *PathValuesResponse) XXX_Size() int { 1148 return xxx_messageInfo_PathValuesResponse.Size(m) 1149 } 1150 func (m *PathValuesResponse) XXX_DiscardUnknown() { 1151 xxx_messageInfo_PathValuesResponse.DiscardUnknown(m) 1152 } 1153 1154 var xxx_messageInfo_PathValuesResponse proto.InternalMessageInfo 1155 1156 func (m *PathValuesResponse) GetPathValues() []*v2.PathValue { 1157 if m != nil { 1158 return m.PathValues 1159 } 1160 return nil 1161 } 1162 1163 // ValueSelectionRequest carries the necessary parts to form a selection context 1164 // 1165 // Deprecated: Do not use. 1166 type ValueSelectionRequest struct { 1167 // selectionPath is a configuration path to a leaf in the format: 1168 // /a/b[key1=index][key2=index2]/c/d where d is a leaf node 1169 SelectionPath string `protobuf:"bytes,1,opt,name=selectionPath,proto3" json:"selectionPath,omitempty"` 1170 // configJson is a JSON tree view of the complete Configuration for a Target 1171 ConfigJson []byte `protobuf:"bytes,2,opt,name=configJson,proto3" json:"configJson,omitempty"` 1172 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1173 XXX_unrecognized []byte `json:"-"` 1174 XXX_sizecache int32 `json:"-"` 1175 } 1176 1177 func (m *ValueSelectionRequest) Reset() { *m = ValueSelectionRequest{} } 1178 func (m *ValueSelectionRequest) String() string { return proto.CompactTextString(m) } 1179 func (*ValueSelectionRequest) ProtoMessage() {} 1180 func (*ValueSelectionRequest) Descriptor() ([]byte, []int) { 1181 return fileDescriptor_1fd496319a120412, []int{19} 1182 } 1183 func (m *ValueSelectionRequest) XXX_Unmarshal(b []byte) error { 1184 return xxx_messageInfo_ValueSelectionRequest.Unmarshal(m, b) 1185 } 1186 func (m *ValueSelectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1187 return xxx_messageInfo_ValueSelectionRequest.Marshal(b, m, deterministic) 1188 } 1189 func (m *ValueSelectionRequest) XXX_Merge(src proto.Message) { 1190 xxx_messageInfo_ValueSelectionRequest.Merge(m, src) 1191 } 1192 func (m *ValueSelectionRequest) XXX_Size() int { 1193 return xxx_messageInfo_ValueSelectionRequest.Size(m) 1194 } 1195 func (m *ValueSelectionRequest) XXX_DiscardUnknown() { 1196 xxx_messageInfo_ValueSelectionRequest.DiscardUnknown(m) 1197 } 1198 1199 var xxx_messageInfo_ValueSelectionRequest proto.InternalMessageInfo 1200 1201 func (m *ValueSelectionRequest) GetSelectionPath() string { 1202 if m != nil { 1203 return m.SelectionPath 1204 } 1205 return "" 1206 } 1207 1208 func (m *ValueSelectionRequest) GetConfigJson() []byte { 1209 if m != nil { 1210 return m.ConfigJson 1211 } 1212 return nil 1213 } 1214 1215 // ValueSelectionRequestChunk carries the necessary parts to form a selection context 1216 // Recommended maximum size is 100kB 1217 type ValueSelectionRequestChunk struct { 1218 // selectionPath is a configuration path to a leaf in the format: 1219 // /a/b[key1=index][key2=index2]/c/d where d is a leaf node 1220 SelectionPath string `protobuf:"bytes,1,opt,name=selectionPath,proto3" json:"selectionPath,omitempty"` 1221 // configJson is a JSON tree view of the complete Configuration for a Target 1222 ConfigJson []byte `protobuf:"bytes,2,opt,name=configJson,proto3" json:"configJson,omitempty"` 1223 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1224 XXX_unrecognized []byte `json:"-"` 1225 XXX_sizecache int32 `json:"-"` 1226 } 1227 1228 func (m *ValueSelectionRequestChunk) Reset() { *m = ValueSelectionRequestChunk{} } 1229 func (m *ValueSelectionRequestChunk) String() string { return proto.CompactTextString(m) } 1230 func (*ValueSelectionRequestChunk) ProtoMessage() {} 1231 func (*ValueSelectionRequestChunk) Descriptor() ([]byte, []int) { 1232 return fileDescriptor_1fd496319a120412, []int{20} 1233 } 1234 func (m *ValueSelectionRequestChunk) XXX_Unmarshal(b []byte) error { 1235 return xxx_messageInfo_ValueSelectionRequestChunk.Unmarshal(m, b) 1236 } 1237 func (m *ValueSelectionRequestChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1238 return xxx_messageInfo_ValueSelectionRequestChunk.Marshal(b, m, deterministic) 1239 } 1240 func (m *ValueSelectionRequestChunk) XXX_Merge(src proto.Message) { 1241 xxx_messageInfo_ValueSelectionRequestChunk.Merge(m, src) 1242 } 1243 func (m *ValueSelectionRequestChunk) XXX_Size() int { 1244 return xxx_messageInfo_ValueSelectionRequestChunk.Size(m) 1245 } 1246 func (m *ValueSelectionRequestChunk) XXX_DiscardUnknown() { 1247 xxx_messageInfo_ValueSelectionRequestChunk.DiscardUnknown(m) 1248 } 1249 1250 var xxx_messageInfo_ValueSelectionRequestChunk proto.InternalMessageInfo 1251 1252 func (m *ValueSelectionRequestChunk) GetSelectionPath() string { 1253 if m != nil { 1254 return m.SelectionPath 1255 } 1256 return "" 1257 } 1258 1259 func (m *ValueSelectionRequestChunk) GetConfigJson() []byte { 1260 if m != nil { 1261 return m.ConfigJson 1262 } 1263 return nil 1264 } 1265 1266 // ValueSelectionResponse returns the result of applying the selection rules to the selection context 1267 type ValueSelectionResponse struct { 1268 // selection is an array of string values 1269 Selection []string `protobuf:"bytes,1,rep,name=selection,proto3" json:"selection,omitempty"` 1270 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1271 XXX_unrecognized []byte `json:"-"` 1272 XXX_sizecache int32 `json:"-"` 1273 } 1274 1275 func (m *ValueSelectionResponse) Reset() { *m = ValueSelectionResponse{} } 1276 func (m *ValueSelectionResponse) String() string { return proto.CompactTextString(m) } 1277 func (*ValueSelectionResponse) ProtoMessage() {} 1278 func (*ValueSelectionResponse) Descriptor() ([]byte, []int) { 1279 return fileDescriptor_1fd496319a120412, []int{21} 1280 } 1281 func (m *ValueSelectionResponse) XXX_Unmarshal(b []byte) error { 1282 return xxx_messageInfo_ValueSelectionResponse.Unmarshal(m, b) 1283 } 1284 func (m *ValueSelectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1285 return xxx_messageInfo_ValueSelectionResponse.Marshal(b, m, deterministic) 1286 } 1287 func (m *ValueSelectionResponse) XXX_Merge(src proto.Message) { 1288 xxx_messageInfo_ValueSelectionResponse.Merge(m, src) 1289 } 1290 func (m *ValueSelectionResponse) XXX_Size() int { 1291 return xxx_messageInfo_ValueSelectionResponse.Size(m) 1292 } 1293 func (m *ValueSelectionResponse) XXX_DiscardUnknown() { 1294 xxx_messageInfo_ValueSelectionResponse.DiscardUnknown(m) 1295 } 1296 1297 var xxx_messageInfo_ValueSelectionResponse proto.InternalMessageInfo 1298 1299 func (m *ValueSelectionResponse) GetSelection() []string { 1300 if m != nil { 1301 return m.Selection 1302 } 1303 return nil 1304 } 1305 1306 type GetTransactionRequest struct { 1307 // ID of transaction to get 1308 ID github_com_onosproject_onos_api_go_onos_config_v2.TransactionID `protobuf:"bytes,1,opt,name=id,proto3,casttype=github.com/onosproject/onos-api/go/onos/config/v2.TransactionID" json:"id,omitempty"` 1309 // index of transaction to get; leave 0 for lookup by ID; if specified takes precedence 1310 Index github_com_onosproject_onos_api_go_onos_config_v2.Index `protobuf:"varint,2,opt,name=index,proto3,casttype=github.com/onosproject/onos-api/go/onos/config/v2.Index" json:"index,omitempty"` 1311 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1312 XXX_unrecognized []byte `json:"-"` 1313 XXX_sizecache int32 `json:"-"` 1314 } 1315 1316 func (m *GetTransactionRequest) Reset() { *m = GetTransactionRequest{} } 1317 func (m *GetTransactionRequest) String() string { return proto.CompactTextString(m) } 1318 func (*GetTransactionRequest) ProtoMessage() {} 1319 func (*GetTransactionRequest) Descriptor() ([]byte, []int) { 1320 return fileDescriptor_1fd496319a120412, []int{22} 1321 } 1322 func (m *GetTransactionRequest) XXX_Unmarshal(b []byte) error { 1323 return xxx_messageInfo_GetTransactionRequest.Unmarshal(m, b) 1324 } 1325 func (m *GetTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1326 return xxx_messageInfo_GetTransactionRequest.Marshal(b, m, deterministic) 1327 } 1328 func (m *GetTransactionRequest) XXX_Merge(src proto.Message) { 1329 xxx_messageInfo_GetTransactionRequest.Merge(m, src) 1330 } 1331 func (m *GetTransactionRequest) XXX_Size() int { 1332 return xxx_messageInfo_GetTransactionRequest.Size(m) 1333 } 1334 func (m *GetTransactionRequest) XXX_DiscardUnknown() { 1335 xxx_messageInfo_GetTransactionRequest.DiscardUnknown(m) 1336 } 1337 1338 var xxx_messageInfo_GetTransactionRequest proto.InternalMessageInfo 1339 1340 func (m *GetTransactionRequest) GetID() github_com_onosproject_onos_api_go_onos_config_v2.TransactionID { 1341 if m != nil { 1342 return m.ID 1343 } 1344 return "" 1345 } 1346 1347 func (m *GetTransactionRequest) GetIndex() github_com_onosproject_onos_api_go_onos_config_v2.Index { 1348 if m != nil { 1349 return m.Index 1350 } 1351 return 0 1352 } 1353 1354 type GetTransactionResponse struct { 1355 Transaction *v2.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` 1356 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1357 XXX_unrecognized []byte `json:"-"` 1358 XXX_sizecache int32 `json:"-"` 1359 } 1360 1361 func (m *GetTransactionResponse) Reset() { *m = GetTransactionResponse{} } 1362 func (m *GetTransactionResponse) String() string { return proto.CompactTextString(m) } 1363 func (*GetTransactionResponse) ProtoMessage() {} 1364 func (*GetTransactionResponse) Descriptor() ([]byte, []int) { 1365 return fileDescriptor_1fd496319a120412, []int{23} 1366 } 1367 func (m *GetTransactionResponse) XXX_Unmarshal(b []byte) error { 1368 return xxx_messageInfo_GetTransactionResponse.Unmarshal(m, b) 1369 } 1370 func (m *GetTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1371 return xxx_messageInfo_GetTransactionResponse.Marshal(b, m, deterministic) 1372 } 1373 func (m *GetTransactionResponse) XXX_Merge(src proto.Message) { 1374 xxx_messageInfo_GetTransactionResponse.Merge(m, src) 1375 } 1376 func (m *GetTransactionResponse) XXX_Size() int { 1377 return xxx_messageInfo_GetTransactionResponse.Size(m) 1378 } 1379 func (m *GetTransactionResponse) XXX_DiscardUnknown() { 1380 xxx_messageInfo_GetTransactionResponse.DiscardUnknown(m) 1381 } 1382 1383 var xxx_messageInfo_GetTransactionResponse proto.InternalMessageInfo 1384 1385 func (m *GetTransactionResponse) GetTransaction() *v2.Transaction { 1386 if m != nil { 1387 return m.Transaction 1388 } 1389 return nil 1390 } 1391 1392 type ListTransactionsRequest struct { 1393 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1394 XXX_unrecognized []byte `json:"-"` 1395 XXX_sizecache int32 `json:"-"` 1396 } 1397 1398 func (m *ListTransactionsRequest) Reset() { *m = ListTransactionsRequest{} } 1399 func (m *ListTransactionsRequest) String() string { return proto.CompactTextString(m) } 1400 func (*ListTransactionsRequest) ProtoMessage() {} 1401 func (*ListTransactionsRequest) Descriptor() ([]byte, []int) { 1402 return fileDescriptor_1fd496319a120412, []int{24} 1403 } 1404 func (m *ListTransactionsRequest) XXX_Unmarshal(b []byte) error { 1405 return xxx_messageInfo_ListTransactionsRequest.Unmarshal(m, b) 1406 } 1407 func (m *ListTransactionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1408 return xxx_messageInfo_ListTransactionsRequest.Marshal(b, m, deterministic) 1409 } 1410 func (m *ListTransactionsRequest) XXX_Merge(src proto.Message) { 1411 xxx_messageInfo_ListTransactionsRequest.Merge(m, src) 1412 } 1413 func (m *ListTransactionsRequest) XXX_Size() int { 1414 return xxx_messageInfo_ListTransactionsRequest.Size(m) 1415 } 1416 func (m *ListTransactionsRequest) XXX_DiscardUnknown() { 1417 xxx_messageInfo_ListTransactionsRequest.DiscardUnknown(m) 1418 } 1419 1420 var xxx_messageInfo_ListTransactionsRequest proto.InternalMessageInfo 1421 1422 type ListTransactionsResponse struct { 1423 Transaction *v2.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` 1424 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1425 XXX_unrecognized []byte `json:"-"` 1426 XXX_sizecache int32 `json:"-"` 1427 } 1428 1429 func (m *ListTransactionsResponse) Reset() { *m = ListTransactionsResponse{} } 1430 func (m *ListTransactionsResponse) String() string { return proto.CompactTextString(m) } 1431 func (*ListTransactionsResponse) ProtoMessage() {} 1432 func (*ListTransactionsResponse) Descriptor() ([]byte, []int) { 1433 return fileDescriptor_1fd496319a120412, []int{25} 1434 } 1435 func (m *ListTransactionsResponse) XXX_Unmarshal(b []byte) error { 1436 return xxx_messageInfo_ListTransactionsResponse.Unmarshal(m, b) 1437 } 1438 func (m *ListTransactionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1439 return xxx_messageInfo_ListTransactionsResponse.Marshal(b, m, deterministic) 1440 } 1441 func (m *ListTransactionsResponse) XXX_Merge(src proto.Message) { 1442 xxx_messageInfo_ListTransactionsResponse.Merge(m, src) 1443 } 1444 func (m *ListTransactionsResponse) XXX_Size() int { 1445 return xxx_messageInfo_ListTransactionsResponse.Size(m) 1446 } 1447 func (m *ListTransactionsResponse) XXX_DiscardUnknown() { 1448 xxx_messageInfo_ListTransactionsResponse.DiscardUnknown(m) 1449 } 1450 1451 var xxx_messageInfo_ListTransactionsResponse proto.InternalMessageInfo 1452 1453 func (m *ListTransactionsResponse) GetTransaction() *v2.Transaction { 1454 if m != nil { 1455 return m.Transaction 1456 } 1457 return nil 1458 } 1459 1460 type WatchTransactionsRequest struct { 1461 ID github_com_onosproject_onos_api_go_onos_config_v2.TransactionID `protobuf:"bytes,1,opt,name=id,proto3,casttype=github.com/onosproject/onos-api/go/onos/config/v2.TransactionID" json:"id,omitempty"` 1462 Noreplay bool `protobuf:"varint,2,opt,name=noreplay,proto3" json:"noreplay,omitempty"` 1463 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1464 XXX_unrecognized []byte `json:"-"` 1465 XXX_sizecache int32 `json:"-"` 1466 } 1467 1468 func (m *WatchTransactionsRequest) Reset() { *m = WatchTransactionsRequest{} } 1469 func (m *WatchTransactionsRequest) String() string { return proto.CompactTextString(m) } 1470 func (*WatchTransactionsRequest) ProtoMessage() {} 1471 func (*WatchTransactionsRequest) Descriptor() ([]byte, []int) { 1472 return fileDescriptor_1fd496319a120412, []int{26} 1473 } 1474 func (m *WatchTransactionsRequest) XXX_Unmarshal(b []byte) error { 1475 return xxx_messageInfo_WatchTransactionsRequest.Unmarshal(m, b) 1476 } 1477 func (m *WatchTransactionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1478 return xxx_messageInfo_WatchTransactionsRequest.Marshal(b, m, deterministic) 1479 } 1480 func (m *WatchTransactionsRequest) XXX_Merge(src proto.Message) { 1481 xxx_messageInfo_WatchTransactionsRequest.Merge(m, src) 1482 } 1483 func (m *WatchTransactionsRequest) XXX_Size() int { 1484 return xxx_messageInfo_WatchTransactionsRequest.Size(m) 1485 } 1486 func (m *WatchTransactionsRequest) XXX_DiscardUnknown() { 1487 xxx_messageInfo_WatchTransactionsRequest.DiscardUnknown(m) 1488 } 1489 1490 var xxx_messageInfo_WatchTransactionsRequest proto.InternalMessageInfo 1491 1492 func (m *WatchTransactionsRequest) GetID() github_com_onosproject_onos_api_go_onos_config_v2.TransactionID { 1493 if m != nil { 1494 return m.ID 1495 } 1496 return "" 1497 } 1498 1499 func (m *WatchTransactionsRequest) GetNoreplay() bool { 1500 if m != nil { 1501 return m.Noreplay 1502 } 1503 return false 1504 } 1505 1506 type WatchTransactionsResponse struct { 1507 v2.TransactionEvent `protobuf:"bytes,1,opt,name=event,proto3,embedded=event" json:"event"` 1508 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1509 XXX_unrecognized []byte `json:"-"` 1510 XXX_sizecache int32 `json:"-"` 1511 } 1512 1513 func (m *WatchTransactionsResponse) Reset() { *m = WatchTransactionsResponse{} } 1514 func (m *WatchTransactionsResponse) String() string { return proto.CompactTextString(m) } 1515 func (*WatchTransactionsResponse) ProtoMessage() {} 1516 func (*WatchTransactionsResponse) Descriptor() ([]byte, []int) { 1517 return fileDescriptor_1fd496319a120412, []int{27} 1518 } 1519 func (m *WatchTransactionsResponse) XXX_Unmarshal(b []byte) error { 1520 return xxx_messageInfo_WatchTransactionsResponse.Unmarshal(m, b) 1521 } 1522 func (m *WatchTransactionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1523 return xxx_messageInfo_WatchTransactionsResponse.Marshal(b, m, deterministic) 1524 } 1525 func (m *WatchTransactionsResponse) XXX_Merge(src proto.Message) { 1526 xxx_messageInfo_WatchTransactionsResponse.Merge(m, src) 1527 } 1528 func (m *WatchTransactionsResponse) XXX_Size() int { 1529 return xxx_messageInfo_WatchTransactionsResponse.Size(m) 1530 } 1531 func (m *WatchTransactionsResponse) XXX_DiscardUnknown() { 1532 xxx_messageInfo_WatchTransactionsResponse.DiscardUnknown(m) 1533 } 1534 1535 var xxx_messageInfo_WatchTransactionsResponse proto.InternalMessageInfo 1536 1537 type GetConfigurationRequest struct { 1538 ConfigurationID github_com_onosproject_onos_api_go_onos_config_v2.ConfigurationID `protobuf:"bytes,1,opt,name=configuration_id,json=configurationId,proto3,casttype=github.com/onosproject/onos-api/go/onos/config/v2.ConfigurationID" json:"configuration_id,omitempty"` 1539 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1540 XXX_unrecognized []byte `json:"-"` 1541 XXX_sizecache int32 `json:"-"` 1542 } 1543 1544 func (m *GetConfigurationRequest) Reset() { *m = GetConfigurationRequest{} } 1545 func (m *GetConfigurationRequest) String() string { return proto.CompactTextString(m) } 1546 func (*GetConfigurationRequest) ProtoMessage() {} 1547 func (*GetConfigurationRequest) Descriptor() ([]byte, []int) { 1548 return fileDescriptor_1fd496319a120412, []int{28} 1549 } 1550 func (m *GetConfigurationRequest) XXX_Unmarshal(b []byte) error { 1551 return xxx_messageInfo_GetConfigurationRequest.Unmarshal(m, b) 1552 } 1553 func (m *GetConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1554 return xxx_messageInfo_GetConfigurationRequest.Marshal(b, m, deterministic) 1555 } 1556 func (m *GetConfigurationRequest) XXX_Merge(src proto.Message) { 1557 xxx_messageInfo_GetConfigurationRequest.Merge(m, src) 1558 } 1559 func (m *GetConfigurationRequest) XXX_Size() int { 1560 return xxx_messageInfo_GetConfigurationRequest.Size(m) 1561 } 1562 func (m *GetConfigurationRequest) XXX_DiscardUnknown() { 1563 xxx_messageInfo_GetConfigurationRequest.DiscardUnknown(m) 1564 } 1565 1566 var xxx_messageInfo_GetConfigurationRequest proto.InternalMessageInfo 1567 1568 func (m *GetConfigurationRequest) GetConfigurationID() github_com_onosproject_onos_api_go_onos_config_v2.ConfigurationID { 1569 if m != nil { 1570 return m.ConfigurationID 1571 } 1572 return "" 1573 } 1574 1575 type GetConfigurationResponse struct { 1576 Configuration *v2.Configuration `protobuf:"bytes,1,opt,name=configuration,proto3" json:"configuration,omitempty"` 1577 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1578 XXX_unrecognized []byte `json:"-"` 1579 XXX_sizecache int32 `json:"-"` 1580 } 1581 1582 func (m *GetConfigurationResponse) Reset() { *m = GetConfigurationResponse{} } 1583 func (m *GetConfigurationResponse) String() string { return proto.CompactTextString(m) } 1584 func (*GetConfigurationResponse) ProtoMessage() {} 1585 func (*GetConfigurationResponse) Descriptor() ([]byte, []int) { 1586 return fileDescriptor_1fd496319a120412, []int{29} 1587 } 1588 func (m *GetConfigurationResponse) XXX_Unmarshal(b []byte) error { 1589 return xxx_messageInfo_GetConfigurationResponse.Unmarshal(m, b) 1590 } 1591 func (m *GetConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1592 return xxx_messageInfo_GetConfigurationResponse.Marshal(b, m, deterministic) 1593 } 1594 func (m *GetConfigurationResponse) XXX_Merge(src proto.Message) { 1595 xxx_messageInfo_GetConfigurationResponse.Merge(m, src) 1596 } 1597 func (m *GetConfigurationResponse) XXX_Size() int { 1598 return xxx_messageInfo_GetConfigurationResponse.Size(m) 1599 } 1600 func (m *GetConfigurationResponse) XXX_DiscardUnknown() { 1601 xxx_messageInfo_GetConfigurationResponse.DiscardUnknown(m) 1602 } 1603 1604 var xxx_messageInfo_GetConfigurationResponse proto.InternalMessageInfo 1605 1606 func (m *GetConfigurationResponse) GetConfiguration() *v2.Configuration { 1607 if m != nil { 1608 return m.Configuration 1609 } 1610 return nil 1611 } 1612 1613 type ListConfigurationsRequest struct { 1614 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1615 XXX_unrecognized []byte `json:"-"` 1616 XXX_sizecache int32 `json:"-"` 1617 } 1618 1619 func (m *ListConfigurationsRequest) Reset() { *m = ListConfigurationsRequest{} } 1620 func (m *ListConfigurationsRequest) String() string { return proto.CompactTextString(m) } 1621 func (*ListConfigurationsRequest) ProtoMessage() {} 1622 func (*ListConfigurationsRequest) Descriptor() ([]byte, []int) { 1623 return fileDescriptor_1fd496319a120412, []int{30} 1624 } 1625 func (m *ListConfigurationsRequest) XXX_Unmarshal(b []byte) error { 1626 return xxx_messageInfo_ListConfigurationsRequest.Unmarshal(m, b) 1627 } 1628 func (m *ListConfigurationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1629 return xxx_messageInfo_ListConfigurationsRequest.Marshal(b, m, deterministic) 1630 } 1631 func (m *ListConfigurationsRequest) XXX_Merge(src proto.Message) { 1632 xxx_messageInfo_ListConfigurationsRequest.Merge(m, src) 1633 } 1634 func (m *ListConfigurationsRequest) XXX_Size() int { 1635 return xxx_messageInfo_ListConfigurationsRequest.Size(m) 1636 } 1637 func (m *ListConfigurationsRequest) XXX_DiscardUnknown() { 1638 xxx_messageInfo_ListConfigurationsRequest.DiscardUnknown(m) 1639 } 1640 1641 var xxx_messageInfo_ListConfigurationsRequest proto.InternalMessageInfo 1642 1643 type ListConfigurationsResponse struct { 1644 Configuration *v2.Configuration `protobuf:"bytes,1,opt,name=configuration,proto3" json:"configuration,omitempty"` 1645 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1646 XXX_unrecognized []byte `json:"-"` 1647 XXX_sizecache int32 `json:"-"` 1648 } 1649 1650 func (m *ListConfigurationsResponse) Reset() { *m = ListConfigurationsResponse{} } 1651 func (m *ListConfigurationsResponse) String() string { return proto.CompactTextString(m) } 1652 func (*ListConfigurationsResponse) ProtoMessage() {} 1653 func (*ListConfigurationsResponse) Descriptor() ([]byte, []int) { 1654 return fileDescriptor_1fd496319a120412, []int{31} 1655 } 1656 func (m *ListConfigurationsResponse) XXX_Unmarshal(b []byte) error { 1657 return xxx_messageInfo_ListConfigurationsResponse.Unmarshal(m, b) 1658 } 1659 func (m *ListConfigurationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1660 return xxx_messageInfo_ListConfigurationsResponse.Marshal(b, m, deterministic) 1661 } 1662 func (m *ListConfigurationsResponse) XXX_Merge(src proto.Message) { 1663 xxx_messageInfo_ListConfigurationsResponse.Merge(m, src) 1664 } 1665 func (m *ListConfigurationsResponse) XXX_Size() int { 1666 return xxx_messageInfo_ListConfigurationsResponse.Size(m) 1667 } 1668 func (m *ListConfigurationsResponse) XXX_DiscardUnknown() { 1669 xxx_messageInfo_ListConfigurationsResponse.DiscardUnknown(m) 1670 } 1671 1672 var xxx_messageInfo_ListConfigurationsResponse proto.InternalMessageInfo 1673 1674 func (m *ListConfigurationsResponse) GetConfiguration() *v2.Configuration { 1675 if m != nil { 1676 return m.Configuration 1677 } 1678 return nil 1679 } 1680 1681 type WatchConfigurationsRequest struct { 1682 ConfigurationID github_com_onosproject_onos_api_go_onos_config_v2.ConfigurationID `protobuf:"bytes,1,opt,name=configuration_id,json=configurationId,proto3,casttype=github.com/onosproject/onos-api/go/onos/config/v2.ConfigurationID" json:"configuration_id,omitempty"` 1683 Noreplay bool `protobuf:"varint,2,opt,name=noreplay,proto3" json:"noreplay,omitempty"` 1684 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1685 XXX_unrecognized []byte `json:"-"` 1686 XXX_sizecache int32 `json:"-"` 1687 } 1688 1689 func (m *WatchConfigurationsRequest) Reset() { *m = WatchConfigurationsRequest{} } 1690 func (m *WatchConfigurationsRequest) String() string { return proto.CompactTextString(m) } 1691 func (*WatchConfigurationsRequest) ProtoMessage() {} 1692 func (*WatchConfigurationsRequest) Descriptor() ([]byte, []int) { 1693 return fileDescriptor_1fd496319a120412, []int{32} 1694 } 1695 func (m *WatchConfigurationsRequest) XXX_Unmarshal(b []byte) error { 1696 return xxx_messageInfo_WatchConfigurationsRequest.Unmarshal(m, b) 1697 } 1698 func (m *WatchConfigurationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1699 return xxx_messageInfo_WatchConfigurationsRequest.Marshal(b, m, deterministic) 1700 } 1701 func (m *WatchConfigurationsRequest) XXX_Merge(src proto.Message) { 1702 xxx_messageInfo_WatchConfigurationsRequest.Merge(m, src) 1703 } 1704 func (m *WatchConfigurationsRequest) XXX_Size() int { 1705 return xxx_messageInfo_WatchConfigurationsRequest.Size(m) 1706 } 1707 func (m *WatchConfigurationsRequest) XXX_DiscardUnknown() { 1708 xxx_messageInfo_WatchConfigurationsRequest.DiscardUnknown(m) 1709 } 1710 1711 var xxx_messageInfo_WatchConfigurationsRequest proto.InternalMessageInfo 1712 1713 func (m *WatchConfigurationsRequest) GetConfigurationID() github_com_onosproject_onos_api_go_onos_config_v2.ConfigurationID { 1714 if m != nil { 1715 return m.ConfigurationID 1716 } 1717 return "" 1718 } 1719 1720 func (m *WatchConfigurationsRequest) GetNoreplay() bool { 1721 if m != nil { 1722 return m.Noreplay 1723 } 1724 return false 1725 } 1726 1727 type WatchConfigurationsResponse struct { 1728 v2.ConfigurationEvent `protobuf:"bytes,1,opt,name=event,proto3,embedded=event" json:"event"` 1729 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1730 XXX_unrecognized []byte `json:"-"` 1731 XXX_sizecache int32 `json:"-"` 1732 } 1733 1734 func (m *WatchConfigurationsResponse) Reset() { *m = WatchConfigurationsResponse{} } 1735 func (m *WatchConfigurationsResponse) String() string { return proto.CompactTextString(m) } 1736 func (*WatchConfigurationsResponse) ProtoMessage() {} 1737 func (*WatchConfigurationsResponse) Descriptor() ([]byte, []int) { 1738 return fileDescriptor_1fd496319a120412, []int{33} 1739 } 1740 func (m *WatchConfigurationsResponse) XXX_Unmarshal(b []byte) error { 1741 return xxx_messageInfo_WatchConfigurationsResponse.Unmarshal(m, b) 1742 } 1743 func (m *WatchConfigurationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1744 return xxx_messageInfo_WatchConfigurationsResponse.Marshal(b, m, deterministic) 1745 } 1746 func (m *WatchConfigurationsResponse) XXX_Merge(src proto.Message) { 1747 xxx_messageInfo_WatchConfigurationsResponse.Merge(m, src) 1748 } 1749 func (m *WatchConfigurationsResponse) XXX_Size() int { 1750 return xxx_messageInfo_WatchConfigurationsResponse.Size(m) 1751 } 1752 func (m *WatchConfigurationsResponse) XXX_DiscardUnknown() { 1753 xxx_messageInfo_WatchConfigurationsResponse.DiscardUnknown(m) 1754 } 1755 1756 var xxx_messageInfo_WatchConfigurationsResponse proto.InternalMessageInfo 1757 1758 func init() { 1759 proto.RegisterType((*ReadOnlySubPath)(nil), "onos.config.admin.ReadOnlySubPath") 1760 proto.RegisterType((*ReadOnlyPath)(nil), "onos.config.admin.ReadOnlyPath") 1761 proto.RegisterType((*ReadWritePath)(nil), "onos.config.admin.ReadWritePath") 1762 proto.RegisterType((*Namespace)(nil), "onos.config.admin.Namespace") 1763 proto.RegisterType((*ModelInfo)(nil), "onos.config.admin.ModelInfo") 1764 proto.RegisterType((*ModelPlugin)(nil), "onos.config.admin.ModelPlugin") 1765 proto.RegisterType((*ListModelsRequest)(nil), "onos.config.admin.ListModelsRequest") 1766 proto.RegisterType((*RollbackRequest)(nil), "onos.config.admin.RollbackRequest") 1767 proto.RegisterType((*RollbackResponse)(nil), "onos.config.admin.RollbackResponse") 1768 proto.RegisterType((*LeafSelectionQueryRequest)(nil), "onos.config.admin.LeafSelectionQueryRequest") 1769 proto.RegisterType((*LeafSelectionQueryResponse)(nil), "onos.config.admin.LeafSelectionQueryResponse") 1770 proto.RegisterType((*ModelInfoRequest)(nil), "onos.config.admin.ModelInfoRequest") 1771 proto.RegisterType((*ModelInfoResponse)(nil), "onos.config.admin.ModelInfoResponse") 1772 proto.RegisterType((*ValidateConfigRequest)(nil), "onos.config.admin.ValidateConfigRequest") 1773 proto.RegisterType((*ValidateConfigRequestChunk)(nil), "onos.config.admin.ValidateConfigRequestChunk") 1774 proto.RegisterType((*ValidateConfigChunkRequest)(nil), "onos.config.admin.ValidateConfigChunkRequest") 1775 proto.RegisterType((*ValidateConfigResponse)(nil), "onos.config.admin.ValidateConfigResponse") 1776 proto.RegisterType((*PathValuesRequest)(nil), "onos.config.admin.PathValuesRequest") 1777 proto.RegisterType((*PathValuesResponse)(nil), "onos.config.admin.PathValuesResponse") 1778 proto.RegisterType((*ValueSelectionRequest)(nil), "onos.config.admin.ValueSelectionRequest") 1779 proto.RegisterType((*ValueSelectionRequestChunk)(nil), "onos.config.admin.ValueSelectionRequestChunk") 1780 proto.RegisterType((*ValueSelectionResponse)(nil), "onos.config.admin.ValueSelectionResponse") 1781 proto.RegisterType((*GetTransactionRequest)(nil), "onos.config.admin.GetTransactionRequest") 1782 proto.RegisterType((*GetTransactionResponse)(nil), "onos.config.admin.GetTransactionResponse") 1783 proto.RegisterType((*ListTransactionsRequest)(nil), "onos.config.admin.ListTransactionsRequest") 1784 proto.RegisterType((*ListTransactionsResponse)(nil), "onos.config.admin.ListTransactionsResponse") 1785 proto.RegisterType((*WatchTransactionsRequest)(nil), "onos.config.admin.WatchTransactionsRequest") 1786 proto.RegisterType((*WatchTransactionsResponse)(nil), "onos.config.admin.WatchTransactionsResponse") 1787 proto.RegisterType((*GetConfigurationRequest)(nil), "onos.config.admin.GetConfigurationRequest") 1788 proto.RegisterType((*GetConfigurationResponse)(nil), "onos.config.admin.GetConfigurationResponse") 1789 proto.RegisterType((*ListConfigurationsRequest)(nil), "onos.config.admin.ListConfigurationsRequest") 1790 proto.RegisterType((*ListConfigurationsResponse)(nil), "onos.config.admin.ListConfigurationsResponse") 1791 proto.RegisterType((*WatchConfigurationsRequest)(nil), "onos.config.admin.WatchConfigurationsRequest") 1792 proto.RegisterType((*WatchConfigurationsResponse)(nil), "onos.config.admin.WatchConfigurationsResponse") 1793 } 1794 1795 func init() { proto.RegisterFile("onos/config/admin/admin.proto", fileDescriptor_1fd496319a120412) } 1796 1797 var fileDescriptor_1fd496319a120412 = []byte{ 1798 // 1787 bytes of a gzipped FileDescriptorProto 1799 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0xcd, 0x6f, 0x23, 0x49, 1800 0x15, 0x9f, 0xb6, 0xf3, 0x61, 0x3f, 0xc7, 0xf9, 0xa8, 0x64, 0xb3, 0x9d, 0x4e, 0x66, 0x62, 0xf5, 1801 0x0c, 0x92, 0x81, 0x1d, 0x3b, 0x32, 0xd2, 0x02, 0xb3, 0x5a, 0x2d, 0x49, 0x66, 0x94, 0x0d, 0xbb, 1802 0x4b, 0x66, 0x3b, 0xcb, 0x0c, 0x23, 0xc1, 0x5a, 0x65, 0x77, 0xa5, 0xdd, 0xb3, 0x76, 0x77, 0x4f, 1803 0x77, 0xb5, 0x89, 0xcf, 0x5c, 0xb8, 0x72, 0xe0, 0xc0, 0x89, 0xff, 0x04, 0xb8, 0x20, 0x38, 0xf2, 1804 0x17, 0xe4, 0x30, 0x67, 0x24, 0x6e, 0x1c, 0xe6, 0x84, 0xea, 0xa3, 0xdb, 0xdd, 0x76, 0xd9, 0x49, 1805 0x50, 0x90, 0xd8, 0x4b, 0xd4, 0xf5, 0xea, 0xbd, 0x7a, 0xef, 0xfd, 0xde, 0xaf, 0x5e, 0x3d, 0x07, 1806 0xee, 0xfb, 0x9e, 0x1f, 0x35, 0xbb, 0xbe, 0x77, 0xe1, 0x3a, 0x4d, 0x6c, 0x0f, 0x5c, 0x4f, 0xfc, 1807 0x6d, 0x04, 0xa1, 0x4f, 0x7d, 0xb4, 0xc1, 0xb6, 0x1b, 0x62, 0xbb, 0xc1, 0x37, 0x8c, 0x2d, 0xc7, 1808 0x77, 0x7c, 0xbe, 0xdb, 0x64, 0x5f, 0x42, 0xd1, 0x38, 0x70, 0x5c, 0xda, 0x8b, 0x3b, 0x8d, 0xae, 1809 0x3f, 0x68, 0xfa, 0x01, 0xf1, 0xe4, 0x89, 0x8e, 0x37, 0x70, 0x9b, 0x52, 0x99, 0x7d, 0xb2, 0x3f, 1810 0xd2, 0xc2, 0xc8, 0x7a, 0x1e, 0xb6, 0x9a, 0x43, 0xdc, 0x8f, 0x89, 0xdc, 0xab, 0x4d, 0xec, 0xd1, 1811 0x10, 0x7b, 0x11, 0xee, 0x52, 0xd7, 0x97, 0x81, 0x19, 0xe6, 0x84, 0x86, 0xf8, 0x8a, 0x43, 0x3c, 1812 0xd6, 0x31, 0xff, 0xa5, 0xc1, 0x9a, 0x45, 0xb0, 0x7d, 0xe6, 0xf5, 0x47, 0xe7, 0x71, 0xe7, 0x39, 1813 0xa6, 0x3d, 0xb4, 0x03, 0xa5, 0x28, 0xee, 0xb4, 0x03, 0x4c, 0x7b, 0xba, 0x56, 0xd3, 0xea, 0x65, 1814 0x6b, 0x39, 0x92, 0x5b, 0x3f, 0x02, 0xe0, 0x31, 0xb4, 0xe9, 0x28, 0x20, 0x7a, 0xa1, 0xa6, 0xd5, 1815 0x57, 0x5b, 0x3b, 0x8d, 0x2c, 0x00, 0xc3, 0x56, 0xe3, 0x05, 0xd3, 0xf8, 0x6a, 0x14, 0x10, 0xab, 1816 0x3c, 0x4c, 0x3e, 0xd1, 0x2e, 0x94, 0x99, 0x4d, 0xdb, 0x0f, 0x68, 0xa4, 0x17, 0x6b, 0xc5, 0xfa, 1817 0x82, 0x55, 0x62, 0x82, 0xb3, 0x80, 0x46, 0xa8, 0x06, 0x15, 0x9b, 0x44, 0xdd, 0xd0, 0x0d, 0x58, 1818 0x68, 0xfa, 0x02, 0x77, 0x9a, 0x15, 0xa1, 0x2d, 0x58, 0x8c, 0x3d, 0x97, 0x46, 0xfa, 0x22, 0xdf, 1819 0x13, 0x0b, 0xb4, 0x0d, 0x4b, 0xa7, 0xd1, 0xe1, 0x67, 0x64, 0xa4, 0x2f, 0xd5, 0xb4, 0x7a, 0xc9, 1820 0x92, 0x2b, 0x64, 0x40, 0xe9, 0x90, 0xd2, 0xf0, 0x67, 0x78, 0x40, 0xf4, 0x65, 0x6e, 0x90, 0xae, 1821 0x4d, 0x0c, 0x2b, 0x49, 0xc2, 0x3c, 0x25, 0x04, 0x0b, 0x99, 0x4c, 0xf9, 0x37, 0xfa, 0x38, 0x83, 1822 0x40, 0xa1, 0x56, 0xac, 0x57, 0x5a, 0x66, 0x63, 0xaa, 0xca, 0x8d, 0x09, 0xdc, 0x52, 0x94, 0xcc, 1823 0x7f, 0x16, 0xa0, 0xca, 0x36, 0x5f, 0x86, 0x2e, 0x25, 0x33, 0x9d, 0xfc, 0xf7, 0x58, 0xa6, 0x60, 1824 0x14, 0xb3, 0x60, 0x5c, 0x0f, 0xe2, 0x1e, 0x94, 0x07, 0xd8, 0xb3, 0x31, 0xf5, 0xc3, 0x11, 0x07, 1825 0xb2, 0x64, 0x8d, 0x05, 0x68, 0x0f, 0x96, 0x6d, 0x72, 0x81, 0xe3, 0x3e, 0xe5, 0x68, 0x96, 0x8f, 1826 0x0a, 0xba, 0x66, 0x25, 0x22, 0xe6, 0x33, 0xc4, 0x9e, 0xc3, 0xf0, 0x2c, 0x32, 0x9f, 0x7c, 0xc1, 1827 0x0a, 0xd0, 0x27, 0x9e, 0x43, 0x7b, 0x7a, 0x89, 0x8b, 0xe5, 0x2a, 0x5f, 0xed, 0xf2, 0x44, 0xb5, 1828 0xc7, 0x55, 0x83, 0x99, 0x55, 0xab, 0xe4, 0xab, 0xc6, 0xf6, 0x64, 0x24, 0x91, 0xbe, 0xc2, 0x5d, 1829 0xa5, 0x6b, 0xf3, 0x23, 0x28, 0x33, 0x9d, 0x28, 0xc0, 0x5d, 0x1e, 0xd1, 0xc0, 0xb7, 0xe3, 0x3e, 1830 0x91, 0x58, 0xcb, 0x15, 0x93, 0x07, 0x21, 0xb9, 0x70, 0x2f, 0x39, 0xd2, 0x65, 0x4b, 0xae, 0xcc, 1831 0x77, 0x45, 0x28, 0x7f, 0xe1, 0xdb, 0xa4, 0x7f, 0xea, 0x5d, 0xf8, 0xac, 0x4e, 0x1e, 0x73, 0x2f, 1832 0xeb, 0xc4, 0xbe, 0x91, 0x0e, 0xcb, 0x43, 0x12, 0x46, 0x0c, 0x53, 0x61, 0x9a, 0x2c, 0x51, 0x03, 1833 0x60, 0xc0, 0x4c, 0xdb, 0x36, 0xa6, 0x98, 0x93, 0xba, 0xd2, 0x5a, 0x6b, 0xf0, 0xfb, 0xcb, 0x8f, 1834 0x7c, 0x8a, 0x29, 0xb6, 0xca, 0x83, 0xe4, 0x13, 0x19, 0x69, 0x6c, 0x0b, 0x29, 0xc0, 0x49, 0x7c, 1835 0x26, 0xac, 0x38, 0x84, 0x9e, 0x53, 0x4c, 0x09, 0xb3, 0xe5, 0xe5, 0xa9, 0x5a, 0x39, 0x19, 0x7a, 1836 0x06, 0xab, 0x21, 0xc1, 0x76, 0xdb, 0xf7, 0xfa, 0x23, 0x41, 0xce, 0x65, 0xee, 0x73, 0x7f, 0x0e, 1837 0x39, 0x39, 0x33, 0x57, 0xc2, 0x2c, 0xe3, 0x3f, 0x85, 0x35, 0x7e, 0xcc, 0xaf, 0x19, 0x3d, 0xc5, 1838 0x39, 0x25, 0x7e, 0x4e, 0x6d, 0xc6, 0x39, 0x29, 0x8f, 0xad, 0x6a, 0x98, 0xa3, 0xf5, 0x27, 0xb0, 1839 0x19, 0xc5, 0x41, 0xe0, 0x87, 0x94, 0xd8, 0x6d, 0xd6, 0xd0, 0x6c, 0xd7, 0x73, 0x44, 0xc1, 0x57, 1840 0x5b, 0xab, 0x02, 0x89, 0x67, 0x52, 0x6c, 0xa1, 0x54, 0x35, 0x11, 0x45, 0xe8, 0x33, 0x40, 0x5e, 1841 0x52, 0xba, 0xf6, 0x00, 0x07, 0x01, 0xb7, 0x07, 0x1e, 0xcd, 0x9e, 0x22, 0x9a, 0xb4, 0xce, 0xd6, 1842 0x46, 0x6a, 0xf7, 0x85, 0x34, 0x43, 0x07, 0xb0, 0x19, 0xf9, 0x31, 0xed, 0x75, 0xfc, 0xd8, 0xb3, 1843 0x7f, 0x1e, 0x91, 0xe7, 0xa2, 0xde, 0x15, 0x4e, 0x32, 0xd5, 0x96, 0xf9, 0x07, 0x0d, 0x2a, 0xbc, 1844 0x52, 0xcf, 0xfb, 0xb1, 0xe3, 0x7a, 0x68, 0x15, 0x0a, 0xae, 0x2d, 0x8b, 0x5f, 0x70, 0x6d, 0xc6, 1845 0x3a, 0xe2, 0xd9, 0x81, 0xef, 0x7a, 0x54, 0xd6, 0x3e, 0x5d, 0xa3, 0x03, 0x58, 0x70, 0xbd, 0x0b, 1846 0x9f, 0xdf, 0x41, 0x75, 0xb0, 0x29, 0xad, 0x2c, 0xae, 0xc9, 0x28, 0x18, 0x51, 0x4c, 0xe3, 0x88, 1847 0xf3, 0xbe, 0x6c, 0xc9, 0x15, 0xbb, 0x5a, 0x24, 0x0c, 0xfd, 0x50, 0x92, 0x5e, 0x2c, 0xcc, 0x37, 1848 0xb0, 0xf1, 0xb9, 0x1b, 0x51, 0x7e, 0x48, 0x64, 0x91, 0x37, 0x31, 0x89, 0xa8, 0xe4, 0x62, 0xc7, 1849 0x8f, 0x04, 0x45, 0x4b, 0x56, 0xb2, 0x44, 0xf7, 0x13, 0x2e, 0x72, 0xfe, 0x8a, 0x60, 0x05, 0xf5, 1850 0xf8, 0xfd, 0x79, 0x08, 0x55, 0xb1, 0x9d, 0x50, 0x59, 0xb4, 0x8e, 0x15, 0x2e, 0x7c, 0x21, 0x64, 1851 0xa6, 0x0d, 0x6b, 0x96, 0xdf, 0xef, 0x77, 0x70, 0xf7, 0x9b, 0xc4, 0xe1, 0x97, 0xb0, 0xe8, 0x7a, 1852 0x36, 0xb9, 0xe4, 0xee, 0x16, 0x8e, 0x3e, 0x7a, 0x77, 0xb5, 0xff, 0xc3, 0xec, 0x33, 0xe6, 0xf9, 1853 0x51, 0x10, 0xfa, 0xaf, 0x49, 0x97, 0xf2, 0xef, 0xc7, 0x38, 0x70, 0x9b, 0x8e, 0xdf, 0xcc, 0xbf, 1854 0x3c, 0x8d, 0x53, 0x76, 0x84, 0x25, 0x4e, 0x32, 0xff, 0xa2, 0xc1, 0xfa, 0xd8, 0x4d, 0x14, 0xf8, 1855 0x5e, 0x44, 0xd0, 0xab, 0x31, 0xf2, 0x47, 0xa7, 0x6f, 0xaf, 0xf6, 0x0b, 0xa7, 0x4f, 0xdf, 0x5d, 1856 0xed, 0x7f, 0x72, 0x7b, 0x57, 0x5f, 0x8d, 0x9f, 0xc1, 0xd3, 0xa7, 0xbc, 0x88, 0x69, 0x0a, 0x85, 1857 0x3b, 0x4b, 0xe1, 0xcf, 0x1a, 0xec, 0x7c, 0x4e, 0xf0, 0xc5, 0x39, 0xe9, 0x13, 0xee, 0xea, 0xcb, 1858 0x98, 0x84, 0xa3, 0x04, 0xb3, 0x6d, 0x58, 0xa2, 0x38, 0x74, 0x08, 0x4d, 0x5a, 0x90, 0x58, 0xb1, 1859 0xe6, 0x92, 0xb6, 0xfa, 0xb2, 0xc5, 0xbf, 0xb3, 0xcd, 0xa5, 0x98, 0x6f, 0x2e, 0x8f, 0xa0, 0x1a, 1860 0x25, 0xc7, 0xb3, 0xcb, 0x26, 0x1b, 0x7a, 0x5e, 0x88, 0x3e, 0x84, 0x6a, 0xb7, 0xc7, 0x5a, 0xf1, 1861 0xb1, 0xef, 0x51, 0x72, 0x49, 0x79, 0xdf, 0xa8, 0xb4, 0xd6, 0xc5, 0xdd, 0x3b, 0x27, 0x54, 0x06, 1862 0x65, 0xe5, 0xd5, 0xcc, 0x27, 0x60, 0xa8, 0x12, 0x90, 0xd5, 0xd8, 0x83, 0x72, 0xea, 0x46, 0xd7, 1863 0x78, 0xbb, 0x1d, 0x0b, 0x4c, 0x04, 0xeb, 0x63, 0x6a, 0x8b, 0xe3, 0xcd, 0x33, 0xd8, 0xc8, 0xc8, 1864 0xe4, 0x31, 0x4f, 0x40, 0x30, 0x90, 0x09, 0x39, 0x16, 0xd7, 0xdd, 0x93, 0xb1, 0xba, 0xd9, 0x84, 1865 0xf7, 0x5e, 0xe0, 0xbe, 0x6b, 0x63, 0xca, 0x62, 0xbe, 0x70, 0x9d, 0x04, 0x5d, 0x04, 0x0b, 0xaf, 1866 0x23, 0x1e, 0x96, 0x56, 0x5f, 0xb1, 0xf8, 0xf7, 0x93, 0x82, 0xae, 0x99, 0x07, 0x60, 0x28, 0x0d, 1867 0x8e, 0x7b, 0xb1, 0xf7, 0x8d, 0xca, 0x6a, 0xda, 0x82, 0xab, 0xce, 0xf1, 0x63, 0x7e, 0x0a, 0xdb, 1868 0x93, 0x3e, 0x64, 0xaa, 0x5b, 0xb0, 0x38, 0x64, 0x3b, 0xf2, 0x5a, 0x8a, 0x05, 0xab, 0xee, 0x80, 1869 0x44, 0x11, 0x76, 0x92, 0xa2, 0x27, 0x4b, 0xf3, 0x04, 0x36, 0x58, 0xfd, 0xf8, 0xf3, 0x9e, 0xde, 1870 0xee, 0x07, 0x00, 0xac, 0x1b, 0xcb, 0xbe, 0x25, 0xc8, 0x93, 0x91, 0xa4, 0x21, 0x15, 0x32, 0x21, 1871 0x9d, 0x01, 0xca, 0x1e, 0x24, 0xc3, 0xf9, 0xb1, 0x38, 0x49, 0x48, 0x79, 0x05, 0x2b, 0xd3, 0xb3, 1872 0x45, 0x6a, 0x67, 0x65, 0x94, 0x4d, 0xcc, 0x81, 0x8f, 0x49, 0x4a, 0x8d, 0x24, 0xba, 0x29, 0x42, 1873 0x6a, 0x2a, 0x42, 0x3e, 0x00, 0x10, 0x1e, 0x7e, 0x3a, 0x8e, 0x34, 0x23, 0xe1, 0xa5, 0xea, 0x70, 1874 0xe0, 0xa7, 0x5d, 0x88, 0x52, 0xdd, 0x89, 0x1f, 0xf3, 0x43, 0x5e, 0xaa, 0x9c, 0x8f, 0x1b, 0x91, 1875 0xfb, 0xaf, 0x1a, 0xbc, 0x77, 0x42, 0x68, 0xa6, 0x8d, 0x24, 0xf9, 0x7f, 0xbb, 0x5a, 0xd4, 0x4b, 1876 0xd8, 0x9e, 0x4c, 0x43, 0xe6, 0xff, 0x31, 0x54, 0x32, 0xbf, 0x15, 0xe4, 0xbd, 0xdc, 0x9d, 0x24, 1877 0x47, 0xd6, 0x32, 0xab, 0x6f, 0xee, 0xc0, 0xfb, 0xec, 0x5d, 0xca, 0xec, 0x27, 0xfc, 0x35, 0x5f, 1878 0x81, 0x3e, 0xbd, 0x75, 0x37, 0x5e, 0x7f, 0xa7, 0x81, 0xfe, 0x12, 0xd3, 0x6e, 0x4f, 0xe1, 0xf7, 1879 0x7f, 0x59, 0x19, 0x03, 0x4a, 0x9e, 0x1f, 0x92, 0xa0, 0x8f, 0x47, 0xbc, 0x38, 0x25, 0x2b, 0x5d, 1880 0x9b, 0xbf, 0x82, 0x1d, 0x45, 0x48, 0x32, 0xdf, 0x9f, 0xc0, 0x22, 0x19, 0x12, 0x8f, 0xca, 0x4c, 1881 0x6b, 0x73, 0x32, 0x7d, 0xc6, 0xf4, 0x8e, 0x4a, 0x7f, 0xbf, 0xda, 0xbf, 0xf7, 0x8f, 0xab, 0x7d, 1882 0xcd, 0x12, 0x86, 0xe6, 0x1f, 0x35, 0x78, 0xff, 0x84, 0xd0, 0xe3, 0xec, 0xaf, 0xb6, 0x24, 0xe3, 1883 0xdf, 0x68, 0xb0, 0x9e, 0xfb, 0x39, 0xd7, 0x4e, 0x01, 0xf8, 0xc5, 0xdb, 0xab, 0xfd, 0xb5, 0x9c, 1884 0x11, 0x47, 0xe3, 0xf0, 0xf6, 0x68, 0x4c, 0x1c, 0x62, 0xad, 0xe5, 0x3c, 0x9e, 0xda, 0x66, 0x1b, 1885 0xf4, 0xe9, 0x00, 0x65, 0xfe, 0xc7, 0x50, 0xcd, 0xa9, 0x4b, 0x1c, 0xee, 0x4f, 0xe2, 0x90, 0xb7, 1886 0xce, 0xdb, 0x98, 0xbb, 0xb0, 0xc3, 0x08, 0x95, 0xd3, 0x49, 0xd9, 0x86, 0xc1, 0x50, 0x6d, 0xde, 1887 0xa5, 0xff, 0x3f, 0x69, 0x60, 0xf0, 0x12, 0x2b, 0x23, 0xf8, 0xff, 0xa8, 0xc2, 0x5c, 0x8a, 0x62, 1888 0xd8, 0x55, 0xc6, 0x2f, 0x41, 0x3a, 0xca, 0x93, 0xd4, 0x9c, 0x0b, 0x8e, 0x9a, 0xa6, 0xad, 0xbf, 1889 0x15, 0x00, 0x09, 0xbd, 0x43, 0xf6, 0x9a, 0x9f, 0x93, 0x70, 0xe8, 0x76, 0x09, 0xfa, 0x1a, 0xb6, 1890 0x58, 0x75, 0x2c, 0xe2, 0xb8, 0x11, 0x25, 0x21, 0xb1, 0xc5, 0x20, 0x8b, 0x1e, 0x29, 0x06, 0x80, 1891 0xa9, 0x39, 0xd7, 0x78, 0x30, 0x6b, 0x4c, 0x10, 0x83, 0xfa, 0x81, 0x86, 0xbe, 0x86, 0xcd, 0x64, 1892 0x88, 0xcc, 0x5c, 0x25, 0xa4, 0xfc, 0x9d, 0x9e, 0x9f, 0x69, 0x8d, 0x87, 0x73, 0x75, 0x24, 0x34, 1893 0x6f, 0x00, 0x4d, 0x0f, 0x48, 0xe8, 0x03, 0x55, 0xf4, 0xb3, 0x06, 0x41, 0xe3, 0xf1, 0x0d, 0xb5, 1894 0x85, 0xcb, 0xd6, 0xef, 0x17, 0x01, 0x65, 0x92, 0x4c, 0x90, 0x7c, 0x05, 0x2b, 0x27, 0x84, 0x8e, 1895 0x7f, 0xa3, 0x3e, 0x9c, 0x3b, 0x42, 0x49, 0xd7, 0x8f, 0xe6, 0x2b, 0xc9, 0x24, 0x5f, 0xc3, 0x6a, 1896 0x7e, 0x9e, 0x41, 0x75, 0x85, 0x9d, 0x72, 0xac, 0x32, 0xbe, 0x7b, 0x03, 0x4d, 0xe1, 0xc6, 0x2c, 1897 0xfe, 0xb6, 0xa0, 0xa1, 0x68, 0x72, 0xa0, 0xe3, 0xaf, 0x3d, 0xb1, 0xd1, 0xe3, 0x9b, 0xba, 0xe4, 1898 0x06, 0xb7, 0xf0, 0x5b, 0xd7, 0xd0, 0x2f, 0xa1, 0x7a, 0x42, 0xe8, 0x78, 0x40, 0x52, 0xd2, 0x6f, 1899 0x6a, 0x10, 0x33, 0xbe, 0x73, 0x8d, 0x96, 0x84, 0x6f, 0x00, 0x1b, 0x27, 0x84, 0xe6, 0xc7, 0x8c, 1900 0x59, 0x08, 0x4e, 0x4f, 0x3b, 0xb3, 0x32, 0x51, 0xcc, 0x2c, 0x02, 0xc1, 0x21, 0x6f, 0xb7, 0x79, 1901 0x8d, 0x6b, 0x40, 0x9c, 0x31, 0x63, 0xdd, 0xc2, 0x75, 0x5d, 0x6b, 0xbd, 0x2d, 0x00, 0xca, 0xdc, 1902 0xb1, 0x84, 0x97, 0x0e, 0xac, 0xe6, 0x27, 0x0c, 0x65, 0xea, 0xca, 0x59, 0x4a, 0xe9, 0x5f, 0x3d, 1903 0xae, 0x98, 0xf7, 0x90, 0x0f, 0xeb, 0x93, 0x63, 0x05, 0xfa, 0xde, 0x8c, 0x36, 0xa2, 0x18, 0x0f, 1904 0x8c, 0xef, 0xdf, 0x48, 0x37, 0x71, 0x77, 0xa0, 0xa1, 0x10, 0x36, 0xa6, 0x1e, 0x76, 0xa4, 0x3a, 1905 0x65, 0xd6, 0x44, 0x62, 0x7c, 0x70, 0x33, 0xe5, 0xb1, 0xcf, 0xd6, 0xbf, 0x0b, 0xb0, 0x95, 0x6b, 1906 0xb7, 0x09, 0xcc, 0x03, 0x58, 0x9f, 0x7c, 0x64, 0x95, 0xd9, 0xcf, 0x18, 0x15, 0x94, 0xd9, 0xcf, 1907 0x7a, 0xb5, 0xcd, 0x7b, 0x28, 0x06, 0x34, 0xfd, 0xaa, 0xaa, 0xfb, 0xde, 0xac, 0x97, 0x59, 0xdd, 1908 0xf7, 0x66, 0x3e, 0xd5, 0x1c, 0xf2, 0x4b, 0xd8, 0x54, 0x3c, 0x54, 0x4a, 0x5a, 0xcf, 0x7e, 0x90, 1909 0x8d, 0xc6, 0x4d, 0xd5, 0xc7, 0x9e, 0x3b, 0x4b, 0xfc, 0x1f, 0xe1, 0x3f, 0xf8, 0x4f, 0x00, 0x00, 1910 0x00, 0xff, 0xff, 0x6c, 0xa1, 0x2e, 0x56, 0xe6, 0x17, 0x00, 0x00, 1911 } 1912 1913 // Reference imports to suppress errors if they are not otherwise used. 1914 var _ context.Context 1915 var _ grpc.ClientConn 1916 1917 // This is a compile-time assertion to ensure that this generated file 1918 // is compatible with the grpc package it is being compiled against. 1919 const _ = grpc.SupportPackageIsVersion4 1920 1921 // ConfigAdminServiceClient is the client API for ConfigAdminService service. 1922 // 1923 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1924 type ConfigAdminServiceClient interface { 1925 // ListRegisteredModels returns a stream of registered models. 1926 ListRegisteredModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (ConfigAdminService_ListRegisteredModelsClient, error) 1927 // RollbackTransaction rolls back the specified configuration change transaction. 1928 RollbackTransaction(ctx context.Context, in *RollbackRequest, opts ...grpc.CallOption) (*RollbackResponse, error) 1929 // LeafSelectionQuery selects values allowable for leaf. 1930 // It supports the ROC GUI by supplying a list of valid leaf values based off an 1931 // XPath query defined in a 'leaf-selection' YANG extension 1932 // Calls on GetValueSelection RPC on Model Plugin 1933 LeafSelectionQuery(ctx context.Context, in *LeafSelectionQueryRequest, opts ...grpc.CallOption) (*LeafSelectionQueryResponse, error) 1934 } 1935 1936 type configAdminServiceClient struct { 1937 cc *grpc.ClientConn 1938 } 1939 1940 func NewConfigAdminServiceClient(cc *grpc.ClientConn) ConfigAdminServiceClient { 1941 return &configAdminServiceClient{cc} 1942 } 1943 1944 func (c *configAdminServiceClient) ListRegisteredModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (ConfigAdminService_ListRegisteredModelsClient, error) { 1945 stream, err := c.cc.NewStream(ctx, &_ConfigAdminService_serviceDesc.Streams[0], "/onos.config.admin.ConfigAdminService/ListRegisteredModels", opts...) 1946 if err != nil { 1947 return nil, err 1948 } 1949 x := &configAdminServiceListRegisteredModelsClient{stream} 1950 if err := x.ClientStream.SendMsg(in); err != nil { 1951 return nil, err 1952 } 1953 if err := x.ClientStream.CloseSend(); err != nil { 1954 return nil, err 1955 } 1956 return x, nil 1957 } 1958 1959 type ConfigAdminService_ListRegisteredModelsClient interface { 1960 Recv() (*ModelPlugin, error) 1961 grpc.ClientStream 1962 } 1963 1964 type configAdminServiceListRegisteredModelsClient struct { 1965 grpc.ClientStream 1966 } 1967 1968 func (x *configAdminServiceListRegisteredModelsClient) Recv() (*ModelPlugin, error) { 1969 m := new(ModelPlugin) 1970 if err := x.ClientStream.RecvMsg(m); err != nil { 1971 return nil, err 1972 } 1973 return m, nil 1974 } 1975 1976 func (c *configAdminServiceClient) RollbackTransaction(ctx context.Context, in *RollbackRequest, opts ...grpc.CallOption) (*RollbackResponse, error) { 1977 out := new(RollbackResponse) 1978 err := c.cc.Invoke(ctx, "/onos.config.admin.ConfigAdminService/RollbackTransaction", in, out, opts...) 1979 if err != nil { 1980 return nil, err 1981 } 1982 return out, nil 1983 } 1984 1985 func (c *configAdminServiceClient) LeafSelectionQuery(ctx context.Context, in *LeafSelectionQueryRequest, opts ...grpc.CallOption) (*LeafSelectionQueryResponse, error) { 1986 out := new(LeafSelectionQueryResponse) 1987 err := c.cc.Invoke(ctx, "/onos.config.admin.ConfigAdminService/LeafSelectionQuery", in, out, opts...) 1988 if err != nil { 1989 return nil, err 1990 } 1991 return out, nil 1992 } 1993 1994 // ConfigAdminServiceServer is the server API for ConfigAdminService service. 1995 type ConfigAdminServiceServer interface { 1996 // ListRegisteredModels returns a stream of registered models. 1997 ListRegisteredModels(*ListModelsRequest, ConfigAdminService_ListRegisteredModelsServer) error 1998 // RollbackTransaction rolls back the specified configuration change transaction. 1999 RollbackTransaction(context.Context, *RollbackRequest) (*RollbackResponse, error) 2000 // LeafSelectionQuery selects values allowable for leaf. 2001 // It supports the ROC GUI by supplying a list of valid leaf values based off an 2002 // XPath query defined in a 'leaf-selection' YANG extension 2003 // Calls on GetValueSelection RPC on Model Plugin 2004 LeafSelectionQuery(context.Context, *LeafSelectionQueryRequest) (*LeafSelectionQueryResponse, error) 2005 } 2006 2007 // UnimplementedConfigAdminServiceServer can be embedded to have forward compatible implementations. 2008 type UnimplementedConfigAdminServiceServer struct { 2009 } 2010 2011 func (*UnimplementedConfigAdminServiceServer) ListRegisteredModels(req *ListModelsRequest, srv ConfigAdminService_ListRegisteredModelsServer) error { 2012 return status.Errorf(codes.Unimplemented, "method ListRegisteredModels not implemented") 2013 } 2014 func (*UnimplementedConfigAdminServiceServer) RollbackTransaction(ctx context.Context, req *RollbackRequest) (*RollbackResponse, error) { 2015 return nil, status.Errorf(codes.Unimplemented, "method RollbackTransaction not implemented") 2016 } 2017 func (*UnimplementedConfigAdminServiceServer) LeafSelectionQuery(ctx context.Context, req *LeafSelectionQueryRequest) (*LeafSelectionQueryResponse, error) { 2018 return nil, status.Errorf(codes.Unimplemented, "method LeafSelectionQuery not implemented") 2019 } 2020 2021 func RegisterConfigAdminServiceServer(s *grpc.Server, srv ConfigAdminServiceServer) { 2022 s.RegisterService(&_ConfigAdminService_serviceDesc, srv) 2023 } 2024 2025 func _ConfigAdminService_ListRegisteredModels_Handler(srv interface{}, stream grpc.ServerStream) error { 2026 m := new(ListModelsRequest) 2027 if err := stream.RecvMsg(m); err != nil { 2028 return err 2029 } 2030 return srv.(ConfigAdminServiceServer).ListRegisteredModels(m, &configAdminServiceListRegisteredModelsServer{stream}) 2031 } 2032 2033 type ConfigAdminService_ListRegisteredModelsServer interface { 2034 Send(*ModelPlugin) error 2035 grpc.ServerStream 2036 } 2037 2038 type configAdminServiceListRegisteredModelsServer struct { 2039 grpc.ServerStream 2040 } 2041 2042 func (x *configAdminServiceListRegisteredModelsServer) Send(m *ModelPlugin) error { 2043 return x.ServerStream.SendMsg(m) 2044 } 2045 2046 func _ConfigAdminService_RollbackTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2047 in := new(RollbackRequest) 2048 if err := dec(in); err != nil { 2049 return nil, err 2050 } 2051 if interceptor == nil { 2052 return srv.(ConfigAdminServiceServer).RollbackTransaction(ctx, in) 2053 } 2054 info := &grpc.UnaryServerInfo{ 2055 Server: srv, 2056 FullMethod: "/onos.config.admin.ConfigAdminService/RollbackTransaction", 2057 } 2058 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2059 return srv.(ConfigAdminServiceServer).RollbackTransaction(ctx, req.(*RollbackRequest)) 2060 } 2061 return interceptor(ctx, in, info, handler) 2062 } 2063 2064 func _ConfigAdminService_LeafSelectionQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2065 in := new(LeafSelectionQueryRequest) 2066 if err := dec(in); err != nil { 2067 return nil, err 2068 } 2069 if interceptor == nil { 2070 return srv.(ConfigAdminServiceServer).LeafSelectionQuery(ctx, in) 2071 } 2072 info := &grpc.UnaryServerInfo{ 2073 Server: srv, 2074 FullMethod: "/onos.config.admin.ConfigAdminService/LeafSelectionQuery", 2075 } 2076 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2077 return srv.(ConfigAdminServiceServer).LeafSelectionQuery(ctx, req.(*LeafSelectionQueryRequest)) 2078 } 2079 return interceptor(ctx, in, info, handler) 2080 } 2081 2082 var _ConfigAdminService_serviceDesc = grpc.ServiceDesc{ 2083 ServiceName: "onos.config.admin.ConfigAdminService", 2084 HandlerType: (*ConfigAdminServiceServer)(nil), 2085 Methods: []grpc.MethodDesc{ 2086 { 2087 MethodName: "RollbackTransaction", 2088 Handler: _ConfigAdminService_RollbackTransaction_Handler, 2089 }, 2090 { 2091 MethodName: "LeafSelectionQuery", 2092 Handler: _ConfigAdminService_LeafSelectionQuery_Handler, 2093 }, 2094 }, 2095 Streams: []grpc.StreamDesc{ 2096 { 2097 StreamName: "ListRegisteredModels", 2098 Handler: _ConfigAdminService_ListRegisteredModels_Handler, 2099 ServerStreams: true, 2100 }, 2101 }, 2102 Metadata: "onos/config/admin/admin.proto", 2103 } 2104 2105 // ModelPluginServiceClient is the client API for ModelPluginService service. 2106 // 2107 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 2108 type ModelPluginServiceClient interface { 2109 // GetModelInfo provides information about the model 2110 GetModelInfo(ctx context.Context, in *ModelInfoRequest, opts ...grpc.CallOption) (*ModelInfoResponse, error) 2111 // ValidateConfig validates the provided configuration data against the model 2112 ValidateConfig(ctx context.Context, in *ValidateConfigRequest, opts ...grpc.CallOption) (*ValidateConfigResponse, error) 2113 // ValidateConfigChunked validates the provided configuration data against the model 2114 ValidateConfigChunked(ctx context.Context, opts ...grpc.CallOption) (ModelPluginService_ValidateConfigChunkedClient, error) 2115 // GetPathValues produces list of typed path value entries from the specified configuration change JSON tree 2116 GetPathValues(ctx context.Context, in *PathValuesRequest, opts ...grpc.CallOption) (*PathValuesResponse, error) 2117 // GetValueSelection gets a list of valid options for a leaf by applying selection rules in YANG. 2118 // Replaced by GetValueSelectionChunked 2119 GetValueSelection(ctx context.Context, in *ValueSelectionRequest, opts ...grpc.CallOption) (*ValueSelectionResponse, error) 2120 // GetValueSelectionChunked gets a list of valid options for a leaf by applying selection rules in YANG. 2121 // The selection rules should be defined as an XPath expression, as an argument 2122 // to a `leaf-selection` extension in the YANG model 2123 // (Used to support the ROC GUI) 2124 GetValueSelectionChunked(ctx context.Context, opts ...grpc.CallOption) (ModelPluginService_GetValueSelectionChunkedClient, error) 2125 } 2126 2127 type modelPluginServiceClient struct { 2128 cc *grpc.ClientConn 2129 } 2130 2131 func NewModelPluginServiceClient(cc *grpc.ClientConn) ModelPluginServiceClient { 2132 return &modelPluginServiceClient{cc} 2133 } 2134 2135 func (c *modelPluginServiceClient) GetModelInfo(ctx context.Context, in *ModelInfoRequest, opts ...grpc.CallOption) (*ModelInfoResponse, error) { 2136 out := new(ModelInfoResponse) 2137 err := c.cc.Invoke(ctx, "/onos.config.admin.ModelPluginService/GetModelInfo", in, out, opts...) 2138 if err != nil { 2139 return nil, err 2140 } 2141 return out, nil 2142 } 2143 2144 // Deprecated: Do not use. 2145 func (c *modelPluginServiceClient) ValidateConfig(ctx context.Context, in *ValidateConfigRequest, opts ...grpc.CallOption) (*ValidateConfigResponse, error) { 2146 out := new(ValidateConfigResponse) 2147 err := c.cc.Invoke(ctx, "/onos.config.admin.ModelPluginService/ValidateConfig", in, out, opts...) 2148 if err != nil { 2149 return nil, err 2150 } 2151 return out, nil 2152 } 2153 2154 func (c *modelPluginServiceClient) ValidateConfigChunked(ctx context.Context, opts ...grpc.CallOption) (ModelPluginService_ValidateConfigChunkedClient, error) { 2155 stream, err := c.cc.NewStream(ctx, &_ModelPluginService_serviceDesc.Streams[0], "/onos.config.admin.ModelPluginService/ValidateConfigChunked", opts...) 2156 if err != nil { 2157 return nil, err 2158 } 2159 x := &modelPluginServiceValidateConfigChunkedClient{stream} 2160 return x, nil 2161 } 2162 2163 type ModelPluginService_ValidateConfigChunkedClient interface { 2164 Send(*ValidateConfigRequestChunk) error 2165 CloseAndRecv() (*ValidateConfigResponse, error) 2166 grpc.ClientStream 2167 } 2168 2169 type modelPluginServiceValidateConfigChunkedClient struct { 2170 grpc.ClientStream 2171 } 2172 2173 func (x *modelPluginServiceValidateConfigChunkedClient) Send(m *ValidateConfigRequestChunk) error { 2174 return x.ClientStream.SendMsg(m) 2175 } 2176 2177 func (x *modelPluginServiceValidateConfigChunkedClient) CloseAndRecv() (*ValidateConfigResponse, error) { 2178 if err := x.ClientStream.CloseSend(); err != nil { 2179 return nil, err 2180 } 2181 m := new(ValidateConfigResponse) 2182 if err := x.ClientStream.RecvMsg(m); err != nil { 2183 return nil, err 2184 } 2185 return m, nil 2186 } 2187 2188 func (c *modelPluginServiceClient) GetPathValues(ctx context.Context, in *PathValuesRequest, opts ...grpc.CallOption) (*PathValuesResponse, error) { 2189 out := new(PathValuesResponse) 2190 err := c.cc.Invoke(ctx, "/onos.config.admin.ModelPluginService/GetPathValues", in, out, opts...) 2191 if err != nil { 2192 return nil, err 2193 } 2194 return out, nil 2195 } 2196 2197 // Deprecated: Do not use. 2198 func (c *modelPluginServiceClient) GetValueSelection(ctx context.Context, in *ValueSelectionRequest, opts ...grpc.CallOption) (*ValueSelectionResponse, error) { 2199 out := new(ValueSelectionResponse) 2200 err := c.cc.Invoke(ctx, "/onos.config.admin.ModelPluginService/GetValueSelection", in, out, opts...) 2201 if err != nil { 2202 return nil, err 2203 } 2204 return out, nil 2205 } 2206 2207 func (c *modelPluginServiceClient) GetValueSelectionChunked(ctx context.Context, opts ...grpc.CallOption) (ModelPluginService_GetValueSelectionChunkedClient, error) { 2208 stream, err := c.cc.NewStream(ctx, &_ModelPluginService_serviceDesc.Streams[1], "/onos.config.admin.ModelPluginService/GetValueSelectionChunked", opts...) 2209 if err != nil { 2210 return nil, err 2211 } 2212 x := &modelPluginServiceGetValueSelectionChunkedClient{stream} 2213 return x, nil 2214 } 2215 2216 type ModelPluginService_GetValueSelectionChunkedClient interface { 2217 Send(*ValueSelectionRequestChunk) error 2218 CloseAndRecv() (*ValueSelectionResponse, error) 2219 grpc.ClientStream 2220 } 2221 2222 type modelPluginServiceGetValueSelectionChunkedClient struct { 2223 grpc.ClientStream 2224 } 2225 2226 func (x *modelPluginServiceGetValueSelectionChunkedClient) Send(m *ValueSelectionRequestChunk) error { 2227 return x.ClientStream.SendMsg(m) 2228 } 2229 2230 func (x *modelPluginServiceGetValueSelectionChunkedClient) CloseAndRecv() (*ValueSelectionResponse, error) { 2231 if err := x.ClientStream.CloseSend(); err != nil { 2232 return nil, err 2233 } 2234 m := new(ValueSelectionResponse) 2235 if err := x.ClientStream.RecvMsg(m); err != nil { 2236 return nil, err 2237 } 2238 return m, nil 2239 } 2240 2241 // ModelPluginServiceServer is the server API for ModelPluginService service. 2242 type ModelPluginServiceServer interface { 2243 // GetModelInfo provides information about the model 2244 GetModelInfo(context.Context, *ModelInfoRequest) (*ModelInfoResponse, error) 2245 // ValidateConfig validates the provided configuration data against the model 2246 ValidateConfig(context.Context, *ValidateConfigRequest) (*ValidateConfigResponse, error) 2247 // ValidateConfigChunked validates the provided configuration data against the model 2248 ValidateConfigChunked(ModelPluginService_ValidateConfigChunkedServer) error 2249 // GetPathValues produces list of typed path value entries from the specified configuration change JSON tree 2250 GetPathValues(context.Context, *PathValuesRequest) (*PathValuesResponse, error) 2251 // GetValueSelection gets a list of valid options for a leaf by applying selection rules in YANG. 2252 // Replaced by GetValueSelectionChunked 2253 GetValueSelection(context.Context, *ValueSelectionRequest) (*ValueSelectionResponse, error) 2254 // GetValueSelectionChunked gets a list of valid options for a leaf by applying selection rules in YANG. 2255 // The selection rules should be defined as an XPath expression, as an argument 2256 // to a `leaf-selection` extension in the YANG model 2257 // (Used to support the ROC GUI) 2258 GetValueSelectionChunked(ModelPluginService_GetValueSelectionChunkedServer) error 2259 } 2260 2261 // UnimplementedModelPluginServiceServer can be embedded to have forward compatible implementations. 2262 type UnimplementedModelPluginServiceServer struct { 2263 } 2264 2265 func (*UnimplementedModelPluginServiceServer) GetModelInfo(ctx context.Context, req *ModelInfoRequest) (*ModelInfoResponse, error) { 2266 return nil, status.Errorf(codes.Unimplemented, "method GetModelInfo not implemented") 2267 } 2268 func (*UnimplementedModelPluginServiceServer) ValidateConfig(ctx context.Context, req *ValidateConfigRequest) (*ValidateConfigResponse, error) { 2269 return nil, status.Errorf(codes.Unimplemented, "method ValidateConfig not implemented") 2270 } 2271 func (*UnimplementedModelPluginServiceServer) ValidateConfigChunked(srv ModelPluginService_ValidateConfigChunkedServer) error { 2272 return status.Errorf(codes.Unimplemented, "method ValidateConfigChunked not implemented") 2273 } 2274 func (*UnimplementedModelPluginServiceServer) GetPathValues(ctx context.Context, req *PathValuesRequest) (*PathValuesResponse, error) { 2275 return nil, status.Errorf(codes.Unimplemented, "method GetPathValues not implemented") 2276 } 2277 func (*UnimplementedModelPluginServiceServer) GetValueSelection(ctx context.Context, req *ValueSelectionRequest) (*ValueSelectionResponse, error) { 2278 return nil, status.Errorf(codes.Unimplemented, "method GetValueSelection not implemented") 2279 } 2280 func (*UnimplementedModelPluginServiceServer) GetValueSelectionChunked(srv ModelPluginService_GetValueSelectionChunkedServer) error { 2281 return status.Errorf(codes.Unimplemented, "method GetValueSelectionChunked not implemented") 2282 } 2283 2284 func RegisterModelPluginServiceServer(s *grpc.Server, srv ModelPluginServiceServer) { 2285 s.RegisterService(&_ModelPluginService_serviceDesc, srv) 2286 } 2287 2288 func _ModelPluginService_GetModelInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2289 in := new(ModelInfoRequest) 2290 if err := dec(in); err != nil { 2291 return nil, err 2292 } 2293 if interceptor == nil { 2294 return srv.(ModelPluginServiceServer).GetModelInfo(ctx, in) 2295 } 2296 info := &grpc.UnaryServerInfo{ 2297 Server: srv, 2298 FullMethod: "/onos.config.admin.ModelPluginService/GetModelInfo", 2299 } 2300 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2301 return srv.(ModelPluginServiceServer).GetModelInfo(ctx, req.(*ModelInfoRequest)) 2302 } 2303 return interceptor(ctx, in, info, handler) 2304 } 2305 2306 func _ModelPluginService_ValidateConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2307 in := new(ValidateConfigRequest) 2308 if err := dec(in); err != nil { 2309 return nil, err 2310 } 2311 if interceptor == nil { 2312 return srv.(ModelPluginServiceServer).ValidateConfig(ctx, in) 2313 } 2314 info := &grpc.UnaryServerInfo{ 2315 Server: srv, 2316 FullMethod: "/onos.config.admin.ModelPluginService/ValidateConfig", 2317 } 2318 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2319 return srv.(ModelPluginServiceServer).ValidateConfig(ctx, req.(*ValidateConfigRequest)) 2320 } 2321 return interceptor(ctx, in, info, handler) 2322 } 2323 2324 func _ModelPluginService_ValidateConfigChunked_Handler(srv interface{}, stream grpc.ServerStream) error { 2325 return srv.(ModelPluginServiceServer).ValidateConfigChunked(&modelPluginServiceValidateConfigChunkedServer{stream}) 2326 } 2327 2328 type ModelPluginService_ValidateConfigChunkedServer interface { 2329 SendAndClose(*ValidateConfigResponse) error 2330 Recv() (*ValidateConfigRequestChunk, error) 2331 grpc.ServerStream 2332 } 2333 2334 type modelPluginServiceValidateConfigChunkedServer struct { 2335 grpc.ServerStream 2336 } 2337 2338 func (x *modelPluginServiceValidateConfigChunkedServer) SendAndClose(m *ValidateConfigResponse) error { 2339 return x.ServerStream.SendMsg(m) 2340 } 2341 2342 func (x *modelPluginServiceValidateConfigChunkedServer) Recv() (*ValidateConfigRequestChunk, error) { 2343 m := new(ValidateConfigRequestChunk) 2344 if err := x.ServerStream.RecvMsg(m); err != nil { 2345 return nil, err 2346 } 2347 return m, nil 2348 } 2349 2350 func _ModelPluginService_GetPathValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2351 in := new(PathValuesRequest) 2352 if err := dec(in); err != nil { 2353 return nil, err 2354 } 2355 if interceptor == nil { 2356 return srv.(ModelPluginServiceServer).GetPathValues(ctx, in) 2357 } 2358 info := &grpc.UnaryServerInfo{ 2359 Server: srv, 2360 FullMethod: "/onos.config.admin.ModelPluginService/GetPathValues", 2361 } 2362 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2363 return srv.(ModelPluginServiceServer).GetPathValues(ctx, req.(*PathValuesRequest)) 2364 } 2365 return interceptor(ctx, in, info, handler) 2366 } 2367 2368 func _ModelPluginService_GetValueSelection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2369 in := new(ValueSelectionRequest) 2370 if err := dec(in); err != nil { 2371 return nil, err 2372 } 2373 if interceptor == nil { 2374 return srv.(ModelPluginServiceServer).GetValueSelection(ctx, in) 2375 } 2376 info := &grpc.UnaryServerInfo{ 2377 Server: srv, 2378 FullMethod: "/onos.config.admin.ModelPluginService/GetValueSelection", 2379 } 2380 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2381 return srv.(ModelPluginServiceServer).GetValueSelection(ctx, req.(*ValueSelectionRequest)) 2382 } 2383 return interceptor(ctx, in, info, handler) 2384 } 2385 2386 func _ModelPluginService_GetValueSelectionChunked_Handler(srv interface{}, stream grpc.ServerStream) error { 2387 return srv.(ModelPluginServiceServer).GetValueSelectionChunked(&modelPluginServiceGetValueSelectionChunkedServer{stream}) 2388 } 2389 2390 type ModelPluginService_GetValueSelectionChunkedServer interface { 2391 SendAndClose(*ValueSelectionResponse) error 2392 Recv() (*ValueSelectionRequestChunk, error) 2393 grpc.ServerStream 2394 } 2395 2396 type modelPluginServiceGetValueSelectionChunkedServer struct { 2397 grpc.ServerStream 2398 } 2399 2400 func (x *modelPluginServiceGetValueSelectionChunkedServer) SendAndClose(m *ValueSelectionResponse) error { 2401 return x.ServerStream.SendMsg(m) 2402 } 2403 2404 func (x *modelPluginServiceGetValueSelectionChunkedServer) Recv() (*ValueSelectionRequestChunk, error) { 2405 m := new(ValueSelectionRequestChunk) 2406 if err := x.ServerStream.RecvMsg(m); err != nil { 2407 return nil, err 2408 } 2409 return m, nil 2410 } 2411 2412 var _ModelPluginService_serviceDesc = grpc.ServiceDesc{ 2413 ServiceName: "onos.config.admin.ModelPluginService", 2414 HandlerType: (*ModelPluginServiceServer)(nil), 2415 Methods: []grpc.MethodDesc{ 2416 { 2417 MethodName: "GetModelInfo", 2418 Handler: _ModelPluginService_GetModelInfo_Handler, 2419 }, 2420 { 2421 MethodName: "ValidateConfig", 2422 Handler: _ModelPluginService_ValidateConfig_Handler, 2423 }, 2424 { 2425 MethodName: "GetPathValues", 2426 Handler: _ModelPluginService_GetPathValues_Handler, 2427 }, 2428 { 2429 MethodName: "GetValueSelection", 2430 Handler: _ModelPluginService_GetValueSelection_Handler, 2431 }, 2432 }, 2433 Streams: []grpc.StreamDesc{ 2434 { 2435 StreamName: "ValidateConfigChunked", 2436 Handler: _ModelPluginService_ValidateConfigChunked_Handler, 2437 ClientStreams: true, 2438 }, 2439 { 2440 StreamName: "GetValueSelectionChunked", 2441 Handler: _ModelPluginService_GetValueSelectionChunked_Handler, 2442 ClientStreams: true, 2443 }, 2444 }, 2445 Metadata: "onos/config/admin/admin.proto", 2446 } 2447 2448 // TransactionServiceClient is the client API for TransactionService service. 2449 // 2450 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 2451 type TransactionServiceClient interface { 2452 // Get transaction by its ID or index 2453 GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*GetTransactionResponse, error) 2454 // List returns all configuration transactions 2455 ListTransactions(ctx context.Context, in *ListTransactionsRequest, opts ...grpc.CallOption) (TransactionService_ListTransactionsClient, error) 2456 // Watch returns a stream of configuration transaction change notifications 2457 WatchTransactions(ctx context.Context, in *WatchTransactionsRequest, opts ...grpc.CallOption) (TransactionService_WatchTransactionsClient, error) 2458 } 2459 2460 type transactionServiceClient struct { 2461 cc *grpc.ClientConn 2462 } 2463 2464 func NewTransactionServiceClient(cc *grpc.ClientConn) TransactionServiceClient { 2465 return &transactionServiceClient{cc} 2466 } 2467 2468 func (c *transactionServiceClient) GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*GetTransactionResponse, error) { 2469 out := new(GetTransactionResponse) 2470 err := c.cc.Invoke(ctx, "/onos.config.admin.TransactionService/GetTransaction", in, out, opts...) 2471 if err != nil { 2472 return nil, err 2473 } 2474 return out, nil 2475 } 2476 2477 func (c *transactionServiceClient) ListTransactions(ctx context.Context, in *ListTransactionsRequest, opts ...grpc.CallOption) (TransactionService_ListTransactionsClient, error) { 2478 stream, err := c.cc.NewStream(ctx, &_TransactionService_serviceDesc.Streams[0], "/onos.config.admin.TransactionService/ListTransactions", opts...) 2479 if err != nil { 2480 return nil, err 2481 } 2482 x := &transactionServiceListTransactionsClient{stream} 2483 if err := x.ClientStream.SendMsg(in); err != nil { 2484 return nil, err 2485 } 2486 if err := x.ClientStream.CloseSend(); err != nil { 2487 return nil, err 2488 } 2489 return x, nil 2490 } 2491 2492 type TransactionService_ListTransactionsClient interface { 2493 Recv() (*ListTransactionsResponse, error) 2494 grpc.ClientStream 2495 } 2496 2497 type transactionServiceListTransactionsClient struct { 2498 grpc.ClientStream 2499 } 2500 2501 func (x *transactionServiceListTransactionsClient) Recv() (*ListTransactionsResponse, error) { 2502 m := new(ListTransactionsResponse) 2503 if err := x.ClientStream.RecvMsg(m); err != nil { 2504 return nil, err 2505 } 2506 return m, nil 2507 } 2508 2509 func (c *transactionServiceClient) WatchTransactions(ctx context.Context, in *WatchTransactionsRequest, opts ...grpc.CallOption) (TransactionService_WatchTransactionsClient, error) { 2510 stream, err := c.cc.NewStream(ctx, &_TransactionService_serviceDesc.Streams[1], "/onos.config.admin.TransactionService/WatchTransactions", opts...) 2511 if err != nil { 2512 return nil, err 2513 } 2514 x := &transactionServiceWatchTransactionsClient{stream} 2515 if err := x.ClientStream.SendMsg(in); err != nil { 2516 return nil, err 2517 } 2518 if err := x.ClientStream.CloseSend(); err != nil { 2519 return nil, err 2520 } 2521 return x, nil 2522 } 2523 2524 type TransactionService_WatchTransactionsClient interface { 2525 Recv() (*WatchTransactionsResponse, error) 2526 grpc.ClientStream 2527 } 2528 2529 type transactionServiceWatchTransactionsClient struct { 2530 grpc.ClientStream 2531 } 2532 2533 func (x *transactionServiceWatchTransactionsClient) Recv() (*WatchTransactionsResponse, error) { 2534 m := new(WatchTransactionsResponse) 2535 if err := x.ClientStream.RecvMsg(m); err != nil { 2536 return nil, err 2537 } 2538 return m, nil 2539 } 2540 2541 // TransactionServiceServer is the server API for TransactionService service. 2542 type TransactionServiceServer interface { 2543 // Get transaction by its ID or index 2544 GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionResponse, error) 2545 // List returns all configuration transactions 2546 ListTransactions(*ListTransactionsRequest, TransactionService_ListTransactionsServer) error 2547 // Watch returns a stream of configuration transaction change notifications 2548 WatchTransactions(*WatchTransactionsRequest, TransactionService_WatchTransactionsServer) error 2549 } 2550 2551 // UnimplementedTransactionServiceServer can be embedded to have forward compatible implementations. 2552 type UnimplementedTransactionServiceServer struct { 2553 } 2554 2555 func (*UnimplementedTransactionServiceServer) GetTransaction(ctx context.Context, req *GetTransactionRequest) (*GetTransactionResponse, error) { 2556 return nil, status.Errorf(codes.Unimplemented, "method GetTransaction not implemented") 2557 } 2558 func (*UnimplementedTransactionServiceServer) ListTransactions(req *ListTransactionsRequest, srv TransactionService_ListTransactionsServer) error { 2559 return status.Errorf(codes.Unimplemented, "method ListTransactions not implemented") 2560 } 2561 func (*UnimplementedTransactionServiceServer) WatchTransactions(req *WatchTransactionsRequest, srv TransactionService_WatchTransactionsServer) error { 2562 return status.Errorf(codes.Unimplemented, "method WatchTransactions not implemented") 2563 } 2564 2565 func RegisterTransactionServiceServer(s *grpc.Server, srv TransactionServiceServer) { 2566 s.RegisterService(&_TransactionService_serviceDesc, srv) 2567 } 2568 2569 func _TransactionService_GetTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2570 in := new(GetTransactionRequest) 2571 if err := dec(in); err != nil { 2572 return nil, err 2573 } 2574 if interceptor == nil { 2575 return srv.(TransactionServiceServer).GetTransaction(ctx, in) 2576 } 2577 info := &grpc.UnaryServerInfo{ 2578 Server: srv, 2579 FullMethod: "/onos.config.admin.TransactionService/GetTransaction", 2580 } 2581 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2582 return srv.(TransactionServiceServer).GetTransaction(ctx, req.(*GetTransactionRequest)) 2583 } 2584 return interceptor(ctx, in, info, handler) 2585 } 2586 2587 func _TransactionService_ListTransactions_Handler(srv interface{}, stream grpc.ServerStream) error { 2588 m := new(ListTransactionsRequest) 2589 if err := stream.RecvMsg(m); err != nil { 2590 return err 2591 } 2592 return srv.(TransactionServiceServer).ListTransactions(m, &transactionServiceListTransactionsServer{stream}) 2593 } 2594 2595 type TransactionService_ListTransactionsServer interface { 2596 Send(*ListTransactionsResponse) error 2597 grpc.ServerStream 2598 } 2599 2600 type transactionServiceListTransactionsServer struct { 2601 grpc.ServerStream 2602 } 2603 2604 func (x *transactionServiceListTransactionsServer) Send(m *ListTransactionsResponse) error { 2605 return x.ServerStream.SendMsg(m) 2606 } 2607 2608 func _TransactionService_WatchTransactions_Handler(srv interface{}, stream grpc.ServerStream) error { 2609 m := new(WatchTransactionsRequest) 2610 if err := stream.RecvMsg(m); err != nil { 2611 return err 2612 } 2613 return srv.(TransactionServiceServer).WatchTransactions(m, &transactionServiceWatchTransactionsServer{stream}) 2614 } 2615 2616 type TransactionService_WatchTransactionsServer interface { 2617 Send(*WatchTransactionsResponse) error 2618 grpc.ServerStream 2619 } 2620 2621 type transactionServiceWatchTransactionsServer struct { 2622 grpc.ServerStream 2623 } 2624 2625 func (x *transactionServiceWatchTransactionsServer) Send(m *WatchTransactionsResponse) error { 2626 return x.ServerStream.SendMsg(m) 2627 } 2628 2629 var _TransactionService_serviceDesc = grpc.ServiceDesc{ 2630 ServiceName: "onos.config.admin.TransactionService", 2631 HandlerType: (*TransactionServiceServer)(nil), 2632 Methods: []grpc.MethodDesc{ 2633 { 2634 MethodName: "GetTransaction", 2635 Handler: _TransactionService_GetTransaction_Handler, 2636 }, 2637 }, 2638 Streams: []grpc.StreamDesc{ 2639 { 2640 StreamName: "ListTransactions", 2641 Handler: _TransactionService_ListTransactions_Handler, 2642 ServerStreams: true, 2643 }, 2644 { 2645 StreamName: "WatchTransactions", 2646 Handler: _TransactionService_WatchTransactions_Handler, 2647 ServerStreams: true, 2648 }, 2649 }, 2650 Metadata: "onos/config/admin/admin.proto", 2651 } 2652 2653 // ConfigurationServiceClient is the client API for ConfigurationService service. 2654 // 2655 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 2656 type ConfigurationServiceClient interface { 2657 // Get configuration by its target ID 2658 GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*GetConfigurationResponse, error) 2659 // List returns all target configurations 2660 ListConfigurations(ctx context.Context, in *ListConfigurationsRequest, opts ...grpc.CallOption) (ConfigurationService_ListConfigurationsClient, error) 2661 // Watch returns a stream of configuration change notifications 2662 WatchConfigurations(ctx context.Context, in *WatchConfigurationsRequest, opts ...grpc.CallOption) (ConfigurationService_WatchConfigurationsClient, error) 2663 } 2664 2665 type configurationServiceClient struct { 2666 cc *grpc.ClientConn 2667 } 2668 2669 func NewConfigurationServiceClient(cc *grpc.ClientConn) ConfigurationServiceClient { 2670 return &configurationServiceClient{cc} 2671 } 2672 2673 func (c *configurationServiceClient) GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*GetConfigurationResponse, error) { 2674 out := new(GetConfigurationResponse) 2675 err := c.cc.Invoke(ctx, "/onos.config.admin.ConfigurationService/GetConfiguration", in, out, opts...) 2676 if err != nil { 2677 return nil, err 2678 } 2679 return out, nil 2680 } 2681 2682 func (c *configurationServiceClient) ListConfigurations(ctx context.Context, in *ListConfigurationsRequest, opts ...grpc.CallOption) (ConfigurationService_ListConfigurationsClient, error) { 2683 stream, err := c.cc.NewStream(ctx, &_ConfigurationService_serviceDesc.Streams[0], "/onos.config.admin.ConfigurationService/ListConfigurations", opts...) 2684 if err != nil { 2685 return nil, err 2686 } 2687 x := &configurationServiceListConfigurationsClient{stream} 2688 if err := x.ClientStream.SendMsg(in); err != nil { 2689 return nil, err 2690 } 2691 if err := x.ClientStream.CloseSend(); err != nil { 2692 return nil, err 2693 } 2694 return x, nil 2695 } 2696 2697 type ConfigurationService_ListConfigurationsClient interface { 2698 Recv() (*ListConfigurationsResponse, error) 2699 grpc.ClientStream 2700 } 2701 2702 type configurationServiceListConfigurationsClient struct { 2703 grpc.ClientStream 2704 } 2705 2706 func (x *configurationServiceListConfigurationsClient) Recv() (*ListConfigurationsResponse, error) { 2707 m := new(ListConfigurationsResponse) 2708 if err := x.ClientStream.RecvMsg(m); err != nil { 2709 return nil, err 2710 } 2711 return m, nil 2712 } 2713 2714 func (c *configurationServiceClient) WatchConfigurations(ctx context.Context, in *WatchConfigurationsRequest, opts ...grpc.CallOption) (ConfigurationService_WatchConfigurationsClient, error) { 2715 stream, err := c.cc.NewStream(ctx, &_ConfigurationService_serviceDesc.Streams[1], "/onos.config.admin.ConfigurationService/WatchConfigurations", opts...) 2716 if err != nil { 2717 return nil, err 2718 } 2719 x := &configurationServiceWatchConfigurationsClient{stream} 2720 if err := x.ClientStream.SendMsg(in); err != nil { 2721 return nil, err 2722 } 2723 if err := x.ClientStream.CloseSend(); err != nil { 2724 return nil, err 2725 } 2726 return x, nil 2727 } 2728 2729 type ConfigurationService_WatchConfigurationsClient interface { 2730 Recv() (*WatchConfigurationsResponse, error) 2731 grpc.ClientStream 2732 } 2733 2734 type configurationServiceWatchConfigurationsClient struct { 2735 grpc.ClientStream 2736 } 2737 2738 func (x *configurationServiceWatchConfigurationsClient) Recv() (*WatchConfigurationsResponse, error) { 2739 m := new(WatchConfigurationsResponse) 2740 if err := x.ClientStream.RecvMsg(m); err != nil { 2741 return nil, err 2742 } 2743 return m, nil 2744 } 2745 2746 // ConfigurationServiceServer is the server API for ConfigurationService service. 2747 type ConfigurationServiceServer interface { 2748 // Get configuration by its target ID 2749 GetConfiguration(context.Context, *GetConfigurationRequest) (*GetConfigurationResponse, error) 2750 // List returns all target configurations 2751 ListConfigurations(*ListConfigurationsRequest, ConfigurationService_ListConfigurationsServer) error 2752 // Watch returns a stream of configuration change notifications 2753 WatchConfigurations(*WatchConfigurationsRequest, ConfigurationService_WatchConfigurationsServer) error 2754 } 2755 2756 // UnimplementedConfigurationServiceServer can be embedded to have forward compatible implementations. 2757 type UnimplementedConfigurationServiceServer struct { 2758 } 2759 2760 func (*UnimplementedConfigurationServiceServer) GetConfiguration(ctx context.Context, req *GetConfigurationRequest) (*GetConfigurationResponse, error) { 2761 return nil, status.Errorf(codes.Unimplemented, "method GetConfiguration not implemented") 2762 } 2763 func (*UnimplementedConfigurationServiceServer) ListConfigurations(req *ListConfigurationsRequest, srv ConfigurationService_ListConfigurationsServer) error { 2764 return status.Errorf(codes.Unimplemented, "method ListConfigurations not implemented") 2765 } 2766 func (*UnimplementedConfigurationServiceServer) WatchConfigurations(req *WatchConfigurationsRequest, srv ConfigurationService_WatchConfigurationsServer) error { 2767 return status.Errorf(codes.Unimplemented, "method WatchConfigurations not implemented") 2768 } 2769 2770 func RegisterConfigurationServiceServer(s *grpc.Server, srv ConfigurationServiceServer) { 2771 s.RegisterService(&_ConfigurationService_serviceDesc, srv) 2772 } 2773 2774 func _ConfigurationService_GetConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2775 in := new(GetConfigurationRequest) 2776 if err := dec(in); err != nil { 2777 return nil, err 2778 } 2779 if interceptor == nil { 2780 return srv.(ConfigurationServiceServer).GetConfiguration(ctx, in) 2781 } 2782 info := &grpc.UnaryServerInfo{ 2783 Server: srv, 2784 FullMethod: "/onos.config.admin.ConfigurationService/GetConfiguration", 2785 } 2786 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2787 return srv.(ConfigurationServiceServer).GetConfiguration(ctx, req.(*GetConfigurationRequest)) 2788 } 2789 return interceptor(ctx, in, info, handler) 2790 } 2791 2792 func _ConfigurationService_ListConfigurations_Handler(srv interface{}, stream grpc.ServerStream) error { 2793 m := new(ListConfigurationsRequest) 2794 if err := stream.RecvMsg(m); err != nil { 2795 return err 2796 } 2797 return srv.(ConfigurationServiceServer).ListConfigurations(m, &configurationServiceListConfigurationsServer{stream}) 2798 } 2799 2800 type ConfigurationService_ListConfigurationsServer interface { 2801 Send(*ListConfigurationsResponse) error 2802 grpc.ServerStream 2803 } 2804 2805 type configurationServiceListConfigurationsServer struct { 2806 grpc.ServerStream 2807 } 2808 2809 func (x *configurationServiceListConfigurationsServer) Send(m *ListConfigurationsResponse) error { 2810 return x.ServerStream.SendMsg(m) 2811 } 2812 2813 func _ConfigurationService_WatchConfigurations_Handler(srv interface{}, stream grpc.ServerStream) error { 2814 m := new(WatchConfigurationsRequest) 2815 if err := stream.RecvMsg(m); err != nil { 2816 return err 2817 } 2818 return srv.(ConfigurationServiceServer).WatchConfigurations(m, &configurationServiceWatchConfigurationsServer{stream}) 2819 } 2820 2821 type ConfigurationService_WatchConfigurationsServer interface { 2822 Send(*WatchConfigurationsResponse) error 2823 grpc.ServerStream 2824 } 2825 2826 type configurationServiceWatchConfigurationsServer struct { 2827 grpc.ServerStream 2828 } 2829 2830 func (x *configurationServiceWatchConfigurationsServer) Send(m *WatchConfigurationsResponse) error { 2831 return x.ServerStream.SendMsg(m) 2832 } 2833 2834 var _ConfigurationService_serviceDesc = grpc.ServiceDesc{ 2835 ServiceName: "onos.config.admin.ConfigurationService", 2836 HandlerType: (*ConfigurationServiceServer)(nil), 2837 Methods: []grpc.MethodDesc{ 2838 { 2839 MethodName: "GetConfiguration", 2840 Handler: _ConfigurationService_GetConfiguration_Handler, 2841 }, 2842 }, 2843 Streams: []grpc.StreamDesc{ 2844 { 2845 StreamName: "ListConfigurations", 2846 Handler: _ConfigurationService_ListConfigurations_Handler, 2847 ServerStreams: true, 2848 }, 2849 { 2850 StreamName: "WatchConfigurations", 2851 Handler: _ConfigurationService_WatchConfigurations_Handler, 2852 ServerStreams: true, 2853 }, 2854 }, 2855 Metadata: "onos/config/admin/admin.proto", 2856 }