go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/cv/internal/run/eventpb/tasks.pb.go (about)

     1  // Copyright 2020 The LUCI Authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //      http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.31.0
    18  // 	protoc        v3.21.7
    19  // source: go.chromium.org/luci/cv/internal/run/eventpb/tasks.proto
    20  
    21  package eventpb
    22  
    23  import (
    24  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    25  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    26  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    27  	reflect "reflect"
    28  	sync "sync"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // ManageRunTask sends a signal to RunManager to process events.
    39  //
    40  // Always used with de-duplication and thus can't be created from a
    41  // transaction.
    42  //
    43  // Queue: "manage-run".
    44  type ManageRunTask struct {
    45  	state         protoimpl.MessageState
    46  	sizeCache     protoimpl.SizeCache
    47  	unknownFields protoimpl.UnknownFields
    48  
    49  	RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
    50  }
    51  
    52  func (x *ManageRunTask) Reset() {
    53  	*x = ManageRunTask{}
    54  	if protoimpl.UnsafeEnabled {
    55  		mi := &file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_msgTypes[0]
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		ms.StoreMessageInfo(mi)
    58  	}
    59  }
    60  
    61  func (x *ManageRunTask) String() string {
    62  	return protoimpl.X.MessageStringOf(x)
    63  }
    64  
    65  func (*ManageRunTask) ProtoMessage() {}
    66  
    67  func (x *ManageRunTask) ProtoReflect() protoreflect.Message {
    68  	mi := &file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_msgTypes[0]
    69  	if protoimpl.UnsafeEnabled && x != nil {
    70  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    71  		if ms.LoadMessageInfo() == nil {
    72  			ms.StoreMessageInfo(mi)
    73  		}
    74  		return ms
    75  	}
    76  	return mi.MessageOf(x)
    77  }
    78  
    79  // Deprecated: Use ManageRunTask.ProtoReflect.Descriptor instead.
    80  func (*ManageRunTask) Descriptor() ([]byte, []int) {
    81  	return file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_rawDescGZIP(), []int{0}
    82  }
    83  
    84  func (x *ManageRunTask) GetRunId() string {
    85  	if x != nil {
    86  		return x.RunId
    87  	}
    88  	return ""
    89  }
    90  
    91  // KickManageRunTask starts a task to actually enqueue ManageRunTask. It exists
    92  // in order to send a deduplicatable ManageRunTask from a transaction.
    93  //
    94  // Queue: "kick-manage-run".
    95  type KickManageRunTask struct {
    96  	state         protoimpl.MessageState
    97  	sizeCache     protoimpl.SizeCache
    98  	unknownFields protoimpl.UnknownFields
    99  
   100  	RunId string                 `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
   101  	Eta   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=eta,proto3" json:"eta,omitempty"`
   102  }
   103  
   104  func (x *KickManageRunTask) Reset() {
   105  	*x = KickManageRunTask{}
   106  	if protoimpl.UnsafeEnabled {
   107  		mi := &file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_msgTypes[1]
   108  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   109  		ms.StoreMessageInfo(mi)
   110  	}
   111  }
   112  
   113  func (x *KickManageRunTask) String() string {
   114  	return protoimpl.X.MessageStringOf(x)
   115  }
   116  
   117  func (*KickManageRunTask) ProtoMessage() {}
   118  
   119  func (x *KickManageRunTask) ProtoReflect() protoreflect.Message {
   120  	mi := &file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_msgTypes[1]
   121  	if protoimpl.UnsafeEnabled && x != nil {
   122  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   123  		if ms.LoadMessageInfo() == nil {
   124  			ms.StoreMessageInfo(mi)
   125  		}
   126  		return ms
   127  	}
   128  	return mi.MessageOf(x)
   129  }
   130  
   131  // Deprecated: Use KickManageRunTask.ProtoReflect.Descriptor instead.
   132  func (*KickManageRunTask) Descriptor() ([]byte, []int) {
   133  	return file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_rawDescGZIP(), []int{1}
   134  }
   135  
   136  func (x *KickManageRunTask) GetRunId() string {
   137  	if x != nil {
   138  		return x.RunId
   139  	}
   140  	return ""
   141  }
   142  
   143  func (x *KickManageRunTask) GetEta() *timestamppb.Timestamp {
   144  	if x != nil {
   145  		return x.Eta
   146  	}
   147  	return nil
   148  }
   149  
   150  // ManageRunLongOpTask performs potentially slow work on behalf a Run.
   151  //
   152  // A task of this kind is always created transactionally with the Run entity
   153  // modification recording the operation in OngoingLongOps.
   154  //
   155  // A task of this kind does not modify the Run entity directly, but communicates
   156  // back with Run Manager by sending at least the completion event, and possibly other
   157  // events.
   158  //
   159  // Queue: "manage-run-long-op".
   160  type ManageRunLongOpTask struct {
   161  	state         protoimpl.MessageState
   162  	sizeCache     protoimpl.SizeCache
   163  	unknownFields protoimpl.UnknownFields
   164  
   165  	RunId       string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
   166  	OperationId string `protobuf:"bytes,2,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
   167  }
   168  
   169  func (x *ManageRunLongOpTask) Reset() {
   170  	*x = ManageRunLongOpTask{}
   171  	if protoimpl.UnsafeEnabled {
   172  		mi := &file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_msgTypes[2]
   173  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   174  		ms.StoreMessageInfo(mi)
   175  	}
   176  }
   177  
   178  func (x *ManageRunLongOpTask) String() string {
   179  	return protoimpl.X.MessageStringOf(x)
   180  }
   181  
   182  func (*ManageRunLongOpTask) ProtoMessage() {}
   183  
   184  func (x *ManageRunLongOpTask) ProtoReflect() protoreflect.Message {
   185  	mi := &file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_msgTypes[2]
   186  	if protoimpl.UnsafeEnabled && x != nil {
   187  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   188  		if ms.LoadMessageInfo() == nil {
   189  			ms.StoreMessageInfo(mi)
   190  		}
   191  		return ms
   192  	}
   193  	return mi.MessageOf(x)
   194  }
   195  
   196  // Deprecated: Use ManageRunLongOpTask.ProtoReflect.Descriptor instead.
   197  func (*ManageRunLongOpTask) Descriptor() ([]byte, []int) {
   198  	return file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_rawDescGZIP(), []int{2}
   199  }
   200  
   201  func (x *ManageRunLongOpTask) GetRunId() string {
   202  	if x != nil {
   203  		return x.RunId
   204  	}
   205  	return ""
   206  }
   207  
   208  func (x *ManageRunLongOpTask) GetOperationId() string {
   209  	if x != nil {
   210  		return x.OperationId
   211  	}
   212  	return ""
   213  }
   214  
   215  var File_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto protoreflect.FileDescriptor
   216  
   217  var file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_rawDesc = []byte{
   218  	0x0a, 0x38, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   219  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
   220  	0x61, 0x6c, 0x2f, 0x72, 0x75, 0x6e, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x74,
   221  	0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x76, 0x2e, 0x69,
   222  	0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x72, 0x75, 0x6e, 0x2e, 0x65, 0x76, 0x65, 0x6e,
   223  	0x74, 0x70, 0x62, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   224  	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70,
   225  	0x72, 0x6f, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x0d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x52, 0x75,
   226  	0x6e, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18,
   227  	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x22, 0x58, 0x0a, 0x11,
   228  	0x4b, 0x69, 0x63, 0x6b, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73,
   229  	0x6b, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
   230  	0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x03, 0x65, 0x74, 0x61, 0x18,
   231  	0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
   232  	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
   233  	0x70, 0x52, 0x03, 0x65, 0x74, 0x61, 0x22, 0x4f, 0x0a, 0x13, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65,
   234  	0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x6e, 0x67, 0x4f, 0x70, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x15, 0x0a,
   235  	0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72,
   236  	0x75, 0x6e, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
   237  	0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x70, 0x65, 0x72,
   238  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x63, 0x68,
   239  	0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f,
   240  	0x63, 0x76, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x72, 0x75, 0x6e, 0x2f,
   241  	0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x3b, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x62,
   242  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   243  }
   244  
   245  var (
   246  	file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_rawDescOnce sync.Once
   247  	file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_rawDescData = file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_rawDesc
   248  )
   249  
   250  func file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_rawDescGZIP() []byte {
   251  	file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_rawDescOnce.Do(func() {
   252  		file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_rawDescData)
   253  	})
   254  	return file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_rawDescData
   255  }
   256  
   257  var file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   258  var file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_goTypes = []interface{}{
   259  	(*ManageRunTask)(nil),         // 0: cv.internal.run.eventpb.ManageRunTask
   260  	(*KickManageRunTask)(nil),     // 1: cv.internal.run.eventpb.KickManageRunTask
   261  	(*ManageRunLongOpTask)(nil),   // 2: cv.internal.run.eventpb.ManageRunLongOpTask
   262  	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
   263  }
   264  var file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_depIdxs = []int32{
   265  	3, // 0: cv.internal.run.eventpb.KickManageRunTask.eta:type_name -> google.protobuf.Timestamp
   266  	1, // [1:1] is the sub-list for method output_type
   267  	1, // [1:1] is the sub-list for method input_type
   268  	1, // [1:1] is the sub-list for extension type_name
   269  	1, // [1:1] is the sub-list for extension extendee
   270  	0, // [0:1] is the sub-list for field type_name
   271  }
   272  
   273  func init() { file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_init() }
   274  func file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_init() {
   275  	if File_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto != nil {
   276  		return
   277  	}
   278  	if !protoimpl.UnsafeEnabled {
   279  		file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   280  			switch v := v.(*ManageRunTask); i {
   281  			case 0:
   282  				return &v.state
   283  			case 1:
   284  				return &v.sizeCache
   285  			case 2:
   286  				return &v.unknownFields
   287  			default:
   288  				return nil
   289  			}
   290  		}
   291  		file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   292  			switch v := v.(*KickManageRunTask); i {
   293  			case 0:
   294  				return &v.state
   295  			case 1:
   296  				return &v.sizeCache
   297  			case 2:
   298  				return &v.unknownFields
   299  			default:
   300  				return nil
   301  			}
   302  		}
   303  		file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   304  			switch v := v.(*ManageRunLongOpTask); i {
   305  			case 0:
   306  				return &v.state
   307  			case 1:
   308  				return &v.sizeCache
   309  			case 2:
   310  				return &v.unknownFields
   311  			default:
   312  				return nil
   313  			}
   314  		}
   315  	}
   316  	type x struct{}
   317  	out := protoimpl.TypeBuilder{
   318  		File: protoimpl.DescBuilder{
   319  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   320  			RawDescriptor: file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_rawDesc,
   321  			NumEnums:      0,
   322  			NumMessages:   3,
   323  			NumExtensions: 0,
   324  			NumServices:   0,
   325  		},
   326  		GoTypes:           file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_goTypes,
   327  		DependencyIndexes: file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_depIdxs,
   328  		MessageInfos:      file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_msgTypes,
   329  	}.Build()
   330  	File_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto = out.File
   331  	file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_rawDesc = nil
   332  	file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_goTypes = nil
   333  	file_go_chromium_org_luci_cv_internal_run_eventpb_tasks_proto_depIdxs = nil
   334  }