1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package resultstore
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40 type File_HashType int32
41
42 const (
43
44 File_HASH_TYPE_UNSPECIFIED File_HashType = 0
45
46 File_MD5 File_HashType = 1
47
48 File_SHA1 File_HashType = 2
49
50 File_SHA256 File_HashType = 3
51 )
52
53
54 var (
55 File_HashType_name = map[int32]string{
56 0: "HASH_TYPE_UNSPECIFIED",
57 1: "MD5",
58 2: "SHA1",
59 3: "SHA256",
60 }
61 File_HashType_value = map[string]int32{
62 "HASH_TYPE_UNSPECIFIED": 0,
63 "MD5": 1,
64 "SHA1": 2,
65 "SHA256": 3,
66 }
67 )
68
69 func (x File_HashType) Enum() *File_HashType {
70 p := new(File_HashType)
71 *p = x
72 return p
73 }
74
75 func (x File_HashType) String() string {
76 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
77 }
78
79 func (File_HashType) Descriptor() protoreflect.EnumDescriptor {
80 return file_google_devtools_resultstore_v2_file_proto_enumTypes[0].Descriptor()
81 }
82
83 func (File_HashType) Type() protoreflect.EnumType {
84 return &file_google_devtools_resultstore_v2_file_proto_enumTypes[0]
85 }
86
87 func (x File_HashType) Number() protoreflect.EnumNumber {
88 return protoreflect.EnumNumber(x)
89 }
90
91
92 func (File_HashType) EnumDescriptor() ([]byte, []int) {
93 return file_google_devtools_resultstore_v2_file_proto_rawDescGZIP(), []int{0, 0}
94 }
95
96
97 type File struct {
98 state protoimpl.MessageState
99 sizeCache protoimpl.SizeCache
100 unknownFields protoimpl.UnknownFields
101
102
103
104
105
106 Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
107
108
109
110
111
112 Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
113
114
115
116 Length *wrapperspb.Int64Value `protobuf:"bytes,3,opt,name=length,proto3" json:"length,omitempty"`
117
118
119
120 ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
121
122
123
124 ArchiveEntry *ArchiveEntry `protobuf:"bytes,5,opt,name=archive_entry,json=archiveEntry,proto3" json:"archive_entry,omitempty"`
125
126 ContentViewer string `protobuf:"bytes,6,opt,name=content_viewer,json=contentViewer,proto3" json:"content_viewer,omitempty"`
127
128
129 Hidden bool `protobuf:"varint,7,opt,name=hidden,proto3" json:"hidden,omitempty"`
130
131
132
133
134 Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
135
136 Digest string `protobuf:"bytes,9,opt,name=digest,proto3" json:"digest,omitempty"`
137
138 HashType File_HashType `protobuf:"varint,10,opt,name=hash_type,json=hashType,proto3,enum=google.devtools.resultstore.v2.File_HashType" json:"hash_type,omitempty"`
139 }
140
141 func (x *File) Reset() {
142 *x = File{}
143 if protoimpl.UnsafeEnabled {
144 mi := &file_google_devtools_resultstore_v2_file_proto_msgTypes[0]
145 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
146 ms.StoreMessageInfo(mi)
147 }
148 }
149
150 func (x *File) String() string {
151 return protoimpl.X.MessageStringOf(x)
152 }
153
154 func (*File) ProtoMessage() {}
155
156 func (x *File) ProtoReflect() protoreflect.Message {
157 mi := &file_google_devtools_resultstore_v2_file_proto_msgTypes[0]
158 if protoimpl.UnsafeEnabled && x != nil {
159 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
160 if ms.LoadMessageInfo() == nil {
161 ms.StoreMessageInfo(mi)
162 }
163 return ms
164 }
165 return mi.MessageOf(x)
166 }
167
168
169 func (*File) Descriptor() ([]byte, []int) {
170 return file_google_devtools_resultstore_v2_file_proto_rawDescGZIP(), []int{0}
171 }
172
173 func (x *File) GetUid() string {
174 if x != nil {
175 return x.Uid
176 }
177 return ""
178 }
179
180 func (x *File) GetUri() string {
181 if x != nil {
182 return x.Uri
183 }
184 return ""
185 }
186
187 func (x *File) GetLength() *wrapperspb.Int64Value {
188 if x != nil {
189 return x.Length
190 }
191 return nil
192 }
193
194 func (x *File) GetContentType() string {
195 if x != nil {
196 return x.ContentType
197 }
198 return ""
199 }
200
201 func (x *File) GetArchiveEntry() *ArchiveEntry {
202 if x != nil {
203 return x.ArchiveEntry
204 }
205 return nil
206 }
207
208 func (x *File) GetContentViewer() string {
209 if x != nil {
210 return x.ContentViewer
211 }
212 return ""
213 }
214
215 func (x *File) GetHidden() bool {
216 if x != nil {
217 return x.Hidden
218 }
219 return false
220 }
221
222 func (x *File) GetDescription() string {
223 if x != nil {
224 return x.Description
225 }
226 return ""
227 }
228
229 func (x *File) GetDigest() string {
230 if x != nil {
231 return x.Digest
232 }
233 return ""
234 }
235
236 func (x *File) GetHashType() File_HashType {
237 if x != nil {
238 return x.HashType
239 }
240 return File_HASH_TYPE_UNSPECIFIED
241 }
242
243
244 type ArchiveEntry struct {
245 state protoimpl.MessageState
246 sizeCache protoimpl.SizeCache
247 unknownFields protoimpl.UnknownFields
248
249
250 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
251
252
253 Length *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=length,proto3" json:"length,omitempty"`
254
255
256
257 ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
258 }
259
260 func (x *ArchiveEntry) Reset() {
261 *x = ArchiveEntry{}
262 if protoimpl.UnsafeEnabled {
263 mi := &file_google_devtools_resultstore_v2_file_proto_msgTypes[1]
264 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
265 ms.StoreMessageInfo(mi)
266 }
267 }
268
269 func (x *ArchiveEntry) String() string {
270 return protoimpl.X.MessageStringOf(x)
271 }
272
273 func (*ArchiveEntry) ProtoMessage() {}
274
275 func (x *ArchiveEntry) ProtoReflect() protoreflect.Message {
276 mi := &file_google_devtools_resultstore_v2_file_proto_msgTypes[1]
277 if protoimpl.UnsafeEnabled && x != nil {
278 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
279 if ms.LoadMessageInfo() == nil {
280 ms.StoreMessageInfo(mi)
281 }
282 return ms
283 }
284 return mi.MessageOf(x)
285 }
286
287
288 func (*ArchiveEntry) Descriptor() ([]byte, []int) {
289 return file_google_devtools_resultstore_v2_file_proto_rawDescGZIP(), []int{1}
290 }
291
292 func (x *ArchiveEntry) GetPath() string {
293 if x != nil {
294 return x.Path
295 }
296 return ""
297 }
298
299 func (x *ArchiveEntry) GetLength() *wrapperspb.Int64Value {
300 if x != nil {
301 return x.Length
302 }
303 return nil
304 }
305
306 func (x *ArchiveEntry) GetContentType() string {
307 if x != nil {
308 return x.ContentType
309 }
310 return ""
311 }
312
313 var File_google_devtools_resultstore_v2_file_proto protoreflect.FileDescriptor
314
315 var file_google_devtools_resultstore_v2_file_proto_rawDesc = []byte{
316 0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
317 0x73, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x32,
318 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f,
319 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x72, 0x65, 0x73,
320 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32, 0x1a, 0x1e, 0x67, 0x6f, 0x6f,
321 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61,
322 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe0, 0x03, 0x0a, 0x04,
323 0x46, 0x69, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
324 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20,
325 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x33, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67,
326 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
327 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34,
328 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x21, 0x0a,
329 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20,
330 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65,
331 0x12, 0x51, 0x0a, 0x0d, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72,
332 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
333 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
334 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65,
335 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e,
336 0x74, 0x72, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x76,
337 0x69, 0x65, 0x77, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e,
338 0x74, 0x65, 0x6e, 0x74, 0x56, 0x69, 0x65, 0x77, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x69,
339 0x64, 0x64, 0x65, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x68, 0x69, 0x64, 0x64,
340 0x65, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
341 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
342 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x09,
343 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x09,
344 0x68, 0x61, 0x73, 0x68, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32,
345 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
346 0x73, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32,
347 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08,
348 0x68, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, 0x22, 0x44, 0x0a, 0x08, 0x48, 0x61, 0x73, 0x68,
349 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x48, 0x41, 0x53, 0x48, 0x5f, 0x54, 0x59, 0x50,
350 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
351 0x07, 0x0a, 0x03, 0x4d, 0x44, 0x35, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x48, 0x41, 0x31,
352 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x03, 0x22, 0x7a,
353 0x0a, 0x0c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x12,
354 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61,
355 0x74, 0x68, 0x12, 0x33, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01,
356 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
357 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52,
358 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65,
359 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63,
360 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x42, 0x7c, 0x0a, 0x22, 0x63, 0x6f,
361 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
362 0x73, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32,
363 0x42, 0x09, 0x46, 0x69, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67,
364 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
365 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
366 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x72, 0x65,
367 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x32, 0x3b, 0x72, 0x65, 0x73,
368 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
369 }
370
371 var (
372 file_google_devtools_resultstore_v2_file_proto_rawDescOnce sync.Once
373 file_google_devtools_resultstore_v2_file_proto_rawDescData = file_google_devtools_resultstore_v2_file_proto_rawDesc
374 )
375
376 func file_google_devtools_resultstore_v2_file_proto_rawDescGZIP() []byte {
377 file_google_devtools_resultstore_v2_file_proto_rawDescOnce.Do(func() {
378 file_google_devtools_resultstore_v2_file_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_devtools_resultstore_v2_file_proto_rawDescData)
379 })
380 return file_google_devtools_resultstore_v2_file_proto_rawDescData
381 }
382
383 var file_google_devtools_resultstore_v2_file_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
384 var file_google_devtools_resultstore_v2_file_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
385 var file_google_devtools_resultstore_v2_file_proto_goTypes = []interface{}{
386 (File_HashType)(0),
387 (*File)(nil),
388 (*ArchiveEntry)(nil),
389 (*wrapperspb.Int64Value)(nil),
390 }
391 var file_google_devtools_resultstore_v2_file_proto_depIdxs = []int32{
392 3,
393 2,
394 0,
395 3,
396 4,
397 4,
398 4,
399 4,
400 0,
401 }
402
403 func init() { file_google_devtools_resultstore_v2_file_proto_init() }
404 func file_google_devtools_resultstore_v2_file_proto_init() {
405 if File_google_devtools_resultstore_v2_file_proto != nil {
406 return
407 }
408 if !protoimpl.UnsafeEnabled {
409 file_google_devtools_resultstore_v2_file_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
410 switch v := v.(*File); i {
411 case 0:
412 return &v.state
413 case 1:
414 return &v.sizeCache
415 case 2:
416 return &v.unknownFields
417 default:
418 return nil
419 }
420 }
421 file_google_devtools_resultstore_v2_file_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
422 switch v := v.(*ArchiveEntry); i {
423 case 0:
424 return &v.state
425 case 1:
426 return &v.sizeCache
427 case 2:
428 return &v.unknownFields
429 default:
430 return nil
431 }
432 }
433 }
434 type x struct{}
435 out := protoimpl.TypeBuilder{
436 File: protoimpl.DescBuilder{
437 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
438 RawDescriptor: file_google_devtools_resultstore_v2_file_proto_rawDesc,
439 NumEnums: 1,
440 NumMessages: 2,
441 NumExtensions: 0,
442 NumServices: 0,
443 },
444 GoTypes: file_google_devtools_resultstore_v2_file_proto_goTypes,
445 DependencyIndexes: file_google_devtools_resultstore_v2_file_proto_depIdxs,
446 EnumInfos: file_google_devtools_resultstore_v2_file_proto_enumTypes,
447 MessageInfos: file_google_devtools_resultstore_v2_file_proto_msgTypes,
448 }.Build()
449 File_google_devtools_resultstore_v2_file_proto = out.File
450 file_google_devtools_resultstore_v2_file_proto_rawDesc = nil
451 file_google_devtools_resultstore_v2_file_proto_goTypes = nil
452 file_google_devtools_resultstore_v2_file_proto_depIdxs = nil
453 }
454
View as plain text