fix: add php_namespace (#10231)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 635971833

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

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/09bd58bd2bff201fdb92206f5304bd335647e17d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDliZDU4YmQyYmZmMjAxZmRiOTIyMDZmNTMwNGJkMzM1NjQ3ZTE3ZCJ9
BEGIN_NESTED_COMMIT
feat(shopping/merchant/reports): add `non_product_performance_view` table to Reports sub-API
feat(shopping/merchant/reports): add `effectiveness` field to `price_insights_product_view` table in Reports sub-API

PiperOrigin-RevId: 635777166

Source-Link: https://togithub.com/googleapis/googleapis/commit/57514fbcb92c243fc478fdd540e5bf40bd91bf64

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/564835792365b80ff6e0248b50cda818bd18c0e5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTY0ODM1NzkyMzY1YjgwZmY2ZTAyNDhiNTBjZGE4MThiZDE4YzBlNSJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
docs(shopping/merchant/conversions): change in wording
docs(shopping/merchant/conversions): A comment for message `MerchantCenterDestination` is changed
PiperOrigin-RevId: 635709955

Source-Link: https://togithub.com/googleapis/googleapis/commit/0ed8e060147c90feeeac57b2c35114d407257ed8

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/d1754bc91458f1f6d31fe07ceeba9cba5b634386
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDE3NTRiYzkxNDU4ZjFmNmQzMWZlMDdjZWViYTljYmE1YjYzNDM4NiJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat(shopping/merchant/reports): A new enum `Effectiveness` is added
feat(shopping/merchant/reports): A new field `effectiveness` is added to message `.google.shopping.merchant.reports.v1beta.PriceInsightsProductView`

docs(shopping/merchant/reports): A comment for enum `AggregatedReportingContextStatus` is changed

docs(shopping/merchant/reports): A comment for field `shipping_label` in message `.google.shopping.merchant.reports.v1beta.ProductView` is changed

docs(shopping/merchant/reports): A comment for field `inventory_status` in message `.google.shopping.merchant.reports.v1beta.BestSellersProductClusterView` is changed

docs(shopping/merchant/reports): A comment for field `brand_inventory_status` in message `.google.shopping.merchant.reports.v1beta.BestSellersProductClusterView` is changed
PiperOrigin-RevId: 635706104

Source-Link: https://togithub.com/googleapis/googleapis/commit/054146896ff300d6137157d18e6e76d506d9e729

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/809fa15e425a42645261004426b6ba776767ac23
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODA5ZmExNWU0MjVhNDI2NDUyNjEwMDQ0MjZiNmJhNzc2NzY3YWMyMyJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
docs(shopping/merchant/lfp): change in wording
docs(shopping/merchant/lfp): A comment for field `availability` in message `.google.shopping.merchant.lfp.v1beta.LfpInventory` is changed

docs(shopping/merchant/lfp): A comment for field `pickup_method` in message `.google.shopping.merchant.lfp.v1beta.LfpInventory` is changed

docs(shopping/merchant/lfp): A comment for field `pickup_sla` in message `.google.shopping.merchant.lfp.v1beta.LfpInventory` is changed

docs(shopping/merchant/lfp): A comment for message `LfpStore` is changed

docs(shopping/merchant/lfp): A comment for enum `StoreMatchingState` is changed

docs(shopping/merchant/lfp): A comment for field `matching_state` in message `.google.shopping.merchant.lfp.v1beta.LfpStore` is changed
PiperOrigin-RevId: 635705712

Source-Link: https://togithub.com/googleapis/googleapis/commit/958ef9d7846b6ec6da7ca274a8db6841ebb1b0aa

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/fa683eaf110b0deece90b4658ce817a73ff6c21d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmE2ODNlYWYxMTBiMGRlZWNlOTBiNDY1OGNlODE3YTczZmY2YzIxZCJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
docs(shopping/merchant/inventories): change in wording
docs(shopping/merchant/inventories): A comment for message `LocalInventory` is changed

docs(shopping/merchant/inventories): A comment for field `store_code` in message `.google.shopping.merchant.inventories.v1beta.LocalInventory` is changed

docs(shopping/merchant/inventories): A comment for field `availability` in message `.google.shopping.merchant.inventories.v1beta.LocalInventory` is changed

docs(shopping/merchant/inventories): A comment for field `pickup_method` in message `.google.shopping.merchant.inventories.v1beta.LocalInventory` is changed

docs(shopping/merchant/inventories): A comment for field `pickup_sla` in message `.google.shopping.merchant.inventories.v1beta.LocalInventory` is changed

docs(shopping/merchant/inventories): A comment for field `custom_attributes` in message `.google.shopping.merchant.inventories.v1beta.LocalInventory` is changed

docs(shopping/merchant/inventories): A comment for message `RegionalInventory` is changed

docs(shopping/merchant/inventories): A comment for field `availability` in message `.google.shopping.merchant.inventories.v1beta.RegionalInventory` is changed

docs(shopping/merchant/inventories): A comment for field `custom_attributes` in message `.google.shopping.merchant.inventories.v1beta.RegionalInventory` is changed
PiperOrigin-RevId: 635705518

Source-Link: https://togithub.com/googleapis/googleapis/commit/657d99eff7c05e7a4e22639b562b423a92ebc55c

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/1f0d4cc9c4fca08cad36e964ce00313409f0c8c6
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWYwZDRjYzljNGZjYTA4Y2FkMzZlOTY0Y2UwMDMxMzQwOWYwYzhjNiJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat(gkebackup): add fine-grained restore
feat(gkebackup): add volume restore flexibility
feat(gkebackup): add restore order
feat(gkebackup): add strict-permissive mode
feat(gkebackup): add gitops
docs(gkebackup): update duration comment to include new validation from smart scheduling

PiperOrigin-RevId: 635316968

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

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/611b3e4f754ec20d268ad973ba45c38371059d13
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjExYjNlNGY3NTRlYzIwZDI2OGFkOTczYmE0NWMzODM3MTA1OWQxMyJ9
END_NESTED_COMMIT
23 files changed
tree: f25d36d529c43264243ae121280e08893114cc6c
  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. chat/
  34. civil/
  35. cloudbuild/
  36. cloudcontrolspartner/
  37. clouddms/
  38. cloudprofiler/
  39. cloudquotas/
  40. cloudtasks/
  41. commerce/
  42. compute/
  43. confidentialcomputing/
  44. config/
  45. contactcenterinsights/
  46. container/
  47. containeranalysis/
  48. datacatalog/
  49. dataflow/
  50. dataform/
  51. datafusion/
  52. datalabeling/
  53. dataplex/
  54. dataproc/
  55. dataqna/
  56. datastore/
  57. datastream/
  58. debugger/
  59. deploy/
  60. dialogflow/
  61. discoveryengine/
  62. dlp/
  63. documentai/
  64. domains/
  65. edgecontainer/
  66. edgenetwork/
  67. errorreporting/
  68. essentialcontacts/
  69. eventarc/
  70. filestore/
  71. firestore/
  72. functions/
  73. gkebackup/
  74. gkeconnect/
  75. gkehub/
  76. gkemulticloud/
  77. grafeas/
  78. gsuiteaddons/
  79. httpreplay/
  80. iam/
  81. iap/
  82. identitytoolkit/
  83. ids/
  84. internal/
  85. iot/
  86. kms/
  87. language/
  88. lifesciences/
  89. logging/
  90. longrunning/
  91. managedidentities/
  92. maps/
  93. mediatranslation/
  94. memcache/
  95. metastore/
  96. migrationcenter/
  97. monitoring/
  98. netapp/
  99. networkconnectivity/
  100. networkmanagement/
  101. networksecurity/
  102. notebooks/
  103. optimization/
  104. orchestration/
  105. orgpolicy/
  106. osconfig/
  107. oslogin/
  108. parallelstore/
  109. phishingprotection/
  110. policysimulator/
  111. policytroubleshooter/
  112. privatecatalog/
  113. profiler/
  114. pubsub/
  115. pubsublite/
  116. rapidmigrationassessment/
  117. recaptchaenterprise/
  118. recommendationengine/
  119. recommender/
  120. redis/
  121. resourcemanager/
  122. resourcesettings/
  123. retail/
  124. rpcreplay/
  125. run/
  126. scheduler/
  127. secretmanager/
  128. securesourcemanager/
  129. security/
  130. securitycenter/
  131. securitycentermanagement/
  132. securityposture/
  133. servicecontrol/
  134. servicedirectory/
  135. servicehealth/
  136. servicemanagement/
  137. serviceusage/
  138. shell/
  139. shopping/
  140. spanner/
  141. speech/
  142. storage/
  143. storageinsights/
  144. storagetransfer/
  145. streetview/
  146. support/
  147. talent/
  148. telcoautomation/
  149. texttospeech/
  150. third_party/
  151. tpu/
  152. trace/
  153. translate/
  154. vertexai/
  155. video/
  156. videointelligence/
  157. vision/
  158. visionai/
  159. vmmigration/
  160. vmwareengine/
  161. vpcaccess/
  162. webrisk/
  163. websecurityscanner/
  164. workflows/
  165. workstations/
  166. .gitignore
  167. .release-please-manifest-individual.json
  168. .release-please-manifest-submodules.json
  169. .release-please-manifest.json
  170. CHANGES.md
  171. CODE_OF_CONDUCT.md
  172. CONTRIBUTING.md
  173. debug.md
  174. doc.go
  175. go.mod
  176. go.sum
  177. go.work
  178. go.work.sum
  179. LICENSE
  180. migration.md
  181. README.md
  182. release-please-config-individual.json
  183. release-please-config-yoshi-submodules.json
  184. release-please-config.json
  185. RELEASING.md
  186. SECURITY.md
  187. 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.22
  • Go 1.21
  • Go 1.20

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