OpenWeather-gRPC-API/proto/current.proto

20 lines
455 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 01:06:17 -04:00
import "location_types.proto";
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
string city = 1;
// optional string zip_code = 2; NOT IMPLEMENTED YET
2022-07-26 01:06:17 -04:00
optional string state = 2; // US Only
optional string country = 3; // Must be ISO 3166 country code
2022-07-25 16:16:27 -04:00
}
message SendCurrent {
string payload = 1;
}