github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/drivers/shared/executor/proto/executor.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: drivers/shared/executor/proto/executor.proto
     3  
     4  package proto
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	timestamp "github.com/golang/protobuf/ptypes/timestamp"
    11  	proto1 "github.com/hashicorp/nomad/plugins/drivers/proto"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	math "math"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  type LaunchRequest struct {
    30  	Cmd                  string                       `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd,omitempty"`
    31  	Args                 []string                     `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
    32  	Resources            *proto1.Resources            `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"`
    33  	StdoutPath           string                       `protobuf:"bytes,4,opt,name=stdout_path,json=stdoutPath,proto3" json:"stdout_path,omitempty"`
    34  	StderrPath           string                       `protobuf:"bytes,5,opt,name=stderr_path,json=stderrPath,proto3" json:"stderr_path,omitempty"`
    35  	Env                  []string                     `protobuf:"bytes,6,rep,name=env,proto3" json:"env,omitempty"`
    36  	User                 string                       `protobuf:"bytes,7,opt,name=user,proto3" json:"user,omitempty"`
    37  	TaskDir              string                       `protobuf:"bytes,8,opt,name=task_dir,json=taskDir,proto3" json:"task_dir,omitempty"`
    38  	ResourceLimits       bool                         `protobuf:"varint,9,opt,name=resource_limits,json=resourceLimits,proto3" json:"resource_limits,omitempty"`
    39  	BasicProcessCgroup   bool                         `protobuf:"varint,10,opt,name=basic_process_cgroup,json=basicProcessCgroup,proto3" json:"basic_process_cgroup,omitempty"`
    40  	Mounts               []*proto1.Mount              `protobuf:"bytes,11,rep,name=mounts,proto3" json:"mounts,omitempty"`
    41  	Devices              []*proto1.Device             `protobuf:"bytes,12,rep,name=devices,proto3" json:"devices,omitempty"`
    42  	NetworkIsolation     *proto1.NetworkIsolationSpec `protobuf:"bytes,13,opt,name=network_isolation,json=networkIsolation,proto3" json:"network_isolation,omitempty"`
    43  	NoPivotRoot          bool                         `protobuf:"varint,14,opt,name=no_pivot_root,json=noPivotRoot,proto3" json:"no_pivot_root,omitempty"`
    44  	DefaultPidMode       string                       `protobuf:"bytes,15,opt,name=default_pid_mode,json=defaultPidMode,proto3" json:"default_pid_mode,omitempty"`
    45  	DefaultIpcMode       string                       `protobuf:"bytes,16,opt,name=default_ipc_mode,json=defaultIpcMode,proto3" json:"default_ipc_mode,omitempty"`
    46  	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
    47  	XXX_unrecognized     []byte                       `json:"-"`
    48  	XXX_sizecache        int32                        `json:"-"`
    49  }
    50  
    51  func (m *LaunchRequest) Reset()         { *m = LaunchRequest{} }
    52  func (m *LaunchRequest) String() string { return proto.CompactTextString(m) }
    53  func (*LaunchRequest) ProtoMessage()    {}
    54  func (*LaunchRequest) Descriptor() ([]byte, []int) {
    55  	return fileDescriptor_66b85426380683f3, []int{0}
    56  }
    57  
    58  func (m *LaunchRequest) XXX_Unmarshal(b []byte) error {
    59  	return xxx_messageInfo_LaunchRequest.Unmarshal(m, b)
    60  }
    61  func (m *LaunchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    62  	return xxx_messageInfo_LaunchRequest.Marshal(b, m, deterministic)
    63  }
    64  func (m *LaunchRequest) XXX_Merge(src proto.Message) {
    65  	xxx_messageInfo_LaunchRequest.Merge(m, src)
    66  }
    67  func (m *LaunchRequest) XXX_Size() int {
    68  	return xxx_messageInfo_LaunchRequest.Size(m)
    69  }
    70  func (m *LaunchRequest) XXX_DiscardUnknown() {
    71  	xxx_messageInfo_LaunchRequest.DiscardUnknown(m)
    72  }
    73  
    74  var xxx_messageInfo_LaunchRequest proto.InternalMessageInfo
    75  
    76  func (m *LaunchRequest) GetCmd() string {
    77  	if m != nil {
    78  		return m.Cmd
    79  	}
    80  	return ""
    81  }
    82  
    83  func (m *LaunchRequest) GetArgs() []string {
    84  	if m != nil {
    85  		return m.Args
    86  	}
    87  	return nil
    88  }
    89  
    90  func (m *LaunchRequest) GetResources() *proto1.Resources {
    91  	if m != nil {
    92  		return m.Resources
    93  	}
    94  	return nil
    95  }
    96  
    97  func (m *LaunchRequest) GetStdoutPath() string {
    98  	if m != nil {
    99  		return m.StdoutPath
   100  	}
   101  	return ""
   102  }
   103  
   104  func (m *LaunchRequest) GetStderrPath() string {
   105  	if m != nil {
   106  		return m.StderrPath
   107  	}
   108  	return ""
   109  }
   110  
   111  func (m *LaunchRequest) GetEnv() []string {
   112  	if m != nil {
   113  		return m.Env
   114  	}
   115  	return nil
   116  }
   117  
   118  func (m *LaunchRequest) GetUser() string {
   119  	if m != nil {
   120  		return m.User
   121  	}
   122  	return ""
   123  }
   124  
   125  func (m *LaunchRequest) GetTaskDir() string {
   126  	if m != nil {
   127  		return m.TaskDir
   128  	}
   129  	return ""
   130  }
   131  
   132  func (m *LaunchRequest) GetResourceLimits() bool {
   133  	if m != nil {
   134  		return m.ResourceLimits
   135  	}
   136  	return false
   137  }
   138  
   139  func (m *LaunchRequest) GetBasicProcessCgroup() bool {
   140  	if m != nil {
   141  		return m.BasicProcessCgroup
   142  	}
   143  	return false
   144  }
   145  
   146  func (m *LaunchRequest) GetMounts() []*proto1.Mount {
   147  	if m != nil {
   148  		return m.Mounts
   149  	}
   150  	return nil
   151  }
   152  
   153  func (m *LaunchRequest) GetDevices() []*proto1.Device {
   154  	if m != nil {
   155  		return m.Devices
   156  	}
   157  	return nil
   158  }
   159  
   160  func (m *LaunchRequest) GetNetworkIsolation() *proto1.NetworkIsolationSpec {
   161  	if m != nil {
   162  		return m.NetworkIsolation
   163  	}
   164  	return nil
   165  }
   166  
   167  func (m *LaunchRequest) GetNoPivotRoot() bool {
   168  	if m != nil {
   169  		return m.NoPivotRoot
   170  	}
   171  	return false
   172  }
   173  
   174  func (m *LaunchRequest) GetDefaultPidMode() string {
   175  	if m != nil {
   176  		return m.DefaultPidMode
   177  	}
   178  	return ""
   179  }
   180  
   181  func (m *LaunchRequest) GetDefaultIpcMode() string {
   182  	if m != nil {
   183  		return m.DefaultIpcMode
   184  	}
   185  	return ""
   186  }
   187  
   188  type LaunchResponse struct {
   189  	Process              *ProcessState `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"`
   190  	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
   191  	XXX_unrecognized     []byte        `json:"-"`
   192  	XXX_sizecache        int32         `json:"-"`
   193  }
   194  
   195  func (m *LaunchResponse) Reset()         { *m = LaunchResponse{} }
   196  func (m *LaunchResponse) String() string { return proto.CompactTextString(m) }
   197  func (*LaunchResponse) ProtoMessage()    {}
   198  func (*LaunchResponse) Descriptor() ([]byte, []int) {
   199  	return fileDescriptor_66b85426380683f3, []int{1}
   200  }
   201  
   202  func (m *LaunchResponse) XXX_Unmarshal(b []byte) error {
   203  	return xxx_messageInfo_LaunchResponse.Unmarshal(m, b)
   204  }
   205  func (m *LaunchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   206  	return xxx_messageInfo_LaunchResponse.Marshal(b, m, deterministic)
   207  }
   208  func (m *LaunchResponse) XXX_Merge(src proto.Message) {
   209  	xxx_messageInfo_LaunchResponse.Merge(m, src)
   210  }
   211  func (m *LaunchResponse) XXX_Size() int {
   212  	return xxx_messageInfo_LaunchResponse.Size(m)
   213  }
   214  func (m *LaunchResponse) XXX_DiscardUnknown() {
   215  	xxx_messageInfo_LaunchResponse.DiscardUnknown(m)
   216  }
   217  
   218  var xxx_messageInfo_LaunchResponse proto.InternalMessageInfo
   219  
   220  func (m *LaunchResponse) GetProcess() *ProcessState {
   221  	if m != nil {
   222  		return m.Process
   223  	}
   224  	return nil
   225  }
   226  
   227  type WaitRequest struct {
   228  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   229  	XXX_unrecognized     []byte   `json:"-"`
   230  	XXX_sizecache        int32    `json:"-"`
   231  }
   232  
   233  func (m *WaitRequest) Reset()         { *m = WaitRequest{} }
   234  func (m *WaitRequest) String() string { return proto.CompactTextString(m) }
   235  func (*WaitRequest) ProtoMessage()    {}
   236  func (*WaitRequest) Descriptor() ([]byte, []int) {
   237  	return fileDescriptor_66b85426380683f3, []int{2}
   238  }
   239  
   240  func (m *WaitRequest) XXX_Unmarshal(b []byte) error {
   241  	return xxx_messageInfo_WaitRequest.Unmarshal(m, b)
   242  }
   243  func (m *WaitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   244  	return xxx_messageInfo_WaitRequest.Marshal(b, m, deterministic)
   245  }
   246  func (m *WaitRequest) XXX_Merge(src proto.Message) {
   247  	xxx_messageInfo_WaitRequest.Merge(m, src)
   248  }
   249  func (m *WaitRequest) XXX_Size() int {
   250  	return xxx_messageInfo_WaitRequest.Size(m)
   251  }
   252  func (m *WaitRequest) XXX_DiscardUnknown() {
   253  	xxx_messageInfo_WaitRequest.DiscardUnknown(m)
   254  }
   255  
   256  var xxx_messageInfo_WaitRequest proto.InternalMessageInfo
   257  
   258  type WaitResponse struct {
   259  	Process              *ProcessState `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"`
   260  	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
   261  	XXX_unrecognized     []byte        `json:"-"`
   262  	XXX_sizecache        int32         `json:"-"`
   263  }
   264  
   265  func (m *WaitResponse) Reset()         { *m = WaitResponse{} }
   266  func (m *WaitResponse) String() string { return proto.CompactTextString(m) }
   267  func (*WaitResponse) ProtoMessage()    {}
   268  func (*WaitResponse) Descriptor() ([]byte, []int) {
   269  	return fileDescriptor_66b85426380683f3, []int{3}
   270  }
   271  
   272  func (m *WaitResponse) XXX_Unmarshal(b []byte) error {
   273  	return xxx_messageInfo_WaitResponse.Unmarshal(m, b)
   274  }
   275  func (m *WaitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   276  	return xxx_messageInfo_WaitResponse.Marshal(b, m, deterministic)
   277  }
   278  func (m *WaitResponse) XXX_Merge(src proto.Message) {
   279  	xxx_messageInfo_WaitResponse.Merge(m, src)
   280  }
   281  func (m *WaitResponse) XXX_Size() int {
   282  	return xxx_messageInfo_WaitResponse.Size(m)
   283  }
   284  func (m *WaitResponse) XXX_DiscardUnknown() {
   285  	xxx_messageInfo_WaitResponse.DiscardUnknown(m)
   286  }
   287  
   288  var xxx_messageInfo_WaitResponse proto.InternalMessageInfo
   289  
   290  func (m *WaitResponse) GetProcess() *ProcessState {
   291  	if m != nil {
   292  		return m.Process
   293  	}
   294  	return nil
   295  }
   296  
   297  type ShutdownRequest struct {
   298  	Signal               string   `protobuf:"bytes,1,opt,name=signal,proto3" json:"signal,omitempty"`
   299  	GracePeriod          int64    `protobuf:"varint,2,opt,name=grace_period,json=gracePeriod,proto3" json:"grace_period,omitempty"`
   300  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   301  	XXX_unrecognized     []byte   `json:"-"`
   302  	XXX_sizecache        int32    `json:"-"`
   303  }
   304  
   305  func (m *ShutdownRequest) Reset()         { *m = ShutdownRequest{} }
   306  func (m *ShutdownRequest) String() string { return proto.CompactTextString(m) }
   307  func (*ShutdownRequest) ProtoMessage()    {}
   308  func (*ShutdownRequest) Descriptor() ([]byte, []int) {
   309  	return fileDescriptor_66b85426380683f3, []int{4}
   310  }
   311  
   312  func (m *ShutdownRequest) XXX_Unmarshal(b []byte) error {
   313  	return xxx_messageInfo_ShutdownRequest.Unmarshal(m, b)
   314  }
   315  func (m *ShutdownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   316  	return xxx_messageInfo_ShutdownRequest.Marshal(b, m, deterministic)
   317  }
   318  func (m *ShutdownRequest) XXX_Merge(src proto.Message) {
   319  	xxx_messageInfo_ShutdownRequest.Merge(m, src)
   320  }
   321  func (m *ShutdownRequest) XXX_Size() int {
   322  	return xxx_messageInfo_ShutdownRequest.Size(m)
   323  }
   324  func (m *ShutdownRequest) XXX_DiscardUnknown() {
   325  	xxx_messageInfo_ShutdownRequest.DiscardUnknown(m)
   326  }
   327  
   328  var xxx_messageInfo_ShutdownRequest proto.InternalMessageInfo
   329  
   330  func (m *ShutdownRequest) GetSignal() string {
   331  	if m != nil {
   332  		return m.Signal
   333  	}
   334  	return ""
   335  }
   336  
   337  func (m *ShutdownRequest) GetGracePeriod() int64 {
   338  	if m != nil {
   339  		return m.GracePeriod
   340  	}
   341  	return 0
   342  }
   343  
   344  type ShutdownResponse struct {
   345  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   346  	XXX_unrecognized     []byte   `json:"-"`
   347  	XXX_sizecache        int32    `json:"-"`
   348  }
   349  
   350  func (m *ShutdownResponse) Reset()         { *m = ShutdownResponse{} }
   351  func (m *ShutdownResponse) String() string { return proto.CompactTextString(m) }
   352  func (*ShutdownResponse) ProtoMessage()    {}
   353  func (*ShutdownResponse) Descriptor() ([]byte, []int) {
   354  	return fileDescriptor_66b85426380683f3, []int{5}
   355  }
   356  
   357  func (m *ShutdownResponse) XXX_Unmarshal(b []byte) error {
   358  	return xxx_messageInfo_ShutdownResponse.Unmarshal(m, b)
   359  }
   360  func (m *ShutdownResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   361  	return xxx_messageInfo_ShutdownResponse.Marshal(b, m, deterministic)
   362  }
   363  func (m *ShutdownResponse) XXX_Merge(src proto.Message) {
   364  	xxx_messageInfo_ShutdownResponse.Merge(m, src)
   365  }
   366  func (m *ShutdownResponse) XXX_Size() int {
   367  	return xxx_messageInfo_ShutdownResponse.Size(m)
   368  }
   369  func (m *ShutdownResponse) XXX_DiscardUnknown() {
   370  	xxx_messageInfo_ShutdownResponse.DiscardUnknown(m)
   371  }
   372  
   373  var xxx_messageInfo_ShutdownResponse proto.InternalMessageInfo
   374  
   375  type UpdateResourcesRequest struct {
   376  	Resources            *proto1.Resources `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources,omitempty"`
   377  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   378  	XXX_unrecognized     []byte            `json:"-"`
   379  	XXX_sizecache        int32             `json:"-"`
   380  }
   381  
   382  func (m *UpdateResourcesRequest) Reset()         { *m = UpdateResourcesRequest{} }
   383  func (m *UpdateResourcesRequest) String() string { return proto.CompactTextString(m) }
   384  func (*UpdateResourcesRequest) ProtoMessage()    {}
   385  func (*UpdateResourcesRequest) Descriptor() ([]byte, []int) {
   386  	return fileDescriptor_66b85426380683f3, []int{6}
   387  }
   388  
   389  func (m *UpdateResourcesRequest) XXX_Unmarshal(b []byte) error {
   390  	return xxx_messageInfo_UpdateResourcesRequest.Unmarshal(m, b)
   391  }
   392  func (m *UpdateResourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   393  	return xxx_messageInfo_UpdateResourcesRequest.Marshal(b, m, deterministic)
   394  }
   395  func (m *UpdateResourcesRequest) XXX_Merge(src proto.Message) {
   396  	xxx_messageInfo_UpdateResourcesRequest.Merge(m, src)
   397  }
   398  func (m *UpdateResourcesRequest) XXX_Size() int {
   399  	return xxx_messageInfo_UpdateResourcesRequest.Size(m)
   400  }
   401  func (m *UpdateResourcesRequest) XXX_DiscardUnknown() {
   402  	xxx_messageInfo_UpdateResourcesRequest.DiscardUnknown(m)
   403  }
   404  
   405  var xxx_messageInfo_UpdateResourcesRequest proto.InternalMessageInfo
   406  
   407  func (m *UpdateResourcesRequest) GetResources() *proto1.Resources {
   408  	if m != nil {
   409  		return m.Resources
   410  	}
   411  	return nil
   412  }
   413  
   414  type UpdateResourcesResponse struct {
   415  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   416  	XXX_unrecognized     []byte   `json:"-"`
   417  	XXX_sizecache        int32    `json:"-"`
   418  }
   419  
   420  func (m *UpdateResourcesResponse) Reset()         { *m = UpdateResourcesResponse{} }
   421  func (m *UpdateResourcesResponse) String() string { return proto.CompactTextString(m) }
   422  func (*UpdateResourcesResponse) ProtoMessage()    {}
   423  func (*UpdateResourcesResponse) Descriptor() ([]byte, []int) {
   424  	return fileDescriptor_66b85426380683f3, []int{7}
   425  }
   426  
   427  func (m *UpdateResourcesResponse) XXX_Unmarshal(b []byte) error {
   428  	return xxx_messageInfo_UpdateResourcesResponse.Unmarshal(m, b)
   429  }
   430  func (m *UpdateResourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   431  	return xxx_messageInfo_UpdateResourcesResponse.Marshal(b, m, deterministic)
   432  }
   433  func (m *UpdateResourcesResponse) XXX_Merge(src proto.Message) {
   434  	xxx_messageInfo_UpdateResourcesResponse.Merge(m, src)
   435  }
   436  func (m *UpdateResourcesResponse) XXX_Size() int {
   437  	return xxx_messageInfo_UpdateResourcesResponse.Size(m)
   438  }
   439  func (m *UpdateResourcesResponse) XXX_DiscardUnknown() {
   440  	xxx_messageInfo_UpdateResourcesResponse.DiscardUnknown(m)
   441  }
   442  
   443  var xxx_messageInfo_UpdateResourcesResponse proto.InternalMessageInfo
   444  
   445  type VersionRequest struct {
   446  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   447  	XXX_unrecognized     []byte   `json:"-"`
   448  	XXX_sizecache        int32    `json:"-"`
   449  }
   450  
   451  func (m *VersionRequest) Reset()         { *m = VersionRequest{} }
   452  func (m *VersionRequest) String() string { return proto.CompactTextString(m) }
   453  func (*VersionRequest) ProtoMessage()    {}
   454  func (*VersionRequest) Descriptor() ([]byte, []int) {
   455  	return fileDescriptor_66b85426380683f3, []int{8}
   456  }
   457  
   458  func (m *VersionRequest) XXX_Unmarshal(b []byte) error {
   459  	return xxx_messageInfo_VersionRequest.Unmarshal(m, b)
   460  }
   461  func (m *VersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   462  	return xxx_messageInfo_VersionRequest.Marshal(b, m, deterministic)
   463  }
   464  func (m *VersionRequest) XXX_Merge(src proto.Message) {
   465  	xxx_messageInfo_VersionRequest.Merge(m, src)
   466  }
   467  func (m *VersionRequest) XXX_Size() int {
   468  	return xxx_messageInfo_VersionRequest.Size(m)
   469  }
   470  func (m *VersionRequest) XXX_DiscardUnknown() {
   471  	xxx_messageInfo_VersionRequest.DiscardUnknown(m)
   472  }
   473  
   474  var xxx_messageInfo_VersionRequest proto.InternalMessageInfo
   475  
   476  type VersionResponse struct {
   477  	Version              string   `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
   478  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   479  	XXX_unrecognized     []byte   `json:"-"`
   480  	XXX_sizecache        int32    `json:"-"`
   481  }
   482  
   483  func (m *VersionResponse) Reset()         { *m = VersionResponse{} }
   484  func (m *VersionResponse) String() string { return proto.CompactTextString(m) }
   485  func (*VersionResponse) ProtoMessage()    {}
   486  func (*VersionResponse) Descriptor() ([]byte, []int) {
   487  	return fileDescriptor_66b85426380683f3, []int{9}
   488  }
   489  
   490  func (m *VersionResponse) XXX_Unmarshal(b []byte) error {
   491  	return xxx_messageInfo_VersionResponse.Unmarshal(m, b)
   492  }
   493  func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   494  	return xxx_messageInfo_VersionResponse.Marshal(b, m, deterministic)
   495  }
   496  func (m *VersionResponse) XXX_Merge(src proto.Message) {
   497  	xxx_messageInfo_VersionResponse.Merge(m, src)
   498  }
   499  func (m *VersionResponse) XXX_Size() int {
   500  	return xxx_messageInfo_VersionResponse.Size(m)
   501  }
   502  func (m *VersionResponse) XXX_DiscardUnknown() {
   503  	xxx_messageInfo_VersionResponse.DiscardUnknown(m)
   504  }
   505  
   506  var xxx_messageInfo_VersionResponse proto.InternalMessageInfo
   507  
   508  func (m *VersionResponse) GetVersion() string {
   509  	if m != nil {
   510  		return m.Version
   511  	}
   512  	return ""
   513  }
   514  
   515  type StatsRequest struct {
   516  	Interval             int64    `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
   517  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   518  	XXX_unrecognized     []byte   `json:"-"`
   519  	XXX_sizecache        int32    `json:"-"`
   520  }
   521  
   522  func (m *StatsRequest) Reset()         { *m = StatsRequest{} }
   523  func (m *StatsRequest) String() string { return proto.CompactTextString(m) }
   524  func (*StatsRequest) ProtoMessage()    {}
   525  func (*StatsRequest) Descriptor() ([]byte, []int) {
   526  	return fileDescriptor_66b85426380683f3, []int{10}
   527  }
   528  
   529  func (m *StatsRequest) XXX_Unmarshal(b []byte) error {
   530  	return xxx_messageInfo_StatsRequest.Unmarshal(m, b)
   531  }
   532  func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   533  	return xxx_messageInfo_StatsRequest.Marshal(b, m, deterministic)
   534  }
   535  func (m *StatsRequest) XXX_Merge(src proto.Message) {
   536  	xxx_messageInfo_StatsRequest.Merge(m, src)
   537  }
   538  func (m *StatsRequest) XXX_Size() int {
   539  	return xxx_messageInfo_StatsRequest.Size(m)
   540  }
   541  func (m *StatsRequest) XXX_DiscardUnknown() {
   542  	xxx_messageInfo_StatsRequest.DiscardUnknown(m)
   543  }
   544  
   545  var xxx_messageInfo_StatsRequest proto.InternalMessageInfo
   546  
   547  func (m *StatsRequest) GetInterval() int64 {
   548  	if m != nil {
   549  		return m.Interval
   550  	}
   551  	return 0
   552  }
   553  
   554  type StatsResponse struct {
   555  	Stats                *proto1.TaskStats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"`
   556  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   557  	XXX_unrecognized     []byte            `json:"-"`
   558  	XXX_sizecache        int32             `json:"-"`
   559  }
   560  
   561  func (m *StatsResponse) Reset()         { *m = StatsResponse{} }
   562  func (m *StatsResponse) String() string { return proto.CompactTextString(m) }
   563  func (*StatsResponse) ProtoMessage()    {}
   564  func (*StatsResponse) Descriptor() ([]byte, []int) {
   565  	return fileDescriptor_66b85426380683f3, []int{11}
   566  }
   567  
   568  func (m *StatsResponse) XXX_Unmarshal(b []byte) error {
   569  	return xxx_messageInfo_StatsResponse.Unmarshal(m, b)
   570  }
   571  func (m *StatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   572  	return xxx_messageInfo_StatsResponse.Marshal(b, m, deterministic)
   573  }
   574  func (m *StatsResponse) XXX_Merge(src proto.Message) {
   575  	xxx_messageInfo_StatsResponse.Merge(m, src)
   576  }
   577  func (m *StatsResponse) XXX_Size() int {
   578  	return xxx_messageInfo_StatsResponse.Size(m)
   579  }
   580  func (m *StatsResponse) XXX_DiscardUnknown() {
   581  	xxx_messageInfo_StatsResponse.DiscardUnknown(m)
   582  }
   583  
   584  var xxx_messageInfo_StatsResponse proto.InternalMessageInfo
   585  
   586  func (m *StatsResponse) GetStats() *proto1.TaskStats {
   587  	if m != nil {
   588  		return m.Stats
   589  	}
   590  	return nil
   591  }
   592  
   593  type SignalRequest struct {
   594  	Signal               int32    `protobuf:"varint,1,opt,name=signal,proto3" json:"signal,omitempty"`
   595  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   596  	XXX_unrecognized     []byte   `json:"-"`
   597  	XXX_sizecache        int32    `json:"-"`
   598  }
   599  
   600  func (m *SignalRequest) Reset()         { *m = SignalRequest{} }
   601  func (m *SignalRequest) String() string { return proto.CompactTextString(m) }
   602  func (*SignalRequest) ProtoMessage()    {}
   603  func (*SignalRequest) Descriptor() ([]byte, []int) {
   604  	return fileDescriptor_66b85426380683f3, []int{12}
   605  }
   606  
   607  func (m *SignalRequest) XXX_Unmarshal(b []byte) error {
   608  	return xxx_messageInfo_SignalRequest.Unmarshal(m, b)
   609  }
   610  func (m *SignalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   611  	return xxx_messageInfo_SignalRequest.Marshal(b, m, deterministic)
   612  }
   613  func (m *SignalRequest) XXX_Merge(src proto.Message) {
   614  	xxx_messageInfo_SignalRequest.Merge(m, src)
   615  }
   616  func (m *SignalRequest) XXX_Size() int {
   617  	return xxx_messageInfo_SignalRequest.Size(m)
   618  }
   619  func (m *SignalRequest) XXX_DiscardUnknown() {
   620  	xxx_messageInfo_SignalRequest.DiscardUnknown(m)
   621  }
   622  
   623  var xxx_messageInfo_SignalRequest proto.InternalMessageInfo
   624  
   625  func (m *SignalRequest) GetSignal() int32 {
   626  	if m != nil {
   627  		return m.Signal
   628  	}
   629  	return 0
   630  }
   631  
   632  type SignalResponse struct {
   633  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   634  	XXX_unrecognized     []byte   `json:"-"`
   635  	XXX_sizecache        int32    `json:"-"`
   636  }
   637  
   638  func (m *SignalResponse) Reset()         { *m = SignalResponse{} }
   639  func (m *SignalResponse) String() string { return proto.CompactTextString(m) }
   640  func (*SignalResponse) ProtoMessage()    {}
   641  func (*SignalResponse) Descriptor() ([]byte, []int) {
   642  	return fileDescriptor_66b85426380683f3, []int{13}
   643  }
   644  
   645  func (m *SignalResponse) XXX_Unmarshal(b []byte) error {
   646  	return xxx_messageInfo_SignalResponse.Unmarshal(m, b)
   647  }
   648  func (m *SignalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   649  	return xxx_messageInfo_SignalResponse.Marshal(b, m, deterministic)
   650  }
   651  func (m *SignalResponse) XXX_Merge(src proto.Message) {
   652  	xxx_messageInfo_SignalResponse.Merge(m, src)
   653  }
   654  func (m *SignalResponse) XXX_Size() int {
   655  	return xxx_messageInfo_SignalResponse.Size(m)
   656  }
   657  func (m *SignalResponse) XXX_DiscardUnknown() {
   658  	xxx_messageInfo_SignalResponse.DiscardUnknown(m)
   659  }
   660  
   661  var xxx_messageInfo_SignalResponse proto.InternalMessageInfo
   662  
   663  type ExecRequest struct {
   664  	Deadline             *timestamp.Timestamp `protobuf:"bytes,1,opt,name=deadline,proto3" json:"deadline,omitempty"`
   665  	Cmd                  string               `protobuf:"bytes,2,opt,name=cmd,proto3" json:"cmd,omitempty"`
   666  	Args                 []string             `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
   667  	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
   668  	XXX_unrecognized     []byte               `json:"-"`
   669  	XXX_sizecache        int32                `json:"-"`
   670  }
   671  
   672  func (m *ExecRequest) Reset()         { *m = ExecRequest{} }
   673  func (m *ExecRequest) String() string { return proto.CompactTextString(m) }
   674  func (*ExecRequest) ProtoMessage()    {}
   675  func (*ExecRequest) Descriptor() ([]byte, []int) {
   676  	return fileDescriptor_66b85426380683f3, []int{14}
   677  }
   678  
   679  func (m *ExecRequest) XXX_Unmarshal(b []byte) error {
   680  	return xxx_messageInfo_ExecRequest.Unmarshal(m, b)
   681  }
   682  func (m *ExecRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   683  	return xxx_messageInfo_ExecRequest.Marshal(b, m, deterministic)
   684  }
   685  func (m *ExecRequest) XXX_Merge(src proto.Message) {
   686  	xxx_messageInfo_ExecRequest.Merge(m, src)
   687  }
   688  func (m *ExecRequest) XXX_Size() int {
   689  	return xxx_messageInfo_ExecRequest.Size(m)
   690  }
   691  func (m *ExecRequest) XXX_DiscardUnknown() {
   692  	xxx_messageInfo_ExecRequest.DiscardUnknown(m)
   693  }
   694  
   695  var xxx_messageInfo_ExecRequest proto.InternalMessageInfo
   696  
   697  func (m *ExecRequest) GetDeadline() *timestamp.Timestamp {
   698  	if m != nil {
   699  		return m.Deadline
   700  	}
   701  	return nil
   702  }
   703  
   704  func (m *ExecRequest) GetCmd() string {
   705  	if m != nil {
   706  		return m.Cmd
   707  	}
   708  	return ""
   709  }
   710  
   711  func (m *ExecRequest) GetArgs() []string {
   712  	if m != nil {
   713  		return m.Args
   714  	}
   715  	return nil
   716  }
   717  
   718  type ExecResponse struct {
   719  	Output               []byte   `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
   720  	ExitCode             int32    `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
   721  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   722  	XXX_unrecognized     []byte   `json:"-"`
   723  	XXX_sizecache        int32    `json:"-"`
   724  }
   725  
   726  func (m *ExecResponse) Reset()         { *m = ExecResponse{} }
   727  func (m *ExecResponse) String() string { return proto.CompactTextString(m) }
   728  func (*ExecResponse) ProtoMessage()    {}
   729  func (*ExecResponse) Descriptor() ([]byte, []int) {
   730  	return fileDescriptor_66b85426380683f3, []int{15}
   731  }
   732  
   733  func (m *ExecResponse) XXX_Unmarshal(b []byte) error {
   734  	return xxx_messageInfo_ExecResponse.Unmarshal(m, b)
   735  }
   736  func (m *ExecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   737  	return xxx_messageInfo_ExecResponse.Marshal(b, m, deterministic)
   738  }
   739  func (m *ExecResponse) XXX_Merge(src proto.Message) {
   740  	xxx_messageInfo_ExecResponse.Merge(m, src)
   741  }
   742  func (m *ExecResponse) XXX_Size() int {
   743  	return xxx_messageInfo_ExecResponse.Size(m)
   744  }
   745  func (m *ExecResponse) XXX_DiscardUnknown() {
   746  	xxx_messageInfo_ExecResponse.DiscardUnknown(m)
   747  }
   748  
   749  var xxx_messageInfo_ExecResponse proto.InternalMessageInfo
   750  
   751  func (m *ExecResponse) GetOutput() []byte {
   752  	if m != nil {
   753  		return m.Output
   754  	}
   755  	return nil
   756  }
   757  
   758  func (m *ExecResponse) GetExitCode() int32 {
   759  	if m != nil {
   760  		return m.ExitCode
   761  	}
   762  	return 0
   763  }
   764  
   765  type ProcessState struct {
   766  	Pid                  int32                `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
   767  	ExitCode             int32                `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
   768  	Signal               int32                `protobuf:"varint,3,opt,name=signal,proto3" json:"signal,omitempty"`
   769  	Time                 *timestamp.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"`
   770  	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
   771  	XXX_unrecognized     []byte               `json:"-"`
   772  	XXX_sizecache        int32                `json:"-"`
   773  }
   774  
   775  func (m *ProcessState) Reset()         { *m = ProcessState{} }
   776  func (m *ProcessState) String() string { return proto.CompactTextString(m) }
   777  func (*ProcessState) ProtoMessage()    {}
   778  func (*ProcessState) Descriptor() ([]byte, []int) {
   779  	return fileDescriptor_66b85426380683f3, []int{16}
   780  }
   781  
   782  func (m *ProcessState) XXX_Unmarshal(b []byte) error {
   783  	return xxx_messageInfo_ProcessState.Unmarshal(m, b)
   784  }
   785  func (m *ProcessState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   786  	return xxx_messageInfo_ProcessState.Marshal(b, m, deterministic)
   787  }
   788  func (m *ProcessState) XXX_Merge(src proto.Message) {
   789  	xxx_messageInfo_ProcessState.Merge(m, src)
   790  }
   791  func (m *ProcessState) XXX_Size() int {
   792  	return xxx_messageInfo_ProcessState.Size(m)
   793  }
   794  func (m *ProcessState) XXX_DiscardUnknown() {
   795  	xxx_messageInfo_ProcessState.DiscardUnknown(m)
   796  }
   797  
   798  var xxx_messageInfo_ProcessState proto.InternalMessageInfo
   799  
   800  func (m *ProcessState) GetPid() int32 {
   801  	if m != nil {
   802  		return m.Pid
   803  	}
   804  	return 0
   805  }
   806  
   807  func (m *ProcessState) GetExitCode() int32 {
   808  	if m != nil {
   809  		return m.ExitCode
   810  	}
   811  	return 0
   812  }
   813  
   814  func (m *ProcessState) GetSignal() int32 {
   815  	if m != nil {
   816  		return m.Signal
   817  	}
   818  	return 0
   819  }
   820  
   821  func (m *ProcessState) GetTime() *timestamp.Timestamp {
   822  	if m != nil {
   823  		return m.Time
   824  	}
   825  	return nil
   826  }
   827  
   828  func init() {
   829  	proto.RegisterType((*LaunchRequest)(nil), "hashicorp.nomad.plugins.executor.proto.LaunchRequest")
   830  	proto.RegisterType((*LaunchResponse)(nil), "hashicorp.nomad.plugins.executor.proto.LaunchResponse")
   831  	proto.RegisterType((*WaitRequest)(nil), "hashicorp.nomad.plugins.executor.proto.WaitRequest")
   832  	proto.RegisterType((*WaitResponse)(nil), "hashicorp.nomad.plugins.executor.proto.WaitResponse")
   833  	proto.RegisterType((*ShutdownRequest)(nil), "hashicorp.nomad.plugins.executor.proto.ShutdownRequest")
   834  	proto.RegisterType((*ShutdownResponse)(nil), "hashicorp.nomad.plugins.executor.proto.ShutdownResponse")
   835  	proto.RegisterType((*UpdateResourcesRequest)(nil), "hashicorp.nomad.plugins.executor.proto.UpdateResourcesRequest")
   836  	proto.RegisterType((*UpdateResourcesResponse)(nil), "hashicorp.nomad.plugins.executor.proto.UpdateResourcesResponse")
   837  	proto.RegisterType((*VersionRequest)(nil), "hashicorp.nomad.plugins.executor.proto.VersionRequest")
   838  	proto.RegisterType((*VersionResponse)(nil), "hashicorp.nomad.plugins.executor.proto.VersionResponse")
   839  	proto.RegisterType((*StatsRequest)(nil), "hashicorp.nomad.plugins.executor.proto.StatsRequest")
   840  	proto.RegisterType((*StatsResponse)(nil), "hashicorp.nomad.plugins.executor.proto.StatsResponse")
   841  	proto.RegisterType((*SignalRequest)(nil), "hashicorp.nomad.plugins.executor.proto.SignalRequest")
   842  	proto.RegisterType((*SignalResponse)(nil), "hashicorp.nomad.plugins.executor.proto.SignalResponse")
   843  	proto.RegisterType((*ExecRequest)(nil), "hashicorp.nomad.plugins.executor.proto.ExecRequest")
   844  	proto.RegisterType((*ExecResponse)(nil), "hashicorp.nomad.plugins.executor.proto.ExecResponse")
   845  	proto.RegisterType((*ProcessState)(nil), "hashicorp.nomad.plugins.executor.proto.ProcessState")
   846  }
   847  
   848  func init() {
   849  	proto.RegisterFile("drivers/shared/executor/proto/executor.proto", fileDescriptor_66b85426380683f3)
   850  }
   851  
   852  var fileDescriptor_66b85426380683f3 = []byte{
   853  	// 1003 bytes of a gzipped FileDescriptorProto
   854  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x5b, 0x6f, 0x1b, 0x45,
   855  	0x14, 0xee, 0xc6, 0xf1, 0xed, 0xd8, 0x8e, 0xcd, 0x08, 0x85, 0xad, 0x79, 0xa8, 0xd9, 0x07, 0x6a,
   856  	0x41, 0x59, 0x47, 0xe9, 0x0d, 0x09, 0x89, 0x22, 0x92, 0x82, 0x2a, 0xa5, 0x91, 0xb5, 0x2e, 0x54,
   857  	0xe2, 0x81, 0x65, 0xba, 0x3b, 0xb5, 0x47, 0xb1, 0x77, 0x96, 0x99, 0x59, 0x37, 0x48, 0x48, 0x3c,
   858  	0xf1, 0x0f, 0x40, 0xe2, 0x87, 0xf1, 0x83, 0xd0, 0xdc, 0x36, 0x76, 0x5a, 0xaa, 0x75, 0x11, 0x4f,
   859  	0x9e, 0x39, 0xfe, 0xbe, 0x73, 0x99, 0x73, 0xce, 0xb7, 0x70, 0x27, 0xe5, 0x74, 0x4d, 0xb8, 0x98,
   860  	0x88, 0x05, 0xe6, 0x24, 0x9d, 0x90, 0x4b, 0x92, 0x14, 0x92, 0xf1, 0x49, 0xce, 0x99, 0x64, 0xe5,
   861  	0x35, 0xd4, 0x57, 0xf4, 0xf1, 0x02, 0x8b, 0x05, 0x4d, 0x18, 0xcf, 0xc3, 0x8c, 0xad, 0x70, 0x1a,
   862  	0xe6, 0xcb, 0x62, 0x4e, 0x33, 0x11, 0x6e, 0xe3, 0x86, 0xb7, 0xe6, 0x8c, 0xcd, 0x97, 0xc4, 0x38,
   863  	0x79, 0x51, 0xbc, 0x9c, 0x48, 0xba, 0x22, 0x42, 0xe2, 0x55, 0x6e, 0x01, 0x81, 0x25, 0x4e, 0x5c,
   864  	0x78, 0x13, 0xce, 0xdc, 0x0c, 0x26, 0xf8, 0xbb, 0x0e, 0xbd, 0x33, 0x5c, 0x64, 0xc9, 0x22, 0x22,
   865  	0x3f, 0x17, 0x44, 0x48, 0x34, 0x80, 0x5a, 0xb2, 0x4a, 0x7d, 0x6f, 0xe4, 0x8d, 0xdb, 0x91, 0x3a,
   866  	0x22, 0x04, 0xfb, 0x98, 0xcf, 0x85, 0xbf, 0x37, 0xaa, 0x8d, 0xdb, 0x91, 0x3e, 0xa3, 0x73, 0x68,
   867  	0x73, 0x22, 0x58, 0xc1, 0x13, 0x22, 0xfc, 0xda, 0xc8, 0x1b, 0x77, 0x8e, 0x8f, 0xc2, 0x7f, 0x4b,
   868  	0xdc, 0xc6, 0x37, 0x21, 0xc3, 0xc8, 0xf1, 0xa2, 0x2b, 0x17, 0xe8, 0x16, 0x74, 0x84, 0x4c, 0x59,
   869  	0x21, 0xe3, 0x1c, 0xcb, 0x85, 0xbf, 0xaf, 0xa3, 0x83, 0x31, 0x4d, 0xb1, 0x5c, 0x58, 0x00, 0xe1,
   870  	0xdc, 0x00, 0xea, 0x25, 0x80, 0x70, 0xae, 0x01, 0x03, 0xa8, 0x91, 0x6c, 0xed, 0x37, 0x74, 0x92,
   871  	0xea, 0xa8, 0xf2, 0x2e, 0x04, 0xe1, 0x7e, 0x53, 0x63, 0xf5, 0x19, 0xdd, 0x84, 0x96, 0xc4, 0xe2,
   872  	0x22, 0x4e, 0x29, 0xf7, 0x5b, 0xda, 0xde, 0x54, 0xf7, 0x53, 0xca, 0xd1, 0x6d, 0xe8, 0xbb, 0x7c,
   873  	0xe2, 0x25, 0x5d, 0x51, 0x29, 0xfc, 0xf6, 0xc8, 0x1b, 0xb7, 0xa2, 0x03, 0x67, 0x3e, 0xd3, 0x56,
   874  	0x74, 0x04, 0xef, 0xbf, 0xc0, 0x82, 0x26, 0x71, 0xce, 0x59, 0x42, 0x84, 0x88, 0x93, 0x39, 0x67,
   875  	0x45, 0xee, 0x83, 0x46, 0x23, 0xfd, 0xdf, 0xd4, 0xfc, 0x75, 0xa2, 0xff, 0x41, 0xa7, 0xd0, 0x58,
   876  	0xb1, 0x22, 0x93, 0xc2, 0xef, 0x8c, 0x6a, 0xe3, 0xce, 0xf1, 0x9d, 0x8a, 0x4f, 0xf5, 0x54, 0x91,
   877  	0x22, 0xcb, 0x45, 0xdf, 0x42, 0x33, 0x25, 0x6b, 0xaa, 0x5e, 0xbc, 0xab, 0xdd, 0x7c, 0x56, 0xd1,
   878  	0xcd, 0xa9, 0x66, 0x45, 0x8e, 0x8d, 0x16, 0xf0, 0x5e, 0x46, 0xe4, 0x2b, 0xc6, 0x2f, 0x62, 0x2a,
   879  	0xd8, 0x12, 0x4b, 0xca, 0x32, 0xbf, 0xa7, 0x9b, 0xf8, 0x45, 0x45, 0x97, 0xe7, 0x86, 0xff, 0xc4,
   880  	0xd1, 0x67, 0x39, 0x49, 0xa2, 0x41, 0x76, 0xcd, 0x8a, 0x02, 0xe8, 0x65, 0x2c, 0xce, 0xe9, 0x9a,
   881  	0xc9, 0x98, 0x33, 0x26, 0xfd, 0x03, 0xfd, 0x46, 0x9d, 0x8c, 0x4d, 0x95, 0x2d, 0x62, 0x4c, 0xa2,
   882  	0x31, 0x0c, 0x52, 0xf2, 0x12, 0x17, 0x4b, 0x19, 0xe7, 0x34, 0x8d, 0x57, 0x2c, 0x25, 0x7e, 0x5f,
   883  	0xb7, 0xe6, 0xc0, 0xda, 0xa7, 0x34, 0x7d, 0xca, 0x52, 0xb2, 0x89, 0xa4, 0x79, 0x62, 0x90, 0x83,
   884  	0x2d, 0xe4, 0x93, 0x3c, 0x51, 0xc8, 0xe0, 0x27, 0x38, 0x70, 0x53, 0x2d, 0x72, 0x96, 0x09, 0x82,
   885  	0xce, 0xa1, 0x69, 0xdb, 0xa5, 0x47, 0xbb, 0x73, 0x7c, 0x2f, 0xac, 0xb6, 0x67, 0xa1, 0x6d, 0xe5,
   886  	0x4c, 0x62, 0x49, 0x22, 0xe7, 0x24, 0xe8, 0x41, 0xe7, 0x39, 0xa6, 0xd2, 0x6e, 0x4d, 0xf0, 0x23,
   887  	0x74, 0xcd, 0xf5, 0x7f, 0x0a, 0x77, 0x06, 0xfd, 0xd9, 0xa2, 0x90, 0x29, 0x7b, 0x95, 0xb9, 0x45,
   888  	0x3d, 0x84, 0x86, 0xa0, 0xf3, 0x0c, 0x2f, 0xed, 0xae, 0xda, 0x1b, 0xfa, 0x08, 0xba, 0x73, 0x8e,
   889  	0x13, 0x12, 0xe7, 0x84, 0x53, 0x96, 0xfa, 0x7b, 0x23, 0x6f, 0x5c, 0x8b, 0x3a, 0xda, 0x36, 0xd5,
   890  	0xa6, 0x00, 0xc1, 0xe0, 0xca, 0x9b, 0xc9, 0x38, 0x58, 0xc0, 0xe1, 0x77, 0x79, 0xaa, 0x82, 0x96,
   891  	0xfb, 0x69, 0x03, 0x6d, 0xed, 0xba, 0xf7, 0x9f, 0x77, 0x3d, 0xb8, 0x09, 0x1f, 0xbc, 0x16, 0xc9,
   892  	0x26, 0x31, 0x80, 0x83, 0xef, 0x09, 0x17, 0x94, 0xb9, 0x2a, 0x83, 0x4f, 0xa1, 0x5f, 0x5a, 0xec,
   893  	0xdb, 0xfa, 0xd0, 0x5c, 0x1b, 0x93, 0xad, 0xdc, 0x5d, 0x83, 0x4f, 0xa0, 0xab, 0xde, 0xad, 0xcc,
   894  	0x7c, 0x08, 0x2d, 0x9a, 0x49, 0xc2, 0xd7, 0xf6, 0x91, 0x6a, 0x51, 0x79, 0x0f, 0x9e, 0x43, 0xcf,
   895  	0x62, 0xad, 0xdb, 0x6f, 0xa0, 0x2e, 0x94, 0x61, 0xc7, 0x12, 0x9f, 0x61, 0x71, 0x61, 0x1c, 0x19,
   896  	0x7a, 0x70, 0x1b, 0x7a, 0x33, 0xdd, 0x89, 0x37, 0x37, 0xaa, 0xee, 0x1a, 0xa5, 0x8a, 0x75, 0x40,
   897  	0x5b, 0xfe, 0x05, 0x74, 0x1e, 0x5f, 0x92, 0xc4, 0x11, 0x1f, 0x40, 0x2b, 0x25, 0x38, 0x5d, 0xd2,
   898  	0x8c, 0xd8, 0xa4, 0x86, 0xa1, 0x11, 0xfd, 0xd0, 0x89, 0x7e, 0xf8, 0xcc, 0x89, 0x7e, 0x54, 0x62,
   899  	0x9d, 0x84, 0xef, 0xbd, 0x2e, 0xe1, 0xb5, 0x2b, 0x09, 0x0f, 0x4e, 0xa0, 0x6b, 0x82, 0xd9, 0xfa,
   900  	0x0f, 0xa1, 0xc1, 0x0a, 0x99, 0x17, 0x52, 0xc7, 0xea, 0x46, 0xf6, 0x86, 0x3e, 0x84, 0x36, 0xb9,
   901  	0xa4, 0x32, 0x4e, 0xd4, 0xba, 0xed, 0xe9, 0x0a, 0x5a, 0xca, 0x70, 0xa2, 0x16, 0xed, 0x77, 0x0f,
   902  	0xba, 0x9b, 0x13, 0xab, 0x62, 0xe7, 0x34, 0xb5, 0x95, 0xaa, 0xe3, 0x5b, 0xf9, 0x1b, 0x6f, 0x53,
   903  	0xdb, 0x7c, 0x1b, 0x14, 0xc2, 0xbe, 0xfa, 0x9c, 0xe9, 0x0f, 0xc1, 0xdb, 0xcb, 0xd6, 0xb8, 0xe3,
   904  	0x3f, 0xdb, 0xd0, 0x7a, 0x6c, 0x17, 0x09, 0xfd, 0x02, 0x0d, 0xb3, 0xfd, 0xe8, 0x7e, 0xd5, 0xad,
   905  	0xdb, 0xfa, 0x06, 0x0e, 0x1f, 0xec, 0x4a, 0xb3, 0xfd, 0xbb, 0x81, 0x04, 0xec, 0x2b, 0x1d, 0x40,
   906  	0x77, 0xab, 0x7a, 0xd8, 0x10, 0x91, 0xe1, 0xbd, 0xdd, 0x48, 0x65, 0xd0, 0xdf, 0xa0, 0xe5, 0xd6,
   907  	0x19, 0x3d, 0xac, 0xea, 0xe3, 0x9a, 0x9c, 0x0c, 0x3f, 0xdf, 0x9d, 0x58, 0x26, 0xf0, 0x87, 0x07,
   908  	0xfd, 0x6b, 0x2b, 0x8d, 0xbe, 0xac, 0xea, 0xef, 0xcd, 0xaa, 0x33, 0x7c, 0xf4, 0xce, 0xfc, 0x32,
   909  	0xad, 0x5f, 0xa1, 0x69, 0xb5, 0x03, 0x55, 0xee, 0xe8, 0xb6, 0xfc, 0x0c, 0x1f, 0xee, 0xcc, 0x2b,
   910  	0xa3, 0x5f, 0x42, 0x5d, 0xeb, 0x02, 0xaa, 0xdc, 0xd6, 0x4d, 0xed, 0x1a, 0xde, 0xdf, 0x91, 0xe5,
   911  	0xe2, 0x1e, 0x79, 0x6a, 0xfe, 0x8d, 0xb0, 0x54, 0x9f, 0xff, 0x2d, 0xc5, 0xaa, 0x3e, 0xff, 0xd7,
   912  	0xf4, 0x4b, 0xcf, 0xbf, 0x5a, 0xc3, 0xea, 0xf3, 0xbf, 0xa1, 0x77, 0xd5, 0xe7, 0x7f, 0x53, 0xb7,
   913  	0x82, 0x1b, 0xe8, 0x2f, 0x0f, 0x7a, 0xca, 0x34, 0x93, 0x9c, 0xe0, 0x15, 0xcd, 0xe6, 0xe8, 0x51,
   914  	0x45, 0xf1, 0x56, 0x2c, 0x23, 0xe0, 0x96, 0xe9, 0x52, 0xf9, 0xea, 0xdd, 0x1d, 0xb8, 0xb4, 0xc6,
   915  	0xde, 0x91, 0xf7, 0x75, 0xf3, 0x87, 0xba, 0xd1, 0xac, 0x86, 0xfe, 0xb9, 0xfb, 0x4f, 0x00, 0x00,
   916  	0x00, 0xff, 0xff, 0x4a, 0xf7, 0x34, 0xf9, 0x0c, 0x0c, 0x00, 0x00,
   917  }
   918  
   919  // Reference imports to suppress errors if they are not otherwise used.
   920  var _ context.Context
   921  var _ grpc.ClientConnInterface
   922  
   923  // This is a compile-time assertion to ensure that this generated file
   924  // is compatible with the grpc package it is being compiled against.
   925  const _ = grpc.SupportPackageIsVersion6
   926  
   927  // ExecutorClient is the client API for Executor service.
   928  //
   929  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   930  type ExecutorClient interface {
   931  	Launch(ctx context.Context, in *LaunchRequest, opts ...grpc.CallOption) (*LaunchResponse, error)
   932  	Wait(ctx context.Context, in *WaitRequest, opts ...grpc.CallOption) (*WaitResponse, error)
   933  	Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error)
   934  	UpdateResources(ctx context.Context, in *UpdateResourcesRequest, opts ...grpc.CallOption) (*UpdateResourcesResponse, error)
   935  	Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error)
   936  	Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (Executor_StatsClient, error)
   937  	Signal(ctx context.Context, in *SignalRequest, opts ...grpc.CallOption) (*SignalResponse, error)
   938  	Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error)
   939  	// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
   940  	ExecStreaming(ctx context.Context, opts ...grpc.CallOption) (Executor_ExecStreamingClient, error)
   941  }
   942  
   943  type executorClient struct {
   944  	cc grpc.ClientConnInterface
   945  }
   946  
   947  func NewExecutorClient(cc grpc.ClientConnInterface) ExecutorClient {
   948  	return &executorClient{cc}
   949  }
   950  
   951  func (c *executorClient) Launch(ctx context.Context, in *LaunchRequest, opts ...grpc.CallOption) (*LaunchResponse, error) {
   952  	out := new(LaunchResponse)
   953  	err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.executor.proto.Executor/Launch", in, out, opts...)
   954  	if err != nil {
   955  		return nil, err
   956  	}
   957  	return out, nil
   958  }
   959  
   960  func (c *executorClient) Wait(ctx context.Context, in *WaitRequest, opts ...grpc.CallOption) (*WaitResponse, error) {
   961  	out := new(WaitResponse)
   962  	err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.executor.proto.Executor/Wait", in, out, opts...)
   963  	if err != nil {
   964  		return nil, err
   965  	}
   966  	return out, nil
   967  }
   968  
   969  func (c *executorClient) Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error) {
   970  	out := new(ShutdownResponse)
   971  	err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.executor.proto.Executor/Shutdown", in, out, opts...)
   972  	if err != nil {
   973  		return nil, err
   974  	}
   975  	return out, nil
   976  }
   977  
   978  func (c *executorClient) UpdateResources(ctx context.Context, in *UpdateResourcesRequest, opts ...grpc.CallOption) (*UpdateResourcesResponse, error) {
   979  	out := new(UpdateResourcesResponse)
   980  	err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.executor.proto.Executor/UpdateResources", in, out, opts...)
   981  	if err != nil {
   982  		return nil, err
   983  	}
   984  	return out, nil
   985  }
   986  
   987  func (c *executorClient) Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) {
   988  	out := new(VersionResponse)
   989  	err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.executor.proto.Executor/Version", in, out, opts...)
   990  	if err != nil {
   991  		return nil, err
   992  	}
   993  	return out, nil
   994  }
   995  
   996  func (c *executorClient) Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (Executor_StatsClient, error) {
   997  	stream, err := c.cc.NewStream(ctx, &_Executor_serviceDesc.Streams[0], "/hashicorp.nomad.plugins.executor.proto.Executor/Stats", opts...)
   998  	if err != nil {
   999  		return nil, err
  1000  	}
  1001  	x := &executorStatsClient{stream}
  1002  	if err := x.ClientStream.SendMsg(in); err != nil {
  1003  		return nil, err
  1004  	}
  1005  	if err := x.ClientStream.CloseSend(); err != nil {
  1006  		return nil, err
  1007  	}
  1008  	return x, nil
  1009  }
  1010  
  1011  type Executor_StatsClient interface {
  1012  	Recv() (*StatsResponse, error)
  1013  	grpc.ClientStream
  1014  }
  1015  
  1016  type executorStatsClient struct {
  1017  	grpc.ClientStream
  1018  }
  1019  
  1020  func (x *executorStatsClient) Recv() (*StatsResponse, error) {
  1021  	m := new(StatsResponse)
  1022  	if err := x.ClientStream.RecvMsg(m); err != nil {
  1023  		return nil, err
  1024  	}
  1025  	return m, nil
  1026  }
  1027  
  1028  func (c *executorClient) Signal(ctx context.Context, in *SignalRequest, opts ...grpc.CallOption) (*SignalResponse, error) {
  1029  	out := new(SignalResponse)
  1030  	err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.executor.proto.Executor/Signal", in, out, opts...)
  1031  	if err != nil {
  1032  		return nil, err
  1033  	}
  1034  	return out, nil
  1035  }
  1036  
  1037  func (c *executorClient) Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error) {
  1038  	out := new(ExecResponse)
  1039  	err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.executor.proto.Executor/Exec", in, out, opts...)
  1040  	if err != nil {
  1041  		return nil, err
  1042  	}
  1043  	return out, nil
  1044  }
  1045  
  1046  func (c *executorClient) ExecStreaming(ctx context.Context, opts ...grpc.CallOption) (Executor_ExecStreamingClient, error) {
  1047  	stream, err := c.cc.NewStream(ctx, &_Executor_serviceDesc.Streams[1], "/hashicorp.nomad.plugins.executor.proto.Executor/ExecStreaming", opts...)
  1048  	if err != nil {
  1049  		return nil, err
  1050  	}
  1051  	x := &executorExecStreamingClient{stream}
  1052  	return x, nil
  1053  }
  1054  
  1055  type Executor_ExecStreamingClient interface {
  1056  	Send(*proto1.ExecTaskStreamingRequest) error
  1057  	Recv() (*proto1.ExecTaskStreamingResponse, error)
  1058  	grpc.ClientStream
  1059  }
  1060  
  1061  type executorExecStreamingClient struct {
  1062  	grpc.ClientStream
  1063  }
  1064  
  1065  func (x *executorExecStreamingClient) Send(m *proto1.ExecTaskStreamingRequest) error {
  1066  	return x.ClientStream.SendMsg(m)
  1067  }
  1068  
  1069  func (x *executorExecStreamingClient) Recv() (*proto1.ExecTaskStreamingResponse, error) {
  1070  	m := new(proto1.ExecTaskStreamingResponse)
  1071  	if err := x.ClientStream.RecvMsg(m); err != nil {
  1072  		return nil, err
  1073  	}
  1074  	return m, nil
  1075  }
  1076  
  1077  // ExecutorServer is the server API for Executor service.
  1078  type ExecutorServer interface {
  1079  	Launch(context.Context, *LaunchRequest) (*LaunchResponse, error)
  1080  	Wait(context.Context, *WaitRequest) (*WaitResponse, error)
  1081  	Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
  1082  	UpdateResources(context.Context, *UpdateResourcesRequest) (*UpdateResourcesResponse, error)
  1083  	Version(context.Context, *VersionRequest) (*VersionResponse, error)
  1084  	Stats(*StatsRequest, Executor_StatsServer) error
  1085  	Signal(context.Context, *SignalRequest) (*SignalResponse, error)
  1086  	Exec(context.Context, *ExecRequest) (*ExecResponse, error)
  1087  	// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
  1088  	ExecStreaming(Executor_ExecStreamingServer) error
  1089  }
  1090  
  1091  // UnimplementedExecutorServer can be embedded to have forward compatible implementations.
  1092  type UnimplementedExecutorServer struct {
  1093  }
  1094  
  1095  func (*UnimplementedExecutorServer) Launch(ctx context.Context, req *LaunchRequest) (*LaunchResponse, error) {
  1096  	return nil, status.Errorf(codes.Unimplemented, "method Launch not implemented")
  1097  }
  1098  func (*UnimplementedExecutorServer) Wait(ctx context.Context, req *WaitRequest) (*WaitResponse, error) {
  1099  	return nil, status.Errorf(codes.Unimplemented, "method Wait not implemented")
  1100  }
  1101  func (*UnimplementedExecutorServer) Shutdown(ctx context.Context, req *ShutdownRequest) (*ShutdownResponse, error) {
  1102  	return nil, status.Errorf(codes.Unimplemented, "method Shutdown not implemented")
  1103  }
  1104  func (*UnimplementedExecutorServer) UpdateResources(ctx context.Context, req *UpdateResourcesRequest) (*UpdateResourcesResponse, error) {
  1105  	return nil, status.Errorf(codes.Unimplemented, "method UpdateResources not implemented")
  1106  }
  1107  func (*UnimplementedExecutorServer) Version(ctx context.Context, req *VersionRequest) (*VersionResponse, error) {
  1108  	return nil, status.Errorf(codes.Unimplemented, "method Version not implemented")
  1109  }
  1110  func (*UnimplementedExecutorServer) Stats(req *StatsRequest, srv Executor_StatsServer) error {
  1111  	return status.Errorf(codes.Unimplemented, "method Stats not implemented")
  1112  }
  1113  func (*UnimplementedExecutorServer) Signal(ctx context.Context, req *SignalRequest) (*SignalResponse, error) {
  1114  	return nil, status.Errorf(codes.Unimplemented, "method Signal not implemented")
  1115  }
  1116  func (*UnimplementedExecutorServer) Exec(ctx context.Context, req *ExecRequest) (*ExecResponse, error) {
  1117  	return nil, status.Errorf(codes.Unimplemented, "method Exec not implemented")
  1118  }
  1119  func (*UnimplementedExecutorServer) ExecStreaming(srv Executor_ExecStreamingServer) error {
  1120  	return status.Errorf(codes.Unimplemented, "method ExecStreaming not implemented")
  1121  }
  1122  
  1123  func RegisterExecutorServer(s *grpc.Server, srv ExecutorServer) {
  1124  	s.RegisterService(&_Executor_serviceDesc, srv)
  1125  }
  1126  
  1127  func _Executor_Launch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1128  	in := new(LaunchRequest)
  1129  	if err := dec(in); err != nil {
  1130  		return nil, err
  1131  	}
  1132  	if interceptor == nil {
  1133  		return srv.(ExecutorServer).Launch(ctx, in)
  1134  	}
  1135  	info := &grpc.UnaryServerInfo{
  1136  		Server:     srv,
  1137  		FullMethod: "/hashicorp.nomad.plugins.executor.proto.Executor/Launch",
  1138  	}
  1139  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1140  		return srv.(ExecutorServer).Launch(ctx, req.(*LaunchRequest))
  1141  	}
  1142  	return interceptor(ctx, in, info, handler)
  1143  }
  1144  
  1145  func _Executor_Wait_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1146  	in := new(WaitRequest)
  1147  	if err := dec(in); err != nil {
  1148  		return nil, err
  1149  	}
  1150  	if interceptor == nil {
  1151  		return srv.(ExecutorServer).Wait(ctx, in)
  1152  	}
  1153  	info := &grpc.UnaryServerInfo{
  1154  		Server:     srv,
  1155  		FullMethod: "/hashicorp.nomad.plugins.executor.proto.Executor/Wait",
  1156  	}
  1157  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1158  		return srv.(ExecutorServer).Wait(ctx, req.(*WaitRequest))
  1159  	}
  1160  	return interceptor(ctx, in, info, handler)
  1161  }
  1162  
  1163  func _Executor_Shutdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1164  	in := new(ShutdownRequest)
  1165  	if err := dec(in); err != nil {
  1166  		return nil, err
  1167  	}
  1168  	if interceptor == nil {
  1169  		return srv.(ExecutorServer).Shutdown(ctx, in)
  1170  	}
  1171  	info := &grpc.UnaryServerInfo{
  1172  		Server:     srv,
  1173  		FullMethod: "/hashicorp.nomad.plugins.executor.proto.Executor/Shutdown",
  1174  	}
  1175  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1176  		return srv.(ExecutorServer).Shutdown(ctx, req.(*ShutdownRequest))
  1177  	}
  1178  	return interceptor(ctx, in, info, handler)
  1179  }
  1180  
  1181  func _Executor_UpdateResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1182  	in := new(UpdateResourcesRequest)
  1183  	if err := dec(in); err != nil {
  1184  		return nil, err
  1185  	}
  1186  	if interceptor == nil {
  1187  		return srv.(ExecutorServer).UpdateResources(ctx, in)
  1188  	}
  1189  	info := &grpc.UnaryServerInfo{
  1190  		Server:     srv,
  1191  		FullMethod: "/hashicorp.nomad.plugins.executor.proto.Executor/UpdateResources",
  1192  	}
  1193  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1194  		return srv.(ExecutorServer).UpdateResources(ctx, req.(*UpdateResourcesRequest))
  1195  	}
  1196  	return interceptor(ctx, in, info, handler)
  1197  }
  1198  
  1199  func _Executor_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1200  	in := new(VersionRequest)
  1201  	if err := dec(in); err != nil {
  1202  		return nil, err
  1203  	}
  1204  	if interceptor == nil {
  1205  		return srv.(ExecutorServer).Version(ctx, in)
  1206  	}
  1207  	info := &grpc.UnaryServerInfo{
  1208  		Server:     srv,
  1209  		FullMethod: "/hashicorp.nomad.plugins.executor.proto.Executor/Version",
  1210  	}
  1211  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1212  		return srv.(ExecutorServer).Version(ctx, req.(*VersionRequest))
  1213  	}
  1214  	return interceptor(ctx, in, info, handler)
  1215  }
  1216  
  1217  func _Executor_Stats_Handler(srv interface{}, stream grpc.ServerStream) error {
  1218  	m := new(StatsRequest)
  1219  	if err := stream.RecvMsg(m); err != nil {
  1220  		return err
  1221  	}
  1222  	return srv.(ExecutorServer).Stats(m, &executorStatsServer{stream})
  1223  }
  1224  
  1225  type Executor_StatsServer interface {
  1226  	Send(*StatsResponse) error
  1227  	grpc.ServerStream
  1228  }
  1229  
  1230  type executorStatsServer struct {
  1231  	grpc.ServerStream
  1232  }
  1233  
  1234  func (x *executorStatsServer) Send(m *StatsResponse) error {
  1235  	return x.ServerStream.SendMsg(m)
  1236  }
  1237  
  1238  func _Executor_Signal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1239  	in := new(SignalRequest)
  1240  	if err := dec(in); err != nil {
  1241  		return nil, err
  1242  	}
  1243  	if interceptor == nil {
  1244  		return srv.(ExecutorServer).Signal(ctx, in)
  1245  	}
  1246  	info := &grpc.UnaryServerInfo{
  1247  		Server:     srv,
  1248  		FullMethod: "/hashicorp.nomad.plugins.executor.proto.Executor/Signal",
  1249  	}
  1250  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1251  		return srv.(ExecutorServer).Signal(ctx, req.(*SignalRequest))
  1252  	}
  1253  	return interceptor(ctx, in, info, handler)
  1254  }
  1255  
  1256  func _Executor_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1257  	in := new(ExecRequest)
  1258  	if err := dec(in); err != nil {
  1259  		return nil, err
  1260  	}
  1261  	if interceptor == nil {
  1262  		return srv.(ExecutorServer).Exec(ctx, in)
  1263  	}
  1264  	info := &grpc.UnaryServerInfo{
  1265  		Server:     srv,
  1266  		FullMethod: "/hashicorp.nomad.plugins.executor.proto.Executor/Exec",
  1267  	}
  1268  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1269  		return srv.(ExecutorServer).Exec(ctx, req.(*ExecRequest))
  1270  	}
  1271  	return interceptor(ctx, in, info, handler)
  1272  }
  1273  
  1274  func _Executor_ExecStreaming_Handler(srv interface{}, stream grpc.ServerStream) error {
  1275  	return srv.(ExecutorServer).ExecStreaming(&executorExecStreamingServer{stream})
  1276  }
  1277  
  1278  type Executor_ExecStreamingServer interface {
  1279  	Send(*proto1.ExecTaskStreamingResponse) error
  1280  	Recv() (*proto1.ExecTaskStreamingRequest, error)
  1281  	grpc.ServerStream
  1282  }
  1283  
  1284  type executorExecStreamingServer struct {
  1285  	grpc.ServerStream
  1286  }
  1287  
  1288  func (x *executorExecStreamingServer) Send(m *proto1.ExecTaskStreamingResponse) error {
  1289  	return x.ServerStream.SendMsg(m)
  1290  }
  1291  
  1292  func (x *executorExecStreamingServer) Recv() (*proto1.ExecTaskStreamingRequest, error) {
  1293  	m := new(proto1.ExecTaskStreamingRequest)
  1294  	if err := x.ServerStream.RecvMsg(m); err != nil {
  1295  		return nil, err
  1296  	}
  1297  	return m, nil
  1298  }
  1299  
  1300  var _Executor_serviceDesc = grpc.ServiceDesc{
  1301  	ServiceName: "hashicorp.nomad.plugins.executor.proto.Executor",
  1302  	HandlerType: (*ExecutorServer)(nil),
  1303  	Methods: []grpc.MethodDesc{
  1304  		{
  1305  			MethodName: "Launch",
  1306  			Handler:    _Executor_Launch_Handler,
  1307  		},
  1308  		{
  1309  			MethodName: "Wait",
  1310  			Handler:    _Executor_Wait_Handler,
  1311  		},
  1312  		{
  1313  			MethodName: "Shutdown",
  1314  			Handler:    _Executor_Shutdown_Handler,
  1315  		},
  1316  		{
  1317  			MethodName: "UpdateResources",
  1318  			Handler:    _Executor_UpdateResources_Handler,
  1319  		},
  1320  		{
  1321  			MethodName: "Version",
  1322  			Handler:    _Executor_Version_Handler,
  1323  		},
  1324  		{
  1325  			MethodName: "Signal",
  1326  			Handler:    _Executor_Signal_Handler,
  1327  		},
  1328  		{
  1329  			MethodName: "Exec",
  1330  			Handler:    _Executor_Exec_Handler,
  1331  		},
  1332  	},
  1333  	Streams: []grpc.StreamDesc{
  1334  		{
  1335  			StreamName:    "Stats",
  1336  			Handler:       _Executor_Stats_Handler,
  1337  			ServerStreams: true,
  1338  		},
  1339  		{
  1340  			StreamName:    "ExecStreaming",
  1341  			Handler:       _Executor_ExecStreaming_Handler,
  1342  			ServerStreams: true,
  1343  			ClientStreams: true,
  1344  		},
  1345  	},
  1346  	Metadata: "drivers/shared/executor/proto/executor.proto",
  1347  }