blob: bab85dc4487902887b0d9b807d0e0b59dc488a4d [file] [log] [blame]
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
syntax = "proto3";
package test_platform.result_flow;
option go_package = "go.chromium.org/chromiumos/infra/proto/go/test_platform/result_flow";
// PubSubConfig contains the config to interact with Pub/Sub.
message PubSubConfig {
string project = 1;
string topic = 2;
string subscription = 3;
int32 max_receiving_messages = 4;
}
// BuildbucketConfig contains the config to interact with Buildbucket.
message BuildbucketConfig {
string host = 1;
string project = 2;
string bucket = 3;
string builder = 4;
}
// BigqueryConfig contains the config to interact with Bigquery.
message BigqueryConfig {
string project = 1;
string dataset = 2;
string table = 3;
}
// Source is a wrapper for the source side configuration.
message Source {
PubSubConfig pubsub = 1;
BuildbucketConfig bb = 2;
repeated string fields = 3;
}
// Target is a wrapper for the target side configuration.
message Target {
BigqueryConfig bq = 1;
}
// Environment defines the configuration parameters common to
// the result_flow's subcommands.
message Environment {
Source source = 1;
Target target = 2;
}