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

     1  // Copyright 2024 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/retention/tasks.proto
    20  
    21  package retention
    22  
    23  import (
    24  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    25  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    26  	reflect "reflect"
    27  	sync "sync"
    28  )
    29  
    30  const (
    31  	// Verify that this generated code is sufficiently up-to-date.
    32  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    33  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    35  )
    36  
    37  // WipeoutRunsTask wipes out given Runs and its descendent entities that
    38  // are out of the retention policy.
    39  //
    40  // Queue: "data-retention".
    41  type WipeoutRunsTask struct {
    42  	state         protoimpl.MessageState
    43  	sizeCache     protoimpl.SizeCache
    44  	unknownFields protoimpl.UnknownFields
    45  
    46  	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
    47  }
    48  
    49  func (x *WipeoutRunsTask) Reset() {
    50  	*x = WipeoutRunsTask{}
    51  	if protoimpl.UnsafeEnabled {
    52  		mi := &file_go_chromium_org_luci_cv_internal_retention_tasks_proto_msgTypes[0]
    53  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    54  		ms.StoreMessageInfo(mi)
    55  	}
    56  }
    57  
    58  func (x *WipeoutRunsTask) String() string {
    59  	return protoimpl.X.MessageStringOf(x)
    60  }
    61  
    62  func (*WipeoutRunsTask) ProtoMessage() {}
    63  
    64  func (x *WipeoutRunsTask) ProtoReflect() protoreflect.Message {
    65  	mi := &file_go_chromium_org_luci_cv_internal_retention_tasks_proto_msgTypes[0]
    66  	if protoimpl.UnsafeEnabled && x != nil {
    67  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    68  		if ms.LoadMessageInfo() == nil {
    69  			ms.StoreMessageInfo(mi)
    70  		}
    71  		return ms
    72  	}
    73  	return mi.MessageOf(x)
    74  }
    75  
    76  // Deprecated: Use WipeoutRunsTask.ProtoReflect.Descriptor instead.
    77  func (*WipeoutRunsTask) Descriptor() ([]byte, []int) {
    78  	return file_go_chromium_org_luci_cv_internal_retention_tasks_proto_rawDescGZIP(), []int{0}
    79  }
    80  
    81  func (x *WipeoutRunsTask) GetIds() []string {
    82  	if x != nil {
    83  		return x.Ids
    84  	}
    85  	return nil
    86  }
    87  
    88  // WipeoutCLsTask wipes out given CLs that are out of the retention policy.
    89  //
    90  // Queue: "data-retention".
    91  type WipeoutCLsTask struct {
    92  	state         protoimpl.MessageState
    93  	sizeCache     protoimpl.SizeCache
    94  	unknownFields protoimpl.UnknownFields
    95  
    96  	Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
    97  }
    98  
    99  func (x *WipeoutCLsTask) Reset() {
   100  	*x = WipeoutCLsTask{}
   101  	if protoimpl.UnsafeEnabled {
   102  		mi := &file_go_chromium_org_luci_cv_internal_retention_tasks_proto_msgTypes[1]
   103  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   104  		ms.StoreMessageInfo(mi)
   105  	}
   106  }
   107  
   108  func (x *WipeoutCLsTask) String() string {
   109  	return protoimpl.X.MessageStringOf(x)
   110  }
   111  
   112  func (*WipeoutCLsTask) ProtoMessage() {}
   113  
   114  func (x *WipeoutCLsTask) ProtoReflect() protoreflect.Message {
   115  	mi := &file_go_chromium_org_luci_cv_internal_retention_tasks_proto_msgTypes[1]
   116  	if protoimpl.UnsafeEnabled && x != nil {
   117  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   118  		if ms.LoadMessageInfo() == nil {
   119  			ms.StoreMessageInfo(mi)
   120  		}
   121  		return ms
   122  	}
   123  	return mi.MessageOf(x)
   124  }
   125  
   126  // Deprecated: Use WipeoutCLsTask.ProtoReflect.Descriptor instead.
   127  func (*WipeoutCLsTask) Descriptor() ([]byte, []int) {
   128  	return file_go_chromium_org_luci_cv_internal_retention_tasks_proto_rawDescGZIP(), []int{1}
   129  }
   130  
   131  func (x *WipeoutCLsTask) GetIds() []int64 {
   132  	if x != nil {
   133  		return x.Ids
   134  	}
   135  	return nil
   136  }
   137  
   138  // WipeoutTryjobsTask wipes out given tryjobs that are out of the retention
   139  // policy.
   140  //
   141  // Queue: "data-retention".
   142  type WipeoutTryjobsTask struct {
   143  	state         protoimpl.MessageState
   144  	sizeCache     protoimpl.SizeCache
   145  	unknownFields protoimpl.UnknownFields
   146  
   147  	Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
   148  }
   149  
   150  func (x *WipeoutTryjobsTask) Reset() {
   151  	*x = WipeoutTryjobsTask{}
   152  	if protoimpl.UnsafeEnabled {
   153  		mi := &file_go_chromium_org_luci_cv_internal_retention_tasks_proto_msgTypes[2]
   154  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   155  		ms.StoreMessageInfo(mi)
   156  	}
   157  }
   158  
   159  func (x *WipeoutTryjobsTask) String() string {
   160  	return protoimpl.X.MessageStringOf(x)
   161  }
   162  
   163  func (*WipeoutTryjobsTask) ProtoMessage() {}
   164  
   165  func (x *WipeoutTryjobsTask) ProtoReflect() protoreflect.Message {
   166  	mi := &file_go_chromium_org_luci_cv_internal_retention_tasks_proto_msgTypes[2]
   167  	if protoimpl.UnsafeEnabled && x != nil {
   168  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   169  		if ms.LoadMessageInfo() == nil {
   170  			ms.StoreMessageInfo(mi)
   171  		}
   172  		return ms
   173  	}
   174  	return mi.MessageOf(x)
   175  }
   176  
   177  // Deprecated: Use WipeoutTryjobsTask.ProtoReflect.Descriptor instead.
   178  func (*WipeoutTryjobsTask) Descriptor() ([]byte, []int) {
   179  	return file_go_chromium_org_luci_cv_internal_retention_tasks_proto_rawDescGZIP(), []int{2}
   180  }
   181  
   182  func (x *WipeoutTryjobsTask) GetIds() []int64 {
   183  	if x != nil {
   184  		return x.Ids
   185  	}
   186  	return nil
   187  }
   188  
   189  var File_go_chromium_org_luci_cv_internal_retention_tasks_proto protoreflect.FileDescriptor
   190  
   191  var file_go_chromium_org_luci_cv_internal_retention_tasks_proto_rawDesc = []byte{
   192  	0x0a, 0x36, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   193  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
   194  	0x61, 0x6c, 0x2f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x74, 0x61, 0x73,
   195  	0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x63, 0x76, 0x2e, 0x69, 0x6e, 0x74,
   196  	0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x22,
   197  	0x23, 0x0a, 0x0f, 0x57, 0x69, 0x70, 0x65, 0x6f, 0x75, 0x74, 0x52, 0x75, 0x6e, 0x73, 0x54, 0x61,
   198  	0x73, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52,
   199  	0x03, 0x69, 0x64, 0x73, 0x22, 0x22, 0x0a, 0x0e, 0x57, 0x69, 0x70, 0x65, 0x6f, 0x75, 0x74, 0x43,
   200  	0x4c, 0x73, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20,
   201  	0x03, 0x28, 0x03, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x26, 0x0a, 0x12, 0x57, 0x69, 0x70, 0x65,
   202  	0x6f, 0x75, 0x74, 0x54, 0x72, 0x79, 0x6a, 0x6f, 0x62, 0x73, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x10,
   203  	0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x03, 0x69, 0x64, 0x73,
   204  	0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e,
   205  	0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x69, 0x6e, 0x74, 0x65,
   206  	0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x72,
   207  	0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   208  }
   209  
   210  var (
   211  	file_go_chromium_org_luci_cv_internal_retention_tasks_proto_rawDescOnce sync.Once
   212  	file_go_chromium_org_luci_cv_internal_retention_tasks_proto_rawDescData = file_go_chromium_org_luci_cv_internal_retention_tasks_proto_rawDesc
   213  )
   214  
   215  func file_go_chromium_org_luci_cv_internal_retention_tasks_proto_rawDescGZIP() []byte {
   216  	file_go_chromium_org_luci_cv_internal_retention_tasks_proto_rawDescOnce.Do(func() {
   217  		file_go_chromium_org_luci_cv_internal_retention_tasks_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_cv_internal_retention_tasks_proto_rawDescData)
   218  	})
   219  	return file_go_chromium_org_luci_cv_internal_retention_tasks_proto_rawDescData
   220  }
   221  
   222  var file_go_chromium_org_luci_cv_internal_retention_tasks_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   223  var file_go_chromium_org_luci_cv_internal_retention_tasks_proto_goTypes = []interface{}{
   224  	(*WipeoutRunsTask)(nil),    // 0: cv.internal.retention.WipeoutRunsTask
   225  	(*WipeoutCLsTask)(nil),     // 1: cv.internal.retention.WipeoutCLsTask
   226  	(*WipeoutTryjobsTask)(nil), // 2: cv.internal.retention.WipeoutTryjobsTask
   227  }
   228  var file_go_chromium_org_luci_cv_internal_retention_tasks_proto_depIdxs = []int32{
   229  	0, // [0:0] is the sub-list for method output_type
   230  	0, // [0:0] is the sub-list for method input_type
   231  	0, // [0:0] is the sub-list for extension type_name
   232  	0, // [0:0] is the sub-list for extension extendee
   233  	0, // [0:0] is the sub-list for field type_name
   234  }
   235  
   236  func init() { file_go_chromium_org_luci_cv_internal_retention_tasks_proto_init() }
   237  func file_go_chromium_org_luci_cv_internal_retention_tasks_proto_init() {
   238  	if File_go_chromium_org_luci_cv_internal_retention_tasks_proto != nil {
   239  		return
   240  	}
   241  	if !protoimpl.UnsafeEnabled {
   242  		file_go_chromium_org_luci_cv_internal_retention_tasks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   243  			switch v := v.(*WipeoutRunsTask); i {
   244  			case 0:
   245  				return &v.state
   246  			case 1:
   247  				return &v.sizeCache
   248  			case 2:
   249  				return &v.unknownFields
   250  			default:
   251  				return nil
   252  			}
   253  		}
   254  		file_go_chromium_org_luci_cv_internal_retention_tasks_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   255  			switch v := v.(*WipeoutCLsTask); i {
   256  			case 0:
   257  				return &v.state
   258  			case 1:
   259  				return &v.sizeCache
   260  			case 2:
   261  				return &v.unknownFields
   262  			default:
   263  				return nil
   264  			}
   265  		}
   266  		file_go_chromium_org_luci_cv_internal_retention_tasks_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   267  			switch v := v.(*WipeoutTryjobsTask); i {
   268  			case 0:
   269  				return &v.state
   270  			case 1:
   271  				return &v.sizeCache
   272  			case 2:
   273  				return &v.unknownFields
   274  			default:
   275  				return nil
   276  			}
   277  		}
   278  	}
   279  	type x struct{}
   280  	out := protoimpl.TypeBuilder{
   281  		File: protoimpl.DescBuilder{
   282  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   283  			RawDescriptor: file_go_chromium_org_luci_cv_internal_retention_tasks_proto_rawDesc,
   284  			NumEnums:      0,
   285  			NumMessages:   3,
   286  			NumExtensions: 0,
   287  			NumServices:   0,
   288  		},
   289  		GoTypes:           file_go_chromium_org_luci_cv_internal_retention_tasks_proto_goTypes,
   290  		DependencyIndexes: file_go_chromium_org_luci_cv_internal_retention_tasks_proto_depIdxs,
   291  		MessageInfos:      file_go_chromium_org_luci_cv_internal_retention_tasks_proto_msgTypes,
   292  	}.Build()
   293  	File_go_chromium_org_luci_cv_internal_retention_tasks_proto = out.File
   294  	file_go_chromium_org_luci_cv_internal_retention_tasks_proto_rawDesc = nil
   295  	file_go_chromium_org_luci_cv_internal_retention_tasks_proto_goTypes = nil
   296  	file_go_chromium_org_luci_cv_internal_retention_tasks_proto_depIdxs = nil
   297  }