go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/resultdb/sink/proto/v1/sink.pb.go (about) 1 // Copyright 2019 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/resultdb/sink/proto/v1/sink.proto 20 21 package sinkpb 22 23 import prpc "go.chromium.org/luci/grpc/prpc" 24 25 import ( 26 context "context" 27 grpc "google.golang.org/grpc" 28 codes "google.golang.org/grpc/codes" 29 status "google.golang.org/grpc/status" 30 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 31 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 32 emptypb "google.golang.org/protobuf/types/known/emptypb" 33 reflect "reflect" 34 sync "sync" 35 ) 36 37 const ( 38 // Verify that this generated code is sufficiently up-to-date. 39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 40 // Verify that runtime/protoimpl is sufficiently up-to-date. 41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 42 ) 43 44 type ReportTestResultsRequest struct { 45 state protoimpl.MessageState 46 sizeCache protoimpl.SizeCache 47 unknownFields protoimpl.UnknownFields 48 49 // Test results to report. 50 TestResults []*TestResult `protobuf:"bytes,1,rep,name=test_results,json=testResults,proto3" json:"test_results,omitempty"` 51 } 52 53 func (x *ReportTestResultsRequest) Reset() { 54 *x = ReportTestResultsRequest{} 55 if protoimpl.UnsafeEnabled { 56 mi := &file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_msgTypes[0] 57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 ms.StoreMessageInfo(mi) 59 } 60 } 61 62 func (x *ReportTestResultsRequest) String() string { 63 return protoimpl.X.MessageStringOf(x) 64 } 65 66 func (*ReportTestResultsRequest) ProtoMessage() {} 67 68 func (x *ReportTestResultsRequest) ProtoReflect() protoreflect.Message { 69 mi := &file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_msgTypes[0] 70 if protoimpl.UnsafeEnabled && x != nil { 71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 72 if ms.LoadMessageInfo() == nil { 73 ms.StoreMessageInfo(mi) 74 } 75 return ms 76 } 77 return mi.MessageOf(x) 78 } 79 80 // Deprecated: Use ReportTestResultsRequest.ProtoReflect.Descriptor instead. 81 func (*ReportTestResultsRequest) Descriptor() ([]byte, []int) { 82 return file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_rawDescGZIP(), []int{0} 83 } 84 85 func (x *ReportTestResultsRequest) GetTestResults() []*TestResult { 86 if x != nil { 87 return x.TestResults 88 } 89 return nil 90 } 91 92 type ReportTestResultsResponse struct { 93 state protoimpl.MessageState 94 sizeCache protoimpl.SizeCache 95 unknownFields protoimpl.UnknownFields 96 97 // List of unique identifiers that can be used to link to these results 98 // or requested via luci.resultdb.v1.ResultDB service. 99 TestResultNames []string `protobuf:"bytes,1,rep,name=test_result_names,json=testResultNames,proto3" json:"test_result_names,omitempty"` 100 } 101 102 func (x *ReportTestResultsResponse) Reset() { 103 *x = ReportTestResultsResponse{} 104 if protoimpl.UnsafeEnabled { 105 mi := &file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_msgTypes[1] 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 ms.StoreMessageInfo(mi) 108 } 109 } 110 111 func (x *ReportTestResultsResponse) String() string { 112 return protoimpl.X.MessageStringOf(x) 113 } 114 115 func (*ReportTestResultsResponse) ProtoMessage() {} 116 117 func (x *ReportTestResultsResponse) ProtoReflect() protoreflect.Message { 118 mi := &file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_msgTypes[1] 119 if protoimpl.UnsafeEnabled && x != nil { 120 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 121 if ms.LoadMessageInfo() == nil { 122 ms.StoreMessageInfo(mi) 123 } 124 return ms 125 } 126 return mi.MessageOf(x) 127 } 128 129 // Deprecated: Use ReportTestResultsResponse.ProtoReflect.Descriptor instead. 130 func (*ReportTestResultsResponse) Descriptor() ([]byte, []int) { 131 return file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_rawDescGZIP(), []int{1} 132 } 133 134 func (x *ReportTestResultsResponse) GetTestResultNames() []string { 135 if x != nil { 136 return x.TestResultNames 137 } 138 return nil 139 } 140 141 type ReportInvocationLevelArtifactsRequest struct { 142 state protoimpl.MessageState 143 sizeCache protoimpl.SizeCache 144 unknownFields protoimpl.UnknownFields 145 146 // Invocation-level artifacts to report. 147 // The map key is an artifact id. 148 Artifacts map[string]*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 149 } 150 151 func (x *ReportInvocationLevelArtifactsRequest) Reset() { 152 *x = ReportInvocationLevelArtifactsRequest{} 153 if protoimpl.UnsafeEnabled { 154 mi := &file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_msgTypes[2] 155 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 156 ms.StoreMessageInfo(mi) 157 } 158 } 159 160 func (x *ReportInvocationLevelArtifactsRequest) String() string { 161 return protoimpl.X.MessageStringOf(x) 162 } 163 164 func (*ReportInvocationLevelArtifactsRequest) ProtoMessage() {} 165 166 func (x *ReportInvocationLevelArtifactsRequest) ProtoReflect() protoreflect.Message { 167 mi := &file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_msgTypes[2] 168 if protoimpl.UnsafeEnabled && x != nil { 169 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 170 if ms.LoadMessageInfo() == nil { 171 ms.StoreMessageInfo(mi) 172 } 173 return ms 174 } 175 return mi.MessageOf(x) 176 } 177 178 // Deprecated: Use ReportInvocationLevelArtifactsRequest.ProtoReflect.Descriptor instead. 179 func (*ReportInvocationLevelArtifactsRequest) Descriptor() ([]byte, []int) { 180 return file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_rawDescGZIP(), []int{2} 181 } 182 183 func (x *ReportInvocationLevelArtifactsRequest) GetArtifacts() map[string]*Artifact { 184 if x != nil { 185 return x.Artifacts 186 } 187 return nil 188 } 189 190 var File_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto protoreflect.FileDescriptor 191 192 var file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_rawDesc = []byte{ 193 0x0a, 0x36, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 194 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2f, 195 0x73, 0x69, 0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x69, 196 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x72, 197 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x1a, 0x1b, 0x67, 0x6f, 198 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 199 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 200 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 201 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2f, 0x73, 0x69, 0x6e, 0x6b, 0x2f, 0x70, 0x72, 202 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 203 0x6c, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5d, 0x0a, 0x18, 0x52, 0x65, 0x70, 0x6f, 204 0x72, 0x74, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x52, 0x65, 0x71, 205 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 206 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x75, 0x63, 207 0x69, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 208 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0b, 0x74, 0x65, 0x73, 0x74, 209 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x47, 0x0a, 0x19, 0x52, 0x65, 0x70, 0x6f, 0x72, 210 0x74, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 211 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 212 0x75, 0x6c, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 213 0x0f, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 214 0x22, 0xeb, 0x01, 0x0a, 0x25, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x6e, 0x76, 0x6f, 0x63, 215 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 216 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x66, 0x0a, 0x09, 0x61, 0x72, 217 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x48, 0x2e, 218 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x69, 0x6e, 0x6b, 0x2e, 219 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 220 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 221 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 222 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 223 0x74, 0x73, 0x1a, 0x5a, 0x0a, 0x0e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x45, 224 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 225 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x32, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 226 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x72, 0x65, 0x73, 227 0x75, 0x6c, 0x74, 0x73, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 228 0x61, 0x63, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0xf1, 229 0x01, 0x0a, 0x04, 0x53, 0x69, 0x6e, 0x6b, 0x12, 0x72, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6f, 0x72, 230 0x74, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x2c, 0x2e, 0x6c, 231 0x75, 0x63, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 232 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 233 0x6c, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x6c, 0x75, 0x63, 234 0x69, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 235 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 236 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x1e, 0x52, 237 0x65, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 238 0x65, 0x76, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x12, 0x39, 0x2e, 239 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x69, 0x6e, 0x6b, 0x2e, 240 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 241 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 242 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 243 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 244 0x22, 0x00, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 245 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 246 0x74, 0x64, 0x62, 0x2f, 0x73, 0x69, 0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 247 0x31, 0x3b, 0x73, 0x69, 0x6e, 0x6b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 248 } 249 250 var ( 251 file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_rawDescOnce sync.Once 252 file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_rawDescData = file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_rawDesc 253 ) 254 255 func file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_rawDescGZIP() []byte { 256 file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_rawDescOnce.Do(func() { 257 file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_rawDescData) 258 }) 259 return file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_rawDescData 260 } 261 262 var file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 263 var file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_goTypes = []interface{}{ 264 (*ReportTestResultsRequest)(nil), // 0: luci.resultsink.v1.ReportTestResultsRequest 265 (*ReportTestResultsResponse)(nil), // 1: luci.resultsink.v1.ReportTestResultsResponse 266 (*ReportInvocationLevelArtifactsRequest)(nil), // 2: luci.resultsink.v1.ReportInvocationLevelArtifactsRequest 267 nil, // 3: luci.resultsink.v1.ReportInvocationLevelArtifactsRequest.ArtifactsEntry 268 (*TestResult)(nil), // 4: luci.resultsink.v1.TestResult 269 (*Artifact)(nil), // 5: luci.resultsink.v1.Artifact 270 (*emptypb.Empty)(nil), // 6: google.protobuf.Empty 271 } 272 var file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_depIdxs = []int32{ 273 4, // 0: luci.resultsink.v1.ReportTestResultsRequest.test_results:type_name -> luci.resultsink.v1.TestResult 274 3, // 1: luci.resultsink.v1.ReportInvocationLevelArtifactsRequest.artifacts:type_name -> luci.resultsink.v1.ReportInvocationLevelArtifactsRequest.ArtifactsEntry 275 5, // 2: luci.resultsink.v1.ReportInvocationLevelArtifactsRequest.ArtifactsEntry.value:type_name -> luci.resultsink.v1.Artifact 276 0, // 3: luci.resultsink.v1.Sink.ReportTestResults:input_type -> luci.resultsink.v1.ReportTestResultsRequest 277 2, // 4: luci.resultsink.v1.Sink.ReportInvocationLevelArtifacts:input_type -> luci.resultsink.v1.ReportInvocationLevelArtifactsRequest 278 1, // 5: luci.resultsink.v1.Sink.ReportTestResults:output_type -> luci.resultsink.v1.ReportTestResultsResponse 279 6, // 6: luci.resultsink.v1.Sink.ReportInvocationLevelArtifacts:output_type -> google.protobuf.Empty 280 5, // [5:7] is the sub-list for method output_type 281 3, // [3:5] is the sub-list for method input_type 282 3, // [3:3] is the sub-list for extension type_name 283 3, // [3:3] is the sub-list for extension extendee 284 0, // [0:3] is the sub-list for field type_name 285 } 286 287 func init() { file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_init() } 288 func file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_init() { 289 if File_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto != nil { 290 return 291 } 292 file_go_chromium_org_luci_resultdb_sink_proto_v1_test_result_proto_init() 293 if !protoimpl.UnsafeEnabled { 294 file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 295 switch v := v.(*ReportTestResultsRequest); i { 296 case 0: 297 return &v.state 298 case 1: 299 return &v.sizeCache 300 case 2: 301 return &v.unknownFields 302 default: 303 return nil 304 } 305 } 306 file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 307 switch v := v.(*ReportTestResultsResponse); i { 308 case 0: 309 return &v.state 310 case 1: 311 return &v.sizeCache 312 case 2: 313 return &v.unknownFields 314 default: 315 return nil 316 } 317 } 318 file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 319 switch v := v.(*ReportInvocationLevelArtifactsRequest); i { 320 case 0: 321 return &v.state 322 case 1: 323 return &v.sizeCache 324 case 2: 325 return &v.unknownFields 326 default: 327 return nil 328 } 329 } 330 } 331 type x struct{} 332 out := protoimpl.TypeBuilder{ 333 File: protoimpl.DescBuilder{ 334 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 335 RawDescriptor: file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_rawDesc, 336 NumEnums: 0, 337 NumMessages: 4, 338 NumExtensions: 0, 339 NumServices: 1, 340 }, 341 GoTypes: file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_goTypes, 342 DependencyIndexes: file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_depIdxs, 343 MessageInfos: file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_msgTypes, 344 }.Build() 345 File_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto = out.File 346 file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_rawDesc = nil 347 file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_goTypes = nil 348 file_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto_depIdxs = nil 349 } 350 351 // Reference imports to suppress errors if they are not otherwise used. 352 var _ context.Context 353 var _ grpc.ClientConnInterface 354 355 // This is a compile-time assertion to ensure that this generated file 356 // is compatible with the grpc package it is being compiled against. 357 const _ = grpc.SupportPackageIsVersion6 358 359 // SinkClient is the client API for Sink service. 360 // 361 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 362 type SinkClient interface { 363 // Reports test results. 364 ReportTestResults(ctx context.Context, in *ReportTestResultsRequest, opts ...grpc.CallOption) (*ReportTestResultsResponse, error) 365 // Reports invocation-level artifacts. 366 // To upload result-level artifact, use ReportTestResults instead. 367 ReportInvocationLevelArtifacts(ctx context.Context, in *ReportInvocationLevelArtifactsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 368 } 369 type sinkPRPCClient struct { 370 client *prpc.Client 371 } 372 373 func NewSinkPRPCClient(client *prpc.Client) SinkClient { 374 return &sinkPRPCClient{client} 375 } 376 377 func (c *sinkPRPCClient) ReportTestResults(ctx context.Context, in *ReportTestResultsRequest, opts ...grpc.CallOption) (*ReportTestResultsResponse, error) { 378 out := new(ReportTestResultsResponse) 379 err := c.client.Call(ctx, "luci.resultsink.v1.Sink", "ReportTestResults", in, out, opts...) 380 if err != nil { 381 return nil, err 382 } 383 return out, nil 384 } 385 386 func (c *sinkPRPCClient) ReportInvocationLevelArtifacts(ctx context.Context, in *ReportInvocationLevelArtifactsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 387 out := new(emptypb.Empty) 388 err := c.client.Call(ctx, "luci.resultsink.v1.Sink", "ReportInvocationLevelArtifacts", in, out, opts...) 389 if err != nil { 390 return nil, err 391 } 392 return out, nil 393 } 394 395 type sinkClient struct { 396 cc grpc.ClientConnInterface 397 } 398 399 func NewSinkClient(cc grpc.ClientConnInterface) SinkClient { 400 return &sinkClient{cc} 401 } 402 403 func (c *sinkClient) ReportTestResults(ctx context.Context, in *ReportTestResultsRequest, opts ...grpc.CallOption) (*ReportTestResultsResponse, error) { 404 out := new(ReportTestResultsResponse) 405 err := c.cc.Invoke(ctx, "/luci.resultsink.v1.Sink/ReportTestResults", in, out, opts...) 406 if err != nil { 407 return nil, err 408 } 409 return out, nil 410 } 411 412 func (c *sinkClient) ReportInvocationLevelArtifacts(ctx context.Context, in *ReportInvocationLevelArtifactsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 413 out := new(emptypb.Empty) 414 err := c.cc.Invoke(ctx, "/luci.resultsink.v1.Sink/ReportInvocationLevelArtifacts", in, out, opts...) 415 if err != nil { 416 return nil, err 417 } 418 return out, nil 419 } 420 421 // SinkServer is the server API for Sink service. 422 type SinkServer interface { 423 // Reports test results. 424 ReportTestResults(context.Context, *ReportTestResultsRequest) (*ReportTestResultsResponse, error) 425 // Reports invocation-level artifacts. 426 // To upload result-level artifact, use ReportTestResults instead. 427 ReportInvocationLevelArtifacts(context.Context, *ReportInvocationLevelArtifactsRequest) (*emptypb.Empty, error) 428 } 429 430 // UnimplementedSinkServer can be embedded to have forward compatible implementations. 431 type UnimplementedSinkServer struct { 432 } 433 434 func (*UnimplementedSinkServer) ReportTestResults(context.Context, *ReportTestResultsRequest) (*ReportTestResultsResponse, error) { 435 return nil, status.Errorf(codes.Unimplemented, "method ReportTestResults not implemented") 436 } 437 func (*UnimplementedSinkServer) ReportInvocationLevelArtifacts(context.Context, *ReportInvocationLevelArtifactsRequest) (*emptypb.Empty, error) { 438 return nil, status.Errorf(codes.Unimplemented, "method ReportInvocationLevelArtifacts not implemented") 439 } 440 441 func RegisterSinkServer(s prpc.Registrar, srv SinkServer) { 442 s.RegisterService(&_Sink_serviceDesc, srv) 443 } 444 445 func _Sink_ReportTestResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 446 in := new(ReportTestResultsRequest) 447 if err := dec(in); err != nil { 448 return nil, err 449 } 450 if interceptor == nil { 451 return srv.(SinkServer).ReportTestResults(ctx, in) 452 } 453 info := &grpc.UnaryServerInfo{ 454 Server: srv, 455 FullMethod: "/luci.resultsink.v1.Sink/ReportTestResults", 456 } 457 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 458 return srv.(SinkServer).ReportTestResults(ctx, req.(*ReportTestResultsRequest)) 459 } 460 return interceptor(ctx, in, info, handler) 461 } 462 463 func _Sink_ReportInvocationLevelArtifacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 464 in := new(ReportInvocationLevelArtifactsRequest) 465 if err := dec(in); err != nil { 466 return nil, err 467 } 468 if interceptor == nil { 469 return srv.(SinkServer).ReportInvocationLevelArtifacts(ctx, in) 470 } 471 info := &grpc.UnaryServerInfo{ 472 Server: srv, 473 FullMethod: "/luci.resultsink.v1.Sink/ReportInvocationLevelArtifacts", 474 } 475 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 476 return srv.(SinkServer).ReportInvocationLevelArtifacts(ctx, req.(*ReportInvocationLevelArtifactsRequest)) 477 } 478 return interceptor(ctx, in, info, handler) 479 } 480 481 var _Sink_serviceDesc = grpc.ServiceDesc{ 482 ServiceName: "luci.resultsink.v1.Sink", 483 HandlerType: (*SinkServer)(nil), 484 Methods: []grpc.MethodDesc{ 485 { 486 MethodName: "ReportTestResults", 487 Handler: _Sink_ReportTestResults_Handler, 488 }, 489 { 490 MethodName: "ReportInvocationLevelArtifacts", 491 Handler: _Sink_ReportInvocationLevelArtifacts_Handler, 492 }, 493 }, 494 Streams: []grpc.StreamDesc{}, 495 Metadata: "go.chromium.org/luci/resultdb/sink/proto/v1/sink.proto", 496 }