mirror of
https://codeberg.org/andyscott/OpenWeather-gRPC-API.git
synced 2024-11-04 05:10:48 -05:00
19 lines
474 B
Protocol Buffer
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;
|
|
}
|