go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/cipkg/core/derivation.pb.go (about) 1 // Copyright 2023 The LUCI Authors. 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.31.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/cipkg/core/derivation.proto 20 21 package core 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 reflect "reflect" 27 sync "sync" 28 ) 29 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 ) 36 37 // Derivation is the atomic step transformed from different types of actions. It 38 // should contain all information used during the execution in its definition. 39 // NOTE: ${out} enviroment variable is not part of the derivation. We can't 40 // determine the output directory before we have a deterministic derivation so 41 // it has to be excluded from derivation to avoid self-reference. 42 type Derivation struct { 43 state protoimpl.MessageState 44 sizeCache protoimpl.SizeCache 45 unknownFields protoimpl.UnknownFields 46 47 // Name is the name of the derivation's output and serves ONLY as an 48 // indicator of its output. 49 // The name shouldn't include version of the package and should represents 50 // its content (e.g. cpython3, curl, ninja), NOT the action taken place 51 // (e.g. build_cpython3, build_curl, build_ninja). 52 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 53 // Platform is a textual description of the platform in which this Derivation 54 // should be performed, and serves ONLY as an indicator of implicit 55 // environmental contamination of the output of the derivation. 56 // Actions should relies on cipkg/base/actions.ActionProcessor to populate 57 // this field appropriately. 58 Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"` 59 // Args are the `argv` vector of the derivation when executed. 60 Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` 61 // Env includes all the environment variables for the execution isolated from 62 // host. 63 // NOTE: ${out} is not included here but will be presented in the environment 64 // during execution. 65 Env []string `protobuf:"bytes,4,rep,name=env,proto3" json:"env,omitempty"` 66 // Inputs are ids of all packages referred by this derivation. 67 // It depends on the package manager to ensure packages represented by the 68 // derivation IDs will be available before execution. 69 // Ideally derivation should only be able to access derivations listed in the 70 // inputs. Executor may lock down the runtime environment to prevent the 71 // derivation from accessing any resource other than those listed in the 72 // future. 73 Inputs []string `protobuf:"bytes,5,rep,name=inputs,proto3" json:"inputs,omitempty"` 74 // fixed_output, if set, represents the content of the output. ID will be 75 // generated based on fixed_output exclusively. 76 // WARNING: Using fixed_output means shifting away the responsibility for 77 // detecting any change from derivation. This should be rarely touched and 78 // most of its use cases have a builtin implementation to take care of the 79 // generated fixed_output value. Any use of it outside the builtin modules 80 // are strongly discouraged. YOU HAVE BEEN WARNED. 81 FixedOutput string `protobuf:"bytes,6,opt,name=fixed_output,json=fixedOutput,proto3" json:"fixed_output,omitempty"` 82 } 83 84 func (x *Derivation) Reset() { 85 *x = Derivation{} 86 if protoimpl.UnsafeEnabled { 87 mi := &file_go_chromium_org_luci_cipkg_core_derivation_proto_msgTypes[0] 88 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 89 ms.StoreMessageInfo(mi) 90 } 91 } 92 93 func (x *Derivation) String() string { 94 return protoimpl.X.MessageStringOf(x) 95 } 96 97 func (*Derivation) ProtoMessage() {} 98 99 func (x *Derivation) ProtoReflect() protoreflect.Message { 100 mi := &file_go_chromium_org_luci_cipkg_core_derivation_proto_msgTypes[0] 101 if protoimpl.UnsafeEnabled && x != nil { 102 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 103 if ms.LoadMessageInfo() == nil { 104 ms.StoreMessageInfo(mi) 105 } 106 return ms 107 } 108 return mi.MessageOf(x) 109 } 110 111 // Deprecated: Use Derivation.ProtoReflect.Descriptor instead. 112 func (*Derivation) Descriptor() ([]byte, []int) { 113 return file_go_chromium_org_luci_cipkg_core_derivation_proto_rawDescGZIP(), []int{0} 114 } 115 116 func (x *Derivation) GetName() string { 117 if x != nil { 118 return x.Name 119 } 120 return "" 121 } 122 123 func (x *Derivation) GetPlatform() string { 124 if x != nil { 125 return x.Platform 126 } 127 return "" 128 } 129 130 func (x *Derivation) GetArgs() []string { 131 if x != nil { 132 return x.Args 133 } 134 return nil 135 } 136 137 func (x *Derivation) GetEnv() []string { 138 if x != nil { 139 return x.Env 140 } 141 return nil 142 } 143 144 func (x *Derivation) GetInputs() []string { 145 if x != nil { 146 return x.Inputs 147 } 148 return nil 149 } 150 151 func (x *Derivation) GetFixedOutput() string { 152 if x != nil { 153 return x.FixedOutput 154 } 155 return "" 156 } 157 158 var File_go_chromium_org_luci_cipkg_core_derivation_proto protoreflect.FileDescriptor 159 160 var file_go_chromium_org_luci_cipkg_core_derivation_proto_rawDesc = []byte{ 161 0x0a, 0x30, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 162 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x69, 0x70, 0x6b, 0x67, 0x2f, 0x63, 0x6f, 0x72, 163 0x65, 0x2f, 0x64, 0x65, 0x72, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 164 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x72, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 165 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 166 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 167 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 168 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 169 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x04, 0x20, 0x03, 170 0x28, 0x09, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 171 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 172 0x21, 0x0a, 0x0c, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 173 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x69, 0x78, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x70, 174 0x75, 0x74, 0x42, 0x21, 0x5a, 0x1f, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 175 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x69, 0x70, 0x6b, 0x67, 176 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 177 } 178 179 var ( 180 file_go_chromium_org_luci_cipkg_core_derivation_proto_rawDescOnce sync.Once 181 file_go_chromium_org_luci_cipkg_core_derivation_proto_rawDescData = file_go_chromium_org_luci_cipkg_core_derivation_proto_rawDesc 182 ) 183 184 func file_go_chromium_org_luci_cipkg_core_derivation_proto_rawDescGZIP() []byte { 185 file_go_chromium_org_luci_cipkg_core_derivation_proto_rawDescOnce.Do(func() { 186 file_go_chromium_org_luci_cipkg_core_derivation_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_cipkg_core_derivation_proto_rawDescData) 187 }) 188 return file_go_chromium_org_luci_cipkg_core_derivation_proto_rawDescData 189 } 190 191 var file_go_chromium_org_luci_cipkg_core_derivation_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 192 var file_go_chromium_org_luci_cipkg_core_derivation_proto_goTypes = []interface{}{ 193 (*Derivation)(nil), // 0: Derivation 194 } 195 var file_go_chromium_org_luci_cipkg_core_derivation_proto_depIdxs = []int32{ 196 0, // [0:0] is the sub-list for method output_type 197 0, // [0:0] is the sub-list for method input_type 198 0, // [0:0] is the sub-list for extension type_name 199 0, // [0:0] is the sub-list for extension extendee 200 0, // [0:0] is the sub-list for field type_name 201 } 202 203 func init() { file_go_chromium_org_luci_cipkg_core_derivation_proto_init() } 204 func file_go_chromium_org_luci_cipkg_core_derivation_proto_init() { 205 if File_go_chromium_org_luci_cipkg_core_derivation_proto != nil { 206 return 207 } 208 if !protoimpl.UnsafeEnabled { 209 file_go_chromium_org_luci_cipkg_core_derivation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 210 switch v := v.(*Derivation); i { 211 case 0: 212 return &v.state 213 case 1: 214 return &v.sizeCache 215 case 2: 216 return &v.unknownFields 217 default: 218 return nil 219 } 220 } 221 } 222 type x struct{} 223 out := protoimpl.TypeBuilder{ 224 File: protoimpl.DescBuilder{ 225 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 226 RawDescriptor: file_go_chromium_org_luci_cipkg_core_derivation_proto_rawDesc, 227 NumEnums: 0, 228 NumMessages: 1, 229 NumExtensions: 0, 230 NumServices: 0, 231 }, 232 GoTypes: file_go_chromium_org_luci_cipkg_core_derivation_proto_goTypes, 233 DependencyIndexes: file_go_chromium_org_luci_cipkg_core_derivation_proto_depIdxs, 234 MessageInfos: file_go_chromium_org_luci_cipkg_core_derivation_proto_msgTypes, 235 }.Build() 236 File_go_chromium_org_luci_cipkg_core_derivation_proto = out.File 237 file_go_chromium_org_luci_cipkg_core_derivation_proto_rawDesc = nil 238 file_go_chromium_org_luci_cipkg_core_derivation_proto_goTypes = nil 239 file_go_chromium_org_luci_cipkg_core_derivation_proto_depIdxs = nil 240 }