OpenWeather-gRPC-API/proto/extended.proto

20 lines
474 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 RequestExtended {
2022-07-26 01:06:17 -04:00
LocationType location_type = 1;
string location = 2; // zip/postal code, city name, or comma separated coords "-81.2,40.5"
optional string state = 3; // US Only
optional string country = 4; // Must be ISO 3166 country code
uint32 days = 5;
2022-07-25 16:16:27 -04:00
}
message SendExtended {
string payload = 1;
}