Skip to content

Commit

Permalink
Add google geo type (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
iwaltgen authored Apr 28, 2020
1 parent d88d944 commit 3a82204
Show file tree
Hide file tree
Showing 10 changed files with 773 additions and 86 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ regenerate:
-I=. \
google/type/datetime.proto

protoc \
--gogogoogleapis_out=\
Mgoogle/type/latlng.proto=github.com/gogo/googleapis/google/type,\
:. \
-I=. \
google/geo/type/viewport.proto

update:
go get github.com/gogo/protobuf/gogoreplace

Expand Down Expand Up @@ -214,3 +221,9 @@ update:
'option go_package = "google.golang.org/genproto/googleapis/type/timeofday;timeofday";' \
'option go_package = "type";' \
./google/type/timeofday.proto

(cd ./google/geo/type && rm viewport.proto; wget ${URL}/google/geo/type/viewport.proto)
gogoreplace \
'option go_package = "google.golang.org/genproto/googleapis/geo/type/viewport;viewport";' \
'option go_package = "type";' \
./google/geo/type/viewport.proto
3 changes: 1 addition & 2 deletions google/api/expr/v1alpha1/syntax.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

syntax = "proto3";

Expand Down
3 changes: 1 addition & 2 deletions google/api/expr/v1alpha1/value.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

syntax = "proto3";

Expand Down
Loading

0 comments on commit 3a82204

Please sign in to comment.