OpenWeather-gRPC-API/proto/extended.proto
2022-07-26 01:06:17 -04:00

19 lines
474 B
Protocol Buffer

syntax = "proto3";
package weather;
option go_package = "codeberg.org/andcscott/OpenWeatherMap-gRPC-API/proto";
import "location_types.proto";
message RequestExtended {
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;
}
message SendExtended {
string payload = 1;
}