Commit Graph

15 Commits

Author SHA1 Message Date
Google APIs 3352100a15 Make importing rule with the same name (but different aliases) from different repositories possible.
This is needed to allow monolitic gapic-generator and microgenerators coexist during transition period.

To plug a microgenerator:

1) Add corresponding rules bidnings under `switched_rules_by_language` in repository_rules.bzl:
    rules["go_gapic_library2"] = _switch(
        go and grpc and gapic,
        "@gapic_generator_go//rules_go_gapic/go_gapic.bzl",
        "go_gapic_library",
    )

2) Import microgenerator in WORKSPACE (the above example assumes that the generator was imported under name "gapic_generator_go").

3) To migrate an API from monolith to micro generator (this is done per API and per language) modify the corresponding load statement in the API's BUILD.bazel file. For example, for the example above, to migrate to go microgenerator modify the go-specific load statement in BUILD.bazel file of a specific API (which you want to migrate) to the following:

load(
    "@com_google_googleapis_imports//:imports.bzl",
    "go_gapic_assembly_pkg",
    go_gapic_library = "go_gapic_library2",
    "go_proto_library",
    "go_test",
)

PiperOrigin-RevId: 286065440
2019-12-17 14:53:12 -08:00
Google APIs 248abde06e Integrate GAPIC Python Bazel Extensions
Also configure python build for the following clients as an example:

diaglogflow/v2
language/v1
texttospeech/v1
firestore/v1beta1
pubsub/v1

PiperOrigin-RevId: 279406526
2019-11-08 15:45:31 -08:00
Google APIs 0c0bbaeb69 Synchronize new proto/yaml changes.
PiperOrigin-RevId: 274037944
2019-10-10 14:21:31 -07:00
Google APIs 7ebb7a62ed Synchronize new proto/yaml changes.
PiperOrigin-RevId: 264871816
2019-08-22 10:54:35 -07:00
Google APIs 82c3abe8f7 Synchronize new proto/yaml changes.
PiperOrigin-RevId: 263652726
2019-08-15 15:18:24 -07:00
Google APIs 7e56e8d4fe Synchronize new proto/yaml changes.
PiperOrigin-RevId: 262242585
2019-08-07 16:44:27 -07:00
Google APIs 0ce9d41a2c Synchronize new proto/yaml changes.
PiperOrigin-RevId: 258611957
2019-07-17 11:49:26 -07:00
Google APIs 45e125f9e3 Synchronize new proto/yaml changes.
PiperOrigin-RevId: 254026509
2019-06-19 10:44:51 -07:00
Google APIs a12347ec47 Synchronize new proto/yaml changes.
PiperOrigin-RevId: 252108410
2019-06-07 13:31:27 -07:00
Google APIs d8c0210060 Synchronize new proto/yaml changes.
PiperOrigin-RevId: 250334112
2019-05-28 12:13:35 -07:00
Google APIs c6399efb29 Synchronize new proto/yaml changes.
PiperOrigin-RevId: 250290070
2019-05-28 08:49:54 -07:00
Google APIs c69355435c Synchronize new proto/yaml changes.
PiperOrigin-RevId: 249909255
2019-05-24 15:26:19 -07:00
Google APIs c39b7e880e Synchronize new proto/yaml changes.
PiperOrigin-RevId: 249885941
2019-05-24 13:08:26 -07:00
Google APIs 6ea045ad2e Synchronize new proto/yaml changes.
PiperOrigin-RevId: 249345152
2019-05-21 16:07:26 -07:00
Google APIs ab437f2bb2 Synchronize new proto/yaml changes.
PiperOrigin-RevId: 248796470
2019-05-17 15:15:24 -07:00