vitess.io/vitess@v0.16.2/go/vt/proto/workflow/workflow.pb.go (about) 1 // 2 //Copyright 2019 The Vitess Authors. 3 // 4 //Licensed under the Apache License, Version 2.0 (the "License"); 5 //you may not use this file except in compliance with the License. 6 //You may obtain a copy of the License at 7 // 8 //http://www.apache.org/licenses/LICENSE-2.0 9 // 10 //Unless required by applicable law or agreed to in writing, software 11 //distributed under the License is distributed on an "AS IS" BASIS, 12 //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 //See the License for the specific language governing permissions and 14 //limitations under the License. 15 16 // This file contains the Vitess workflow management related data 17 // structures. They are used to store / retrieve state from topology 18 // server. 19 20 // Code generated by protoc-gen-go. DO NOT EDIT. 21 // versions: 22 // protoc-gen-go v1.28.1 23 // protoc v3.21.3 24 // source: workflow.proto 25 26 package workflow 27 28 import ( 29 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 30 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 31 reflect "reflect" 32 sync "sync" 33 ) 34 35 const ( 36 // Verify that this generated code is sufficiently up-to-date. 37 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 38 // Verify that runtime/protoimpl is sufficiently up-to-date. 39 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 40 ) 41 42 // WorkflowState describes the state of a workflow. 43 // This constant should match the Node object described in 44 // web/vtctld2/src/app/workflows/node.ts as it is exposed as JSON to 45 // the Angular 2 web app. 46 type WorkflowState int32 47 48 const ( 49 WorkflowState_NotStarted WorkflowState = 0 50 WorkflowState_Running WorkflowState = 1 51 WorkflowState_Done WorkflowState = 2 52 ) 53 54 // Enum value maps for WorkflowState. 55 var ( 56 WorkflowState_name = map[int32]string{ 57 0: "NotStarted", 58 1: "Running", 59 2: "Done", 60 } 61 WorkflowState_value = map[string]int32{ 62 "NotStarted": 0, 63 "Running": 1, 64 "Done": 2, 65 } 66 ) 67 68 func (x WorkflowState) Enum() *WorkflowState { 69 p := new(WorkflowState) 70 *p = x 71 return p 72 } 73 74 func (x WorkflowState) String() string { 75 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 76 } 77 78 func (WorkflowState) Descriptor() protoreflect.EnumDescriptor { 79 return file_workflow_proto_enumTypes[0].Descriptor() 80 } 81 82 func (WorkflowState) Type() protoreflect.EnumType { 83 return &file_workflow_proto_enumTypes[0] 84 } 85 86 func (x WorkflowState) Number() protoreflect.EnumNumber { 87 return protoreflect.EnumNumber(x) 88 } 89 90 // Deprecated: Use WorkflowState.Descriptor instead. 91 func (WorkflowState) EnumDescriptor() ([]byte, []int) { 92 return file_workflow_proto_rawDescGZIP(), []int{0} 93 } 94 95 type TaskState int32 96 97 const ( 98 TaskState_TaskNotStarted TaskState = 0 99 TaskState_TaskRunning TaskState = 1 100 TaskState_TaskDone TaskState = 2 101 ) 102 103 // Enum value maps for TaskState. 104 var ( 105 TaskState_name = map[int32]string{ 106 0: "TaskNotStarted", 107 1: "TaskRunning", 108 2: "TaskDone", 109 } 110 TaskState_value = map[string]int32{ 111 "TaskNotStarted": 0, 112 "TaskRunning": 1, 113 "TaskDone": 2, 114 } 115 ) 116 117 func (x TaskState) Enum() *TaskState { 118 p := new(TaskState) 119 *p = x 120 return p 121 } 122 123 func (x TaskState) String() string { 124 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 125 } 126 127 func (TaskState) Descriptor() protoreflect.EnumDescriptor { 128 return file_workflow_proto_enumTypes[1].Descriptor() 129 } 130 131 func (TaskState) Type() protoreflect.EnumType { 132 return &file_workflow_proto_enumTypes[1] 133 } 134 135 func (x TaskState) Number() protoreflect.EnumNumber { 136 return protoreflect.EnumNumber(x) 137 } 138 139 // Deprecated: Use TaskState.Descriptor instead. 140 func (TaskState) EnumDescriptor() ([]byte, []int) { 141 return file_workflow_proto_rawDescGZIP(), []int{1} 142 } 143 144 // Workflow is the persisted state of a long-running workflow. 145 type Workflow struct { 146 state protoimpl.MessageState 147 sizeCache protoimpl.SizeCache 148 unknownFields protoimpl.UnknownFields 149 150 // uuid is set when the workflow is created, and immutable after 151 // that. 152 Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` 153 // factory_name is set with the name of the factory that created the 154 // job (and can also restart it). It is set at creation time, and 155 // immutable after that. 156 FactoryName string `protobuf:"bytes,2,opt,name=factory_name,json=factoryName,proto3" json:"factory_name,omitempty"` 157 // name is the display name of the workflow. 158 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` 159 // state describes the state of the job. A job is created as 160 // NotStarted, then the Workflow Manager picks it up and starts it, 161 // switching it to Running (and populating 'start_time'). The 162 // workflow can then fail over to a new Workflow Manager is 163 // necessary, and still be in Running state. When done, it goes to 164 // Done, 'end_time' is populated, and 'error' is set if there was an 165 // error. 166 State WorkflowState `protobuf:"varint,4,opt,name=state,proto3,enum=workflow.WorkflowState" json:"state,omitempty"` 167 // data is workflow-specific stored data. It is usually a binary 168 // proto-encoded data structure. It can vary throughout the 169 // execution of the workflow. It will not change after the workflow 170 // is Done. 171 Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` 172 // error is set if the job finished with an error. This field only 173 // makes sense if 'state' is Done. 174 Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` 175 // start_time is set when the workflow manager starts a workflow for 176 // the first time. This field only makes sense if 'state' is Running 177 // or Done. 178 StartTime int64 `protobuf:"varint,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` 179 // end_time is set when the workflow is finished. 180 // This field only makes sense if 'state' is Done. 181 EndTime int64 `protobuf:"varint,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` 182 // create_time is set when the workflow is created. 183 CreateTime int64 `protobuf:"varint,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` 184 } 185 186 func (x *Workflow) Reset() { 187 *x = Workflow{} 188 if protoimpl.UnsafeEnabled { 189 mi := &file_workflow_proto_msgTypes[0] 190 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 191 ms.StoreMessageInfo(mi) 192 } 193 } 194 195 func (x *Workflow) String() string { 196 return protoimpl.X.MessageStringOf(x) 197 } 198 199 func (*Workflow) ProtoMessage() {} 200 201 func (x *Workflow) ProtoReflect() protoreflect.Message { 202 mi := &file_workflow_proto_msgTypes[0] 203 if protoimpl.UnsafeEnabled && x != nil { 204 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 205 if ms.LoadMessageInfo() == nil { 206 ms.StoreMessageInfo(mi) 207 } 208 return ms 209 } 210 return mi.MessageOf(x) 211 } 212 213 // Deprecated: Use Workflow.ProtoReflect.Descriptor instead. 214 func (*Workflow) Descriptor() ([]byte, []int) { 215 return file_workflow_proto_rawDescGZIP(), []int{0} 216 } 217 218 func (x *Workflow) GetUuid() string { 219 if x != nil { 220 return x.Uuid 221 } 222 return "" 223 } 224 225 func (x *Workflow) GetFactoryName() string { 226 if x != nil { 227 return x.FactoryName 228 } 229 return "" 230 } 231 232 func (x *Workflow) GetName() string { 233 if x != nil { 234 return x.Name 235 } 236 return "" 237 } 238 239 func (x *Workflow) GetState() WorkflowState { 240 if x != nil { 241 return x.State 242 } 243 return WorkflowState_NotStarted 244 } 245 246 func (x *Workflow) GetData() []byte { 247 if x != nil { 248 return x.Data 249 } 250 return nil 251 } 252 253 func (x *Workflow) GetError() string { 254 if x != nil { 255 return x.Error 256 } 257 return "" 258 } 259 260 func (x *Workflow) GetStartTime() int64 { 261 if x != nil { 262 return x.StartTime 263 } 264 return 0 265 } 266 267 func (x *Workflow) GetEndTime() int64 { 268 if x != nil { 269 return x.EndTime 270 } 271 return 0 272 } 273 274 func (x *Workflow) GetCreateTime() int64 { 275 if x != nil { 276 return x.CreateTime 277 } 278 return 0 279 } 280 281 type WorkflowCheckpoint struct { 282 state protoimpl.MessageState 283 sizeCache protoimpl.SizeCache 284 unknownFields protoimpl.UnknownFields 285 286 // code_version is used to detect incompabilities between the version of the 287 // running workflow and the one which wrote the checkpoint. If they don't 288 // match, the workflow must not continue. The author of workflow must update 289 // this variable in their implementation when incompabilities are introduced. 290 CodeVersion int32 `protobuf:"varint,1,opt,name=code_version,json=codeVersion,proto3" json:"code_version,omitempty"` 291 // Task is the data structure that stores the execution status and the 292 // attributes of a task. 293 Tasks map[string]*Task `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 294 // settings includes workflow specific data, e.g. the resharding workflow 295 // would store the source shards and destination shards. 296 Settings map[string]string `protobuf:"bytes,3,rep,name=settings,proto3" json:"settings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 297 } 298 299 func (x *WorkflowCheckpoint) Reset() { 300 *x = WorkflowCheckpoint{} 301 if protoimpl.UnsafeEnabled { 302 mi := &file_workflow_proto_msgTypes[1] 303 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 304 ms.StoreMessageInfo(mi) 305 } 306 } 307 308 func (x *WorkflowCheckpoint) String() string { 309 return protoimpl.X.MessageStringOf(x) 310 } 311 312 func (*WorkflowCheckpoint) ProtoMessage() {} 313 314 func (x *WorkflowCheckpoint) ProtoReflect() protoreflect.Message { 315 mi := &file_workflow_proto_msgTypes[1] 316 if protoimpl.UnsafeEnabled && x != nil { 317 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 318 if ms.LoadMessageInfo() == nil { 319 ms.StoreMessageInfo(mi) 320 } 321 return ms 322 } 323 return mi.MessageOf(x) 324 } 325 326 // Deprecated: Use WorkflowCheckpoint.ProtoReflect.Descriptor instead. 327 func (*WorkflowCheckpoint) Descriptor() ([]byte, []int) { 328 return file_workflow_proto_rawDescGZIP(), []int{1} 329 } 330 331 func (x *WorkflowCheckpoint) GetCodeVersion() int32 { 332 if x != nil { 333 return x.CodeVersion 334 } 335 return 0 336 } 337 338 func (x *WorkflowCheckpoint) GetTasks() map[string]*Task { 339 if x != nil { 340 return x.Tasks 341 } 342 return nil 343 } 344 345 func (x *WorkflowCheckpoint) GetSettings() map[string]string { 346 if x != nil { 347 return x.Settings 348 } 349 return nil 350 } 351 352 type Task struct { 353 state protoimpl.MessageState 354 sizeCache protoimpl.SizeCache 355 unknownFields protoimpl.UnknownFields 356 357 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 358 State TaskState `protobuf:"varint,2,opt,name=state,proto3,enum=workflow.TaskState" json:"state,omitempty"` 359 // attributes includes the parameters the task needs. 360 Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 361 Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` 362 } 363 364 func (x *Task) Reset() { 365 *x = Task{} 366 if protoimpl.UnsafeEnabled { 367 mi := &file_workflow_proto_msgTypes[2] 368 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 369 ms.StoreMessageInfo(mi) 370 } 371 } 372 373 func (x *Task) String() string { 374 return protoimpl.X.MessageStringOf(x) 375 } 376 377 func (*Task) ProtoMessage() {} 378 379 func (x *Task) ProtoReflect() protoreflect.Message { 380 mi := &file_workflow_proto_msgTypes[2] 381 if protoimpl.UnsafeEnabled && x != nil { 382 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 383 if ms.LoadMessageInfo() == nil { 384 ms.StoreMessageInfo(mi) 385 } 386 return ms 387 } 388 return mi.MessageOf(x) 389 } 390 391 // Deprecated: Use Task.ProtoReflect.Descriptor instead. 392 func (*Task) Descriptor() ([]byte, []int) { 393 return file_workflow_proto_rawDescGZIP(), []int{2} 394 } 395 396 func (x *Task) GetId() string { 397 if x != nil { 398 return x.Id 399 } 400 return "" 401 } 402 403 func (x *Task) GetState() TaskState { 404 if x != nil { 405 return x.State 406 } 407 return TaskState_TaskNotStarted 408 } 409 410 func (x *Task) GetAttributes() map[string]string { 411 if x != nil { 412 return x.Attributes 413 } 414 return nil 415 } 416 417 func (x *Task) GetError() string { 418 if x != nil { 419 return x.Error 420 } 421 return "" 422 } 423 424 var File_workflow_proto protoreflect.FileDescriptor 425 426 var file_workflow_proto_rawDesc = []byte{ 427 0x0a, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 428 0x12, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x22, 0x89, 0x02, 0x0a, 0x08, 0x57, 429 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 430 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x66, 431 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 432 0x09, 0x52, 0x0b, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 433 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 434 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 435 0x0e, 0x32, 0x17, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x57, 0x6f, 0x72, 436 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 437 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 438 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06, 439 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 440 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 441 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 442 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x6e, 443 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 444 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 445 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xc5, 0x02, 0x0a, 0x12, 0x57, 0x6f, 0x72, 0x6b, 0x66, 446 0x6c, 0x6f, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x21, 0x0a, 447 0x0c, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 448 0x01, 0x28, 0x05, 0x52, 0x0b, 0x63, 0x6f, 0x64, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 449 0x12, 0x3d, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 450 0x27, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 451 0x6c, 0x6f, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x54, 0x61, 452 0x73, 0x6b, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 453 0x46, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 454 0x0b, 0x32, 0x2a, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x57, 0x6f, 0x72, 455 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 456 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x73, 457 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0x48, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x73, 458 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 459 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 460 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 461 0x77, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 462 0x01, 0x1a, 0x3b, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x45, 0x6e, 0x74, 463 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 464 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 465 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd6, 466 0x01, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 467 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 468 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 469 0x77, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 470 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 471 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 472 0x77, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 473 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 474 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 475 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 476 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 477 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 478 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 479 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x36, 0x0a, 0x0d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 480 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x6f, 0x74, 0x53, 481 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x75, 0x6e, 0x6e, 482 0x69, 0x6e, 0x67, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x6f, 0x6e, 0x65, 0x10, 0x02, 0x2a, 483 0x3e, 0x0a, 0x09, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x0e, 484 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x10, 0x00, 485 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x10, 486 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x6f, 0x6e, 0x65, 0x10, 0x02, 0x42, 487 0x27, 0x5a, 0x25, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 488 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 489 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 490 } 491 492 var ( 493 file_workflow_proto_rawDescOnce sync.Once 494 file_workflow_proto_rawDescData = file_workflow_proto_rawDesc 495 ) 496 497 func file_workflow_proto_rawDescGZIP() []byte { 498 file_workflow_proto_rawDescOnce.Do(func() { 499 file_workflow_proto_rawDescData = protoimpl.X.CompressGZIP(file_workflow_proto_rawDescData) 500 }) 501 return file_workflow_proto_rawDescData 502 } 503 504 var file_workflow_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 505 var file_workflow_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 506 var file_workflow_proto_goTypes = []interface{}{ 507 (WorkflowState)(0), // 0: workflow.WorkflowState 508 (TaskState)(0), // 1: workflow.TaskState 509 (*Workflow)(nil), // 2: workflow.Workflow 510 (*WorkflowCheckpoint)(nil), // 3: workflow.WorkflowCheckpoint 511 (*Task)(nil), // 4: workflow.Task 512 nil, // 5: workflow.WorkflowCheckpoint.TasksEntry 513 nil, // 6: workflow.WorkflowCheckpoint.SettingsEntry 514 nil, // 7: workflow.Task.AttributesEntry 515 } 516 var file_workflow_proto_depIdxs = []int32{ 517 0, // 0: workflow.Workflow.state:type_name -> workflow.WorkflowState 518 5, // 1: workflow.WorkflowCheckpoint.tasks:type_name -> workflow.WorkflowCheckpoint.TasksEntry 519 6, // 2: workflow.WorkflowCheckpoint.settings:type_name -> workflow.WorkflowCheckpoint.SettingsEntry 520 1, // 3: workflow.Task.state:type_name -> workflow.TaskState 521 7, // 4: workflow.Task.attributes:type_name -> workflow.Task.AttributesEntry 522 4, // 5: workflow.WorkflowCheckpoint.TasksEntry.value:type_name -> workflow.Task 523 6, // [6:6] is the sub-list for method output_type 524 6, // [6:6] is the sub-list for method input_type 525 6, // [6:6] is the sub-list for extension type_name 526 6, // [6:6] is the sub-list for extension extendee 527 0, // [0:6] is the sub-list for field type_name 528 } 529 530 func init() { file_workflow_proto_init() } 531 func file_workflow_proto_init() { 532 if File_workflow_proto != nil { 533 return 534 } 535 if !protoimpl.UnsafeEnabled { 536 file_workflow_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 537 switch v := v.(*Workflow); i { 538 case 0: 539 return &v.state 540 case 1: 541 return &v.sizeCache 542 case 2: 543 return &v.unknownFields 544 default: 545 return nil 546 } 547 } 548 file_workflow_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 549 switch v := v.(*WorkflowCheckpoint); i { 550 case 0: 551 return &v.state 552 case 1: 553 return &v.sizeCache 554 case 2: 555 return &v.unknownFields 556 default: 557 return nil 558 } 559 } 560 file_workflow_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 561 switch v := v.(*Task); i { 562 case 0: 563 return &v.state 564 case 1: 565 return &v.sizeCache 566 case 2: 567 return &v.unknownFields 568 default: 569 return nil 570 } 571 } 572 } 573 type x struct{} 574 out := protoimpl.TypeBuilder{ 575 File: protoimpl.DescBuilder{ 576 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 577 RawDescriptor: file_workflow_proto_rawDesc, 578 NumEnums: 2, 579 NumMessages: 6, 580 NumExtensions: 0, 581 NumServices: 0, 582 }, 583 GoTypes: file_workflow_proto_goTypes, 584 DependencyIndexes: file_workflow_proto_depIdxs, 585 EnumInfos: file_workflow_proto_enumTypes, 586 MessageInfos: file_workflow_proto_msgTypes, 587 }.Build() 588 File_workflow_proto = out.File 589 file_workflow_proto_rawDesc = nil 590 file_workflow_proto_goTypes = nil 591 file_workflow_proto_depIdxs = nil 592 }