Here's a simple usage example for using google-cloud from App/Compute Engine. This example - * shows how to create a Storage blob. For the complete source code see - * CreateBlob.java. + *
Here's a simple usage example the Java Storage client. This example shows how to create a + * Storage object. * *
{@code
* Storage storage = StorageOptions.getDefaultInstance().getService();
@@ -29,10 +27,7 @@
* Blob blob = storage.create(blobInfo, "Hello, Cloud Storage!".getBytes(UTF_8));
* }
*
- * This second example shows how to update the blob's content if the blob exists. For the - * complete source code see - * UpdateBlob.java. + *
This second example shows how to update an object's content if the object exists. * *
{@code
* Storage storage = StorageOptions.getDefaultInstance().getService();
@@ -47,6 +42,9 @@
* }
* }
*
+ * For more detailed code examples, see the sample library. + * *
When using google-cloud from outside of App/Compute Engine, you have to specify a project
* ID and provide
From 583bf73f5d58aa5d79fbaa12b24407c558235eed Mon Sep 17 00:00:00 2001
From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com>
Date: Thu, 11 Aug 2022 11:54:53 -0700
Subject: [PATCH 07/28] docs: add batch sample (#1559)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* docs: add batch sample
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* copyright
* fix whitespace
Co-authored-by: Owl Bot
Operations in this library are generally thread safe, except for the use of
+ * BlobReadChannel and
+ * BlobWriteChannel.
+ *
* @see Google Cloud Storage
*/
package com.google.cloud.storage;
From 9d94ea2fe4e023ebab40976be9d47101856d1670 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate googleapis/java-pubsub
### [`v1.120.12`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#112012-httpsgithubcomgoogleapisjava-pubsubcomparev112011v112012-2022-08-18)
[Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.120.11...v1.120.12)
##### Dependencies
- update dependency com.google.cloud:google-cloud-bigquery to v2.14.4 ([#1242](https://togithub.com/googleapis/java-pubsub/issues/1242)) ([08cfe80](https://togithub.com/googleapis/java-pubsub/commit/08cfe805e71831e040f63755acde17ec45c21418))
- update dependency com.google.cloud:google-cloud-bigquery to v2.14.6 ([#1245](https://togithub.com/googleapis/java-pubsub/issues/1245)) ([7f933ee](https://togithub.com/googleapis/java-pubsub/commit/7f933ee35055c608e9f5b72251583060943a79ea))
- update dependency com.google.cloud:google-cloud-core to v2.8.9 ([#1250](https://togithub.com/googleapis/java-pubsub/issues/1250)) ([7c8fd41](https://togithub.com/googleapis/java-pubsub/commit/7c8fd4183523b876983c89d4b7994746b11964c3))
- update dependency com.google.protobuf:protobuf-java-util to v3.21.5 ([#1243](https://togithub.com/googleapis/java-pubsub/issues/1243)) ([37eaff8](https://togithub.com/googleapis/java-pubsub/commit/37eaff859422bb215ace202ffd0adf8a651dadb5))
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
* storageClient.deleteBucket(name);
@@ -101,8 +104,11 @@
* To customize credentials:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* StorageSettings storageSettings =
* StorageSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -113,8 +119,11 @@
* To customize the endpoint:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* StorageSettings storageSettings = StorageSettings.newBuilder().setEndpoint(myEndpoint).build();
* StorageClient storageClient = StorageClient.create(storageSettings);
* }
@@ -123,8 +132,11 @@
* the wire:
*
* {@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* StorageSettings storageSettings =
* StorageSettings.newBuilder()
* .setTransportChannelProvider(
@@ -190,8 +202,11 @@ public StorageStub getStub() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
* storageClient.deleteBucket(name);
@@ -214,8 +229,11 @@ public final void deleteBucket(BucketName name) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String name = BucketName.of("[PROJECT]", "[BUCKET]").toString();
* storageClient.deleteBucket(name);
@@ -237,8 +255,11 @@ public final void deleteBucket(String name) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* DeleteBucketRequest request =
* DeleteBucketRequest.newBuilder()
@@ -264,8 +285,11 @@ public final void deleteBucket(DeleteBucketRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* DeleteBucketRequest request =
* DeleteBucketRequest.newBuilder()
@@ -290,8 +314,11 @@ public final UnaryCallable deleteBucketCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
* Bucket response = storageClient.getBucket(name);
@@ -314,8 +341,11 @@ public final Bucket getBucket(BucketName name) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String name = BucketName.of("[PROJECT]", "[BUCKET]").toString();
* Bucket response = storageClient.getBucket(name);
@@ -337,8 +367,11 @@ public final Bucket getBucket(String name) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* GetBucketRequest request =
* GetBucketRequest.newBuilder()
@@ -365,8 +398,11 @@ public final Bucket getBucket(GetBucketRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* GetBucketRequest request =
* GetBucketRequest.newBuilder()
@@ -392,8 +428,11 @@ public final UnaryCallable getBucketCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* Bucket bucket = Bucket.newBuilder().build();
@@ -428,8 +467,11 @@ public final Bucket createBucket(ProjectName parent, Bucket bucket, String bucke
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
* Bucket bucket = Bucket.newBuilder().build();
@@ -464,8 +506,11 @@ public final Bucket createBucket(String parent, Bucket bucket, String bucketId)
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* CreateBucketRequest request =
* CreateBucketRequest.newBuilder()
@@ -493,8 +538,11 @@ public final Bucket createBucket(CreateBucketRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* CreateBucketRequest request =
* CreateBucketRequest.newBuilder()
@@ -521,8 +569,11 @@ public final UnaryCallable createBucketCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* for (Bucket element : storageClient.listBuckets(parent).iterateAll()) {
@@ -549,8 +600,11 @@ public final ListBucketsPagedResponse listBuckets(ProjectName parent) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
* for (Bucket element : storageClient.listBuckets(parent).iterateAll()) {
@@ -574,8 +628,11 @@ public final ListBucketsPagedResponse listBuckets(String parent) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ListBucketsRequest request =
* ListBucketsRequest.newBuilder()
@@ -605,8 +662,11 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ListBucketsRequest request =
* ListBucketsRequest.newBuilder()
@@ -636,8 +696,11 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ListBucketsRequest request =
* ListBucketsRequest.newBuilder()
@@ -673,8 +736,11 @@ public final UnaryCallable listBucketsC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* BucketName bucket = BucketName.of("[PROJECT]", "[BUCKET]");
* Bucket response = storageClient.lockBucketRetentionPolicy(bucket);
@@ -699,8 +765,11 @@ public final Bucket lockBucketRetentionPolicy(BucketName bucket) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String bucket = BucketName.of("[PROJECT]", "[BUCKET]").toString();
* Bucket response = storageClient.lockBucketRetentionPolicy(bucket);
@@ -723,8 +792,11 @@ public final Bucket lockBucketRetentionPolicy(String bucket) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* LockBucketRetentionPolicyRequest request =
* LockBucketRetentionPolicyRequest.newBuilder()
@@ -749,8 +821,11 @@ public final Bucket lockBucketRetentionPolicy(LockBucketRetentionPolicyRequest r
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* LockBucketRetentionPolicyRequest request =
* LockBucketRetentionPolicyRequest.newBuilder()
@@ -776,8 +851,11 @@ public final Bucket lockBucketRetentionPolicy(LockBucketRetentionPolicyRequest r
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ResourceName resource =
* CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
@@ -804,8 +882,11 @@ public final Policy getIamPolicy(ResourceName resource) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String resource =
* CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString();
@@ -829,8 +910,11 @@ public final Policy getIamPolicy(String resource) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
@@ -857,8 +941,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
@@ -884,8 +971,11 @@ public final UnaryCallable getIamPolicyCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ResourceName resource =
* CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
@@ -917,8 +1007,11 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String resource =
* CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString();
@@ -947,8 +1040,11 @@ public final Policy setIamPolicy(String resource, Policy policy) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
@@ -976,8 +1072,11 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
@@ -1005,8 +1104,11 @@ public final UnaryCallable setIamPolicyCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ResourceName resource =
* CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
@@ -1040,8 +1142,11 @@ public final TestIamPermissionsResponse testIamPermissions(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String resource =
* CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString();
@@ -1075,8 +1180,11 @@ public final TestIamPermissionsResponse testIamPermissions(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
@@ -1104,8 +1212,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
@@ -1133,8 +1244,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* Bucket bucket = Bucket.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1166,8 +1280,11 @@ public final Bucket updateBucket(Bucket bucket, FieldMask updateMask) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* UpdateBucketRequest request =
* UpdateBucketRequest.newBuilder()
@@ -1196,8 +1313,11 @@ public final Bucket updateBucket(UpdateBucketRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* UpdateBucketRequest request =
* UpdateBucketRequest.newBuilder()
@@ -1225,8 +1345,11 @@ public final UnaryCallable updateBucketCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* NotificationName name = NotificationName.of("[PROJECT]", "[BUCKET]", "[NOTIFICATION]");
* storageClient.deleteNotification(name);
@@ -1251,8 +1374,11 @@ public final void deleteNotification(NotificationName name) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String name = NotificationName.of("[PROJECT]", "[BUCKET]", "[NOTIFICATION]").toString();
* storageClient.deleteNotification(name);
@@ -1275,8 +1401,11 @@ public final void deleteNotification(String name) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* DeleteNotificationRequest request =
* DeleteNotificationRequest.newBuilder()
@@ -1300,8 +1429,11 @@ public final void deleteNotification(DeleteNotificationRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* DeleteNotificationRequest request =
* DeleteNotificationRequest.newBuilder()
@@ -1324,8 +1456,11 @@ public final UnaryCallable deleteNotificationC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
* Notification response = storageClient.getNotification(name);
@@ -1349,8 +1484,11 @@ public final Notification getNotification(BucketName name) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String name = BucketName.of("[PROJECT]", "[BUCKET]").toString();
* Notification response = storageClient.getNotification(name);
@@ -1373,8 +1511,11 @@ public final Notification getNotification(String name) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* GetNotificationRequest request =
* GetNotificationRequest.newBuilder()
@@ -1398,8 +1539,11 @@ public final Notification getNotification(GetNotificationRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* GetNotificationRequest request =
* GetNotificationRequest.newBuilder()
@@ -1424,8 +1568,11 @@ public final UnaryCallable getNotification
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* Notification notification = Notification.newBuilder().build();
@@ -1455,8 +1602,11 @@ public final Notification createNotification(ProjectName parent, Notification no
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
* Notification notification = Notification.newBuilder().build();
@@ -1486,8 +1636,11 @@ public final Notification createNotification(String parent, Notification notific
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* CreateNotificationRequest request =
* CreateNotificationRequest.newBuilder()
@@ -1514,8 +1667,11 @@ public final Notification createNotification(CreateNotificationRequest request)
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* CreateNotificationRequest request =
* CreateNotificationRequest.newBuilder()
@@ -1540,8 +1696,11 @@ public final UnaryCallable createNotifi
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* for (Notification element : storageClient.listNotifications(parent).iterateAll()) {
@@ -1568,8 +1727,11 @@ public final ListNotificationsPagedResponse listNotifications(ProjectName parent
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
* for (Notification element : storageClient.listNotifications(parent).iterateAll()) {
@@ -1594,8 +1756,11 @@ public final ListNotificationsPagedResponse listNotifications(String parent) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ListNotificationsRequest request =
* ListNotificationsRequest.newBuilder()
@@ -1623,8 +1788,11 @@ public final ListNotificationsPagedResponse listNotifications(ListNotificationsR
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ListNotificationsRequest request =
* ListNotificationsRequest.newBuilder()
@@ -1653,8 +1821,11 @@ public final ListNotificationsPagedResponse listNotifications(ListNotificationsR
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ListNotificationsRequest request =
* ListNotificationsRequest.newBuilder()
@@ -1690,8 +1861,11 @@ public final ListNotificationsPagedResponse listNotifications(ListNotificationsR
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ComposeObjectRequest request =
* ComposeObjectRequest.newBuilder()
@@ -1723,8 +1897,11 @@ public final Object composeObject(ComposeObjectRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ComposeObjectRequest request =
* ComposeObjectRequest.newBuilder()
@@ -1756,8 +1933,11 @@ public final UnaryCallable composeObjectCallable()
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String bucket = "bucket-1378203158";
* String object = "object-1023368385";
@@ -1783,8 +1963,11 @@ public final void deleteObject(String bucket, String object) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String bucket = "bucket-1378203158";
* String object = "object-1023368385";
@@ -1817,8 +2000,11 @@ public final void deleteObject(String bucket, String object, long generation) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* DeleteObjectRequest request =
* DeleteObjectRequest.newBuilder()
@@ -1850,8 +2036,11 @@ public final void deleteObject(DeleteObjectRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* DeleteObjectRequest request =
* DeleteObjectRequest.newBuilder()
@@ -1881,8 +2070,11 @@ public final UnaryCallable deleteObjectCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String uploadId = "uploadId1563990780";
* CancelResumableWriteResponse response = storageClient.cancelResumableWrite(uploadId);
@@ -1906,8 +2098,11 @@ public final CancelResumableWriteResponse cancelResumableWrite(String uploadId)
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* CancelResumableWriteRequest request =
* CancelResumableWriteRequest.newBuilder().setUploadId("uploadId1563990780").build();
@@ -1930,8 +2125,11 @@ public final CancelResumableWriteResponse cancelResumableWrite(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* CancelResumableWriteRequest request =
* CancelResumableWriteRequest.newBuilder().setUploadId("uploadId1563990780").build();
@@ -1954,8 +2152,11 @@ public final CancelResumableWriteResponse cancelResumableWrite(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String bucket = "bucket-1378203158";
* String object = "object-1023368385";
@@ -1980,8 +2181,11 @@ public final Object getObject(String bucket, String object) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String bucket = "bucket-1378203158";
* String object = "object-1023368385";
@@ -2013,8 +2217,11 @@ public final Object getObject(String bucket, String object, long generation) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* GetObjectRequest request =
* GetObjectRequest.newBuilder()
@@ -2046,8 +2253,11 @@ public final Object getObject(GetObjectRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* GetObjectRequest request =
* GetObjectRequest.newBuilder()
@@ -2078,8 +2288,11 @@ public final UnaryCallable getObjectCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ReadObjectRequest request =
* ReadObjectRequest.newBuilder()
@@ -2113,8 +2326,11 @@ public final ServerStreamingCallable read
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* Object object = Object.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -2148,8 +2364,11 @@ public final Object updateObject(Object object, FieldMask updateMask) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* UpdateObjectRequest request =
* UpdateObjectRequest.newBuilder()
@@ -2180,8 +2399,11 @@ public final Object updateObject(UpdateObjectRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* UpdateObjectRequest request =
* UpdateObjectRequest.newBuilder()
@@ -2250,8 +2472,11 @@ public final UnaryCallable updateObjectCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ApiStreamObserver responseObserver =
* new ApiStreamObserver() {
@@ -2295,8 +2520,11 @@ public final UnaryCallable updateObjectCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* for (Object element : storageClient.listObjects(parent).iterateAll()) {
@@ -2323,8 +2551,11 @@ public final ListObjectsPagedResponse listObjects(ProjectName parent) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
* for (Object element : storageClient.listObjects(parent).iterateAll()) {
@@ -2348,8 +2579,11 @@ public final ListObjectsPagedResponse listObjects(String parent) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ListObjectsRequest request =
* ListObjectsRequest.newBuilder()
@@ -2384,8 +2618,11 @@ public final ListObjectsPagedResponse listObjects(ListObjectsRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ListObjectsRequest request =
* ListObjectsRequest.newBuilder()
@@ -2420,8 +2657,11 @@ public final ListObjectsPagedResponse listObjects(ListObjectsRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ListObjectsRequest request =
* ListObjectsRequest.newBuilder()
@@ -2462,8 +2702,11 @@ public final UnaryCallable listObjectsC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* RewriteObjectRequest request =
* RewriteObjectRequest.newBuilder()
@@ -2510,8 +2753,11 @@ public final RewriteResponse rewriteObject(RewriteObjectRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* RewriteObjectRequest request =
* RewriteObjectRequest.newBuilder()
@@ -2558,8 +2804,11 @@ public final UnaryCallable rewriteObjectC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* StartResumableWriteRequest request =
* StartResumableWriteRequest.newBuilder()
@@ -2585,8 +2834,11 @@ public final StartResumableWriteResponse startResumableWrite(StartResumableWrite
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* StartResumableWriteRequest request =
* StartResumableWriteRequest.newBuilder()
@@ -2622,8 +2874,11 @@ public final StartResumableWriteResponse startResumableWrite(StartResumableWrite
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String uploadId = "uploadId1563990780";
* QueryWriteStatusResponse response = storageClient.queryWriteStatus(uploadId);
@@ -2657,8 +2912,11 @@ public final QueryWriteStatusResponse queryWriteStatus(String uploadId) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* QueryWriteStatusRequest request =
* QueryWriteStatusRequest.newBuilder()
@@ -2693,8 +2951,11 @@ public final QueryWriteStatusResponse queryWriteStatus(QueryWriteStatusRequest r
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* QueryWriteStatusRequest request =
* QueryWriteStatusRequest.newBuilder()
@@ -2720,8 +2981,11 @@ public final QueryWriteStatusResponse queryWriteStatus(QueryWriteStatusRequest r
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ProjectName project = ProjectName.of("[PROJECT]");
* ServiceAccount response = storageClient.getServiceAccount(project);
@@ -2747,8 +3011,11 @@ public final ServiceAccount getServiceAccount(ProjectName project) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String project = ProjectName.of("[PROJECT]").toString();
* ServiceAccount response = storageClient.getServiceAccount(project);
@@ -2772,8 +3039,11 @@ public final ServiceAccount getServiceAccount(String project) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* GetServiceAccountRequest request =
* GetServiceAccountRequest.newBuilder()
@@ -2797,8 +3067,11 @@ public final ServiceAccount getServiceAccount(GetServiceAccountRequest request)
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* GetServiceAccountRequest request =
* GetServiceAccountRequest.newBuilder()
@@ -2822,8 +3095,11 @@ public final UnaryCallable getServiceA
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ProjectName project = ProjectName.of("[PROJECT]");
* String serviceAccountEmail = "serviceAccountEmail1825953988";
@@ -2854,8 +3130,11 @@ public final CreateHmacKeyResponse createHmacKey(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String project = ProjectName.of("[PROJECT]").toString();
* String serviceAccountEmail = "serviceAccountEmail1825953988";
@@ -2885,8 +3164,11 @@ public final CreateHmacKeyResponse createHmacKey(String project, String serviceA
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* CreateHmacKeyRequest request =
* CreateHmacKeyRequest.newBuilder()
@@ -2911,8 +3193,11 @@ public final CreateHmacKeyResponse createHmacKey(CreateHmacKeyRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* CreateHmacKeyRequest request =
* CreateHmacKeyRequest.newBuilder()
@@ -2937,8 +3222,11 @@ public final UnaryCallable createHm
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String accessId = "accessId-2146437729";
* ProjectName project = ProjectName.of("[PROJECT]");
@@ -2968,8 +3256,11 @@ public final void deleteHmacKey(String accessId, ProjectName project) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String accessId = "accessId-2146437729";
* String project = ProjectName.of("[PROJECT]").toString();
@@ -2996,8 +3287,11 @@ public final void deleteHmacKey(String accessId, String project) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* DeleteHmacKeyRequest request =
* DeleteHmacKeyRequest.newBuilder()
@@ -3022,8 +3316,11 @@ public final void deleteHmacKey(DeleteHmacKeyRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* DeleteHmacKeyRequest request =
* DeleteHmacKeyRequest.newBuilder()
@@ -3047,8 +3344,11 @@ public final UnaryCallable deleteHmacKeyCallable()
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String accessId = "accessId-2146437729";
* ProjectName project = ProjectName.of("[PROJECT]");
@@ -3078,8 +3378,11 @@ public final HmacKeyMetadata getHmacKey(String accessId, ProjectName project) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String accessId = "accessId-2146437729";
* String project = ProjectName.of("[PROJECT]").toString();
@@ -3106,8 +3409,11 @@ public final HmacKeyMetadata getHmacKey(String accessId, String project) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* GetHmacKeyRequest request =
* GetHmacKeyRequest.newBuilder()
@@ -3132,8 +3438,11 @@ public final HmacKeyMetadata getHmacKey(GetHmacKeyRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* GetHmacKeyRequest request =
* GetHmacKeyRequest.newBuilder()
@@ -3157,8 +3466,11 @@ public final UnaryCallable getHmacKeyCallabl
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ProjectName project = ProjectName.of("[PROJECT]");
* for (HmacKeyMetadata element : storageClient.listHmacKeys(project).iterateAll()) {
@@ -3187,8 +3499,11 @@ public final ListHmacKeysPagedResponse listHmacKeys(ProjectName project) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* String project = ProjectName.of("[PROJECT]").toString();
* for (HmacKeyMetadata element : storageClient.listHmacKeys(project).iterateAll()) {
@@ -3214,8 +3529,11 @@ public final ListHmacKeysPagedResponse listHmacKeys(String project) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ListHmacKeysRequest request =
* ListHmacKeysRequest.newBuilder()
@@ -3245,8 +3563,11 @@ public final ListHmacKeysPagedResponse listHmacKeys(ListHmacKeysRequest request)
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ListHmacKeysRequest request =
* ListHmacKeysRequest.newBuilder()
@@ -3277,8 +3598,11 @@ public final ListHmacKeysPagedResponse listHmacKeys(ListHmacKeysRequest request)
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* ListHmacKeysRequest request =
* ListHmacKeysRequest.newBuilder()
@@ -3314,8 +3638,11 @@ public final UnaryCallable listHmacKe
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* HmacKeyMetadata hmacKey = HmacKeyMetadata.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -3343,8 +3670,11 @@ public final HmacKeyMetadata updateHmacKey(HmacKeyMetadata hmacKey, FieldMask up
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* UpdateHmacKeyRequest request =
* UpdateHmacKeyRequest.newBuilder()
@@ -3369,8 +3699,11 @@ public final HmacKeyMetadata updateHmacKey(UpdateHmacKeyRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* UpdateHmacKeyRequest request =
* UpdateHmacKeyRequest.newBuilder()
diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java
index 43c6e85528..23fc6ac91b 100644
--- a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java
+++ b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java
@@ -64,16 +64,16 @@
* For example, to set the total timeout of deleteBucket to 30 seconds:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* StorageSettings.Builder storageSettingsBuilder = StorageSettings.newBuilder();
* storageSettingsBuilder
* .deleteBucketSettings()
* .setRetrySettings(
- * storageSettingsBuilder
- * .deleteBucketSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * storageSettingsBuilder.deleteBucketSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* StorageSettings storageSettings = storageSettingsBuilder.build();
diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java
index b303dd1e34..5f909765e1 100644
--- a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java
+++ b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java
@@ -38,8 +38,11 @@
* Sample for StorageClient:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (StorageClient storageClient = StorageClient.create()) {
* BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
* storageClient.deleteBucket(name);
diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java
index c49a9d89ab..2a0c7cb538 100644
--- a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java
+++ b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java
@@ -124,16 +124,16 @@
* For example, to set the total timeout of deleteBucket to 30 seconds:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* StorageStubSettings.Builder storageSettingsBuilder = StorageStubSettings.newBuilder();
* storageSettingsBuilder
* .deleteBucketSettings()
* .setRetrySettings(
- * storageSettingsBuilder
- * .deleteBucketSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * storageSettingsBuilder.deleteBucketSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* StorageStubSettings storageSettings = storageSettingsBuilder.build();
From 5915383e68cb99d416f2b50b7f924a91b788ad13 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Wed, 14 Sep 2022 17:09:37 +0200
Subject: [PATCH 26/28] test(deps): update dependency
com.google.cloud:google-cloud-pubsub to v1.120.15 (#1616)
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/native-image-sample/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/pom.xml b/pom.xml
index 6f6656b394..867a29cc3f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -80,7 +80,7 @@
com.google.cloud
google-cloud-pubsub
- 1.120.14
+ 1.120.15
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 9f2e925b8a..e1d62f5d2e 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-pubsub
- 1.120.14
+ 1.120.15
test
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index d29ef63bb6..d596b0d589 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -61,7 +61,7 @@
com.google.cloud
google-cloud-pubsub
- 1.120.14
+ 1.120.15
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 84aad6e281..024146a795 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -52,7 +52,7 @@
com.google.cloud
google-cloud-pubsub
- 1.120.14
+ 1.120.15
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 25d730fac1..26847551a1 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -72,7 +72,7 @@
com.google.cloud
google-cloud-pubsub
- 1.120.14
+ 1.120.15
test
From 20e63785462e7876a7ff0ceeeea1363007cc160f Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Thu, 15 Sep 2022 14:18:31 +0200
Subject: [PATCH 27/28] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.0.3 (#1620)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.2` -> `3.0.3` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-shared-dependencies
### [`v3.0.3`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#303-httpsgithubcomgoogleapisjava-shared-dependenciescomparev302v303-2022-09-14)
[Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.2...v3.0.3)
##### Dependencies
- Google-cloud-core 2.8.12 ([#799](https://togithub.com/googleapis/java-shared-dependencies/issues/799)) ([1b3db8d](https://togithub.com/googleapis/java-shared-dependencies/commit/1b3db8d1e17c49ebae79fc96164fa9058e1df6e3))
- Moving gson to first-party-dependencies ([#800](https://togithub.com/googleapis/java-shared-dependencies/issues/800)) ([a41fcc1](https://togithub.com/googleapis/java-shared-dependencies/commit/a41fcc11d32e02e5af2837561792e3919f6d4b3f))
- Update dependency com.google.protobuf:protobuf-bom to v3.21.6 ([#797](https://togithub.com/googleapis/java-shared-dependencies/issues/797)) ([bc5fdc9](https://togithub.com/googleapis/java-shared-dependencies/commit/bc5fdc9b3af7973c28f063a9ac156fe2af562814))
- Update gax.version to v2.19.1 ([#798](https://togithub.com/googleapis/java-shared-dependencies/issues/798)) ([84e5487](https://togithub.com/googleapis/java-shared-dependencies/commit/84e5487b2e3dce4bb60badecebde788c3cb702b8))
- Update google.core.version to v2.8.11 ([#793](https://togithub.com/googleapis/java-shared-dependencies/issues/793)) ([63c1297](https://togithub.com/googleapis/java-shared-dependencies/commit/63c129722aa0b821031ff5b4c11004adf7b12044))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-storage).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 867a29cc3f..464daae85d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
UTF-8
github
google-cloud-storage-parent
- 3.0.2
+ 3.0.3
From 932259e9a744081b5416c9fb582af519b4360146 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 15 Sep 2022 16:06:17 +0000
Subject: [PATCH 28/28] chore(main): release 2.12.0 (#1565)
:robot: I have created a release *beep* *boop*
---
## [2.12.0](https://github.com/googleapis/java-storage/compare/v2.11.3...v2.12.0) (2022-09-15)
### Features
* Add toString method for CustomPlacementConfig ([#1602](https://github.com/googleapis/java-storage/issues/1602)) ([51aca10](https://github.com/googleapis/java-storage/commit/51aca10fafe685ed9e7cb41bc4ae79be10feb080))
### Documentation
* Add batch sample ([#1559](https://github.com/googleapis/java-storage/issues/1559)) ([583bf73](https://github.com/googleapis/java-storage/commit/583bf73f5d58aa5d79fbaa12b24407c558235eed))
* Document thread safety of library ([#1566](https://github.com/googleapis/java-storage/issues/1566)) ([c740899](https://github.com/googleapis/java-storage/commit/c7408999e811ba917edb0c136432afa29075e0f2))
* Fix broken links in readme ([#1520](https://github.com/googleapis/java-storage/issues/1520)) ([840b08a](https://github.com/googleapis/java-storage/commit/840b08a03fa7c0535855140244c282f79403b458))
### Dependencies
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#1611](https://github.com/googleapis/java-storage/issues/1611)) ([8a48aea](https://github.com/googleapis/java-storage/commit/8a48aea7e0049c64ef944b532a2874115b1e2323))
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#1620](https://github.com/googleapis/java-storage/issues/1620)) ([20e6378](https://github.com/googleapis/java-storage/commit/20e63785462e7876a7ff0ceeeea1363007cc160f))
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
---
CHANGELOG.md | 20 ++++++++++++++++++++
gapic-google-cloud-storage-v2/pom.xml | 4 ++--
google-cloud-storage/pom.xml | 4 ++--
grpc-google-cloud-storage-v2/pom.xml | 4 ++--
pom.xml | 10 +++++-----
proto-google-cloud-storage-v2/pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 8 ++++----
8 files changed, 38 insertions(+), 18 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1033b943b7..58d808c620 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,25 @@
# Changelog
+## [2.12.0](https://github.com/googleapis/java-storage/compare/v2.11.3...v2.12.0) (2022-09-15)
+
+
+### Features
+
+* Add toString method for CustomPlacementConfig ([#1602](https://github.com/googleapis/java-storage/issues/1602)) ([51aca10](https://github.com/googleapis/java-storage/commit/51aca10fafe685ed9e7cb41bc4ae79be10feb080))
+
+
+### Documentation
+
+* Add batch sample ([#1559](https://github.com/googleapis/java-storage/issues/1559)) ([583bf73](https://github.com/googleapis/java-storage/commit/583bf73f5d58aa5d79fbaa12b24407c558235eed))
+* Document thread safety of library ([#1566](https://github.com/googleapis/java-storage/issues/1566)) ([c740899](https://github.com/googleapis/java-storage/commit/c7408999e811ba917edb0c136432afa29075e0f2))
+* Fix broken links in readme ([#1520](https://github.com/googleapis/java-storage/issues/1520)) ([840b08a](https://github.com/googleapis/java-storage/commit/840b08a03fa7c0535855140244c282f79403b458))
+
+
+### Dependencies
+
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#1611](https://github.com/googleapis/java-storage/issues/1611)) ([8a48aea](https://github.com/googleapis/java-storage/commit/8a48aea7e0049c64ef944b532a2874115b1e2323))
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#1620](https://github.com/googleapis/java-storage/issues/1620)) ([20e6378](https://github.com/googleapis/java-storage/commit/20e63785462e7876a7ff0ceeeea1363007cc160f))
+
## [2.11.3](https://github.com/googleapis/java-storage/compare/v2.11.2...v2.11.3) (2022-08-08)
diff --git a/gapic-google-cloud-storage-v2/pom.xml b/gapic-google-cloud-storage-v2/pom.xml
index 026229dc85..5bb31083e0 100644
--- a/gapic-google-cloud-storage-v2/pom.xml
+++ b/gapic-google-cloud-storage-v2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
gapic-google-cloud-storage-v2
- 2.11.4-alpha-SNAPSHOT
+ 2.12.0-alpha
gapic-google-cloud-storage-v2
GRPC library for gapic-google-cloud-storage-v2
com.google.cloud
google-cloud-storage-parent
- 2.11.4-SNAPSHOT
+ 2.12.0
diff --git a/google-cloud-storage/pom.xml b/google-cloud-storage/pom.xml
index e56917c5f8..d285f5cbca 100644
--- a/google-cloud-storage/pom.xml
+++ b/google-cloud-storage/pom.xml
@@ -2,7 +2,7 @@
4.0.0
google-cloud-storage
- 2.11.4-SNAPSHOT
+ 2.12.0
jar
Google Cloud Storage
https://github.com/googleapis/java-storage
@@ -12,7 +12,7 @@
com.google.cloud
google-cloud-storage-parent
- 2.11.4-SNAPSHOT
+ 2.12.0
google-cloud-storage
diff --git a/grpc-google-cloud-storage-v2/pom.xml b/grpc-google-cloud-storage-v2/pom.xml
index ee2fcc8444..24454f038b 100644
--- a/grpc-google-cloud-storage-v2/pom.xml
+++ b/grpc-google-cloud-storage-v2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-storage-v2
- 2.11.4-alpha-SNAPSHOT
+ 2.12.0-alpha
grpc-google-cloud-storage-v2
GRPC library for grpc-google-cloud-storage-v2
com.google.cloud
google-cloud-storage-parent
- 2.11.4-SNAPSHOT
+ 2.12.0
diff --git a/pom.xml b/pom.xml
index 464daae85d..357baa6526 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-storage-parent
pom
- 2.11.4-SNAPSHOT
+ 2.12.0
Storage Parent
https://github.com/googleapis/java-storage
@@ -70,7 +70,7 @@
com.google.cloud
google-cloud-storage
- 2.11.4-SNAPSHOT
+ 2.12.0
com.google.apis
@@ -111,17 +111,17 @@
com.google.api.grpc
proto-google-cloud-storage-v2
- 2.11.4-alpha-SNAPSHOT
+ 2.12.0-alpha
com.google.api.grpc
grpc-google-cloud-storage-v2
- 2.11.4-alpha-SNAPSHOT
+ 2.12.0-alpha
com.google.api.grpc
gapic-google-cloud-storage-v2
- 2.11.4-alpha-SNAPSHOT
+ 2.12.0-alpha
com.google.cloud
diff --git a/proto-google-cloud-storage-v2/pom.xml b/proto-google-cloud-storage-v2/pom.xml
index f21f96988b..383e47acba 100644
--- a/proto-google-cloud-storage-v2/pom.xml
+++ b/proto-google-cloud-storage-v2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-storage-v2
- 2.11.4-alpha-SNAPSHOT
+ 2.12.0-alpha
proto-google-cloud-storage-v2
PROTO library for proto-google-cloud-storage-v2
com.google.cloud
google-cloud-storage-parent
- 2.11.4-SNAPSHOT
+ 2.12.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 024146a795..5abdb6f444 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-storage
- 2.11.4-SNAPSHOT
+ 2.12.0
diff --git a/versions.txt b/versions.txt
index 564b12cef4..334e0f4a24 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,7 +1,7 @@
# Format:
# module:released-version:current-version
-google-cloud-storage:2.11.3:2.11.4-SNAPSHOT
-gapic-google-cloud-storage-v2:2.11.3-alpha:2.11.4-alpha-SNAPSHOT
-grpc-google-cloud-storage-v2:2.11.3-alpha:2.11.4-alpha-SNAPSHOT
-proto-google-cloud-storage-v2:2.11.3-alpha:2.11.4-alpha-SNAPSHOT
+google-cloud-storage:2.12.0:2.12.0
+gapic-google-cloud-storage-v2:2.12.0-alpha:2.12.0-alpha
+grpc-google-cloud-storage-v2:2.12.0-alpha:2.12.0-alpha
+proto-google-cloud-storage-v2:2.12.0-alpha:2.12.0-alpha