20 lines
359 B
Protocol Buffer
20 lines
359 B
Protocol Buffer
syntax = "proto3";
|
|
//package pb; -- https://protobuf.dev/programming-guides/proto3/#packages: ignored in Go
|
|
|
|
option go_package = "pokedex/pb";
|
|
|
|
message Move {
|
|
string name = 1;
|
|
string url = 2;
|
|
}
|
|
|
|
message Pokemons {
|
|
repeated Pokemon entries = 1;
|
|
}
|
|
|
|
message Pokemon {
|
|
string name = 1;
|
|
int32 height = 2;
|
|
int32 weight = 3;
|
|
repeated Move moves = 4;
|
|
} |