Skip to content

Commit 3a82204

Browse files
authored
Add google geo type (#15)
1 parent d88d944 commit 3a82204

File tree

10 files changed

+773
-86
lines changed

10 files changed

+773
-86
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ regenerate:
8080
-I=. \
8181
google/type/datetime.proto
8282

83+
protoc \
84+
--gogogoogleapis_out=\
85+
Mgoogle/type/latlng.proto=github.com/gogo/googleapis/google/type,\
86+
:. \
87+
-I=. \
88+
google/geo/type/viewport.proto
89+
8390
update:
8491
go get github.com/gogo/protobuf/gogoreplace
8592

@@ -214,3 +221,9 @@ update:
214221
'option go_package = "google.golang.org/genproto/googleapis/type/timeofday;timeofday";' \
215222
'option go_package = "type";' \
216223
./google/type/timeofday.proto
224+
225+
(cd ./google/geo/type && rm viewport.proto; wget ${URL}/google/geo/type/viewport.proto)
226+
gogoreplace \
227+
'option go_package = "google.golang.org/genproto/googleapis/geo/type/viewport;viewport";' \
228+
'option go_package = "type";' \
229+
./google/geo/type/viewport.proto

google/api/expr/v1alpha1/syntax.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2020 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
//
1514

1615
syntax = "proto3";
1716

google/api/expr/v1alpha1/value.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2020 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
//
1514

1615
syntax = "proto3";
1716

0 commit comments

Comments
 (0)