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