test_platform: fix the type of parent build id for TestCaseResult

As we use test runner's build ID to identify a test run, all fields
representing it should be build ID type(int64).

BUG=chromium:1085958
TEST=./generate.sh

Change-Id: I5efcfec94aa15b2c855f62932ee8b7b339f67f54
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2281286
Reviewed-by: Alex Zamorzaev <zamorzaev@chromium.org>
Commit-Queue: Xinan Lin <linxinan@chromium.org>
Tested-by: Xinan Lin <linxinan@chromium.org>
diff --git a/go/test_platform/analytics/result.pb.go b/go/test_platform/analytics/result.pb.go
index 24b25da..bc44734 100644
--- a/go/test_platform/analytics/result.pb.go
+++ b/go/test_platform/analytics/result.pb.go
@@ -321,7 +321,7 @@
 	// e.g. "provision_AutoUpdate.double".
 	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
 	// The TestRun.build_id of the parent test run.
-	ParentBuildId string   `protobuf:"bytes,3,opt,name=parent_build_id,json=parentBuildId,proto3" json:"parent_build_id,omitempty"`
+	ParentBuildId int64    `protobuf:"varint,3,opt,name=parent_build_id,json=parentBuildId,proto3" json:"parent_build_id,omitempty"`
 	Verdict       *Verdict `protobuf:"bytes,4,opt,name=verdict,proto3" json:"verdict,omitempty"`
 	// A one line human readable description of what happened during test
 	// case execution (e.g. error/warning message). Not intended to be machine
@@ -372,11 +372,11 @@
 	return ""
 }
 
-func (m *TestCaseResult) GetParentBuildId() string {
+func (m *TestCaseResult) GetParentBuildId() int64 {
 	if m != nil {
 		return m.ParentBuildId
 	}
-	return ""
+	return 0
 }
 
 func (m *TestCaseResult) GetVerdict() *Verdict {
@@ -591,7 +591,7 @@
 }
 
 var fileDescriptor_ea3c1349f87b947c = []byte{
-	// 651 bytes of a gzipped FileDescriptorProto
+	// 652 bytes of a gzipped FileDescriptorProto
 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4d, 0x6f, 0xd3, 0x40,
 	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x97, 0x4e,
+	0xd8, 0xb9, 0x55, 0x18, 0x51, 0x5e, 0xa2, 0xec, 0x08, 0x06, 0x64, 0x4c, 0x78, 0x29, 0xb8, 0x93,
+	0x6e, 0xde, 0x2a, 0xed, 0x7b, 0xbe, 0x45, 0x46, 0x8f, 0x20, 0x74, 0x33, 0x6d, 0x5f, 0xd6, 0x15,
+	0x61, 0x86, 0xfa, 0xae, 0xba, 0x60, 0xb4, 0x0f, 0x91, 0x37, 0x79, 0x39, 0xe1, 0xf8, 0xe4, 0xfb,
+	0xc7, 0x4a, 0xa4, 0xb8, 0xaa, 0x6a, 0xd3, 0xa4, 0x42, 0x56, 0xd9, 0x2c, 0x10, 0x2a, 0xab, 0xf9,
+	0x54, 0x12, 0xb7, 0xb0, 0xb3, 0x4a, 0x64, 0x2b, 0xf6, 0xff, 0x38, 0x44, 0xc6, 0xcb, 0x7f, 0x01,
+	0x00, 0x00, 0xff, 0xff, 0x7e, 0xcb, 0x0b, 0xbf, 0x21, 0x06, 0x00, 0x00,
 }
diff --git a/src/test_platform/analytics/result.proto b/src/test_platform/analytics/result.proto
index 712ca01..b90586f 100644
--- a/src/test_platform/analytics/result.proto
+++ b/src/test_platform/analytics/result.proto
@@ -104,7 +104,7 @@
   string display_name = 2;
 
   // The TestRun.build_id of the parent test run.
-  string parent_build_id = 3;
+  int64 parent_build_id = 3;
 
   Verdict verdict = 4;