Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 2 additions & 1 deletion third_party/googleapis/.github/mistaken-pull-closer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# by probot.
# Default behavior: Close all PRs.
filters:
- true
# Don't close PRs in the pubsub_dev branch.
- '@.pull_request.base.ref != "pubsub_dev"'

# The message to post to the closed PR.
commentBody: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
uses: actions/setup-dotnet@v1.8.0
- name: Checkout googleapis (this repository)
uses: actions/checkout@v2
with:
path: googleapis
- name: Checkout index generator
uses: actions/checkout@v2
with:
Expand All @@ -19,10 +21,11 @@ jobs:
- name: Generate API index
run: |
gen/scripts/generate-schema.sh
gen/scripts/generate-index.sh $PWD
cp gen/tmp/api-index-v1.json $PWD
gen/scripts/generate-index.sh $PWD/googleapis
cp gen/tmp/api-index-v1.json $PWD/googleapis
- name: Commit API index
run: |
cd googleapis
[[ ! $(git diff --exit-code api-index-v1.json) ]] && echo "Nothing to commit." && exit 0
git config user.name "Google APIs"
git add api-index-v1.json
Expand Down
2 changes: 2 additions & 0 deletions third_party/googleapis/.kokoro/continuous.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Format: //devtools/kokoro/config/proto/build.proto

# This configuration file defines Kokoro job for GitHub presubmit,
# the build_file will be looked up in https://github.com/googleapis/googleapis/
build_file: "googleapis/.kokoro/start.sh"
2 changes: 2 additions & 0 deletions third_party/googleapis/.kokoro/presubmit.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Format: //devtools/kokoro/config/proto/build.proto

# This configuration file defines Kokoro job for GitHub presubmit,
# the build_file will be looked up in https://github.com/googleapis/googleapis/
build_file: "googleapis/.kokoro/start.sh"
18 changes: 0 additions & 18 deletions third_party/googleapis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,6 @@ bazel build //google/example/library/v1:google-cloud-library-v1-java

Bazel packages exist in all the libraries for Java, Go, Python, Ruby, Node.js, PHP and C#.

### Artman

API client libraries can be built directly from files in this repo using
[Artman](https://github.com/googleapis/artman). The latest generation status can
be tracked [here](https://circleci.com/gh/googleapis/googleapis) which currently
has status [![CircleCI](https://circleci.com/gh/googleapis/googleapis.svg?style=svg)](https://circleci.com/gh/googleapis/googleapis).

To build the Java package for one library:

```
artman --config google/example/library/artman_library_example_v1.yaml generate java_gapic
```

Artman can only build one library in one language at a time.

For more details on all Google APIs and developer tools, see the [Google
Developers](https://developers.google.com/products/) site.

## Overview

Google APIs are typically deployed as API services that are hosted
Expand Down
170 changes: 74 additions & 96 deletions third_party/googleapis/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ http_archive(
# version of the library will be selected as a transitive dependency of gRPC.
http_archive(
name = "rules_python",
strip_prefix = "rules_python-0.1.0",
url = "https://github.com/bazelbuild/rules_python/archive/0.1.0.tar.gz",
strip_prefix = "rules_python-0.5.0",
url = "https://github.com/bazelbuild/rules_python/archive/0.5.0.tar.gz",
)

http_archive(
name = "com_google_protobuf",
sha256 = "b10bf4e2d1a7586f54e64a5d9e7837e5188fc75ae69e36f215eb01def4f9721b",
strip_prefix = "protobuf-3.15.3",
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.15.3.tar.gz"],
sha256 = "9111bf0b542b631165fadbd80aa60e7fb25b25311c532139ed2089d76ddf6dd7",
strip_prefix = "protobuf-3.18.1",
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.18.1.tar.gz"],
)

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
Expand All @@ -72,14 +72,6 @@ rules_proto_dependencies()

rules_proto_toolchains()

# Note gapic-generator contains java-specific and common code, that is why it is imported in common
# section
http_archive(
name = "com_google_api_codegen",
strip_prefix = "gapic-generator-2.11.0",
urls = ["https://github.com/googleapis/gapic-generator/archive/v2.11.0.zip"],
)

# rules_go (support Golang under bazel)
# This is not in the Go section because we override the same, older dependency brought in by gRPC.
# TODO(ndietz): move this back to the Go section if gRPC is updated per https://github.com/grpc/grpc/issues/22172
Expand All @@ -100,10 +92,10 @@ http_archive(
# bazel-gazelle (support Golang under bazel)
http_archive(
name = "bazel_gazelle",
sha256 = "b85f48fa105c4403326e9525ad2b2cc437babaa6e15a3fc0b1dbab0ab064bc7c",
sha256 = "62ca106be173579c0a167deb23358fdfe71ffa1e4cfdddf5582af26520f1c66f",
urls = [
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.23.0/bazel-gazelle-v0.23.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.23.0/bazel-gazelle-v0.23.0.tar.gz",
],
)

Expand All @@ -118,8 +110,8 @@ go_repository(
name = "org_golang_google_genproto",
build_file_proto_mode = "disable_global",
importpath = "google.golang.org/genproto",
sum = "h1:hcskBH5qZCOa7WpTUFUFvoebnSFZBYpjykLtjIp9DVk=",
version = "v0.0.0-20210303154014-9728d6b83eeb",
sum = "h1:4xoALQmXxqVdDdLimpPyPeDdsJzo+nFTJw9euAMpqgM=",
version = "v0.0.0-20210729151513-df9385d47c1b",
)

go_rules_dependencies()
Expand All @@ -128,10 +120,13 @@ go_register_toolchains()

gazelle_dependencies()

_rules_gapic_version = "0.5.3"
_rules_gapic_version = "0.11.1"

_rules_gapic_sha256 = "edf4fa526cd8d9ae0d4aab3dc608a985ef75f631fe14f0c109a793eab2b5c31d"

http_archive(
name = "rules_gapic",
sha256 = _rules_gapic_sha256,
strip_prefix = "rules_gapic-%s" % _rules_gapic_version,
urls = ["https://github.com/googleapis/rules_gapic/archive/v%s.tar.gz" % _rules_gapic_version],
)
Expand All @@ -152,10 +147,15 @@ rules_gapic_repositories()
# for most of the other languages as well, so they can be considered as the core cross-language
# dependencies.

_grpc_version = "1.42.0"

_grpc_sha256 = "9f387689b7fdf6c003fd90ef55853107f89a2121792146770df5486f0199f400"

http_archive(
name = "com_github_grpc_grpc",
strip_prefix = "grpc-1.36.4",
urls = ["https://github.com/grpc/grpc/archive/v1.36.4.zip"],
sha256 = _grpc_sha256,
strip_prefix = "grpc-%s" % _grpc_version,
urls = ["https://github.com/grpc/grpc/archive/v%s.zip" % _grpc_version],
)

load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
Expand All @@ -177,7 +177,7 @@ apple_support_dependencies()
##############################################################################
# Java
##############################################################################
_gax_java_version = "1.63.3"
_gax_java_version = "2.10.0"

http_archive(
name = "com_google_api_gax_java",
Expand All @@ -202,7 +202,7 @@ grpc_java_repositories()

# Java microgenerator.
# Must go AFTER java-gax, since both java gax and gapic-generator are written in java and may conflict.
_gapic_generator_java_version = "1.0.9"
_gapic_generator_java_version = "2.5.0"

http_archive(
name = "gapic_generator_java",
Expand All @@ -221,65 +221,23 @@ load("@gapic_generator_java//:repositories.bzl", "gapic_generator_java_repositor

gapic_generator_java_repositories()

# gapic-generator transitive
# (goes AFTER java-gax, since both java gax and gapic-generator are written in java and may conflict)
load("@com_google_api_codegen//:repository_rules.bzl", "com_google_api_codegen_properties")

com_google_api_codegen_properties(
name = "com_google_api_codegen_properties",
file = "@com_google_api_codegen//:dependencies.properties",
)

load("@com_google_api_codegen//:repositories.bzl", "com_google_api_codegen_repositories")

http_archive(
name = "com_google_protoc_java_resource_names_plugin",
strip_prefix = "protoc-java-resource-names-plugin-8d749cb5b7aa2734656e1ad36ceda92894f33153",
urls = ["https://github.com/googleapis/protoc-java-resource-names-plugin/archive/8d749cb5b7aa2734656e1ad36ceda92894f33153.zip"],
)

com_google_api_codegen_repositories()

# protoc-java-resource-names-plugin (loaded in com_google_api_codegen_repositories())
# (required to support resource names feature in gapic generator)
load(
"@com_google_protoc_java_resource_names_plugin//:repositories.bzl",
"com_google_protoc_java_resource_names_plugin_repositories",
)

com_google_protoc_java_resource_names_plugin_repositories()

##############################################################################
# Python
##############################################################################
load("@com_google_api_codegen//rules_gapic/python:py_gapic_repositories.bzl", "py_gapic_repositories")
load("@rules_gapic//python:py_gapic_repositories.bzl", "py_gapic_repositories")

py_gapic_repositories()

http_archive(
name = "protoc_docs_plugin",
strip_prefix = "protoc-docs-plugin-2bdf14e394bbaa44b81286b1a19c5f229b51c667",
urls = ["https://github.com/googleapis/protoc-docs-plugin/archive/2bdf14e394bbaa44b81286b1a19c5f229b51c667.zip"],
)

load(
"@protoc_docs_plugin//:repositories.bzl",
"protoc_docs_plugin_register_toolchains",
"protoc_docs_plugin_repositories",
)

protoc_docs_plugin_repositories()

protoc_docs_plugin_register_toolchains()

load("@rules_python//python:pip.bzl", "pip_repositories")

pip_repositories()

_gapic_generator_python_version = "0.60.0"

http_archive(
name = "gapic_generator_python",
strip_prefix = "gapic-generator-python-0.46.3",
urls = ["https://github.com/googleapis/gapic-generator-python/archive/v0.46.3.zip"],
strip_prefix = "gapic-generator-python-%s" % _gapic_generator_python_version,
urls = ["https://github.com/googleapis/gapic-generator-python/archive/v%s.zip" % _gapic_generator_python_version],
)

load(
Expand All @@ -296,7 +254,7 @@ gapic_generator_register_toolchains()
# Go
##############################################################################

_gapic_generator_go_version = "0.20.0"
_gapic_generator_go_version = "0.24.0"

http_archive(
name = "com_googleapis_gapic_generator_go",
Expand All @@ -308,17 +266,13 @@ load("@com_googleapis_gapic_generator_go//:repositories.bzl", "com_googleapis_ga

com_googleapis_gapic_generator_go_repositories()

load("@com_googleapis_gapic_generator_go//rules_go_gapic:go_gapic_repositories.bzl", "go_gapic_repositories")

go_gapic_repositories()

##############################################################################
# TypeScript
##############################################################################

_gapic_generator_typescript_version = "1.4.0"
_gapic_generator_typescript_version = "2.11.0"

_gapic_generator_typescript_sha256 = "34718494b0696706ccfa46c8ed360f1999d7e33d5121aa86bb302af402b72d46"
_gapic_generator_typescript_sha256 = "afb5d00a95f1fffd4c9f7fa474ff9e179b4b7a133384913a2407720537ac10a0"

### TypeScript generator
http_archive(
Expand Down Expand Up @@ -348,26 +302,26 @@ yarn_install(
# PHP
##############################################################################

load("@com_google_api_codegen//rules_gapic/php:php_gapic_repositories.bzl", "php", "php_gapic_repositories")

php(
name = "php",
prebuilt_phps = ["@com_google_api_codegen//rules_gapic/php:resources/php-7.1.30_linux_x86_64.tar.gz"],
strip_prefix = "php-7.1.30",
urls = ["https://www.php.net/distributions/php-7.1.30.tar.gz"],
)

php_gapic_repositories()

# PHP micro-generator (beta)
_gapic_generator_php_version = "0.1.6"
# PHP micro-generator
_gapic_generator_php_version = "1.4.0"

http_archive(
name = "gapic_generator_php",
strip_prefix = "gapic-generator-php-%s" % _gapic_generator_php_version,
urls = ["https://github.com/googleapis/gapic-generator-php/archive/v%s.zip" % _gapic_generator_php_version],
)

load("@rules_gapic//php:php_gapic_repositories.bzl", "php", "php_gapic_repositories")

php(
name = "php",
prebuilt_phps = ["@gapic_generator_php//rules_php_gapic:resources/php-7.4.15_linux_x86_64.tar.gz"],
strip_prefix = "php-7.4.15",
urls = ["https://www.php.net/distributions/php-7.4.15.tar.gz"],
)

php_gapic_repositories()

load("@gapic_generator_php//:repositories.bzl", "gapic_generator_php_repositories")

gapic_generator_php_repositories()
Expand All @@ -389,9 +343,9 @@ http_archive(
urls = ["https://github.com/googleapis/gax-dotnet/archive/refs/tags/%s.tar.gz" % _gax_dotnet_version],
)

_gapic_generator_csharp_version = "1.3.6"
_gapic_generator_csharp_version = "1.3.16"

_gapic_generator_csharp_sha256 = "6340309dc6b86bfd0dc2c9fca41cf991c7163eda2f48a7062fe4da5bd62c99d6"
_gapic_generator_csharp_sha256 = "f14d706f013f253d52eddc40df549c128db7d9390980a3f422c523fd9a6c4f35"

http_archive(
name = "gapic_generator_csharp",
Expand All @@ -407,17 +361,41 @@ gapic_generator_csharp_repositories()
##############################################################################
# Ruby
##############################################################################
_gapic_generator_ruby_version = "e10d40afa96a28036da03bb9b0af17d702715886"

_gapic_generator_ruby_sha256 = "a560f2f0d12411b2b4f76ba087f6fcf4d517ef1e9abec1b5a517dfe348e67f3b"
_gapic_generator_ruby_version = "v0.10.5"

_gapic_generator_ruby_sha256 = "c5f013d82d17a5094cc656004677656fa7efcafd712d6dee90819f06497b5524"

http_archive(
name = "gapic_generator_ruby",
sha256 = _gapic_generator_ruby_sha256,
strip_prefix = "gapic-generator-ruby-%s" % _gapic_generator_ruby_version,
urls = ["https://github.com/googleapis/gapic-generator-ruby/archive/%s.tar.gz" % _gapic_generator_ruby_version],
strip_prefix = "gapic-generator-ruby-gapic-generator-%s" % _gapic_generator_ruby_version,
urls = ["https://github.com/googleapis/gapic-generator-ruby/archive/refs/tags/gapic-generator/%s.tar.gz" % _gapic_generator_ruby_version],
)

load("@gapic_generator_ruby//rules_ruby_gapic:repositories.bzl", "gapic_generator_ruby_repositories")

gapic_generator_ruby_repositories()

##############################################################################
# Discovery
##############################################################################

_disco_to_proto3_converter_version = "ce8d8732120cdfb5bf4847c3238b5be8acde87e3"

http_archive(
name = "com_google_disco_to_proto3_converter",
strip_prefix = "disco-to-proto3-converter-%s" % _disco_to_proto3_converter_version,
urls = ["https://github.com/googleapis/disco-to-proto3-converter/archive/%s.zip" % _disco_to_proto3_converter_version],
)

load("@com_google_disco_to_proto3_converter//:repository_rules.bzl", "com_google_disco_to_proto3_converter_properties")

com_google_disco_to_proto3_converter_properties(
name = "com_google_disco_to_proto3_converter_properties",
file = "@com_google_disco_to_proto3_converter//:pom.xml",
)

load("@com_google_disco_to_proto3_converter//:repositories.bzl", "com_google_disco_to_proto3_converter_repositories")

com_google_disco_to_proto3_converter_repositories()
Loading