commit | 652ba8fa79d4d23b4267fd201acf5ca692228959 | [log] [tgz] |
---|---|---|
author | gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com> | Thu May 16 19:18:17 2024 +0000 |
committer | GitHub <noreply@github.com> | Thu May 16 19:18:17 2024 +0000 |
tree | 298a65fcea95feace4ee482520bb49aabd6a2b5b | |
parent | b4a177d7340c84a757a626c18272e0f2ac0cd452 [diff] |
feat(ai/generativelanguage): Add usage metadata to GenerateContentResponse (#10179) - [ ] Regenerate this pull request now. feat(ai/generativelanguage): Add generate_content_request to CountTokensRequest feat(ai/generativelanguage): Update timeouts docs(ai/generativelanguage): Minor updates PiperOrigin-RevId: 634424772 Source-Link: https://togithub.com/googleapis/googleapis/commit/b546bed71076c358d4fed37ed704f6a8d2c239c3 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/c09c0f62922005f673e73d034b6126576318df74 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzA5YzBmNjI5MjIwMDVmNjczZTczZDAzNGI2MTI2NTc2MzE4ZGY3NCJ9 BEGIN_NESTED_COMMIT docs(servicedirectory): add maximum page_size to ListNamespace API documentation docs(servicedirectory): add maximum page_size to ListService API documentation docs(servicedirectory): add maximum page_size to ListEndpoint API documentation PiperOrigin-RevId: 634102876 Source-Link: https://togithub.com/googleapis/googleapis/commit/2862f6f956a9ed2ce68bb6a752670289e5e81538 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/dfb402271d4a7422c7dcf759a5ff800fc79971c3 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGZiNDAyMjcxZDRhNzQyMmM3ZGNmNzU5YTVmZjgwMGZjNzk5NzFjMyJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat(deploy): add Skaffold verbose support to Execution Environment properties PiperOrigin-RevId: 634060715 Source-Link: https://togithub.com/googleapis/googleapis/commit/0d8db1a5197b56c3d4dd5dd058d3e0e041c84f90 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/54e64117b755a0e71244197414ab9738d4d5790d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTRlNjQxMTdiNzU1YTBlNzEyNDQxOTc0MTRhYjk3MzhkNGQ1NzkwZCJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT fix(parallelstore): An existing field `create_time` is removed from message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` fix(parallelstore): An existing field `end_time` is removed from message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` fix(parallelstore): An existing field `source` is removed from message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` fix(parallelstore): An existing field `destination` is removed from message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` feat(parallelstore): A new field `create_time` is added to message `.google.cloud.parallelstore.v1beta.ImportDataMetadata` feat(parallelstore): A new field `end_time` is added to message `.google.cloud.parallelstore.v1beta.ImportDataMetadata` feat(parallelstore): A new field `target` is added to message `.google.cloud.parallelstore.v1beta.ImportDataMetadata` feat(parallelstore): A new field `verb` is added to message `.google.cloud.parallelstore.v1beta.ImportDataMetadata` feat(parallelstore): A new field `status_message` is added to message `.google.cloud.parallelstore.v1beta.ImportDataMetadata` feat(parallelstore): A new field `requested_cancellation` is added to message `.google.cloud.parallelstore.v1beta.ImportDataMetadata` feat(parallelstore): A new field `api_version` is added to message `.google.cloud.parallelstore.v1beta.ImportDataMetadata` feat(parallelstore): A new field `create_time` is added to message `.google.cloud.parallelstore.v1beta.ExportDataMetadata` feat(parallelstore): A new field `end_time` is added to message `.google.cloud.parallelstore.v1beta.ExportDataMetadata` feat(parallelstore): A new field `target` is added to message `.google.cloud.parallelstore.v1beta.ExportDataMetadata` feat(parallelstore): A new field `verb` is added to message `.google.cloud.parallelstore.v1beta.ExportDataMetadata` feat(parallelstore): A new field `status_message` is added to message `.google.cloud.parallelstore.v1beta.ExportDataMetadata` feat(parallelstore): A new field `requested_cancellation` is added to message `.google.cloud.parallelstore.v1beta.ExportDataMetadata` feat(parallelstore): A new field `api_version` is added to message `.google.cloud.parallelstore.v1beta.ExportDataMetadata` feat(parallelstore): A new field `source_parallelstore` is added to message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` feat(parallelstore): A new field `source_gcs_bucket` is added to message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` feat(parallelstore): A new field `destination_gcs_bucket` is added to message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` feat(parallelstore): A new field `destination_parallelstore` is added to message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` docs(parallelstore): A comment for field `counters` in message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` is changed docs(parallelstore): A comment for field `transfer_type` in message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` is changed PiperOrigin-RevId: 634007169 Source-Link: https://togithub.com/googleapis/googleapis/commit/07dfcdab40b79a515b8dbd4d8f90446d89d6eab2 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/afd2967fcca430ad46f329199b7ba5568a2dfda7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWZkMjk2N2ZjY2E0MzBhZDQ2ZjMyOTE5OWI3YmE1NTY4YTJkZmRhNyJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat(commerce): promote client to GA feat(config): promote client to GA feat(migrationcenter): promote client to GA feat(netapp): promote client to GA feat(redis/cluster): promote client to GA feat(servicehealth): promote client to GA feat(workstations): promote client to GA feat(iam/admin): promote client to GA PiperOrigin-RevId: 633952122 Source-Link: https://togithub.com/googleapis/googleapis/commit/3b84c01b5b0b38ef6bc1bf82ce43901be8c927e1 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/d0a4d073f5cbbab90dd455cb6bd3ddd7d5c960cd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDBhNGQwNzNmNWNiYmFiOTBkZDQ1NWNiNmJkM2RkZDdkNWM5NjBjZCJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs(documentai): clarify the unavailability of some features chore(documentai): field behavior annotations in processor.proto PiperOrigin-RevId: 633834640 Source-Link: https://togithub.com/googleapis/googleapis/commit/ca6e6eb9631c42cd2eb51358af4afa7883d4b69b Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/017e306f0dcd7936f87e2d7b2a9339da87910e92 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDE3ZTMwNmYwZGNkNzkzNmY4N2UyZDdiMmE5MzM5ZGE4NzkxMGU5MiJ9 END_NESTED_COMMIT
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:
cd /my/cloud/project
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.
For an updated list of all of our released APIs please see our reference docs.
Our libraries are compatible with at least the three most recent, major Go releases. They are currently compatible with:
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:
tokenSource := ...
client, err := storage.NewClient(ctx, option.WithTokenSource(tokenSource))
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.