feat(ai/generativelanguage): Add question_answering and fact_verification task types for AQA (#9745)

- [ ] Regenerate this pull request now.

feat: Add output dimensionality for embeddings
feat: Add response_mime_type to GenerationConfig
docs: A bunch of small fixes

PiperOrigin-RevId: 623546647

Source-Link: https://togithub.com/googleapis/googleapis/commit/33ae36216312ae9b34331d7be40eecf117929d40

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/c76a9c264c68594bf5d96cdcae3c74b7ca0aa443
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzc2YTljMjY0YzY4NTk0YmY1ZDk2Y2RjYWUzYzc0YjdjYTBhYTQ0MyJ9
BEGIN_NESTED_COMMIT
feat(discoveryengine): support import data from Cloud Spanner, BigTable, SQL and Firestore
feat: add answer generation APIs
feat: add standalone grounding API
feat: add standalone ranking API
feat: support advanced search boosting
feat: add advanced engine model APIs
docs: keep the API doc up-to-date with recent changes

PiperOrigin-RevId: 623543290

Source-Link: https://togithub.com/googleapis/googleapis/commit/5fadb63405833b1b9a4ff84b0e649d9591f2480d

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/589978b0a33d46e87b7bd0d8017739cdcae2accc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTg5OTc4YjBhMzNkNDZlODdiN2JkMGQ4MDE3NzM5Y2RjYWUyYWNjYyJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
docs(maps/routing): various formatting and grammar fixes for proto documentation
feat: adds support for new toll passes
feat: adds support for specifying units in the ComputeRouteMatrix request

PiperOrigin-RevId: 623543022

Source-Link: https://togithub.com/googleapis/googleapis/commit/fc8905581384dd1e820724b59fcf7c7ef727859d

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/e586c156d83a25845988578444f1c1e0a842fc4f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTU4NmMxNTZkODNhMjU4NDU5ODg1Nzg0NDRmMWMxZTBhODQyZmM0ZiJ9
END_NESTED_COMMIT
76 files changed
tree: a42788886eeaf60038bc367205275b7d373bf475
  1. .devcontainer/
  2. .github/
  3. accessapproval/
  4. accesscontextmanager/
  5. advisorynotifications/
  6. ai/
  7. aiplatform/
  8. alloydb/
  9. analytics/
  10. apigateway/
  11. apigeeconnect/
  12. apigeeregistry/
  13. apikeys/
  14. appengine/
  15. apphub/
  16. apps/
  17. area120/
  18. artifactregistry/
  19. asset/
  20. assuredworkloads/
  21. auth/
  22. automl/
  23. backupdr/
  24. baremetalsolution/
  25. batch/
  26. beyondcorp/
  27. bigquery/
  28. bigtable/
  29. billing/
  30. binaryauthorization/
  31. certificatemanager/
  32. channel/
  33. civil/
  34. cloudbuild/
  35. cloudcontrolspartner/
  36. clouddms/
  37. cloudprofiler/
  38. cloudquotas/
  39. cloudtasks/
  40. commerce/
  41. compute/
  42. confidentialcomputing/
  43. config/
  44. contactcenterinsights/
  45. container/
  46. containeranalysis/
  47. datacatalog/
  48. dataflow/
  49. dataform/
  50. datafusion/
  51. datalabeling/
  52. dataplex/
  53. dataproc/
  54. dataqna/
  55. datastore/
  56. datastream/
  57. debugger/
  58. deploy/
  59. dialogflow/
  60. discoveryengine/
  61. dlp/
  62. documentai/
  63. domains/
  64. edgecontainer/
  65. edgenetwork/
  66. errorreporting/
  67. essentialcontacts/
  68. eventarc/
  69. filestore/
  70. firestore/
  71. functions/
  72. gkebackup/
  73. gkeconnect/
  74. gkehub/
  75. gkemulticloud/
  76. grafeas/
  77. gsuiteaddons/
  78. httpreplay/
  79. iam/
  80. iap/
  81. ids/
  82. internal/
  83. iot/
  84. kms/
  85. language/
  86. lifesciences/
  87. logging/
  88. longrunning/
  89. managedidentities/
  90. maps/
  91. mediatranslation/
  92. memcache/
  93. metastore/
  94. migrationcenter/
  95. monitoring/
  96. netapp/
  97. networkconnectivity/
  98. networkmanagement/
  99. networksecurity/
  100. notebooks/
  101. optimization/
  102. orchestration/
  103. orgpolicy/
  104. osconfig/
  105. oslogin/
  106. parallelstore/
  107. phishingprotection/
  108. policysimulator/
  109. policytroubleshooter/
  110. privatecatalog/
  111. profiler/
  112. pubsub/
  113. pubsublite/
  114. rapidmigrationassessment/
  115. recaptchaenterprise/
  116. recommendationengine/
  117. recommender/
  118. redis/
  119. resourcemanager/
  120. resourcesettings/
  121. retail/
  122. rpcreplay/
  123. run/
  124. scheduler/
  125. secretmanager/
  126. securesourcemanager/
  127. security/
  128. securitycenter/
  129. securitycentermanagement/
  130. securityposture/
  131. servicecontrol/
  132. servicedirectory/
  133. servicehealth/
  134. servicemanagement/
  135. serviceusage/
  136. shell/
  137. shopping/
  138. spanner/
  139. speech/
  140. storage/
  141. storageinsights/
  142. storagetransfer/
  143. support/
  144. talent/
  145. telcoautomation/
  146. texttospeech/
  147. third_party/
  148. tpu/
  149. trace/
  150. translate/
  151. vertexai/
  152. video/
  153. videointelligence/
  154. vision/
  155. visionai/
  156. vmmigration/
  157. vmwareengine/
  158. vpcaccess/
  159. webrisk/
  160. websecurityscanner/
  161. workflows/
  162. workstations/
  163. .gitignore
  164. .release-please-manifest-individual.json
  165. .release-please-manifest-submodules.json
  166. .release-please-manifest.json
  167. CHANGES.md
  168. CODE_OF_CONDUCT.md
  169. CONTRIBUTING.md
  170. debug.md
  171. doc.go
  172. go.mod
  173. go.sum
  174. go.work
  175. go.work.sum
  176. LICENSE
  177. migration.md
  178. README.md
  179. release-please-config-individual.json
  180. release-please-config-yoshi-submodules.json
  181. release-please-config.json
  182. RELEASING.md
  183. SECURITY.md
  184. testing.md
README.md

Google Cloud Client Libraries for Go

Go Reference

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.

Supported APIs

For an updated list of all of our released APIs please see our reference docs.

Go Versions Supported

Our libraries are compatible with at least the three most recent, major Go releases. They are currently compatible with:

  • Go 1.21
  • Go 1.20
  • Go 1.19

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:

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