go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/deploy/api/rpcpb/actuations.pb.go (about) 1 // Copyright 2022 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/deploy/api/rpcpb/actuations.proto 20 21 package rpcpb 22 23 import ( 24 modelpb "go.chromium.org/luci/deploy/api/modelpb" 25 status "google.golang.org/genproto/googleapis/rpc/status" 26 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 27 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 28 reflect "reflect" 29 sync "sync" 30 ) 31 32 const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37 ) 38 39 // Sent the actuator before it starts updating a deployment. 40 type BeginActuationRequest struct { 41 state protoimpl.MessageState 42 sizeCache protoimpl.SizeCache 43 unknownFields protoimpl.UnknownFields 44 45 // A new actuation to perform. 46 // 47 // Must have a new unique ID and be in EXECUTING state. If an actuation with 48 // such ID already exists, this request is assumed to be a retry and handled 49 // as such (perhaps producing FAILED_PRECONDITION response if something 50 // doesn't add up). 51 Actuation *modelpb.Actuation `protobuf:"bytes,1,opt,name=actuation,proto3" json:"actuation,omitempty"` 52 // Assets to be actuated as a map asset_id => AssetToActuate. 53 // 54 // For each asset the BeginActuationResponse would contain the corresponding 55 // ActuationDecision. 56 Assets map[string]*AssetToActuate `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 57 // Metadata of all artifacts referenced in `assets`. 58 Artifacts []*modelpb.Artifact `protobuf:"bytes,3,rep,name=artifacts,proto3" json:"artifacts,omitempty"` 59 } 60 61 func (x *BeginActuationRequest) Reset() { 62 *x = BeginActuationRequest{} 63 if protoimpl.UnsafeEnabled { 64 mi := &file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[0] 65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 66 ms.StoreMessageInfo(mi) 67 } 68 } 69 70 func (x *BeginActuationRequest) String() string { 71 return protoimpl.X.MessageStringOf(x) 72 } 73 74 func (*BeginActuationRequest) ProtoMessage() {} 75 76 func (x *BeginActuationRequest) ProtoReflect() protoreflect.Message { 77 mi := &file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[0] 78 if protoimpl.UnsafeEnabled && x != nil { 79 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 80 if ms.LoadMessageInfo() == nil { 81 ms.StoreMessageInfo(mi) 82 } 83 return ms 84 } 85 return mi.MessageOf(x) 86 } 87 88 // Deprecated: Use BeginActuationRequest.ProtoReflect.Descriptor instead. 89 func (*BeginActuationRequest) Descriptor() ([]byte, []int) { 90 return file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDescGZIP(), []int{0} 91 } 92 93 func (x *BeginActuationRequest) GetActuation() *modelpb.Actuation { 94 if x != nil { 95 return x.Actuation 96 } 97 return nil 98 } 99 100 func (x *BeginActuationRequest) GetAssets() map[string]*AssetToActuate { 101 if x != nil { 102 return x.Assets 103 } 104 return nil 105 } 106 107 func (x *BeginActuationRequest) GetArtifacts() []*modelpb.Artifact { 108 if x != nil { 109 return x.Artifacts 110 } 111 return nil 112 } 113 114 // AssetToActuate describes an asset the actuator is considering for actuation. 115 // 116 // Meaning of fields matches deploy.model.Asset message, see its doc for 117 // details. 118 // 119 // Fields `deployment` and `actuator` of AssetState will be populated based on 120 // corresponding fields in BeginActuationRequest and can be omitted here. 121 type AssetToActuate struct { 122 state protoimpl.MessageState 123 sizeCache protoimpl.SizeCache 124 unknownFields protoimpl.UnknownFields 125 126 // Asset configuration as defined in the IaC repo. 127 Config *modelpb.AssetConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` 128 // The intended state of the asset as defined in the IaC repo. 129 IntendedState *modelpb.AssetState `protobuf:"bytes,2,opt,name=intended_state,json=intendedState,proto3" json:"intended_state,omitempty"` 130 // The actual state of the asset (as scanned by the actuator). 131 ReportedState *modelpb.AssetState `protobuf:"bytes,3,opt,name=reported_state,json=reportedState,proto3" json:"reported_state,omitempty"` 132 } 133 134 func (x *AssetToActuate) Reset() { 135 *x = AssetToActuate{} 136 if protoimpl.UnsafeEnabled { 137 mi := &file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[1] 138 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 139 ms.StoreMessageInfo(mi) 140 } 141 } 142 143 func (x *AssetToActuate) String() string { 144 return protoimpl.X.MessageStringOf(x) 145 } 146 147 func (*AssetToActuate) ProtoMessage() {} 148 149 func (x *AssetToActuate) ProtoReflect() protoreflect.Message { 150 mi := &file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[1] 151 if protoimpl.UnsafeEnabled && x != nil { 152 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 153 if ms.LoadMessageInfo() == nil { 154 ms.StoreMessageInfo(mi) 155 } 156 return ms 157 } 158 return mi.MessageOf(x) 159 } 160 161 // Deprecated: Use AssetToActuate.ProtoReflect.Descriptor instead. 162 func (*AssetToActuate) Descriptor() ([]byte, []int) { 163 return file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDescGZIP(), []int{1} 164 } 165 166 func (x *AssetToActuate) GetConfig() *modelpb.AssetConfig { 167 if x != nil { 168 return x.Config 169 } 170 return nil 171 } 172 173 func (x *AssetToActuate) GetIntendedState() *modelpb.AssetState { 174 if x != nil { 175 return x.IntendedState 176 } 177 return nil 178 } 179 180 func (x *AssetToActuate) GetReportedState() *modelpb.AssetState { 181 if x != nil { 182 return x.ReportedState 183 } 184 return nil 185 } 186 187 // Describes what to to with assets reported in BeginActuationRequest. 188 type BeginActuationResponse struct { 189 state protoimpl.MessageState 190 sizeCache protoimpl.SizeCache 191 unknownFields protoimpl.UnknownFields 192 193 // Per-asset decision whether to proceed with the actuation or to skip it. 194 Decisions map[string]*modelpb.ActuationDecision `protobuf:"bytes,1,rep,name=decisions,proto3" json:"decisions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 195 } 196 197 func (x *BeginActuationResponse) Reset() { 198 *x = BeginActuationResponse{} 199 if protoimpl.UnsafeEnabled { 200 mi := &file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[2] 201 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 202 ms.StoreMessageInfo(mi) 203 } 204 } 205 206 func (x *BeginActuationResponse) String() string { 207 return protoimpl.X.MessageStringOf(x) 208 } 209 210 func (*BeginActuationResponse) ProtoMessage() {} 211 212 func (x *BeginActuationResponse) ProtoReflect() protoreflect.Message { 213 mi := &file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[2] 214 if protoimpl.UnsafeEnabled && x != nil { 215 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 216 if ms.LoadMessageInfo() == nil { 217 ms.StoreMessageInfo(mi) 218 } 219 return ms 220 } 221 return mi.MessageOf(x) 222 } 223 224 // Deprecated: Use BeginActuationResponse.ProtoReflect.Descriptor instead. 225 func (*BeginActuationResponse) Descriptor() ([]byte, []int) { 226 return file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDescGZIP(), []int{2} 227 } 228 229 func (x *BeginActuationResponse) GetDecisions() map[string]*modelpb.ActuationDecision { 230 if x != nil { 231 return x.Decisions 232 } 233 return nil 234 } 235 236 // Reports the outcome of an actuation. 237 type EndActuationRequest struct { 238 state protoimpl.MessageState 239 sizeCache protoimpl.SizeCache 240 unknownFields protoimpl.UnknownFields 241 242 // ID of the actuation that was passed to BeginActuation RPC previously. 243 ActuationId string `protobuf:"bytes,1,opt,name=actuation_id,json=actuationId,proto3" json:"actuation_id,omitempty"` 244 // Error details if the actuation failed (perhaps partially). 245 Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` 246 // Link to a human-readable actuation log (if available). 247 LogUrl string `protobuf:"bytes,3,opt,name=log_url,json=logUrl,proto3" json:"log_url,omitempty"` 248 // The state of the actuated (non-skipped) assets post-actuation. 249 Assets map[string]*ActuatedAsset `protobuf:"bytes,4,rep,name=assets,proto3" json:"assets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 250 } 251 252 func (x *EndActuationRequest) Reset() { 253 *x = EndActuationRequest{} 254 if protoimpl.UnsafeEnabled { 255 mi := &file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[3] 256 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 257 ms.StoreMessageInfo(mi) 258 } 259 } 260 261 func (x *EndActuationRequest) String() string { 262 return protoimpl.X.MessageStringOf(x) 263 } 264 265 func (*EndActuationRequest) ProtoMessage() {} 266 267 func (x *EndActuationRequest) ProtoReflect() protoreflect.Message { 268 mi := &file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[3] 269 if protoimpl.UnsafeEnabled && x != nil { 270 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 271 if ms.LoadMessageInfo() == nil { 272 ms.StoreMessageInfo(mi) 273 } 274 return ms 275 } 276 return mi.MessageOf(x) 277 } 278 279 // Deprecated: Use EndActuationRequest.ProtoReflect.Descriptor instead. 280 func (*EndActuationRequest) Descriptor() ([]byte, []int) { 281 return file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDescGZIP(), []int{3} 282 } 283 284 func (x *EndActuationRequest) GetActuationId() string { 285 if x != nil { 286 return x.ActuationId 287 } 288 return "" 289 } 290 291 func (x *EndActuationRequest) GetStatus() *status.Status { 292 if x != nil { 293 return x.Status 294 } 295 return nil 296 } 297 298 func (x *EndActuationRequest) GetLogUrl() string { 299 if x != nil { 300 return x.LogUrl 301 } 302 return "" 303 } 304 305 func (x *EndActuationRequest) GetAssets() map[string]*ActuatedAsset { 306 if x != nil { 307 return x.Assets 308 } 309 return nil 310 } 311 312 // The state of the actuated asset post-actuation. 313 type ActuatedAsset struct { 314 state protoimpl.MessageState 315 sizeCache protoimpl.SizeCache 316 unknownFields protoimpl.UnknownFields 317 318 // The actual state of the asset post actuation (as scanned by the actuator). 319 State *modelpb.AssetState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` 320 } 321 322 func (x *ActuatedAsset) Reset() { 323 *x = ActuatedAsset{} 324 if protoimpl.UnsafeEnabled { 325 mi := &file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[4] 326 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 327 ms.StoreMessageInfo(mi) 328 } 329 } 330 331 func (x *ActuatedAsset) String() string { 332 return protoimpl.X.MessageStringOf(x) 333 } 334 335 func (*ActuatedAsset) ProtoMessage() {} 336 337 func (x *ActuatedAsset) ProtoReflect() protoreflect.Message { 338 mi := &file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[4] 339 if protoimpl.UnsafeEnabled && x != nil { 340 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 341 if ms.LoadMessageInfo() == nil { 342 ms.StoreMessageInfo(mi) 343 } 344 return ms 345 } 346 return mi.MessageOf(x) 347 } 348 349 // Deprecated: Use ActuatedAsset.ProtoReflect.Descriptor instead. 350 func (*ActuatedAsset) Descriptor() ([]byte, []int) { 351 return file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDescGZIP(), []int{4} 352 } 353 354 func (x *ActuatedAsset) GetState() *modelpb.AssetState { 355 if x != nil { 356 return x.State 357 } 358 return nil 359 } 360 361 // EndActuation RPC response. 362 type EndActuationResponse struct { 363 state protoimpl.MessageState 364 sizeCache protoimpl.SizeCache 365 unknownFields protoimpl.UnknownFields 366 } 367 368 func (x *EndActuationResponse) Reset() { 369 *x = EndActuationResponse{} 370 if protoimpl.UnsafeEnabled { 371 mi := &file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[5] 372 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 373 ms.StoreMessageInfo(mi) 374 } 375 } 376 377 func (x *EndActuationResponse) String() string { 378 return protoimpl.X.MessageStringOf(x) 379 } 380 381 func (*EndActuationResponse) ProtoMessage() {} 382 383 func (x *EndActuationResponse) ProtoReflect() protoreflect.Message { 384 mi := &file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[5] 385 if protoimpl.UnsafeEnabled && x != nil { 386 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 387 if ms.LoadMessageInfo() == nil { 388 ms.StoreMessageInfo(mi) 389 } 390 return ms 391 } 392 return mi.MessageOf(x) 393 } 394 395 // Deprecated: Use EndActuationResponse.ProtoReflect.Descriptor instead. 396 func (*EndActuationResponse) Descriptor() ([]byte, []int) { 397 return file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDescGZIP(), []int{5} 398 } 399 400 var File_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto protoreflect.FileDescriptor 401 402 var file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDesc = []byte{ 403 0x0a, 0x36, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 404 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x2f, 0x61, 0x70, 405 0x69, 0x2f, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 406 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 407 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 408 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 409 0x6f, 0x1a, 0x37, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 410 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x2f, 0x61, 411 0x70, 0x69, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x70, 0x62, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 412 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x36, 0x67, 0x6f, 0x2e, 0x63, 413 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 414 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 415 0x6c, 0x70, 0x62, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 416 0x74, 0x6f, 0x1a, 0x33, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 417 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x2f, 418 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x70, 0x62, 0x2f, 0x61, 0x73, 0x73, 0x65, 419 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaa, 0x02, 0x0a, 0x15, 0x42, 0x65, 0x67, 0x69, 420 0x6e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 421 0x74, 0x12, 0x35, 0x0a, 0x09, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 422 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x2e, 0x6d, 0x6f, 423 0x64, 0x65, 0x6c, 0x2e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x61, 424 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 425 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 426 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x41, 427 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 428 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x61, 0x73, 0x73, 429 0x65, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 430 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x2e, 431 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x09, 432 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x1a, 0x59, 0x0a, 0x0b, 0x41, 0x73, 0x73, 433 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 434 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x76, 0x61, 435 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x65, 0x70, 0x6c, 436 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 437 0x54, 0x6f, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 438 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc5, 0x01, 0x0a, 0x0e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x54, 0x6f, 439 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 440 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 441 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 442 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3f, 0x0a, 0x0e, 0x69, 0x6e, 443 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 444 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 445 0x6c, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x69, 0x6e, 446 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0e, 0x72, 447 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 448 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x2e, 0x6d, 0x6f, 0x64, 449 0x65, 0x6c, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x72, 450 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0xcc, 0x01, 0x0a, 451 0x16, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 452 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x09, 0x64, 0x65, 0x63, 0x69, 0x73, 453 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x64, 0x65, 0x70, 454 0x6c, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x42, 0x65, 0x67, 0x69, 455 0x6e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 456 0x73, 0x65, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 457 0x79, 0x52, 0x09, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x5d, 0x0a, 0x0e, 458 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 459 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 460 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 461 0x1f, 0x2e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x41, 462 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 463 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa0, 0x02, 0x0a, 0x13, 464 0x45, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 465 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 466 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x75, 0x61, 467 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 468 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 469 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 470 0x75, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x6c, 0x6f, 0x67, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 471 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x6f, 0x67, 0x55, 0x72, 0x6c, 0x12, 0x47, 0x0a, 0x06, 0x61, 472 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x64, 0x65, 473 0x70, 0x6c, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x6e, 0x64, 474 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 475 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x61, 0x73, 476 0x73, 0x65, 0x74, 0x73, 0x1a, 0x58, 0x0a, 0x0b, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x45, 0x6e, 477 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 478 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x33, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 479 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x2e, 0x73, 0x65, 480 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x65, 0x64, 0x41, 0x73, 481 0x73, 0x65, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3f, 482 0x0a, 0x0d, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x65, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 483 0x2e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 484 0x2e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x41, 0x73, 485 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 486 0x16, 0x0a, 0x14, 0x45, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 487 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc8, 0x01, 0x0a, 0x0a, 0x41, 0x63, 0x74, 0x75, 488 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5f, 0x0a, 0x0e, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x41, 489 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 490 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x41, 491 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 492 0x26, 0x2e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 493 0x2e, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 494 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x0c, 0x45, 0x6e, 0x64, 0x41, 0x63, 495 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 496 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x75, 497 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x64, 498 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x6e, 499 0x64, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 500 0x73, 0x65, 0x42, 0x27, 0x5a, 0x25, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 501 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 502 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 503 0x74, 0x6f, 0x33, 504 } 505 506 var ( 507 file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDescOnce sync.Once 508 file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDescData = file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDesc 509 ) 510 511 func file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDescGZIP() []byte { 512 file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDescOnce.Do(func() { 513 file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDescData) 514 }) 515 return file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDescData 516 } 517 518 var file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 519 var file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_goTypes = []interface{}{ 520 (*BeginActuationRequest)(nil), // 0: deploy.service.BeginActuationRequest 521 (*AssetToActuate)(nil), // 1: deploy.service.AssetToActuate 522 (*BeginActuationResponse)(nil), // 2: deploy.service.BeginActuationResponse 523 (*EndActuationRequest)(nil), // 3: deploy.service.EndActuationRequest 524 (*ActuatedAsset)(nil), // 4: deploy.service.ActuatedAsset 525 (*EndActuationResponse)(nil), // 5: deploy.service.EndActuationResponse 526 nil, // 6: deploy.service.BeginActuationRequest.AssetsEntry 527 nil, // 7: deploy.service.BeginActuationResponse.DecisionsEntry 528 nil, // 8: deploy.service.EndActuationRequest.AssetsEntry 529 (*modelpb.Actuation)(nil), // 9: deploy.model.Actuation 530 (*modelpb.Artifact)(nil), // 10: deploy.model.Artifact 531 (*modelpb.AssetConfig)(nil), // 11: deploy.model.AssetConfig 532 (*modelpb.AssetState)(nil), // 12: deploy.model.AssetState 533 (*status.Status)(nil), // 13: google.rpc.Status 534 (*modelpb.ActuationDecision)(nil), // 14: deploy.model.ActuationDecision 535 } 536 var file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_depIdxs = []int32{ 537 9, // 0: deploy.service.BeginActuationRequest.actuation:type_name -> deploy.model.Actuation 538 6, // 1: deploy.service.BeginActuationRequest.assets:type_name -> deploy.service.BeginActuationRequest.AssetsEntry 539 10, // 2: deploy.service.BeginActuationRequest.artifacts:type_name -> deploy.model.Artifact 540 11, // 3: deploy.service.AssetToActuate.config:type_name -> deploy.model.AssetConfig 541 12, // 4: deploy.service.AssetToActuate.intended_state:type_name -> deploy.model.AssetState 542 12, // 5: deploy.service.AssetToActuate.reported_state:type_name -> deploy.model.AssetState 543 7, // 6: deploy.service.BeginActuationResponse.decisions:type_name -> deploy.service.BeginActuationResponse.DecisionsEntry 544 13, // 7: deploy.service.EndActuationRequest.status:type_name -> google.rpc.Status 545 8, // 8: deploy.service.EndActuationRequest.assets:type_name -> deploy.service.EndActuationRequest.AssetsEntry 546 12, // 9: deploy.service.ActuatedAsset.state:type_name -> deploy.model.AssetState 547 1, // 10: deploy.service.BeginActuationRequest.AssetsEntry.value:type_name -> deploy.service.AssetToActuate 548 14, // 11: deploy.service.BeginActuationResponse.DecisionsEntry.value:type_name -> deploy.model.ActuationDecision 549 4, // 12: deploy.service.EndActuationRequest.AssetsEntry.value:type_name -> deploy.service.ActuatedAsset 550 0, // 13: deploy.service.Actuations.BeginActuation:input_type -> deploy.service.BeginActuationRequest 551 3, // 14: deploy.service.Actuations.EndActuation:input_type -> deploy.service.EndActuationRequest 552 2, // 15: deploy.service.Actuations.BeginActuation:output_type -> deploy.service.BeginActuationResponse 553 5, // 16: deploy.service.Actuations.EndActuation:output_type -> deploy.service.EndActuationResponse 554 15, // [15:17] is the sub-list for method output_type 555 13, // [13:15] is the sub-list for method input_type 556 13, // [13:13] is the sub-list for extension type_name 557 13, // [13:13] is the sub-list for extension extendee 558 0, // [0:13] is the sub-list for field type_name 559 } 560 561 func init() { file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_init() } 562 func file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_init() { 563 if File_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto != nil { 564 return 565 } 566 if !protoimpl.UnsafeEnabled { 567 file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 568 switch v := v.(*BeginActuationRequest); i { 569 case 0: 570 return &v.state 571 case 1: 572 return &v.sizeCache 573 case 2: 574 return &v.unknownFields 575 default: 576 return nil 577 } 578 } 579 file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 580 switch v := v.(*AssetToActuate); i { 581 case 0: 582 return &v.state 583 case 1: 584 return &v.sizeCache 585 case 2: 586 return &v.unknownFields 587 default: 588 return nil 589 } 590 } 591 file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 592 switch v := v.(*BeginActuationResponse); i { 593 case 0: 594 return &v.state 595 case 1: 596 return &v.sizeCache 597 case 2: 598 return &v.unknownFields 599 default: 600 return nil 601 } 602 } 603 file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 604 switch v := v.(*EndActuationRequest); 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_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 616 switch v := v.(*ActuatedAsset); 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_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 628 switch v := v.(*EndActuationResponse); i { 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 } 640 type x struct{} 641 out := protoimpl.TypeBuilder{ 642 File: protoimpl.DescBuilder{ 643 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 644 RawDescriptor: file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDesc, 645 NumEnums: 0, 646 NumMessages: 9, 647 NumExtensions: 0, 648 NumServices: 1, 649 }, 650 GoTypes: file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_goTypes, 651 DependencyIndexes: file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_depIdxs, 652 MessageInfos: file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_msgTypes, 653 }.Build() 654 File_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto = out.File 655 file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_rawDesc = nil 656 file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_goTypes = nil 657 file_go_chromium_org_luci_deploy_api_rpcpb_actuations_proto_depIdxs = nil 658 }