1// Copyright 2022 Google Inc. All Rights Reserved. 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.27.1 18// protoc v3.9.1 19// source: symbols_map.proto 20 21package symbols_map_proto 22 23import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 reflect "reflect" 27 sync "sync" 28) 29 30const ( 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// Type is the valid types of a mapping. 38type Mapping_Type int32 39 40const ( 41 // ELF denotes a mapping from an elf build ID to an unstripped elf file. 42 Mapping_ELF Mapping_Type = 0 43 // R8 denotes a mapping from an R8 dictionary hash to an R8 dictionary. 44 Mapping_R8 Mapping_Type = 1 45) 46 47// Enum value maps for Mapping_Type. 48var ( 49 Mapping_Type_name = map[int32]string{ 50 0: "ELF", 51 1: "R8", 52 } 53 Mapping_Type_value = map[string]int32{ 54 "ELF": 0, 55 "R8": 1, 56 } 57) 58 59func (x Mapping_Type) Enum() *Mapping_Type { 60 p := new(Mapping_Type) 61 *p = x 62 return p 63} 64 65func (x Mapping_Type) String() string { 66 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 67} 68 69func (Mapping_Type) Descriptor() protoreflect.EnumDescriptor { 70 return file_symbols_map_proto_enumTypes[0].Descriptor() 71} 72 73func (Mapping_Type) Type() protoreflect.EnumType { 74 return &file_symbols_map_proto_enumTypes[0] 75} 76 77func (x Mapping_Type) Number() protoreflect.EnumNumber { 78 return protoreflect.EnumNumber(x) 79} 80 81// Deprecated: Do not use. 82func (x *Mapping_Type) UnmarshalJSON(b []byte) error { 83 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 84 if err != nil { 85 return err 86 } 87 *x = Mapping_Type(num) 88 return nil 89} 90 91// Deprecated: Use Mapping_Type.Descriptor instead. 92func (Mapping_Type) EnumDescriptor() ([]byte, []int) { 93 return file_symbols_map_proto_rawDescGZIP(), []int{0, 0} 94} 95 96type Mapping struct { 97 state protoimpl.MessageState 98 sizeCache protoimpl.SizeCache 99 unknownFields protoimpl.UnknownFields 100 101 // identifier is a unique identifier of a location, generally the hash of the file. For an 102 // elf file it is the elf build ID, for an R8 dictionary it is the hash from the comments in the 103 // top of the file. It may be empty if no hash could be extracted from the file. 104 Identifier *string `protobuf:"bytes,1,opt,name=identifier" json:"identifier,omitempty"` 105 // location is the path to the file with the given identifier. The location should be valid 106 // both on the local disk and in the distributed symbols.zip or proguard_dict.zip files. 107 Location *string `protobuf:"bytes,2,opt,name=location" json:"location,omitempty"` 108 // type is the type of the mapping, either ELF or R8. 109 Type *Mapping_Type `protobuf:"varint,3,opt,name=type,enum=symbols_map.Mapping_Type" json:"type,omitempty"` 110} 111 112func (x *Mapping) Reset() { 113 *x = Mapping{} 114 if protoimpl.UnsafeEnabled { 115 mi := &file_symbols_map_proto_msgTypes[0] 116 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 117 ms.StoreMessageInfo(mi) 118 } 119} 120 121func (x *Mapping) String() string { 122 return protoimpl.X.MessageStringOf(x) 123} 124 125func (*Mapping) ProtoMessage() {} 126 127func (x *Mapping) ProtoReflect() protoreflect.Message { 128 mi := &file_symbols_map_proto_msgTypes[0] 129 if protoimpl.UnsafeEnabled && x != nil { 130 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 131 if ms.LoadMessageInfo() == nil { 132 ms.StoreMessageInfo(mi) 133 } 134 return ms 135 } 136 return mi.MessageOf(x) 137} 138 139// Deprecated: Use Mapping.ProtoReflect.Descriptor instead. 140func (*Mapping) Descriptor() ([]byte, []int) { 141 return file_symbols_map_proto_rawDescGZIP(), []int{0} 142} 143 144func (x *Mapping) GetIdentifier() string { 145 if x != nil && x.Identifier != nil { 146 return *x.Identifier 147 } 148 return "" 149} 150 151func (x *Mapping) GetLocation() string { 152 if x != nil && x.Location != nil { 153 return *x.Location 154 } 155 return "" 156} 157 158func (x *Mapping) GetType() Mapping_Type { 159 if x != nil && x.Type != nil { 160 return *x.Type 161 } 162 return Mapping_ELF 163} 164 165type Mappings struct { 166 state protoimpl.MessageState 167 sizeCache protoimpl.SizeCache 168 unknownFields protoimpl.UnknownFields 169 170 Mappings []*Mapping `protobuf:"bytes,4,rep,name=mappings" json:"mappings,omitempty"` 171} 172 173func (x *Mappings) Reset() { 174 *x = Mappings{} 175 if protoimpl.UnsafeEnabled { 176 mi := &file_symbols_map_proto_msgTypes[1] 177 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 178 ms.StoreMessageInfo(mi) 179 } 180} 181 182func (x *Mappings) String() string { 183 return protoimpl.X.MessageStringOf(x) 184} 185 186func (*Mappings) ProtoMessage() {} 187 188func (x *Mappings) ProtoReflect() protoreflect.Message { 189 mi := &file_symbols_map_proto_msgTypes[1] 190 if protoimpl.UnsafeEnabled && x != nil { 191 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 192 if ms.LoadMessageInfo() == nil { 193 ms.StoreMessageInfo(mi) 194 } 195 return ms 196 } 197 return mi.MessageOf(x) 198} 199 200// Deprecated: Use Mappings.ProtoReflect.Descriptor instead. 201func (*Mappings) Descriptor() ([]byte, []int) { 202 return file_symbols_map_proto_rawDescGZIP(), []int{1} 203} 204 205func (x *Mappings) GetMappings() []*Mapping { 206 if x != nil { 207 return x.Mappings 208 } 209 return nil 210} 211 212var File_symbols_map_proto protoreflect.FileDescriptor 213 214var file_symbols_map_proto_rawDesc = []byte{ 215 0x0a, 0x11, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x5f, 0x6d, 0x61, 0x70, 0x2e, 0x70, 0x72, 216 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x5f, 0x6d, 0x61, 0x70, 217 0x22, 0x8d, 0x01, 0x0a, 0x07, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 218 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 219 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 220 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 221 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 222 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 223 0x5f, 0x6d, 0x61, 0x70, 0x2e, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x79, 0x70, 224 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x17, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 225 0x07, 0x0a, 0x03, 0x45, 0x4c, 0x46, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x38, 0x10, 0x01, 226 0x22, 0x3c, 0x0a, 0x08, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x30, 0x0a, 0x08, 227 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 228 0x2e, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x5f, 0x6d, 0x61, 0x70, 0x2e, 0x4d, 0x61, 0x70, 229 0x70, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x42, 0x31, 230 0x5a, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2f, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x2f, 231 0x63, 0x6d, 0x64, 0x2f, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x5f, 0x6d, 0x61, 0x70, 0x2f, 232 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x5f, 0x6d, 0x61, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x74, 233 0x6f, 234} 235 236var ( 237 file_symbols_map_proto_rawDescOnce sync.Once 238 file_symbols_map_proto_rawDescData = file_symbols_map_proto_rawDesc 239) 240 241func file_symbols_map_proto_rawDescGZIP() []byte { 242 file_symbols_map_proto_rawDescOnce.Do(func() { 243 file_symbols_map_proto_rawDescData = protoimpl.X.CompressGZIP(file_symbols_map_proto_rawDescData) 244 }) 245 return file_symbols_map_proto_rawDescData 246} 247 248var file_symbols_map_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 249var file_symbols_map_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 250var file_symbols_map_proto_goTypes = []interface{}{ 251 (Mapping_Type)(0), // 0: symbols_map.Mapping.Type 252 (*Mapping)(nil), // 1: symbols_map.Mapping 253 (*Mappings)(nil), // 2: symbols_map.Mappings 254} 255var file_symbols_map_proto_depIdxs = []int32{ 256 0, // 0: symbols_map.Mapping.type:type_name -> symbols_map.Mapping.Type 257 1, // 1: symbols_map.Mappings.mappings:type_name -> symbols_map.Mapping 258 2, // [2:2] is the sub-list for method output_type 259 2, // [2:2] is the sub-list for method input_type 260 2, // [2:2] is the sub-list for extension type_name 261 2, // [2:2] is the sub-list for extension extendee 262 0, // [0:2] is the sub-list for field type_name 263} 264 265func init() { file_symbols_map_proto_init() } 266func file_symbols_map_proto_init() { 267 if File_symbols_map_proto != nil { 268 return 269 } 270 if !protoimpl.UnsafeEnabled { 271 file_symbols_map_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 272 switch v := v.(*Mapping); i { 273 case 0: 274 return &v.state 275 case 1: 276 return &v.sizeCache 277 case 2: 278 return &v.unknownFields 279 default: 280 return nil 281 } 282 } 283 file_symbols_map_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 284 switch v := v.(*Mappings); i { 285 case 0: 286 return &v.state 287 case 1: 288 return &v.sizeCache 289 case 2: 290 return &v.unknownFields 291 default: 292 return nil 293 } 294 } 295 } 296 type x struct{} 297 out := protoimpl.TypeBuilder{ 298 File: protoimpl.DescBuilder{ 299 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 300 RawDescriptor: file_symbols_map_proto_rawDesc, 301 NumEnums: 1, 302 NumMessages: 2, 303 NumExtensions: 0, 304 NumServices: 0, 305 }, 306 GoTypes: file_symbols_map_proto_goTypes, 307 DependencyIndexes: file_symbols_map_proto_depIdxs, 308 EnumInfos: file_symbols_map_proto_enumTypes, 309 MessageInfos: file_symbols_map_proto_msgTypes, 310 }.Build() 311 File_symbols_map_proto = out.File 312 file_symbols_map_proto_rawDesc = nil 313 file_symbols_map_proto_goTypes = nil 314 file_symbols_map_proto_depIdxs = nil 315} 316