diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java rename to gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java diff --git a/owl-bot-staging/v2/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 similarity index 99% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java rename to gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java index e2f36a5753..8c693857c7 100644 --- a/owl-bot-staging/v2/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 @@ -32,7 +32,6 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.iam.v1.GetIamPolicyRequest; diff --git a/owl-bot-staging/v2/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 similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java rename to gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java rename to gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java similarity index 99% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java rename to gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java index a26b3c5218..cd33ebcaf1 100644 --- a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java +++ b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java @@ -84,7 +84,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java rename to gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java diff --git a/owl-bot-staging/v2/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 similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java rename to gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/gapic_metadata.json b/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/gapic_metadata.json rename to gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java b/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java rename to gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java b/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java rename to gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java b/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java rename to gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java diff --git a/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java b/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java new file mode 100644 index 0000000000..74422ea150 --- /dev/null +++ b/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java @@ -0,0 +1,3781 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.storage.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * ## API Overview and Naming Syntax + * The Cloud Storage gRPC API allows applications to read and write data through + * the abstractions of buckets and objects. For a description of these + * abstractions please see https://cloud.google.com/storage/docs. + * Resources are named as follows: + * - Projects are referred to as they are defined by the Resource Manager API, + * using strings like `projects/123456` or `projects/my-string-id`. + * - Buckets are named using string names of the form: + * `projects/{project}/buckets/{bucket}` + * For globally unique buckets, `_` may be substituted for the project. + * - Objects are uniquely identified by their name along with the name of the + * bucket they belong to, as separate strings in this API. For example: + * ReadObjectRequest { + * bucket: 'projects/_/buckets/my-bucket' + * object: 'my-object' + * } + * Note that object names can contain `/` characters, which are treated as + * any other character (no special directory semantics). + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/storage/v2/storage.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class StorageGrpc { + + private StorageGrpc() {} + + public static final String SERVICE_NAME = "google.storage.v2.Storage"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.storage.v2.DeleteBucketRequest, com.google.protobuf.Empty> + getDeleteBucketMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBucket", + requestType = com.google.storage.v2.DeleteBucketRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.storage.v2.DeleteBucketRequest, com.google.protobuf.Empty> + getDeleteBucketMethod() { + io.grpc.MethodDescriptor
+ * ## API Overview and Naming Syntax + * The Cloud Storage gRPC API allows applications to read and write data through + * the abstractions of buckets and objects. For a description of these + * abstractions please see https://cloud.google.com/storage/docs. + * Resources are named as follows: + * - Projects are referred to as they are defined by the Resource Manager API, + * using strings like `projects/123456` or `projects/my-string-id`. + * - Buckets are named using string names of the form: + * `projects/{project}/buckets/{bucket}` + * For globally unique buckets, `_` may be substituted for the project. + * - Objects are uniquely identified by their name along with the name of the + * bucket they belong to, as separate strings in this API. For example: + * ReadObjectRequest { + * bucket: 'projects/_/buckets/my-bucket' + * object: 'my-object' + * } + * Note that object names can contain `/` characters, which are treated as + * any other character (no special directory semantics). + *+ */ + public abstract static class StorageImplBase implements io.grpc.BindableService { + + /** + * + * + *
+ * Permanently deletes an empty bucket. + *+ */ + public void deleteBucket( + com.google.storage.v2.DeleteBucketRequest request, + io.grpc.stub.StreamObserver
+ * Returns metadata for the specified bucket. + *+ */ + public void getBucket( + com.google.storage.v2.GetBucketRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new bucket. + *+ */ + public void createBucket( + com.google.storage.v2.CreateBucketRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves a list of buckets for a given project. + *+ */ + public void listBuckets( + com.google.storage.v2.ListBucketsRequest request, + io.grpc.stub.StreamObserver
+ * Locks retention policy on a bucket. + *+ */ + public void lockBucketRetentionPolicy( + com.google.storage.v2.LockBucketRetentionPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Gets the IAM policy for a specified bucket or object. + *+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Updates an IAM policy for the specified bucket or object. + *+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Tests a set of permissions on the given bucket or object to see which, if + * any, are held by the caller. + *+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver
+ * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method. + *+ */ + public void updateBucket( + com.google.storage.v2.UpdateBucketRequest request, + io.grpc.stub.StreamObserver
+ * Permanently deletes a notification subscription. + *+ */ + public void deleteNotification( + com.google.storage.v2.DeleteNotificationRequest request, + io.grpc.stub.StreamObserver
+ * View a notification config. + *+ */ + public void getNotification( + com.google.storage.v2.GetNotificationRequest request, + io.grpc.stub.StreamObserver
+ * Creates a notification subscription for a given bucket. + * These notifications, when triggered, publish messages to the specified + * Pub/Sub topics. + * See https://cloud.google.com/storage/docs/pubsub-notifications. + *+ */ + public void createNotification( + com.google.storage.v2.CreateNotificationRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves a list of notification subscriptions for a given bucket. + *+ */ + public void listNotifications( + com.google.storage.v2.ListNotificationsRequest request, + io.grpc.stub.StreamObserver
+ * Concatenates a list of existing objects into a new object in the same + * bucket. + *+ */ + public void composeObject( + com.google.storage.v2.ComposeObjectRequest request, + io.grpc.stub.StreamObserver
+ * Deletes an object and its metadata. Deletions are permanent if versioning + * is not enabled for the bucket, or if the `generation` parameter is used. + *+ */ + public void deleteObject( + com.google.storage.v2.DeleteObjectRequest request, + io.grpc.stub.StreamObserver
+ * Cancels an in-progress resumable upload. + *+ */ + public void cancelResumableWrite( + com.google.storage.v2.CancelResumableWriteRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves an object's metadata. + *+ */ + public void getObject( + com.google.storage.v2.GetObjectRequest request, + io.grpc.stub.StreamObserver
+ * Reads an object's data. + *+ */ + public void readObject( + com.google.storage.v2.ReadObjectRequest request, + io.grpc.stub.StreamObserver
+ * Updates an object's metadata. + * Equivalent to JSON API's storage.objects.patch. + *+ */ + public void updateObject( + com.google.storage.v2.UpdateObjectRequest request, + io.grpc.stub.StreamObserver
+ * Stores a new object and metadata. + * An object can be written either in a single message stream or in a + * resumable sequence of message streams. To write using a single stream, + * the client should include in the first message of the stream an + * `WriteObjectSpec` describing the destination bucket, object, and any + * preconditions. Additionally, the final message must set 'finish_write' to + * true, or else it is an error. + * For a resumable write, the client should instead call + * `StartResumableWrite()`, populating a `WriteObjectSpec` into that request. + * They should then attach the returned `upload_id` to the first message of + * each following call to `WriteObject`. If the stream is closed before + * finishing the upload (either explicitly by the client or due to a network + * error or an error response from the server), the client should do as + * follows: + * - Check the result Status of the stream, to determine if writing can be + * resumed on this stream or must be restarted from scratch (by calling + * `StartResumableWrite()`). The resumable errors are DEADLINE_EXCEEDED, + * INTERNAL, and UNAVAILABLE. For each case, the client should use binary + * exponential backoff before retrying. Additionally, writes can be + * resumed after RESOURCE_EXHAUSTED errors, but only after taking + * appropriate measures, which may include reducing aggregate send rate + * across clients and/or requesting a quota increase for your project. + * - If the call to `WriteObject` returns `ABORTED`, that indicates + * concurrent attempts to update the resumable write, caused either by + * multiple racing clients or by a single client where the previous + * request was timed out on the client side but nonetheless reached the + * server. In this case the client should take steps to prevent further + * concurrent writes (e.g., increase the timeouts, stop using more than + * one process to perform the upload, etc.), and then should follow the + * steps below for resuming the upload. + * - For resumable errors, the client should call `QueryWriteStatus()` and + * then continue writing from the returned `persisted_size`. This may be + * less than the amount of data the client previously sent. Note also that + * it is acceptable to send data starting at an offset earlier than the + * returned `persisted_size`; in this case, the service will skip data at + * offsets that were already persisted (without checking that it matches + * the previously written data), and write only the data starting from the + * persisted offset. This behavior can make client-side handling simpler + * in some cases. + * The service will not view the object as complete until the client has + * sent a `WriteObjectRequest` with `finish_write` set to `true`. Sending any + * requests on a stream after sending a request with `finish_write` set to + * `true` will cause an error. The client **should** check the response it + * receives to determine how much data the service was able to commit and + * whether the service views the object as complete. + * Attempting to resume an already finalized object will result in an OK + * status, with a WriteObjectResponse containing the finalized object's + * metadata. + *+ */ + public io.grpc.stub.StreamObserver
+ * Retrieves a list of objects matching the criteria. + *+ */ + public void listObjects( + com.google.storage.v2.ListObjectsRequest request, + io.grpc.stub.StreamObserver
+ * Rewrites a source object to a destination object. Optionally overrides + * metadata. + *+ */ + public void rewriteObject( + com.google.storage.v2.RewriteObjectRequest request, + io.grpc.stub.StreamObserver
+ * Starts a resumable write. How long the write operation remains valid, and + * what happens when the write operation becomes invalid, are + * service-dependent. + *+ */ + public void startResumableWrite( + com.google.storage.v2.StartResumableWriteRequest request, + io.grpc.stub.StreamObserver
+ * Determines the `persisted_size` for an object that is being written, which + * can then be used as the `write_offset` for the next `Write()` call. + * If the object does not exist (i.e., the object has been deleted, or the + * first `Write()` has not yet reached the service), this method returns the + * error `NOT_FOUND`. + * The client **may** call `QueryWriteStatus()` at any time to determine how + * much data has been processed for this object. This is useful if the + * client is buffering data and needs to know which data can be safely + * evicted. For any sequence of `QueryWriteStatus()` calls for a given + * object name, the sequence of returned `persisted_size` values will be + * non-decreasing. + *+ */ + public void queryWriteStatus( + com.google.storage.v2.QueryWriteStatusRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves the name of a project's Google Cloud Storage service account. + *+ */ + public void getServiceAccount( + com.google.storage.v2.GetServiceAccountRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new HMAC key for the given service account. + *+ */ + public void createHmacKey( + com.google.storage.v2.CreateHmacKeyRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a given HMAC key. Key must be in an INACTIVE state. + *+ */ + public void deleteHmacKey( + com.google.storage.v2.DeleteHmacKeyRequest request, + io.grpc.stub.StreamObserver
+ * Gets an existing HMAC key metadata for the given id. + *+ */ + public void getHmacKey( + com.google.storage.v2.GetHmacKeyRequest request, + io.grpc.stub.StreamObserver
+ * Lists HMAC keys under a given project with the additional filters provided. + *+ */ + public void listHmacKeys( + com.google.storage.v2.ListHmacKeysRequest request, + io.grpc.stub.StreamObserver
+ * Updates a given HMAC key state between ACTIVE and INACTIVE. + *+ */ + public void updateHmacKey( + com.google.storage.v2.UpdateHmacKeyRequest request, + io.grpc.stub.StreamObserver
+ * ## API Overview and Naming Syntax + * The Cloud Storage gRPC API allows applications to read and write data through + * the abstractions of buckets and objects. For a description of these + * abstractions please see https://cloud.google.com/storage/docs. + * Resources are named as follows: + * - Projects are referred to as they are defined by the Resource Manager API, + * using strings like `projects/123456` or `projects/my-string-id`. + * - Buckets are named using string names of the form: + * `projects/{project}/buckets/{bucket}` + * For globally unique buckets, `_` may be substituted for the project. + * - Objects are uniquely identified by their name along with the name of the + * bucket they belong to, as separate strings in this API. For example: + * ReadObjectRequest { + * bucket: 'projects/_/buckets/my-bucket' + * object: 'my-object' + * } + * Note that object names can contain `/` characters, which are treated as + * any other character (no special directory semantics). + *+ */ + public static final class StorageStub extends io.grpc.stub.AbstractAsyncStub
+ * Permanently deletes an empty bucket. + *+ */ + public void deleteBucket( + com.google.storage.v2.DeleteBucketRequest request, + io.grpc.stub.StreamObserver
+ * Returns metadata for the specified bucket. + *+ */ + public void getBucket( + com.google.storage.v2.GetBucketRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new bucket. + *+ */ + public void createBucket( + com.google.storage.v2.CreateBucketRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves a list of buckets for a given project. + *+ */ + public void listBuckets( + com.google.storage.v2.ListBucketsRequest request, + io.grpc.stub.StreamObserver
+ * Locks retention policy on a bucket. + *+ */ + public void lockBucketRetentionPolicy( + com.google.storage.v2.LockBucketRetentionPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Gets the IAM policy for a specified bucket or object. + *+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Updates an IAM policy for the specified bucket or object. + *+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Tests a set of permissions on the given bucket or object to see which, if + * any, are held by the caller. + *+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver
+ * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method. + *+ */ + public void updateBucket( + com.google.storage.v2.UpdateBucketRequest request, + io.grpc.stub.StreamObserver
+ * Permanently deletes a notification subscription. + *+ */ + public void deleteNotification( + com.google.storage.v2.DeleteNotificationRequest request, + io.grpc.stub.StreamObserver
+ * View a notification config. + *+ */ + public void getNotification( + com.google.storage.v2.GetNotificationRequest request, + io.grpc.stub.StreamObserver
+ * Creates a notification subscription for a given bucket. + * These notifications, when triggered, publish messages to the specified + * Pub/Sub topics. + * See https://cloud.google.com/storage/docs/pubsub-notifications. + *+ */ + public void createNotification( + com.google.storage.v2.CreateNotificationRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves a list of notification subscriptions for a given bucket. + *+ */ + public void listNotifications( + com.google.storage.v2.ListNotificationsRequest request, + io.grpc.stub.StreamObserver
+ * Concatenates a list of existing objects into a new object in the same + * bucket. + *+ */ + public void composeObject( + com.google.storage.v2.ComposeObjectRequest request, + io.grpc.stub.StreamObserver
+ * Deletes an object and its metadata. Deletions are permanent if versioning + * is not enabled for the bucket, or if the `generation` parameter is used. + *+ */ + public void deleteObject( + com.google.storage.v2.DeleteObjectRequest request, + io.grpc.stub.StreamObserver
+ * Cancels an in-progress resumable upload. + *+ */ + public void cancelResumableWrite( + com.google.storage.v2.CancelResumableWriteRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves an object's metadata. + *+ */ + public void getObject( + com.google.storage.v2.GetObjectRequest request, + io.grpc.stub.StreamObserver
+ * Reads an object's data. + *+ */ + public void readObject( + com.google.storage.v2.ReadObjectRequest request, + io.grpc.stub.StreamObserver
+ * Updates an object's metadata. + * Equivalent to JSON API's storage.objects.patch. + *+ */ + public void updateObject( + com.google.storage.v2.UpdateObjectRequest request, + io.grpc.stub.StreamObserver
+ * Stores a new object and metadata. + * An object can be written either in a single message stream or in a + * resumable sequence of message streams. To write using a single stream, + * the client should include in the first message of the stream an + * `WriteObjectSpec` describing the destination bucket, object, and any + * preconditions. Additionally, the final message must set 'finish_write' to + * true, or else it is an error. + * For a resumable write, the client should instead call + * `StartResumableWrite()`, populating a `WriteObjectSpec` into that request. + * They should then attach the returned `upload_id` to the first message of + * each following call to `WriteObject`. If the stream is closed before + * finishing the upload (either explicitly by the client or due to a network + * error or an error response from the server), the client should do as + * follows: + * - Check the result Status of the stream, to determine if writing can be + * resumed on this stream or must be restarted from scratch (by calling + * `StartResumableWrite()`). The resumable errors are DEADLINE_EXCEEDED, + * INTERNAL, and UNAVAILABLE. For each case, the client should use binary + * exponential backoff before retrying. Additionally, writes can be + * resumed after RESOURCE_EXHAUSTED errors, but only after taking + * appropriate measures, which may include reducing aggregate send rate + * across clients and/or requesting a quota increase for your project. + * - If the call to `WriteObject` returns `ABORTED`, that indicates + * concurrent attempts to update the resumable write, caused either by + * multiple racing clients or by a single client where the previous + * request was timed out on the client side but nonetheless reached the + * server. In this case the client should take steps to prevent further + * concurrent writes (e.g., increase the timeouts, stop using more than + * one process to perform the upload, etc.), and then should follow the + * steps below for resuming the upload. + * - For resumable errors, the client should call `QueryWriteStatus()` and + * then continue writing from the returned `persisted_size`. This may be + * less than the amount of data the client previously sent. Note also that + * it is acceptable to send data starting at an offset earlier than the + * returned `persisted_size`; in this case, the service will skip data at + * offsets that were already persisted (without checking that it matches + * the previously written data), and write only the data starting from the + * persisted offset. This behavior can make client-side handling simpler + * in some cases. + * The service will not view the object as complete until the client has + * sent a `WriteObjectRequest` with `finish_write` set to `true`. Sending any + * requests on a stream after sending a request with `finish_write` set to + * `true` will cause an error. The client **should** check the response it + * receives to determine how much data the service was able to commit and + * whether the service views the object as complete. + * Attempting to resume an already finalized object will result in an OK + * status, with a WriteObjectResponse containing the finalized object's + * metadata. + *+ */ + public io.grpc.stub.StreamObserver
+ * Retrieves a list of objects matching the criteria. + *+ */ + public void listObjects( + com.google.storage.v2.ListObjectsRequest request, + io.grpc.stub.StreamObserver
+ * Rewrites a source object to a destination object. Optionally overrides + * metadata. + *+ */ + public void rewriteObject( + com.google.storage.v2.RewriteObjectRequest request, + io.grpc.stub.StreamObserver
+ * Starts a resumable write. How long the write operation remains valid, and + * what happens when the write operation becomes invalid, are + * service-dependent. + *+ */ + public void startResumableWrite( + com.google.storage.v2.StartResumableWriteRequest request, + io.grpc.stub.StreamObserver
+ * Determines the `persisted_size` for an object that is being written, which + * can then be used as the `write_offset` for the next `Write()` call. + * If the object does not exist (i.e., the object has been deleted, or the + * first `Write()` has not yet reached the service), this method returns the + * error `NOT_FOUND`. + * The client **may** call `QueryWriteStatus()` at any time to determine how + * much data has been processed for this object. This is useful if the + * client is buffering data and needs to know which data can be safely + * evicted. For any sequence of `QueryWriteStatus()` calls for a given + * object name, the sequence of returned `persisted_size` values will be + * non-decreasing. + *+ */ + public void queryWriteStatus( + com.google.storage.v2.QueryWriteStatusRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves the name of a project's Google Cloud Storage service account. + *+ */ + public void getServiceAccount( + com.google.storage.v2.GetServiceAccountRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new HMAC key for the given service account. + *+ */ + public void createHmacKey( + com.google.storage.v2.CreateHmacKeyRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a given HMAC key. Key must be in an INACTIVE state. + *+ */ + public void deleteHmacKey( + com.google.storage.v2.DeleteHmacKeyRequest request, + io.grpc.stub.StreamObserver
+ * Gets an existing HMAC key metadata for the given id. + *+ */ + public void getHmacKey( + com.google.storage.v2.GetHmacKeyRequest request, + io.grpc.stub.StreamObserver
+ * Lists HMAC keys under a given project with the additional filters provided. + *+ */ + public void listHmacKeys( + com.google.storage.v2.ListHmacKeysRequest request, + io.grpc.stub.StreamObserver
+ * Updates a given HMAC key state between ACTIVE and INACTIVE. + *+ */ + public void updateHmacKey( + com.google.storage.v2.UpdateHmacKeyRequest request, + io.grpc.stub.StreamObserver
+ * ## API Overview and Naming Syntax + * The Cloud Storage gRPC API allows applications to read and write data through + * the abstractions of buckets and objects. For a description of these + * abstractions please see https://cloud.google.com/storage/docs. + * Resources are named as follows: + * - Projects are referred to as they are defined by the Resource Manager API, + * using strings like `projects/123456` or `projects/my-string-id`. + * - Buckets are named using string names of the form: + * `projects/{project}/buckets/{bucket}` + * For globally unique buckets, `_` may be substituted for the project. + * - Objects are uniquely identified by their name along with the name of the + * bucket they belong to, as separate strings in this API. For example: + * ReadObjectRequest { + * bucket: 'projects/_/buckets/my-bucket' + * object: 'my-object' + * } + * Note that object names can contain `/` characters, which are treated as + * any other character (no special directory semantics). + *+ */ + public static final class StorageBlockingStub + extends io.grpc.stub.AbstractBlockingStub
+ * Permanently deletes an empty bucket. + *+ */ + public com.google.protobuf.Empty deleteBucket( + com.google.storage.v2.DeleteBucketRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBucketMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Returns metadata for the specified bucket. + *+ */ + public com.google.storage.v2.Bucket getBucket(com.google.storage.v2.GetBucketRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBucketMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a new bucket. + *+ */ + public com.google.storage.v2.Bucket createBucket( + com.google.storage.v2.CreateBucketRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBucketMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Retrieves a list of buckets for a given project. + *+ */ + public com.google.storage.v2.ListBucketsResponse listBuckets( + com.google.storage.v2.ListBucketsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBucketsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Locks retention policy on a bucket. + *+ */ + public com.google.storage.v2.Bucket lockBucketRetentionPolicy( + com.google.storage.v2.LockBucketRetentionPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLockBucketRetentionPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets the IAM policy for a specified bucket or object. + *+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates an IAM policy for the specified bucket or object. + *+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Tests a set of permissions on the given bucket or object to see which, if + * any, are held by the caller. + *+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method. + *+ */ + public com.google.storage.v2.Bucket updateBucket( + com.google.storage.v2.UpdateBucketRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBucketMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Permanently deletes a notification subscription. + *+ */ + public com.google.protobuf.Empty deleteNotification( + com.google.storage.v2.DeleteNotificationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNotificationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * View a notification config. + *+ */ + public com.google.storage.v2.Notification getNotification( + com.google.storage.v2.GetNotificationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNotificationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a notification subscription for a given bucket. + * These notifications, when triggered, publish messages to the specified + * Pub/Sub topics. + * See https://cloud.google.com/storage/docs/pubsub-notifications. + *+ */ + public com.google.storage.v2.Notification createNotification( + com.google.storage.v2.CreateNotificationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNotificationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Retrieves a list of notification subscriptions for a given bucket. + *+ */ + public com.google.storage.v2.ListNotificationsResponse listNotifications( + com.google.storage.v2.ListNotificationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNotificationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Concatenates a list of existing objects into a new object in the same + * bucket. + *+ */ + public com.google.storage.v2.Object composeObject( + com.google.storage.v2.ComposeObjectRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComposeObjectMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes an object and its metadata. Deletions are permanent if versioning + * is not enabled for the bucket, or if the `generation` parameter is used. + *+ */ + public com.google.protobuf.Empty deleteObject( + com.google.storage.v2.DeleteObjectRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteObjectMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Cancels an in-progress resumable upload. + *+ */ + public com.google.storage.v2.CancelResumableWriteResponse cancelResumableWrite( + com.google.storage.v2.CancelResumableWriteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelResumableWriteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Retrieves an object's metadata. + *+ */ + public com.google.storage.v2.Object getObject(com.google.storage.v2.GetObjectRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetObjectMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Reads an object's data. + *+ */ + public java.util.Iterator
+ * Updates an object's metadata. + * Equivalent to JSON API's storage.objects.patch. + *+ */ + public com.google.storage.v2.Object updateObject( + com.google.storage.v2.UpdateObjectRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateObjectMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Retrieves a list of objects matching the criteria. + *+ */ + public com.google.storage.v2.ListObjectsResponse listObjects( + com.google.storage.v2.ListObjectsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListObjectsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Rewrites a source object to a destination object. Optionally overrides + * metadata. + *+ */ + public com.google.storage.v2.RewriteResponse rewriteObject( + com.google.storage.v2.RewriteObjectRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRewriteObjectMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Starts a resumable write. How long the write operation remains valid, and + * what happens when the write operation becomes invalid, are + * service-dependent. + *+ */ + public com.google.storage.v2.StartResumableWriteResponse startResumableWrite( + com.google.storage.v2.StartResumableWriteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartResumableWriteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Determines the `persisted_size` for an object that is being written, which + * can then be used as the `write_offset` for the next `Write()` call. + * If the object does not exist (i.e., the object has been deleted, or the + * first `Write()` has not yet reached the service), this method returns the + * error `NOT_FOUND`. + * The client **may** call `QueryWriteStatus()` at any time to determine how + * much data has been processed for this object. This is useful if the + * client is buffering data and needs to know which data can be safely + * evicted. For any sequence of `QueryWriteStatus()` calls for a given + * object name, the sequence of returned `persisted_size` values will be + * non-decreasing. + *+ */ + public com.google.storage.v2.QueryWriteStatusResponse queryWriteStatus( + com.google.storage.v2.QueryWriteStatusRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryWriteStatusMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Retrieves the name of a project's Google Cloud Storage service account. + *+ */ + public com.google.storage.v2.ServiceAccount getServiceAccount( + com.google.storage.v2.GetServiceAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServiceAccountMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a new HMAC key for the given service account. + *+ */ + public com.google.storage.v2.CreateHmacKeyResponse createHmacKey( + com.google.storage.v2.CreateHmacKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHmacKeyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a given HMAC key. Key must be in an INACTIVE state. + *+ */ + public com.google.protobuf.Empty deleteHmacKey( + com.google.storage.v2.DeleteHmacKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHmacKeyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets an existing HMAC key metadata for the given id. + *+ */ + public com.google.storage.v2.HmacKeyMetadata getHmacKey( + com.google.storage.v2.GetHmacKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHmacKeyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Lists HMAC keys under a given project with the additional filters provided. + *+ */ + public com.google.storage.v2.ListHmacKeysResponse listHmacKeys( + com.google.storage.v2.ListHmacKeysRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHmacKeysMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates a given HMAC key state between ACTIVE and INACTIVE. + *+ */ + public com.google.storage.v2.HmacKeyMetadata updateHmacKey( + com.google.storage.v2.UpdateHmacKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHmacKeyMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+ * ## API Overview and Naming Syntax + * The Cloud Storage gRPC API allows applications to read and write data through + * the abstractions of buckets and objects. For a description of these + * abstractions please see https://cloud.google.com/storage/docs. + * Resources are named as follows: + * - Projects are referred to as they are defined by the Resource Manager API, + * using strings like `projects/123456` or `projects/my-string-id`. + * - Buckets are named using string names of the form: + * `projects/{project}/buckets/{bucket}` + * For globally unique buckets, `_` may be substituted for the project. + * - Objects are uniquely identified by their name along with the name of the + * bucket they belong to, as separate strings in this API. For example: + * ReadObjectRequest { + * bucket: 'projects/_/buckets/my-bucket' + * object: 'my-object' + * } + * Note that object names can contain `/` characters, which are treated as + * any other character (no special directory semantics). + *+ */ + public static final class StorageFutureStub + extends io.grpc.stub.AbstractFutureStub
+ * Permanently deletes an empty bucket. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Returns metadata for the specified bucket. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a new bucket. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Retrieves a list of buckets for a given project. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.ListBucketsResponse> + listBuckets(com.google.storage.v2.ListBucketsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBucketsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Locks retention policy on a bucket. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Gets the IAM policy for a specified bucket or object. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates an IAM policy for the specified bucket or object. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Tests a set of permissions on the given bucket or object to see which, if + * any, are held by the caller. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Permanently deletes a notification subscription. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * View a notification config. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a notification subscription for a given bucket. + * These notifications, when triggered, publish messages to the specified + * Pub/Sub topics. + * See https://cloud.google.com/storage/docs/pubsub-notifications. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Retrieves a list of notification subscriptions for a given bucket. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.ListNotificationsResponse> + listNotifications(com.google.storage.v2.ListNotificationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNotificationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Concatenates a list of existing objects into a new object in the same + * bucket. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes an object and its metadata. Deletions are permanent if versioning + * is not enabled for the bucket, or if the `generation` parameter is used. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Cancels an in-progress resumable upload. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.CancelResumableWriteResponse> + cancelResumableWrite(com.google.storage.v2.CancelResumableWriteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelResumableWriteMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Retrieves an object's metadata. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates an object's metadata. + * Equivalent to JSON API's storage.objects.patch. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Retrieves a list of objects matching the criteria. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.ListObjectsResponse> + listObjects(com.google.storage.v2.ListObjectsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListObjectsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Rewrites a source object to a destination object. Optionally overrides + * metadata. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Starts a resumable write. How long the write operation remains valid, and + * what happens when the write operation becomes invalid, are + * service-dependent. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.StartResumableWriteResponse> + startResumableWrite(com.google.storage.v2.StartResumableWriteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartResumableWriteMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Determines the `persisted_size` for an object that is being written, which + * can then be used as the `write_offset` for the next `Write()` call. + * If the object does not exist (i.e., the object has been deleted, or the + * first `Write()` has not yet reached the service), this method returns the + * error `NOT_FOUND`. + * The client **may** call `QueryWriteStatus()` at any time to determine how + * much data has been processed for this object. This is useful if the + * client is buffering data and needs to know which data can be safely + * evicted. For any sequence of `QueryWriteStatus()` calls for a given + * object name, the sequence of returned `persisted_size` values will be + * non-decreasing. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.QueryWriteStatusResponse> + queryWriteStatus(com.google.storage.v2.QueryWriteStatusRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryWriteStatusMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Retrieves the name of a project's Google Cloud Storage service account. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a new HMAC key for the given service account. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.CreateHmacKeyResponse> + createHmacKey(com.google.storage.v2.CreateHmacKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHmacKeyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Deletes a given HMAC key. Key must be in an INACTIVE state. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Gets an existing HMAC key metadata for the given id. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Lists HMAC keys under a given project with the additional filters provided. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.ListHmacKeysResponse> + listHmacKeys(com.google.storage.v2.ListHmacKeysRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHmacKeysMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Updates a given HMAC key state between ACTIVE and INACTIVE. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
- * ## API Overview and Naming Syntax - * The Cloud Storage gRPC API allows applications to read and write data through - * the abstractions of buckets and objects. For a description of these - * abstractions please see https://cloud.google.com/storage/docs. - * Resources are named as follows: - * - Projects are referred to as they are defined by the Resource Manager API, - * using strings like `projects/123456` or `projects/my-string-id`. - * - Buckets are named using string names of the form: - * `projects/{project}/buckets/{bucket}` - * For globally unique buckets, `_` may be substituted for the project. - * - Objects are uniquely identified by their name along with the name of the - * bucket they belong to, as separate strings in this API. For example: - * ReadObjectRequest { - * bucket: 'projects/_/buckets/my-bucket' - * object: 'my-object' - * } - * Note that object names can contain `/` characters, which are treated as - * any other character (no special directory semantics). - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/storage/v2/storage.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class StorageGrpc { - - private StorageGrpc() {} - - public static final String SERVICE_NAME = "google.storage.v2.Storage"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor