github.com/ferranbt/nomad@v0.9.3-0.20190607002617-85c449b7667c/plugins/base/proto/base.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: plugins/base/proto/base.proto 3 4 package proto 5 6 import proto "github.com/golang/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 import hclspec "github.com/hashicorp/nomad/plugins/shared/hclspec" 10 11 import ( 12 context "golang.org/x/net/context" 13 grpc "google.golang.org/grpc" 14 ) 15 16 // Reference imports to suppress errors if they are not otherwise used. 17 var _ = proto.Marshal 18 var _ = fmt.Errorf 19 var _ = math.Inf 20 21 // This is a compile-time assertion to ensure that this generated file 22 // is compatible with the proto package it is being compiled against. 23 // A compilation error at this line likely means your copy of the 24 // proto package needs to be updated. 25 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 26 27 // PluginType enumerates the type of plugins Nomad supports 28 type PluginType int32 29 30 const ( 31 PluginType_UNKNOWN PluginType = 0 32 PluginType_DRIVER PluginType = 2 33 PluginType_DEVICE PluginType = 3 34 ) 35 36 var PluginType_name = map[int32]string{ 37 0: "UNKNOWN", 38 2: "DRIVER", 39 3: "DEVICE", 40 } 41 var PluginType_value = map[string]int32{ 42 "UNKNOWN": 0, 43 "DRIVER": 2, 44 "DEVICE": 3, 45 } 46 47 func (x PluginType) String() string { 48 return proto.EnumName(PluginType_name, int32(x)) 49 } 50 func (PluginType) EnumDescriptor() ([]byte, []int) { 51 return fileDescriptor_base_6a1a5ff99a0b9e5d, []int{0} 52 } 53 54 // PluginInfoRequest is used to request the plugins basic information. 55 type PluginInfoRequest struct { 56 XXX_NoUnkeyedLiteral struct{} `json:"-"` 57 XXX_unrecognized []byte `json:"-"` 58 XXX_sizecache int32 `json:"-"` 59 } 60 61 func (m *PluginInfoRequest) Reset() { *m = PluginInfoRequest{} } 62 func (m *PluginInfoRequest) String() string { return proto.CompactTextString(m) } 63 func (*PluginInfoRequest) ProtoMessage() {} 64 func (*PluginInfoRequest) Descriptor() ([]byte, []int) { 65 return fileDescriptor_base_6a1a5ff99a0b9e5d, []int{0} 66 } 67 func (m *PluginInfoRequest) XXX_Unmarshal(b []byte) error { 68 return xxx_messageInfo_PluginInfoRequest.Unmarshal(m, b) 69 } 70 func (m *PluginInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 71 return xxx_messageInfo_PluginInfoRequest.Marshal(b, m, deterministic) 72 } 73 func (dst *PluginInfoRequest) XXX_Merge(src proto.Message) { 74 xxx_messageInfo_PluginInfoRequest.Merge(dst, src) 75 } 76 func (m *PluginInfoRequest) XXX_Size() int { 77 return xxx_messageInfo_PluginInfoRequest.Size(m) 78 } 79 func (m *PluginInfoRequest) XXX_DiscardUnknown() { 80 xxx_messageInfo_PluginInfoRequest.DiscardUnknown(m) 81 } 82 83 var xxx_messageInfo_PluginInfoRequest proto.InternalMessageInfo 84 85 // PluginInfoResponse returns basic information about the plugin such 86 // that Nomad can decide whether to load the plugin or not. 87 type PluginInfoResponse struct { 88 // type indicates what type of plugin this is. 89 Type PluginType `protobuf:"varint,1,opt,name=type,proto3,enum=hashicorp.nomad.plugins.base.proto.PluginType" json:"type,omitempty"` 90 // plugin_api_versions indicates the versions of the Nomad Plugin API 91 // this plugin supports. 92 PluginApiVersions []string `protobuf:"bytes,2,rep,name=plugin_api_versions,json=pluginApiVersions,proto3" json:"plugin_api_versions,omitempty"` 93 // plugin_version is the semver version of this individual plugin. 94 // This is divorce from Nomad’s development and versioning. 95 PluginVersion string `protobuf:"bytes,3,opt,name=plugin_version,json=pluginVersion,proto3" json:"plugin_version,omitempty"` 96 // name is the name of the plugin 97 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` 98 XXX_NoUnkeyedLiteral struct{} `json:"-"` 99 XXX_unrecognized []byte `json:"-"` 100 XXX_sizecache int32 `json:"-"` 101 } 102 103 func (m *PluginInfoResponse) Reset() { *m = PluginInfoResponse{} } 104 func (m *PluginInfoResponse) String() string { return proto.CompactTextString(m) } 105 func (*PluginInfoResponse) ProtoMessage() {} 106 func (*PluginInfoResponse) Descriptor() ([]byte, []int) { 107 return fileDescriptor_base_6a1a5ff99a0b9e5d, []int{1} 108 } 109 func (m *PluginInfoResponse) XXX_Unmarshal(b []byte) error { 110 return xxx_messageInfo_PluginInfoResponse.Unmarshal(m, b) 111 } 112 func (m *PluginInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 113 return xxx_messageInfo_PluginInfoResponse.Marshal(b, m, deterministic) 114 } 115 func (dst *PluginInfoResponse) XXX_Merge(src proto.Message) { 116 xxx_messageInfo_PluginInfoResponse.Merge(dst, src) 117 } 118 func (m *PluginInfoResponse) XXX_Size() int { 119 return xxx_messageInfo_PluginInfoResponse.Size(m) 120 } 121 func (m *PluginInfoResponse) XXX_DiscardUnknown() { 122 xxx_messageInfo_PluginInfoResponse.DiscardUnknown(m) 123 } 124 125 var xxx_messageInfo_PluginInfoResponse proto.InternalMessageInfo 126 127 func (m *PluginInfoResponse) GetType() PluginType { 128 if m != nil { 129 return m.Type 130 } 131 return PluginType_UNKNOWN 132 } 133 134 func (m *PluginInfoResponse) GetPluginApiVersions() []string { 135 if m != nil { 136 return m.PluginApiVersions 137 } 138 return nil 139 } 140 141 func (m *PluginInfoResponse) GetPluginVersion() string { 142 if m != nil { 143 return m.PluginVersion 144 } 145 return "" 146 } 147 148 func (m *PluginInfoResponse) GetName() string { 149 if m != nil { 150 return m.Name 151 } 152 return "" 153 } 154 155 // ConfigSchemaRequest is used to request the configurations schema. 156 type ConfigSchemaRequest struct { 157 XXX_NoUnkeyedLiteral struct{} `json:"-"` 158 XXX_unrecognized []byte `json:"-"` 159 XXX_sizecache int32 `json:"-"` 160 } 161 162 func (m *ConfigSchemaRequest) Reset() { *m = ConfigSchemaRequest{} } 163 func (m *ConfigSchemaRequest) String() string { return proto.CompactTextString(m) } 164 func (*ConfigSchemaRequest) ProtoMessage() {} 165 func (*ConfigSchemaRequest) Descriptor() ([]byte, []int) { 166 return fileDescriptor_base_6a1a5ff99a0b9e5d, []int{2} 167 } 168 func (m *ConfigSchemaRequest) XXX_Unmarshal(b []byte) error { 169 return xxx_messageInfo_ConfigSchemaRequest.Unmarshal(m, b) 170 } 171 func (m *ConfigSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 172 return xxx_messageInfo_ConfigSchemaRequest.Marshal(b, m, deterministic) 173 } 174 func (dst *ConfigSchemaRequest) XXX_Merge(src proto.Message) { 175 xxx_messageInfo_ConfigSchemaRequest.Merge(dst, src) 176 } 177 func (m *ConfigSchemaRequest) XXX_Size() int { 178 return xxx_messageInfo_ConfigSchemaRequest.Size(m) 179 } 180 func (m *ConfigSchemaRequest) XXX_DiscardUnknown() { 181 xxx_messageInfo_ConfigSchemaRequest.DiscardUnknown(m) 182 } 183 184 var xxx_messageInfo_ConfigSchemaRequest proto.InternalMessageInfo 185 186 // ConfigSchemaResponse returns the plugins configuration schema. 187 type ConfigSchemaResponse struct { 188 // spec is the plugins configuration schema 189 Spec *hclspec.Spec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` 190 XXX_NoUnkeyedLiteral struct{} `json:"-"` 191 XXX_unrecognized []byte `json:"-"` 192 XXX_sizecache int32 `json:"-"` 193 } 194 195 func (m *ConfigSchemaResponse) Reset() { *m = ConfigSchemaResponse{} } 196 func (m *ConfigSchemaResponse) String() string { return proto.CompactTextString(m) } 197 func (*ConfigSchemaResponse) ProtoMessage() {} 198 func (*ConfigSchemaResponse) Descriptor() ([]byte, []int) { 199 return fileDescriptor_base_6a1a5ff99a0b9e5d, []int{3} 200 } 201 func (m *ConfigSchemaResponse) XXX_Unmarshal(b []byte) error { 202 return xxx_messageInfo_ConfigSchemaResponse.Unmarshal(m, b) 203 } 204 func (m *ConfigSchemaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 205 return xxx_messageInfo_ConfigSchemaResponse.Marshal(b, m, deterministic) 206 } 207 func (dst *ConfigSchemaResponse) XXX_Merge(src proto.Message) { 208 xxx_messageInfo_ConfigSchemaResponse.Merge(dst, src) 209 } 210 func (m *ConfigSchemaResponse) XXX_Size() int { 211 return xxx_messageInfo_ConfigSchemaResponse.Size(m) 212 } 213 func (m *ConfigSchemaResponse) XXX_DiscardUnknown() { 214 xxx_messageInfo_ConfigSchemaResponse.DiscardUnknown(m) 215 } 216 217 var xxx_messageInfo_ConfigSchemaResponse proto.InternalMessageInfo 218 219 func (m *ConfigSchemaResponse) GetSpec() *hclspec.Spec { 220 if m != nil { 221 return m.Spec 222 } 223 return nil 224 } 225 226 // SetConfigRequest is used to set the configuration 227 type SetConfigRequest struct { 228 // msgpack_config is the configuration encoded as MessagePack. 229 MsgpackConfig []byte `protobuf:"bytes,1,opt,name=msgpack_config,json=msgpackConfig,proto3" json:"msgpack_config,omitempty"` 230 // nomad_config is the nomad client configuration sent to all plugins. 231 NomadConfig *NomadConfig `protobuf:"bytes,2,opt,name=nomad_config,json=nomadConfig,proto3" json:"nomad_config,omitempty"` 232 // plugin_api_version is the api version to use. 233 PluginApiVersion string `protobuf:"bytes,3,opt,name=plugin_api_version,json=pluginApiVersion,proto3" json:"plugin_api_version,omitempty"` 234 XXX_NoUnkeyedLiteral struct{} `json:"-"` 235 XXX_unrecognized []byte `json:"-"` 236 XXX_sizecache int32 `json:"-"` 237 } 238 239 func (m *SetConfigRequest) Reset() { *m = SetConfigRequest{} } 240 func (m *SetConfigRequest) String() string { return proto.CompactTextString(m) } 241 func (*SetConfigRequest) ProtoMessage() {} 242 func (*SetConfigRequest) Descriptor() ([]byte, []int) { 243 return fileDescriptor_base_6a1a5ff99a0b9e5d, []int{4} 244 } 245 func (m *SetConfigRequest) XXX_Unmarshal(b []byte) error { 246 return xxx_messageInfo_SetConfigRequest.Unmarshal(m, b) 247 } 248 func (m *SetConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 249 return xxx_messageInfo_SetConfigRequest.Marshal(b, m, deterministic) 250 } 251 func (dst *SetConfigRequest) XXX_Merge(src proto.Message) { 252 xxx_messageInfo_SetConfigRequest.Merge(dst, src) 253 } 254 func (m *SetConfigRequest) XXX_Size() int { 255 return xxx_messageInfo_SetConfigRequest.Size(m) 256 } 257 func (m *SetConfigRequest) XXX_DiscardUnknown() { 258 xxx_messageInfo_SetConfigRequest.DiscardUnknown(m) 259 } 260 261 var xxx_messageInfo_SetConfigRequest proto.InternalMessageInfo 262 263 func (m *SetConfigRequest) GetMsgpackConfig() []byte { 264 if m != nil { 265 return m.MsgpackConfig 266 } 267 return nil 268 } 269 270 func (m *SetConfigRequest) GetNomadConfig() *NomadConfig { 271 if m != nil { 272 return m.NomadConfig 273 } 274 return nil 275 } 276 277 func (m *SetConfigRequest) GetPluginApiVersion() string { 278 if m != nil { 279 return m.PluginApiVersion 280 } 281 return "" 282 } 283 284 // NomadConfig is the client configuration sent to all plugins 285 type NomadConfig struct { 286 // driver specific configuration sent to all plugins 287 Driver *NomadDriverConfig `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` 288 XXX_NoUnkeyedLiteral struct{} `json:"-"` 289 XXX_unrecognized []byte `json:"-"` 290 XXX_sizecache int32 `json:"-"` 291 } 292 293 func (m *NomadConfig) Reset() { *m = NomadConfig{} } 294 func (m *NomadConfig) String() string { return proto.CompactTextString(m) } 295 func (*NomadConfig) ProtoMessage() {} 296 func (*NomadConfig) Descriptor() ([]byte, []int) { 297 return fileDescriptor_base_6a1a5ff99a0b9e5d, []int{5} 298 } 299 func (m *NomadConfig) XXX_Unmarshal(b []byte) error { 300 return xxx_messageInfo_NomadConfig.Unmarshal(m, b) 301 } 302 func (m *NomadConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 303 return xxx_messageInfo_NomadConfig.Marshal(b, m, deterministic) 304 } 305 func (dst *NomadConfig) XXX_Merge(src proto.Message) { 306 xxx_messageInfo_NomadConfig.Merge(dst, src) 307 } 308 func (m *NomadConfig) XXX_Size() int { 309 return xxx_messageInfo_NomadConfig.Size(m) 310 } 311 func (m *NomadConfig) XXX_DiscardUnknown() { 312 xxx_messageInfo_NomadConfig.DiscardUnknown(m) 313 } 314 315 var xxx_messageInfo_NomadConfig proto.InternalMessageInfo 316 317 func (m *NomadConfig) GetDriver() *NomadDriverConfig { 318 if m != nil { 319 return m.Driver 320 } 321 return nil 322 } 323 324 // NomadDriverConfig is the driver specific client configuration sent to all 325 // driver plugins 326 type NomadDriverConfig struct { 327 // ClientMaxPort is the upper range of the ports that the client uses for 328 // communicating with plugin subsystems over loopback 329 ClientMaxPort uint32 `protobuf:"varint,1,opt,name=ClientMaxPort,proto3" json:"ClientMaxPort,omitempty"` 330 // ClientMinPort is the lower range of the ports that the client uses for 331 // communicating with plugin subsystems over loopback 332 ClientMinPort uint32 `protobuf:"varint,2,opt,name=ClientMinPort,proto3" json:"ClientMinPort,omitempty"` 333 XXX_NoUnkeyedLiteral struct{} `json:"-"` 334 XXX_unrecognized []byte `json:"-"` 335 XXX_sizecache int32 `json:"-"` 336 } 337 338 func (m *NomadDriverConfig) Reset() { *m = NomadDriverConfig{} } 339 func (m *NomadDriverConfig) String() string { return proto.CompactTextString(m) } 340 func (*NomadDriverConfig) ProtoMessage() {} 341 func (*NomadDriverConfig) Descriptor() ([]byte, []int) { 342 return fileDescriptor_base_6a1a5ff99a0b9e5d, []int{6} 343 } 344 func (m *NomadDriverConfig) XXX_Unmarshal(b []byte) error { 345 return xxx_messageInfo_NomadDriverConfig.Unmarshal(m, b) 346 } 347 func (m *NomadDriverConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 348 return xxx_messageInfo_NomadDriverConfig.Marshal(b, m, deterministic) 349 } 350 func (dst *NomadDriverConfig) XXX_Merge(src proto.Message) { 351 xxx_messageInfo_NomadDriverConfig.Merge(dst, src) 352 } 353 func (m *NomadDriverConfig) XXX_Size() int { 354 return xxx_messageInfo_NomadDriverConfig.Size(m) 355 } 356 func (m *NomadDriverConfig) XXX_DiscardUnknown() { 357 xxx_messageInfo_NomadDriverConfig.DiscardUnknown(m) 358 } 359 360 var xxx_messageInfo_NomadDriverConfig proto.InternalMessageInfo 361 362 func (m *NomadDriverConfig) GetClientMaxPort() uint32 { 363 if m != nil { 364 return m.ClientMaxPort 365 } 366 return 0 367 } 368 369 func (m *NomadDriverConfig) GetClientMinPort() uint32 { 370 if m != nil { 371 return m.ClientMinPort 372 } 373 return 0 374 } 375 376 // SetConfigResponse is used to respond to setting the configuration 377 type SetConfigResponse struct { 378 XXX_NoUnkeyedLiteral struct{} `json:"-"` 379 XXX_unrecognized []byte `json:"-"` 380 XXX_sizecache int32 `json:"-"` 381 } 382 383 func (m *SetConfigResponse) Reset() { *m = SetConfigResponse{} } 384 func (m *SetConfigResponse) String() string { return proto.CompactTextString(m) } 385 func (*SetConfigResponse) ProtoMessage() {} 386 func (*SetConfigResponse) Descriptor() ([]byte, []int) { 387 return fileDescriptor_base_6a1a5ff99a0b9e5d, []int{7} 388 } 389 func (m *SetConfigResponse) XXX_Unmarshal(b []byte) error { 390 return xxx_messageInfo_SetConfigResponse.Unmarshal(m, b) 391 } 392 func (m *SetConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 393 return xxx_messageInfo_SetConfigResponse.Marshal(b, m, deterministic) 394 } 395 func (dst *SetConfigResponse) XXX_Merge(src proto.Message) { 396 xxx_messageInfo_SetConfigResponse.Merge(dst, src) 397 } 398 func (m *SetConfigResponse) XXX_Size() int { 399 return xxx_messageInfo_SetConfigResponse.Size(m) 400 } 401 func (m *SetConfigResponse) XXX_DiscardUnknown() { 402 xxx_messageInfo_SetConfigResponse.DiscardUnknown(m) 403 } 404 405 var xxx_messageInfo_SetConfigResponse proto.InternalMessageInfo 406 407 func init() { 408 proto.RegisterType((*PluginInfoRequest)(nil), "hashicorp.nomad.plugins.base.proto.PluginInfoRequest") 409 proto.RegisterType((*PluginInfoResponse)(nil), "hashicorp.nomad.plugins.base.proto.PluginInfoResponse") 410 proto.RegisterType((*ConfigSchemaRequest)(nil), "hashicorp.nomad.plugins.base.proto.ConfigSchemaRequest") 411 proto.RegisterType((*ConfigSchemaResponse)(nil), "hashicorp.nomad.plugins.base.proto.ConfigSchemaResponse") 412 proto.RegisterType((*SetConfigRequest)(nil), "hashicorp.nomad.plugins.base.proto.SetConfigRequest") 413 proto.RegisterType((*NomadConfig)(nil), "hashicorp.nomad.plugins.base.proto.NomadConfig") 414 proto.RegisterType((*NomadDriverConfig)(nil), "hashicorp.nomad.plugins.base.proto.NomadDriverConfig") 415 proto.RegisterType((*SetConfigResponse)(nil), "hashicorp.nomad.plugins.base.proto.SetConfigResponse") 416 proto.RegisterEnum("hashicorp.nomad.plugins.base.proto.PluginType", PluginType_name, PluginType_value) 417 } 418 419 // Reference imports to suppress errors if they are not otherwise used. 420 var _ context.Context 421 var _ grpc.ClientConn 422 423 // This is a compile-time assertion to ensure that this generated file 424 // is compatible with the grpc package it is being compiled against. 425 const _ = grpc.SupportPackageIsVersion4 426 427 // BasePluginClient is the client API for BasePlugin service. 428 // 429 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 430 type BasePluginClient interface { 431 // PluginInfo describes the type and version of a plugin. 432 PluginInfo(ctx context.Context, in *PluginInfoRequest, opts ...grpc.CallOption) (*PluginInfoResponse, error) 433 // ConfigSchema returns the schema for parsing the plugins configuration. 434 ConfigSchema(ctx context.Context, in *ConfigSchemaRequest, opts ...grpc.CallOption) (*ConfigSchemaResponse, error) 435 // SetConfig is used to set the configuration. 436 SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) 437 } 438 439 type basePluginClient struct { 440 cc *grpc.ClientConn 441 } 442 443 func NewBasePluginClient(cc *grpc.ClientConn) BasePluginClient { 444 return &basePluginClient{cc} 445 } 446 447 func (c *basePluginClient) PluginInfo(ctx context.Context, in *PluginInfoRequest, opts ...grpc.CallOption) (*PluginInfoResponse, error) { 448 out := new(PluginInfoResponse) 449 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.base.proto.BasePlugin/PluginInfo", in, out, opts...) 450 if err != nil { 451 return nil, err 452 } 453 return out, nil 454 } 455 456 func (c *basePluginClient) ConfigSchema(ctx context.Context, in *ConfigSchemaRequest, opts ...grpc.CallOption) (*ConfigSchemaResponse, error) { 457 out := new(ConfigSchemaResponse) 458 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.base.proto.BasePlugin/ConfigSchema", in, out, opts...) 459 if err != nil { 460 return nil, err 461 } 462 return out, nil 463 } 464 465 func (c *basePluginClient) SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) { 466 out := new(SetConfigResponse) 467 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.base.proto.BasePlugin/SetConfig", in, out, opts...) 468 if err != nil { 469 return nil, err 470 } 471 return out, nil 472 } 473 474 // BasePluginServer is the server API for BasePlugin service. 475 type BasePluginServer interface { 476 // PluginInfo describes the type and version of a plugin. 477 PluginInfo(context.Context, *PluginInfoRequest) (*PluginInfoResponse, error) 478 // ConfigSchema returns the schema for parsing the plugins configuration. 479 ConfigSchema(context.Context, *ConfigSchemaRequest) (*ConfigSchemaResponse, error) 480 // SetConfig is used to set the configuration. 481 SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error) 482 } 483 484 func RegisterBasePluginServer(s *grpc.Server, srv BasePluginServer) { 485 s.RegisterService(&_BasePlugin_serviceDesc, srv) 486 } 487 488 func _BasePlugin_PluginInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 489 in := new(PluginInfoRequest) 490 if err := dec(in); err != nil { 491 return nil, err 492 } 493 if interceptor == nil { 494 return srv.(BasePluginServer).PluginInfo(ctx, in) 495 } 496 info := &grpc.UnaryServerInfo{ 497 Server: srv, 498 FullMethod: "/hashicorp.nomad.plugins.base.proto.BasePlugin/PluginInfo", 499 } 500 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 501 return srv.(BasePluginServer).PluginInfo(ctx, req.(*PluginInfoRequest)) 502 } 503 return interceptor(ctx, in, info, handler) 504 } 505 506 func _BasePlugin_ConfigSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 507 in := new(ConfigSchemaRequest) 508 if err := dec(in); err != nil { 509 return nil, err 510 } 511 if interceptor == nil { 512 return srv.(BasePluginServer).ConfigSchema(ctx, in) 513 } 514 info := &grpc.UnaryServerInfo{ 515 Server: srv, 516 FullMethod: "/hashicorp.nomad.plugins.base.proto.BasePlugin/ConfigSchema", 517 } 518 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 519 return srv.(BasePluginServer).ConfigSchema(ctx, req.(*ConfigSchemaRequest)) 520 } 521 return interceptor(ctx, in, info, handler) 522 } 523 524 func _BasePlugin_SetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 525 in := new(SetConfigRequest) 526 if err := dec(in); err != nil { 527 return nil, err 528 } 529 if interceptor == nil { 530 return srv.(BasePluginServer).SetConfig(ctx, in) 531 } 532 info := &grpc.UnaryServerInfo{ 533 Server: srv, 534 FullMethod: "/hashicorp.nomad.plugins.base.proto.BasePlugin/SetConfig", 535 } 536 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 537 return srv.(BasePluginServer).SetConfig(ctx, req.(*SetConfigRequest)) 538 } 539 return interceptor(ctx, in, info, handler) 540 } 541 542 var _BasePlugin_serviceDesc = grpc.ServiceDesc{ 543 ServiceName: "hashicorp.nomad.plugins.base.proto.BasePlugin", 544 HandlerType: (*BasePluginServer)(nil), 545 Methods: []grpc.MethodDesc{ 546 { 547 MethodName: "PluginInfo", 548 Handler: _BasePlugin_PluginInfo_Handler, 549 }, 550 { 551 MethodName: "ConfigSchema", 552 Handler: _BasePlugin_ConfigSchema_Handler, 553 }, 554 { 555 MethodName: "SetConfig", 556 Handler: _BasePlugin_SetConfig_Handler, 557 }, 558 }, 559 Streams: []grpc.StreamDesc{}, 560 Metadata: "plugins/base/proto/base.proto", 561 } 562 563 func init() { proto.RegisterFile("plugins/base/proto/base.proto", fileDescriptor_base_6a1a5ff99a0b9e5d) } 564 565 var fileDescriptor_base_6a1a5ff99a0b9e5d = []byte{ 566 // 535 bytes of a gzipped FileDescriptorProto 567 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x41, 0x8f, 0x12, 0x4d, 568 0x10, 0xdd, 0x01, 0x3e, 0x36, 0x14, 0xb0, 0x81, 0xe6, 0x33, 0x21, 0x24, 0x26, 0x64, 0xa2, 0x09, 569 0x31, 0x9b, 0x9e, 0x88, 0xa2, 0x1e, 0x57, 0x58, 0x0e, 0xc4, 0x2c, 0x6e, 0x06, 0x45, 0x63, 0x4c, 570 0x48, 0x33, 0xf4, 0x32, 0x1d, 0xa1, 0xbb, 0x9d, 0x1e, 0x36, 0xae, 0x89, 0x27, 0xcf, 0xfe, 0x22, 571 0x8f, 0xfe, 0x31, 0x33, 0xdd, 0x0d, 0x0c, 0xbb, 0x1a, 0xe1, 0x34, 0x45, 0xd5, 0x7b, 0xaf, 0xaa, 572 0x1e, 0xd5, 0x70, 0x5f, 0x2e, 0x56, 0x73, 0xc6, 0x95, 0x37, 0x25, 0x8a, 0x7a, 0x32, 0x12, 0xb1, 573 0xd0, 0x21, 0xd6, 0x21, 0x72, 0x43, 0xa2, 0x42, 0x16, 0x88, 0x48, 0x62, 0x2e, 0x96, 0x64, 0x86, 574 0x2d, 0x1c, 0x6f, 0x31, 0x8d, 0xb3, 0x39, 0x8b, 0xc3, 0xd5, 0x14, 0x07, 0x62, 0xe9, 0x6d, 0xe0, 575 0x9e, 0x86, 0x7b, 0x6b, 0x75, 0x15, 0x92, 0x88, 0xce, 0xbc, 0x30, 0x58, 0x28, 0x49, 0x83, 0xe4, 576 0x3b, 0x49, 0x02, 0xa3, 0xe0, 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