go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/cv/api/v1/pubsub.proto (about) 1 // Copyright 2021 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 syntax = "proto3"; 16 17 package cv.v1; 18 19 import "go.chromium.org/luci/cv/api/v1/run.proto"; 20 21 option go_package = "go.chromium.org/luci/cv/api/v1;cvpb"; 22 23 // PubSubRun includes the high-level information about the CV Run sent via 24 // PubSub. 25 // 26 // This includes a subset of the fields defined in Run message. 27 // Use "runs.GetRun" rpc to retrieve the full field set of Runs. 28 message PubSubRun { 29 // The unique ID of the Run. 30 // 31 // The format of an ID is "projects/$luci-project/runs/$id", where 32 // - luci-project is the name of the LUCI project the Run belongs to 33 // - id is an opaque key unique in the LUCI project. 34 string id = 1; 35 // The Run status, e.g. pending, running, cancelled, etc. 36 Run.Status status = 2; 37 // eversion is the entity version, which is monotonically increasing. 38 int64 eversion = 3; 39 // The hostname of the CV service that published the message. 40 string hostname = 4; 41 }