Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
syntax = "proto3";
package solar_system_info;
import "google/protobuf/timestamp.proto";
import "google/protobuf/empty.proto";
service SolarSystemInfo {
rpc GetPlanetsList (google.protobuf.Empty) returns (PlanetsListResponse);
rpc GetPlanet (PlanetRequest) returns (PlanetResponse);
rpc GetPlanets (google.protobuf.Empty) returns (stream PlanetResponse);
}
message PlanetsListResponse {
repeated string list = 1;
}
message PlanetRequest {
string name = 1;
}
message PlanetResponse {
Planet planet = 1;
}
message Planet {
uint64 id = 1;
string name = 2;
Type type = 3;
float meanRadius = 4;
float mass = 5;
repeated Satellite satellites = 6;
bytes image = 7;
}
enum Type {
TERRESTRIAL_PLANET = 0;
GAS_GIANT = 1;
ICE_GIANT = 2;
DWARF_PLANET = 3;
}
message Satellite {
uint64 id = 1;
string name = 2;
google.protobuf.Timestamp first_spacecraft_landing_date = 3;
}