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