• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.30.0
18// 	protoc        v3.21.12
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
96// LocationType is the place where to look for the file with the given
97// identifier.
98type Mapping_LocationType int32
99
100const (
101	// ZIP denotes the file with the given identifier is in the distribuited
102	// symbols.zip or proguard_dict.zip files, or the local disc.
103	Mapping_ZIP Mapping_LocationType = 0
104	// AB denotes the file with the given identifier is in the AB artifacts but
105	// not in a symbols.zip or proguard_dict.zip.
106	Mapping_AB Mapping_LocationType = 1
107)
108
109// Enum value maps for Mapping_LocationType.
110var (
111	Mapping_LocationType_name = map[int32]string{
112		0: "ZIP",
113		1: "AB",
114	}
115	Mapping_LocationType_value = map[string]int32{
116		"ZIP": 0,
117		"AB":  1,
118	}
119)
120
121func (x Mapping_LocationType) Enum() *Mapping_LocationType {
122	p := new(Mapping_LocationType)
123	*p = x
124	return p
125}
126
127func (x Mapping_LocationType) String() string {
128	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
129}
130
131func (Mapping_LocationType) Descriptor() protoreflect.EnumDescriptor {
132	return file_symbols_map_proto_enumTypes[1].Descriptor()
133}
134
135func (Mapping_LocationType) Type() protoreflect.EnumType {
136	return &file_symbols_map_proto_enumTypes[1]
137}
138
139func (x Mapping_LocationType) Number() protoreflect.EnumNumber {
140	return protoreflect.EnumNumber(x)
141}
142
143// Deprecated: Do not use.
144func (x *Mapping_LocationType) UnmarshalJSON(b []byte) error {
145	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
146	if err != nil {
147		return err
148	}
149	*x = Mapping_LocationType(num)
150	return nil
151}
152
153// Deprecated: Use Mapping_LocationType.Descriptor instead.
154func (Mapping_LocationType) EnumDescriptor() ([]byte, []int) {
155	return file_symbols_map_proto_rawDescGZIP(), []int{0, 1}
156}
157
158type Mapping struct {
159	state         protoimpl.MessageState
160	sizeCache     protoimpl.SizeCache
161	unknownFields protoimpl.UnknownFields
162
163	// identifier is a unique identifier of a location, generally the hash of the file.  For an
164	// elf file it is the elf build ID, for an R8 dictionary it is the hash from the comments in the
165	// top of the file.  It may be empty if no hash could be extracted from the file.
166	Identifier *string `protobuf:"bytes,1,opt,name=identifier" json:"identifier,omitempty"`
167	// location is the path to the file with the given identifier.  The location should be valid
168	// both on the local disk and in the distributed symbols.zip or proguard_dict.zip files.
169	Location *string `protobuf:"bytes,2,opt,name=location" json:"location,omitempty"`
170	// type is the type of the mapping, either ELF or R8.
171	Type *Mapping_Type `protobuf:"varint,3,opt,name=type,enum=symbols_map.Mapping_Type" json:"type,omitempty"`
172	// location_type is the Location Type that dictates where to search for the
173	// file with the given identifier. Defaults to ZIP if not present.
174	LocationType *Mapping_LocationType `protobuf:"varint,4,opt,name=location_type,json=locationType,enum=symbols_map.Mapping_LocationType" json:"location_type,omitempty"`
175}
176
177func (x *Mapping) Reset() {
178	*x = Mapping{}
179	if protoimpl.UnsafeEnabled {
180		mi := &file_symbols_map_proto_msgTypes[0]
181		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
182		ms.StoreMessageInfo(mi)
183	}
184}
185
186func (x *Mapping) String() string {
187	return protoimpl.X.MessageStringOf(x)
188}
189
190func (*Mapping) ProtoMessage() {}
191
192func (x *Mapping) ProtoReflect() protoreflect.Message {
193	mi := &file_symbols_map_proto_msgTypes[0]
194	if protoimpl.UnsafeEnabled && x != nil {
195		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
196		if ms.LoadMessageInfo() == nil {
197			ms.StoreMessageInfo(mi)
198		}
199		return ms
200	}
201	return mi.MessageOf(x)
202}
203
204// Deprecated: Use Mapping.ProtoReflect.Descriptor instead.
205func (*Mapping) Descriptor() ([]byte, []int) {
206	return file_symbols_map_proto_rawDescGZIP(), []int{0}
207}
208
209func (x *Mapping) GetIdentifier() string {
210	if x != nil && x.Identifier != nil {
211		return *x.Identifier
212	}
213	return ""
214}
215
216func (x *Mapping) GetLocation() string {
217	if x != nil && x.Location != nil {
218		return *x.Location
219	}
220	return ""
221}
222
223func (x *Mapping) GetType() Mapping_Type {
224	if x != nil && x.Type != nil {
225		return *x.Type
226	}
227	return Mapping_ELF
228}
229
230func (x *Mapping) GetLocationType() Mapping_LocationType {
231	if x != nil && x.LocationType != nil {
232		return *x.LocationType
233	}
234	return Mapping_ZIP
235}
236
237type Mappings struct {
238	state         protoimpl.MessageState
239	sizeCache     protoimpl.SizeCache
240	unknownFields protoimpl.UnknownFields
241
242	Mappings []*Mapping `protobuf:"bytes,4,rep,name=mappings" json:"mappings,omitempty"`
243}
244
245func (x *Mappings) Reset() {
246	*x = Mappings{}
247	if protoimpl.UnsafeEnabled {
248		mi := &file_symbols_map_proto_msgTypes[1]
249		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
250		ms.StoreMessageInfo(mi)
251	}
252}
253
254func (x *Mappings) String() string {
255	return protoimpl.X.MessageStringOf(x)
256}
257
258func (*Mappings) ProtoMessage() {}
259
260func (x *Mappings) ProtoReflect() protoreflect.Message {
261	mi := &file_symbols_map_proto_msgTypes[1]
262	if protoimpl.UnsafeEnabled && x != nil {
263		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
264		if ms.LoadMessageInfo() == nil {
265			ms.StoreMessageInfo(mi)
266		}
267		return ms
268	}
269	return mi.MessageOf(x)
270}
271
272// Deprecated: Use Mappings.ProtoReflect.Descriptor instead.
273func (*Mappings) Descriptor() ([]byte, []int) {
274	return file_symbols_map_proto_rawDescGZIP(), []int{1}
275}
276
277func (x *Mappings) GetMappings() []*Mapping {
278	if x != nil {
279		return x.Mappings
280	}
281	return nil
282}
283
284var File_symbols_map_proto protoreflect.FileDescriptor
285
286var file_symbols_map_proto_rawDesc = []byte{
287	0x0a, 0x11, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x5f, 0x6d, 0x61, 0x70, 0x2e, 0x70, 0x72,
288	0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x5f, 0x6d, 0x61, 0x70,
289	0x22, 0xf6, 0x01, 0x0a, 0x07, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x0a, 0x0a,
290	0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
291	0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08,
292	0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
293	0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
294	0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73,
295	0x5f, 0x6d, 0x61, 0x70, 0x2e, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x79, 0x70,
296	0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x46, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74,
297	0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21,
298	0x2e, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x5f, 0x6d, 0x61, 0x70, 0x2e, 0x4d, 0x61, 0x70,
299	0x70, 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70,
300	0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22,
301	0x17, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x45, 0x4c, 0x46, 0x10, 0x00,
302	0x12, 0x06, 0x0a, 0x02, 0x52, 0x38, 0x10, 0x01, 0x22, 0x1f, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61,
303	0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x5a, 0x49, 0x50, 0x10,
304	0x00, 0x12, 0x06, 0x0a, 0x02, 0x41, 0x42, 0x10, 0x01, 0x22, 0x3c, 0x0a, 0x08, 0x4d, 0x61, 0x70,
305	0x70, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x30, 0x0a, 0x08, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67,
306	0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c,
307	0x73, 0x5f, 0x6d, 0x61, 0x70, 0x2e, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6d,
308	0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x42, 0x31, 0x5a, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f,
309	0x69, 0x64, 0x2f, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x73, 0x79, 0x6d,
310	0x62, 0x6f, 0x6c, 0x73, 0x5f, 0x6d, 0x61, 0x70, 0x2f, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73,
311	0x5f, 0x6d, 0x61, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
312}
313
314var (
315	file_symbols_map_proto_rawDescOnce sync.Once
316	file_symbols_map_proto_rawDescData = file_symbols_map_proto_rawDesc
317)
318
319func file_symbols_map_proto_rawDescGZIP() []byte {
320	file_symbols_map_proto_rawDescOnce.Do(func() {
321		file_symbols_map_proto_rawDescData = protoimpl.X.CompressGZIP(file_symbols_map_proto_rawDescData)
322	})
323	return file_symbols_map_proto_rawDescData
324}
325
326var file_symbols_map_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
327var file_symbols_map_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
328var file_symbols_map_proto_goTypes = []interface{}{
329	(Mapping_Type)(0),         // 0: symbols_map.Mapping.Type
330	(Mapping_LocationType)(0), // 1: symbols_map.Mapping.LocationType
331	(*Mapping)(nil),           // 2: symbols_map.Mapping
332	(*Mappings)(nil),          // 3: symbols_map.Mappings
333}
334var file_symbols_map_proto_depIdxs = []int32{
335	0, // 0: symbols_map.Mapping.type:type_name -> symbols_map.Mapping.Type
336	1, // 1: symbols_map.Mapping.location_type:type_name -> symbols_map.Mapping.LocationType
337	2, // 2: symbols_map.Mappings.mappings:type_name -> symbols_map.Mapping
338	3, // [3:3] is the sub-list for method output_type
339	3, // [3:3] is the sub-list for method input_type
340	3, // [3:3] is the sub-list for extension type_name
341	3, // [3:3] is the sub-list for extension extendee
342	0, // [0:3] is the sub-list for field type_name
343}
344
345func init() { file_symbols_map_proto_init() }
346func file_symbols_map_proto_init() {
347	if File_symbols_map_proto != nil {
348		return
349	}
350	if !protoimpl.UnsafeEnabled {
351		file_symbols_map_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
352			switch v := v.(*Mapping); i {
353			case 0:
354				return &v.state
355			case 1:
356				return &v.sizeCache
357			case 2:
358				return &v.unknownFields
359			default:
360				return nil
361			}
362		}
363		file_symbols_map_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
364			switch v := v.(*Mappings); i {
365			case 0:
366				return &v.state
367			case 1:
368				return &v.sizeCache
369			case 2:
370				return &v.unknownFields
371			default:
372				return nil
373			}
374		}
375	}
376	type x struct{}
377	out := protoimpl.TypeBuilder{
378		File: protoimpl.DescBuilder{
379			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
380			RawDescriptor: file_symbols_map_proto_rawDesc,
381			NumEnums:      2,
382			NumMessages:   2,
383			NumExtensions: 0,
384			NumServices:   0,
385		},
386		GoTypes:           file_symbols_map_proto_goTypes,
387		DependencyIndexes: file_symbols_map_proto_depIdxs,
388		EnumInfos:         file_symbols_map_proto_enumTypes,
389		MessageInfos:      file_symbols_map_proto_msgTypes,
390	}.Build()
391	File_symbols_map_proto = out.File
392	file_symbols_map_proto_rawDesc = nil
393	file_symbols_map_proto_goTypes = nil
394	file_symbols_map_proto_depIdxs = nil
395}
396