github.com/matrixorigin/matrixone@v1.2.0/pkg/pb/task/task.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: task.proto
     3  
     4  package task
     5  
     6  import (
     7  	fmt "fmt"
     8  	io "io"
     9  	math "math"
    10  	math_bits "math/bits"
    11  	time "time"
    12  
    13  	_ "github.com/gogo/protobuf/gogoproto"
    14  	proto "github.com/gogo/protobuf/proto"
    15  	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
    16  	_ "github.com/matrixorigin/matrixone/pkg/pb/metadata"
    17  	_ "google.golang.org/protobuf/types/known/timestamppb"
    18  )
    19  
    20  // Reference imports to suppress errors if they are not otherwise used.
    21  var _ = proto.Marshal
    22  var _ = fmt.Errorf
    23  var _ = math.Inf
    24  var _ = time.Kitchen
    25  
    26  // This is a compile-time assertion to ensure that this generated file
    27  // is compatible with the proto package it is being compiled against.
    28  // A compilation error at this line likely means your copy of the
    29  // proto package needs to be updated.
    30  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    31  
    32  // TaskStatus task status
    33  type TaskStatus int32
    34  
    35  const (
    36  	// Create is the state of waiting to be scheduled.
    37  	TaskStatus_Created TaskStatus = 0
    38  	// Running is running state. Task is assigned to a CN node and is running
    39  	TaskStatus_Running TaskStatus = 1
    40  	// Completed the task has been completed.
    41  	TaskStatus_Completed TaskStatus = 2
    42  	// Paused is the state that the task has been paused by user.
    43  	TaskStatus_Paused TaskStatus = 3
    44  	// Error is the state that the task encounters some kind of error.
    45  	TaskStatus_Error TaskStatus = 4
    46  	// Canceled is the state that the task is canceled by user.
    47  	TaskStatus_Canceled TaskStatus = 5
    48  	// ResumeRequested is the state that resume request has been proposed to
    49  	// the task and has not been resume.
    50  	TaskStatus_ResumeRequested TaskStatus = 6
    51  	// PauseRequested is the state that pause request has been proposed to
    52  	// the task and has not been paused.
    53  	TaskStatus_PauseRequested TaskStatus = 7
    54  	// CancelRequested is the state that cancel request has been proposed to
    55  	// the task and has not been canceled.
    56  	TaskStatus_CancelRequested TaskStatus = 8
    57  )
    58  
    59  var TaskStatus_name = map[int32]string{
    60  	0: "Created",
    61  	1: "Running",
    62  	2: "Completed",
    63  	3: "Paused",
    64  	4: "Error",
    65  	5: "Canceled",
    66  	6: "ResumeRequested",
    67  	7: "PauseRequested",
    68  	8: "CancelRequested",
    69  }
    70  
    71  var TaskStatus_value = map[string]int32{
    72  	"Created":         0,
    73  	"Running":         1,
    74  	"Completed":       2,
    75  	"Paused":          3,
    76  	"Error":           4,
    77  	"Canceled":        5,
    78  	"ResumeRequested": 6,
    79  	"PauseRequested":  7,
    80  	"CancelRequested": 8,
    81  }
    82  
    83  func (x TaskStatus) String() string {
    84  	return proto.EnumName(TaskStatus_name, int32(x))
    85  }
    86  
    87  func (TaskStatus) EnumDescriptor() ([]byte, []int) {
    88  	return fileDescriptor_ce5d8dd45b4a91ff, []int{0}
    89  }
    90  
    91  // TaskCode task code
    92  type TaskCode int32
    93  
    94  const (
    95  	// TestOnly reserved for testing.
    96  	TaskCode_TestOnly TaskCode = 0
    97  	// SystemInit system init task
    98  	TaskCode_SystemInit TaskCode = 1
    99  	// MetricLogMerge handle metric/log exported data merge task
   100  	TaskCode_MetricLogMerge TaskCode = 2
   101  	// MetricStorageUsage handle metric server_storage_usage collection
   102  	TaskCode_MetricStorageUsage TaskCode = 3
   103  	// ConnectorKafkaSink is for the streaming connector task.
   104  	TaskCode_ConnectorKafkaSink TaskCode = 4
   105  	// MergeObject is for the merge object task.
   106  	TaskCode_MergeObject TaskCode = 5
   107  )
   108  
   109  var TaskCode_name = map[int32]string{
   110  	0: "TestOnly",
   111  	1: "SystemInit",
   112  	2: "MetricLogMerge",
   113  	3: "MetricStorageUsage",
   114  	4: "ConnectorKafkaSink",
   115  	5: "MergeObject",
   116  }
   117  
   118  var TaskCode_value = map[string]int32{
   119  	"TestOnly":           0,
   120  	"SystemInit":         1,
   121  	"MetricLogMerge":     2,
   122  	"MetricStorageUsage": 3,
   123  	"ConnectorKafkaSink": 4,
   124  	"MergeObject":        5,
   125  }
   126  
   127  func (x TaskCode) String() string {
   128  	return proto.EnumName(TaskCode_name, int32(x))
   129  }
   130  
   131  func (TaskCode) EnumDescriptor() ([]byte, []int) {
   132  	return fileDescriptor_ce5d8dd45b4a91ff, []int{1}
   133  }
   134  
   135  // ResultCode result code
   136  type ResultCode int32
   137  
   138  const (
   139  	// Success success
   140  	ResultCode_Success ResultCode = 0
   141  	// Failed failed
   142  	ResultCode_Failed ResultCode = 1
   143  )
   144  
   145  var ResultCode_name = map[int32]string{
   146  	0: "Success",
   147  	1: "Failed",
   148  }
   149  
   150  var ResultCode_value = map[string]int32{
   151  	"Success": 0,
   152  	"Failed":  1,
   153  }
   154  
   155  func (x ResultCode) String() string {
   156  	return proto.EnumName(ResultCode_name, int32(x))
   157  }
   158  
   159  func (ResultCode) EnumDescriptor() ([]byte, []int) {
   160  	return fileDescriptor_ce5d8dd45b4a91ff, []int{2}
   161  }
   162  
   163  type TaskType int32
   164  
   165  const (
   166  	TaskType_TypeUnknown            TaskType = 0
   167  	TaskType_TypeKafkaSinkConnector TaskType = 1
   168  )
   169  
   170  var TaskType_name = map[int32]string{
   171  	0: "Unknown",
   172  	1: "KafkaSinkConnector",
   173  }
   174  
   175  var TaskType_value = map[string]int32{
   176  	"Unknown":            0,
   177  	"KafkaSinkConnector": 1,
   178  }
   179  
   180  func (x TaskType) String() string {
   181  	return proto.EnumName(TaskType_name, int32(x))
   182  }
   183  
   184  func (TaskType) EnumDescriptor() ([]byte, []int) {
   185  	return fileDescriptor_ce5d8dd45b4a91ff, []int{3}
   186  }
   187  
   188  // TaskMetadata is a task metadata abstraction that can be scheduled for execution at any CN node.
   189  type TaskMetadata struct {
   190  	// ID task id, global unique
   191  	ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
   192  	// Executor used to select a particular task executor to run a task
   193  	Executor TaskCode `protobuf:"varint,2,opt,name=Executor,proto3,enum=task.TaskCode" json:"Executor,omitempty"`
   194  	// Context context needed to run the task
   195  	Context []byte `protobuf:"bytes,3,opt,name=Context,proto3" json:"Context,omitempty"`
   196  	// Options options for execute task
   197  	Options              TaskOptions `protobuf:"bytes,4,opt,name=Options,proto3" json:"Options"`
   198  	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
   199  	XXX_unrecognized     []byte      `json:"-"`
   200  	XXX_sizecache        int32       `json:"-"`
   201  }
   202  
   203  func (m *TaskMetadata) Reset()         { *m = TaskMetadata{} }
   204  func (m *TaskMetadata) String() string { return proto.CompactTextString(m) }
   205  func (*TaskMetadata) ProtoMessage()    {}
   206  func (*TaskMetadata) Descriptor() ([]byte, []int) {
   207  	return fileDescriptor_ce5d8dd45b4a91ff, []int{0}
   208  }
   209  func (m *TaskMetadata) XXX_Unmarshal(b []byte) error {
   210  	return m.Unmarshal(b)
   211  }
   212  func (m *TaskMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   213  	if deterministic {
   214  		return xxx_messageInfo_TaskMetadata.Marshal(b, m, deterministic)
   215  	} else {
   216  		b = b[:cap(b)]
   217  		n, err := m.MarshalToSizedBuffer(b)
   218  		if err != nil {
   219  			return nil, err
   220  		}
   221  		return b[:n], nil
   222  	}
   223  }
   224  func (m *TaskMetadata) XXX_Merge(src proto.Message) {
   225  	xxx_messageInfo_TaskMetadata.Merge(m, src)
   226  }
   227  func (m *TaskMetadata) XXX_Size() int {
   228  	return m.Size()
   229  }
   230  func (m *TaskMetadata) XXX_DiscardUnknown() {
   231  	xxx_messageInfo_TaskMetadata.DiscardUnknown(m)
   232  }
   233  
   234  var xxx_messageInfo_TaskMetadata proto.InternalMessageInfo
   235  
   236  func (m *TaskMetadata) GetID() string {
   237  	if m != nil {
   238  		return m.ID
   239  	}
   240  	return ""
   241  }
   242  
   243  func (m *TaskMetadata) GetExecutor() TaskCode {
   244  	if m != nil {
   245  		return m.Executor
   246  	}
   247  	return TaskCode_TestOnly
   248  }
   249  
   250  func (m *TaskMetadata) GetContext() []byte {
   251  	if m != nil {
   252  		return m.Context
   253  	}
   254  	return nil
   255  }
   256  
   257  func (m *TaskMetadata) GetOptions() TaskOptions {
   258  	if m != nil {
   259  		return m.Options
   260  	}
   261  	return TaskOptions{}
   262  }
   263  
   264  // TaskOptions task options
   265  type TaskOptions struct {
   266  	// MaxRetryTimes 0 means disable retry
   267  	MaxRetryTimes uint32 `protobuf:"varint,1,opt,name=MaxRetryTimes,proto3" json:"MaxRetryTimes,omitempty"`
   268  	// RetryInterval retry interval
   269  	RetryInterval int64 `protobuf:"varint,2,opt,name=RetryInterval,proto3" json:"RetryInterval,omitempty"`
   270  	// DelayDuration delay duration. Controls how long a task is delayed before it is scheduled for
   271  	// execution.
   272  	DelayDuration int64 `protobuf:"varint,3,opt,name=DelayDuration,proto3" json:"DelayDuration,omitempty"`
   273  	// Concurrency is the max number of a task running at the same time. 0 means no limits.
   274  	Concurrency uint32 `protobuf:"varint,4,opt,name=Concurrency,proto3" json:"Concurrency,omitempty"`
   275  	// Labels indicates that the task should run on the CNs with the Labels.
   276  	Labels map[string]string `protobuf:"bytes,5,rep,name=Labels,proto3" json:"Labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   277  	// Resource required by the task
   278  	Resource             *Resource `protobuf:"bytes,6,opt,name=Resource,proto3" json:"Resource,omitempty"`
   279  	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
   280  	XXX_unrecognized     []byte    `json:"-"`
   281  	XXX_sizecache        int32     `json:"-"`
   282  }
   283  
   284  func (m *TaskOptions) Reset()         { *m = TaskOptions{} }
   285  func (m *TaskOptions) String() string { return proto.CompactTextString(m) }
   286  func (*TaskOptions) ProtoMessage()    {}
   287  func (*TaskOptions) Descriptor() ([]byte, []int) {
   288  	return fileDescriptor_ce5d8dd45b4a91ff, []int{1}
   289  }
   290  func (m *TaskOptions) XXX_Unmarshal(b []byte) error {
   291  	return m.Unmarshal(b)
   292  }
   293  func (m *TaskOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   294  	if deterministic {
   295  		return xxx_messageInfo_TaskOptions.Marshal(b, m, deterministic)
   296  	} else {
   297  		b = b[:cap(b)]
   298  		n, err := m.MarshalToSizedBuffer(b)
   299  		if err != nil {
   300  			return nil, err
   301  		}
   302  		return b[:n], nil
   303  	}
   304  }
   305  func (m *TaskOptions) XXX_Merge(src proto.Message) {
   306  	xxx_messageInfo_TaskOptions.Merge(m, src)
   307  }
   308  func (m *TaskOptions) XXX_Size() int {
   309  	return m.Size()
   310  }
   311  func (m *TaskOptions) XXX_DiscardUnknown() {
   312  	xxx_messageInfo_TaskOptions.DiscardUnknown(m)
   313  }
   314  
   315  var xxx_messageInfo_TaskOptions proto.InternalMessageInfo
   316  
   317  func (m *TaskOptions) GetMaxRetryTimes() uint32 {
   318  	if m != nil {
   319  		return m.MaxRetryTimes
   320  	}
   321  	return 0
   322  }
   323  
   324  func (m *TaskOptions) GetRetryInterval() int64 {
   325  	if m != nil {
   326  		return m.RetryInterval
   327  	}
   328  	return 0
   329  }
   330  
   331  func (m *TaskOptions) GetDelayDuration() int64 {
   332  	if m != nil {
   333  		return m.DelayDuration
   334  	}
   335  	return 0
   336  }
   337  
   338  func (m *TaskOptions) GetConcurrency() uint32 {
   339  	if m != nil {
   340  		return m.Concurrency
   341  	}
   342  	return 0
   343  }
   344  
   345  func (m *TaskOptions) GetLabels() map[string]string {
   346  	if m != nil {
   347  		return m.Labels
   348  	}
   349  	return nil
   350  }
   351  
   352  func (m *TaskOptions) GetResource() *Resource {
   353  	if m != nil {
   354  		return m.Resource
   355  	}
   356  	return nil
   357  }
   358  
   359  // Resource task resource
   360  type Resource struct {
   361  	// CPU cpu resource
   362  	CPU uint64 `protobuf:"varint,1,opt,name=CPU,proto3" json:"CPU,omitempty"`
   363  	// Memory memory resource
   364  	Memory               uint64   `protobuf:"varint,2,opt,name=Memory,proto3" json:"Memory,omitempty"`
   365  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   366  	XXX_unrecognized     []byte   `json:"-"`
   367  	XXX_sizecache        int32    `json:"-"`
   368  }
   369  
   370  func (m *Resource) Reset()         { *m = Resource{} }
   371  func (m *Resource) String() string { return proto.CompactTextString(m) }
   372  func (*Resource) ProtoMessage()    {}
   373  func (*Resource) Descriptor() ([]byte, []int) {
   374  	return fileDescriptor_ce5d8dd45b4a91ff, []int{2}
   375  }
   376  func (m *Resource) XXX_Unmarshal(b []byte) error {
   377  	return m.Unmarshal(b)
   378  }
   379  func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   380  	if deterministic {
   381  		return xxx_messageInfo_Resource.Marshal(b, m, deterministic)
   382  	} else {
   383  		b = b[:cap(b)]
   384  		n, err := m.MarshalToSizedBuffer(b)
   385  		if err != nil {
   386  			return nil, err
   387  		}
   388  		return b[:n], nil
   389  	}
   390  }
   391  func (m *Resource) XXX_Merge(src proto.Message) {
   392  	xxx_messageInfo_Resource.Merge(m, src)
   393  }
   394  func (m *Resource) XXX_Size() int {
   395  	return m.Size()
   396  }
   397  func (m *Resource) XXX_DiscardUnknown() {
   398  	xxx_messageInfo_Resource.DiscardUnknown(m)
   399  }
   400  
   401  var xxx_messageInfo_Resource proto.InternalMessageInfo
   402  
   403  func (m *Resource) GetCPU() uint64 {
   404  	if m != nil {
   405  		return m.CPU
   406  	}
   407  	return 0
   408  }
   409  
   410  func (m *Resource) GetMemory() uint64 {
   411  	if m != nil {
   412  		return m.Memory
   413  	}
   414  	return 0
   415  }
   416  
   417  // ExecuteResult task execute result
   418  type ExecuteResult struct {
   419  	// Code result code
   420  	Code ResultCode `protobuf:"varint,1,opt,name=Code,proto3,enum=task.ResultCode" json:"Code,omitempty"`
   421  	// Error error message
   422  	Error                string   `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
   423  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   424  	XXX_unrecognized     []byte   `json:"-"`
   425  	XXX_sizecache        int32    `json:"-"`
   426  }
   427  
   428  func (m *ExecuteResult) Reset()         { *m = ExecuteResult{} }
   429  func (m *ExecuteResult) String() string { return proto.CompactTextString(m) }
   430  func (*ExecuteResult) ProtoMessage()    {}
   431  func (*ExecuteResult) Descriptor() ([]byte, []int) {
   432  	return fileDescriptor_ce5d8dd45b4a91ff, []int{3}
   433  }
   434  func (m *ExecuteResult) XXX_Unmarshal(b []byte) error {
   435  	return m.Unmarshal(b)
   436  }
   437  func (m *ExecuteResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   438  	if deterministic {
   439  		return xxx_messageInfo_ExecuteResult.Marshal(b, m, deterministic)
   440  	} else {
   441  		b = b[:cap(b)]
   442  		n, err := m.MarshalToSizedBuffer(b)
   443  		if err != nil {
   444  			return nil, err
   445  		}
   446  		return b[:n], nil
   447  	}
   448  }
   449  func (m *ExecuteResult) XXX_Merge(src proto.Message) {
   450  	xxx_messageInfo_ExecuteResult.Merge(m, src)
   451  }
   452  func (m *ExecuteResult) XXX_Size() int {
   453  	return m.Size()
   454  }
   455  func (m *ExecuteResult) XXX_DiscardUnknown() {
   456  	xxx_messageInfo_ExecuteResult.DiscardUnknown(m)
   457  }
   458  
   459  var xxx_messageInfo_ExecuteResult proto.InternalMessageInfo
   460  
   461  func (m *ExecuteResult) GetCode() ResultCode {
   462  	if m != nil {
   463  		return m.Code
   464  	}
   465  	return ResultCode_Success
   466  }
   467  
   468  func (m *ExecuteResult) GetError() string {
   469  	if m != nil {
   470  		return m.Error
   471  	}
   472  	return ""
   473  }
   474  
   475  // Task task execute info.
   476  type AsyncTask struct {
   477  	ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
   478  	// TaskMetadata task metadata
   479  	Metadata TaskMetadata `protobuf:"bytes,2,opt,name=Metadata,proto3" json:"Metadata"`
   480  	// ParentTaskID used to record the parent task of the current task
   481  	ParentTaskID string `protobuf:"bytes,3,opt,name=ParentTaskID,proto3" json:"ParentTaskID,omitempty"`
   482  	// TaskStatus task status
   483  	Status TaskStatus `protobuf:"varint,4,opt,name=Status,proto3,enum=task.TaskStatus" json:"Status,omitempty"`
   484  	// TaskRunner is the UUID of the CN node which the task run is assigned to
   485  	TaskRunner string `protobuf:"bytes,5,opt,name=TaskRunner,proto3" json:"TaskRunner,omitempty"`
   486  	// Epoch indicates how many times the current task is scheduled, the first time it is scheduled
   487  	// is 1. Each time it is scheduled, Epoch++.
   488  	Epoch uint32 `protobuf:"varint,6,opt,name=Epoch,proto3" json:"Epoch,omitempty"`
   489  	// LastHeartbeat time of the last heartbeat reported by TaskRunner. Unix timestamp in ms
   490  	LastHeartbeat int64 `protobuf:"varint,7,opt,name=LastHeartbeat,proto3" json:"LastHeartbeat,omitempty"`
   491  	// CreateAt time of the task created. Unix timestamp in ms
   492  	CreateAt int64 `protobuf:"varint,8,opt,name=CreateAt,proto3" json:"CreateAt,omitempty"`
   493  	// CompletedAt time of the task completed. Unix timestamp in ms
   494  	CompletedAt int64 `protobuf:"varint,9,opt,name=CompletedAt,proto3" json:"CompletedAt,omitempty"`
   495  	// ExecuteResult execute result
   496  	ExecuteResult        *ExecuteResult `protobuf:"bytes,10,opt,name=ExecuteResult,proto3" json:"ExecuteResult,omitempty"`
   497  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   498  	XXX_unrecognized     []byte         `json:"-"`
   499  	XXX_sizecache        int32          `json:"-"`
   500  }
   501  
   502  func (m *AsyncTask) Reset()         { *m = AsyncTask{} }
   503  func (m *AsyncTask) String() string { return proto.CompactTextString(m) }
   504  func (*AsyncTask) ProtoMessage()    {}
   505  func (*AsyncTask) Descriptor() ([]byte, []int) {
   506  	return fileDescriptor_ce5d8dd45b4a91ff, []int{4}
   507  }
   508  func (m *AsyncTask) XXX_Unmarshal(b []byte) error {
   509  	return m.Unmarshal(b)
   510  }
   511  func (m *AsyncTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   512  	if deterministic {
   513  		return xxx_messageInfo_AsyncTask.Marshal(b, m, deterministic)
   514  	} else {
   515  		b = b[:cap(b)]
   516  		n, err := m.MarshalToSizedBuffer(b)
   517  		if err != nil {
   518  			return nil, err
   519  		}
   520  		return b[:n], nil
   521  	}
   522  }
   523  func (m *AsyncTask) XXX_Merge(src proto.Message) {
   524  	xxx_messageInfo_AsyncTask.Merge(m, src)
   525  }
   526  func (m *AsyncTask) XXX_Size() int {
   527  	return m.Size()
   528  }
   529  func (m *AsyncTask) XXX_DiscardUnknown() {
   530  	xxx_messageInfo_AsyncTask.DiscardUnknown(m)
   531  }
   532  
   533  var xxx_messageInfo_AsyncTask proto.InternalMessageInfo
   534  
   535  func (m *AsyncTask) GetID() uint64 {
   536  	if m != nil {
   537  		return m.ID
   538  	}
   539  	return 0
   540  }
   541  
   542  func (m *AsyncTask) GetMetadata() TaskMetadata {
   543  	if m != nil {
   544  		return m.Metadata
   545  	}
   546  	return TaskMetadata{}
   547  }
   548  
   549  func (m *AsyncTask) GetParentTaskID() string {
   550  	if m != nil {
   551  		return m.ParentTaskID
   552  	}
   553  	return ""
   554  }
   555  
   556  func (m *AsyncTask) GetStatus() TaskStatus {
   557  	if m != nil {
   558  		return m.Status
   559  	}
   560  	return TaskStatus_Created
   561  }
   562  
   563  func (m *AsyncTask) GetTaskRunner() string {
   564  	if m != nil {
   565  		return m.TaskRunner
   566  	}
   567  	return ""
   568  }
   569  
   570  func (m *AsyncTask) GetEpoch() uint32 {
   571  	if m != nil {
   572  		return m.Epoch
   573  	}
   574  	return 0
   575  }
   576  
   577  func (m *AsyncTask) GetLastHeartbeat() int64 {
   578  	if m != nil {
   579  		return m.LastHeartbeat
   580  	}
   581  	return 0
   582  }
   583  
   584  func (m *AsyncTask) GetCreateAt() int64 {
   585  	if m != nil {
   586  		return m.CreateAt
   587  	}
   588  	return 0
   589  }
   590  
   591  func (m *AsyncTask) GetCompletedAt() int64 {
   592  	if m != nil {
   593  		return m.CompletedAt
   594  	}
   595  	return 0
   596  }
   597  
   598  func (m *AsyncTask) GetExecuteResult() *ExecuteResult {
   599  	if m != nil {
   600  		return m.ExecuteResult
   601  	}
   602  	return nil
   603  }
   604  
   605  // CronTask task execute info.
   606  type CronTask struct {
   607  	ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
   608  	// TaskMetadata task metadata
   609  	Metadata TaskMetadata `protobuf:"bytes,2,opt,name=Metadata,proto3" json:"Metadata"`
   610  	// CronExpr cron expr
   611  	CronExpr string `protobuf:"bytes,3,opt,name=CronExpr,proto3" json:"CronExpr,omitempty"`
   612  	// NextTime the next time it should be scheduled for execution. Unix timestamp in ms
   613  	NextTime int64 `protobuf:"varint,4,opt,name=NextTime,proto3" json:"NextTime,omitempty"`
   614  	// TriggerTimes the number of times it was triggered
   615  	TriggerTimes uint64 `protobuf:"varint,5,opt,name=TriggerTimes,proto3" json:"TriggerTimes,omitempty"`
   616  	// CreateAt time of the cron task created. Unix timestamp in ms
   617  	CreateAt int64 `protobuf:"varint,6,opt,name=CreateAt,proto3" json:"CreateAt,omitempty"`
   618  	// CreateAt time of the cron task created. Unix timestamp in ms
   619  	UpdateAt             int64    `protobuf:"varint,7,opt,name=UpdateAt,proto3" json:"UpdateAt,omitempty"`
   620  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   621  	XXX_unrecognized     []byte   `json:"-"`
   622  	XXX_sizecache        int32    `json:"-"`
   623  }
   624  
   625  func (m *CronTask) Reset()         { *m = CronTask{} }
   626  func (m *CronTask) String() string { return proto.CompactTextString(m) }
   627  func (*CronTask) ProtoMessage()    {}
   628  func (*CronTask) Descriptor() ([]byte, []int) {
   629  	return fileDescriptor_ce5d8dd45b4a91ff, []int{5}
   630  }
   631  func (m *CronTask) XXX_Unmarshal(b []byte) error {
   632  	return m.Unmarshal(b)
   633  }
   634  func (m *CronTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   635  	if deterministic {
   636  		return xxx_messageInfo_CronTask.Marshal(b, m, deterministic)
   637  	} else {
   638  		b = b[:cap(b)]
   639  		n, err := m.MarshalToSizedBuffer(b)
   640  		if err != nil {
   641  			return nil, err
   642  		}
   643  		return b[:n], nil
   644  	}
   645  }
   646  func (m *CronTask) XXX_Merge(src proto.Message) {
   647  	xxx_messageInfo_CronTask.Merge(m, src)
   648  }
   649  func (m *CronTask) XXX_Size() int {
   650  	return m.Size()
   651  }
   652  func (m *CronTask) XXX_DiscardUnknown() {
   653  	xxx_messageInfo_CronTask.DiscardUnknown(m)
   654  }
   655  
   656  var xxx_messageInfo_CronTask proto.InternalMessageInfo
   657  
   658  func (m *CronTask) GetID() uint64 {
   659  	if m != nil {
   660  		return m.ID
   661  	}
   662  	return 0
   663  }
   664  
   665  func (m *CronTask) GetMetadata() TaskMetadata {
   666  	if m != nil {
   667  		return m.Metadata
   668  	}
   669  	return TaskMetadata{}
   670  }
   671  
   672  func (m *CronTask) GetCronExpr() string {
   673  	if m != nil {
   674  		return m.CronExpr
   675  	}
   676  	return ""
   677  }
   678  
   679  func (m *CronTask) GetNextTime() int64 {
   680  	if m != nil {
   681  		return m.NextTime
   682  	}
   683  	return 0
   684  }
   685  
   686  func (m *CronTask) GetTriggerTimes() uint64 {
   687  	if m != nil {
   688  		return m.TriggerTimes
   689  	}
   690  	return 0
   691  }
   692  
   693  func (m *CronTask) GetCreateAt() int64 {
   694  	if m != nil {
   695  		return m.CreateAt
   696  	}
   697  	return 0
   698  }
   699  
   700  func (m *CronTask) GetUpdateAt() int64 {
   701  	if m != nil {
   702  		return m.UpdateAt
   703  	}
   704  	return 0
   705  }
   706  
   707  type ConnectorDetails struct {
   708  	TableName            string            `protobuf:"bytes,1,opt,name=TableName,proto3" json:"TableName,omitempty"`
   709  	Options              map[string]string `protobuf:"bytes,2,rep,name=Options,proto3" json:"Options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   710  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   711  	XXX_unrecognized     []byte            `json:"-"`
   712  	XXX_sizecache        int32             `json:"-"`
   713  }
   714  
   715  func (m *ConnectorDetails) Reset()         { *m = ConnectorDetails{} }
   716  func (m *ConnectorDetails) String() string { return proto.CompactTextString(m) }
   717  func (*ConnectorDetails) ProtoMessage()    {}
   718  func (*ConnectorDetails) Descriptor() ([]byte, []int) {
   719  	return fileDescriptor_ce5d8dd45b4a91ff, []int{6}
   720  }
   721  func (m *ConnectorDetails) XXX_Unmarshal(b []byte) error {
   722  	return m.Unmarshal(b)
   723  }
   724  func (m *ConnectorDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   725  	if deterministic {
   726  		return xxx_messageInfo_ConnectorDetails.Marshal(b, m, deterministic)
   727  	} else {
   728  		b = b[:cap(b)]
   729  		n, err := m.MarshalToSizedBuffer(b)
   730  		if err != nil {
   731  			return nil, err
   732  		}
   733  		return b[:n], nil
   734  	}
   735  }
   736  func (m *ConnectorDetails) XXX_Merge(src proto.Message) {
   737  	xxx_messageInfo_ConnectorDetails.Merge(m, src)
   738  }
   739  func (m *ConnectorDetails) XXX_Size() int {
   740  	return m.Size()
   741  }
   742  func (m *ConnectorDetails) XXX_DiscardUnknown() {
   743  	xxx_messageInfo_ConnectorDetails.DiscardUnknown(m)
   744  }
   745  
   746  var xxx_messageInfo_ConnectorDetails proto.InternalMessageInfo
   747  
   748  func (m *ConnectorDetails) GetTableName() string {
   749  	if m != nil {
   750  		return m.TableName
   751  	}
   752  	return ""
   753  }
   754  
   755  func (m *ConnectorDetails) GetOptions() map[string]string {
   756  	if m != nil {
   757  		return m.Options
   758  	}
   759  	return nil
   760  }
   761  
   762  type Details struct {
   763  	Description string `protobuf:"bytes,1,opt,name=Description,proto3" json:"Description,omitempty"`
   764  	AccountID   uint32 `protobuf:"varint,2,opt,name=AccountID,proto3" json:"AccountID,omitempty"`
   765  	Account     string `protobuf:"bytes,3,opt,name=Account,proto3" json:"Account,omitempty"`
   766  	Username    string `protobuf:"bytes,4,opt,name=Username,proto3" json:"Username,omitempty"`
   767  	Error       string `protobuf:"bytes,5,opt,name=Error,proto3" json:"Error,omitempty"`
   768  	// Types that are valid to be assigned to Details:
   769  	//
   770  	//	*Details_Connector
   771  	Details              isDetails_Details `protobuf_oneof:"Details"`
   772  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   773  	XXX_unrecognized     []byte            `json:"-"`
   774  	XXX_sizecache        int32             `json:"-"`
   775  }
   776  
   777  func (m *Details) Reset()         { *m = Details{} }
   778  func (m *Details) String() string { return proto.CompactTextString(m) }
   779  func (*Details) ProtoMessage()    {}
   780  func (*Details) Descriptor() ([]byte, []int) {
   781  	return fileDescriptor_ce5d8dd45b4a91ff, []int{7}
   782  }
   783  func (m *Details) XXX_Unmarshal(b []byte) error {
   784  	return m.Unmarshal(b)
   785  }
   786  func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   787  	if deterministic {
   788  		return xxx_messageInfo_Details.Marshal(b, m, deterministic)
   789  	} else {
   790  		b = b[:cap(b)]
   791  		n, err := m.MarshalToSizedBuffer(b)
   792  		if err != nil {
   793  			return nil, err
   794  		}
   795  		return b[:n], nil
   796  	}
   797  }
   798  func (m *Details) XXX_Merge(src proto.Message) {
   799  	xxx_messageInfo_Details.Merge(m, src)
   800  }
   801  func (m *Details) XXX_Size() int {
   802  	return m.Size()
   803  }
   804  func (m *Details) XXX_DiscardUnknown() {
   805  	xxx_messageInfo_Details.DiscardUnknown(m)
   806  }
   807  
   808  var xxx_messageInfo_Details proto.InternalMessageInfo
   809  
   810  type isDetails_Details interface {
   811  	isDetails_Details()
   812  	MarshalTo([]byte) (int, error)
   813  	Size() int
   814  }
   815  
   816  type Details_Connector struct {
   817  	Connector *ConnectorDetails `protobuf:"bytes,10,opt,name=Connector,proto3,oneof" json:"Connector,omitempty"`
   818  }
   819  
   820  func (*Details_Connector) isDetails_Details() {}
   821  
   822  func (m *Details) GetDetails() isDetails_Details {
   823  	if m != nil {
   824  		return m.Details
   825  	}
   826  	return nil
   827  }
   828  
   829  func (m *Details) GetDescription() string {
   830  	if m != nil {
   831  		return m.Description
   832  	}
   833  	return ""
   834  }
   835  
   836  func (m *Details) GetAccountID() uint32 {
   837  	if m != nil {
   838  		return m.AccountID
   839  	}
   840  	return 0
   841  }
   842  
   843  func (m *Details) GetAccount() string {
   844  	if m != nil {
   845  		return m.Account
   846  	}
   847  	return ""
   848  }
   849  
   850  func (m *Details) GetUsername() string {
   851  	if m != nil {
   852  		return m.Username
   853  	}
   854  	return ""
   855  }
   856  
   857  func (m *Details) GetError() string {
   858  	if m != nil {
   859  		return m.Error
   860  	}
   861  	return ""
   862  }
   863  
   864  func (m *Details) GetConnector() *ConnectorDetails {
   865  	if x, ok := m.GetDetails().(*Details_Connector); ok {
   866  		return x.Connector
   867  	}
   868  	return nil
   869  }
   870  
   871  // XXX_OneofWrappers is for the internal use of the proto package.
   872  func (*Details) XXX_OneofWrappers() []interface{} {
   873  	return []interface{}{
   874  		(*Details_Connector)(nil),
   875  	}
   876  }
   877  
   878  type DaemonTask struct {
   879  	ID                   uint64       `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
   880  	Metadata             TaskMetadata `protobuf:"bytes,2,opt,name=Metadata,proto3" json:"Metadata"`
   881  	AccountID            uint32       `protobuf:"varint,3,opt,name=AccountID,proto3" json:"AccountID,omitempty"`
   882  	Account              string       `protobuf:"bytes,4,opt,name=Account,proto3" json:"Account,omitempty"`
   883  	TaskType             TaskType     `protobuf:"varint,5,opt,name=TaskType,proto3,enum=task.TaskType" json:"TaskType,omitempty"`
   884  	TaskRunner           string       `protobuf:"bytes,6,opt,name=TaskRunner,proto3" json:"TaskRunner,omitempty"`
   885  	TaskStatus           TaskStatus   `protobuf:"varint,7,opt,name=TaskStatus,proto3,enum=task.TaskStatus" json:"TaskStatus,omitempty"`
   886  	LastHeartbeat        time.Time    `protobuf:"bytes,8,opt,name=LastHeartbeat,proto3,stdtime" json:"LastHeartbeat"`
   887  	Details              *Details     `protobuf:"bytes,9,opt,name=Details,proto3" json:"Details,omitempty"`
   888  	CreateAt             time.Time    `protobuf:"bytes,10,opt,name=CreateAt,proto3,stdtime" json:"CreateAt"`
   889  	UpdateAt             time.Time    `protobuf:"bytes,11,opt,name=UpdateAt,proto3,stdtime" json:"UpdateAt"`
   890  	EndAt                time.Time    `protobuf:"bytes,12,opt,name=EndAt,proto3,stdtime" json:"EndAt"`
   891  	LastRun              time.Time    `protobuf:"bytes,13,opt,name=LastRun,proto3,stdtime" json:"LastRun"`
   892  	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
   893  	XXX_unrecognized     []byte       `json:"-"`
   894  	XXX_sizecache        int32        `json:"-"`
   895  }
   896  
   897  func (m *DaemonTask) Reset()         { *m = DaemonTask{} }
   898  func (m *DaemonTask) String() string { return proto.CompactTextString(m) }
   899  func (*DaemonTask) ProtoMessage()    {}
   900  func (*DaemonTask) Descriptor() ([]byte, []int) {
   901  	return fileDescriptor_ce5d8dd45b4a91ff, []int{8}
   902  }
   903  func (m *DaemonTask) XXX_Unmarshal(b []byte) error {
   904  	return m.Unmarshal(b)
   905  }
   906  func (m *DaemonTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   907  	if deterministic {
   908  		return xxx_messageInfo_DaemonTask.Marshal(b, m, deterministic)
   909  	} else {
   910  		b = b[:cap(b)]
   911  		n, err := m.MarshalToSizedBuffer(b)
   912  		if err != nil {
   913  			return nil, err
   914  		}
   915  		return b[:n], nil
   916  	}
   917  }
   918  func (m *DaemonTask) XXX_Merge(src proto.Message) {
   919  	xxx_messageInfo_DaemonTask.Merge(m, src)
   920  }
   921  func (m *DaemonTask) XXX_Size() int {
   922  	return m.Size()
   923  }
   924  func (m *DaemonTask) XXX_DiscardUnknown() {
   925  	xxx_messageInfo_DaemonTask.DiscardUnknown(m)
   926  }
   927  
   928  var xxx_messageInfo_DaemonTask proto.InternalMessageInfo
   929  
   930  func (m *DaemonTask) GetID() uint64 {
   931  	if m != nil {
   932  		return m.ID
   933  	}
   934  	return 0
   935  }
   936  
   937  func (m *DaemonTask) GetMetadata() TaskMetadata {
   938  	if m != nil {
   939  		return m.Metadata
   940  	}
   941  	return TaskMetadata{}
   942  }
   943  
   944  func (m *DaemonTask) GetAccountID() uint32 {
   945  	if m != nil {
   946  		return m.AccountID
   947  	}
   948  	return 0
   949  }
   950  
   951  func (m *DaemonTask) GetAccount() string {
   952  	if m != nil {
   953  		return m.Account
   954  	}
   955  	return ""
   956  }
   957  
   958  func (m *DaemonTask) GetTaskType() TaskType {
   959  	if m != nil {
   960  		return m.TaskType
   961  	}
   962  	return TaskType_TypeUnknown
   963  }
   964  
   965  func (m *DaemonTask) GetTaskRunner() string {
   966  	if m != nil {
   967  		return m.TaskRunner
   968  	}
   969  	return ""
   970  }
   971  
   972  func (m *DaemonTask) GetTaskStatus() TaskStatus {
   973  	if m != nil {
   974  		return m.TaskStatus
   975  	}
   976  	return TaskStatus_Created
   977  }
   978  
   979  func (m *DaemonTask) GetLastHeartbeat() time.Time {
   980  	if m != nil {
   981  		return m.LastHeartbeat
   982  	}
   983  	return time.Time{}
   984  }
   985  
   986  func (m *DaemonTask) GetDetails() *Details {
   987  	if m != nil {
   988  		return m.Details
   989  	}
   990  	return nil
   991  }
   992  
   993  func (m *DaemonTask) GetCreateAt() time.Time {
   994  	if m != nil {
   995  		return m.CreateAt
   996  	}
   997  	return time.Time{}
   998  }
   999  
  1000  func (m *DaemonTask) GetUpdateAt() time.Time {
  1001  	if m != nil {
  1002  		return m.UpdateAt
  1003  	}
  1004  	return time.Time{}
  1005  }
  1006  
  1007  func (m *DaemonTask) GetEndAt() time.Time {
  1008  	if m != nil {
  1009  		return m.EndAt
  1010  	}
  1011  	return time.Time{}
  1012  }
  1013  
  1014  func (m *DaemonTask) GetLastRun() time.Time {
  1015  	if m != nil {
  1016  		return m.LastRun
  1017  	}
  1018  	return time.Time{}
  1019  }
  1020  
  1021  func init() {
  1022  	proto.RegisterEnum("task.TaskStatus", TaskStatus_name, TaskStatus_value)
  1023  	proto.RegisterEnum("task.TaskCode", TaskCode_name, TaskCode_value)
  1024  	proto.RegisterEnum("task.ResultCode", ResultCode_name, ResultCode_value)
  1025  	proto.RegisterEnum("task.TaskType", TaskType_name, TaskType_value)
  1026  	proto.RegisterType((*TaskMetadata)(nil), "task.TaskMetadata")
  1027  	proto.RegisterType((*TaskOptions)(nil), "task.TaskOptions")
  1028  	proto.RegisterMapType((map[string]string)(nil), "task.TaskOptions.LabelsEntry")
  1029  	proto.RegisterType((*Resource)(nil), "task.Resource")
  1030  	proto.RegisterType((*ExecuteResult)(nil), "task.ExecuteResult")
  1031  	proto.RegisterType((*AsyncTask)(nil), "task.AsyncTask")
  1032  	proto.RegisterType((*CronTask)(nil), "task.CronTask")
  1033  	proto.RegisterType((*ConnectorDetails)(nil), "task.ConnectorDetails")
  1034  	proto.RegisterMapType((map[string]string)(nil), "task.ConnectorDetails.OptionsEntry")
  1035  	proto.RegisterType((*Details)(nil), "task.Details")
  1036  	proto.RegisterType((*DaemonTask)(nil), "task.DaemonTask")
  1037  }
  1038  
  1039  func init() { proto.RegisterFile("task.proto", fileDescriptor_ce5d8dd45b4a91ff) }
  1040  
  1041  var fileDescriptor_ce5d8dd45b4a91ff = []byte{
  1042  	// 1212 bytes of a gzipped FileDescriptorProto
  1043  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcb, 0x8e, 0x1b, 0x45,
  1044  	0x17, 0x9e, 0xf6, 0xdd, 0xc7, 0x97, 0xf4, 0x5f, 0xf9, 0x35, 0x6a, 0x59, 0x61, 0x62, 0x99, 0x20,
  1045  	0x46, 0x23, 0xe1, 0x01, 0x13, 0x10, 0x89, 0x04, 0x64, 0xc6, 0x1e, 0x94, 0x21, 0x99, 0x24, 0xaa,
  1046  	0xf1, 0x6c, 0x10, 0x9b, 0x72, 0xfb, 0xa4, 0xd3, 0xd8, 0xae, 0x36, 0xd5, 0xd5, 0x61, 0xbc, 0xe0,
  1047  	0x05, 0xb2, 0x62, 0x07, 0x9b, 0x3c, 0x01, 0x0f, 0xc1, 0x36, 0xcb, 0x2c, 0x59, 0x71, 0x89, 0x78,
  1048  	0x04, 0xb6, 0x48, 0xa8, 0xaa, 0xfa, 0x66, 0x0f, 0x20, 0x8d, 0x94, 0x9d, 0xcf, 0x77, 0x2e, 0x7d,
  1049  	0xce, 0x77, 0x2e, 0x65, 0x00, 0xc9, 0xc2, 0x59, 0x7f, 0x29, 0x02, 0x19, 0x90, 0x92, 0xfa, 0xdd,
  1050  	0x79, 0xc7, 0xf3, 0xe5, 0x93, 0x68, 0xd2, 0x77, 0x83, 0xc5, 0xbe, 0x17, 0x78, 0xc1, 0xbe, 0x56,
  1051  	0x4e, 0xa2, 0xc7, 0x5a, 0xd2, 0x82, 0xfe, 0x65, 0x9c, 0x3a, 0xd7, 0xbd, 0x20, 0xf0, 0xe6, 0x98,
  1052  	0x59, 0x49, 0x7f, 0x81, 0xa1, 0x64, 0x8b, 0x65, 0x6c, 0xd0, 0x5e, 0xa0, 0x64, 0x53, 0x26, 0x99,
  1053  	0x91, 0x7b, 0xdf, 0x5b, 0xd0, 0x1c, 0xb3, 0x70, 0x76, 0x12, 0xc3, 0xa4, 0x0d, 0x85, 0xe3, 0x91,
  1054  	0x63, 0x75, 0xad, 0xdd, 0x3a, 0x2d, 0x1c, 0x8f, 0xc8, 0x1e, 0xd4, 0x8e, 0xce, 0xd1, 0x8d, 0x64,
  1055  	0x20, 0x9c, 0x42, 0xd7, 0xda, 0x6d, 0x0f, 0xda, 0x7d, 0x9d, 0xa5, 0xf2, 0x1a, 0x06, 0x53, 0xa4,
  1056  	0xa9, 0x9e, 0x38, 0x50, 0x1d, 0x06, 0x5c, 0xe2, 0xb9, 0x74, 0x8a, 0x5d, 0x6b, 0xb7, 0x49, 0x13,
  1057  	0x91, 0xbc, 0x07, 0xd5, 0x87, 0x4b, 0xe9, 0x07, 0x3c, 0x74, 0x4a, 0x5d, 0x6b, 0xb7, 0x31, 0xf8,
  1058  	0x5f, 0x16, 0x24, 0x56, 0x1c, 0x96, 0x5e, 0xfc, 0x72, 0x7d, 0x8b, 0x26, 0x76, 0xbd, 0x9f, 0x0a,
  1059  	0xd0, 0xc8, 0xa9, 0xc9, 0x0d, 0x68, 0x9d, 0xb0, 0x73, 0x8a, 0x52, 0xac, 0xc6, 0xaa, 0x28, 0x9d,
  1060  	0x63, 0x8b, 0xae, 0x83, 0xca, 0x4a, 0x4b, 0xc7, 0x5c, 0xa2, 0x78, 0xca, 0xe6, 0x3a, 0xe7, 0x22,
  1061  	0x5d, 0x07, 0x95, 0xd5, 0x08, 0xe7, 0x6c, 0x35, 0x8a, 0x04, 0x53, 0xd1, 0x75, 0xba, 0x45, 0xba,
  1062  	0x0e, 0x92, 0x2e, 0x34, 0x86, 0x01, 0x77, 0x23, 0x21, 0x90, 0xbb, 0x2b, 0x9d, 0x78, 0x8b, 0xe6,
  1063  	0x21, 0xf2, 0x01, 0x54, 0xee, 0xb3, 0x09, 0xce, 0x43, 0xa7, 0xdc, 0x2d, 0xee, 0x36, 0x06, 0x6f,
  1064  	0x5c, 0xa8, 0xaa, 0x6f, 0xf4, 0x47, 0x5c, 0x8a, 0x15, 0x8d, 0x8d, 0x15, 0xa7, 0x14, 0xc3, 0x20,
  1065  	0x12, 0x2e, 0x3a, 0x15, 0x4d, 0x47, 0xcc, 0x69, 0x82, 0xd2, 0x54, 0xdf, 0xb9, 0x05, 0x8d, 0x5c,
  1066  	0x08, 0x62, 0x43, 0x71, 0x86, 0xab, 0xb8, 0x3f, 0xea, 0x27, 0xf9, 0x3f, 0x94, 0x9f, 0xb2, 0x79,
  1067  	0x84, 0xba, 0xd2, 0x3a, 0x35, 0xc2, 0xed, 0xc2, 0x47, 0x56, 0xef, 0x66, 0xf6, 0x19, 0xe5, 0x37,
  1068  	0x7c, 0x74, 0xa6, 0xfd, 0x4a, 0x54, 0xfd, 0x24, 0xdb, 0x50, 0x39, 0xc1, 0x45, 0x20, 0x56, 0xda,
  1069  	0xb1, 0x44, 0x63, 0xa9, 0x77, 0x0f, 0x5a, 0xa6, 0xa1, 0x48, 0x31, 0x8c, 0xe6, 0x92, 0xdc, 0x80,
  1070  	0x92, 0xea, 0xb3, 0xf6, 0x6d, 0x0f, 0xec, 0x34, 0xd3, 0x68, 0x2e, 0x75, 0xff, 0xb5, 0x56, 0xa5,
  1071  	0x71, 0x24, 0x44, 0x3c, 0x24, 0x75, 0x6a, 0x84, 0xde, 0x9f, 0x05, 0xa8, 0x1f, 0x84, 0x2b, 0xee,
  1072  	0x2a, 0x4a, 0x72, 0xb3, 0x55, 0xd2, 0xb3, 0x75, 0x13, 0x6a, 0xc9, 0xdc, 0x69, 0xb7, 0xc6, 0x80,
  1073  	0x64, 0x04, 0x26, 0x9a, 0x78, 0x2e, 0x52, 0x4b, 0xd2, 0x83, 0xe6, 0x23, 0x26, 0x90, 0x4b, 0x65,
  1074  	0x75, 0x3c, 0xd2, 0xbd, 0xab, 0xd3, 0x35, 0x8c, 0xec, 0x42, 0xe5, 0x54, 0x32, 0x19, 0x99, 0x71,
  1075  	0x4b, 0xb3, 0x56, 0x5a, 0x83, 0xd3, 0x58, 0x4f, 0x76, 0x00, 0x14, 0x4a, 0x23, 0xce, 0x51, 0x38,
  1076  	0x65, 0x1d, 0x2b, 0x87, 0xe8, 0xba, 0x96, 0x81, 0xfb, 0x44, 0x37, 0xaa, 0x45, 0x8d, 0xa0, 0x06,
  1077  	0xe8, 0x3e, 0x0b, 0xe5, 0x5d, 0x64, 0x42, 0x4e, 0x90, 0x49, 0xa7, 0x6a, 0x06, 0x68, 0x0d, 0x24,
  1078  	0x1d, 0xa8, 0x0d, 0x05, 0x32, 0x89, 0x07, 0xd2, 0xa9, 0x69, 0x83, 0x54, 0x36, 0xc3, 0xb5, 0x58,
  1079  	0xce, 0x51, 0xe2, 0xf4, 0x40, 0x3a, 0x75, 0xad, 0xce, 0x43, 0xe4, 0xd6, 0x46, 0x23, 0x1c, 0xd0,
  1080  	0x14, 0x5d, 0x35, 0xa5, 0xac, 0xa9, 0xe8, 0xba, 0x65, 0xef, 0x0f, 0x4b, 0x7d, 0x39, 0xe0, 0xaf,
  1081  	0x91, 0xf5, 0x8e, 0x89, 0x78, 0x74, 0xbe, 0x14, 0x31, 0xe3, 0xa9, 0xac, 0x74, 0x0f, 0xf0, 0x5c,
  1082  	0xaa, 0x0d, 0xd4, 0x7c, 0x17, 0x69, 0x2a, 0xab, 0x6e, 0x8d, 0x85, 0xef, 0x79, 0x28, 0xcc, 0xd6,
  1083  	0x96, 0x75, 0x1e, 0x6b, 0xd8, 0x1a, 0x4f, 0x95, 0x0d, 0x9e, 0x3a, 0x50, 0x3b, 0x5b, 0x4e, 0x8d,
  1084  	0xce, 0x90, 0x9c, 0xca, 0xbd, 0x1f, 0x2d, 0xb0, 0x87, 0x01, 0xe7, 0xe8, 0xca, 0x40, 0x8c, 0x50,
  1085  	0x32, 0x7f, 0x1e, 0x92, 0x6b, 0x50, 0x1f, 0xb3, 0xc9, 0x1c, 0x1f, 0xb0, 0x05, 0xc6, 0x7b, 0x92,
  1086  	0x01, 0xe4, 0xe3, 0xec, 0x10, 0x15, 0xf4, 0xca, 0xbe, 0x69, 0x6a, 0xdf, 0x0c, 0xd3, 0x8f, 0xad,
  1087  	0xcc, 0xe2, 0x26, 0x3e, 0x9d, 0xdb, 0xd0, 0xcc, 0x2b, 0x2e, 0xb5, 0x8e, 0x3f, 0x5b, 0x50, 0x4d,
  1088  	0x92, 0xec, 0x42, 0x63, 0x84, 0xa1, 0x2b, 0x7c, 0x1d, 0x2c, 0xf6, 0xcf, 0x43, 0xaa, 0x8c, 0x03,
  1089  	0xd7, 0x0d, 0x22, 0x2e, 0x8f, 0x47, 0x3a, 0x56, 0x8b, 0x66, 0x80, 0xba, 0xb4, 0xb1, 0x10, 0x37,
  1090  	0x23, 0x11, 0x35, 0x5f, 0x21, 0x0a, 0xce, 0xe2, 0x5e, 0xd4, 0x69, 0x2a, 0x67, 0x3b, 0x5a, 0xce,
  1091  	0xed, 0x28, 0xf9, 0x10, 0xea, 0x69, 0xf5, 0xf1, 0x8c, 0x6d, 0xff, 0x33, 0x29, 0x77, 0xb7, 0x68,
  1092  	0x66, 0x7a, 0x58, 0x4f, 0xcb, 0xe9, 0xfd, 0x55, 0x02, 0x18, 0x31, 0x5c, 0xbc, 0xd6, 0x89, 0x5b,
  1093  	0x63, 0xa0, 0xf8, 0x1f, 0x0c, 0x94, 0xd6, 0x19, 0xd8, 0x83, 0x9a, 0x8a, 0x3b, 0x5e, 0x2d, 0x51,
  1094  	0x17, 0xba, 0xf6, 0x62, 0x29, 0x94, 0xa6, 0xfa, 0x8d, 0xed, 0xaf, 0x5c, 0xd8, 0xfe, 0x77, 0x8d,
  1095  	0x3e, 0xbe, 0x25, 0xd5, 0x7f, 0xb9, 0x25, 0x39, 0x1b, 0xf2, 0xf9, 0xe6, 0x65, 0xa8, 0xe9, 0x82,
  1096  	0x3b, 0x7d, 0xf3, 0x32, 0xf7, 0x93, 0x97, 0xb9, 0x3f, 0x4e, 0x5e, 0xe6, 0xc3, 0x9a, 0x2a, 0xfc,
  1097  	0xbb, 0x5f, 0xaf, 0x5b, 0x9b, 0xf7, 0xe3, 0xed, 0x94, 0x61, 0x7d, 0x1f, 0x1a, 0x83, 0x96, 0xf9,
  1098  	0x74, 0x0c, 0xd2, 0x74, 0x9c, 0xee, 0xe4, 0x16, 0x08, 0x2e, 0xf1, 0xbd, 0x6c, 0xcd, 0xee, 0xe4,
  1099  	0xd6, 0xac, 0x71, 0x99, 0x08, 0x89, 0x17, 0xb9, 0x0d, 0xe5, 0x23, 0xae, 0x4e, 0x59, 0xf3, 0x12,
  1100  	0xee, 0xc6, 0x85, 0x7c, 0x02, 0x55, 0x55, 0x39, 0x8d, 0xb8, 0xd3, 0xba, 0x84, 0x77, 0xe2, 0xb4,
  1101  	0xf7, 0x83, 0x95, 0xef, 0x13, 0x69, 0x40, 0xd5, 0x14, 0x36, 0xb5, 0xb7, 0x94, 0xa0, 0x9a, 0xe9,
  1102  	0x73, 0xcf, 0xb6, 0x48, 0x4b, 0xcd, 0x7a, 0x7c, 0x62, 0xed, 0x02, 0x01, 0xa8, 0x3c, 0x62, 0x51,
  1103  	0x88, 0x53, 0xbb, 0x48, 0xea, 0xf1, 0x72, 0xd8, 0x25, 0xd2, 0x84, 0xda, 0x90, 0x71, 0x17, 0xe7,
  1104  	0x38, 0xb5, 0xcb, 0xe4, 0x2a, 0x5c, 0x51, 0x67, 0x75, 0x81, 0x14, 0xbf, 0x8e, 0x30, 0x54, 0x9e,
  1105  	0x15, 0x42, 0xa0, 0xad, 0x3d, 0x33, 0xac, 0xaa, 0x0c, 0x8d, 0x5b, 0x06, 0xd6, 0xf6, 0xbe, 0x35,
  1106  	0xd3, 0xa8, 0xdf, 0xc8, 0x26, 0xd4, 0xc6, 0x18, 0xca, 0x87, 0x7c, 0xbe, 0xb2, 0xb7, 0x48, 0x1b,
  1107  	0xe0, 0x74, 0x15, 0x4a, 0x5c, 0x1c, 0x73, 0x5f, 0xda, 0x96, 0x0a, 0x79, 0x82, 0x52, 0xf8, 0xee,
  1108  	0xfd, 0xc0, 0x3b, 0x41, 0xe1, 0xa1, 0x5d, 0x20, 0xdb, 0x40, 0x0c, 0x76, 0x2a, 0x03, 0xc1, 0x3c,
  1109  	0x3c, 0x0b, 0x99, 0x87, 0x76, 0x51, 0xe1, 0xe9, 0x22, 0xde, 0x63, 0x8f, 0x67, 0xec, 0xd4, 0xe7,
  1110  	0x33, 0xbb, 0x44, 0xae, 0x40, 0x43, 0xbb, 0x3e, 0x9c, 0x7c, 0x85, 0xae, 0xb4, 0xcb, 0x7b, 0x6f,
  1111  	0x01, 0x64, 0x4f, 0xb5, 0xe2, 0xe2, 0x34, 0x72, 0x5d, 0x0c, 0x43, 0x7b, 0x4b, 0x15, 0xff, 0x19,
  1112  	0xf3, 0x55, 0x8d, 0xd6, 0xde, 0x97, 0xd9, 0xce, 0x90, 0x6b, 0x50, 0x3d, 0xe3, 0x33, 0x1e, 0x7c,
  1113  	0xc3, 0xed, 0xad, 0xce, 0x95, 0x67, 0xcf, 0xbb, 0x0d, 0x05, 0xc7, 0x10, 0x19, 0x00, 0x49, 0x3f,
  1114  	0x98, 0xa6, 0x60, 0x5b, 0x9d, 0xce, 0xb3, 0xe7, 0xdd, 0x6d, 0x65, 0x78, 0x51, 0x7b, 0xf8, 0xe9,
  1115  	0xcb, 0xdf, 0x77, 0xac, 0x17, 0xaf, 0x76, 0xac, 0x97, 0xaf, 0x76, 0xac, 0xdf, 0x5e, 0xed, 0x58,
  1116  	0x5f, 0xe4, 0xff, 0xd6, 0x2e, 0x98, 0x14, 0xfe, 0x79, 0x20, 0x7c, 0xcf, 0xe7, 0x89, 0xc0, 0x71,
  1117  	0x7f, 0x39, 0xf3, 0xf6, 0x97, 0x93, 0x7d, 0x35, 0xf0, 0x93, 0x8a, 0x1e, 0x83, 0xf7, 0xff, 0x0e,
  1118  	0x00, 0x00, 0xff, 0xff, 0x1c, 0xcd, 0xa5, 0xbc, 0x20, 0x0b, 0x00, 0x00,
  1119  }
  1120  
  1121  func (m *TaskMetadata) Marshal() (dAtA []byte, err error) {
  1122  	size := m.Size()
  1123  	dAtA = make([]byte, size)
  1124  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1125  	if err != nil {
  1126  		return nil, err
  1127  	}
  1128  	return dAtA[:n], nil
  1129  }
  1130  
  1131  func (m *TaskMetadata) MarshalTo(dAtA []byte) (int, error) {
  1132  	size := m.Size()
  1133  	return m.MarshalToSizedBuffer(dAtA[:size])
  1134  }
  1135  
  1136  func (m *TaskMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1137  	i := len(dAtA)
  1138  	_ = i
  1139  	var l int
  1140  	_ = l
  1141  	if m.XXX_unrecognized != nil {
  1142  		i -= len(m.XXX_unrecognized)
  1143  		copy(dAtA[i:], m.XXX_unrecognized)
  1144  	}
  1145  	{
  1146  		size, err := m.Options.MarshalToSizedBuffer(dAtA[:i])
  1147  		if err != nil {
  1148  			return 0, err
  1149  		}
  1150  		i -= size
  1151  		i = encodeVarintTask(dAtA, i, uint64(size))
  1152  	}
  1153  	i--
  1154  	dAtA[i] = 0x22
  1155  	if len(m.Context) > 0 {
  1156  		i -= len(m.Context)
  1157  		copy(dAtA[i:], m.Context)
  1158  		i = encodeVarintTask(dAtA, i, uint64(len(m.Context)))
  1159  		i--
  1160  		dAtA[i] = 0x1a
  1161  	}
  1162  	if m.Executor != 0 {
  1163  		i = encodeVarintTask(dAtA, i, uint64(m.Executor))
  1164  		i--
  1165  		dAtA[i] = 0x10
  1166  	}
  1167  	if len(m.ID) > 0 {
  1168  		i -= len(m.ID)
  1169  		copy(dAtA[i:], m.ID)
  1170  		i = encodeVarintTask(dAtA, i, uint64(len(m.ID)))
  1171  		i--
  1172  		dAtA[i] = 0xa
  1173  	}
  1174  	return len(dAtA) - i, nil
  1175  }
  1176  
  1177  func (m *TaskOptions) Marshal() (dAtA []byte, err error) {
  1178  	size := m.Size()
  1179  	dAtA = make([]byte, size)
  1180  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1181  	if err != nil {
  1182  		return nil, err
  1183  	}
  1184  	return dAtA[:n], nil
  1185  }
  1186  
  1187  func (m *TaskOptions) MarshalTo(dAtA []byte) (int, error) {
  1188  	size := m.Size()
  1189  	return m.MarshalToSizedBuffer(dAtA[:size])
  1190  }
  1191  
  1192  func (m *TaskOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1193  	i := len(dAtA)
  1194  	_ = i
  1195  	var l int
  1196  	_ = l
  1197  	if m.XXX_unrecognized != nil {
  1198  		i -= len(m.XXX_unrecognized)
  1199  		copy(dAtA[i:], m.XXX_unrecognized)
  1200  	}
  1201  	if m.Resource != nil {
  1202  		{
  1203  			size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i])
  1204  			if err != nil {
  1205  				return 0, err
  1206  			}
  1207  			i -= size
  1208  			i = encodeVarintTask(dAtA, i, uint64(size))
  1209  		}
  1210  		i--
  1211  		dAtA[i] = 0x32
  1212  	}
  1213  	if len(m.Labels) > 0 {
  1214  		for k := range m.Labels {
  1215  			v := m.Labels[k]
  1216  			baseI := i
  1217  			i -= len(v)
  1218  			copy(dAtA[i:], v)
  1219  			i = encodeVarintTask(dAtA, i, uint64(len(v)))
  1220  			i--
  1221  			dAtA[i] = 0x12
  1222  			i -= len(k)
  1223  			copy(dAtA[i:], k)
  1224  			i = encodeVarintTask(dAtA, i, uint64(len(k)))
  1225  			i--
  1226  			dAtA[i] = 0xa
  1227  			i = encodeVarintTask(dAtA, i, uint64(baseI-i))
  1228  			i--
  1229  			dAtA[i] = 0x2a
  1230  		}
  1231  	}
  1232  	if m.Concurrency != 0 {
  1233  		i = encodeVarintTask(dAtA, i, uint64(m.Concurrency))
  1234  		i--
  1235  		dAtA[i] = 0x20
  1236  	}
  1237  	if m.DelayDuration != 0 {
  1238  		i = encodeVarintTask(dAtA, i, uint64(m.DelayDuration))
  1239  		i--
  1240  		dAtA[i] = 0x18
  1241  	}
  1242  	if m.RetryInterval != 0 {
  1243  		i = encodeVarintTask(dAtA, i, uint64(m.RetryInterval))
  1244  		i--
  1245  		dAtA[i] = 0x10
  1246  	}
  1247  	if m.MaxRetryTimes != 0 {
  1248  		i = encodeVarintTask(dAtA, i, uint64(m.MaxRetryTimes))
  1249  		i--
  1250  		dAtA[i] = 0x8
  1251  	}
  1252  	return len(dAtA) - i, nil
  1253  }
  1254  
  1255  func (m *Resource) Marshal() (dAtA []byte, err error) {
  1256  	size := m.Size()
  1257  	dAtA = make([]byte, size)
  1258  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1259  	if err != nil {
  1260  		return nil, err
  1261  	}
  1262  	return dAtA[:n], nil
  1263  }
  1264  
  1265  func (m *Resource) MarshalTo(dAtA []byte) (int, error) {
  1266  	size := m.Size()
  1267  	return m.MarshalToSizedBuffer(dAtA[:size])
  1268  }
  1269  
  1270  func (m *Resource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1271  	i := len(dAtA)
  1272  	_ = i
  1273  	var l int
  1274  	_ = l
  1275  	if m.XXX_unrecognized != nil {
  1276  		i -= len(m.XXX_unrecognized)
  1277  		copy(dAtA[i:], m.XXX_unrecognized)
  1278  	}
  1279  	if m.Memory != 0 {
  1280  		i = encodeVarintTask(dAtA, i, uint64(m.Memory))
  1281  		i--
  1282  		dAtA[i] = 0x10
  1283  	}
  1284  	if m.CPU != 0 {
  1285  		i = encodeVarintTask(dAtA, i, uint64(m.CPU))
  1286  		i--
  1287  		dAtA[i] = 0x8
  1288  	}
  1289  	return len(dAtA) - i, nil
  1290  }
  1291  
  1292  func (m *ExecuteResult) Marshal() (dAtA []byte, err error) {
  1293  	size := m.Size()
  1294  	dAtA = make([]byte, size)
  1295  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1296  	if err != nil {
  1297  		return nil, err
  1298  	}
  1299  	return dAtA[:n], nil
  1300  }
  1301  
  1302  func (m *ExecuteResult) MarshalTo(dAtA []byte) (int, error) {
  1303  	size := m.Size()
  1304  	return m.MarshalToSizedBuffer(dAtA[:size])
  1305  }
  1306  
  1307  func (m *ExecuteResult) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1308  	i := len(dAtA)
  1309  	_ = i
  1310  	var l int
  1311  	_ = l
  1312  	if m.XXX_unrecognized != nil {
  1313  		i -= len(m.XXX_unrecognized)
  1314  		copy(dAtA[i:], m.XXX_unrecognized)
  1315  	}
  1316  	if len(m.Error) > 0 {
  1317  		i -= len(m.Error)
  1318  		copy(dAtA[i:], m.Error)
  1319  		i = encodeVarintTask(dAtA, i, uint64(len(m.Error)))
  1320  		i--
  1321  		dAtA[i] = 0x12
  1322  	}
  1323  	if m.Code != 0 {
  1324  		i = encodeVarintTask(dAtA, i, uint64(m.Code))
  1325  		i--
  1326  		dAtA[i] = 0x8
  1327  	}
  1328  	return len(dAtA) - i, nil
  1329  }
  1330  
  1331  func (m *AsyncTask) Marshal() (dAtA []byte, err error) {
  1332  	size := m.Size()
  1333  	dAtA = make([]byte, size)
  1334  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1335  	if err != nil {
  1336  		return nil, err
  1337  	}
  1338  	return dAtA[:n], nil
  1339  }
  1340  
  1341  func (m *AsyncTask) MarshalTo(dAtA []byte) (int, error) {
  1342  	size := m.Size()
  1343  	return m.MarshalToSizedBuffer(dAtA[:size])
  1344  }
  1345  
  1346  func (m *AsyncTask) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1347  	i := len(dAtA)
  1348  	_ = i
  1349  	var l int
  1350  	_ = l
  1351  	if m.XXX_unrecognized != nil {
  1352  		i -= len(m.XXX_unrecognized)
  1353  		copy(dAtA[i:], m.XXX_unrecognized)
  1354  	}
  1355  	if m.ExecuteResult != nil {
  1356  		{
  1357  			size, err := m.ExecuteResult.MarshalToSizedBuffer(dAtA[:i])
  1358  			if err != nil {
  1359  				return 0, err
  1360  			}
  1361  			i -= size
  1362  			i = encodeVarintTask(dAtA, i, uint64(size))
  1363  		}
  1364  		i--
  1365  		dAtA[i] = 0x52
  1366  	}
  1367  	if m.CompletedAt != 0 {
  1368  		i = encodeVarintTask(dAtA, i, uint64(m.CompletedAt))
  1369  		i--
  1370  		dAtA[i] = 0x48
  1371  	}
  1372  	if m.CreateAt != 0 {
  1373  		i = encodeVarintTask(dAtA, i, uint64(m.CreateAt))
  1374  		i--
  1375  		dAtA[i] = 0x40
  1376  	}
  1377  	if m.LastHeartbeat != 0 {
  1378  		i = encodeVarintTask(dAtA, i, uint64(m.LastHeartbeat))
  1379  		i--
  1380  		dAtA[i] = 0x38
  1381  	}
  1382  	if m.Epoch != 0 {
  1383  		i = encodeVarintTask(dAtA, i, uint64(m.Epoch))
  1384  		i--
  1385  		dAtA[i] = 0x30
  1386  	}
  1387  	if len(m.TaskRunner) > 0 {
  1388  		i -= len(m.TaskRunner)
  1389  		copy(dAtA[i:], m.TaskRunner)
  1390  		i = encodeVarintTask(dAtA, i, uint64(len(m.TaskRunner)))
  1391  		i--
  1392  		dAtA[i] = 0x2a
  1393  	}
  1394  	if m.Status != 0 {
  1395  		i = encodeVarintTask(dAtA, i, uint64(m.Status))
  1396  		i--
  1397  		dAtA[i] = 0x20
  1398  	}
  1399  	if len(m.ParentTaskID) > 0 {
  1400  		i -= len(m.ParentTaskID)
  1401  		copy(dAtA[i:], m.ParentTaskID)
  1402  		i = encodeVarintTask(dAtA, i, uint64(len(m.ParentTaskID)))
  1403  		i--
  1404  		dAtA[i] = 0x1a
  1405  	}
  1406  	{
  1407  		size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i])
  1408  		if err != nil {
  1409  			return 0, err
  1410  		}
  1411  		i -= size
  1412  		i = encodeVarintTask(dAtA, i, uint64(size))
  1413  	}
  1414  	i--
  1415  	dAtA[i] = 0x12
  1416  	if m.ID != 0 {
  1417  		i = encodeVarintTask(dAtA, i, uint64(m.ID))
  1418  		i--
  1419  		dAtA[i] = 0x8
  1420  	}
  1421  	return len(dAtA) - i, nil
  1422  }
  1423  
  1424  func (m *CronTask) Marshal() (dAtA []byte, err error) {
  1425  	size := m.Size()
  1426  	dAtA = make([]byte, size)
  1427  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1428  	if err != nil {
  1429  		return nil, err
  1430  	}
  1431  	return dAtA[:n], nil
  1432  }
  1433  
  1434  func (m *CronTask) MarshalTo(dAtA []byte) (int, error) {
  1435  	size := m.Size()
  1436  	return m.MarshalToSizedBuffer(dAtA[:size])
  1437  }
  1438  
  1439  func (m *CronTask) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1440  	i := len(dAtA)
  1441  	_ = i
  1442  	var l int
  1443  	_ = l
  1444  	if m.XXX_unrecognized != nil {
  1445  		i -= len(m.XXX_unrecognized)
  1446  		copy(dAtA[i:], m.XXX_unrecognized)
  1447  	}
  1448  	if m.UpdateAt != 0 {
  1449  		i = encodeVarintTask(dAtA, i, uint64(m.UpdateAt))
  1450  		i--
  1451  		dAtA[i] = 0x38
  1452  	}
  1453  	if m.CreateAt != 0 {
  1454  		i = encodeVarintTask(dAtA, i, uint64(m.CreateAt))
  1455  		i--
  1456  		dAtA[i] = 0x30
  1457  	}
  1458  	if m.TriggerTimes != 0 {
  1459  		i = encodeVarintTask(dAtA, i, uint64(m.TriggerTimes))
  1460  		i--
  1461  		dAtA[i] = 0x28
  1462  	}
  1463  	if m.NextTime != 0 {
  1464  		i = encodeVarintTask(dAtA, i, uint64(m.NextTime))
  1465  		i--
  1466  		dAtA[i] = 0x20
  1467  	}
  1468  	if len(m.CronExpr) > 0 {
  1469  		i -= len(m.CronExpr)
  1470  		copy(dAtA[i:], m.CronExpr)
  1471  		i = encodeVarintTask(dAtA, i, uint64(len(m.CronExpr)))
  1472  		i--
  1473  		dAtA[i] = 0x1a
  1474  	}
  1475  	{
  1476  		size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i])
  1477  		if err != nil {
  1478  			return 0, err
  1479  		}
  1480  		i -= size
  1481  		i = encodeVarintTask(dAtA, i, uint64(size))
  1482  	}
  1483  	i--
  1484  	dAtA[i] = 0x12
  1485  	if m.ID != 0 {
  1486  		i = encodeVarintTask(dAtA, i, uint64(m.ID))
  1487  		i--
  1488  		dAtA[i] = 0x8
  1489  	}
  1490  	return len(dAtA) - i, nil
  1491  }
  1492  
  1493  func (m *ConnectorDetails) Marshal() (dAtA []byte, err error) {
  1494  	size := m.Size()
  1495  	dAtA = make([]byte, size)
  1496  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1497  	if err != nil {
  1498  		return nil, err
  1499  	}
  1500  	return dAtA[:n], nil
  1501  }
  1502  
  1503  func (m *ConnectorDetails) MarshalTo(dAtA []byte) (int, error) {
  1504  	size := m.Size()
  1505  	return m.MarshalToSizedBuffer(dAtA[:size])
  1506  }
  1507  
  1508  func (m *ConnectorDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1509  	i := len(dAtA)
  1510  	_ = i
  1511  	var l int
  1512  	_ = l
  1513  	if m.XXX_unrecognized != nil {
  1514  		i -= len(m.XXX_unrecognized)
  1515  		copy(dAtA[i:], m.XXX_unrecognized)
  1516  	}
  1517  	if len(m.Options) > 0 {
  1518  		for k := range m.Options {
  1519  			v := m.Options[k]
  1520  			baseI := i
  1521  			i -= len(v)
  1522  			copy(dAtA[i:], v)
  1523  			i = encodeVarintTask(dAtA, i, uint64(len(v)))
  1524  			i--
  1525  			dAtA[i] = 0x12
  1526  			i -= len(k)
  1527  			copy(dAtA[i:], k)
  1528  			i = encodeVarintTask(dAtA, i, uint64(len(k)))
  1529  			i--
  1530  			dAtA[i] = 0xa
  1531  			i = encodeVarintTask(dAtA, i, uint64(baseI-i))
  1532  			i--
  1533  			dAtA[i] = 0x12
  1534  		}
  1535  	}
  1536  	if len(m.TableName) > 0 {
  1537  		i -= len(m.TableName)
  1538  		copy(dAtA[i:], m.TableName)
  1539  		i = encodeVarintTask(dAtA, i, uint64(len(m.TableName)))
  1540  		i--
  1541  		dAtA[i] = 0xa
  1542  	}
  1543  	return len(dAtA) - i, nil
  1544  }
  1545  
  1546  func (m *Details) Marshal() (dAtA []byte, err error) {
  1547  	size := m.Size()
  1548  	dAtA = make([]byte, size)
  1549  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1550  	if err != nil {
  1551  		return nil, err
  1552  	}
  1553  	return dAtA[:n], nil
  1554  }
  1555  
  1556  func (m *Details) MarshalTo(dAtA []byte) (int, error) {
  1557  	size := m.Size()
  1558  	return m.MarshalToSizedBuffer(dAtA[:size])
  1559  }
  1560  
  1561  func (m *Details) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1562  	i := len(dAtA)
  1563  	_ = i
  1564  	var l int
  1565  	_ = l
  1566  	if m.XXX_unrecognized != nil {
  1567  		i -= len(m.XXX_unrecognized)
  1568  		copy(dAtA[i:], m.XXX_unrecognized)
  1569  	}
  1570  	if m.Details != nil {
  1571  		{
  1572  			size := m.Details.Size()
  1573  			i -= size
  1574  			if _, err := m.Details.MarshalTo(dAtA[i:]); err != nil {
  1575  				return 0, err
  1576  			}
  1577  		}
  1578  	}
  1579  	if len(m.Error) > 0 {
  1580  		i -= len(m.Error)
  1581  		copy(dAtA[i:], m.Error)
  1582  		i = encodeVarintTask(dAtA, i, uint64(len(m.Error)))
  1583  		i--
  1584  		dAtA[i] = 0x2a
  1585  	}
  1586  	if len(m.Username) > 0 {
  1587  		i -= len(m.Username)
  1588  		copy(dAtA[i:], m.Username)
  1589  		i = encodeVarintTask(dAtA, i, uint64(len(m.Username)))
  1590  		i--
  1591  		dAtA[i] = 0x22
  1592  	}
  1593  	if len(m.Account) > 0 {
  1594  		i -= len(m.Account)
  1595  		copy(dAtA[i:], m.Account)
  1596  		i = encodeVarintTask(dAtA, i, uint64(len(m.Account)))
  1597  		i--
  1598  		dAtA[i] = 0x1a
  1599  	}
  1600  	if m.AccountID != 0 {
  1601  		i = encodeVarintTask(dAtA, i, uint64(m.AccountID))
  1602  		i--
  1603  		dAtA[i] = 0x10
  1604  	}
  1605  	if len(m.Description) > 0 {
  1606  		i -= len(m.Description)
  1607  		copy(dAtA[i:], m.Description)
  1608  		i = encodeVarintTask(dAtA, i, uint64(len(m.Description)))
  1609  		i--
  1610  		dAtA[i] = 0xa
  1611  	}
  1612  	return len(dAtA) - i, nil
  1613  }
  1614  
  1615  func (m *Details_Connector) MarshalTo(dAtA []byte) (int, error) {
  1616  	size := m.Size()
  1617  	return m.MarshalToSizedBuffer(dAtA[:size])
  1618  }
  1619  
  1620  func (m *Details_Connector) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1621  	i := len(dAtA)
  1622  	if m.Connector != nil {
  1623  		{
  1624  			size, err := m.Connector.MarshalToSizedBuffer(dAtA[:i])
  1625  			if err != nil {
  1626  				return 0, err
  1627  			}
  1628  			i -= size
  1629  			i = encodeVarintTask(dAtA, i, uint64(size))
  1630  		}
  1631  		i--
  1632  		dAtA[i] = 0x52
  1633  	}
  1634  	return len(dAtA) - i, nil
  1635  }
  1636  func (m *DaemonTask) Marshal() (dAtA []byte, err error) {
  1637  	size := m.Size()
  1638  	dAtA = make([]byte, size)
  1639  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1640  	if err != nil {
  1641  		return nil, err
  1642  	}
  1643  	return dAtA[:n], nil
  1644  }
  1645  
  1646  func (m *DaemonTask) MarshalTo(dAtA []byte) (int, error) {
  1647  	size := m.Size()
  1648  	return m.MarshalToSizedBuffer(dAtA[:size])
  1649  }
  1650  
  1651  func (m *DaemonTask) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1652  	i := len(dAtA)
  1653  	_ = i
  1654  	var l int
  1655  	_ = l
  1656  	if m.XXX_unrecognized != nil {
  1657  		i -= len(m.XXX_unrecognized)
  1658  		copy(dAtA[i:], m.XXX_unrecognized)
  1659  	}
  1660  	n7, err7 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.LastRun, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.LastRun):])
  1661  	if err7 != nil {
  1662  		return 0, err7
  1663  	}
  1664  	i -= n7
  1665  	i = encodeVarintTask(dAtA, i, uint64(n7))
  1666  	i--
  1667  	dAtA[i] = 0x6a
  1668  	n8, err8 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.EndAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.EndAt):])
  1669  	if err8 != nil {
  1670  		return 0, err8
  1671  	}
  1672  	i -= n8
  1673  	i = encodeVarintTask(dAtA, i, uint64(n8))
  1674  	i--
  1675  	dAtA[i] = 0x62
  1676  	n9, err9 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.UpdateAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdateAt):])
  1677  	if err9 != nil {
  1678  		return 0, err9
  1679  	}
  1680  	i -= n9
  1681  	i = encodeVarintTask(dAtA, i, uint64(n9))
  1682  	i--
  1683  	dAtA[i] = 0x5a
  1684  	n10, err10 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CreateAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.CreateAt):])
  1685  	if err10 != nil {
  1686  		return 0, err10
  1687  	}
  1688  	i -= n10
  1689  	i = encodeVarintTask(dAtA, i, uint64(n10))
  1690  	i--
  1691  	dAtA[i] = 0x52
  1692  	if m.Details != nil {
  1693  		{
  1694  			size, err := m.Details.MarshalToSizedBuffer(dAtA[:i])
  1695  			if err != nil {
  1696  				return 0, err
  1697  			}
  1698  			i -= size
  1699  			i = encodeVarintTask(dAtA, i, uint64(size))
  1700  		}
  1701  		i--
  1702  		dAtA[i] = 0x4a
  1703  	}
  1704  	n12, err12 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.LastHeartbeat, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.LastHeartbeat):])
  1705  	if err12 != nil {
  1706  		return 0, err12
  1707  	}
  1708  	i -= n12
  1709  	i = encodeVarintTask(dAtA, i, uint64(n12))
  1710  	i--
  1711  	dAtA[i] = 0x42
  1712  	if m.TaskStatus != 0 {
  1713  		i = encodeVarintTask(dAtA, i, uint64(m.TaskStatus))
  1714  		i--
  1715  		dAtA[i] = 0x38
  1716  	}
  1717  	if len(m.TaskRunner) > 0 {
  1718  		i -= len(m.TaskRunner)
  1719  		copy(dAtA[i:], m.TaskRunner)
  1720  		i = encodeVarintTask(dAtA, i, uint64(len(m.TaskRunner)))
  1721  		i--
  1722  		dAtA[i] = 0x32
  1723  	}
  1724  	if m.TaskType != 0 {
  1725  		i = encodeVarintTask(dAtA, i, uint64(m.TaskType))
  1726  		i--
  1727  		dAtA[i] = 0x28
  1728  	}
  1729  	if len(m.Account) > 0 {
  1730  		i -= len(m.Account)
  1731  		copy(dAtA[i:], m.Account)
  1732  		i = encodeVarintTask(dAtA, i, uint64(len(m.Account)))
  1733  		i--
  1734  		dAtA[i] = 0x22
  1735  	}
  1736  	if m.AccountID != 0 {
  1737  		i = encodeVarintTask(dAtA, i, uint64(m.AccountID))
  1738  		i--
  1739  		dAtA[i] = 0x18
  1740  	}
  1741  	{
  1742  		size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i])
  1743  		if err != nil {
  1744  			return 0, err
  1745  		}
  1746  		i -= size
  1747  		i = encodeVarintTask(dAtA, i, uint64(size))
  1748  	}
  1749  	i--
  1750  	dAtA[i] = 0x12
  1751  	if m.ID != 0 {
  1752  		i = encodeVarintTask(dAtA, i, uint64(m.ID))
  1753  		i--
  1754  		dAtA[i] = 0x8
  1755  	}
  1756  	return len(dAtA) - i, nil
  1757  }
  1758  
  1759  func encodeVarintTask(dAtA []byte, offset int, v uint64) int {
  1760  	offset -= sovTask(v)
  1761  	base := offset
  1762  	for v >= 1<<7 {
  1763  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1764  		v >>= 7
  1765  		offset++
  1766  	}
  1767  	dAtA[offset] = uint8(v)
  1768  	return base
  1769  }
  1770  func (m *TaskMetadata) Size() (n int) {
  1771  	if m == nil {
  1772  		return 0
  1773  	}
  1774  	var l int
  1775  	_ = l
  1776  	l = len(m.ID)
  1777  	if l > 0 {
  1778  		n += 1 + l + sovTask(uint64(l))
  1779  	}
  1780  	if m.Executor != 0 {
  1781  		n += 1 + sovTask(uint64(m.Executor))
  1782  	}
  1783  	l = len(m.Context)
  1784  	if l > 0 {
  1785  		n += 1 + l + sovTask(uint64(l))
  1786  	}
  1787  	l = m.Options.Size()
  1788  	n += 1 + l + sovTask(uint64(l))
  1789  	if m.XXX_unrecognized != nil {
  1790  		n += len(m.XXX_unrecognized)
  1791  	}
  1792  	return n
  1793  }
  1794  
  1795  func (m *TaskOptions) Size() (n int) {
  1796  	if m == nil {
  1797  		return 0
  1798  	}
  1799  	var l int
  1800  	_ = l
  1801  	if m.MaxRetryTimes != 0 {
  1802  		n += 1 + sovTask(uint64(m.MaxRetryTimes))
  1803  	}
  1804  	if m.RetryInterval != 0 {
  1805  		n += 1 + sovTask(uint64(m.RetryInterval))
  1806  	}
  1807  	if m.DelayDuration != 0 {
  1808  		n += 1 + sovTask(uint64(m.DelayDuration))
  1809  	}
  1810  	if m.Concurrency != 0 {
  1811  		n += 1 + sovTask(uint64(m.Concurrency))
  1812  	}
  1813  	if len(m.Labels) > 0 {
  1814  		for k, v := range m.Labels {
  1815  			_ = k
  1816  			_ = v
  1817  			mapEntrySize := 1 + len(k) + sovTask(uint64(len(k))) + 1 + len(v) + sovTask(uint64(len(v)))
  1818  			n += mapEntrySize + 1 + sovTask(uint64(mapEntrySize))
  1819  		}
  1820  	}
  1821  	if m.Resource != nil {
  1822  		l = m.Resource.Size()
  1823  		n += 1 + l + sovTask(uint64(l))
  1824  	}
  1825  	if m.XXX_unrecognized != nil {
  1826  		n += len(m.XXX_unrecognized)
  1827  	}
  1828  	return n
  1829  }
  1830  
  1831  func (m *Resource) Size() (n int) {
  1832  	if m == nil {
  1833  		return 0
  1834  	}
  1835  	var l int
  1836  	_ = l
  1837  	if m.CPU != 0 {
  1838  		n += 1 + sovTask(uint64(m.CPU))
  1839  	}
  1840  	if m.Memory != 0 {
  1841  		n += 1 + sovTask(uint64(m.Memory))
  1842  	}
  1843  	if m.XXX_unrecognized != nil {
  1844  		n += len(m.XXX_unrecognized)
  1845  	}
  1846  	return n
  1847  }
  1848  
  1849  func (m *ExecuteResult) Size() (n int) {
  1850  	if m == nil {
  1851  		return 0
  1852  	}
  1853  	var l int
  1854  	_ = l
  1855  	if m.Code != 0 {
  1856  		n += 1 + sovTask(uint64(m.Code))
  1857  	}
  1858  	l = len(m.Error)
  1859  	if l > 0 {
  1860  		n += 1 + l + sovTask(uint64(l))
  1861  	}
  1862  	if m.XXX_unrecognized != nil {
  1863  		n += len(m.XXX_unrecognized)
  1864  	}
  1865  	return n
  1866  }
  1867  
  1868  func (m *AsyncTask) Size() (n int) {
  1869  	if m == nil {
  1870  		return 0
  1871  	}
  1872  	var l int
  1873  	_ = l
  1874  	if m.ID != 0 {
  1875  		n += 1 + sovTask(uint64(m.ID))
  1876  	}
  1877  	l = m.Metadata.Size()
  1878  	n += 1 + l + sovTask(uint64(l))
  1879  	l = len(m.ParentTaskID)
  1880  	if l > 0 {
  1881  		n += 1 + l + sovTask(uint64(l))
  1882  	}
  1883  	if m.Status != 0 {
  1884  		n += 1 + sovTask(uint64(m.Status))
  1885  	}
  1886  	l = len(m.TaskRunner)
  1887  	if l > 0 {
  1888  		n += 1 + l + sovTask(uint64(l))
  1889  	}
  1890  	if m.Epoch != 0 {
  1891  		n += 1 + sovTask(uint64(m.Epoch))
  1892  	}
  1893  	if m.LastHeartbeat != 0 {
  1894  		n += 1 + sovTask(uint64(m.LastHeartbeat))
  1895  	}
  1896  	if m.CreateAt != 0 {
  1897  		n += 1 + sovTask(uint64(m.CreateAt))
  1898  	}
  1899  	if m.CompletedAt != 0 {
  1900  		n += 1 + sovTask(uint64(m.CompletedAt))
  1901  	}
  1902  	if m.ExecuteResult != nil {
  1903  		l = m.ExecuteResult.Size()
  1904  		n += 1 + l + sovTask(uint64(l))
  1905  	}
  1906  	if m.XXX_unrecognized != nil {
  1907  		n += len(m.XXX_unrecognized)
  1908  	}
  1909  	return n
  1910  }
  1911  
  1912  func (m *CronTask) Size() (n int) {
  1913  	if m == nil {
  1914  		return 0
  1915  	}
  1916  	var l int
  1917  	_ = l
  1918  	if m.ID != 0 {
  1919  		n += 1 + sovTask(uint64(m.ID))
  1920  	}
  1921  	l = m.Metadata.Size()
  1922  	n += 1 + l + sovTask(uint64(l))
  1923  	l = len(m.CronExpr)
  1924  	if l > 0 {
  1925  		n += 1 + l + sovTask(uint64(l))
  1926  	}
  1927  	if m.NextTime != 0 {
  1928  		n += 1 + sovTask(uint64(m.NextTime))
  1929  	}
  1930  	if m.TriggerTimes != 0 {
  1931  		n += 1 + sovTask(uint64(m.TriggerTimes))
  1932  	}
  1933  	if m.CreateAt != 0 {
  1934  		n += 1 + sovTask(uint64(m.CreateAt))
  1935  	}
  1936  	if m.UpdateAt != 0 {
  1937  		n += 1 + sovTask(uint64(m.UpdateAt))
  1938  	}
  1939  	if m.XXX_unrecognized != nil {
  1940  		n += len(m.XXX_unrecognized)
  1941  	}
  1942  	return n
  1943  }
  1944  
  1945  func (m *ConnectorDetails) Size() (n int) {
  1946  	if m == nil {
  1947  		return 0
  1948  	}
  1949  	var l int
  1950  	_ = l
  1951  	l = len(m.TableName)
  1952  	if l > 0 {
  1953  		n += 1 + l + sovTask(uint64(l))
  1954  	}
  1955  	if len(m.Options) > 0 {
  1956  		for k, v := range m.Options {
  1957  			_ = k
  1958  			_ = v
  1959  			mapEntrySize := 1 + len(k) + sovTask(uint64(len(k))) + 1 + len(v) + sovTask(uint64(len(v)))
  1960  			n += mapEntrySize + 1 + sovTask(uint64(mapEntrySize))
  1961  		}
  1962  	}
  1963  	if m.XXX_unrecognized != nil {
  1964  		n += len(m.XXX_unrecognized)
  1965  	}
  1966  	return n
  1967  }
  1968  
  1969  func (m *Details) Size() (n int) {
  1970  	if m == nil {
  1971  		return 0
  1972  	}
  1973  	var l int
  1974  	_ = l
  1975  	l = len(m.Description)
  1976  	if l > 0 {
  1977  		n += 1 + l + sovTask(uint64(l))
  1978  	}
  1979  	if m.AccountID != 0 {
  1980  		n += 1 + sovTask(uint64(m.AccountID))
  1981  	}
  1982  	l = len(m.Account)
  1983  	if l > 0 {
  1984  		n += 1 + l + sovTask(uint64(l))
  1985  	}
  1986  	l = len(m.Username)
  1987  	if l > 0 {
  1988  		n += 1 + l + sovTask(uint64(l))
  1989  	}
  1990  	l = len(m.Error)
  1991  	if l > 0 {
  1992  		n += 1 + l + sovTask(uint64(l))
  1993  	}
  1994  	if m.Details != nil {
  1995  		n += m.Details.Size()
  1996  	}
  1997  	if m.XXX_unrecognized != nil {
  1998  		n += len(m.XXX_unrecognized)
  1999  	}
  2000  	return n
  2001  }
  2002  
  2003  func (m *Details_Connector) Size() (n int) {
  2004  	if m == nil {
  2005  		return 0
  2006  	}
  2007  	var l int
  2008  	_ = l
  2009  	if m.Connector != nil {
  2010  		l = m.Connector.Size()
  2011  		n += 1 + l + sovTask(uint64(l))
  2012  	}
  2013  	return n
  2014  }
  2015  func (m *DaemonTask) Size() (n int) {
  2016  	if m == nil {
  2017  		return 0
  2018  	}
  2019  	var l int
  2020  	_ = l
  2021  	if m.ID != 0 {
  2022  		n += 1 + sovTask(uint64(m.ID))
  2023  	}
  2024  	l = m.Metadata.Size()
  2025  	n += 1 + l + sovTask(uint64(l))
  2026  	if m.AccountID != 0 {
  2027  		n += 1 + sovTask(uint64(m.AccountID))
  2028  	}
  2029  	l = len(m.Account)
  2030  	if l > 0 {
  2031  		n += 1 + l + sovTask(uint64(l))
  2032  	}
  2033  	if m.TaskType != 0 {
  2034  		n += 1 + sovTask(uint64(m.TaskType))
  2035  	}
  2036  	l = len(m.TaskRunner)
  2037  	if l > 0 {
  2038  		n += 1 + l + sovTask(uint64(l))
  2039  	}
  2040  	if m.TaskStatus != 0 {
  2041  		n += 1 + sovTask(uint64(m.TaskStatus))
  2042  	}
  2043  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.LastHeartbeat)
  2044  	n += 1 + l + sovTask(uint64(l))
  2045  	if m.Details != nil {
  2046  		l = m.Details.Size()
  2047  		n += 1 + l + sovTask(uint64(l))
  2048  	}
  2049  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CreateAt)
  2050  	n += 1 + l + sovTask(uint64(l))
  2051  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdateAt)
  2052  	n += 1 + l + sovTask(uint64(l))
  2053  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.EndAt)
  2054  	n += 1 + l + sovTask(uint64(l))
  2055  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.LastRun)
  2056  	n += 1 + l + sovTask(uint64(l))
  2057  	if m.XXX_unrecognized != nil {
  2058  		n += len(m.XXX_unrecognized)
  2059  	}
  2060  	return n
  2061  }
  2062  
  2063  func sovTask(x uint64) (n int) {
  2064  	return (math_bits.Len64(x|1) + 6) / 7
  2065  }
  2066  func sozTask(x uint64) (n int) {
  2067  	return sovTask(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2068  }
  2069  func (m *TaskMetadata) Unmarshal(dAtA []byte) error {
  2070  	l := len(dAtA)
  2071  	iNdEx := 0
  2072  	for iNdEx < l {
  2073  		preIndex := iNdEx
  2074  		var wire uint64
  2075  		for shift := uint(0); ; shift += 7 {
  2076  			if shift >= 64 {
  2077  				return ErrIntOverflowTask
  2078  			}
  2079  			if iNdEx >= l {
  2080  				return io.ErrUnexpectedEOF
  2081  			}
  2082  			b := dAtA[iNdEx]
  2083  			iNdEx++
  2084  			wire |= uint64(b&0x7F) << shift
  2085  			if b < 0x80 {
  2086  				break
  2087  			}
  2088  		}
  2089  		fieldNum := int32(wire >> 3)
  2090  		wireType := int(wire & 0x7)
  2091  		if wireType == 4 {
  2092  			return fmt.Errorf("proto: TaskMetadata: wiretype end group for non-group")
  2093  		}
  2094  		if fieldNum <= 0 {
  2095  			return fmt.Errorf("proto: TaskMetadata: illegal tag %d (wire type %d)", fieldNum, wire)
  2096  		}
  2097  		switch fieldNum {
  2098  		case 1:
  2099  			if wireType != 2 {
  2100  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  2101  			}
  2102  			var stringLen uint64
  2103  			for shift := uint(0); ; shift += 7 {
  2104  				if shift >= 64 {
  2105  					return ErrIntOverflowTask
  2106  				}
  2107  				if iNdEx >= l {
  2108  					return io.ErrUnexpectedEOF
  2109  				}
  2110  				b := dAtA[iNdEx]
  2111  				iNdEx++
  2112  				stringLen |= uint64(b&0x7F) << shift
  2113  				if b < 0x80 {
  2114  					break
  2115  				}
  2116  			}
  2117  			intStringLen := int(stringLen)
  2118  			if intStringLen < 0 {
  2119  				return ErrInvalidLengthTask
  2120  			}
  2121  			postIndex := iNdEx + intStringLen
  2122  			if postIndex < 0 {
  2123  				return ErrInvalidLengthTask
  2124  			}
  2125  			if postIndex > l {
  2126  				return io.ErrUnexpectedEOF
  2127  			}
  2128  			m.ID = string(dAtA[iNdEx:postIndex])
  2129  			iNdEx = postIndex
  2130  		case 2:
  2131  			if wireType != 0 {
  2132  				return fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType)
  2133  			}
  2134  			m.Executor = 0
  2135  			for shift := uint(0); ; shift += 7 {
  2136  				if shift >= 64 {
  2137  					return ErrIntOverflowTask
  2138  				}
  2139  				if iNdEx >= l {
  2140  					return io.ErrUnexpectedEOF
  2141  				}
  2142  				b := dAtA[iNdEx]
  2143  				iNdEx++
  2144  				m.Executor |= TaskCode(b&0x7F) << shift
  2145  				if b < 0x80 {
  2146  					break
  2147  				}
  2148  			}
  2149  		case 3:
  2150  			if wireType != 2 {
  2151  				return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType)
  2152  			}
  2153  			var byteLen int
  2154  			for shift := uint(0); ; shift += 7 {
  2155  				if shift >= 64 {
  2156  					return ErrIntOverflowTask
  2157  				}
  2158  				if iNdEx >= l {
  2159  					return io.ErrUnexpectedEOF
  2160  				}
  2161  				b := dAtA[iNdEx]
  2162  				iNdEx++
  2163  				byteLen |= int(b&0x7F) << shift
  2164  				if b < 0x80 {
  2165  					break
  2166  				}
  2167  			}
  2168  			if byteLen < 0 {
  2169  				return ErrInvalidLengthTask
  2170  			}
  2171  			postIndex := iNdEx + byteLen
  2172  			if postIndex < 0 {
  2173  				return ErrInvalidLengthTask
  2174  			}
  2175  			if postIndex > l {
  2176  				return io.ErrUnexpectedEOF
  2177  			}
  2178  			m.Context = append(m.Context[:0], dAtA[iNdEx:postIndex]...)
  2179  			if m.Context == nil {
  2180  				m.Context = []byte{}
  2181  			}
  2182  			iNdEx = postIndex
  2183  		case 4:
  2184  			if wireType != 2 {
  2185  				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
  2186  			}
  2187  			var msglen int
  2188  			for shift := uint(0); ; shift += 7 {
  2189  				if shift >= 64 {
  2190  					return ErrIntOverflowTask
  2191  				}
  2192  				if iNdEx >= l {
  2193  					return io.ErrUnexpectedEOF
  2194  				}
  2195  				b := dAtA[iNdEx]
  2196  				iNdEx++
  2197  				msglen |= int(b&0x7F) << shift
  2198  				if b < 0x80 {
  2199  					break
  2200  				}
  2201  			}
  2202  			if msglen < 0 {
  2203  				return ErrInvalidLengthTask
  2204  			}
  2205  			postIndex := iNdEx + msglen
  2206  			if postIndex < 0 {
  2207  				return ErrInvalidLengthTask
  2208  			}
  2209  			if postIndex > l {
  2210  				return io.ErrUnexpectedEOF
  2211  			}
  2212  			if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2213  				return err
  2214  			}
  2215  			iNdEx = postIndex
  2216  		default:
  2217  			iNdEx = preIndex
  2218  			skippy, err := skipTask(dAtA[iNdEx:])
  2219  			if err != nil {
  2220  				return err
  2221  			}
  2222  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2223  				return ErrInvalidLengthTask
  2224  			}
  2225  			if (iNdEx + skippy) > l {
  2226  				return io.ErrUnexpectedEOF
  2227  			}
  2228  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2229  			iNdEx += skippy
  2230  		}
  2231  	}
  2232  
  2233  	if iNdEx > l {
  2234  		return io.ErrUnexpectedEOF
  2235  	}
  2236  	return nil
  2237  }
  2238  func (m *TaskOptions) Unmarshal(dAtA []byte) error {
  2239  	l := len(dAtA)
  2240  	iNdEx := 0
  2241  	for iNdEx < l {
  2242  		preIndex := iNdEx
  2243  		var wire uint64
  2244  		for shift := uint(0); ; shift += 7 {
  2245  			if shift >= 64 {
  2246  				return ErrIntOverflowTask
  2247  			}
  2248  			if iNdEx >= l {
  2249  				return io.ErrUnexpectedEOF
  2250  			}
  2251  			b := dAtA[iNdEx]
  2252  			iNdEx++
  2253  			wire |= uint64(b&0x7F) << shift
  2254  			if b < 0x80 {
  2255  				break
  2256  			}
  2257  		}
  2258  		fieldNum := int32(wire >> 3)
  2259  		wireType := int(wire & 0x7)
  2260  		if wireType == 4 {
  2261  			return fmt.Errorf("proto: TaskOptions: wiretype end group for non-group")
  2262  		}
  2263  		if fieldNum <= 0 {
  2264  			return fmt.Errorf("proto: TaskOptions: illegal tag %d (wire type %d)", fieldNum, wire)
  2265  		}
  2266  		switch fieldNum {
  2267  		case 1:
  2268  			if wireType != 0 {
  2269  				return fmt.Errorf("proto: wrong wireType = %d for field MaxRetryTimes", wireType)
  2270  			}
  2271  			m.MaxRetryTimes = 0
  2272  			for shift := uint(0); ; shift += 7 {
  2273  				if shift >= 64 {
  2274  					return ErrIntOverflowTask
  2275  				}
  2276  				if iNdEx >= l {
  2277  					return io.ErrUnexpectedEOF
  2278  				}
  2279  				b := dAtA[iNdEx]
  2280  				iNdEx++
  2281  				m.MaxRetryTimes |= uint32(b&0x7F) << shift
  2282  				if b < 0x80 {
  2283  					break
  2284  				}
  2285  			}
  2286  		case 2:
  2287  			if wireType != 0 {
  2288  				return fmt.Errorf("proto: wrong wireType = %d for field RetryInterval", wireType)
  2289  			}
  2290  			m.RetryInterval = 0
  2291  			for shift := uint(0); ; shift += 7 {
  2292  				if shift >= 64 {
  2293  					return ErrIntOverflowTask
  2294  				}
  2295  				if iNdEx >= l {
  2296  					return io.ErrUnexpectedEOF
  2297  				}
  2298  				b := dAtA[iNdEx]
  2299  				iNdEx++
  2300  				m.RetryInterval |= int64(b&0x7F) << shift
  2301  				if b < 0x80 {
  2302  					break
  2303  				}
  2304  			}
  2305  		case 3:
  2306  			if wireType != 0 {
  2307  				return fmt.Errorf("proto: wrong wireType = %d for field DelayDuration", wireType)
  2308  			}
  2309  			m.DelayDuration = 0
  2310  			for shift := uint(0); ; shift += 7 {
  2311  				if shift >= 64 {
  2312  					return ErrIntOverflowTask
  2313  				}
  2314  				if iNdEx >= l {
  2315  					return io.ErrUnexpectedEOF
  2316  				}
  2317  				b := dAtA[iNdEx]
  2318  				iNdEx++
  2319  				m.DelayDuration |= int64(b&0x7F) << shift
  2320  				if b < 0x80 {
  2321  					break
  2322  				}
  2323  			}
  2324  		case 4:
  2325  			if wireType != 0 {
  2326  				return fmt.Errorf("proto: wrong wireType = %d for field Concurrency", wireType)
  2327  			}
  2328  			m.Concurrency = 0
  2329  			for shift := uint(0); ; shift += 7 {
  2330  				if shift >= 64 {
  2331  					return ErrIntOverflowTask
  2332  				}
  2333  				if iNdEx >= l {
  2334  					return io.ErrUnexpectedEOF
  2335  				}
  2336  				b := dAtA[iNdEx]
  2337  				iNdEx++
  2338  				m.Concurrency |= uint32(b&0x7F) << shift
  2339  				if b < 0x80 {
  2340  					break
  2341  				}
  2342  			}
  2343  		case 5:
  2344  			if wireType != 2 {
  2345  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  2346  			}
  2347  			var msglen int
  2348  			for shift := uint(0); ; shift += 7 {
  2349  				if shift >= 64 {
  2350  					return ErrIntOverflowTask
  2351  				}
  2352  				if iNdEx >= l {
  2353  					return io.ErrUnexpectedEOF
  2354  				}
  2355  				b := dAtA[iNdEx]
  2356  				iNdEx++
  2357  				msglen |= int(b&0x7F) << shift
  2358  				if b < 0x80 {
  2359  					break
  2360  				}
  2361  			}
  2362  			if msglen < 0 {
  2363  				return ErrInvalidLengthTask
  2364  			}
  2365  			postIndex := iNdEx + msglen
  2366  			if postIndex < 0 {
  2367  				return ErrInvalidLengthTask
  2368  			}
  2369  			if postIndex > l {
  2370  				return io.ErrUnexpectedEOF
  2371  			}
  2372  			if m.Labels == nil {
  2373  				m.Labels = make(map[string]string)
  2374  			}
  2375  			var mapkey string
  2376  			var mapvalue string
  2377  			for iNdEx < postIndex {
  2378  				entryPreIndex := iNdEx
  2379  				var wire uint64
  2380  				for shift := uint(0); ; shift += 7 {
  2381  					if shift >= 64 {
  2382  						return ErrIntOverflowTask
  2383  					}
  2384  					if iNdEx >= l {
  2385  						return io.ErrUnexpectedEOF
  2386  					}
  2387  					b := dAtA[iNdEx]
  2388  					iNdEx++
  2389  					wire |= uint64(b&0x7F) << shift
  2390  					if b < 0x80 {
  2391  						break
  2392  					}
  2393  				}
  2394  				fieldNum := int32(wire >> 3)
  2395  				if fieldNum == 1 {
  2396  					var stringLenmapkey uint64
  2397  					for shift := uint(0); ; shift += 7 {
  2398  						if shift >= 64 {
  2399  							return ErrIntOverflowTask
  2400  						}
  2401  						if iNdEx >= l {
  2402  							return io.ErrUnexpectedEOF
  2403  						}
  2404  						b := dAtA[iNdEx]
  2405  						iNdEx++
  2406  						stringLenmapkey |= uint64(b&0x7F) << shift
  2407  						if b < 0x80 {
  2408  							break
  2409  						}
  2410  					}
  2411  					intStringLenmapkey := int(stringLenmapkey)
  2412  					if intStringLenmapkey < 0 {
  2413  						return ErrInvalidLengthTask
  2414  					}
  2415  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  2416  					if postStringIndexmapkey < 0 {
  2417  						return ErrInvalidLengthTask
  2418  					}
  2419  					if postStringIndexmapkey > l {
  2420  						return io.ErrUnexpectedEOF
  2421  					}
  2422  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2423  					iNdEx = postStringIndexmapkey
  2424  				} else if fieldNum == 2 {
  2425  					var stringLenmapvalue uint64
  2426  					for shift := uint(0); ; shift += 7 {
  2427  						if shift >= 64 {
  2428  							return ErrIntOverflowTask
  2429  						}
  2430  						if iNdEx >= l {
  2431  							return io.ErrUnexpectedEOF
  2432  						}
  2433  						b := dAtA[iNdEx]
  2434  						iNdEx++
  2435  						stringLenmapvalue |= uint64(b&0x7F) << shift
  2436  						if b < 0x80 {
  2437  							break
  2438  						}
  2439  					}
  2440  					intStringLenmapvalue := int(stringLenmapvalue)
  2441  					if intStringLenmapvalue < 0 {
  2442  						return ErrInvalidLengthTask
  2443  					}
  2444  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  2445  					if postStringIndexmapvalue < 0 {
  2446  						return ErrInvalidLengthTask
  2447  					}
  2448  					if postStringIndexmapvalue > l {
  2449  						return io.ErrUnexpectedEOF
  2450  					}
  2451  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  2452  					iNdEx = postStringIndexmapvalue
  2453  				} else {
  2454  					iNdEx = entryPreIndex
  2455  					skippy, err := skipTask(dAtA[iNdEx:])
  2456  					if err != nil {
  2457  						return err
  2458  					}
  2459  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  2460  						return ErrInvalidLengthTask
  2461  					}
  2462  					if (iNdEx + skippy) > postIndex {
  2463  						return io.ErrUnexpectedEOF
  2464  					}
  2465  					iNdEx += skippy
  2466  				}
  2467  			}
  2468  			m.Labels[mapkey] = mapvalue
  2469  			iNdEx = postIndex
  2470  		case 6:
  2471  			if wireType != 2 {
  2472  				return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
  2473  			}
  2474  			var msglen int
  2475  			for shift := uint(0); ; shift += 7 {
  2476  				if shift >= 64 {
  2477  					return ErrIntOverflowTask
  2478  				}
  2479  				if iNdEx >= l {
  2480  					return io.ErrUnexpectedEOF
  2481  				}
  2482  				b := dAtA[iNdEx]
  2483  				iNdEx++
  2484  				msglen |= int(b&0x7F) << shift
  2485  				if b < 0x80 {
  2486  					break
  2487  				}
  2488  			}
  2489  			if msglen < 0 {
  2490  				return ErrInvalidLengthTask
  2491  			}
  2492  			postIndex := iNdEx + msglen
  2493  			if postIndex < 0 {
  2494  				return ErrInvalidLengthTask
  2495  			}
  2496  			if postIndex > l {
  2497  				return io.ErrUnexpectedEOF
  2498  			}
  2499  			if m.Resource == nil {
  2500  				m.Resource = &Resource{}
  2501  			}
  2502  			if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2503  				return err
  2504  			}
  2505  			iNdEx = postIndex
  2506  		default:
  2507  			iNdEx = preIndex
  2508  			skippy, err := skipTask(dAtA[iNdEx:])
  2509  			if err != nil {
  2510  				return err
  2511  			}
  2512  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2513  				return ErrInvalidLengthTask
  2514  			}
  2515  			if (iNdEx + skippy) > l {
  2516  				return io.ErrUnexpectedEOF
  2517  			}
  2518  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2519  			iNdEx += skippy
  2520  		}
  2521  	}
  2522  
  2523  	if iNdEx > l {
  2524  		return io.ErrUnexpectedEOF
  2525  	}
  2526  	return nil
  2527  }
  2528  func (m *Resource) Unmarshal(dAtA []byte) error {
  2529  	l := len(dAtA)
  2530  	iNdEx := 0
  2531  	for iNdEx < l {
  2532  		preIndex := iNdEx
  2533  		var wire uint64
  2534  		for shift := uint(0); ; shift += 7 {
  2535  			if shift >= 64 {
  2536  				return ErrIntOverflowTask
  2537  			}
  2538  			if iNdEx >= l {
  2539  				return io.ErrUnexpectedEOF
  2540  			}
  2541  			b := dAtA[iNdEx]
  2542  			iNdEx++
  2543  			wire |= uint64(b&0x7F) << shift
  2544  			if b < 0x80 {
  2545  				break
  2546  			}
  2547  		}
  2548  		fieldNum := int32(wire >> 3)
  2549  		wireType := int(wire & 0x7)
  2550  		if wireType == 4 {
  2551  			return fmt.Errorf("proto: Resource: wiretype end group for non-group")
  2552  		}
  2553  		if fieldNum <= 0 {
  2554  			return fmt.Errorf("proto: Resource: illegal tag %d (wire type %d)", fieldNum, wire)
  2555  		}
  2556  		switch fieldNum {
  2557  		case 1:
  2558  			if wireType != 0 {
  2559  				return fmt.Errorf("proto: wrong wireType = %d for field CPU", wireType)
  2560  			}
  2561  			m.CPU = 0
  2562  			for shift := uint(0); ; shift += 7 {
  2563  				if shift >= 64 {
  2564  					return ErrIntOverflowTask
  2565  				}
  2566  				if iNdEx >= l {
  2567  					return io.ErrUnexpectedEOF
  2568  				}
  2569  				b := dAtA[iNdEx]
  2570  				iNdEx++
  2571  				m.CPU |= uint64(b&0x7F) << shift
  2572  				if b < 0x80 {
  2573  					break
  2574  				}
  2575  			}
  2576  		case 2:
  2577  			if wireType != 0 {
  2578  				return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType)
  2579  			}
  2580  			m.Memory = 0
  2581  			for shift := uint(0); ; shift += 7 {
  2582  				if shift >= 64 {
  2583  					return ErrIntOverflowTask
  2584  				}
  2585  				if iNdEx >= l {
  2586  					return io.ErrUnexpectedEOF
  2587  				}
  2588  				b := dAtA[iNdEx]
  2589  				iNdEx++
  2590  				m.Memory |= uint64(b&0x7F) << shift
  2591  				if b < 0x80 {
  2592  					break
  2593  				}
  2594  			}
  2595  		default:
  2596  			iNdEx = preIndex
  2597  			skippy, err := skipTask(dAtA[iNdEx:])
  2598  			if err != nil {
  2599  				return err
  2600  			}
  2601  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2602  				return ErrInvalidLengthTask
  2603  			}
  2604  			if (iNdEx + skippy) > l {
  2605  				return io.ErrUnexpectedEOF
  2606  			}
  2607  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2608  			iNdEx += skippy
  2609  		}
  2610  	}
  2611  
  2612  	if iNdEx > l {
  2613  		return io.ErrUnexpectedEOF
  2614  	}
  2615  	return nil
  2616  }
  2617  func (m *ExecuteResult) Unmarshal(dAtA []byte) error {
  2618  	l := len(dAtA)
  2619  	iNdEx := 0
  2620  	for iNdEx < l {
  2621  		preIndex := iNdEx
  2622  		var wire uint64
  2623  		for shift := uint(0); ; shift += 7 {
  2624  			if shift >= 64 {
  2625  				return ErrIntOverflowTask
  2626  			}
  2627  			if iNdEx >= l {
  2628  				return io.ErrUnexpectedEOF
  2629  			}
  2630  			b := dAtA[iNdEx]
  2631  			iNdEx++
  2632  			wire |= uint64(b&0x7F) << shift
  2633  			if b < 0x80 {
  2634  				break
  2635  			}
  2636  		}
  2637  		fieldNum := int32(wire >> 3)
  2638  		wireType := int(wire & 0x7)
  2639  		if wireType == 4 {
  2640  			return fmt.Errorf("proto: ExecuteResult: wiretype end group for non-group")
  2641  		}
  2642  		if fieldNum <= 0 {
  2643  			return fmt.Errorf("proto: ExecuteResult: illegal tag %d (wire type %d)", fieldNum, wire)
  2644  		}
  2645  		switch fieldNum {
  2646  		case 1:
  2647  			if wireType != 0 {
  2648  				return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  2649  			}
  2650  			m.Code = 0
  2651  			for shift := uint(0); ; shift += 7 {
  2652  				if shift >= 64 {
  2653  					return ErrIntOverflowTask
  2654  				}
  2655  				if iNdEx >= l {
  2656  					return io.ErrUnexpectedEOF
  2657  				}
  2658  				b := dAtA[iNdEx]
  2659  				iNdEx++
  2660  				m.Code |= ResultCode(b&0x7F) << shift
  2661  				if b < 0x80 {
  2662  					break
  2663  				}
  2664  			}
  2665  		case 2:
  2666  			if wireType != 2 {
  2667  				return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
  2668  			}
  2669  			var stringLen uint64
  2670  			for shift := uint(0); ; shift += 7 {
  2671  				if shift >= 64 {
  2672  					return ErrIntOverflowTask
  2673  				}
  2674  				if iNdEx >= l {
  2675  					return io.ErrUnexpectedEOF
  2676  				}
  2677  				b := dAtA[iNdEx]
  2678  				iNdEx++
  2679  				stringLen |= uint64(b&0x7F) << shift
  2680  				if b < 0x80 {
  2681  					break
  2682  				}
  2683  			}
  2684  			intStringLen := int(stringLen)
  2685  			if intStringLen < 0 {
  2686  				return ErrInvalidLengthTask
  2687  			}
  2688  			postIndex := iNdEx + intStringLen
  2689  			if postIndex < 0 {
  2690  				return ErrInvalidLengthTask
  2691  			}
  2692  			if postIndex > l {
  2693  				return io.ErrUnexpectedEOF
  2694  			}
  2695  			m.Error = string(dAtA[iNdEx:postIndex])
  2696  			iNdEx = postIndex
  2697  		default:
  2698  			iNdEx = preIndex
  2699  			skippy, err := skipTask(dAtA[iNdEx:])
  2700  			if err != nil {
  2701  				return err
  2702  			}
  2703  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2704  				return ErrInvalidLengthTask
  2705  			}
  2706  			if (iNdEx + skippy) > l {
  2707  				return io.ErrUnexpectedEOF
  2708  			}
  2709  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2710  			iNdEx += skippy
  2711  		}
  2712  	}
  2713  
  2714  	if iNdEx > l {
  2715  		return io.ErrUnexpectedEOF
  2716  	}
  2717  	return nil
  2718  }
  2719  func (m *AsyncTask) Unmarshal(dAtA []byte) error {
  2720  	l := len(dAtA)
  2721  	iNdEx := 0
  2722  	for iNdEx < l {
  2723  		preIndex := iNdEx
  2724  		var wire uint64
  2725  		for shift := uint(0); ; shift += 7 {
  2726  			if shift >= 64 {
  2727  				return ErrIntOverflowTask
  2728  			}
  2729  			if iNdEx >= l {
  2730  				return io.ErrUnexpectedEOF
  2731  			}
  2732  			b := dAtA[iNdEx]
  2733  			iNdEx++
  2734  			wire |= uint64(b&0x7F) << shift
  2735  			if b < 0x80 {
  2736  				break
  2737  			}
  2738  		}
  2739  		fieldNum := int32(wire >> 3)
  2740  		wireType := int(wire & 0x7)
  2741  		if wireType == 4 {
  2742  			return fmt.Errorf("proto: AsyncTask: wiretype end group for non-group")
  2743  		}
  2744  		if fieldNum <= 0 {
  2745  			return fmt.Errorf("proto: AsyncTask: illegal tag %d (wire type %d)", fieldNum, wire)
  2746  		}
  2747  		switch fieldNum {
  2748  		case 1:
  2749  			if wireType != 0 {
  2750  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  2751  			}
  2752  			m.ID = 0
  2753  			for shift := uint(0); ; shift += 7 {
  2754  				if shift >= 64 {
  2755  					return ErrIntOverflowTask
  2756  				}
  2757  				if iNdEx >= l {
  2758  					return io.ErrUnexpectedEOF
  2759  				}
  2760  				b := dAtA[iNdEx]
  2761  				iNdEx++
  2762  				m.ID |= uint64(b&0x7F) << shift
  2763  				if b < 0x80 {
  2764  					break
  2765  				}
  2766  			}
  2767  		case 2:
  2768  			if wireType != 2 {
  2769  				return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
  2770  			}
  2771  			var msglen int
  2772  			for shift := uint(0); ; shift += 7 {
  2773  				if shift >= 64 {
  2774  					return ErrIntOverflowTask
  2775  				}
  2776  				if iNdEx >= l {
  2777  					return io.ErrUnexpectedEOF
  2778  				}
  2779  				b := dAtA[iNdEx]
  2780  				iNdEx++
  2781  				msglen |= int(b&0x7F) << shift
  2782  				if b < 0x80 {
  2783  					break
  2784  				}
  2785  			}
  2786  			if msglen < 0 {
  2787  				return ErrInvalidLengthTask
  2788  			}
  2789  			postIndex := iNdEx + msglen
  2790  			if postIndex < 0 {
  2791  				return ErrInvalidLengthTask
  2792  			}
  2793  			if postIndex > l {
  2794  				return io.ErrUnexpectedEOF
  2795  			}
  2796  			if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2797  				return err
  2798  			}
  2799  			iNdEx = postIndex
  2800  		case 3:
  2801  			if wireType != 2 {
  2802  				return fmt.Errorf("proto: wrong wireType = %d for field ParentTaskID", wireType)
  2803  			}
  2804  			var stringLen uint64
  2805  			for shift := uint(0); ; shift += 7 {
  2806  				if shift >= 64 {
  2807  					return ErrIntOverflowTask
  2808  				}
  2809  				if iNdEx >= l {
  2810  					return io.ErrUnexpectedEOF
  2811  				}
  2812  				b := dAtA[iNdEx]
  2813  				iNdEx++
  2814  				stringLen |= uint64(b&0x7F) << shift
  2815  				if b < 0x80 {
  2816  					break
  2817  				}
  2818  			}
  2819  			intStringLen := int(stringLen)
  2820  			if intStringLen < 0 {
  2821  				return ErrInvalidLengthTask
  2822  			}
  2823  			postIndex := iNdEx + intStringLen
  2824  			if postIndex < 0 {
  2825  				return ErrInvalidLengthTask
  2826  			}
  2827  			if postIndex > l {
  2828  				return io.ErrUnexpectedEOF
  2829  			}
  2830  			m.ParentTaskID = string(dAtA[iNdEx:postIndex])
  2831  			iNdEx = postIndex
  2832  		case 4:
  2833  			if wireType != 0 {
  2834  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2835  			}
  2836  			m.Status = 0
  2837  			for shift := uint(0); ; shift += 7 {
  2838  				if shift >= 64 {
  2839  					return ErrIntOverflowTask
  2840  				}
  2841  				if iNdEx >= l {
  2842  					return io.ErrUnexpectedEOF
  2843  				}
  2844  				b := dAtA[iNdEx]
  2845  				iNdEx++
  2846  				m.Status |= TaskStatus(b&0x7F) << shift
  2847  				if b < 0x80 {
  2848  					break
  2849  				}
  2850  			}
  2851  		case 5:
  2852  			if wireType != 2 {
  2853  				return fmt.Errorf("proto: wrong wireType = %d for field TaskRunner", wireType)
  2854  			}
  2855  			var stringLen uint64
  2856  			for shift := uint(0); ; shift += 7 {
  2857  				if shift >= 64 {
  2858  					return ErrIntOverflowTask
  2859  				}
  2860  				if iNdEx >= l {
  2861  					return io.ErrUnexpectedEOF
  2862  				}
  2863  				b := dAtA[iNdEx]
  2864  				iNdEx++
  2865  				stringLen |= uint64(b&0x7F) << shift
  2866  				if b < 0x80 {
  2867  					break
  2868  				}
  2869  			}
  2870  			intStringLen := int(stringLen)
  2871  			if intStringLen < 0 {
  2872  				return ErrInvalidLengthTask
  2873  			}
  2874  			postIndex := iNdEx + intStringLen
  2875  			if postIndex < 0 {
  2876  				return ErrInvalidLengthTask
  2877  			}
  2878  			if postIndex > l {
  2879  				return io.ErrUnexpectedEOF
  2880  			}
  2881  			m.TaskRunner = string(dAtA[iNdEx:postIndex])
  2882  			iNdEx = postIndex
  2883  		case 6:
  2884  			if wireType != 0 {
  2885  				return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType)
  2886  			}
  2887  			m.Epoch = 0
  2888  			for shift := uint(0); ; shift += 7 {
  2889  				if shift >= 64 {
  2890  					return ErrIntOverflowTask
  2891  				}
  2892  				if iNdEx >= l {
  2893  					return io.ErrUnexpectedEOF
  2894  				}
  2895  				b := dAtA[iNdEx]
  2896  				iNdEx++
  2897  				m.Epoch |= uint32(b&0x7F) << shift
  2898  				if b < 0x80 {
  2899  					break
  2900  				}
  2901  			}
  2902  		case 7:
  2903  			if wireType != 0 {
  2904  				return fmt.Errorf("proto: wrong wireType = %d for field LastHeartbeat", wireType)
  2905  			}
  2906  			m.LastHeartbeat = 0
  2907  			for shift := uint(0); ; shift += 7 {
  2908  				if shift >= 64 {
  2909  					return ErrIntOverflowTask
  2910  				}
  2911  				if iNdEx >= l {
  2912  					return io.ErrUnexpectedEOF
  2913  				}
  2914  				b := dAtA[iNdEx]
  2915  				iNdEx++
  2916  				m.LastHeartbeat |= int64(b&0x7F) << shift
  2917  				if b < 0x80 {
  2918  					break
  2919  				}
  2920  			}
  2921  		case 8:
  2922  			if wireType != 0 {
  2923  				return fmt.Errorf("proto: wrong wireType = %d for field CreateAt", wireType)
  2924  			}
  2925  			m.CreateAt = 0
  2926  			for shift := uint(0); ; shift += 7 {
  2927  				if shift >= 64 {
  2928  					return ErrIntOverflowTask
  2929  				}
  2930  				if iNdEx >= l {
  2931  					return io.ErrUnexpectedEOF
  2932  				}
  2933  				b := dAtA[iNdEx]
  2934  				iNdEx++
  2935  				m.CreateAt |= int64(b&0x7F) << shift
  2936  				if b < 0x80 {
  2937  					break
  2938  				}
  2939  			}
  2940  		case 9:
  2941  			if wireType != 0 {
  2942  				return fmt.Errorf("proto: wrong wireType = %d for field CompletedAt", wireType)
  2943  			}
  2944  			m.CompletedAt = 0
  2945  			for shift := uint(0); ; shift += 7 {
  2946  				if shift >= 64 {
  2947  					return ErrIntOverflowTask
  2948  				}
  2949  				if iNdEx >= l {
  2950  					return io.ErrUnexpectedEOF
  2951  				}
  2952  				b := dAtA[iNdEx]
  2953  				iNdEx++
  2954  				m.CompletedAt |= int64(b&0x7F) << shift
  2955  				if b < 0x80 {
  2956  					break
  2957  				}
  2958  			}
  2959  		case 10:
  2960  			if wireType != 2 {
  2961  				return fmt.Errorf("proto: wrong wireType = %d for field ExecuteResult", wireType)
  2962  			}
  2963  			var msglen int
  2964  			for shift := uint(0); ; shift += 7 {
  2965  				if shift >= 64 {
  2966  					return ErrIntOverflowTask
  2967  				}
  2968  				if iNdEx >= l {
  2969  					return io.ErrUnexpectedEOF
  2970  				}
  2971  				b := dAtA[iNdEx]
  2972  				iNdEx++
  2973  				msglen |= int(b&0x7F) << shift
  2974  				if b < 0x80 {
  2975  					break
  2976  				}
  2977  			}
  2978  			if msglen < 0 {
  2979  				return ErrInvalidLengthTask
  2980  			}
  2981  			postIndex := iNdEx + msglen
  2982  			if postIndex < 0 {
  2983  				return ErrInvalidLengthTask
  2984  			}
  2985  			if postIndex > l {
  2986  				return io.ErrUnexpectedEOF
  2987  			}
  2988  			if m.ExecuteResult == nil {
  2989  				m.ExecuteResult = &ExecuteResult{}
  2990  			}
  2991  			if err := m.ExecuteResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2992  				return err
  2993  			}
  2994  			iNdEx = postIndex
  2995  		default:
  2996  			iNdEx = preIndex
  2997  			skippy, err := skipTask(dAtA[iNdEx:])
  2998  			if err != nil {
  2999  				return err
  3000  			}
  3001  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3002  				return ErrInvalidLengthTask
  3003  			}
  3004  			if (iNdEx + skippy) > l {
  3005  				return io.ErrUnexpectedEOF
  3006  			}
  3007  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3008  			iNdEx += skippy
  3009  		}
  3010  	}
  3011  
  3012  	if iNdEx > l {
  3013  		return io.ErrUnexpectedEOF
  3014  	}
  3015  	return nil
  3016  }
  3017  func (m *CronTask) Unmarshal(dAtA []byte) error {
  3018  	l := len(dAtA)
  3019  	iNdEx := 0
  3020  	for iNdEx < l {
  3021  		preIndex := iNdEx
  3022  		var wire uint64
  3023  		for shift := uint(0); ; shift += 7 {
  3024  			if shift >= 64 {
  3025  				return ErrIntOverflowTask
  3026  			}
  3027  			if iNdEx >= l {
  3028  				return io.ErrUnexpectedEOF
  3029  			}
  3030  			b := dAtA[iNdEx]
  3031  			iNdEx++
  3032  			wire |= uint64(b&0x7F) << shift
  3033  			if b < 0x80 {
  3034  				break
  3035  			}
  3036  		}
  3037  		fieldNum := int32(wire >> 3)
  3038  		wireType := int(wire & 0x7)
  3039  		if wireType == 4 {
  3040  			return fmt.Errorf("proto: CronTask: wiretype end group for non-group")
  3041  		}
  3042  		if fieldNum <= 0 {
  3043  			return fmt.Errorf("proto: CronTask: illegal tag %d (wire type %d)", fieldNum, wire)
  3044  		}
  3045  		switch fieldNum {
  3046  		case 1:
  3047  			if wireType != 0 {
  3048  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  3049  			}
  3050  			m.ID = 0
  3051  			for shift := uint(0); ; shift += 7 {
  3052  				if shift >= 64 {
  3053  					return ErrIntOverflowTask
  3054  				}
  3055  				if iNdEx >= l {
  3056  					return io.ErrUnexpectedEOF
  3057  				}
  3058  				b := dAtA[iNdEx]
  3059  				iNdEx++
  3060  				m.ID |= uint64(b&0x7F) << shift
  3061  				if b < 0x80 {
  3062  					break
  3063  				}
  3064  			}
  3065  		case 2:
  3066  			if wireType != 2 {
  3067  				return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
  3068  			}
  3069  			var msglen int
  3070  			for shift := uint(0); ; shift += 7 {
  3071  				if shift >= 64 {
  3072  					return ErrIntOverflowTask
  3073  				}
  3074  				if iNdEx >= l {
  3075  					return io.ErrUnexpectedEOF
  3076  				}
  3077  				b := dAtA[iNdEx]
  3078  				iNdEx++
  3079  				msglen |= int(b&0x7F) << shift
  3080  				if b < 0x80 {
  3081  					break
  3082  				}
  3083  			}
  3084  			if msglen < 0 {
  3085  				return ErrInvalidLengthTask
  3086  			}
  3087  			postIndex := iNdEx + msglen
  3088  			if postIndex < 0 {
  3089  				return ErrInvalidLengthTask
  3090  			}
  3091  			if postIndex > l {
  3092  				return io.ErrUnexpectedEOF
  3093  			}
  3094  			if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3095  				return err
  3096  			}
  3097  			iNdEx = postIndex
  3098  		case 3:
  3099  			if wireType != 2 {
  3100  				return fmt.Errorf("proto: wrong wireType = %d for field CronExpr", wireType)
  3101  			}
  3102  			var stringLen uint64
  3103  			for shift := uint(0); ; shift += 7 {
  3104  				if shift >= 64 {
  3105  					return ErrIntOverflowTask
  3106  				}
  3107  				if iNdEx >= l {
  3108  					return io.ErrUnexpectedEOF
  3109  				}
  3110  				b := dAtA[iNdEx]
  3111  				iNdEx++
  3112  				stringLen |= uint64(b&0x7F) << shift
  3113  				if b < 0x80 {
  3114  					break
  3115  				}
  3116  			}
  3117  			intStringLen := int(stringLen)
  3118  			if intStringLen < 0 {
  3119  				return ErrInvalidLengthTask
  3120  			}
  3121  			postIndex := iNdEx + intStringLen
  3122  			if postIndex < 0 {
  3123  				return ErrInvalidLengthTask
  3124  			}
  3125  			if postIndex > l {
  3126  				return io.ErrUnexpectedEOF
  3127  			}
  3128  			m.CronExpr = string(dAtA[iNdEx:postIndex])
  3129  			iNdEx = postIndex
  3130  		case 4:
  3131  			if wireType != 0 {
  3132  				return fmt.Errorf("proto: wrong wireType = %d for field NextTime", wireType)
  3133  			}
  3134  			m.NextTime = 0
  3135  			for shift := uint(0); ; shift += 7 {
  3136  				if shift >= 64 {
  3137  					return ErrIntOverflowTask
  3138  				}
  3139  				if iNdEx >= l {
  3140  					return io.ErrUnexpectedEOF
  3141  				}
  3142  				b := dAtA[iNdEx]
  3143  				iNdEx++
  3144  				m.NextTime |= int64(b&0x7F) << shift
  3145  				if b < 0x80 {
  3146  					break
  3147  				}
  3148  			}
  3149  		case 5:
  3150  			if wireType != 0 {
  3151  				return fmt.Errorf("proto: wrong wireType = %d for field TriggerTimes", wireType)
  3152  			}
  3153  			m.TriggerTimes = 0
  3154  			for shift := uint(0); ; shift += 7 {
  3155  				if shift >= 64 {
  3156  					return ErrIntOverflowTask
  3157  				}
  3158  				if iNdEx >= l {
  3159  					return io.ErrUnexpectedEOF
  3160  				}
  3161  				b := dAtA[iNdEx]
  3162  				iNdEx++
  3163  				m.TriggerTimes |= uint64(b&0x7F) << shift
  3164  				if b < 0x80 {
  3165  					break
  3166  				}
  3167  			}
  3168  		case 6:
  3169  			if wireType != 0 {
  3170  				return fmt.Errorf("proto: wrong wireType = %d for field CreateAt", wireType)
  3171  			}
  3172  			m.CreateAt = 0
  3173  			for shift := uint(0); ; shift += 7 {
  3174  				if shift >= 64 {
  3175  					return ErrIntOverflowTask
  3176  				}
  3177  				if iNdEx >= l {
  3178  					return io.ErrUnexpectedEOF
  3179  				}
  3180  				b := dAtA[iNdEx]
  3181  				iNdEx++
  3182  				m.CreateAt |= int64(b&0x7F) << shift
  3183  				if b < 0x80 {
  3184  					break
  3185  				}
  3186  			}
  3187  		case 7:
  3188  			if wireType != 0 {
  3189  				return fmt.Errorf("proto: wrong wireType = %d for field UpdateAt", wireType)
  3190  			}
  3191  			m.UpdateAt = 0
  3192  			for shift := uint(0); ; shift += 7 {
  3193  				if shift >= 64 {
  3194  					return ErrIntOverflowTask
  3195  				}
  3196  				if iNdEx >= l {
  3197  					return io.ErrUnexpectedEOF
  3198  				}
  3199  				b := dAtA[iNdEx]
  3200  				iNdEx++
  3201  				m.UpdateAt |= int64(b&0x7F) << shift
  3202  				if b < 0x80 {
  3203  					break
  3204  				}
  3205  			}
  3206  		default:
  3207  			iNdEx = preIndex
  3208  			skippy, err := skipTask(dAtA[iNdEx:])
  3209  			if err != nil {
  3210  				return err
  3211  			}
  3212  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3213  				return ErrInvalidLengthTask
  3214  			}
  3215  			if (iNdEx + skippy) > l {
  3216  				return io.ErrUnexpectedEOF
  3217  			}
  3218  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3219  			iNdEx += skippy
  3220  		}
  3221  	}
  3222  
  3223  	if iNdEx > l {
  3224  		return io.ErrUnexpectedEOF
  3225  	}
  3226  	return nil
  3227  }
  3228  func (m *ConnectorDetails) Unmarshal(dAtA []byte) error {
  3229  	l := len(dAtA)
  3230  	iNdEx := 0
  3231  	for iNdEx < l {
  3232  		preIndex := iNdEx
  3233  		var wire uint64
  3234  		for shift := uint(0); ; shift += 7 {
  3235  			if shift >= 64 {
  3236  				return ErrIntOverflowTask
  3237  			}
  3238  			if iNdEx >= l {
  3239  				return io.ErrUnexpectedEOF
  3240  			}
  3241  			b := dAtA[iNdEx]
  3242  			iNdEx++
  3243  			wire |= uint64(b&0x7F) << shift
  3244  			if b < 0x80 {
  3245  				break
  3246  			}
  3247  		}
  3248  		fieldNum := int32(wire >> 3)
  3249  		wireType := int(wire & 0x7)
  3250  		if wireType == 4 {
  3251  			return fmt.Errorf("proto: ConnectorDetails: wiretype end group for non-group")
  3252  		}
  3253  		if fieldNum <= 0 {
  3254  			return fmt.Errorf("proto: ConnectorDetails: illegal tag %d (wire type %d)", fieldNum, wire)
  3255  		}
  3256  		switch fieldNum {
  3257  		case 1:
  3258  			if wireType != 2 {
  3259  				return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType)
  3260  			}
  3261  			var stringLen uint64
  3262  			for shift := uint(0); ; shift += 7 {
  3263  				if shift >= 64 {
  3264  					return ErrIntOverflowTask
  3265  				}
  3266  				if iNdEx >= l {
  3267  					return io.ErrUnexpectedEOF
  3268  				}
  3269  				b := dAtA[iNdEx]
  3270  				iNdEx++
  3271  				stringLen |= uint64(b&0x7F) << shift
  3272  				if b < 0x80 {
  3273  					break
  3274  				}
  3275  			}
  3276  			intStringLen := int(stringLen)
  3277  			if intStringLen < 0 {
  3278  				return ErrInvalidLengthTask
  3279  			}
  3280  			postIndex := iNdEx + intStringLen
  3281  			if postIndex < 0 {
  3282  				return ErrInvalidLengthTask
  3283  			}
  3284  			if postIndex > l {
  3285  				return io.ErrUnexpectedEOF
  3286  			}
  3287  			m.TableName = string(dAtA[iNdEx:postIndex])
  3288  			iNdEx = postIndex
  3289  		case 2:
  3290  			if wireType != 2 {
  3291  				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
  3292  			}
  3293  			var msglen int
  3294  			for shift := uint(0); ; shift += 7 {
  3295  				if shift >= 64 {
  3296  					return ErrIntOverflowTask
  3297  				}
  3298  				if iNdEx >= l {
  3299  					return io.ErrUnexpectedEOF
  3300  				}
  3301  				b := dAtA[iNdEx]
  3302  				iNdEx++
  3303  				msglen |= int(b&0x7F) << shift
  3304  				if b < 0x80 {
  3305  					break
  3306  				}
  3307  			}
  3308  			if msglen < 0 {
  3309  				return ErrInvalidLengthTask
  3310  			}
  3311  			postIndex := iNdEx + msglen
  3312  			if postIndex < 0 {
  3313  				return ErrInvalidLengthTask
  3314  			}
  3315  			if postIndex > l {
  3316  				return io.ErrUnexpectedEOF
  3317  			}
  3318  			if m.Options == nil {
  3319  				m.Options = make(map[string]string)
  3320  			}
  3321  			var mapkey string
  3322  			var mapvalue string
  3323  			for iNdEx < postIndex {
  3324  				entryPreIndex := iNdEx
  3325  				var wire uint64
  3326  				for shift := uint(0); ; shift += 7 {
  3327  					if shift >= 64 {
  3328  						return ErrIntOverflowTask
  3329  					}
  3330  					if iNdEx >= l {
  3331  						return io.ErrUnexpectedEOF
  3332  					}
  3333  					b := dAtA[iNdEx]
  3334  					iNdEx++
  3335  					wire |= uint64(b&0x7F) << shift
  3336  					if b < 0x80 {
  3337  						break
  3338  					}
  3339  				}
  3340  				fieldNum := int32(wire >> 3)
  3341  				if fieldNum == 1 {
  3342  					var stringLenmapkey uint64
  3343  					for shift := uint(0); ; shift += 7 {
  3344  						if shift >= 64 {
  3345  							return ErrIntOverflowTask
  3346  						}
  3347  						if iNdEx >= l {
  3348  							return io.ErrUnexpectedEOF
  3349  						}
  3350  						b := dAtA[iNdEx]
  3351  						iNdEx++
  3352  						stringLenmapkey |= uint64(b&0x7F) << shift
  3353  						if b < 0x80 {
  3354  							break
  3355  						}
  3356  					}
  3357  					intStringLenmapkey := int(stringLenmapkey)
  3358  					if intStringLenmapkey < 0 {
  3359  						return ErrInvalidLengthTask
  3360  					}
  3361  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  3362  					if postStringIndexmapkey < 0 {
  3363  						return ErrInvalidLengthTask
  3364  					}
  3365  					if postStringIndexmapkey > l {
  3366  						return io.ErrUnexpectedEOF
  3367  					}
  3368  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  3369  					iNdEx = postStringIndexmapkey
  3370  				} else if fieldNum == 2 {
  3371  					var stringLenmapvalue uint64
  3372  					for shift := uint(0); ; shift += 7 {
  3373  						if shift >= 64 {
  3374  							return ErrIntOverflowTask
  3375  						}
  3376  						if iNdEx >= l {
  3377  							return io.ErrUnexpectedEOF
  3378  						}
  3379  						b := dAtA[iNdEx]
  3380  						iNdEx++
  3381  						stringLenmapvalue |= uint64(b&0x7F) << shift
  3382  						if b < 0x80 {
  3383  							break
  3384  						}
  3385  					}
  3386  					intStringLenmapvalue := int(stringLenmapvalue)
  3387  					if intStringLenmapvalue < 0 {
  3388  						return ErrInvalidLengthTask
  3389  					}
  3390  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  3391  					if postStringIndexmapvalue < 0 {
  3392  						return ErrInvalidLengthTask
  3393  					}
  3394  					if postStringIndexmapvalue > l {
  3395  						return io.ErrUnexpectedEOF
  3396  					}
  3397  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  3398  					iNdEx = postStringIndexmapvalue
  3399  				} else {
  3400  					iNdEx = entryPreIndex
  3401  					skippy, err := skipTask(dAtA[iNdEx:])
  3402  					if err != nil {
  3403  						return err
  3404  					}
  3405  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  3406  						return ErrInvalidLengthTask
  3407  					}
  3408  					if (iNdEx + skippy) > postIndex {
  3409  						return io.ErrUnexpectedEOF
  3410  					}
  3411  					iNdEx += skippy
  3412  				}
  3413  			}
  3414  			m.Options[mapkey] = mapvalue
  3415  			iNdEx = postIndex
  3416  		default:
  3417  			iNdEx = preIndex
  3418  			skippy, err := skipTask(dAtA[iNdEx:])
  3419  			if err != nil {
  3420  				return err
  3421  			}
  3422  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3423  				return ErrInvalidLengthTask
  3424  			}
  3425  			if (iNdEx + skippy) > l {
  3426  				return io.ErrUnexpectedEOF
  3427  			}
  3428  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3429  			iNdEx += skippy
  3430  		}
  3431  	}
  3432  
  3433  	if iNdEx > l {
  3434  		return io.ErrUnexpectedEOF
  3435  	}
  3436  	return nil
  3437  }
  3438  func (m *Details) Unmarshal(dAtA []byte) error {
  3439  	l := len(dAtA)
  3440  	iNdEx := 0
  3441  	for iNdEx < l {
  3442  		preIndex := iNdEx
  3443  		var wire uint64
  3444  		for shift := uint(0); ; shift += 7 {
  3445  			if shift >= 64 {
  3446  				return ErrIntOverflowTask
  3447  			}
  3448  			if iNdEx >= l {
  3449  				return io.ErrUnexpectedEOF
  3450  			}
  3451  			b := dAtA[iNdEx]
  3452  			iNdEx++
  3453  			wire |= uint64(b&0x7F) << shift
  3454  			if b < 0x80 {
  3455  				break
  3456  			}
  3457  		}
  3458  		fieldNum := int32(wire >> 3)
  3459  		wireType := int(wire & 0x7)
  3460  		if wireType == 4 {
  3461  			return fmt.Errorf("proto: Details: wiretype end group for non-group")
  3462  		}
  3463  		if fieldNum <= 0 {
  3464  			return fmt.Errorf("proto: Details: illegal tag %d (wire type %d)", fieldNum, wire)
  3465  		}
  3466  		switch fieldNum {
  3467  		case 1:
  3468  			if wireType != 2 {
  3469  				return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  3470  			}
  3471  			var stringLen uint64
  3472  			for shift := uint(0); ; shift += 7 {
  3473  				if shift >= 64 {
  3474  					return ErrIntOverflowTask
  3475  				}
  3476  				if iNdEx >= l {
  3477  					return io.ErrUnexpectedEOF
  3478  				}
  3479  				b := dAtA[iNdEx]
  3480  				iNdEx++
  3481  				stringLen |= uint64(b&0x7F) << shift
  3482  				if b < 0x80 {
  3483  					break
  3484  				}
  3485  			}
  3486  			intStringLen := int(stringLen)
  3487  			if intStringLen < 0 {
  3488  				return ErrInvalidLengthTask
  3489  			}
  3490  			postIndex := iNdEx + intStringLen
  3491  			if postIndex < 0 {
  3492  				return ErrInvalidLengthTask
  3493  			}
  3494  			if postIndex > l {
  3495  				return io.ErrUnexpectedEOF
  3496  			}
  3497  			m.Description = string(dAtA[iNdEx:postIndex])
  3498  			iNdEx = postIndex
  3499  		case 2:
  3500  			if wireType != 0 {
  3501  				return fmt.Errorf("proto: wrong wireType = %d for field AccountID", wireType)
  3502  			}
  3503  			m.AccountID = 0
  3504  			for shift := uint(0); ; shift += 7 {
  3505  				if shift >= 64 {
  3506  					return ErrIntOverflowTask
  3507  				}
  3508  				if iNdEx >= l {
  3509  					return io.ErrUnexpectedEOF
  3510  				}
  3511  				b := dAtA[iNdEx]
  3512  				iNdEx++
  3513  				m.AccountID |= uint32(b&0x7F) << shift
  3514  				if b < 0x80 {
  3515  					break
  3516  				}
  3517  			}
  3518  		case 3:
  3519  			if wireType != 2 {
  3520  				return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
  3521  			}
  3522  			var stringLen uint64
  3523  			for shift := uint(0); ; shift += 7 {
  3524  				if shift >= 64 {
  3525  					return ErrIntOverflowTask
  3526  				}
  3527  				if iNdEx >= l {
  3528  					return io.ErrUnexpectedEOF
  3529  				}
  3530  				b := dAtA[iNdEx]
  3531  				iNdEx++
  3532  				stringLen |= uint64(b&0x7F) << shift
  3533  				if b < 0x80 {
  3534  					break
  3535  				}
  3536  			}
  3537  			intStringLen := int(stringLen)
  3538  			if intStringLen < 0 {
  3539  				return ErrInvalidLengthTask
  3540  			}
  3541  			postIndex := iNdEx + intStringLen
  3542  			if postIndex < 0 {
  3543  				return ErrInvalidLengthTask
  3544  			}
  3545  			if postIndex > l {
  3546  				return io.ErrUnexpectedEOF
  3547  			}
  3548  			m.Account = string(dAtA[iNdEx:postIndex])
  3549  			iNdEx = postIndex
  3550  		case 4:
  3551  			if wireType != 2 {
  3552  				return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
  3553  			}
  3554  			var stringLen uint64
  3555  			for shift := uint(0); ; shift += 7 {
  3556  				if shift >= 64 {
  3557  					return ErrIntOverflowTask
  3558  				}
  3559  				if iNdEx >= l {
  3560  					return io.ErrUnexpectedEOF
  3561  				}
  3562  				b := dAtA[iNdEx]
  3563  				iNdEx++
  3564  				stringLen |= uint64(b&0x7F) << shift
  3565  				if b < 0x80 {
  3566  					break
  3567  				}
  3568  			}
  3569  			intStringLen := int(stringLen)
  3570  			if intStringLen < 0 {
  3571  				return ErrInvalidLengthTask
  3572  			}
  3573  			postIndex := iNdEx + intStringLen
  3574  			if postIndex < 0 {
  3575  				return ErrInvalidLengthTask
  3576  			}
  3577  			if postIndex > l {
  3578  				return io.ErrUnexpectedEOF
  3579  			}
  3580  			m.Username = string(dAtA[iNdEx:postIndex])
  3581  			iNdEx = postIndex
  3582  		case 5:
  3583  			if wireType != 2 {
  3584  				return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
  3585  			}
  3586  			var stringLen uint64
  3587  			for shift := uint(0); ; shift += 7 {
  3588  				if shift >= 64 {
  3589  					return ErrIntOverflowTask
  3590  				}
  3591  				if iNdEx >= l {
  3592  					return io.ErrUnexpectedEOF
  3593  				}
  3594  				b := dAtA[iNdEx]
  3595  				iNdEx++
  3596  				stringLen |= uint64(b&0x7F) << shift
  3597  				if b < 0x80 {
  3598  					break
  3599  				}
  3600  			}
  3601  			intStringLen := int(stringLen)
  3602  			if intStringLen < 0 {
  3603  				return ErrInvalidLengthTask
  3604  			}
  3605  			postIndex := iNdEx + intStringLen
  3606  			if postIndex < 0 {
  3607  				return ErrInvalidLengthTask
  3608  			}
  3609  			if postIndex > l {
  3610  				return io.ErrUnexpectedEOF
  3611  			}
  3612  			m.Error = string(dAtA[iNdEx:postIndex])
  3613  			iNdEx = postIndex
  3614  		case 10:
  3615  			if wireType != 2 {
  3616  				return fmt.Errorf("proto: wrong wireType = %d for field Connector", wireType)
  3617  			}
  3618  			var msglen int
  3619  			for shift := uint(0); ; shift += 7 {
  3620  				if shift >= 64 {
  3621  					return ErrIntOverflowTask
  3622  				}
  3623  				if iNdEx >= l {
  3624  					return io.ErrUnexpectedEOF
  3625  				}
  3626  				b := dAtA[iNdEx]
  3627  				iNdEx++
  3628  				msglen |= int(b&0x7F) << shift
  3629  				if b < 0x80 {
  3630  					break
  3631  				}
  3632  			}
  3633  			if msglen < 0 {
  3634  				return ErrInvalidLengthTask
  3635  			}
  3636  			postIndex := iNdEx + msglen
  3637  			if postIndex < 0 {
  3638  				return ErrInvalidLengthTask
  3639  			}
  3640  			if postIndex > l {
  3641  				return io.ErrUnexpectedEOF
  3642  			}
  3643  			v := &ConnectorDetails{}
  3644  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3645  				return err
  3646  			}
  3647  			m.Details = &Details_Connector{v}
  3648  			iNdEx = postIndex
  3649  		default:
  3650  			iNdEx = preIndex
  3651  			skippy, err := skipTask(dAtA[iNdEx:])
  3652  			if err != nil {
  3653  				return err
  3654  			}
  3655  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3656  				return ErrInvalidLengthTask
  3657  			}
  3658  			if (iNdEx + skippy) > l {
  3659  				return io.ErrUnexpectedEOF
  3660  			}
  3661  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3662  			iNdEx += skippy
  3663  		}
  3664  	}
  3665  
  3666  	if iNdEx > l {
  3667  		return io.ErrUnexpectedEOF
  3668  	}
  3669  	return nil
  3670  }
  3671  func (m *DaemonTask) Unmarshal(dAtA []byte) error {
  3672  	l := len(dAtA)
  3673  	iNdEx := 0
  3674  	for iNdEx < l {
  3675  		preIndex := iNdEx
  3676  		var wire uint64
  3677  		for shift := uint(0); ; shift += 7 {
  3678  			if shift >= 64 {
  3679  				return ErrIntOverflowTask
  3680  			}
  3681  			if iNdEx >= l {
  3682  				return io.ErrUnexpectedEOF
  3683  			}
  3684  			b := dAtA[iNdEx]
  3685  			iNdEx++
  3686  			wire |= uint64(b&0x7F) << shift
  3687  			if b < 0x80 {
  3688  				break
  3689  			}
  3690  		}
  3691  		fieldNum := int32(wire >> 3)
  3692  		wireType := int(wire & 0x7)
  3693  		if wireType == 4 {
  3694  			return fmt.Errorf("proto: DaemonTask: wiretype end group for non-group")
  3695  		}
  3696  		if fieldNum <= 0 {
  3697  			return fmt.Errorf("proto: DaemonTask: illegal tag %d (wire type %d)", fieldNum, wire)
  3698  		}
  3699  		switch fieldNum {
  3700  		case 1:
  3701  			if wireType != 0 {
  3702  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  3703  			}
  3704  			m.ID = 0
  3705  			for shift := uint(0); ; shift += 7 {
  3706  				if shift >= 64 {
  3707  					return ErrIntOverflowTask
  3708  				}
  3709  				if iNdEx >= l {
  3710  					return io.ErrUnexpectedEOF
  3711  				}
  3712  				b := dAtA[iNdEx]
  3713  				iNdEx++
  3714  				m.ID |= uint64(b&0x7F) << shift
  3715  				if b < 0x80 {
  3716  					break
  3717  				}
  3718  			}
  3719  		case 2:
  3720  			if wireType != 2 {
  3721  				return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
  3722  			}
  3723  			var msglen int
  3724  			for shift := uint(0); ; shift += 7 {
  3725  				if shift >= 64 {
  3726  					return ErrIntOverflowTask
  3727  				}
  3728  				if iNdEx >= l {
  3729  					return io.ErrUnexpectedEOF
  3730  				}
  3731  				b := dAtA[iNdEx]
  3732  				iNdEx++
  3733  				msglen |= int(b&0x7F) << shift
  3734  				if b < 0x80 {
  3735  					break
  3736  				}
  3737  			}
  3738  			if msglen < 0 {
  3739  				return ErrInvalidLengthTask
  3740  			}
  3741  			postIndex := iNdEx + msglen
  3742  			if postIndex < 0 {
  3743  				return ErrInvalidLengthTask
  3744  			}
  3745  			if postIndex > l {
  3746  				return io.ErrUnexpectedEOF
  3747  			}
  3748  			if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3749  				return err
  3750  			}
  3751  			iNdEx = postIndex
  3752  		case 3:
  3753  			if wireType != 0 {
  3754  				return fmt.Errorf("proto: wrong wireType = %d for field AccountID", wireType)
  3755  			}
  3756  			m.AccountID = 0
  3757  			for shift := uint(0); ; shift += 7 {
  3758  				if shift >= 64 {
  3759  					return ErrIntOverflowTask
  3760  				}
  3761  				if iNdEx >= l {
  3762  					return io.ErrUnexpectedEOF
  3763  				}
  3764  				b := dAtA[iNdEx]
  3765  				iNdEx++
  3766  				m.AccountID |= uint32(b&0x7F) << shift
  3767  				if b < 0x80 {
  3768  					break
  3769  				}
  3770  			}
  3771  		case 4:
  3772  			if wireType != 2 {
  3773  				return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
  3774  			}
  3775  			var stringLen uint64
  3776  			for shift := uint(0); ; shift += 7 {
  3777  				if shift >= 64 {
  3778  					return ErrIntOverflowTask
  3779  				}
  3780  				if iNdEx >= l {
  3781  					return io.ErrUnexpectedEOF
  3782  				}
  3783  				b := dAtA[iNdEx]
  3784  				iNdEx++
  3785  				stringLen |= uint64(b&0x7F) << shift
  3786  				if b < 0x80 {
  3787  					break
  3788  				}
  3789  			}
  3790  			intStringLen := int(stringLen)
  3791  			if intStringLen < 0 {
  3792  				return ErrInvalidLengthTask
  3793  			}
  3794  			postIndex := iNdEx + intStringLen
  3795  			if postIndex < 0 {
  3796  				return ErrInvalidLengthTask
  3797  			}
  3798  			if postIndex > l {
  3799  				return io.ErrUnexpectedEOF
  3800  			}
  3801  			m.Account = string(dAtA[iNdEx:postIndex])
  3802  			iNdEx = postIndex
  3803  		case 5:
  3804  			if wireType != 0 {
  3805  				return fmt.Errorf("proto: wrong wireType = %d for field TaskType", wireType)
  3806  			}
  3807  			m.TaskType = 0
  3808  			for shift := uint(0); ; shift += 7 {
  3809  				if shift >= 64 {
  3810  					return ErrIntOverflowTask
  3811  				}
  3812  				if iNdEx >= l {
  3813  					return io.ErrUnexpectedEOF
  3814  				}
  3815  				b := dAtA[iNdEx]
  3816  				iNdEx++
  3817  				m.TaskType |= TaskType(b&0x7F) << shift
  3818  				if b < 0x80 {
  3819  					break
  3820  				}
  3821  			}
  3822  		case 6:
  3823  			if wireType != 2 {
  3824  				return fmt.Errorf("proto: wrong wireType = %d for field TaskRunner", wireType)
  3825  			}
  3826  			var stringLen uint64
  3827  			for shift := uint(0); ; shift += 7 {
  3828  				if shift >= 64 {
  3829  					return ErrIntOverflowTask
  3830  				}
  3831  				if iNdEx >= l {
  3832  					return io.ErrUnexpectedEOF
  3833  				}
  3834  				b := dAtA[iNdEx]
  3835  				iNdEx++
  3836  				stringLen |= uint64(b&0x7F) << shift
  3837  				if b < 0x80 {
  3838  					break
  3839  				}
  3840  			}
  3841  			intStringLen := int(stringLen)
  3842  			if intStringLen < 0 {
  3843  				return ErrInvalidLengthTask
  3844  			}
  3845  			postIndex := iNdEx + intStringLen
  3846  			if postIndex < 0 {
  3847  				return ErrInvalidLengthTask
  3848  			}
  3849  			if postIndex > l {
  3850  				return io.ErrUnexpectedEOF
  3851  			}
  3852  			m.TaskRunner = string(dAtA[iNdEx:postIndex])
  3853  			iNdEx = postIndex
  3854  		case 7:
  3855  			if wireType != 0 {
  3856  				return fmt.Errorf("proto: wrong wireType = %d for field TaskStatus", wireType)
  3857  			}
  3858  			m.TaskStatus = 0
  3859  			for shift := uint(0); ; shift += 7 {
  3860  				if shift >= 64 {
  3861  					return ErrIntOverflowTask
  3862  				}
  3863  				if iNdEx >= l {
  3864  					return io.ErrUnexpectedEOF
  3865  				}
  3866  				b := dAtA[iNdEx]
  3867  				iNdEx++
  3868  				m.TaskStatus |= TaskStatus(b&0x7F) << shift
  3869  				if b < 0x80 {
  3870  					break
  3871  				}
  3872  			}
  3873  		case 8:
  3874  			if wireType != 2 {
  3875  				return fmt.Errorf("proto: wrong wireType = %d for field LastHeartbeat", wireType)
  3876  			}
  3877  			var msglen int
  3878  			for shift := uint(0); ; shift += 7 {
  3879  				if shift >= 64 {
  3880  					return ErrIntOverflowTask
  3881  				}
  3882  				if iNdEx >= l {
  3883  					return io.ErrUnexpectedEOF
  3884  				}
  3885  				b := dAtA[iNdEx]
  3886  				iNdEx++
  3887  				msglen |= int(b&0x7F) << shift
  3888  				if b < 0x80 {
  3889  					break
  3890  				}
  3891  			}
  3892  			if msglen < 0 {
  3893  				return ErrInvalidLengthTask
  3894  			}
  3895  			postIndex := iNdEx + msglen
  3896  			if postIndex < 0 {
  3897  				return ErrInvalidLengthTask
  3898  			}
  3899  			if postIndex > l {
  3900  				return io.ErrUnexpectedEOF
  3901  			}
  3902  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.LastHeartbeat, dAtA[iNdEx:postIndex]); err != nil {
  3903  				return err
  3904  			}
  3905  			iNdEx = postIndex
  3906  		case 9:
  3907  			if wireType != 2 {
  3908  				return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType)
  3909  			}
  3910  			var msglen int
  3911  			for shift := uint(0); ; shift += 7 {
  3912  				if shift >= 64 {
  3913  					return ErrIntOverflowTask
  3914  				}
  3915  				if iNdEx >= l {
  3916  					return io.ErrUnexpectedEOF
  3917  				}
  3918  				b := dAtA[iNdEx]
  3919  				iNdEx++
  3920  				msglen |= int(b&0x7F) << shift
  3921  				if b < 0x80 {
  3922  					break
  3923  				}
  3924  			}
  3925  			if msglen < 0 {
  3926  				return ErrInvalidLengthTask
  3927  			}
  3928  			postIndex := iNdEx + msglen
  3929  			if postIndex < 0 {
  3930  				return ErrInvalidLengthTask
  3931  			}
  3932  			if postIndex > l {
  3933  				return io.ErrUnexpectedEOF
  3934  			}
  3935  			if m.Details == nil {
  3936  				m.Details = &Details{}
  3937  			}
  3938  			if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3939  				return err
  3940  			}
  3941  			iNdEx = postIndex
  3942  		case 10:
  3943  			if wireType != 2 {
  3944  				return fmt.Errorf("proto: wrong wireType = %d for field CreateAt", wireType)
  3945  			}
  3946  			var msglen int
  3947  			for shift := uint(0); ; shift += 7 {
  3948  				if shift >= 64 {
  3949  					return ErrIntOverflowTask
  3950  				}
  3951  				if iNdEx >= l {
  3952  					return io.ErrUnexpectedEOF
  3953  				}
  3954  				b := dAtA[iNdEx]
  3955  				iNdEx++
  3956  				msglen |= int(b&0x7F) << shift
  3957  				if b < 0x80 {
  3958  					break
  3959  				}
  3960  			}
  3961  			if msglen < 0 {
  3962  				return ErrInvalidLengthTask
  3963  			}
  3964  			postIndex := iNdEx + msglen
  3965  			if postIndex < 0 {
  3966  				return ErrInvalidLengthTask
  3967  			}
  3968  			if postIndex > l {
  3969  				return io.ErrUnexpectedEOF
  3970  			}
  3971  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.CreateAt, dAtA[iNdEx:postIndex]); err != nil {
  3972  				return err
  3973  			}
  3974  			iNdEx = postIndex
  3975  		case 11:
  3976  			if wireType != 2 {
  3977  				return fmt.Errorf("proto: wrong wireType = %d for field UpdateAt", wireType)
  3978  			}
  3979  			var msglen int
  3980  			for shift := uint(0); ; shift += 7 {
  3981  				if shift >= 64 {
  3982  					return ErrIntOverflowTask
  3983  				}
  3984  				if iNdEx >= l {
  3985  					return io.ErrUnexpectedEOF
  3986  				}
  3987  				b := dAtA[iNdEx]
  3988  				iNdEx++
  3989  				msglen |= int(b&0x7F) << shift
  3990  				if b < 0x80 {
  3991  					break
  3992  				}
  3993  			}
  3994  			if msglen < 0 {
  3995  				return ErrInvalidLengthTask
  3996  			}
  3997  			postIndex := iNdEx + msglen
  3998  			if postIndex < 0 {
  3999  				return ErrInvalidLengthTask
  4000  			}
  4001  			if postIndex > l {
  4002  				return io.ErrUnexpectedEOF
  4003  			}
  4004  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.UpdateAt, dAtA[iNdEx:postIndex]); err != nil {
  4005  				return err
  4006  			}
  4007  			iNdEx = postIndex
  4008  		case 12:
  4009  			if wireType != 2 {
  4010  				return fmt.Errorf("proto: wrong wireType = %d for field EndAt", wireType)
  4011  			}
  4012  			var msglen int
  4013  			for shift := uint(0); ; shift += 7 {
  4014  				if shift >= 64 {
  4015  					return ErrIntOverflowTask
  4016  				}
  4017  				if iNdEx >= l {
  4018  					return io.ErrUnexpectedEOF
  4019  				}
  4020  				b := dAtA[iNdEx]
  4021  				iNdEx++
  4022  				msglen |= int(b&0x7F) << shift
  4023  				if b < 0x80 {
  4024  					break
  4025  				}
  4026  			}
  4027  			if msglen < 0 {
  4028  				return ErrInvalidLengthTask
  4029  			}
  4030  			postIndex := iNdEx + msglen
  4031  			if postIndex < 0 {
  4032  				return ErrInvalidLengthTask
  4033  			}
  4034  			if postIndex > l {
  4035  				return io.ErrUnexpectedEOF
  4036  			}
  4037  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.EndAt, dAtA[iNdEx:postIndex]); err != nil {
  4038  				return err
  4039  			}
  4040  			iNdEx = postIndex
  4041  		case 13:
  4042  			if wireType != 2 {
  4043  				return fmt.Errorf("proto: wrong wireType = %d for field LastRun", wireType)
  4044  			}
  4045  			var msglen int
  4046  			for shift := uint(0); ; shift += 7 {
  4047  				if shift >= 64 {
  4048  					return ErrIntOverflowTask
  4049  				}
  4050  				if iNdEx >= l {
  4051  					return io.ErrUnexpectedEOF
  4052  				}
  4053  				b := dAtA[iNdEx]
  4054  				iNdEx++
  4055  				msglen |= int(b&0x7F) << shift
  4056  				if b < 0x80 {
  4057  					break
  4058  				}
  4059  			}
  4060  			if msglen < 0 {
  4061  				return ErrInvalidLengthTask
  4062  			}
  4063  			postIndex := iNdEx + msglen
  4064  			if postIndex < 0 {
  4065  				return ErrInvalidLengthTask
  4066  			}
  4067  			if postIndex > l {
  4068  				return io.ErrUnexpectedEOF
  4069  			}
  4070  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.LastRun, dAtA[iNdEx:postIndex]); err != nil {
  4071  				return err
  4072  			}
  4073  			iNdEx = postIndex
  4074  		default:
  4075  			iNdEx = preIndex
  4076  			skippy, err := skipTask(dAtA[iNdEx:])
  4077  			if err != nil {
  4078  				return err
  4079  			}
  4080  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4081  				return ErrInvalidLengthTask
  4082  			}
  4083  			if (iNdEx + skippy) > l {
  4084  				return io.ErrUnexpectedEOF
  4085  			}
  4086  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4087  			iNdEx += skippy
  4088  		}
  4089  	}
  4090  
  4091  	if iNdEx > l {
  4092  		return io.ErrUnexpectedEOF
  4093  	}
  4094  	return nil
  4095  }
  4096  func skipTask(dAtA []byte) (n int, err error) {
  4097  	l := len(dAtA)
  4098  	iNdEx := 0
  4099  	depth := 0
  4100  	for iNdEx < l {
  4101  		var wire uint64
  4102  		for shift := uint(0); ; shift += 7 {
  4103  			if shift >= 64 {
  4104  				return 0, ErrIntOverflowTask
  4105  			}
  4106  			if iNdEx >= l {
  4107  				return 0, io.ErrUnexpectedEOF
  4108  			}
  4109  			b := dAtA[iNdEx]
  4110  			iNdEx++
  4111  			wire |= (uint64(b) & 0x7F) << shift
  4112  			if b < 0x80 {
  4113  				break
  4114  			}
  4115  		}
  4116  		wireType := int(wire & 0x7)
  4117  		switch wireType {
  4118  		case 0:
  4119  			for shift := uint(0); ; shift += 7 {
  4120  				if shift >= 64 {
  4121  					return 0, ErrIntOverflowTask
  4122  				}
  4123  				if iNdEx >= l {
  4124  					return 0, io.ErrUnexpectedEOF
  4125  				}
  4126  				iNdEx++
  4127  				if dAtA[iNdEx-1] < 0x80 {
  4128  					break
  4129  				}
  4130  			}
  4131  		case 1:
  4132  			iNdEx += 8
  4133  		case 2:
  4134  			var length int
  4135  			for shift := uint(0); ; shift += 7 {
  4136  				if shift >= 64 {
  4137  					return 0, ErrIntOverflowTask
  4138  				}
  4139  				if iNdEx >= l {
  4140  					return 0, io.ErrUnexpectedEOF
  4141  				}
  4142  				b := dAtA[iNdEx]
  4143  				iNdEx++
  4144  				length |= (int(b) & 0x7F) << shift
  4145  				if b < 0x80 {
  4146  					break
  4147  				}
  4148  			}
  4149  			if length < 0 {
  4150  				return 0, ErrInvalidLengthTask
  4151  			}
  4152  			iNdEx += length
  4153  		case 3:
  4154  			depth++
  4155  		case 4:
  4156  			if depth == 0 {
  4157  				return 0, ErrUnexpectedEndOfGroupTask
  4158  			}
  4159  			depth--
  4160  		case 5:
  4161  			iNdEx += 4
  4162  		default:
  4163  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  4164  		}
  4165  		if iNdEx < 0 {
  4166  			return 0, ErrInvalidLengthTask
  4167  		}
  4168  		if depth == 0 {
  4169  			return iNdEx, nil
  4170  		}
  4171  	}
  4172  	return 0, io.ErrUnexpectedEOF
  4173  }
  4174  
  4175  var (
  4176  	ErrInvalidLengthTask        = fmt.Errorf("proto: negative length found during unmarshaling")
  4177  	ErrIntOverflowTask          = fmt.Errorf("proto: integer overflow")
  4178  	ErrUnexpectedEndOfGroupTask = fmt.Errorf("proto: unexpected end of group")
  4179  )