go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/cv/internal/gerrit/poller/task.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/gerrit/poller/task.proto
    20  
    21  package poller
    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  // PollGerritTask performs next poll for a given LUCI Project.
    39  //
    40  // Queue: "poll-gerrit".
    41  type PollGerritTask struct {
    42  	state         protoimpl.MessageState
    43  	sizeCache     protoimpl.SizeCache
    44  	unknownFields protoimpl.UnknownFields
    45  
    46  	LuciProject string `protobuf:"bytes,1,opt,name=luci_project,json=luciProject,proto3" json:"luci_project,omitempty"`
    47  	// eta is when this task is supposed to run.
    48  	Eta *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=eta,proto3" json:"eta,omitempty"`
    49  }
    50  
    51  func (x *PollGerritTask) Reset() {
    52  	*x = PollGerritTask{}
    53  	if protoimpl.UnsafeEnabled {
    54  		mi := &file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_msgTypes[0]
    55  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    56  		ms.StoreMessageInfo(mi)
    57  	}
    58  }
    59  
    60  func (x *PollGerritTask) String() string {
    61  	return protoimpl.X.MessageStringOf(x)
    62  }
    63  
    64  func (*PollGerritTask) ProtoMessage() {}
    65  
    66  func (x *PollGerritTask) ProtoReflect() protoreflect.Message {
    67  	mi := &file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_msgTypes[0]
    68  	if protoimpl.UnsafeEnabled && x != nil {
    69  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    70  		if ms.LoadMessageInfo() == nil {
    71  			ms.StoreMessageInfo(mi)
    72  		}
    73  		return ms
    74  	}
    75  	return mi.MessageOf(x)
    76  }
    77  
    78  // Deprecated: Use PollGerritTask.ProtoReflect.Descriptor instead.
    79  func (*PollGerritTask) Descriptor() ([]byte, []int) {
    80  	return file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_rawDescGZIP(), []int{0}
    81  }
    82  
    83  func (x *PollGerritTask) GetLuciProject() string {
    84  	if x != nil {
    85  		return x.LuciProject
    86  	}
    87  	return ""
    88  }
    89  
    90  func (x *PollGerritTask) GetEta() *timestamppb.Timestamp {
    91  	if x != nil {
    92  		return x.Eta
    93  	}
    94  	return nil
    95  }
    96  
    97  var File_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto protoreflect.FileDescriptor
    98  
    99  var file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_rawDesc = []byte{
   100  	0x0a, 0x39, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   101  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
   102  	0x61, 0x6c, 0x2f, 0x67, 0x65, 0x72, 0x72, 0x69, 0x74, 0x2f, 0x70, 0x6f, 0x6c, 0x6c, 0x65, 0x72,
   103  	0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x76, 0x2e,
   104  	0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x67, 0x65, 0x72, 0x72, 0x69, 0x74, 0x2e,
   105  	0x70, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
   106  	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
   107  	0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x61, 0x0a, 0x0e, 0x50, 0x6f, 0x6c, 0x6c, 0x47,
   108  	0x65, 0x72, 0x72, 0x69, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x75, 0x63,
   109  	0x69, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
   110  	0x0b, 0x6c, 0x75, 0x63, 0x69, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x2c, 0x0a, 0x03,
   111  	0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   112  	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
   113  	0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x03, 0x65, 0x74, 0x61, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x6f,
   114  	0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75,
   115  	0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x67,
   116  	0x65, 0x72, 0x72, 0x69, 0x74, 0x2f, 0x70, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x3b, 0x70, 0x6f, 0x6c,
   117  	0x6c, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   118  }
   119  
   120  var (
   121  	file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_rawDescOnce sync.Once
   122  	file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_rawDescData = file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_rawDesc
   123  )
   124  
   125  func file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_rawDescGZIP() []byte {
   126  	file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_rawDescOnce.Do(func() {
   127  		file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_rawDescData)
   128  	})
   129  	return file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_rawDescData
   130  }
   131  
   132  var file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   133  var file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_goTypes = []interface{}{
   134  	(*PollGerritTask)(nil),        // 0: cv.internal.gerrit.poller.PollGerritTask
   135  	(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
   136  }
   137  var file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_depIdxs = []int32{
   138  	1, // 0: cv.internal.gerrit.poller.PollGerritTask.eta:type_name -> google.protobuf.Timestamp
   139  	1, // [1:1] is the sub-list for method output_type
   140  	1, // [1:1] is the sub-list for method input_type
   141  	1, // [1:1] is the sub-list for extension type_name
   142  	1, // [1:1] is the sub-list for extension extendee
   143  	0, // [0:1] is the sub-list for field type_name
   144  }
   145  
   146  func init() { file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_init() }
   147  func file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_init() {
   148  	if File_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto != nil {
   149  		return
   150  	}
   151  	if !protoimpl.UnsafeEnabled {
   152  		file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   153  			switch v := v.(*PollGerritTask); i {
   154  			case 0:
   155  				return &v.state
   156  			case 1:
   157  				return &v.sizeCache
   158  			case 2:
   159  				return &v.unknownFields
   160  			default:
   161  				return nil
   162  			}
   163  		}
   164  	}
   165  	type x struct{}
   166  	out := protoimpl.TypeBuilder{
   167  		File: protoimpl.DescBuilder{
   168  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   169  			RawDescriptor: file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_rawDesc,
   170  			NumEnums:      0,
   171  			NumMessages:   1,
   172  			NumExtensions: 0,
   173  			NumServices:   0,
   174  		},
   175  		GoTypes:           file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_goTypes,
   176  		DependencyIndexes: file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_depIdxs,
   177  		MessageInfos:      file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_msgTypes,
   178  	}.Build()
   179  	File_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto = out.File
   180  	file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_rawDesc = nil
   181  	file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_goTypes = nil
   182  	file_go_chromium_org_luci_cv_internal_gerrit_poller_task_proto_depIdxs = nil
   183  }