goprotobuf: Explicitly type the generated enum constants.

R=r
CC=golang-dev
http://codereview.appspot.com/4952045
diff --git a/proto/all_test.go b/proto/all_test.go
index dd7f66e..256ab4c 100644
--- a/proto/all_test.go
+++ b/proto/all_test.go
@@ -112,7 +112,7 @@
 		pb.F_Sint64Defaulted = Int64(Default_GoTest_F_Sint64Defaulted)
 	}
 
-	pb.Kind = Int32(GoTest_TIME)
+	pb.Kind = NewGoTest_KIND(GoTest_TIME)
 	pb.RequiredField = initGoTestField()
 	pb.F_BoolRequired = Bool(true)
 	pb.F_Int32Required = Int32(3)
diff --git a/proto/equal_test.go b/proto/equal_test.go
index 9634771..e22c13b 100644
--- a/proto/equal_test.go
+++ b/proto/equal_test.go
@@ -49,7 +49,7 @@
 	{"equal empty", &pb.GoEnum{}, &pb.GoEnum{}, true},
 
 	{"one set field, one unset field", &pb.GoTestField{Label: String("foo")}, &pb.GoTestField{}, false},
-	{"one set field zero, one unset field", &pb.GoTest{Kind: Int32(0)}, &pb.GoTest{}, false},
+	{"one set field zero, one unset field", &pb.GoTest{Param: Int32(0)}, &pb.GoTest{}, false},
 	{"different set fields", &pb.GoTestField{Label: String("foo")}, &pb.GoTestField{Label: String("bar")}, false},
 	{"equal set", &pb.GoTestField{Label: String("foo")}, &pb.GoTestField{Label: String("foo")}, true},
 
diff --git a/proto/testdata/test.proto b/proto/testdata/test.proto
index b3f4bd6..70ff890 100644
--- a/proto/testdata/test.proto
+++ b/proto/testdata/test.proto
@@ -73,7 +73,7 @@
   };
 
   // Some typical parameters
-  required int32 Kind = 1;
+  required KIND Kind = 1;
   optional string Table = 2;
   optional int32 Param = 3;