go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/cv/api/v1/pubsub.pb.go (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 // 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/cv/api/v1/pubsub.proto 20 21 package cvpb 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 // PubSubRun includes the high-level information about the CV Run sent via 38 // PubSub. 39 // 40 // This includes a subset of the fields defined in Run message. 41 // Use "runs.GetRun" rpc to retrieve the full field set of Runs. 42 type PubSubRun struct { 43 state protoimpl.MessageState 44 sizeCache protoimpl.SizeCache 45 unknownFields protoimpl.UnknownFields 46 47 // The unique ID of the Run. 48 // 49 // The format of an ID is "projects/$luci-project/runs/$id", where 50 // - luci-project is the name of the LUCI project the Run belongs to 51 // - id is an opaque key unique in the LUCI project. 52 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 53 // The Run status, e.g. pending, running, cancelled, etc. 54 Status Run_Status `protobuf:"varint,2,opt,name=status,proto3,enum=cv.v1.Run_Status" json:"status,omitempty"` 55 // eversion is the entity version, which is monotonically increasing. 56 Eversion int64 `protobuf:"varint,3,opt,name=eversion,proto3" json:"eversion,omitempty"` 57 // The hostname of the CV service that published the message. 58 Hostname string `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"` 59 } 60 61 func (x *PubSubRun) Reset() { 62 *x = PubSubRun{} 63 if protoimpl.UnsafeEnabled { 64 mi := &file_go_chromium_org_luci_cv_api_v1_pubsub_proto_msgTypes[0] 65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 66 ms.StoreMessageInfo(mi) 67 } 68 } 69 70 func (x *PubSubRun) String() string { 71 return protoimpl.X.MessageStringOf(x) 72 } 73 74 func (*PubSubRun) ProtoMessage() {} 75 76 func (x *PubSubRun) ProtoReflect() protoreflect.Message { 77 mi := &file_go_chromium_org_luci_cv_api_v1_pubsub_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 PubSubRun.ProtoReflect.Descriptor instead. 89 func (*PubSubRun) Descriptor() ([]byte, []int) { 90 return file_go_chromium_org_luci_cv_api_v1_pubsub_proto_rawDescGZIP(), []int{0} 91 } 92 93 func (x *PubSubRun) GetId() string { 94 if x != nil { 95 return x.Id 96 } 97 return "" 98 } 99 100 func (x *PubSubRun) GetStatus() Run_Status { 101 if x != nil { 102 return x.Status 103 } 104 return Run_STATUS_UNSPECIFIED 105 } 106 107 func (x *PubSubRun) GetEversion() int64 { 108 if x != nil { 109 return x.Eversion 110 } 111 return 0 112 } 113 114 func (x *PubSubRun) GetHostname() string { 115 if x != nil { 116 return x.Hostname 117 } 118 return "" 119 } 120 121 var File_go_chromium_org_luci_cv_api_v1_pubsub_proto protoreflect.FileDescriptor 122 123 var file_go_chromium_org_luci_cv_api_v1_pubsub_proto_rawDesc = []byte{ 124 0x0a, 0x2b, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 125 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 126 0x2f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x63, 127 0x76, 0x2e, 0x76, 0x31, 0x1a, 0x28, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 128 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x61, 0x70, 129 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7e, 130 0x0a, 0x09, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x52, 0x75, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 131 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x06, 0x73, 132 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x63, 0x76, 133 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 134 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x76, 0x65, 0x72, 0x73, 0x69, 135 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x65, 0x76, 0x65, 0x72, 0x73, 0x69, 136 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 137 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x25, 138 0x5a, 0x23, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 139 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 140 0x3b, 0x63, 0x76, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 141 } 142 143 var ( 144 file_go_chromium_org_luci_cv_api_v1_pubsub_proto_rawDescOnce sync.Once 145 file_go_chromium_org_luci_cv_api_v1_pubsub_proto_rawDescData = file_go_chromium_org_luci_cv_api_v1_pubsub_proto_rawDesc 146 ) 147 148 func file_go_chromium_org_luci_cv_api_v1_pubsub_proto_rawDescGZIP() []byte { 149 file_go_chromium_org_luci_cv_api_v1_pubsub_proto_rawDescOnce.Do(func() { 150 file_go_chromium_org_luci_cv_api_v1_pubsub_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_cv_api_v1_pubsub_proto_rawDescData) 151 }) 152 return file_go_chromium_org_luci_cv_api_v1_pubsub_proto_rawDescData 153 } 154 155 var file_go_chromium_org_luci_cv_api_v1_pubsub_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 156 var file_go_chromium_org_luci_cv_api_v1_pubsub_proto_goTypes = []interface{}{ 157 (*PubSubRun)(nil), // 0: cv.v1.PubSubRun 158 (Run_Status)(0), // 1: cv.v1.Run.Status 159 } 160 var file_go_chromium_org_luci_cv_api_v1_pubsub_proto_depIdxs = []int32{ 161 1, // 0: cv.v1.PubSubRun.status:type_name -> cv.v1.Run.Status 162 1, // [1:1] is the sub-list for method output_type 163 1, // [1:1] is the sub-list for method input_type 164 1, // [1:1] is the sub-list for extension type_name 165 1, // [1:1] is the sub-list for extension extendee 166 0, // [0:1] is the sub-list for field type_name 167 } 168 169 func init() { file_go_chromium_org_luci_cv_api_v1_pubsub_proto_init() } 170 func file_go_chromium_org_luci_cv_api_v1_pubsub_proto_init() { 171 if File_go_chromium_org_luci_cv_api_v1_pubsub_proto != nil { 172 return 173 } 174 file_go_chromium_org_luci_cv_api_v1_run_proto_init() 175 if !protoimpl.UnsafeEnabled { 176 file_go_chromium_org_luci_cv_api_v1_pubsub_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 177 switch v := v.(*PubSubRun); i { 178 case 0: 179 return &v.state 180 case 1: 181 return &v.sizeCache 182 case 2: 183 return &v.unknownFields 184 default: 185 return nil 186 } 187 } 188 } 189 type x struct{} 190 out := protoimpl.TypeBuilder{ 191 File: protoimpl.DescBuilder{ 192 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 193 RawDescriptor: file_go_chromium_org_luci_cv_api_v1_pubsub_proto_rawDesc, 194 NumEnums: 0, 195 NumMessages: 1, 196 NumExtensions: 0, 197 NumServices: 0, 198 }, 199 GoTypes: file_go_chromium_org_luci_cv_api_v1_pubsub_proto_goTypes, 200 DependencyIndexes: file_go_chromium_org_luci_cv_api_v1_pubsub_proto_depIdxs, 201 MessageInfos: file_go_chromium_org_luci_cv_api_v1_pubsub_proto_msgTypes, 202 }.Build() 203 File_go_chromium_org_luci_cv_api_v1_pubsub_proto = out.File 204 file_go_chromium_org_luci_cv_api_v1_pubsub_proto_rawDesc = nil 205 file_go_chromium_org_luci_cv_api_v1_pubsub_proto_goTypes = nil 206 file_go_chromium_org_luci_cv_api_v1_pubsub_proto_depIdxs = nil 207 }