From fd3aa34b8366e41d8824460ea0e4de263fa3f738 Mon Sep 17 00:00:00 2001 From: Stanley Cheung Date: Thu, 22 Feb 2018 14:09:55 -0800 Subject: [PATCH] Added License headers to all files --- javascript/net/grpc/web/Makefile | 37 +++++------------- javascript/net/grpc/web/abstractclientbase.js | 18 +++++++++ .../net/grpc/web/clientreadablestream.js | 18 +++++++++ javascript/net/grpc/web/error.js | 18 +++++++++ javascript/net/grpc/web/gatewayclientbase.js | 18 +++++++++ javascript/net/grpc/web/grpc_generator.cc | 35 +++++------------ javascript/net/grpc/web/grpcwebclientbase.js | 18 +++++++++ .../grpc/web/grpcwebclientreadablestream.js | 18 +++++++++ .../net/grpc/web/grpcwebstreamparser.js | 18 +++++++++ javascript/net/grpc/web/status.js | 18 +++++++++ .../web/streambodyclientreadablestream.js | 18 +++++++++ .../net/grpc/web/util/genericpbjsclient.js | 18 +++++++++ net/grpc/gateway/backend/backend.cc | 18 +++++++++ net/grpc/gateway/backend/backend.h | 18 +++++++++ net/grpc/gateway/backend/grpc_backend.cc | 18 +++++++++ net/grpc/gateway/backend/grpc_backend.h | 18 +++++++++ net/grpc/gateway/codec/b64_proto_decoder.cc | 18 +++++++++ net/grpc/gateway/codec/b64_proto_decoder.h | 18 +++++++++ net/grpc/gateway/codec/b64_proto_encoder.cc | 18 +++++++++ net/grpc/gateway/codec/b64_proto_encoder.h | 18 +++++++++ .../gateway/codec/b64_stream_body_decoder.cc | 18 +++++++++ .../gateway/codec/b64_stream_body_decoder.h | 18 +++++++++ .../gateway/codec/b64_stream_body_encoder.cc | 18 +++++++++ .../gateway/codec/b64_stream_body_encoder.h | 18 +++++++++ net/grpc/gateway/codec/base64.cc | 18 +++++++++ net/grpc/gateway/codec/base64.h | 18 +++++++++ net/grpc/gateway/codec/decoder.cc | 18 +++++++++ net/grpc/gateway/codec/decoder.h | 18 +++++++++ net/grpc/gateway/codec/encoder.cc | 18 +++++++++ net/grpc/gateway/codec/encoder.h | 18 +++++++++ net/grpc/gateway/codec/grpc_decoder.cc | 18 +++++++++ net/grpc/gateway/codec/grpc_decoder.h | 18 +++++++++ net/grpc/gateway/codec/grpc_encoder.cc | 18 +++++++++ net/grpc/gateway/codec/grpc_encoder.h | 18 +++++++++ net/grpc/gateway/codec/grpc_web_decoder.cc | 18 +++++++++ net/grpc/gateway/codec/grpc_web_decoder.h | 18 +++++++++ net/grpc/gateway/codec/grpc_web_encoder.cc | 18 +++++++++ net/grpc/gateway/codec/grpc_web_encoder.h | 18 +++++++++ .../gateway/codec/grpc_web_text_decoder.cc | 18 +++++++++ .../gateway/codec/grpc_web_text_decoder.h | 18 +++++++++ .../gateway/codec/grpc_web_text_encoder.cc | 18 +++++++++ .../gateway/codec/grpc_web_text_encoder.h | 18 +++++++++ net/grpc/gateway/codec/json_decoder.cc | 18 +++++++++ net/grpc/gateway/codec/json_decoder.h | 18 +++++++++ net/grpc/gateway/codec/json_encoder.cc | 18 +++++++++ net/grpc/gateway/codec/json_encoder.h | 18 +++++++++ net/grpc/gateway/codec/proto_decoder.cc | 18 +++++++++ net/grpc/gateway/codec/proto_decoder.h | 18 +++++++++ net/grpc/gateway/codec/proto_encoder.cc | 18 +++++++++ net/grpc/gateway/codec/proto_encoder.h | 18 +++++++++ net/grpc/gateway/codec/stream_body_decoder.cc | 18 +++++++++ net/grpc/gateway/codec/stream_body_decoder.h | 18 +++++++++ net/grpc/gateway/codec/stream_body_encoder.cc | 18 +++++++++ net/grpc/gateway/codec/stream_body_encoder.h | 18 +++++++++ .../gateway/docker/debian_stretch/Dockerfile | 14 +++++++ .../gateway/docker/ubuntu_12_04/Dockerfile | 14 +++++++ net/grpc/gateway/examples/echo/Makefile | 37 +++++------------- net/grpc/gateway/examples/echo/echo.proto | 14 +++++++ net/grpc/gateway/examples/echo/echo_server.cc | 37 ++++++------------ .../examples/echo/echo_service_impl.cc | 38 ++++++------------- .../gateway/examples/echo/echo_service_impl.h | 37 ++++++------------ net/grpc/gateway/examples/echo/echotest.html | 14 +++++++ net/grpc/gateway/frontend/frontend.cc | 18 +++++++++ net/grpc/gateway/frontend/frontend.h | 18 +++++++++ net/grpc/gateway/frontend/nginx_bridge.h | 18 +++++++++ .../gateway/frontend/nginx_http_frontend.cc | 18 +++++++++ .../gateway/frontend/nginx_http_frontend.h | 18 +++++++++ net/grpc/gateway/log.h | 18 +++++++++ net/grpc/gateway/macros.h | 18 +++++++++ net/grpc/gateway/nginx/grpc_gateway_module.c | 18 +++++++++ net/grpc/gateway/nginx/package/nginx.sh | 15 ++++++++ .../nginx/package/nginx_with_heap_profiler.sh | 15 ++++++++ net/grpc/gateway/nginx_includes.h | 18 +++++++++ net/grpc/gateway/nginx_utils.cc | 18 +++++++++ net/grpc/gateway/nginx_utils.h | 18 +++++++++ net/grpc/gateway/protos/pair.proto | 14 +++++++ net/grpc/gateway/protos/stream_body.proto | 16 +++++++- net/grpc/gateway/runtime/constants.h | 18 +++++++++ net/grpc/gateway/runtime/grpc_event_queue.cc | 18 +++++++++ net/grpc/gateway/runtime/grpc_event_queue.h | 18 +++++++++ .../gateway/runtime/nginx_notify_queue.cc | 18 +++++++++ net/grpc/gateway/runtime/nginx_notify_queue.h | 18 +++++++++ net/grpc/gateway/runtime/request.cc | 18 +++++++++ net/grpc/gateway/runtime/request.h | 18 +++++++++ net/grpc/gateway/runtime/response.cc | 18 +++++++++ net/grpc/gateway/runtime/response.h | 18 +++++++++ net/grpc/gateway/runtime/runtime.cc | 18 +++++++++ net/grpc/gateway/runtime/runtime.h | 18 +++++++++ net/grpc/gateway/runtime/tag.cc | 18 +++++++++ net/grpc/gateway/runtime/tag.h | 18 +++++++++ net/grpc/gateway/runtime/types.h | 18 +++++++++ net/grpc/gateway/utils.cc | 18 +++++++++ net/grpc/gateway/utils.h | 18 +++++++++ 93 files changed, 1601 insertions(+), 158 deletions(-) diff --git a/javascript/net/grpc/web/Makefile b/javascript/net/grpc/web/Makefile index 4b43c33..b57d5fe 100644 --- a/javascript/net/grpc/web/Makefile +++ b/javascript/net/grpc/web/Makefile @@ -1,33 +1,16 @@ +# Copyright 2018 Google LLC # -# Copyright 2016, Google Inc. -# All rights reserved. +# 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 # -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. -# * Neither the name of Google Inc. nor the names of its -# contributors may be used to endorse or promote products derived from -# this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# https://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. CXX = g++ CPPFLAGS += -I/usr/local/include -pthread diff --git a/javascript/net/grpc/web/abstractclientbase.js b/javascript/net/grpc/web/abstractclientbase.js index 9ac5d09..0c749fa 100644 --- a/javascript/net/grpc/web/abstractclientbase.js +++ b/javascript/net/grpc/web/abstractclientbase.js @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + /** * @fileoverview gRPC browser client library. * diff --git a/javascript/net/grpc/web/clientreadablestream.js b/javascript/net/grpc/web/clientreadablestream.js index 9475b23..4a6309d 100644 --- a/javascript/net/grpc/web/clientreadablestream.js +++ b/javascript/net/grpc/web/clientreadablestream.js @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + /** * @fileoverview gRPC web client Readable Stream * diff --git a/javascript/net/grpc/web/error.js b/javascript/net/grpc/web/error.js index 8c0e900..07f8082 100644 --- a/javascript/net/grpc/web/error.js +++ b/javascript/net/grpc/web/error.js @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + /** * @fileoverview gRPC-Web Error objects * diff --git a/javascript/net/grpc/web/gatewayclientbase.js b/javascript/net/grpc/web/gatewayclientbase.js index 9cb9a1c..e18f56a 100644 --- a/javascript/net/grpc/web/gatewayclientbase.js +++ b/javascript/net/grpc/web/gatewayclientbase.js @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + /** * @fileoverview gRPC browser client library. * diff --git a/javascript/net/grpc/web/grpc_generator.cc b/javascript/net/grpc/web/grpc_generator.cc index ad96c3a..989f81c 100644 --- a/javascript/net/grpc/web/grpc_generator.cc +++ b/javascript/net/grpc/web/grpc_generator.cc @@ -1,33 +1,18 @@ /** * - * Copyright 2016, Google Inc. - * All rights reserved. + * Copyright 2018 Google LLC * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: + * 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 * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. + * https://www.apache.org/licenses/LICENSE-2.0 * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * 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. * */ diff --git a/javascript/net/grpc/web/grpcwebclientbase.js b/javascript/net/grpc/web/grpcwebclientbase.js index 081047f..2b1cd7a 100644 --- a/javascript/net/grpc/web/grpcwebclientbase.js +++ b/javascript/net/grpc/web/grpcwebclientbase.js @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + /** * @fileoverview gRPC browser client library. * diff --git a/javascript/net/grpc/web/grpcwebclientreadablestream.js b/javascript/net/grpc/web/grpcwebclientreadablestream.js index 1d22beb..86c5c7e 100644 --- a/javascript/net/grpc/web/grpcwebclientreadablestream.js +++ b/javascript/net/grpc/web/grpcwebclientreadablestream.js @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + /** * @fileoverview gRPC web client Readable Stream * diff --git a/javascript/net/grpc/web/grpcwebstreamparser.js b/javascript/net/grpc/web/grpcwebstreamparser.js index 381765b..776d1ef 100644 --- a/javascript/net/grpc/web/grpcwebstreamparser.js +++ b/javascript/net/grpc/web/grpcwebstreamparser.js @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + /** * @fileoverview The default grpc-web stream parser * diff --git a/javascript/net/grpc/web/status.js b/javascript/net/grpc/web/status.js index 9d2605b..b4a52eb 100644 --- a/javascript/net/grpc/web/status.js +++ b/javascript/net/grpc/web/status.js @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + /** * @fileoverview gRPC Web Status codes and mapping. * diff --git a/javascript/net/grpc/web/streambodyclientreadablestream.js b/javascript/net/grpc/web/streambodyclientreadablestream.js index de01426..688b7ff 100644 --- a/javascript/net/grpc/web/streambodyclientreadablestream.js +++ b/javascript/net/grpc/web/streambodyclientreadablestream.js @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + /** * @fileoverview gRPC web client Readable Stream * diff --git a/javascript/net/grpc/web/util/genericpbjsclient.js b/javascript/net/grpc/web/util/genericpbjsclient.js index f553814..855e7ac 100644 --- a/javascript/net/grpc/web/util/genericpbjsclient.js +++ b/javascript/net/grpc/web/util/genericpbjsclient.js @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + /** * @fileoverview A generic gRPC-Web client customized for Protobuf.js. * diff --git a/net/grpc/gateway/backend/backend.cc b/net/grpc/gateway/backend/backend.cc index 3d9f5bc..2b6a21d 100644 --- a/net/grpc/gateway/backend/backend.cc +++ b/net/grpc/gateway/backend/backend.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/backend/backend.h" namespace grpc { diff --git a/net/grpc/gateway/backend/backend.h b/net/grpc/gateway/backend/backend.h index 80427c6..dcda208 100644 --- a/net/grpc/gateway/backend/backend.h +++ b/net/grpc/gateway/backend/backend.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_BACKEND_BACKEND_H_ #define NET_GRPC_GATEWAY_BACKEND_BACKEND_H_ diff --git a/net/grpc/gateway/backend/grpc_backend.cc b/net/grpc/gateway/backend/grpc_backend.cc index 5639b3f..46fca69 100644 --- a/net/grpc/gateway/backend/grpc_backend.cc +++ b/net/grpc/gateway/backend/grpc_backend.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/backend/grpc_backend.h" #include diff --git a/net/grpc/gateway/backend/grpc_backend.h b/net/grpc/gateway/backend/grpc_backend.h index c059b9f..6cc1e41 100644 --- a/net/grpc/gateway/backend/grpc_backend.h +++ b/net/grpc/gateway/backend/grpc_backend.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_BACKEND_GRPC_BACKEND_H_ #define NET_GRPC_GATEWAY_BACKEND_GRPC_BACKEND_H_ diff --git a/net/grpc/gateway/codec/b64_proto_decoder.cc b/net/grpc/gateway/codec/b64_proto_decoder.cc index 444c9ee..ee35d0d 100644 --- a/net/grpc/gateway/codec/b64_proto_decoder.cc +++ b/net/grpc/gateway/codec/b64_proto_decoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/b64_proto_decoder.h" namespace grpc { diff --git a/net/grpc/gateway/codec/b64_proto_decoder.h b/net/grpc/gateway/codec/b64_proto_decoder.h index 9d22259..ae61fd4 100644 --- a/net/grpc/gateway/codec/b64_proto_decoder.h +++ b/net/grpc/gateway/codec/b64_proto_decoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_B64_PROTO_DECODER_H_ #define NET_GRPC_GATEWAY_CODEC_B64_PROTO_DECODER_H_ diff --git a/net/grpc/gateway/codec/b64_proto_encoder.cc b/net/grpc/gateway/codec/b64_proto_encoder.cc index 1dcf830..9d8d84b 100644 --- a/net/grpc/gateway/codec/b64_proto_encoder.cc +++ b/net/grpc/gateway/codec/b64_proto_encoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/b64_proto_encoder.h" namespace grpc { diff --git a/net/grpc/gateway/codec/b64_proto_encoder.h b/net/grpc/gateway/codec/b64_proto_encoder.h index 01653e0..7272c98 100644 --- a/net/grpc/gateway/codec/b64_proto_encoder.h +++ b/net/grpc/gateway/codec/b64_proto_encoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_B64_PROTO_ENCODER_H_ #define NET_GRPC_GATEWAY_CODEC_B64_PROTO_ENCODER_H_ diff --git a/net/grpc/gateway/codec/b64_stream_body_decoder.cc b/net/grpc/gateway/codec/b64_stream_body_decoder.cc index 067e46f..d961e67 100644 --- a/net/grpc/gateway/codec/b64_stream_body_decoder.cc +++ b/net/grpc/gateway/codec/b64_stream_body_decoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/b64_stream_body_decoder.h" #include diff --git a/net/grpc/gateway/codec/b64_stream_body_decoder.h b/net/grpc/gateway/codec/b64_stream_body_decoder.h index 3b3d418..053c051 100644 --- a/net/grpc/gateway/codec/b64_stream_body_decoder.h +++ b/net/grpc/gateway/codec/b64_stream_body_decoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_B64_STREAM_BODY_DECODER_H_ #define NET_GRPC_GATEWAY_CODEC_B64_STREAM_BODY_DECODER_H_ diff --git a/net/grpc/gateway/codec/b64_stream_body_encoder.cc b/net/grpc/gateway/codec/b64_stream_body_encoder.cc index 4d227a7..44dc7be 100644 --- a/net/grpc/gateway/codec/b64_stream_body_encoder.cc +++ b/net/grpc/gateway/codec/b64_stream_body_encoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/b64_stream_body_encoder.h" namespace grpc { diff --git a/net/grpc/gateway/codec/b64_stream_body_encoder.h b/net/grpc/gateway/codec/b64_stream_body_encoder.h index 29b4ec6..b1a2339 100644 --- a/net/grpc/gateway/codec/b64_stream_body_encoder.h +++ b/net/grpc/gateway/codec/b64_stream_body_encoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_B64_STREAM_BODY_ENCODER_H_ #define NET_GRPC_GATEWAY_CODEC_B64_STREAM_BODY_ENCODER_H_ diff --git a/net/grpc/gateway/codec/base64.cc b/net/grpc/gateway/codec/base64.cc index a41d8eb..a19e2b4 100644 --- a/net/grpc/gateway/codec/base64.cc +++ b/net/grpc/gateway/codec/base64.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/base64.h" #include diff --git a/net/grpc/gateway/codec/base64.h b/net/grpc/gateway/codec/base64.h index badbbf1..0683491 100644 --- a/net/grpc/gateway/codec/base64.h +++ b/net/grpc/gateway/codec/base64.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_BASE64_H_ #define NET_GRPC_GATEWAY_CODEC_BASE64_H_ diff --git a/net/grpc/gateway/codec/decoder.cc b/net/grpc/gateway/codec/decoder.cc index aae3db2..7e75ec9 100644 --- a/net/grpc/gateway/codec/decoder.cc +++ b/net/grpc/gateway/codec/decoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/decoder.h" namespace grpc { diff --git a/net/grpc/gateway/codec/decoder.h b/net/grpc/gateway/codec/decoder.h index 0723cf3..78550cf 100644 --- a/net/grpc/gateway/codec/decoder.h +++ b/net/grpc/gateway/codec/decoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_DECODER_H_ #define NET_GRPC_GATEWAY_CODEC_DECODER_H_ diff --git a/net/grpc/gateway/codec/encoder.cc b/net/grpc/gateway/codec/encoder.cc index c2a8911..4963ed1 100644 --- a/net/grpc/gateway/codec/encoder.cc +++ b/net/grpc/gateway/codec/encoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/encoder.h" namespace grpc { diff --git a/net/grpc/gateway/codec/encoder.h b/net/grpc/gateway/codec/encoder.h index befe12f..58584a1 100644 --- a/net/grpc/gateway/codec/encoder.h +++ b/net/grpc/gateway/codec/encoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_ENCODER_H_ #define NET_GRPC_GATEWAY_CODEC_ENCODER_H_ diff --git a/net/grpc/gateway/codec/grpc_decoder.cc b/net/grpc/gateway/codec/grpc_decoder.cc index 7b160be..024d785 100644 --- a/net/grpc/gateway/codec/grpc_decoder.cc +++ b/net/grpc/gateway/codec/grpc_decoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/grpc_decoder.h" #include "net/grpc/gateway/log.h" diff --git a/net/grpc/gateway/codec/grpc_decoder.h b/net/grpc/gateway/codec/grpc_decoder.h index 3525aef..bde95df 100644 --- a/net/grpc/gateway/codec/grpc_decoder.h +++ b/net/grpc/gateway/codec/grpc_decoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_GRPC_DECODER_H_ #define NET_GRPC_GATEWAY_CODEC_GRPC_DECODER_H_ diff --git a/net/grpc/gateway/codec/grpc_encoder.cc b/net/grpc/gateway/codec/grpc_encoder.cc index 772db55..afab31d 100644 --- a/net/grpc/gateway/codec/grpc_encoder.cc +++ b/net/grpc/gateway/codec/grpc_encoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/grpc_encoder.h" #include "third_party/grpc/include/grpc++/support/slice.h" diff --git a/net/grpc/gateway/codec/grpc_encoder.h b/net/grpc/gateway/codec/grpc_encoder.h index a71df73..f81c513 100644 --- a/net/grpc/gateway/codec/grpc_encoder.h +++ b/net/grpc/gateway/codec/grpc_encoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_GRPC_ENCODER_H_ #define NET_GRPC_GATEWAY_CODEC_GRPC_ENCODER_H_ diff --git a/net/grpc/gateway/codec/grpc_web_decoder.cc b/net/grpc/gateway/codec/grpc_web_decoder.cc index 271056d..99ff9c0 100644 --- a/net/grpc/gateway/codec/grpc_web_decoder.cc +++ b/net/grpc/gateway/codec/grpc_web_decoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/grpc_web_decoder.h" #include "net/grpc/gateway/log.h" diff --git a/net/grpc/gateway/codec/grpc_web_decoder.h b/net/grpc/gateway/codec/grpc_web_decoder.h index 58d3a2e..0bfad24 100644 --- a/net/grpc/gateway/codec/grpc_web_decoder.h +++ b/net/grpc/gateway/codec/grpc_web_decoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_GRPC_WEB_DECODER_H_ #define NET_GRPC_GATEWAY_CODEC_GRPC_WEB_DECODER_H_ diff --git a/net/grpc/gateway/codec/grpc_web_encoder.cc b/net/grpc/gateway/codec/grpc_web_encoder.cc index b36af3a..4619efc 100644 --- a/net/grpc/gateway/codec/grpc_web_encoder.cc +++ b/net/grpc/gateway/codec/grpc_web_encoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/grpc_web_encoder.h" #include diff --git a/net/grpc/gateway/codec/grpc_web_encoder.h b/net/grpc/gateway/codec/grpc_web_encoder.h index d2ed86b..eb91494 100644 --- a/net/grpc/gateway/codec/grpc_web_encoder.h +++ b/net/grpc/gateway/codec/grpc_web_encoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_GRPC_WEB_ENCODER_H_ #define NET_GRPC_GATEWAY_CODEC_GRPC_WEB_ENCODER_H_ diff --git a/net/grpc/gateway/codec/grpc_web_text_decoder.cc b/net/grpc/gateway/codec/grpc_web_text_decoder.cc index 9fa1521..76c9bca 100644 --- a/net/grpc/gateway/codec/grpc_web_text_decoder.cc +++ b/net/grpc/gateway/codec/grpc_web_text_decoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/grpc_web_text_decoder.h" namespace grpc { diff --git a/net/grpc/gateway/codec/grpc_web_text_decoder.h b/net/grpc/gateway/codec/grpc_web_text_decoder.h index 58bd59f..d05cbbf 100644 --- a/net/grpc/gateway/codec/grpc_web_text_decoder.h +++ b/net/grpc/gateway/codec/grpc_web_text_decoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_GRPC_WEB_TEXT_DECODER_H_ #define NET_GRPC_GATEWAY_CODEC_GRPC_WEB_TEXT_DECODER_H_ diff --git a/net/grpc/gateway/codec/grpc_web_text_encoder.cc b/net/grpc/gateway/codec/grpc_web_text_encoder.cc index 3d592f2..50d299e 100644 --- a/net/grpc/gateway/codec/grpc_web_text_encoder.cc +++ b/net/grpc/gateway/codec/grpc_web_text_encoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/grpc_web_text_encoder.h" namespace grpc { diff --git a/net/grpc/gateway/codec/grpc_web_text_encoder.h b/net/grpc/gateway/codec/grpc_web_text_encoder.h index b2f555c..e8633dd 100644 --- a/net/grpc/gateway/codec/grpc_web_text_encoder.h +++ b/net/grpc/gateway/codec/grpc_web_text_encoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_GRPC_WEB_TEXT_ENCODER_H_ #define NET_GRPC_GATEWAY_CODEC_GRPC_WEB_TEXT_ENCODER_H_ diff --git a/net/grpc/gateway/codec/json_decoder.cc b/net/grpc/gateway/codec/json_decoder.cc index 77c7d03..6057911 100644 --- a/net/grpc/gateway/codec/json_decoder.cc +++ b/net/grpc/gateway/codec/json_decoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/json_decoder.h" #include diff --git a/net/grpc/gateway/codec/json_decoder.h b/net/grpc/gateway/codec/json_decoder.h index b4739d2..c4c2b90 100644 --- a/net/grpc/gateway/codec/json_decoder.h +++ b/net/grpc/gateway/codec/json_decoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_JSON_DECODER_H_ #define NET_GRPC_GATEWAY_CODEC_JSON_DECODER_H_ diff --git a/net/grpc/gateway/codec/json_encoder.cc b/net/grpc/gateway/codec/json_encoder.cc index 57e762b..9eabb0d 100644 --- a/net/grpc/gateway/codec/json_encoder.cc +++ b/net/grpc/gateway/codec/json_encoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/json_encoder.h" #include diff --git a/net/grpc/gateway/codec/json_encoder.h b/net/grpc/gateway/codec/json_encoder.h index 14f1513..e9ba3c9 100644 --- a/net/grpc/gateway/codec/json_encoder.h +++ b/net/grpc/gateway/codec/json_encoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_JSON_ENCODER_H_ #define NET_GRPC_GATEWAY_CODEC_JSON_ENCODER_H_ diff --git a/net/grpc/gateway/codec/proto_decoder.cc b/net/grpc/gateway/codec/proto_decoder.cc index 4395f1a..2058cea 100644 --- a/net/grpc/gateway/codec/proto_decoder.cc +++ b/net/grpc/gateway/codec/proto_decoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/proto_decoder.h" #include "third_party/grpc/include/grpc++/support/byte_buffer.h" diff --git a/net/grpc/gateway/codec/proto_decoder.h b/net/grpc/gateway/codec/proto_decoder.h index 77dd342..c842c28 100644 --- a/net/grpc/gateway/codec/proto_decoder.h +++ b/net/grpc/gateway/codec/proto_decoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_PROTO_DECODER_H_ #define NET_GRPC_GATEWAY_CODEC_PROTO_DECODER_H_ diff --git a/net/grpc/gateway/codec/proto_encoder.cc b/net/grpc/gateway/codec/proto_encoder.cc index 818a25b..66ce518 100644 --- a/net/grpc/gateway/codec/proto_encoder.cc +++ b/net/grpc/gateway/codec/proto_encoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/proto_encoder.h" #include diff --git a/net/grpc/gateway/codec/proto_encoder.h b/net/grpc/gateway/codec/proto_encoder.h index 61dee80..8abf8a6 100644 --- a/net/grpc/gateway/codec/proto_encoder.h +++ b/net/grpc/gateway/codec/proto_encoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_PROTO_ENCODER_H_ #define NET_GRPC_GATEWAY_CODEC_PROTO_ENCODER_H_ diff --git a/net/grpc/gateway/codec/stream_body_decoder.cc b/net/grpc/gateway/codec/stream_body_decoder.cc index 946cdf7..9ce3806 100644 --- a/net/grpc/gateway/codec/stream_body_decoder.cc +++ b/net/grpc/gateway/codec/stream_body_decoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/stream_body_decoder.h" #include diff --git a/net/grpc/gateway/codec/stream_body_decoder.h b/net/grpc/gateway/codec/stream_body_decoder.h index 574953a..67d043c 100644 --- a/net/grpc/gateway/codec/stream_body_decoder.h +++ b/net/grpc/gateway/codec/stream_body_decoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_STREAM_BODY_DECODER_H_ #define NET_GRPC_GATEWAY_CODEC_STREAM_BODY_DECODER_H_ diff --git a/net/grpc/gateway/codec/stream_body_encoder.cc b/net/grpc/gateway/codec/stream_body_encoder.cc index 57f0be4..723f261 100644 --- a/net/grpc/gateway/codec/stream_body_encoder.cc +++ b/net/grpc/gateway/codec/stream_body_encoder.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/codec/stream_body_encoder.h" #include diff --git a/net/grpc/gateway/codec/stream_body_encoder.h b/net/grpc/gateway/codec/stream_body_encoder.h index 5dddc4a..96a3d5e 100644 --- a/net/grpc/gateway/codec/stream_body_encoder.h +++ b/net/grpc/gateway/codec/stream_body_encoder.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_CODEC_STREAM_BODY_ENCODER_H_ #define NET_GRPC_GATEWAY_CODEC_STREAM_BODY_ENCODER_H_ diff --git a/net/grpc/gateway/docker/debian_stretch/Dockerfile b/net/grpc/gateway/docker/debian_stretch/Dockerfile index 580969a..7bbeb6f 100644 --- a/net/grpc/gateway/docker/debian_stretch/Dockerfile +++ b/net/grpc/gateway/docker/debian_stretch/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2018 Google LLC +# +# 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 +# +# https://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. + FROM debian:stretch RUN apt-get update && apt-get install -y \ autoconf \ diff --git a/net/grpc/gateway/docker/ubuntu_12_04/Dockerfile b/net/grpc/gateway/docker/ubuntu_12_04/Dockerfile index 89d6eb3..e36af25 100644 --- a/net/grpc/gateway/docker/ubuntu_12_04/Dockerfile +++ b/net/grpc/gateway/docker/ubuntu_12_04/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2018 Google LLC +# +# 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 +# +# https://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. + FROM ubuntu:12.04 RUN apt-get update && apt-get install -y \ autoconf \ diff --git a/net/grpc/gateway/examples/echo/Makefile b/net/grpc/gateway/examples/echo/Makefile index 72ac6c1..167c006 100644 --- a/net/grpc/gateway/examples/echo/Makefile +++ b/net/grpc/gateway/examples/echo/Makefile @@ -1,33 +1,16 @@ +# Copyright 2018 Google LLC # -# Copyright 2016, Google Inc. -# All rights reserved. +# 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 # -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. -# * Neither the name of Google Inc. nor the names of its -# contributors may be used to endorse or promote products derived from -# this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# https://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. ROOT_DIR = ../../../../.. CXX = g++ diff --git a/net/grpc/gateway/examples/echo/echo.proto b/net/grpc/gateway/examples/echo/echo.proto index be31a38..4dc1678 100644 --- a/net/grpc/gateway/examples/echo/echo.proto +++ b/net/grpc/gateway/examples/echo/echo.proto @@ -1,3 +1,17 @@ +// Copyright 2018 Google LLC +// +// 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 +// +// https://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 grpc.gateway.testing; diff --git a/net/grpc/gateway/examples/echo/echo_server.cc b/net/grpc/gateway/examples/echo/echo_server.cc index 9e4c6fe..cf05be2 100644 --- a/net/grpc/gateway/examples/echo/echo_server.cc +++ b/net/grpc/gateway/examples/echo/echo_server.cc @@ -1,33 +1,18 @@ -/* +/** * - * Copyright 2016, Google Inc. - * All rights reserved. + * Copyright 2018 Google LLC * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: + * 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 * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. + * https://www.apache.org/licenses/LICENSE-2.0 * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * 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. * */ diff --git a/net/grpc/gateway/examples/echo/echo_service_impl.cc b/net/grpc/gateway/examples/echo/echo_service_impl.cc index 2210b77..9737ddd 100644 --- a/net/grpc/gateway/examples/echo/echo_service_impl.cc +++ b/net/grpc/gateway/examples/echo/echo_service_impl.cc @@ -1,35 +1,21 @@ -/* +/** * - * Copyright 2016, Google Inc. - * All rights reserved. + * Copyright 2018 Google LLC * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: + * 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 * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. + * https://www.apache.org/licenses/LICENSE-2.0 * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * 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. * */ + #include "net/grpc/gateway/examples/echo/echo_service_impl.h" #include diff --git a/net/grpc/gateway/examples/echo/echo_service_impl.h b/net/grpc/gateway/examples/echo/echo_service_impl.h index 22ab113..9c5b9f6 100644 --- a/net/grpc/gateway/examples/echo/echo_service_impl.h +++ b/net/grpc/gateway/examples/echo/echo_service_impl.h @@ -1,36 +1,21 @@ #ifndef NET_GRPC_GATEWAY_EXAMPLES_ECHO_ECHO_SERVICE_IMPL_H_ #define NET_GRPC_GATEWAY_EXAMPLES_ECHO_ECHO_SERVICE_IMPL_H_ -/* +/** * - * Copyright 2016, Google Inc. - * All rights reserved. + * Copyright 2018 Google LLC * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: + * 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 * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. + * https://www.apache.org/licenses/LICENSE-2.0 * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * 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. * */ diff --git a/net/grpc/gateway/examples/echo/echotest.html b/net/grpc/gateway/examples/echo/echotest.html index e17d593..d9a9148 100644 --- a/net/grpc/gateway/examples/echo/echotest.html +++ b/net/grpc/gateway/examples/echo/echotest.html @@ -1,3 +1,17 @@ + + + + + + + + + + + + + + diff --git a/net/grpc/gateway/frontend/frontend.cc b/net/grpc/gateway/frontend/frontend.cc index 332f9c3..dd073e3 100644 --- a/net/grpc/gateway/frontend/frontend.cc +++ b/net/grpc/gateway/frontend/frontend.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/frontend/frontend.h" #include diff --git a/net/grpc/gateway/frontend/frontend.h b/net/grpc/gateway/frontend/frontend.h index 893f5ef..9ef64da 100644 --- a/net/grpc/gateway/frontend/frontend.h +++ b/net/grpc/gateway/frontend/frontend.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_FRONTEND_FRONTEND_H_ #define NET_GRPC_GATEWAY_FRONTEND_FRONTEND_H_ diff --git a/net/grpc/gateway/frontend/nginx_bridge.h b/net/grpc/gateway/frontend/nginx_bridge.h index 1a4f84e..f5ba5f9 100644 --- a/net/grpc/gateway/frontend/nginx_bridge.h +++ b/net/grpc/gateway/frontend/nginx_bridge.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_FRONTEND_NGINX_BRIDGE_H_ #define NET_GRPC_GATEWAY_FRONTEND_NGINX_BRIDGE_H_ diff --git a/net/grpc/gateway/frontend/nginx_http_frontend.cc b/net/grpc/gateway/frontend/nginx_http_frontend.cc index fcb4fe1..72ae484 100644 --- a/net/grpc/gateway/frontend/nginx_http_frontend.cc +++ b/net/grpc/gateway/frontend/nginx_http_frontend.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/frontend/nginx_http_frontend.h" #include diff --git a/net/grpc/gateway/frontend/nginx_http_frontend.h b/net/grpc/gateway/frontend/nginx_http_frontend.h index 9a697a4..53d166c 100644 --- a/net/grpc/gateway/frontend/nginx_http_frontend.h +++ b/net/grpc/gateway/frontend/nginx_http_frontend.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_FRONTEND_NGINX_HTTP_FRONTEND_H_ #define NET_GRPC_GATEWAY_FRONTEND_NGINX_HTTP_FRONTEND_H_ diff --git a/net/grpc/gateway/log.h b/net/grpc/gateway/log.h index c8946a8..1b75827 100644 --- a/net/grpc/gateway/log.h +++ b/net/grpc/gateway/log.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_LOG_H_ #define NET_GRPC_GATEWAY_LOG_H_ diff --git a/net/grpc/gateway/macros.h b/net/grpc/gateway/macros.h index 4a6d9e7..0528ba1 100644 --- a/net/grpc/gateway/macros.h +++ b/net/grpc/gateway/macros.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_MACROS_H_ #define NET_GRPC_GATEWAY_MACROS_H_ diff --git a/net/grpc/gateway/nginx/grpc_gateway_module.c b/net/grpc/gateway/nginx/grpc_gateway_module.c index ffe0077..b03cdb7 100644 --- a/net/grpc/gateway/nginx/grpc_gateway_module.c +++ b/net/grpc/gateway/nginx/grpc_gateway_module.c @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + // The Nginx module for GRPC gateway. // It proxies the HTTP requests (follows go/http-api) to GRPC backends. // Usage: diff --git a/net/grpc/gateway/nginx/package/nginx.sh b/net/grpc/gateway/nginx/package/nginx.sh index 44340bd..f2bf23a 100755 --- a/net/grpc/gateway/nginx/package/nginx.sh +++ b/net/grpc/gateway/nginx/package/nginx.sh @@ -1 +1,16 @@ +#!/bin/sh +# Copyright 2018 Google LLC +# +# 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 +# +# https://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. + ./nginx -p . -c conf/nginx.conf diff --git a/net/grpc/gateway/nginx/package/nginx_with_heap_profiler.sh b/net/grpc/gateway/nginx/package/nginx_with_heap_profiler.sh index 7ebae54..416476f 100644 --- a/net/grpc/gateway/nginx/package/nginx_with_heap_profiler.sh +++ b/net/grpc/gateway/nginx/package/nginx_with_heap_profiler.sh @@ -1 +1,16 @@ +#!/bin/sh +# Copyright 2018 Google LLC +# +# 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 +# +# https://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. + HEAPPROFILE=heap-profile ./nginx -p . -c conf/nginx.conf diff --git a/net/grpc/gateway/nginx_includes.h b/net/grpc/gateway/nginx_includes.h index 0a09f28..4985bad 100644 --- a/net/grpc/gateway/nginx_includes.h +++ b/net/grpc/gateway/nginx_includes.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_NGINX_INCLUDES_H_ #define NET_GRPC_GATEWAY_NGINX_INCLUDES_H_ diff --git a/net/grpc/gateway/nginx_utils.cc b/net/grpc/gateway/nginx_utils.cc index b1fa5a1..d48be1d 100644 --- a/net/grpc/gateway/nginx_utils.cc +++ b/net/grpc/gateway/nginx_utils.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/nginx_utils.h" namespace grpc { diff --git a/net/grpc/gateway/nginx_utils.h b/net/grpc/gateway/nginx_utils.h index a7b14b6..896ed6b 100644 --- a/net/grpc/gateway/nginx_utils.h +++ b/net/grpc/gateway/nginx_utils.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_NGINX_UTILS_H_ #define NET_GRPC_GATEWAY_NGINX_UTILS_H_ diff --git a/net/grpc/gateway/protos/pair.proto b/net/grpc/gateway/protos/pair.proto index 1ed47ca..7a4c607 100644 --- a/net/grpc/gateway/protos/pair.proto +++ b/net/grpc/gateway/protos/pair.proto @@ -1,3 +1,17 @@ +// Copyright 2018 Google LLC +// +// 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 +// +// https://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 grpc.gateway; diff --git a/net/grpc/gateway/protos/stream_body.proto b/net/grpc/gateway/protos/stream_body.proto index 4c67d69..78ba7a0 100644 --- a/net/grpc/gateway/protos/stream_body.proto +++ b/net/grpc/gateway/protos/stream_body.proto @@ -1,3 +1,17 @@ +// Copyright 2018 Google LLC +// +// 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 +// +// https://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.rpc; @@ -76,4 +90,4 @@ message StreamBody { repeated bytes message = 1; google.rpc.Status status = 2; repeated bytes noop = 15; -} \ No newline at end of file +} diff --git a/net/grpc/gateway/runtime/constants.h b/net/grpc/gateway/runtime/constants.h index d64faf7..c7f0ab3 100644 --- a/net/grpc/gateway/runtime/constants.h +++ b/net/grpc/gateway/runtime/constants.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_RUNTIME_CONSTANTS_H_ #define NET_GRPC_GATEWAY_RUNTIME_CONSTANTS_H_ diff --git a/net/grpc/gateway/runtime/grpc_event_queue.cc b/net/grpc/gateway/runtime/grpc_event_queue.cc index 71843ce..9c3db5a 100644 --- a/net/grpc/gateway/runtime/grpc_event_queue.cc +++ b/net/grpc/gateway/runtime/grpc_event_queue.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/runtime/grpc_event_queue.h" #include diff --git a/net/grpc/gateway/runtime/grpc_event_queue.h b/net/grpc/gateway/runtime/grpc_event_queue.h index 76840ac..354eabf 100644 --- a/net/grpc/gateway/runtime/grpc_event_queue.h +++ b/net/grpc/gateway/runtime/grpc_event_queue.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_RUNTIME_GRPC_EVENT_QUEUE_H_ #define NET_GRPC_GATEWAY_RUNTIME_GRPC_EVENT_QUEUE_H_ diff --git a/net/grpc/gateway/runtime/nginx_notify_queue.cc b/net/grpc/gateway/runtime/nginx_notify_queue.cc index 9685947..abeddb2 100644 --- a/net/grpc/gateway/runtime/nginx_notify_queue.cc +++ b/net/grpc/gateway/runtime/nginx_notify_queue.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/runtime/nginx_notify_queue.h" #include diff --git a/net/grpc/gateway/runtime/nginx_notify_queue.h b/net/grpc/gateway/runtime/nginx_notify_queue.h index d1a67eb..bb64f74 100644 --- a/net/grpc/gateway/runtime/nginx_notify_queue.h +++ b/net/grpc/gateway/runtime/nginx_notify_queue.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_RUNTIME_NGINX_NOTIFY_QUEUE_H_ #define NET_GRPC_GATEWAY_RUNTIME_NGINX_NOTIFY_QUEUE_H_ diff --git a/net/grpc/gateway/runtime/request.cc b/net/grpc/gateway/runtime/request.cc index 71aeb43..2f77cb2 100644 --- a/net/grpc/gateway/runtime/request.cc +++ b/net/grpc/gateway/runtime/request.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/runtime/request.h" namespace grpc { diff --git a/net/grpc/gateway/runtime/request.h b/net/grpc/gateway/runtime/request.h index 1cbde05..23f8c6e 100644 --- a/net/grpc/gateway/runtime/request.h +++ b/net/grpc/gateway/runtime/request.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_RUNTIME_REQUEST_H_ #define NET_GRPC_GATEWAY_RUNTIME_REQUEST_H_ diff --git a/net/grpc/gateway/runtime/response.cc b/net/grpc/gateway/runtime/response.cc index 9de1b8d..91da36c 100644 --- a/net/grpc/gateway/runtime/response.cc +++ b/net/grpc/gateway/runtime/response.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/runtime/response.h" namespace grpc { diff --git a/net/grpc/gateway/runtime/response.h b/net/grpc/gateway/runtime/response.h index 8ca26d4..6f62a3c 100644 --- a/net/grpc/gateway/runtime/response.h +++ b/net/grpc/gateway/runtime/response.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_RUNTIME_RESPONSE_H_ #define NET_GRPC_GATEWAY_RUNTIME_RESPONSE_H_ diff --git a/net/grpc/gateway/runtime/runtime.cc b/net/grpc/gateway/runtime/runtime.cc index a5f7f45..bded29a 100644 --- a/net/grpc/gateway/runtime/runtime.cc +++ b/net/grpc/gateway/runtime/runtime.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/runtime/runtime.h" #include diff --git a/net/grpc/gateway/runtime/runtime.h b/net/grpc/gateway/runtime/runtime.h index 41ce87e..5bde714 100644 --- a/net/grpc/gateway/runtime/runtime.h +++ b/net/grpc/gateway/runtime/runtime.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_RUNTIME_RUNTIME_H_ #define NET_GRPC_GATEWAY_RUNTIME_RUNTIME_H_ diff --git a/net/grpc/gateway/runtime/tag.cc b/net/grpc/gateway/runtime/tag.cc index fc183ab..1b9fd09 100644 --- a/net/grpc/gateway/runtime/tag.cc +++ b/net/grpc/gateway/runtime/tag.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/runtime/tag.h" #include diff --git a/net/grpc/gateway/runtime/tag.h b/net/grpc/gateway/runtime/tag.h index db4f080..64aeab7 100644 --- a/net/grpc/gateway/runtime/tag.h +++ b/net/grpc/gateway/runtime/tag.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_RUNTIME_TAG_H_ #define NET_GRPC_GATEWAY_RUNTIME_TAG_H_ diff --git a/net/grpc/gateway/runtime/types.h b/net/grpc/gateway/runtime/types.h index 416108c..5a23496 100644 --- a/net/grpc/gateway/runtime/types.h +++ b/net/grpc/gateway/runtime/types.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_RUNTIME_TYPES_H_ #define NET_GRPC_GATEWAY_RUNTIME_TYPES_H_ diff --git a/net/grpc/gateway/utils.cc b/net/grpc/gateway/utils.cc index 64601b2..39402f7 100644 --- a/net/grpc/gateway/utils.cc +++ b/net/grpc/gateway/utils.cc @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #include "net/grpc/gateway/utils.h" #include diff --git a/net/grpc/gateway/utils.h b/net/grpc/gateway/utils.h index 75f2ccc..0f49e76 100644 --- a/net/grpc/gateway/utils.h +++ b/net/grpc/gateway/utils.h @@ -1,3 +1,21 @@ +/** + * + * Copyright 2018 Google LLC + * + * 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 + * + * https://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. + * + */ + #ifndef NET_GRPC_GATEWAY_UTILS_H_ #define NET_GRPC_GATEWAY_UTILS_H_