cros_source & robocrop: add repostate for cros_cource; clean up robocrop format

cros_source: add in Repostate as defined in go/cros-source-cache-health

RoboCrop: pull up enum so code isn't redundant. Clean up spacing I probably
tweaked when I last made changes.

BUG=b/177572611
TEST=NONE

Change-Id: I5e3a2014f1d44c7de45b5052e954a3e3b3daf338
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2633877
Reviewed-by: Mike Nichols <mikenichols@chromium.org>
Commit-Queue: Julio Hurtado <juahurta@google.com>
diff --git a/go/chromiumos/bot_scaling.pb.go b/go/chromiumos/bot_scaling.pb.go
index e69ec65..8e9e2f8 100644
--- a/go/chromiumos/bot_scaling.pb.go
+++ b/go/chromiumos/bot_scaling.pb.go
@@ -21,6 +21,37 @@
 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
 
 // Specifies mode for a bot policy
+type Mode int32
+
+const (
+	Mode_UNKNOWN_MODE Mode = 0
+	// Collect stats only for a bot group.
+	Mode_MONITORED Mode = 1
+	// Generate configuration updates for bot group.
+	Mode_CONFIGURED Mode = 2
+)
+
+var Mode_name = map[int32]string{
+	0: "UNKNOWN_MODE",
+	1: "MONITORED",
+	2: "CONFIGURED",
+}
+
+var Mode_value = map[string]int32{
+	"UNKNOWN_MODE": 0,
+	"MONITORED":    1,
+	"CONFIGURED":   2,
+}
+
+func (x Mode) String() string {
+	return proto.EnumName(Mode_name, int32(x))
+}
+
+func (Mode) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_dbe70eabfd64e7ef, []int{0}
+}
+
+// Specifies mode for a bot policy
 type BotPolicy_Mode int32
 
 const (
@@ -1048,6 +1079,7 @@
 }
 
 func init() {
+	proto.RegisterEnum("chromiumos.Mode", Mode_name, Mode_value)
 	proto.RegisterEnum("chromiumos.BotPolicy_Mode", BotPolicy_Mode_name, BotPolicy_Mode_value)
 	proto.RegisterEnum("chromiumos.BotPolicy_BotScalingMode", BotPolicy_BotScalingMode_name, BotPolicy_BotScalingMode_value)
 	proto.RegisterEnum("chromiumos.ReducedBotPolicy_Mode", ReducedBotPolicy_Mode_name, ReducedBotPolicy_Mode_value)
@@ -1070,78 +1102,78 @@
 func init() { proto.RegisterFile("chromiumos/bot_scaling.proto", fileDescriptor_dbe70eabfd64e7ef) }
 
 var fileDescriptor_dbe70eabfd64e7ef = []byte{
-	// 1153 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x5d, 0x6f, 0xe3, 0x44,
-	0x17, 0x5e, 0xe7, 0x73, 0x73, 0xd2, 0x66, 0xdd, 0x49, 0xdf, 0x5d, 0xef, 0xbe, 0x8b, 0x36, 0x6b,
-	0x81, 0x88, 0x84, 0x94, 0x4a, 0x05, 0x01, 0x12, 0x17, 0x28, 0x5f, 0xcd, 0x46, 0xd0, 0x24, 0x9a,
-	0x6c, 0x81, 0x82, 0x84, 0x65, 0x3b, 0x53, 0x77, 0x54, 0xdb, 0x63, 0x3c, 0x4e, 0xb7, 0xed, 0x0f,
-	0x40, 0x5c, 0xf1, 0x2b, 0xb8, 0xe5, 0x9e, 0x1f, 0xc3, 0x2f, 0xe1, 0x0a, 0xcd, 0x78, 0x9c, 0xef,
-	0xad, 0x04, 0x62, 0xef, 0x7c, 0x9e, 0x33, 0xf3, 0xcc, 0x99, 0x67, 0x9e, 0x73, 0x12, 0x78, 0xee,
-	0x5e, 0xc6, 0x2c, 0xa0, 0xf3, 0x80, 0xf1, 0x23, 0x87, 0x25, 0x16, 0x77, 0x6d, 0x9f, 0x86, 0x5e,
-	0x2b, 0x8a, 0x59, 0xc2, 0x10, 0x2c, 0xb3, 0xe6, 0xcf, 0x1a, 0x94, 0x3b, 0x2c, 0x79, 0x7d, 0x1b,
-	0x11, 0xf4, 0x14, 0x1e, 0xca, 0xc5, 0xf4, 0x8e, 0x18, 0x5a, 0x43, 0x6b, 0x56, 0x70, 0xd9, 0x61,
-	0xc9, 0x94, 0xde, 0x11, 0x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 0x25, 0x05, 0xae, 0xc7, 0xdb, 0xa0, 0xf9, 0x4b,
-	0x0e, 0x6a, 0x98, 0x39, 0xac, 0x1b, 0xb3, 0x48, 0xbd, 0x68, 0x07, 0x1e, 0x65, 0xbf, 0x9f, 0x99,
-	0x71, 0xd3, 0x4e, 0x7e, 0xfa, 0x56, 0xe3, 0xe2, 0x1a, 0x5f, 0x0d, 0xf9, 0xbb, 0x28, 0x15, 0xfd,
-	0x08, 0x4f, 0x85, 0x1a, 0xd6, 0x4e, 0xe2, 0xbc, 0x24, 0x36, 0x57, 0x89, 0x77, 0xeb, 0x8c, 0x9f,
-	0x08, 0x92, 0x1d, 0x87, 0x76, 0x3e, 0xfd, 0xfe, 0x13, 0x8f, 0x2d, 0x08, 0x5a, 0x2c, 0xf6, 0x8e,
-	0x56, 0xfe, 0x17, 0xd3, 0xf0, 0x22, 0xb6, 0x8f, 0xe4, 0x3f, 0xe2, 0x23, 0x8f, 0xad, 0x64, 0x9c,
-	0x92, 0x04, 0x3f, 0xfe, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xb3, 0x07, 0x56, 0x9c, 0x46, 0x0b, 0x00,
-	0x00,
+	// 1158 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x5d, 0x8f, 0xdb, 0x44,
+	0x17, 0xae, 0xf3, 0xd9, 0x9c, 0xec, 0xa6, 0xde, 0xc9, 0xbe, 0xad, 0xdb, 0xb7, 0xa8, 0xa9, 0x05,
+	0x22, 0x02, 0x29, 0x2b, 0x2d, 0x08, 0x90, 0xb8, 0x40, 0xf9, 0xda, 0x34, 0x82, 0x4d, 0xa2, 0x49,
+	0x17, 0x28, 0x48, 0x58, 0xb6, 0x33, 0xeb, 0x1d, 0xad, 0xed, 0x31, 0x1e, 0x67, 0xbb, 0xbb, 0x3f,
+	0x00, 0x71, 0xc5, 0xaf, 0xe0, 0x96, 0x7b, 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0xff, 0xff, 0xe4, 0x87,
+	0x25, 0xe4, 0x7f, 0x0b, 0x00, 0x00,
 }
diff --git a/go/chromiumos/repo_cache_state.pb.go b/go/chromiumos/repo_cache_state.pb.go
new file mode 100644
index 0000000..55cd98b
--- /dev/null
+++ b/go/chromiumos/repo_cache_state.pb.go
@@ -0,0 +1,141 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// source: chromiumos/repo_cache_state.proto
+
+package chromiumos
+
+import (
+	fmt "fmt"
+	proto "github.com/golang/protobuf/proto"
+	math "math"
+)
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ = proto.Marshal
+var _ = fmt.Errorf
+var _ = math.Inf
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the proto package it is being compiled against.
+// A compilation error at this line likely means your copy of the
+// proto package needs to be updated.
+const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
+
+// The state of the tree.
+type RepoState_State int32
+
+const (
+	// Unknown: Treated as if it was DIRTY.
+	RepoState_STATE_UNSPECIFIED RepoState_State = 0
+	// Clean.  The tree is clean.
+	RepoState_STATE_CLEAN RepoState_State = 1
+	// Dirty.  The tree is in the process of being updated.
+	RepoState_STATE_DIRTY RepoState_State = 2
+	// Recovery.  Recovery from DIRTY is in progress.
+	RepoState_STATE_RECOVERY RepoState_State = 3
+)
+
+var RepoState_State_name = map[int32]string{
+	0: "STATE_UNSPECIFIED",
+	1: "STATE_CLEAN",
+	2: "STATE_DIRTY",
+	3: "STATE_RECOVERY",
+}
+
+var RepoState_State_value = map[string]int32{
+	"STATE_UNSPECIFIED": 0,
+	"STATE_CLEAN":       1,
+	"STATE_DIRTY":       2,
+	"STATE_RECOVERY":    3,
+}
+
+func (x RepoState_State) String() string {
+	return proto.EnumName(RepoState_State_name, int32(x))
+}
+
+func (RepoState_State) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_89fc521bebffa778, []int{0, 0}
+}
+
+type RepoState struct {
+	State RepoState_State `protobuf:"varint,1,opt,name=state,proto3,enum=chromiumos.RepoState_State" json:"state,omitempty"`
+	// The checked out branch.
+	ManifestBranch string `protobuf:"bytes,2,opt,name=manifest_branch,json=manifestBranch,proto3" json:"manifest_branch,omitempty"`
+	// The manifest URL.
+	ManifestUrl          string   `protobuf:"bytes,3,opt,name=manifest_url,json=manifestUrl,proto3" json:"manifest_url,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *RepoState) Reset()         { *m = RepoState{} }
+func (m *RepoState) String() string { return proto.CompactTextString(m) }
+func (*RepoState) ProtoMessage()    {}
+func (*RepoState) Descriptor() ([]byte, []int) {
+	return fileDescriptor_89fc521bebffa778, []int{0}
+}
+
+func (m *RepoState) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_RepoState.Unmarshal(m, b)
+}
+func (m *RepoState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_RepoState.Marshal(b, m, deterministic)
+}
+func (m *RepoState) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_RepoState.Merge(m, src)
+}
+func (m *RepoState) XXX_Size() int {
+	return xxx_messageInfo_RepoState.Size(m)
+}
+func (m *RepoState) XXX_DiscardUnknown() {
+	xxx_messageInfo_RepoState.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_RepoState proto.InternalMessageInfo
+
+func (m *RepoState) GetState() RepoState_State {
+	if m != nil {
+		return m.State
+	}
+	return RepoState_STATE_UNSPECIFIED
+}
+
+func (m *RepoState) GetManifestBranch() string {
+	if m != nil {
+		return m.ManifestBranch
+	}
+	return ""
+}
+
+func (m *RepoState) GetManifestUrl() string {
+	if m != nil {
+		return m.ManifestUrl
+	}
+	return ""
+}
+
+func init() {
+	proto.RegisterEnum("chromiumos.RepoState_State", RepoState_State_name, RepoState_State_value)
+	proto.RegisterType((*RepoState)(nil), "chromiumos.RepoState")
+}
+
+func init() { proto.RegisterFile("chromiumos/repo_cache_state.proto", fileDescriptor_89fc521bebffa778) }
+
+var fileDescriptor_89fc521bebffa778 = []byte{
+	// 250 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0xd0, 0xcf, 0x6b, 0xc2, 0x30,
+	0x14, 0xc0, 0xf1, 0x45, 0x71, 0xe0, 0x73, 0xd4, 0x2e, 0x30, 0x28, 0xec, 0xa2, 0x5e, 0xe6, 0x29,
+	0x65, 0x3f, 0xd8, 0x5d, 0x6b, 0x06, 0x85, 0xe1, 0x46, 0x5a, 0x07, 0xee, 0x52, 0x62, 0x89, 0x6d,
+	0xc1, 0xf6, 0x95, 0xb4, 0xfe, 0xbf, 0xfb, 0x53, 0x86, 0x29, 0xb6, 0xbd, 0xe4, 0xf0, 0x7d, 0x9f,
+	0x43, 0xde, 0x83, 0x79, 0x9c, 0x6a, 0xcc, 0xb3, 0x73, 0x8e, 0x95, 0xab, 0x55, 0x89, 0x51, 0x2c,
+	0xe3, 0x54, 0x45, 0x55, 0x2d, 0x6b, 0xc5, 0x4a, 0x8d, 0x35, 0x52, 0xe8, 0xc8, 0xe2, 0x8f, 0xc0,
+	0x58, 0xa8, 0x12, 0x83, 0xcb, 0x9c, 0x3e, 0xc3, 0xc8, 0x40, 0x87, 0xcc, 0xc8, 0xd2, 0x7a, 0x79,
+	0x64, 0x9d, 0x64, 0xad, 0x62, 0xe6, 0x15, 0x8d, 0xa4, 0x4f, 0x30, 0xcd, 0x65, 0x91, 0x1d, 0x55,
+	0x55, 0x47, 0x07, 0x2d, 0x8b, 0x38, 0x75, 0x06, 0x33, 0xb2, 0x1c, 0x0b, 0xeb, 0x9a, 0xd7, 0xa6,
+	0xd2, 0x39, 0xdc, 0xb5, 0xf0, 0xac, 0x4f, 0xce, 0xd0, 0xa8, 0xc9, 0xb5, 0xed, 0xf4, 0x69, 0x11,
+	0xc2, 0xa8, 0xf9, 0xc7, 0x03, 0xdc, 0x07, 0xe1, 0x2a, 0xe4, 0xd1, 0x6e, 0x1b, 0x7c, 0x73, 0xcf,
+	0xff, 0xf0, 0xf9, 0xc6, 0xbe, 0xa1, 0x53, 0x98, 0x34, 0xd9, 0xfb, 0xe4, 0xab, 0xad, 0x4d, 0xba,
+	0xb0, 0xf1, 0x45, 0xb8, 0xb7, 0x07, 0x94, 0x82, 0xd5, 0x04, 0xc1, 0xbd, 0xaf, 0x1f, 0x2e, 0xf6,
+	0xf6, 0x70, 0xfd, 0xfe, 0xfb, 0x96, 0x60, 0xbb, 0x09, 0x43, 0x9d, 0xb8, 0xbd, 0x1b, 0x65, 0xc5,
+	0x51, 0x4b, 0xd7, 0x1c, 0xc6, 0x4d, 0xb0, 0x37, 0x39, 0xdc, 0x9a, 0xf8, 0xfa, 0x1f, 0x00, 0x00,
+	0xff, 0xff, 0x4e, 0x57, 0x8c, 0xc6, 0x52, 0x01, 0x00, 0x00,
+}
diff --git a/src/chromiumos/bot_scaling.proto b/src/chromiumos/bot_scaling.proto
index 9f5fc7b..bc9a2a0 100644
--- a/src/chromiumos/bot_scaling.proto
+++ b/src/chromiumos/bot_scaling.proto
@@ -30,14 +30,21 @@
   repeated string values = 3;
 }
 
+// Specifies mode for a bot policy
+enum Mode {
+  UNKNOWN_MODE = 0;
+  // Collect stats only for a bot group.
+  MONITORED = 1;
+  // Generate configuration updates for bot group.
+  CONFIGURED = 2;
+}
+
 // Bot Policy to apply to a bot group.
 message BotPolicy {
   // Bot group controlled by this policy, like, 'cq', 'postsubmit',...
   string bot_group = 1;
-
   // The type of bot to be requested.
   BotType bot_type = 2;
-
   // Scaling restriction specifies the limits on how the group can be
   // expanded or reduced.
   message ScalingRestriction {
@@ -79,12 +86,10 @@
     // Generate configuration updates for bot group.
     CONFIGURED = 2;
   }
-
   // Set whether a bot group should be configured or only monitored.
   Mode policy_mode = 6;
   // Number of hours to lookback for Swarming stats.
   sint32 lookback_hours = 7;
-
   // Specifies mode for a bot scaling
   enum BotScalingMode {
     UNKNOWN_SCALING_MODE = 0;
@@ -97,7 +102,6 @@
     // Scale up bots by the demand on the bot group.
     STEPPED_DECREASE = 3;
   }
-
   // Set the scaling approach for the bot group being monitored.
   BotScalingMode scaling_mode = 8;
   // Swarming instance name:  chromeos-swarming.appspot.com
@@ -116,10 +120,8 @@
 message ReducedBotPolicy {
   // Bot group controlled by this policy, like, 'cq', 'postsubmit',...
   string bot_group = 1;
-
   // The type of bot to be requested.
   BotType bot_type = 2;
-
   // Specifies mode for a bot policy
   enum Mode {
     UNKNOWN_MODE = 0;
@@ -128,7 +130,6 @@
     // Generate configuration updates for bot group.
     CONFIGURED = 2;
   }
-
   // Set whether a bot group should be configured or only monitored.
   Mode policy_mode = 3;
 }
@@ -143,10 +144,8 @@
 message ScalingAction {
   // Bot group modified by the action. Should be the same as BotPolicy.
   string bot_group = 1;
-
   // The type of bot requested. Should be the same as BotPolicy.
   BotType bot_type = 2;
-
   // Specifies if there has been a change since the last iteration.
   enum Actionable {
     UNSPECIFIED = 0;
@@ -155,14 +154,11 @@
     // There is no change since last time.
     NO = 2;
   }
-
   // Whether there has been a change in the number of bots requested
   // for this bot group. See step_size for more info.
   Actionable actionable = 3;
-
   // Total number of bots requested for the group.
   int32 bots_requested = 4;
-
   // How the bot requests are distributed between regions & prefixes.
   message RegionalAction {
     // Region of the bot sub-group.
diff --git a/src/chromiumos/repo_cache_state.proto b/src/chromiumos/repo_cache_state.proto
new file mode 100644
index 0000000..b45e231
--- /dev/null
+++ b/src/chromiumos/repo_cache_state.proto
@@ -0,0 +1,28 @@
+// 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 chromiumos;
+
+option go_package = "go.chromium.org/chromiumos/infra/proto/go/chromiumos";
+
+message RepoState {
+  // The state of the tree.
+  enum State {
+    // Unknown: Treated as if it was DIRTY.
+    STATE_UNSPECIFIED = 0;
+    // Clean.  The tree is clean.
+    STATE_CLEAN = 1;
+    // Dirty.  The tree is in the process of being updated.
+    STATE_DIRTY = 2;
+    // Recovery.  Recovery from DIRTY is in progress.
+    STATE_RECOVERY = 3;
+  }
+  State state = 1;
+  // The checked out branch.
+  string manifest_branch = 2;
+  // The manifest URL.
+  string manifest_url = 3;
+}