rpc/service: name unnamed array type
Change-Id: If8abd63170e8dbedb97dbadef06c47baf22430ff
diff --git a/rps/service.vdl.go b/rps/service.vdl.go
index 477f47c..86fb4dc 100644
--- a/rps/service.vdl.go
+++ b/rps/service.vdl.go
@@ -80,13 +80,20 @@
}) {
}
+type PlayersMoves [2]string
+
+func (PlayersMoves) __VDLReflect(struct {
+ Name string "v.io/apps/rps.PlayersMoves"
+}) {
+}
+
// Round represents the state of a round.
type Round struct {
- Moves [2]string // Each player's move.
- Comment string // A text comment from judge about the round.
- Winner WinnerTag // Who won the round.
- StartTimeNS int64 // The time at which the round started.
- EndTimeNS int64 // The time at which the round ended.
+ Moves PlayersMoves // Each player's move.
+ Comment string // A text comment from judge about the round.
+ Winner WinnerTag // Who won the round.
+ StartTimeNS int64 // The time at which the round started.
+ EndTimeNS int64 // The time at which the round ended.
}
func (Round) __VDLReflect(struct {
@@ -134,6 +141,7 @@
vdl.Register(GameTypeTag(0))
vdl.Register(PlayerAction{})
vdl.Register(JudgeAction{})
+ vdl.Register(PlayersMoves{})
vdl.Register(Round{})
vdl.Register(WinnerTag(0))
vdl.Register(PlayResult{})