go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/resultdb/proto/bq/artifact_row.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/resultdb/proto/bq/artifact_row.proto 20 21 package resultpb 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 27 reflect "reflect" 28 sync "sync" 29 ) 30 31 const ( 32 // Verify that this generated code is sufficiently up-to-date. 33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 34 // Verify that runtime/protoimpl is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 36 ) 37 38 // This proto is deprecated. This is used in the old BigQuery artifact export. 39 // The reason we have not deleted it yet is that there still seems to be some tasks 40 // running this exporter, so we need to check and verify those tasks. 41 // TextArtifactRowLegacy represents a row in a BigQuery table for a text artifact. 42 type TextArtifactRowLegacy struct { 43 state protoimpl.MessageState 44 sizeCache protoimpl.SizeCache 45 unknownFields protoimpl.UnknownFields 46 47 // Exported contains info of the exported invocation. 48 // 49 // Note: it's possible that this invocation is not the artifact's 50 // immediate parent invocation, but the including invocation. 51 // For example if the BigQuery table is for all artifacts of Chromium CI 52 // builds, then the exported invocation is for a CI build, which includes 53 // multiple invocations for swarming tasks within that build. 54 Exported *InvocationRecord `protobuf:"bytes,1,opt,name=exported,proto3" json:"exported,omitempty"` 55 // Parent contains info of the artifact's immediate parent invocation. 56 Parent *InvocationRecord `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` 57 // Test_id and result_id can identify the test result in the invocation 58 // this artifact belongs to. 59 // They will be empty if the artifact is an invocation-level artifact. 60 TestId string `protobuf:"bytes,3,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"` 61 ResultId string `protobuf:"bytes,4,opt,name=result_id,json=resultId,proto3" json:"result_id,omitempty"` 62 // Id of the artifact. 63 // Regex: ^[[:word:]]([[:print:]]{0,254}[[:word:]])?$ 64 // 65 // Refer to luci.resultdb.v1.Artifact.artifact_id for details. 66 ArtifactId string `protobuf:"bytes,5,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` 67 // Id of the artifact shard. 68 // Row size limit is 5MB according to 69 // https://cloud.google.com/bigquery/quotas#streaming_inserts 70 // If the size of the artifact content is larger than that, the data will be 71 // sharded at the nearest previous line break ("\r\n" first, if not exist 72 // then "\n" or "\r"). 73 // Shard_id is monotonically increasing and starts at 0. 74 ShardId int32 `protobuf:"varint,6,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` 75 // Artifact shard content. 76 // Encoded as UTF-8. Invalid characters are replaced with the replacement 77 // character (U+FFFD). 78 Content string `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` 79 // Partition_time is used to partition the table. 80 // It is the time when exported invocation was created in Spanner. 81 // Note: it is NOT the time when the row is inserted into BigQuery table. 82 // https://cloud.google.com/bigquery/docs/creating-column-partitions#limitations 83 // mentions "The partitioning column must be a top-level field." 84 // So we keep this column here instead of adding the CreateTime to Invocation. 85 PartitionTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=partition_time,json=partitionTime,proto3" json:"partition_time,omitempty"` 86 } 87 88 func (x *TextArtifactRowLegacy) Reset() { 89 *x = TextArtifactRowLegacy{} 90 if protoimpl.UnsafeEnabled { 91 mi := &file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_msgTypes[0] 92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 93 ms.StoreMessageInfo(mi) 94 } 95 } 96 97 func (x *TextArtifactRowLegacy) String() string { 98 return protoimpl.X.MessageStringOf(x) 99 } 100 101 func (*TextArtifactRowLegacy) ProtoMessage() {} 102 103 func (x *TextArtifactRowLegacy) ProtoReflect() protoreflect.Message { 104 mi := &file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_msgTypes[0] 105 if protoimpl.UnsafeEnabled && x != nil { 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 if ms.LoadMessageInfo() == nil { 108 ms.StoreMessageInfo(mi) 109 } 110 return ms 111 } 112 return mi.MessageOf(x) 113 } 114 115 // Deprecated: Use TextArtifactRowLegacy.ProtoReflect.Descriptor instead. 116 func (*TextArtifactRowLegacy) Descriptor() ([]byte, []int) { 117 return file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_rawDescGZIP(), []int{0} 118 } 119 120 func (x *TextArtifactRowLegacy) GetExported() *InvocationRecord { 121 if x != nil { 122 return x.Exported 123 } 124 return nil 125 } 126 127 func (x *TextArtifactRowLegacy) GetParent() *InvocationRecord { 128 if x != nil { 129 return x.Parent 130 } 131 return nil 132 } 133 134 func (x *TextArtifactRowLegacy) GetTestId() string { 135 if x != nil { 136 return x.TestId 137 } 138 return "" 139 } 140 141 func (x *TextArtifactRowLegacy) GetResultId() string { 142 if x != nil { 143 return x.ResultId 144 } 145 return "" 146 } 147 148 func (x *TextArtifactRowLegacy) GetArtifactId() string { 149 if x != nil { 150 return x.ArtifactId 151 } 152 return "" 153 } 154 155 func (x *TextArtifactRowLegacy) GetShardId() int32 { 156 if x != nil { 157 return x.ShardId 158 } 159 return 0 160 } 161 162 func (x *TextArtifactRowLegacy) GetContent() string { 163 if x != nil { 164 return x.Content 165 } 166 return "" 167 } 168 169 func (x *TextArtifactRowLegacy) GetPartitionTime() *timestamppb.Timestamp { 170 if x != nil { 171 return x.PartitionTime 172 } 173 return nil 174 } 175 176 var File_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto protoreflect.FileDescriptor 177 178 var file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_rawDesc = []byte{ 179 0x0a, 0x39, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 180 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2f, 181 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x71, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 182 0x74, 0x5f, 0x72, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6c, 0x75, 0x63, 183 0x69, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2e, 0x62, 0x71, 0x1a, 0x1f, 0x67, 184 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 185 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x33, 186 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 187 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2f, 0x70, 0x72, 188 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x71, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 189 0x6f, 0x74, 0x6f, 0x22, 0xe2, 0x02, 0x0a, 0x15, 0x54, 0x65, 0x78, 0x74, 0x41, 0x72, 0x74, 0x69, 190 0x66, 0x61, 0x63, 0x74, 0x52, 0x6f, 0x77, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x12, 0x3e, 0x0a, 191 0x08, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 192 0x22, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2e, 193 0x62, 0x71, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 194 0x6f, 0x72, 0x64, 0x52, 0x08, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x3a, 0x0a, 195 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 196 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2e, 0x62, 0x71, 197 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 198 0x64, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x65, 0x73, 199 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x73, 0x74, 200 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x64, 0x18, 201 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x49, 0x64, 0x12, 202 0x1f, 0x0a, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 203 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 204 0x12, 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 205 0x28, 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 206 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 207 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 208 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 209 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 210 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 211 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x6f, 0x2e, 0x63, 212 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 213 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 214 0x62, 0x71, 0x3b, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 215 0x74, 0x6f, 0x33, 216 } 217 218 var ( 219 file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_rawDescOnce sync.Once 220 file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_rawDescData = file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_rawDesc 221 ) 222 223 func file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_rawDescGZIP() []byte { 224 file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_rawDescOnce.Do(func() { 225 file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_rawDescData) 226 }) 227 return file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_rawDescData 228 } 229 230 var file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 231 var file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_goTypes = []interface{}{ 232 (*TextArtifactRowLegacy)(nil), // 0: luci.resultdb.bq.TextArtifactRowLegacy 233 (*InvocationRecord)(nil), // 1: luci.resultdb.bq.InvocationRecord 234 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp 235 } 236 var file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_depIdxs = []int32{ 237 1, // 0: luci.resultdb.bq.TextArtifactRowLegacy.exported:type_name -> luci.resultdb.bq.InvocationRecord 238 1, // 1: luci.resultdb.bq.TextArtifactRowLegacy.parent:type_name -> luci.resultdb.bq.InvocationRecord 239 2, // 2: luci.resultdb.bq.TextArtifactRowLegacy.partition_time:type_name -> google.protobuf.Timestamp 240 3, // [3:3] is the sub-list for method output_type 241 3, // [3:3] is the sub-list for method input_type 242 3, // [3:3] is the sub-list for extension type_name 243 3, // [3:3] is the sub-list for extension extendee 244 0, // [0:3] is the sub-list for field type_name 245 } 246 247 func init() { file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_init() } 248 func file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_init() { 249 if File_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto != nil { 250 return 251 } 252 file_go_chromium_org_luci_resultdb_proto_bq_common_proto_init() 253 if !protoimpl.UnsafeEnabled { 254 file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 255 switch v := v.(*TextArtifactRowLegacy); i { 256 case 0: 257 return &v.state 258 case 1: 259 return &v.sizeCache 260 case 2: 261 return &v.unknownFields 262 default: 263 return nil 264 } 265 } 266 } 267 type x struct{} 268 out := protoimpl.TypeBuilder{ 269 File: protoimpl.DescBuilder{ 270 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 271 RawDescriptor: file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_rawDesc, 272 NumEnums: 0, 273 NumMessages: 1, 274 NumExtensions: 0, 275 NumServices: 0, 276 }, 277 GoTypes: file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_goTypes, 278 DependencyIndexes: file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_depIdxs, 279 MessageInfos: file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_msgTypes, 280 }.Build() 281 File_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto = out.File 282 file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_rawDesc = nil 283 file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_goTypes = nil 284 file_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto_depIdxs = nil 285 }