go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/tools/cmd/bqschemaupdater/testdata/event.proto (about) 1 // Copyright 2017 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 syntax = "proto3"; 6 7 option go_package = "go.chromium.org/luci/tools/cmd/bqschemaupdater/testdata"; 8 9 package testdata; 10 11 import "google/protobuf/duration.proto"; 12 import "google/protobuf/empty.proto"; 13 import "google/protobuf/struct.proto"; 14 import "google/protobuf/timestamp.proto"; 15 16 import "go.chromium.org/luci/common/bq/pb/options.proto"; 17 18 message Property { 19 string name = 1; 20 string value_json = 2; 21 } 22 23 message Input { 24 repeated Property properties = 4; 25 } 26 27 message Output { 28 repeated Property properties = 4; 29 } 30 31 // This entire message will be ignored. 32 message EmptyContainer { 33 google.protobuf.Empty empty = 1; 34 } 35 36 // Build events. 37 // 38 // Line after blank line. 39 message BuildEvent { 40 // Universal build id. 41 string build_id = 1; 42 // Builder name. 43 string builder = 2; 44 Status status = 3; 45 Input input = 4; 46 Output output = 5; 47 google.protobuf.Timestamp timestamp = 6; 48 google.protobuf.Struct struct = 7; 49 google.protobuf.Empty empty = 8; // will be ignored 50 EmptyContainer empty_container = 9; // will be ignored 51 google.protobuf.Duration duration = 10; 52 int64 bq_type_override = 11 [(bqschema.options).bq_type = "TIMESTAMP"]; 53 } 54 55 enum Status { 56 SUCCESS = 0; 57 FAILURE = 1; 58 ERROR = 2; 59 }