blob: 271039c506e1425bfe6a10d2d123f76fb5505da6 [file] [log] [blame]
Dan Willemsen4591b642021-05-24 14:24:12 -07001// Copyright 2020 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
Colin Crosse16ce362020-11-12 08:29:30 -080015// Code generated by protoc-gen-go. DO NOT EDIT.
Dan Willemsen4591b642021-05-24 14:24:12 -070016// versions:
Cole Faust1ead86c2024-08-23 14:41:51 -070017// protoc-gen-go v1.33.0
18// protoc v3.21.12
Colin Crosse16ce362020-11-12 08:29:30 -080019// source: sbox.proto
20
21package sbox_proto
22
23import (
Dan Willemsen4591b642021-05-24 14:24:12 -070024 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
Colin Crosse16ce362020-11-12 08:29:30 -080028)
29
Dan Willemsen4591b642021-05-24 14:24:12 -070030const (
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)
Colin Crosse16ce362020-11-12 08:29:30 -080036
37// A set of commands to run in a sandbox.
38type Manifest struct {
Dan Willemsen4591b642021-05-24 14:24:12 -070039 state protoimpl.MessageState
40 sizeCache protoimpl.SizeCache
41 unknownFields protoimpl.UnknownFields
42
Colin Crosse16ce362020-11-12 08:29:30 -080043 // A list of commands to run in the sandbox.
44 Commands []*Command `protobuf:"bytes,1,rep,name=commands" json:"commands,omitempty"`
45 // If set, GCC-style dependency files from any command that references __SBOX_DEPFILE__ will be
46 // merged into the given output file relative to the $PWD when sbox was started.
Dan Willemsen4591b642021-05-24 14:24:12 -070047 OutputDepfile *string `protobuf:"bytes,2,opt,name=output_depfile,json=outputDepfile" json:"output_depfile,omitempty"`
Colin Crosse16ce362020-11-12 08:29:30 -080048}
49
Dan Willemsen4591b642021-05-24 14:24:12 -070050func (x *Manifest) Reset() {
51 *x = Manifest{}
52 if protoimpl.UnsafeEnabled {
53 mi := &file_sbox_proto_msgTypes[0]
54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
55 ms.StoreMessageInfo(mi)
56 }
57}
58
59func (x *Manifest) String() string {
60 return protoimpl.X.MessageStringOf(x)
61}
62
63func (*Manifest) ProtoMessage() {}
64
65func (x *Manifest) ProtoReflect() protoreflect.Message {
66 mi := &file_sbox_proto_msgTypes[0]
67 if protoimpl.UnsafeEnabled && x != nil {
68 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
69 if ms.LoadMessageInfo() == nil {
70 ms.StoreMessageInfo(mi)
71 }
72 return ms
73 }
74 return mi.MessageOf(x)
75}
76
77// Deprecated: Use Manifest.ProtoReflect.Descriptor instead.
Colin Crosse16ce362020-11-12 08:29:30 -080078func (*Manifest) Descriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -070079 return file_sbox_proto_rawDescGZIP(), []int{0}
Colin Crosse16ce362020-11-12 08:29:30 -080080}
81
Dan Willemsen4591b642021-05-24 14:24:12 -070082func (x *Manifest) GetCommands() []*Command {
83 if x != nil {
84 return x.Commands
Colin Crosse16ce362020-11-12 08:29:30 -080085 }
86 return nil
87}
88
Dan Willemsen4591b642021-05-24 14:24:12 -070089func (x *Manifest) GetOutputDepfile() string {
90 if x != nil && x.OutputDepfile != nil {
91 return *x.OutputDepfile
Colin Crosse16ce362020-11-12 08:29:30 -080092 }
93 return ""
94}
95
96// SandboxManifest describes a command to run in the sandbox.
97type Command struct {
Dan Willemsen4591b642021-05-24 14:24:12 -070098 state protoimpl.MessageState
99 sizeCache protoimpl.SizeCache
100 unknownFields protoimpl.UnknownFields
101
Colin Crosse16ce362020-11-12 08:29:30 -0800102 // A list of copy rules to run before the sandboxed command. The from field is relative to the
103 // $PWD when sbox was run, the to field is relative to the top of the temporary sandbox directory.
104 CopyBefore []*Copy `protobuf:"bytes,1,rep,name=copy_before,json=copyBefore" json:"copy_before,omitempty"`
105 // If true, change the working directory to the top of the temporary sandbox directory before
106 // running the command. If false, leave the working directory where it was when sbox was started.
107 Chdir *bool `protobuf:"varint,2,opt,name=chdir" json:"chdir,omitempty"`
108 // The command to run.
109 Command *string `protobuf:"bytes,3,req,name=command" json:"command,omitempty"`
110 // A list of copy rules to run after the sandboxed command. The from field is relative to the
111 // top of the temporary sandbox directory, the to field is relative to the $PWD when sbox was run.
112 CopyAfter []*Copy `protobuf:"bytes,4,rep,name=copy_after,json=copyAfter" json:"copy_after,omitempty"`
113 // An optional hash of the input files to ensure the textproto files and the sbox rule reruns
114 // when the lists of inputs changes, even if the inputs are not on the command line.
Colin Crosse55bd422021-03-23 13:44:30 -0700115 InputHash *string `protobuf:"bytes,5,opt,name=input_hash,json=inputHash" json:"input_hash,omitempty"`
116 // A list of files that will be copied before the sandboxed command, and whose contents should be
117 // copied as if they were listed in copy_before.
Dan Willemsen4591b642021-05-24 14:24:12 -0700118 RspFiles []*RspFile `protobuf:"bytes,6,rep,name=rsp_files,json=rspFiles" json:"rsp_files,omitempty"`
Cole Faust1ead86c2024-08-23 14:41:51 -0700119 // The environment variables that will be set or unset while running the command.
120 // Also see dont_inherit_env.
121 Env []*EnvironmentVariable `protobuf:"bytes,7,rep,name=env" json:"env,omitempty"`
122 // By default, all environment variables are inherited from the calling process, but may be
123 // replaced or unset by env. If dont_inherit_env is set, no environment variables will be
124 // inherited, and instead only the variables in env will be defined.
125 DontInheritEnv *bool `protobuf:"varint,8,opt,name=dont_inherit_env,json=dontInheritEnv" json:"dont_inherit_env,omitempty"`
Colin Crosse16ce362020-11-12 08:29:30 -0800126}
127
Dan Willemsen4591b642021-05-24 14:24:12 -0700128func (x *Command) Reset() {
129 *x = Command{}
130 if protoimpl.UnsafeEnabled {
131 mi := &file_sbox_proto_msgTypes[1]
132 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
133 ms.StoreMessageInfo(mi)
134 }
135}
136
137func (x *Command) String() string {
138 return protoimpl.X.MessageStringOf(x)
139}
140
141func (*Command) ProtoMessage() {}
142
143func (x *Command) ProtoReflect() protoreflect.Message {
144 mi := &file_sbox_proto_msgTypes[1]
145 if protoimpl.UnsafeEnabled && x != nil {
146 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
147 if ms.LoadMessageInfo() == nil {
148 ms.StoreMessageInfo(mi)
149 }
150 return ms
151 }
152 return mi.MessageOf(x)
153}
154
155// Deprecated: Use Command.ProtoReflect.Descriptor instead.
Colin Crosse16ce362020-11-12 08:29:30 -0800156func (*Command) Descriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -0700157 return file_sbox_proto_rawDescGZIP(), []int{1}
Colin Crosse16ce362020-11-12 08:29:30 -0800158}
159
Dan Willemsen4591b642021-05-24 14:24:12 -0700160func (x *Command) GetCopyBefore() []*Copy {
161 if x != nil {
162 return x.CopyBefore
Colin Crosse16ce362020-11-12 08:29:30 -0800163 }
164 return nil
165}
166
Dan Willemsen4591b642021-05-24 14:24:12 -0700167func (x *Command) GetChdir() bool {
168 if x != nil && x.Chdir != nil {
169 return *x.Chdir
Colin Crosse16ce362020-11-12 08:29:30 -0800170 }
171 return false
172}
173
Dan Willemsen4591b642021-05-24 14:24:12 -0700174func (x *Command) GetCommand() string {
175 if x != nil && x.Command != nil {
176 return *x.Command
Colin Crosse16ce362020-11-12 08:29:30 -0800177 }
178 return ""
179}
180
Dan Willemsen4591b642021-05-24 14:24:12 -0700181func (x *Command) GetCopyAfter() []*Copy {
182 if x != nil {
183 return x.CopyAfter
Colin Crosse16ce362020-11-12 08:29:30 -0800184 }
185 return nil
186}
187
Dan Willemsen4591b642021-05-24 14:24:12 -0700188func (x *Command) GetInputHash() string {
189 if x != nil && x.InputHash != nil {
190 return *x.InputHash
Colin Crosse16ce362020-11-12 08:29:30 -0800191 }
192 return ""
193}
194
Dan Willemsen4591b642021-05-24 14:24:12 -0700195func (x *Command) GetRspFiles() []*RspFile {
196 if x != nil {
197 return x.RspFiles
Colin Crosse55bd422021-03-23 13:44:30 -0700198 }
199 return nil
200}
201
Cole Faust1ead86c2024-08-23 14:41:51 -0700202func (x *Command) GetEnv() []*EnvironmentVariable {
203 if x != nil {
204 return x.Env
205 }
206 return nil
207}
208
209func (x *Command) GetDontInheritEnv() bool {
210 if x != nil && x.DontInheritEnv != nil {
211 return *x.DontInheritEnv
212 }
213 return false
214}
215
216type EnvironmentVariable struct {
217 state protoimpl.MessageState
218 sizeCache protoimpl.SizeCache
219 unknownFields protoimpl.UnknownFields
220
221 // The name of the environment variable
222 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
223 // Types that are assignable to State:
224 //
225 // *EnvironmentVariable_Value
226 // *EnvironmentVariable_Unset
227 // *EnvironmentVariable_Inherit
228 State isEnvironmentVariable_State `protobuf_oneof:"state"`
229}
230
231func (x *EnvironmentVariable) Reset() {
232 *x = EnvironmentVariable{}
233 if protoimpl.UnsafeEnabled {
234 mi := &file_sbox_proto_msgTypes[2]
235 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
236 ms.StoreMessageInfo(mi)
237 }
238}
239
240func (x *EnvironmentVariable) String() string {
241 return protoimpl.X.MessageStringOf(x)
242}
243
244func (*EnvironmentVariable) ProtoMessage() {}
245
246func (x *EnvironmentVariable) ProtoReflect() protoreflect.Message {
247 mi := &file_sbox_proto_msgTypes[2]
248 if protoimpl.UnsafeEnabled && x != nil {
249 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
250 if ms.LoadMessageInfo() == nil {
251 ms.StoreMessageInfo(mi)
252 }
253 return ms
254 }
255 return mi.MessageOf(x)
256}
257
258// Deprecated: Use EnvironmentVariable.ProtoReflect.Descriptor instead.
259func (*EnvironmentVariable) Descriptor() ([]byte, []int) {
260 return file_sbox_proto_rawDescGZIP(), []int{2}
261}
262
263func (x *EnvironmentVariable) GetName() string {
264 if x != nil && x.Name != nil {
265 return *x.Name
266 }
267 return ""
268}
269
270func (m *EnvironmentVariable) GetState() isEnvironmentVariable_State {
271 if m != nil {
272 return m.State
273 }
274 return nil
275}
276
277func (x *EnvironmentVariable) GetValue() string {
278 if x, ok := x.GetState().(*EnvironmentVariable_Value); ok {
279 return x.Value
280 }
281 return ""
282}
283
284func (x *EnvironmentVariable) GetUnset() bool {
285 if x, ok := x.GetState().(*EnvironmentVariable_Unset); ok {
286 return x.Unset
287 }
288 return false
289}
290
291func (x *EnvironmentVariable) GetInherit() bool {
292 if x, ok := x.GetState().(*EnvironmentVariable_Inherit); ok {
293 return x.Inherit
294 }
295 return false
296}
297
298type isEnvironmentVariable_State interface {
299 isEnvironmentVariable_State()
300}
301
302type EnvironmentVariable_Value struct {
303 // The value to set the environment variable to.
304 Value string `protobuf:"bytes,2,opt,name=value,oneof"`
305}
306
307type EnvironmentVariable_Unset struct {
308 // This environment variable should be unset in the command.
309 Unset bool `protobuf:"varint,3,opt,name=unset,oneof"`
310}
311
312type EnvironmentVariable_Inherit struct {
313 // This environment variable should be inherited from the parent process.
314 // Can be combined with dont_inherit_env to only inherit certain environment
315 // variables.
316 Inherit bool `protobuf:"varint,4,opt,name=inherit,oneof"`
317}
318
319func (*EnvironmentVariable_Value) isEnvironmentVariable_State() {}
320
321func (*EnvironmentVariable_Unset) isEnvironmentVariable_State() {}
322
323func (*EnvironmentVariable_Inherit) isEnvironmentVariable_State() {}
324
Colin Crosse16ce362020-11-12 08:29:30 -0800325// Copy describes a from-to pair of files to copy. The paths may be relative, the root that they
326// are relative to is specific to the context the Copy is used in and will be different for
327// from and to.
328type Copy struct {
Dan Willemsen4591b642021-05-24 14:24:12 -0700329 state protoimpl.MessageState
330 sizeCache protoimpl.SizeCache
331 unknownFields protoimpl.UnknownFields
332
Colin Cross859dfd92020-11-30 20:12:47 -0800333 From *string `protobuf:"bytes,1,req,name=from" json:"from,omitempty"`
334 To *string `protobuf:"bytes,2,req,name=to" json:"to,omitempty"`
335 // If true, make the file executable after copying it.
Dan Willemsen4591b642021-05-24 14:24:12 -0700336 Executable *bool `protobuf:"varint,3,opt,name=executable" json:"executable,omitempty"`
Colin Crosse16ce362020-11-12 08:29:30 -0800337}
338
Dan Willemsen4591b642021-05-24 14:24:12 -0700339func (x *Copy) Reset() {
340 *x = Copy{}
341 if protoimpl.UnsafeEnabled {
Cole Faust1ead86c2024-08-23 14:41:51 -0700342 mi := &file_sbox_proto_msgTypes[3]
Dan Willemsen4591b642021-05-24 14:24:12 -0700343 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
344 ms.StoreMessageInfo(mi)
345 }
346}
347
348func (x *Copy) String() string {
349 return protoimpl.X.MessageStringOf(x)
350}
351
352func (*Copy) ProtoMessage() {}
353
354func (x *Copy) ProtoReflect() protoreflect.Message {
Cole Faust1ead86c2024-08-23 14:41:51 -0700355 mi := &file_sbox_proto_msgTypes[3]
Dan Willemsen4591b642021-05-24 14:24:12 -0700356 if protoimpl.UnsafeEnabled && x != nil {
357 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
358 if ms.LoadMessageInfo() == nil {
359 ms.StoreMessageInfo(mi)
360 }
361 return ms
362 }
363 return mi.MessageOf(x)
364}
365
366// Deprecated: Use Copy.ProtoReflect.Descriptor instead.
Colin Crosse16ce362020-11-12 08:29:30 -0800367func (*Copy) Descriptor() ([]byte, []int) {
Cole Faust1ead86c2024-08-23 14:41:51 -0700368 return file_sbox_proto_rawDescGZIP(), []int{3}
Colin Crosse16ce362020-11-12 08:29:30 -0800369}
370
Dan Willemsen4591b642021-05-24 14:24:12 -0700371func (x *Copy) GetFrom() string {
372 if x != nil && x.From != nil {
373 return *x.From
Colin Crosse16ce362020-11-12 08:29:30 -0800374 }
375 return ""
376}
377
Dan Willemsen4591b642021-05-24 14:24:12 -0700378func (x *Copy) GetTo() string {
379 if x != nil && x.To != nil {
380 return *x.To
Colin Crosse16ce362020-11-12 08:29:30 -0800381 }
382 return ""
383}
384
Dan Willemsen4591b642021-05-24 14:24:12 -0700385func (x *Copy) GetExecutable() bool {
386 if x != nil && x.Executable != nil {
387 return *x.Executable
Colin Cross859dfd92020-11-30 20:12:47 -0800388 }
389 return false
390}
391
Colin Crosse55bd422021-03-23 13:44:30 -0700392// RspFile describes an rspfile that should be copied into the sandbox directory.
393type RspFile struct {
Dan Willemsen4591b642021-05-24 14:24:12 -0700394 state protoimpl.MessageState
395 sizeCache protoimpl.SizeCache
396 unknownFields protoimpl.UnknownFields
397
Colin Crosse55bd422021-03-23 13:44:30 -0700398 // The path to the rsp file.
399 File *string `protobuf:"bytes,1,req,name=file" json:"file,omitempty"`
400 // A list of path mappings that should be applied to each file listed in the rsp file.
Dan Willemsen4591b642021-05-24 14:24:12 -0700401 PathMappings []*PathMapping `protobuf:"bytes,2,rep,name=path_mappings,json=pathMappings" json:"path_mappings,omitempty"`
Colin Crosse55bd422021-03-23 13:44:30 -0700402}
403
Dan Willemsen4591b642021-05-24 14:24:12 -0700404func (x *RspFile) Reset() {
405 *x = RspFile{}
406 if protoimpl.UnsafeEnabled {
Cole Faust1ead86c2024-08-23 14:41:51 -0700407 mi := &file_sbox_proto_msgTypes[4]
Dan Willemsen4591b642021-05-24 14:24:12 -0700408 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
409 ms.StoreMessageInfo(mi)
410 }
411}
412
413func (x *RspFile) String() string {
414 return protoimpl.X.MessageStringOf(x)
415}
416
417func (*RspFile) ProtoMessage() {}
418
419func (x *RspFile) ProtoReflect() protoreflect.Message {
Cole Faust1ead86c2024-08-23 14:41:51 -0700420 mi := &file_sbox_proto_msgTypes[4]
Dan Willemsen4591b642021-05-24 14:24:12 -0700421 if protoimpl.UnsafeEnabled && x != nil {
422 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
423 if ms.LoadMessageInfo() == nil {
424 ms.StoreMessageInfo(mi)
425 }
426 return ms
427 }
428 return mi.MessageOf(x)
429}
430
431// Deprecated: Use RspFile.ProtoReflect.Descriptor instead.
Colin Crosse55bd422021-03-23 13:44:30 -0700432func (*RspFile) Descriptor() ([]byte, []int) {
Cole Faust1ead86c2024-08-23 14:41:51 -0700433 return file_sbox_proto_rawDescGZIP(), []int{4}
Colin Crosse55bd422021-03-23 13:44:30 -0700434}
435
Dan Willemsen4591b642021-05-24 14:24:12 -0700436func (x *RspFile) GetFile() string {
437 if x != nil && x.File != nil {
438 return *x.File
Colin Crosse55bd422021-03-23 13:44:30 -0700439 }
440 return ""
441}
442
Dan Willemsen4591b642021-05-24 14:24:12 -0700443func (x *RspFile) GetPathMappings() []*PathMapping {
444 if x != nil {
445 return x.PathMappings
Colin Crosse55bd422021-03-23 13:44:30 -0700446 }
447 return nil
448}
449
450// PathMapping describes a mapping from a path outside the sandbox to the path inside the sandbox.
451type PathMapping struct {
Dan Willemsen4591b642021-05-24 14:24:12 -0700452 state protoimpl.MessageState
453 sizeCache protoimpl.SizeCache
454 unknownFields protoimpl.UnknownFields
455
456 From *string `protobuf:"bytes,1,req,name=from" json:"from,omitempty"`
457 To *string `protobuf:"bytes,2,req,name=to" json:"to,omitempty"`
Colin Crosse55bd422021-03-23 13:44:30 -0700458}
459
Dan Willemsen4591b642021-05-24 14:24:12 -0700460func (x *PathMapping) Reset() {
461 *x = PathMapping{}
462 if protoimpl.UnsafeEnabled {
Cole Faust1ead86c2024-08-23 14:41:51 -0700463 mi := &file_sbox_proto_msgTypes[5]
Dan Willemsen4591b642021-05-24 14:24:12 -0700464 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
465 ms.StoreMessageInfo(mi)
466 }
467}
468
469func (x *PathMapping) String() string {
470 return protoimpl.X.MessageStringOf(x)
471}
472
473func (*PathMapping) ProtoMessage() {}
474
475func (x *PathMapping) ProtoReflect() protoreflect.Message {
Cole Faust1ead86c2024-08-23 14:41:51 -0700476 mi := &file_sbox_proto_msgTypes[5]
Dan Willemsen4591b642021-05-24 14:24:12 -0700477 if protoimpl.UnsafeEnabled && x != nil {
478 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
479 if ms.LoadMessageInfo() == nil {
480 ms.StoreMessageInfo(mi)
481 }
482 return ms
483 }
484 return mi.MessageOf(x)
485}
486
487// Deprecated: Use PathMapping.ProtoReflect.Descriptor instead.
Colin Crosse55bd422021-03-23 13:44:30 -0700488func (*PathMapping) Descriptor() ([]byte, []int) {
Cole Faust1ead86c2024-08-23 14:41:51 -0700489 return file_sbox_proto_rawDescGZIP(), []int{5}
Colin Crosse55bd422021-03-23 13:44:30 -0700490}
491
Dan Willemsen4591b642021-05-24 14:24:12 -0700492func (x *PathMapping) GetFrom() string {
493 if x != nil && x.From != nil {
494 return *x.From
Colin Crosse55bd422021-03-23 13:44:30 -0700495 }
496 return ""
497}
498
Dan Willemsen4591b642021-05-24 14:24:12 -0700499func (x *PathMapping) GetTo() string {
500 if x != nil && x.To != nil {
501 return *x.To
Colin Crosse55bd422021-03-23 13:44:30 -0700502 }
503 return ""
504}
505
Dan Willemsen4591b642021-05-24 14:24:12 -0700506var File_sbox_proto protoreflect.FileDescriptor
507
508var file_sbox_proto_rawDesc = []byte{
509 0x0a, 0x0a, 0x73, 0x62, 0x6f, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x73, 0x62,
510 0x6f, 0x78, 0x22, 0x5c, 0x0a, 0x08, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x12, 0x29,
511 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
512 0x32, 0x0d, 0x2e, 0x73, 0x62, 0x6f, 0x78, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
513 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x75, 0x74,
514 0x70, 0x75, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
515 0x09, 0x52, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x65, 0x70, 0x66, 0x69, 0x6c, 0x65,
Cole Faust1ead86c2024-08-23 14:41:51 -0700516 0x22, 0xb3, 0x02, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x2b, 0x0a, 0x0b,
Dan Willemsen4591b642021-05-24 14:24:12 -0700517 0x63, 0x6f, 0x70, 0x79, 0x5f, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28,
518 0x0b, 0x32, 0x0a, 0x2e, 0x73, 0x62, 0x6f, 0x78, 0x2e, 0x43, 0x6f, 0x70, 0x79, 0x52, 0x0a, 0x63,
519 0x6f, 0x70, 0x79, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x68, 0x64,
520 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x63, 0x68, 0x64, 0x69, 0x72, 0x12,
521 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x02, 0x28, 0x09,
522 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x29, 0x0a, 0x0a, 0x63, 0x6f, 0x70,
523 0x79, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e,
524 0x73, 0x62, 0x6f, 0x78, 0x2e, 0x43, 0x6f, 0x70, 0x79, 0x52, 0x09, 0x63, 0x6f, 0x70, 0x79, 0x41,
525 0x66, 0x74, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x68, 0x61,
526 0x73, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x48,
527 0x61, 0x73, 0x68, 0x12, 0x2a, 0x0a, 0x09, 0x72, 0x73, 0x70, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73,
528 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x73, 0x62, 0x6f, 0x78, 0x2e, 0x52, 0x73,
Cole Faust1ead86c2024-08-23 14:41:51 -0700529 0x70, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x08, 0x72, 0x73, 0x70, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12,
530 0x2b, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73,
531 0x62, 0x6f, 0x78, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56,
532 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x12, 0x28, 0x0a, 0x10,
533 0x64, 0x6f, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, 0x5f, 0x65, 0x6e, 0x76,
534 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x6f, 0x6e, 0x74, 0x49, 0x6e, 0x68, 0x65,
535 0x72, 0x69, 0x74, 0x45, 0x6e, 0x76, 0x22, 0x7e, 0x0a, 0x13, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f,
536 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a,
537 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
538 0x65, 0x12, 0x16, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
539 0x48, 0x00, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x05, 0x75, 0x6e, 0x73,
540 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x05, 0x75, 0x6e, 0x73, 0x65,
541 0x74, 0x12, 0x1a, 0x0a, 0x07, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01,
542 0x28, 0x08, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, 0x42, 0x07, 0x0a,
543 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x4a, 0x0a, 0x04, 0x43, 0x6f, 0x70, 0x79, 0x12, 0x12,
544 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72,
545 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x02, 0x28, 0x09, 0x52, 0x02,
546 0x74, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65,
547 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x61, 0x62,
548 0x6c, 0x65, 0x22, 0x55, 0x0a, 0x07, 0x52, 0x73, 0x70, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a,
549 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c,
550 0x65, 0x12, 0x36, 0x0a, 0x0d, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e,
551 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x62, 0x6f, 0x78, 0x2e,
552 0x50, 0x61, 0x74, 0x68, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x70, 0x61, 0x74,
553 0x68, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x31, 0x0a, 0x0b, 0x50, 0x61, 0x74,
554 0x68, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d,
555 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02,
556 0x74, 0x6f, 0x18, 0x02, 0x20, 0x02, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x42, 0x23, 0x5a, 0x21,
557 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2f, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x2f, 0x63, 0x6d,
558 0x64, 0x2f, 0x73, 0x62, 0x6f, 0x78, 0x2f, 0x73, 0x62, 0x6f, 0x78, 0x5f, 0x70, 0x72, 0x6f, 0x74,
559 0x6f,
Colin Crosse16ce362020-11-12 08:29:30 -0800560}
561
Dan Willemsen4591b642021-05-24 14:24:12 -0700562var (
563 file_sbox_proto_rawDescOnce sync.Once
564 file_sbox_proto_rawDescData = file_sbox_proto_rawDesc
565)
566
567func file_sbox_proto_rawDescGZIP() []byte {
568 file_sbox_proto_rawDescOnce.Do(func() {
569 file_sbox_proto_rawDescData = protoimpl.X.CompressGZIP(file_sbox_proto_rawDescData)
570 })
571 return file_sbox_proto_rawDescData
Colin Crosse16ce362020-11-12 08:29:30 -0800572}
573
Cole Faust1ead86c2024-08-23 14:41:51 -0700574var file_sbox_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
Dan Willemsen4591b642021-05-24 14:24:12 -0700575var file_sbox_proto_goTypes = []interface{}{
Cole Faust1ead86c2024-08-23 14:41:51 -0700576 (*Manifest)(nil), // 0: sbox.Manifest
577 (*Command)(nil), // 1: sbox.Command
578 (*EnvironmentVariable)(nil), // 2: sbox.EnvironmentVariable
579 (*Copy)(nil), // 3: sbox.Copy
580 (*RspFile)(nil), // 4: sbox.RspFile
581 (*PathMapping)(nil), // 5: sbox.PathMapping
Dan Willemsen4591b642021-05-24 14:24:12 -0700582}
583var file_sbox_proto_depIdxs = []int32{
584 1, // 0: sbox.Manifest.commands:type_name -> sbox.Command
Cole Faust1ead86c2024-08-23 14:41:51 -0700585 3, // 1: sbox.Command.copy_before:type_name -> sbox.Copy
586 3, // 2: sbox.Command.copy_after:type_name -> sbox.Copy
587 4, // 3: sbox.Command.rsp_files:type_name -> sbox.RspFile
588 2, // 4: sbox.Command.env:type_name -> sbox.EnvironmentVariable
589 5, // 5: sbox.RspFile.path_mappings:type_name -> sbox.PathMapping
590 6, // [6:6] is the sub-list for method output_type
591 6, // [6:6] is the sub-list for method input_type
592 6, // [6:6] is the sub-list for extension type_name
593 6, // [6:6] is the sub-list for extension extendee
594 0, // [0:6] is the sub-list for field type_name
Dan Willemsen4591b642021-05-24 14:24:12 -0700595}
596
597func init() { file_sbox_proto_init() }
598func file_sbox_proto_init() {
599 if File_sbox_proto != nil {
600 return
601 }
602 if !protoimpl.UnsafeEnabled {
603 file_sbox_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
604 switch v := v.(*Manifest); i {
605 case 0:
606 return &v.state
607 case 1:
608 return &v.sizeCache
609 case 2:
610 return &v.unknownFields
611 default:
612 return nil
613 }
614 }
615 file_sbox_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
616 switch v := v.(*Command); i {
617 case 0:
618 return &v.state
619 case 1:
620 return &v.sizeCache
621 case 2:
622 return &v.unknownFields
623 default:
624 return nil
625 }
626 }
627 file_sbox_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
Cole Faust1ead86c2024-08-23 14:41:51 -0700628 switch v := v.(*EnvironmentVariable); i {
Dan Willemsen4591b642021-05-24 14:24:12 -0700629 case 0:
630 return &v.state
631 case 1:
632 return &v.sizeCache
633 case 2:
634 return &v.unknownFields
635 default:
636 return nil
637 }
638 }
639 file_sbox_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
Cole Faust1ead86c2024-08-23 14:41:51 -0700640 switch v := v.(*Copy); i {
Dan Willemsen4591b642021-05-24 14:24:12 -0700641 case 0:
642 return &v.state
643 case 1:
644 return &v.sizeCache
645 case 2:
646 return &v.unknownFields
647 default:
648 return nil
649 }
650 }
651 file_sbox_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
Cole Faust1ead86c2024-08-23 14:41:51 -0700652 switch v := v.(*RspFile); i {
653 case 0:
654 return &v.state
655 case 1:
656 return &v.sizeCache
657 case 2:
658 return &v.unknownFields
659 default:
660 return nil
661 }
662 }
663 file_sbox_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
Dan Willemsen4591b642021-05-24 14:24:12 -0700664 switch v := v.(*PathMapping); i {
665 case 0:
666 return &v.state
667 case 1:
668 return &v.sizeCache
669 case 2:
670 return &v.unknownFields
671 default:
672 return nil
673 }
674 }
675 }
Cole Faust1ead86c2024-08-23 14:41:51 -0700676 file_sbox_proto_msgTypes[2].OneofWrappers = []interface{}{
677 (*EnvironmentVariable_Value)(nil),
678 (*EnvironmentVariable_Unset)(nil),
679 (*EnvironmentVariable_Inherit)(nil),
680 }
Dan Willemsen4591b642021-05-24 14:24:12 -0700681 type x struct{}
682 out := protoimpl.TypeBuilder{
683 File: protoimpl.DescBuilder{
684 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
685 RawDescriptor: file_sbox_proto_rawDesc,
686 NumEnums: 0,
Cole Faust1ead86c2024-08-23 14:41:51 -0700687 NumMessages: 6,
Dan Willemsen4591b642021-05-24 14:24:12 -0700688 NumExtensions: 0,
689 NumServices: 0,
690 },
691 GoTypes: file_sbox_proto_goTypes,
692 DependencyIndexes: file_sbox_proto_depIdxs,
693 MessageInfos: file_sbox_proto_msgTypes,
694 }.Build()
695 File_sbox_proto = out.File
696 file_sbox_proto_rawDesc = nil
697 file_sbox_proto_goTypes = nil
698 file_sbox_proto_depIdxs = nil
Colin Crosse16ce362020-11-12 08:29:30 -0800699}