Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 1 | // 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 Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 15 | // Code generated by protoc-gen-go. DO NOT EDIT. |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 16 | // versions: |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 17 | // protoc-gen-go v1.33.0 |
| 18 | // protoc v3.21.12 |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 19 | // source: sbox.proto |
| 20 | |
| 21 | package sbox_proto |
| 22 | |
| 23 | import ( |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 24 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 25 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 26 | reflect "reflect" |
| 27 | sync "sync" |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 28 | ) |
| 29 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 30 | const ( |
| 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 Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 36 | |
| 37 | // A set of commands to run in a sandbox. |
| 38 | type Manifest struct { |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 39 | state protoimpl.MessageState |
| 40 | sizeCache protoimpl.SizeCache |
| 41 | unknownFields protoimpl.UnknownFields |
| 42 | |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 43 | // 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 Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 47 | OutputDepfile *string `protobuf:"bytes,2,opt,name=output_depfile,json=outputDepfile" json:"output_depfile,omitempty"` |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 48 | } |
| 49 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 50 | func (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 | |
| 59 | func (x *Manifest) String() string { |
| 60 | return protoimpl.X.MessageStringOf(x) |
| 61 | } |
| 62 | |
| 63 | func (*Manifest) ProtoMessage() {} |
| 64 | |
| 65 | func (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 Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 78 | func (*Manifest) Descriptor() ([]byte, []int) { |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 79 | return file_sbox_proto_rawDescGZIP(), []int{0} |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 80 | } |
| 81 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 82 | func (x *Manifest) GetCommands() []*Command { |
| 83 | if x != nil { |
| 84 | return x.Commands |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 85 | } |
| 86 | return nil |
| 87 | } |
| 88 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 89 | func (x *Manifest) GetOutputDepfile() string { |
| 90 | if x != nil && x.OutputDepfile != nil { |
| 91 | return *x.OutputDepfile |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 92 | } |
| 93 | return "" |
| 94 | } |
| 95 | |
| 96 | // SandboxManifest describes a command to run in the sandbox. |
| 97 | type Command struct { |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 98 | state protoimpl.MessageState |
| 99 | sizeCache protoimpl.SizeCache |
| 100 | unknownFields protoimpl.UnknownFields |
| 101 | |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 102 | // 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 Cross | e55bd42 | 2021-03-23 13:44:30 -0700 | [diff] [blame] | 115 | 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 Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 118 | RspFiles []*RspFile `protobuf:"bytes,6,rep,name=rsp_files,json=rspFiles" json:"rsp_files,omitempty"` |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 119 | // 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 Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 126 | } |
| 127 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 128 | func (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 | |
| 137 | func (x *Command) String() string { |
| 138 | return protoimpl.X.MessageStringOf(x) |
| 139 | } |
| 140 | |
| 141 | func (*Command) ProtoMessage() {} |
| 142 | |
| 143 | func (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 Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 156 | func (*Command) Descriptor() ([]byte, []int) { |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 157 | return file_sbox_proto_rawDescGZIP(), []int{1} |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 158 | } |
| 159 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 160 | func (x *Command) GetCopyBefore() []*Copy { |
| 161 | if x != nil { |
| 162 | return x.CopyBefore |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 163 | } |
| 164 | return nil |
| 165 | } |
| 166 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 167 | func (x *Command) GetChdir() bool { |
| 168 | if x != nil && x.Chdir != nil { |
| 169 | return *x.Chdir |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 170 | } |
| 171 | return false |
| 172 | } |
| 173 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 174 | func (x *Command) GetCommand() string { |
| 175 | if x != nil && x.Command != nil { |
| 176 | return *x.Command |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 177 | } |
| 178 | return "" |
| 179 | } |
| 180 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 181 | func (x *Command) GetCopyAfter() []*Copy { |
| 182 | if x != nil { |
| 183 | return x.CopyAfter |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 184 | } |
| 185 | return nil |
| 186 | } |
| 187 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 188 | func (x *Command) GetInputHash() string { |
| 189 | if x != nil && x.InputHash != nil { |
| 190 | return *x.InputHash |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 191 | } |
| 192 | return "" |
| 193 | } |
| 194 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 195 | func (x *Command) GetRspFiles() []*RspFile { |
| 196 | if x != nil { |
| 197 | return x.RspFiles |
Colin Cross | e55bd42 | 2021-03-23 13:44:30 -0700 | [diff] [blame] | 198 | } |
| 199 | return nil |
| 200 | } |
| 201 | |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 202 | func (x *Command) GetEnv() []*EnvironmentVariable { |
| 203 | if x != nil { |
| 204 | return x.Env |
| 205 | } |
| 206 | return nil |
| 207 | } |
| 208 | |
| 209 | func (x *Command) GetDontInheritEnv() bool { |
| 210 | if x != nil && x.DontInheritEnv != nil { |
| 211 | return *x.DontInheritEnv |
| 212 | } |
| 213 | return false |
| 214 | } |
| 215 | |
| 216 | type 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 | |
| 231 | func (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 | |
| 240 | func (x *EnvironmentVariable) String() string { |
| 241 | return protoimpl.X.MessageStringOf(x) |
| 242 | } |
| 243 | |
| 244 | func (*EnvironmentVariable) ProtoMessage() {} |
| 245 | |
| 246 | func (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. |
| 259 | func (*EnvironmentVariable) Descriptor() ([]byte, []int) { |
| 260 | return file_sbox_proto_rawDescGZIP(), []int{2} |
| 261 | } |
| 262 | |
| 263 | func (x *EnvironmentVariable) GetName() string { |
| 264 | if x != nil && x.Name != nil { |
| 265 | return *x.Name |
| 266 | } |
| 267 | return "" |
| 268 | } |
| 269 | |
| 270 | func (m *EnvironmentVariable) GetState() isEnvironmentVariable_State { |
| 271 | if m != nil { |
| 272 | return m.State |
| 273 | } |
| 274 | return nil |
| 275 | } |
| 276 | |
| 277 | func (x *EnvironmentVariable) GetValue() string { |
| 278 | if x, ok := x.GetState().(*EnvironmentVariable_Value); ok { |
| 279 | return x.Value |
| 280 | } |
| 281 | return "" |
| 282 | } |
| 283 | |
| 284 | func (x *EnvironmentVariable) GetUnset() bool { |
| 285 | if x, ok := x.GetState().(*EnvironmentVariable_Unset); ok { |
| 286 | return x.Unset |
| 287 | } |
| 288 | return false |
| 289 | } |
| 290 | |
| 291 | func (x *EnvironmentVariable) GetInherit() bool { |
| 292 | if x, ok := x.GetState().(*EnvironmentVariable_Inherit); ok { |
| 293 | return x.Inherit |
| 294 | } |
| 295 | return false |
| 296 | } |
| 297 | |
| 298 | type isEnvironmentVariable_State interface { |
| 299 | isEnvironmentVariable_State() |
| 300 | } |
| 301 | |
| 302 | type EnvironmentVariable_Value struct { |
| 303 | // The value to set the environment variable to. |
| 304 | Value string `protobuf:"bytes,2,opt,name=value,oneof"` |
| 305 | } |
| 306 | |
| 307 | type 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 | |
| 312 | type 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 | |
| 319 | func (*EnvironmentVariable_Value) isEnvironmentVariable_State() {} |
| 320 | |
| 321 | func (*EnvironmentVariable_Unset) isEnvironmentVariable_State() {} |
| 322 | |
| 323 | func (*EnvironmentVariable_Inherit) isEnvironmentVariable_State() {} |
| 324 | |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 325 | // 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. |
| 328 | type Copy struct { |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 329 | state protoimpl.MessageState |
| 330 | sizeCache protoimpl.SizeCache |
| 331 | unknownFields protoimpl.UnknownFields |
| 332 | |
Colin Cross | 859dfd9 | 2020-11-30 20:12:47 -0800 | [diff] [blame] | 333 | 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 Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 336 | Executable *bool `protobuf:"varint,3,opt,name=executable" json:"executable,omitempty"` |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 337 | } |
| 338 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 339 | func (x *Copy) Reset() { |
| 340 | *x = Copy{} |
| 341 | if protoimpl.UnsafeEnabled { |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 342 | mi := &file_sbox_proto_msgTypes[3] |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 343 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 344 | ms.StoreMessageInfo(mi) |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | func (x *Copy) String() string { |
| 349 | return protoimpl.X.MessageStringOf(x) |
| 350 | } |
| 351 | |
| 352 | func (*Copy) ProtoMessage() {} |
| 353 | |
| 354 | func (x *Copy) ProtoReflect() protoreflect.Message { |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 355 | mi := &file_sbox_proto_msgTypes[3] |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 356 | 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 Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 367 | func (*Copy) Descriptor() ([]byte, []int) { |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 368 | return file_sbox_proto_rawDescGZIP(), []int{3} |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 369 | } |
| 370 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 371 | func (x *Copy) GetFrom() string { |
| 372 | if x != nil && x.From != nil { |
| 373 | return *x.From |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 374 | } |
| 375 | return "" |
| 376 | } |
| 377 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 378 | func (x *Copy) GetTo() string { |
| 379 | if x != nil && x.To != nil { |
| 380 | return *x.To |
Colin Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 381 | } |
| 382 | return "" |
| 383 | } |
| 384 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 385 | func (x *Copy) GetExecutable() bool { |
| 386 | if x != nil && x.Executable != nil { |
| 387 | return *x.Executable |
Colin Cross | 859dfd9 | 2020-11-30 20:12:47 -0800 | [diff] [blame] | 388 | } |
| 389 | return false |
| 390 | } |
| 391 | |
Colin Cross | e55bd42 | 2021-03-23 13:44:30 -0700 | [diff] [blame] | 392 | // RspFile describes an rspfile that should be copied into the sandbox directory. |
| 393 | type RspFile struct { |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 394 | state protoimpl.MessageState |
| 395 | sizeCache protoimpl.SizeCache |
| 396 | unknownFields protoimpl.UnknownFields |
| 397 | |
Colin Cross | e55bd42 | 2021-03-23 13:44:30 -0700 | [diff] [blame] | 398 | // 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 Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 401 | PathMappings []*PathMapping `protobuf:"bytes,2,rep,name=path_mappings,json=pathMappings" json:"path_mappings,omitempty"` |
Colin Cross | e55bd42 | 2021-03-23 13:44:30 -0700 | [diff] [blame] | 402 | } |
| 403 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 404 | func (x *RspFile) Reset() { |
| 405 | *x = RspFile{} |
| 406 | if protoimpl.UnsafeEnabled { |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 407 | mi := &file_sbox_proto_msgTypes[4] |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 408 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 409 | ms.StoreMessageInfo(mi) |
| 410 | } |
| 411 | } |
| 412 | |
| 413 | func (x *RspFile) String() string { |
| 414 | return protoimpl.X.MessageStringOf(x) |
| 415 | } |
| 416 | |
| 417 | func (*RspFile) ProtoMessage() {} |
| 418 | |
| 419 | func (x *RspFile) ProtoReflect() protoreflect.Message { |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 420 | mi := &file_sbox_proto_msgTypes[4] |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 421 | 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 Cross | e55bd42 | 2021-03-23 13:44:30 -0700 | [diff] [blame] | 432 | func (*RspFile) Descriptor() ([]byte, []int) { |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 433 | return file_sbox_proto_rawDescGZIP(), []int{4} |
Colin Cross | e55bd42 | 2021-03-23 13:44:30 -0700 | [diff] [blame] | 434 | } |
| 435 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 436 | func (x *RspFile) GetFile() string { |
| 437 | if x != nil && x.File != nil { |
| 438 | return *x.File |
Colin Cross | e55bd42 | 2021-03-23 13:44:30 -0700 | [diff] [blame] | 439 | } |
| 440 | return "" |
| 441 | } |
| 442 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 443 | func (x *RspFile) GetPathMappings() []*PathMapping { |
| 444 | if x != nil { |
| 445 | return x.PathMappings |
Colin Cross | e55bd42 | 2021-03-23 13:44:30 -0700 | [diff] [blame] | 446 | } |
| 447 | return nil |
| 448 | } |
| 449 | |
| 450 | // PathMapping describes a mapping from a path outside the sandbox to the path inside the sandbox. |
| 451 | type PathMapping struct { |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 452 | 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 Cross | e55bd42 | 2021-03-23 13:44:30 -0700 | [diff] [blame] | 458 | } |
| 459 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 460 | func (x *PathMapping) Reset() { |
| 461 | *x = PathMapping{} |
| 462 | if protoimpl.UnsafeEnabled { |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 463 | mi := &file_sbox_proto_msgTypes[5] |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 464 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 465 | ms.StoreMessageInfo(mi) |
| 466 | } |
| 467 | } |
| 468 | |
| 469 | func (x *PathMapping) String() string { |
| 470 | return protoimpl.X.MessageStringOf(x) |
| 471 | } |
| 472 | |
| 473 | func (*PathMapping) ProtoMessage() {} |
| 474 | |
| 475 | func (x *PathMapping) ProtoReflect() protoreflect.Message { |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 476 | mi := &file_sbox_proto_msgTypes[5] |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 477 | 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 Cross | e55bd42 | 2021-03-23 13:44:30 -0700 | [diff] [blame] | 488 | func (*PathMapping) Descriptor() ([]byte, []int) { |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 489 | return file_sbox_proto_rawDescGZIP(), []int{5} |
Colin Cross | e55bd42 | 2021-03-23 13:44:30 -0700 | [diff] [blame] | 490 | } |
| 491 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 492 | func (x *PathMapping) GetFrom() string { |
| 493 | if x != nil && x.From != nil { |
| 494 | return *x.From |
Colin Cross | e55bd42 | 2021-03-23 13:44:30 -0700 | [diff] [blame] | 495 | } |
| 496 | return "" |
| 497 | } |
| 498 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 499 | func (x *PathMapping) GetTo() string { |
| 500 | if x != nil && x.To != nil { |
| 501 | return *x.To |
Colin Cross | e55bd42 | 2021-03-23 13:44:30 -0700 | [diff] [blame] | 502 | } |
| 503 | return "" |
| 504 | } |
| 505 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 506 | var File_sbox_proto protoreflect.FileDescriptor |
| 507 | |
| 508 | var 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 Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 516 | 0x22, 0xb3, 0x02, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x2b, 0x0a, 0x0b, |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 517 | 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 Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 529 | 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 Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 560 | } |
| 561 | |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 562 | var ( |
| 563 | file_sbox_proto_rawDescOnce sync.Once |
| 564 | file_sbox_proto_rawDescData = file_sbox_proto_rawDesc |
| 565 | ) |
| 566 | |
| 567 | func 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 Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 572 | } |
| 573 | |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 574 | var file_sbox_proto_msgTypes = make([]protoimpl.MessageInfo, 6) |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 575 | var file_sbox_proto_goTypes = []interface{}{ |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 576 | (*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 Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 582 | } |
| 583 | var file_sbox_proto_depIdxs = []int32{ |
| 584 | 1, // 0: sbox.Manifest.commands:type_name -> sbox.Command |
Cole Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 585 | 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 Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 595 | } |
| 596 | |
| 597 | func init() { file_sbox_proto_init() } |
| 598 | func 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 Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 628 | switch v := v.(*EnvironmentVariable); i { |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 629 | 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 Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 640 | switch v := v.(*Copy); i { |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 641 | 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 Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 652 | 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 Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 664 | 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 Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 676 | file_sbox_proto_msgTypes[2].OneofWrappers = []interface{}{ |
| 677 | (*EnvironmentVariable_Value)(nil), |
| 678 | (*EnvironmentVariable_Unset)(nil), |
| 679 | (*EnvironmentVariable_Inherit)(nil), |
| 680 | } |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 681 | 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 Faust | 1ead86c | 2024-08-23 14:41:51 -0700 | [diff] [blame^] | 687 | NumMessages: 6, |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 688 | 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 Cross | e16ce36 | 2020-11-12 08:29:30 -0800 | [diff] [blame] | 699 | } |