Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proto directory and update tooling. #709

Merged
merged 2 commits into from
Apr 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/build-image/gen-grpc-cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ header() {
cat /go/src/agones.dev/agones/build/boilerplate.go.txt $1 >> /tmp/cpp/$1 && mv /tmp/cpp/$1 .
}

googleapis=/go/src/agones.dev/agones/vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis
googleapis=/go/src/agones.dev/agones/proto/googleapis

cd /go/src/agones.dev/agones/sdks/cpp
find -name '*.pb.*' -delete
Expand Down
2 changes: 1 addition & 1 deletion build/build-sdk-images/cpp/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ header() {
cat /go/src/agones.dev/agones/build/boilerplate.go.txt ./$1 >> $2/$1
}

googleapis=/go/src/agones.dev/agones/vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis
googleapis=/go/src/agones.dev/agones/proto/googleapis
protoc_intermediate=/go/src/agones.dev/agones/sdks/cpp/.generated
protoc_destination=/go/src/agones.dev/agones/sdks/cpp

Expand Down
2 changes: 1 addition & 1 deletion build/build-sdk-images/go/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cd /go/src/agones.dev/agones
go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger

googleapis=/go/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis
googleapis=/go/src/agones.dev/agones/proto/googleapis


protoc -I ${googleapis} -I . sdk.proto --go_out=plugins=grpc:pkg/sdk
Expand Down
4 changes: 2 additions & 2 deletions build/build-sdk-images/node/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ header() {
cat ./build/boilerplate.go.txt $1 >> ./tmp.js && mv ./tmp.js $1
}

googleapis=/go/src/agones.dev/agones/vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis
googleapis=/go/src/agones.dev/agones/proto/googleapis

cd /go/src/agones.dev/agones

protoc -I ${googleapis} -I . --grpc_out=./sdks/nodejs/lib --plugin=protoc-gen-grpc=`which grpc_node_plugin` sdk.proto
protoc -I ${googleapis} -I . --js_out=import_style=commonjs,binary:./sdks/nodejs/lib sdk.proto ${googleapis}/google/api/annotations.proto ${googleapis}/google/api/http.proto
protoc -I ${googleapis} -I . --js_out=import_style=commonjs,binary:./sdks/nodejs/lib sdk.proto ${googleapis}/google/api/annotations.proto ${googleapis}/google/api/http.proto

header ./sdks/nodejs/lib/sdk_pb.js
header ./sdks/nodejs/lib/google/api/annotations_pb.js
Expand Down
2 changes: 1 addition & 1 deletion build/build-sdk-images/rust/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

set -ex

googleapis=/go/src/agones.dev/agones/vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis
googleapis=/go/src/agones.dev/agones/proto/googleapis

cd /go/src/agones.dev/agones

Expand Down
20 changes: 10 additions & 10 deletions pkg/sdk/sdk.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions proto/googleapis/google/api/annotations.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright (c) 2015, Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// 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";

package google.api;

import "google/api/http.proto";
import "google/protobuf/descriptor.proto";

option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
option java_multiple_files = true;
option java_outer_classname = "AnnotationsProto";
option java_package = "com.google.api";
option objc_class_prefix = "GAPI";

extend google.protobuf.MethodOptions {
// See `HttpRule`.
HttpRule http = 72295728;
}
Loading