feat(all): auto-regenerate gapics (#3436)


This is an auto-generated regeneration of the gapic clients by
cloud.google.com/go/internal/gapicgen. Once the corresponding genproto PR is
submitted, genbot will update this PR with a newer dependency to the newer
version of genproto and assign reviewers to this PR.

If you have been assigned to review this PR, please:

- Ensure that the version of genproto in go.mod has been updated.
- Ensure that CI is passing. If it's failing, it requires your manual attention.
- Approve and submit this PR if you believe it's ready to ship.


Corresponding genproto PR: https://github.com/googleapis/go-genproto/pull/505

Changes:
- chore(kms): migrate kms to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346440719
  Source-Link: https://github.com/googleapis/googleapis/commit/85a5954183479a9a7c2641c013cd728b6fa9b7cd

- feat(dialogflow/cx): allowed custom to specify webhook headers through query parameters
  docs: suggested to always use version for production traffic when calling DetectIntent

  PiperOrigin-RevId: 346434847
  Source-Link: https://github.com/googleapis/googleapis/commit/e4d01555afeb93d2f3b467056ea884b092567d1b

- chore(bigquery/storage): migrate java-bigquerystorage to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346405446
  Source-Link: https://github.com/googleapis/googleapis/commit/abc43060f136ce77124754a48f367102e646844a

- chore(firestore/apiv1): migrate firestore/admin to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346387604
  Source-Link: https://github.com/googleapis/googleapis/commit/36e1a9a8e31eef72033033aa910be56a64a1793f

- chore(analytics/admin): Make microgenerators default for all languages

  In particular this applies to Java and Python microgenerators.
  With this change `java_gapic_*` and `py_gapic_*` rules mean microgenerator versions. The monolith versions of the rules are named as `java_gapic_*_legacy` and `py_gapic_*_legacy` respectively.

  Also change Ads BAZEL template to reflect the change in default rule names.

  Also change `DO NOT OVERRIDE` comment warnings meaning (to reflect that now by default microgenerator rules are generated and the generated version must be accepted only if the API is being migrated to the microgenerator).

  PiperOrigin-RevId: 346227314
  Source-Link: https://github.com/googleapis/googleapis/commit/160f80d81d9b75145a2b50877cdb4b6e084a78c0

- fix(dialogflow/cx): use `google.cloud.dialogflowcx` namespace for python

  PiperOrigin-RevId: 346185632
  Source-Link: https://github.com/googleapis/googleapis/commit/d9bc6eb41bdacddcd5bd3a0af581bc769cc080d3

- fix(videointelligence):Introduce tracks and thumbnails fields for FaceDetectionAnnotations proto.

  PiperOrigin-RevId: 346138329
  Source-Link: https://github.com/googleapis/googleapis/commit/674ec0e684b20e57f8ab4811a44ba50631d0ef8b

- chore(billing): migrate java-billing to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346134186
  Source-Link: https://github.com/googleapis/googleapis/commit/adcf2b655d89b256c7be509509f41009b95f683a

- chore(asset): migrate java-asset to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346132907
  Source-Link: https://github.com/googleapis/googleapis/commit/8e32936b5907be362322acfa897130ee0e914bcb

- chore(billing/budgets): migrate java-billingbudgets to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346132901
  Source-Link: https://github.com/googleapis/googleapis/commit/61771acd2932b9396553219abe74a210ca0a0d2d

- chore(dataproc): migrate java-dataproc to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346132878
  Source-Link: https://github.com/googleapis/googleapis/commit/565b9a5f01d7154825c657bca5ee244e86aad918

- chore(cloudbuild/apiv1): migrate cloudbuild to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346132650
  Source-Link: https://github.com/googleapis/googleapis/commit/08869d766d1c5ad0950ba24e9707339024ab63be

- chore(monitoring/dashboard): migrate java-monitoring to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346127853
  Source-Link: https://github.com/googleapis/googleapis/commit/59ef1bc1dad73e435f6038d202fe7ff7455d9bec

- chore(containeranalysis): migrate java-containeranalysis to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346126761
  Source-Link: https://github.com/googleapis/googleapis/commit/3d044d4277aa89f6d82b57f5e57a2b81bcf17200

- chore(firestore): migrate firestore to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346124526
  Source-Link: https://github.com/googleapis/googleapis/commit/68b79503fa3743f64a2559d786c47e4472f449b7

- chore(redis): migrate redis to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346121774
  Source-Link: https://github.com/googleapis/googleapis/commit/fa1a1755bb7d1d211261906886d9608359ba23d9

- chore(analytics/admin): migrate analytics to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346120301
  Source-Link: https://github.com/googleapis/googleapis/commit/70c794b04230f5dafd612300d409dfd7df98ebca

- chore(spanner/admin/database): migrate java-spanner to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346119030
  Source-Link: https://github.com/googleapis/googleapis/commit/57e83fd2ae0804faa22328c41f82ae47220a93c9

- chore(videointelligence): migrate java-videointelligence to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346118883
  Source-Link: https://github.com/googleapis/googleapis/commit/8c987b95fb588f81fc5b626105a88d2fed9f6486

- chore(area120/tables): migrate area120/tables to the Java microgenerator

  Committer: @miraleung
  PiperOrigin-RevId: 346115388
  Source-Link: https://github.com/googleapis/googleapis/commit/46ef525a8da090173ef10d76aeacfb59c6c7c644

131 files changed
tree: 5b2595404e0c017cd98683da08372d9c2c5d5354
  1. .github/
  2. .gitignore
  3. CHANGES.md
  4. CODE_OF_CONDUCT.md
  5. CONTRIBUTING.md
  6. LICENSE
  7. README.md
  8. RELEASING.md
  9. accessapproval/
  10. analytics/
  11. area120/
  12. artifactregistry/
  13. asset/
  14. assuredworkloads/
  15. automl/
  16. bigquery/
  17. bigtable/
  18. billing/
  19. civil/
  20. cloudbuild/
  21. cloudtasks/
  22. cmd/
  23. compute/
  24. container/
  25. containeranalysis/
  26. datacatalog/
  27. dataproc/
  28. datastore/
  29. debugger/
  30. dialogflow/
  31. dlp/
  32. doc.go
  33. errorreporting/
  34. examples_test.go
  35. firestore/
  36. functions/
  37. gaming/
  38. go.mod
  39. go.sum
  40. grafeas/
  41. httpreplay/
  42. iam/
  43. internal/
  44. iot/
  45. kms/
  46. language/
  47. license_test.go
  48. logging/
  49. longrunning/
  50. managedidentities/
  51. memcache/
  52. monitoring/
  53. notebooks/
  54. osconfig/
  55. oslogin/
  56. phishingprotection/
  57. policytroubleshooter/
  58. profiler/
  59. pubsub/
  60. pubsublite/
  61. recaptchaenterprise/
  62. recommender/
  63. redis/
  64. rpcreplay/
  65. scheduler/
  66. secretmanager/
  67. security/
  68. securitycenter/
  69. servicedirectory/
  70. spanner/
  71. speech/
  72. storage/
  73. talent/
  74. testing.md
  75. texttospeech/
  76. third_party/
  77. tools.go
  78. trace/
  79. translate/
  80. video/
  81. videointelligence/
  82. vision/
  83. webrisk/
  84. websecurityscanner/
  85. workflows/
README.md

Google Cloud Client Libraries for Go

GoDoc

Go packages for Google Cloud Platform services.

import "cloud.google.com/go"

To install the packages on your system, do not clone the repo. Instead:

  1. Change to your project directory:

    cd /my/cloud/project
    
  2. Get the package you want to use. Some products have their own module, so it's best to go get the package(s) you want to use:

    $ go get cloud.google.com/go/firestore # Replace with the package you want to use.
    

NOTE: Some of these packages are under development, and may occasionally make backwards-incompatible changes.

NOTE: Github repo is a mirror of https://code.googlesource.com/gocloud.

Supported APIs

Google APIStatusPackage
Assetstablecloud.google.com/go/asset/apiv1
Automlstablecloud.google.com/go/automl/apiv1
BigQuerystablecloud.google.com/go/bigquery
Bigtablestablecloud.google.com/go/bigtable
Cloudbuildstablecloud.google.com/go/cloudbuild/apiv1
Cloudtasksstablecloud.google.com/go/cloudtasks/apiv2
Containerstablecloud.google.com/go/container/apiv1
ContainerAnalysisbetacloud.google.com/go/containeranalysis/apiv1
Dataprocstablecloud.google.com/go/dataproc/apiv1
Datastorestablecloud.google.com/go/datastore
Debuggerstablecloud.google.com/go/debugger/apiv2
Dialogflowstablecloud.google.com/go/dialogflow/apiv2
Data Loss Preventionstablecloud.google.com/go/dlp/apiv2
ErrorReportingalphacloud.google.com/go/errorreporting
Firestorestablecloud.google.com/go/firestore
IAMstablecloud.google.com/go/iam
IoTstablecloud.google.com/go/iot/apiv1
IRMalphacloud.google.com/go/irm/apiv1alpha2
KMSstablecloud.google.com/go/kms/apiv1
Natural Languagestablecloud.google.com/go/language/apiv1
Loggingstablecloud.google.com/go/logging
Memorystorealphacloud.google.com/go/redis/apiv1
Monitoringstablecloud.google.com/go/monitoring/apiv3
OS Loginstablecloud.google.com/go/oslogin/apiv1
Pub/Substablecloud.google.com/go/pubsub
Phishing Protectionalphacloud.google.com/go/phishingprotection/apiv1beta1
reCAPTCHA Enterprisealphacloud.google.com/go/recaptchaenterprise/apiv1beta1
Recommenderbetacloud.google.com/go/recommender/apiv1beta1
Schedulerstablecloud.google.com/go/scheduler/apiv1
Securitycenterstablecloud.google.com/go/securitycenter/apiv1
Spannerstablecloud.google.com/go/spanner
Speechstablecloud.google.com/go/speech/apiv1
Storagestablecloud.google.com/go/storage
Talentalphacloud.google.com/go/talent/apiv4beta1
Text To Speechstablecloud.google.com/go/texttospeech/apiv1
Tracestablecloud.google.com/go/trace/apiv2
Translatestablecloud.google.com/go/translate
Video Intelligencebetacloud.google.com/go/videointelligence/apiv1beta2
Visionstablecloud.google.com/go/vision/apiv1
Webriskalphacloud.google.com/go/webrisk/apiv1beta1

Alpha status: the API is still being actively developed. As a result, it might change in backward-incompatible ways and is not recommended for production use.

Beta status: the API is largely complete, but still has outstanding features and bugs to be addressed. There may be minor backwards-incompatible changes where necessary.

Stable status: the API is mature and ready for production use. We will continue addressing bugs and feature requests.

Documentation and examples are available at pkg.go.dev/cloud.google.com/go

Go Versions Supported

We currently support Go versions 1.11 and newer.

Authorization

By default, each API will use Google Application Default Credentials for authorization credentials used in calling the API endpoints. This will allow your application to run in many environments without requiring explicit configuration.

client, err := storage.NewClient(ctx)

To authorize using a JSON key file, pass option.WithCredentialsFile to the NewClient function of the desired package. For example:

client, err := storage.NewClient(ctx, option.WithCredentialsFile("path/to/keyfile.json"))

You can exert more control over authorization by using the golang.org/x/oauth2 package to create an oauth2.TokenSource. Then pass option.WithTokenSource to the NewClient function: snip:# (auth-ts)

tokenSource := ...
client, err := storage.NewClient(ctx, option.WithTokenSource(tokenSource))

Contributing

Contributions are welcome. Please, see the CONTRIBUTING document for details.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See Contributor Code of Conduct for more information.

Links