OpenWeather-gRPC-API/proto/current.proto

22 lines
566 B
Protocol Buffer
Raw Normal View History

2022-07-25 16:16:27 -04:00
syntax = "proto3";
package weather;
option go_package = "codeberg.org/andcscott/OpenWeatherMap-gRPC-API/proto";
2022-07-26 03:52:18 -04:00
//import "location_types.proto";
//import "units.proto"
2022-07-26 01:06:17 -04:00
2022-07-25 16:16:27 -04:00
message RequestCurrent {
2022-07-26 01:06:17 -04:00
//LocationType location_type = 1; NOT IMPLEMENTED YET
2022-07-26 03:52:18 -04:00
//Units units = 2; NOT IMPLEMENTED YET
2022-07-26 01:06:17 -04:00
string city = 1;
// optional string zip_code = 2; NOT IMPLEMENTED YET
2022-07-26 03:52:18 -04:00
// optional string state = 2; // US Only / NOT IMPLEMENTED YET
// optional string country = 3; // Must be an ISO 3166 code / NOT IMPLEMENTED YET
2022-07-25 16:16:27 -04:00
}
message SendCurrent {
string payload = 1;
}