Add a field for dimensions that only apply to task queries

Things like qs_account and priority will be added to this.

BUG=chromium:1078826
TEST=./gen

Change-Id: I1d49c72050be8f86da36eadb88fe4525336a23d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2190910
Tested-by: Dhanya Ganesh <dhanyaganesh@chromium.org>
Auto-Submit: Dhanya Ganesh <dhanyaganesh@chromium.org>
Reviewed-by: George Engelbrecht <engeg@google.com>
Commit-Queue: George Engelbrecht <engeg@google.com>
diff --git a/go/chromiumos/dut_tracking.pb.go b/go/chromiumos/dut_tracking.pb.go
index aefa945..5fc3377 100644
--- a/go/chromiumos/dut_tracking.pb.go
+++ b/go/chromiumos/dut_tracking.pb.go
@@ -66,10 +66,12 @@
 	// What monitorings to apply on the bot group.
 	Modes []MonitoringMode `protobuf:"varint,3,rep,packed,name=modes,proto3,enum=chromiumos.MonitoringMode" json:"modes,omitempty"`
 	// Number of hours to lookback for Swarming stats.
-	LookbackHours        int32    `protobuf:"zigzag32,4,opt,name=lookback_hours,json=lookbackHours,proto3" json:"lookback_hours,omitempty"`
-	XXX_NoUnkeyedLiteral struct{} `json:"-"`
-	XXX_unrecognized     []byte   `json:"-"`
-	XXX_sizecache        int32    `json:"-"`
+	LookbackHours int32 `protobuf:"zigzag32,4,opt,name=lookback_hours,json=lookbackHours,proto3" json:"lookback_hours,omitempty"`
+	// Dimensions that are only needed to query tasks.
+	TaskDimensions       []*SwarmingDimension `protobuf:"bytes,5,rep,name=task_dimensions,json=taskDimensions,proto3" json:"task_dimensions,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
+	XXX_unrecognized     []byte               `json:"-"`
+	XXX_sizecache        int32                `json:"-"`
 }
 
 func (m *TrackingPolicy) Reset()         { *m = TrackingPolicy{} }
@@ -125,6 +127,13 @@
 	return 0
 }
 
+func (m *TrackingPolicy) GetTaskDimensions() []*SwarmingDimension {
+	if m != nil {
+		return m.TaskDimensions
+	}
+	return nil
+}
+
 // Defines a root message.
 type TrackingPolicyCfg struct {
 	// All tracking policies.
@@ -175,27 +184,28 @@
 func init() { proto.RegisterFile("chromiumos/dut_tracking.proto", fileDescriptor_31a1fc16820a6989) }
 
 var fileDescriptor_31a1fc16820a6989 = []byte{
-	// 343 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0x4b, 0x6b, 0xf2, 0x40,
-	0x14, 0x86, 0xbf, 0x18, 0xbf, 0xd2, 0x4e, 0x31, 0x8d, 0xd3, 0x2e, 0x82, 0x54, 0x08, 0x42, 0x21,
-	0x74, 0x91, 0x14, 0x5b, 0xdc, 0x75, 0x11, 0x6f, 0xad, 0x68, 0x54, 0x92, 0x08, 0xa5, 0x9b, 0x21,
-	0x37, 0xe3, 0xa0, 0x99, 0x23, 0x93, 0x48, 0xe9, 0x7f, 0xeb, 0x8f, 0x2b, 0xa6, 0x5e, 0x92, 0xdd,
-	0xcc, 0x7b, 0x9e, 0x77, 0xe6, 0x81, 0x83, 0x9a, 0xc1, 0x8a, 0x43, 0x42, 0x77, 0x09, 0xa4, 0x46,
-	0xb8, 0xcb, 0x48, 0xc6, 0xbd, 0x60, 0x4d, 0x59, 0xac, 0x6f, 0x39, 0x64, 0x80, 0xd1, 0x79, 0xdc,
-	0xb8, 0x2f, 0xa0, 0x3e, 0x64, 0x24, 0x0d, 0xbc, 0xcd, 0x89, 0x6c, 0xfd, 0x08, 0x48, 0x72, 0x0f,
-	0xe5, 0x39, 0x6c, 0x68, 0xf0, 0x8d, 0x31, 0xaa, 0x32, 0x2f, 0x89, 0x14, 0x41, 0x15, 0xb4, 0x2b,
-	0x3b, 0x3f, 0xe3, 0x57, 0x84, 0x42, 0x9a, 0x44, 0x2c, 0xa5, 0xc0, 0x52, 0xa5, 0xa2, 0x8a, 0xda,
-	0x75, 0xbb, 0xa9, 0x9f, 0x5f, 0xd6, 0x9d, 0x2f, 0x8f, 0x27, 0x94, 0x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37,
+	0x00, 0x00, 0xff, 0xff, 0x0f, 0x99, 0x8b, 0xba, 0x41, 0x02, 0x00, 0x00,
 }
diff --git a/src/chromiumos/dut_tracking.proto b/src/chromiumos/dut_tracking.proto
index c3d2001..a831e0b 100644
--- a/src/chromiumos/dut_tracking.proto
+++ b/src/chromiumos/dut_tracking.proto
@@ -33,6 +33,8 @@
   repeated MonitoringMode modes = 3;
   // Number of hours to lookback for Swarming stats.
   sint32 lookback_hours = 4;
+  // Dimensions that are only needed to query tasks.
+  repeated chromiumos.SwarmingDimension task_dimensions = 5;
 }
 
 // Defines a root message.