1// 2// Copyright (C) 2024 The Android Open-Source Project 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// Code generated by protoc-gen-go. DO NOT EDIT. 17// versions: 18// protoc-gen-go v1.33.0 19// protoc v3.21.12 20// source: file_list.proto 21 22package find_input_delta_proto 23 24import ( 25 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 26 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 27 reflect "reflect" 28 sync "sync" 29) 30 31const ( 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 38type FieldNumbers int32 39 40const ( 41 FieldNumbers_FIELD_NUMBERS_UNSPECIFIED FieldNumbers = 0 42 FieldNumbers_FIELD_NUMBERS_FILE_LIST FieldNumbers = 1 43) 44 45// Enum value maps for FieldNumbers. 46var ( 47 FieldNumbers_name = map[int32]string{ 48 0: "FIELD_NUMBERS_UNSPECIFIED", 49 1: "FIELD_NUMBERS_FILE_LIST", 50 } 51 FieldNumbers_value = map[string]int32{ 52 "FIELD_NUMBERS_UNSPECIFIED": 0, 53 "FIELD_NUMBERS_FILE_LIST": 1, 54 } 55) 56 57func (x FieldNumbers) Enum() *FieldNumbers { 58 p := new(FieldNumbers) 59 *p = x 60 return p 61} 62 63func (x FieldNumbers) String() string { 64 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 65} 66 67func (FieldNumbers) Descriptor() protoreflect.EnumDescriptor { 68 return file_file_list_proto_enumTypes[0].Descriptor() 69} 70 71func (FieldNumbers) Type() protoreflect.EnumType { 72 return &file_file_list_proto_enumTypes[0] 73} 74 75func (x FieldNumbers) Number() protoreflect.EnumNumber { 76 return protoreflect.EnumNumber(x) 77} 78 79// Deprecated: Do not use. 80func (x *FieldNumbers) UnmarshalJSON(b []byte) error { 81 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 82 if err != nil { 83 return err 84 } 85 *x = FieldNumbers(num) 86 return nil 87} 88 89// Deprecated: Use FieldNumbers.Descriptor instead. 90func (FieldNumbers) EnumDescriptor() ([]byte, []int) { 91 return file_file_list_proto_rawDescGZIP(), []int{0} 92} 93 94type FileList struct { 95 state protoimpl.MessageState 96 sizeCache protoimpl.SizeCache 97 unknownFields protoimpl.UnknownFields 98 99 // The name of the file. 100 // In the outermost message, this is the name of the Ninja target. 101 // When used in `changes`, this is the name of the changed file. 102 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 103 // The added files. 104 Additions []string `protobuf:"bytes,2,rep,name=additions" json:"additions,omitempty"` 105 // The changed files. 106 Changes []*FileList `protobuf:"bytes,3,rep,name=changes" json:"changes,omitempty"` 107 // The deleted files. 108 Deletions []string `protobuf:"bytes,4,rep,name=deletions" json:"deletions,omitempty"` 109 // Count of files added/changed/deleted. 110 TotalDelta *uint32 `protobuf:"varint,5,opt,name=total_delta,json=totalDelta" json:"total_delta,omitempty"` 111 // Counts by extension. 112 Counts []*FileCount `protobuf:"bytes,6,rep,name=counts" json:"counts,omitempty"` 113} 114 115func (x *FileList) Reset() { 116 *x = FileList{} 117 if protoimpl.UnsafeEnabled { 118 mi := &file_file_list_proto_msgTypes[0] 119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 120 ms.StoreMessageInfo(mi) 121 } 122} 123 124func (x *FileList) String() string { 125 return protoimpl.X.MessageStringOf(x) 126} 127 128func (*FileList) ProtoMessage() {} 129 130func (x *FileList) ProtoReflect() protoreflect.Message { 131 mi := &file_file_list_proto_msgTypes[0] 132 if protoimpl.UnsafeEnabled && x != nil { 133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 134 if ms.LoadMessageInfo() == nil { 135 ms.StoreMessageInfo(mi) 136 } 137 return ms 138 } 139 return mi.MessageOf(x) 140} 141 142// Deprecated: Use FileList.ProtoReflect.Descriptor instead. 143func (*FileList) Descriptor() ([]byte, []int) { 144 return file_file_list_proto_rawDescGZIP(), []int{0} 145} 146 147func (x *FileList) GetName() string { 148 if x != nil && x.Name != nil { 149 return *x.Name 150 } 151 return "" 152} 153 154func (x *FileList) GetAdditions() []string { 155 if x != nil { 156 return x.Additions 157 } 158 return nil 159} 160 161func (x *FileList) GetChanges() []*FileList { 162 if x != nil { 163 return x.Changes 164 } 165 return nil 166} 167 168func (x *FileList) GetDeletions() []string { 169 if x != nil { 170 return x.Deletions 171 } 172 return nil 173} 174 175func (x *FileList) GetTotalDelta() uint32 { 176 if x != nil && x.TotalDelta != nil { 177 return *x.TotalDelta 178 } 179 return 0 180} 181 182func (x *FileList) GetCounts() []*FileCount { 183 if x != nil { 184 return x.Counts 185 } 186 return nil 187} 188 189type FileCount struct { 190 state protoimpl.MessageState 191 sizeCache protoimpl.SizeCache 192 unknownFields protoimpl.UnknownFields 193 194 // The file extension 195 Extension *string `protobuf:"bytes,1,opt,name=extension" json:"extension,omitempty"` 196 // Number of added files with this extension. 197 Additions *uint32 `protobuf:"varint,2,opt,name=additions" json:"additions,omitempty"` 198 // Number of modified files with this extension. 199 Modifications *uint32 `protobuf:"varint,3,opt,name=modifications" json:"modifications,omitempty"` 200 // Number of deleted files with this extension. 201 Deletions *uint32 `protobuf:"varint,4,opt,name=deletions" json:"deletions,omitempty"` 202} 203 204func (x *FileCount) Reset() { 205 *x = FileCount{} 206 if protoimpl.UnsafeEnabled { 207 mi := &file_file_list_proto_msgTypes[1] 208 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 209 ms.StoreMessageInfo(mi) 210 } 211} 212 213func (x *FileCount) String() string { 214 return protoimpl.X.MessageStringOf(x) 215} 216 217func (*FileCount) ProtoMessage() {} 218 219func (x *FileCount) ProtoReflect() protoreflect.Message { 220 mi := &file_file_list_proto_msgTypes[1] 221 if protoimpl.UnsafeEnabled && x != nil { 222 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 223 if ms.LoadMessageInfo() == nil { 224 ms.StoreMessageInfo(mi) 225 } 226 return ms 227 } 228 return mi.MessageOf(x) 229} 230 231// Deprecated: Use FileCount.ProtoReflect.Descriptor instead. 232func (*FileCount) Descriptor() ([]byte, []int) { 233 return file_file_list_proto_rawDescGZIP(), []int{1} 234} 235 236func (x *FileCount) GetExtension() string { 237 if x != nil && x.Extension != nil { 238 return *x.Extension 239 } 240 return "" 241} 242 243func (x *FileCount) GetAdditions() uint32 { 244 if x != nil && x.Additions != nil { 245 return *x.Additions 246 } 247 return 0 248} 249 250func (x *FileCount) GetModifications() uint32 { 251 if x != nil && x.Modifications != nil { 252 return *x.Modifications 253 } 254 return 0 255} 256 257func (x *FileCount) GetDeletions() uint32 { 258 if x != nil && x.Deletions != nil { 259 return *x.Deletions 260 } 261 return 0 262} 263 264var File_file_list_proto protoreflect.FileDescriptor 265 266var file_file_list_proto_rawDesc = []byte{ 267 0x0a, 0x0f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 268 0x6f, 0x12, 0x1e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x5f, 269 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x5f, 0x70, 0x72, 0x6f, 0x74, 270 0x6f, 0x22, 0x82, 0x02, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x12, 271 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 272 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 273 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 274 0x12, 0x42, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 275 0x0b, 0x32, 0x28, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2e, 0x66, 0x69, 0x6e, 0x64, 276 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x5f, 0x70, 0x72, 0x6f, 277 0x74, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x07, 0x63, 0x68, 0x61, 278 0x6e, 0x67, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 279 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 280 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x6c, 0x74, 281 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x65, 282 0x6c, 0x74, 0x61, 0x12, 0x41, 0x0a, 0x06, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 283 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2e, 0x66, 0x69, 284 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x5f, 0x70, 285 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 286 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x8b, 0x01, 0x0a, 0x09, 0x46, 0x69, 0x6c, 0x65, 0x43, 287 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 288 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 289 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 290 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 291 0x12, 0x24, 0x0a, 0x0d, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 292 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x63, 293 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 294 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 295 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x4a, 0x0a, 0x0c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 296 0x62, 0x65, 0x72, 0x73, 0x12, 0x1d, 0x0a, 0x19, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x4e, 0x55, 297 0x4d, 0x42, 0x45, 0x52, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 298 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x4e, 0x55, 0x4d, 299 0x42, 0x45, 0x52, 0x53, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x01, 300 0x42, 0x3b, 0x5a, 0x39, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2f, 0x73, 0x6f, 0x6f, 0x6e, 301 0x67, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x66, 0x69, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 302 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x70, 0x75, 303 0x74, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 304} 305 306var ( 307 file_file_list_proto_rawDescOnce sync.Once 308 file_file_list_proto_rawDescData = file_file_list_proto_rawDesc 309) 310 311func file_file_list_proto_rawDescGZIP() []byte { 312 file_file_list_proto_rawDescOnce.Do(func() { 313 file_file_list_proto_rawDescData = protoimpl.X.CompressGZIP(file_file_list_proto_rawDescData) 314 }) 315 return file_file_list_proto_rawDescData 316} 317 318var file_file_list_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 319var file_file_list_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 320var file_file_list_proto_goTypes = []interface{}{ 321 (FieldNumbers)(0), // 0: android.find_input_delta_proto.FieldNumbers 322 (*FileList)(nil), // 1: android.find_input_delta_proto.FileList 323 (*FileCount)(nil), // 2: android.find_input_delta_proto.FileCount 324} 325var file_file_list_proto_depIdxs = []int32{ 326 1, // 0: android.find_input_delta_proto.FileList.changes:type_name -> android.find_input_delta_proto.FileList 327 2, // 1: android.find_input_delta_proto.FileList.counts:type_name -> android.find_input_delta_proto.FileCount 328 2, // [2:2] is the sub-list for method output_type 329 2, // [2:2] is the sub-list for method input_type 330 2, // [2:2] is the sub-list for extension type_name 331 2, // [2:2] is the sub-list for extension extendee 332 0, // [0:2] is the sub-list for field type_name 333} 334 335func init() { file_file_list_proto_init() } 336func file_file_list_proto_init() { 337 if File_file_list_proto != nil { 338 return 339 } 340 if !protoimpl.UnsafeEnabled { 341 file_file_list_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 342 switch v := v.(*FileList); i { 343 case 0: 344 return &v.state 345 case 1: 346 return &v.sizeCache 347 case 2: 348 return &v.unknownFields 349 default: 350 return nil 351 } 352 } 353 file_file_list_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 354 switch v := v.(*FileCount); i { 355 case 0: 356 return &v.state 357 case 1: 358 return &v.sizeCache 359 case 2: 360 return &v.unknownFields 361 default: 362 return nil 363 } 364 } 365 } 366 type x struct{} 367 out := protoimpl.TypeBuilder{ 368 File: protoimpl.DescBuilder{ 369 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 370 RawDescriptor: file_file_list_proto_rawDesc, 371 NumEnums: 1, 372 NumMessages: 2, 373 NumExtensions: 0, 374 NumServices: 0, 375 }, 376 GoTypes: file_file_list_proto_goTypes, 377 DependencyIndexes: file_file_list_proto_depIdxs, 378 EnumInfos: file_file_list_proto_enumTypes, 379 MessageInfos: file_file_list_proto_msgTypes, 380 }.Build() 381 File_file_list_proto = out.File 382 file_file_list_proto_rawDesc = nil 383 file_file_list_proto_goTypes = nil 384 file_file_list_proto_depIdxs = nil 385} 386