blob: 7592ce6d765b939a12025a2fbd5f9134c800a947 [file]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is govered by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
// This file defines small protobufs that are included as parts of
// multiple services or *_objects.proto PBs.
//
// "Ref" objects contain enough information for a UI to display
// something to the user, and identifying info so that the client can
// request more info from the server.
syntax = "proto3";
package monorail;
// Next available tag: 5
message RequestTrace {
string token = 1; // XSRF token from the HTML page.
string reason = 2; // Optional request purpose from client for debugging.
string request_id = 3; // Optional client-supplied string for idempotency.
string test_account = 4; // E.g., 'test@example.com' in dev_server.
// TODO(jrobbins): Consider passing a trace_id back and forth to measure
// combined latency of sequences of related requests in stackdriver.
}
// Next available tag: 3
message ComponentRef {
string path = 1;
bool is_derived = 2;
}
// Next available tag: 9
enum FieldType {
NO_TYPE = 0;
ENUM_TYPE = 1;
INT_TYPE = 2;
STR_TYPE = 3;
USER_TYPE = 4;
DATE_TYPE = 5;
BOOL_TYPE = 6;
URL_TYPE = 7;
APPROVAL_TYPE = 8;
}
// Next available tag: 5
message FieldRef {
// TODO(crbug.com/monorail/4062): Don't use field IDs to identify fields.
uint64 field_id = 1;
string field_name = 2;
FieldType type = 3;
string approval_name = 4;
}
// Next available tag: 3
message LabelRef {
string label = 1;
bool is_derived = 2;
}
// Next available tag: 4
message StatusRef {
string status = 1;
bool means_open = 2;
bool is_derived = 3;
}
// Next available tag: 3
message IssueRef {
string project_name = 1;
uint32 local_id = 2;
}
// Next available tag: 4
message UserRef {
uint64 user_id = 1;
string display_name = 2; // email, or obscured like "usern...@example.com".
bool is_derived = 3;
}
// Next available tag: 4
message HotlistRef {
// TODO(4131): Don't use hotlist IDs to identify hotlists.
uint64 hotlist_id = 1;
string name = 2;
UserRef owner = 3;
}