go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/cv/internal/gerrit/poller/storage.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/storage.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 // QueryState represents execution of a single Gerrit query over time. 39 // 40 // Exactly one of (or_projects, common_project_prefix) must be specified. 41 // Not using oneof to avoid wrapping or_projects in a message as oneof doesn't 42 // support repeated fields. 43 type QueryState struct { 44 state protoimpl.MessageState 45 sizeCache protoimpl.SizeCache 46 unknownFields protoimpl.UnknownFields 47 48 // Host is Gerrit host. 49 Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` 50 // Enumerated Gerrit projects, e.g. ["infra/infra", "infra/luci/luci-go"]. 51 OrProjects []string `protobuf:"bytes,2,rep,name=or_projects,json=orProjects,proto3" json:"or_projects,omitempty"` 52 // Common Gerrit project prefix, e.g. "chromiumos/". 53 CommonProjectPrefix string `protobuf:"bytes,3,opt,name=common_project_prefix,json=commonProjectPrefix,proto3" json:"common_project_prefix,omitempty"` 54 // When the last full poll was started. 55 LastFullTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=last_full_time,json=lastFullTime,proto3" json:"last_full_time,omitempty"` 56 // When the last incremental poll was started. 57 LastIncrTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=last_incr_time,json=lastIncrTime,proto3" json:"last_incr_time,omitempty"` 58 // Changes are changes which were last observed by the query execution. 59 // 60 // These are not CL IDs, but Gerrit change numbers. 61 // 62 // The full poll resets these. 63 // The incremental poll adds newly discovered CLs. 64 // 65 // Sorted. 66 Changes []int64 `protobuf:"varint,13,rep,packed,name=changes,proto3" json:"changes,omitempty"` 67 } 68 69 func (x *QueryState) Reset() { 70 *x = QueryState{} 71 if protoimpl.UnsafeEnabled { 72 mi := &file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_msgTypes[0] 73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 74 ms.StoreMessageInfo(mi) 75 } 76 } 77 78 func (x *QueryState) String() string { 79 return protoimpl.X.MessageStringOf(x) 80 } 81 82 func (*QueryState) ProtoMessage() {} 83 84 func (x *QueryState) ProtoReflect() protoreflect.Message { 85 mi := &file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_msgTypes[0] 86 if protoimpl.UnsafeEnabled && x != nil { 87 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 88 if ms.LoadMessageInfo() == nil { 89 ms.StoreMessageInfo(mi) 90 } 91 return ms 92 } 93 return mi.MessageOf(x) 94 } 95 96 // Deprecated: Use QueryState.ProtoReflect.Descriptor instead. 97 func (*QueryState) Descriptor() ([]byte, []int) { 98 return file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_rawDescGZIP(), []int{0} 99 } 100 101 func (x *QueryState) GetHost() string { 102 if x != nil { 103 return x.Host 104 } 105 return "" 106 } 107 108 func (x *QueryState) GetOrProjects() []string { 109 if x != nil { 110 return x.OrProjects 111 } 112 return nil 113 } 114 115 func (x *QueryState) GetCommonProjectPrefix() string { 116 if x != nil { 117 return x.CommonProjectPrefix 118 } 119 return "" 120 } 121 122 func (x *QueryState) GetLastFullTime() *timestamppb.Timestamp { 123 if x != nil { 124 return x.LastFullTime 125 } 126 return nil 127 } 128 129 func (x *QueryState) GetLastIncrTime() *timestamppb.Timestamp { 130 if x != nil { 131 return x.LastIncrTime 132 } 133 return nil 134 } 135 136 func (x *QueryState) GetChanges() []int64 { 137 if x != nil { 138 return x.Changes 139 } 140 return nil 141 } 142 143 // QueryStates exists to reference several QueryStates as a single property in a 144 // Datastore entity. 145 type QueryStates struct { 146 state protoimpl.MessageState 147 sizeCache protoimpl.SizeCache 148 unknownFields protoimpl.UnknownFields 149 150 States []*QueryState `protobuf:"bytes,1,rep,name=states,proto3" json:"states,omitempty"` 151 } 152 153 func (x *QueryStates) Reset() { 154 *x = QueryStates{} 155 if protoimpl.UnsafeEnabled { 156 mi := &file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_msgTypes[1] 157 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 158 ms.StoreMessageInfo(mi) 159 } 160 } 161 162 func (x *QueryStates) String() string { 163 return protoimpl.X.MessageStringOf(x) 164 } 165 166 func (*QueryStates) ProtoMessage() {} 167 168 func (x *QueryStates) ProtoReflect() protoreflect.Message { 169 mi := &file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_msgTypes[1] 170 if protoimpl.UnsafeEnabled && x != nil { 171 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 172 if ms.LoadMessageInfo() == nil { 173 ms.StoreMessageInfo(mi) 174 } 175 return ms 176 } 177 return mi.MessageOf(x) 178 } 179 180 // Deprecated: Use QueryStates.ProtoReflect.Descriptor instead. 181 func (*QueryStates) Descriptor() ([]byte, []int) { 182 return file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_rawDescGZIP(), []int{1} 183 } 184 185 func (x *QueryStates) GetStates() []*QueryState { 186 if x != nil { 187 return x.States 188 } 189 return nil 190 } 191 192 var File_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto protoreflect.FileDescriptor 193 194 var file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_rawDesc = []byte{ 195 0x0a, 0x3c, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 196 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 197 0x61, 0x6c, 0x2f, 0x67, 0x65, 0x72, 0x72, 0x69, 0x74, 0x2f, 0x70, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 198 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 199 0x63, 0x76, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x67, 0x65, 0x72, 0x72, 200 0x69, 0x74, 0x2e, 0x70, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 201 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 202 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x93, 0x02, 0x0a, 0x0a, 0x51, 203 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 204 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x1f, 0x0a, 205 0x0b, 0x6f, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 206 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x32, 207 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 208 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x63, 209 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x65, 0x66, 210 0x69, 0x78, 0x12, 0x40, 0x0a, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 211 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 212 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 213 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x46, 0x75, 0x6c, 0x6c, 214 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x63, 215 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 216 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 217 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x49, 0x6e, 218 0x63, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 219 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x03, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 220 0x22, 0x4c, 0x0a, 0x0b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x12, 221 0x3d, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 222 0x25, 0x2e, 0x63, 0x76, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x67, 0x65, 223 0x72, 0x72, 0x69, 0x74, 0x2e, 0x70, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 224 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x42, 0x37, 225 0x5a, 0x35, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 226 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 227 0x61, 0x6c, 0x2f, 0x67, 0x65, 0x72, 0x72, 0x69, 0x74, 0x2f, 0x70, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 228 0x3b, 0x70, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 229 } 230 231 var ( 232 file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_rawDescOnce sync.Once 233 file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_rawDescData = file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_rawDesc 234 ) 235 236 func file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_rawDescGZIP() []byte { 237 file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_rawDescOnce.Do(func() { 238 file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_rawDescData) 239 }) 240 return file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_rawDescData 241 } 242 243 var file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 244 var file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_goTypes = []interface{}{ 245 (*QueryState)(nil), // 0: cv.internal.gerrit.poller.QueryState 246 (*QueryStates)(nil), // 1: cv.internal.gerrit.poller.QueryStates 247 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp 248 } 249 var file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_depIdxs = []int32{ 250 2, // 0: cv.internal.gerrit.poller.QueryState.last_full_time:type_name -> google.protobuf.Timestamp 251 2, // 1: cv.internal.gerrit.poller.QueryState.last_incr_time:type_name -> google.protobuf.Timestamp 252 0, // 2: cv.internal.gerrit.poller.QueryStates.states:type_name -> cv.internal.gerrit.poller.QueryState 253 3, // [3:3] is the sub-list for method output_type 254 3, // [3:3] is the sub-list for method input_type 255 3, // [3:3] is the sub-list for extension type_name 256 3, // [3:3] is the sub-list for extension extendee 257 0, // [0:3] is the sub-list for field type_name 258 } 259 260 func init() { file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_init() } 261 func file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_init() { 262 if File_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto != nil { 263 return 264 } 265 if !protoimpl.UnsafeEnabled { 266 file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 267 switch v := v.(*QueryState); 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 file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 279 switch v := v.(*QueryStates); i { 280 case 0: 281 return &v.state 282 case 1: 283 return &v.sizeCache 284 case 2: 285 return &v.unknownFields 286 default: 287 return nil 288 } 289 } 290 } 291 type x struct{} 292 out := protoimpl.TypeBuilder{ 293 File: protoimpl.DescBuilder{ 294 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 295 RawDescriptor: file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_rawDesc, 296 NumEnums: 0, 297 NumMessages: 2, 298 NumExtensions: 0, 299 NumServices: 0, 300 }, 301 GoTypes: file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_goTypes, 302 DependencyIndexes: file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_depIdxs, 303 MessageInfos: file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_msgTypes, 304 }.Build() 305 File_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto = out.File 306 file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_rawDesc = nil 307 file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_goTypes = nil 308 file_go_chromium_org_luci_cv_internal_gerrit_poller_storage_proto_depIdxs = nil 309 }