diff --git a/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 index 7278c8da60..4034eb12f0 100644 --- a/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 @@ -79,19 +79,595 @@ *
Note: close() needs to be called on the StorageClient object to clean up resources such as * threads. In the example above, try-with-resources is used, which automatically calls close(). * - *
The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *
Method | + *Description | + *Method Variants | + *
---|---|---|
DeleteBucket |
+ * Permanently deletes an empty bucket. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetBucket |
+ * Returns metadata for the specified bucket. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateBucket |
+ * Creates a new bucket. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListBuckets |
+ * Retrieves a list of buckets for a given project. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
LockBucketRetentionPolicy |
+ * Locks retention policy on a bucket. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetIamPolicy |
+ * Gets the IAM policy for a specified bucket. The `resource` field in the request should be `projects/_/buckets/{bucket}`. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
SetIamPolicy |
+ * Updates an IAM policy for the specified bucket. The `resource` field in the request should be `projects/_/buckets/{bucket}`. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
TestIamPermissions |
+ * Tests a set of permissions on the given bucket or object to see which, if any, are held by the caller. The `resource` field in the request should be `projects/_/buckets/{bucket}` for a bucket or `projects/_/buckets/{bucket}/objects/{object}` for an object. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateBucket |
+ * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteNotificationConfig |
+ * Permanently deletes a NotificationConfig. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetNotificationConfig |
+ * View a NotificationConfig. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateNotificationConfig |
+ * Creates a NotificationConfig for a given bucket. These NotificationConfigs, when triggered, publish messages to the specified Pub/Sub topics. See https://cloud.google.com/storage/docs/pubsub-notifications. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListNotificationConfigs |
+ * Retrieves a list of NotificationConfigs for a given bucket. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ComposeObject |
+ * Concatenates a list of existing objects into a new object in the same bucket. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteObject |
+ * Deletes an object and its metadata. + * Deletions are normally permanent when versioning is disabled or whenever the generation parameter is used. However, if soft delete is enabled for the bucket, deleted objects can be restored using RestoreObject until the soft delete retention period has passed. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
RestoreObject |
+ * Restores a soft-deleted object. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CancelResumableWrite |
+ * Cancels an in-progress resumable upload. + * Any attempts to write to the resumable upload after cancelling the upload will fail. + * The behavior for currently in progress write operations is not guaranteed - they could either complete before the cancellation or fail if the cancellation completes first. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetObject |
+ * Retrieves an object's metadata. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ReadObject |
+ * Reads an object's data. |
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateObject |
+ * Updates an object's metadata. Equivalent to JSON API's storage.objects.patch. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
WriteObject |
+ * 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. Even though the data isn't written, it may still incur a performance cost over resuming at the correct write offset. This behavior can make client-side handling simpler in some cases. - Clients must only send data that is a multiple of 256 KiB per message, unless the object is being finished with `finish_write` set to `true`. + * 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. + * Alternatively, the BidiWriteObject operation may be used to write an object with controls over flushing and the ability to fetch the ability to determine the current persisted size. |
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
BidiWriteObject |
+ * Stores a new object and metadata. + * This is similar to the WriteObject call with the added support for manual flushing of persisted state, and the ability to determine current persisted size without closing the stream. + * The client may specify one or both of the `state_lookup` and `flush` fields in each BidiWriteObjectRequest. If `flush` is specified, the data written so far will be persisted to storage. If `state_lookup` is specified, the service will respond with a BidiWriteObjectResponse that contains the persisted size. If both `flush` and `state_lookup` are specified, the flush will always occur before a `state_lookup`, so that both may be set in the same request and the returned state will be the state of the object post-flush. When the stream is closed, a BidiWriteObjectResponse will always be sent to the client, regardless of the value of `state_lookup`. |
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListObjects |
+ * Retrieves a list of objects matching the criteria. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
RewriteObject |
+ * Rewrites a source object to a destination object. Optionally overrides metadata. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
StartResumableWrite |
+ * Starts a resumable write. How long the write operation remains valid, and what happens when the write operation becomes invalid, are service-dependent. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
QueryWriteStatus |
+ * 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. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetServiceAccount |
+ * Retrieves the name of a project's Google Cloud Storage service account. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateHmacKey |
+ * Creates a new HMAC key for the given service account. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteHmacKey |
+ * Deletes a given HMAC key. Key must be in an INACTIVE state. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetHmacKey |
+ * Gets an existing HMAC key metadata for the given id. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListHmacKeys |
+ * Lists HMAC keys under a given project with the additional filters provided. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateHmacKey |
+ * Updates a given HMAC key state between ACTIVE and INACTIVE. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. * @@ -834,9 +1410,8 @@ public final Bucket lockBucketRetentionPolicy(LockBucketRetentionPolicyRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the IAM policy for a specified bucket or object. The `resource` field in the request - * should be `projects/_/buckets/{bucket}` for a bucket or - * `projects/_/buckets/{bucket}/objects/{object}` for an object. + * Gets the IAM policy for a specified bucket. The `resource` field in the request should be + * `projects/_/buckets/{bucket}`. * *
Sample code: * @@ -867,9 +1442,8 @@ public final Policy getIamPolicy(ResourceName resource) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the IAM policy for a specified bucket or object. The `resource` field in the request - * should be `projects/_/buckets/{bucket}` for a bucket or - * `projects/_/buckets/{bucket}/objects/{object}` for an object. + * Gets the IAM policy for a specified bucket. The `resource` field in the request should be + * `projects/_/buckets/{bucket}`. * *
Sample code: * @@ -897,9 +1471,8 @@ public final Policy getIamPolicy(String resource) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the IAM policy for a specified bucket or object. The `resource` field in the request - * should be `projects/_/buckets/{bucket}` for a bucket or - * `projects/_/buckets/{bucket}/objects/{object}` for an object. + * Gets the IAM policy for a specified bucket. The `resource` field in the request should be + * `projects/_/buckets/{bucket}`. * *
Sample code: * @@ -930,9 +1503,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the IAM policy for a specified bucket or object. The `resource` field in the request - * should be `projects/_/buckets/{bucket}` for a bucket or - * `projects/_/buckets/{bucket}/objects/{object}` for an object. + * Gets the IAM policy for a specified bucket. The `resource` field in the request should be + * `projects/_/buckets/{bucket}`. * *
Sample code:
*
@@ -962,9 +1534,8 @@ public final UnaryCallable Sample code:
*
@@ -1000,9 +1571,8 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates an IAM policy for the specified bucket or object. The `resource` field in the request
- * should be `projects/_/buckets/{bucket}` for a bucket or
- * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+ * Updates an IAM policy for the specified bucket. The `resource` field in the request should be
+ * `projects/_/buckets/{bucket}`.
*
* Sample code:
*
@@ -1035,9 +1605,8 @@ public final Policy setIamPolicy(String resource, Policy policy) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates an IAM policy for the specified bucket or object. The `resource` field in the request
- * should be `projects/_/buckets/{bucket}` for a bucket or
- * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+ * Updates an IAM policy for the specified bucket. The `resource` field in the request should be
+ * `projects/_/buckets/{bucket}`.
*
* Sample code:
*
@@ -1069,9 +1638,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates an IAM policy for the specified bucket or object. The `resource` field in the request
- * should be `projects/_/buckets/{bucket}` for a bucket or
- * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+ * Updates an IAM policy for the specified bucket. The `resource` field in the request should be
+ * `projects/_/buckets/{bucket}`.
*
* Sample code:
*
diff --git a/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
index 27a4e5246a..0d32d33921 100644
--- a/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
@@ -475,12 +475,8 @@ public class GrpcStorageStub extends StorageStub {
PathTemplate.create("{bucket=**}");
private static final PathTemplate GET_IAM_POLICY_0_PATH_TEMPLATE =
PathTemplate.create("{bucket=**}");
- private static final PathTemplate GET_IAM_POLICY_1_PATH_TEMPLATE =
- PathTemplate.create("{bucket=projects/*/buckets/*}/objects/**");
private static final PathTemplate SET_IAM_POLICY_0_PATH_TEMPLATE =
PathTemplate.create("{bucket=**}");
- private static final PathTemplate SET_IAM_POLICY_1_PATH_TEMPLATE =
- PathTemplate.create("{bucket=projects/*/buckets/*}/objects/**");
private static final PathTemplate TEST_IAM_PERMISSIONS_0_PATH_TEMPLATE =
PathTemplate.create("{bucket=**}");
private static final PathTemplate TEST_IAM_PERMISSIONS_1_PATH_TEMPLATE =
@@ -631,7 +627,6 @@ protected GrpcStorageStub(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(request.getResource(), "bucket", GET_IAM_POLICY_0_PATH_TEMPLATE);
- builder.add(request.getResource(), "bucket", GET_IAM_POLICY_1_PATH_TEMPLATE);
return builder.build();
})
.build();
@@ -642,7 +637,6 @@ protected GrpcStorageStub(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(request.getResource(), "bucket", SET_IAM_POLICY_0_PATH_TEMPLATE);
- builder.add(request.getResource(), "bucket", SET_IAM_POLICY_1_PATH_TEMPLATE);
return builder.build();
})
.build();
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 ed16ca270f..a1b9f34d25 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
@@ -626,6 +626,15 @@ public StorageStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -973,7 +982,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -1334,6 +1342,15 @@ public UnaryCallSettings.Builder Note: close() needs to be called on the StorageControlClient object to clean up resources such
* as threads. In the example above, try-with-resources is used, which automatically calls close().
*
+ * CreateFolder Creates a new folder. Request object method variants only take one parameter, a request object, which must be constructed before the call. createFolder(CreateFolderRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createFolder(BucketName parent, Folder folder, String folderId)
+ * createFolder(String parent, Folder folder, String folderId)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createFolderCallable()
+ * DeleteFolder Permanently deletes an empty folder. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteFolder(DeleteFolderRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteFolder(FolderName name)
+ * deleteFolder(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteFolderCallable()
+ * GetFolder Returns metadata for the specified folder. Request object method variants only take one parameter, a request object, which must be constructed before the call. getFolder(GetFolderRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getFolder(FolderName name)
+ * getFolder(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getFolderCallable()
+ * ListFolders Retrieves a list of folders for a given bucket. Request object method variants only take one parameter, a request object, which must be constructed before the call. listFolders(ListFoldersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listFolders(BucketName parent)
+ * listFolders(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listFoldersPagedCallable()
+ * listFoldersCallable()
+ * RenameFolder Renames a source folder to a destination folder. During a rename, the source and destination folders are locked until the long running operation completes. Request object method variants only take one parameter, a request object, which must be constructed before the call. renameFolderAsync(RenameFolderRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. renameFolderAsync(FolderName name, String destinationFolderId)
+ * renameFolderAsync(String name, String destinationFolderId)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. renameFolderOperationCallable()
+ * renameFolderCallable()
+ * GetStorageLayout Returns the storage layout configuration for a given bucket. Request object method variants only take one parameter, a request object, which must be constructed before the call. getStorageLayout(GetStorageLayoutRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getStorageLayout(StorageLayoutName name)
+ * getStorageLayout(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getStorageLayoutCallable()
+ * See the individual methods for example code.
*
* Many parameters require resource names to be formatted in a particular way. To assist with
diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java b/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java
index bd0c7b3202..6e630f3bf4 100644
--- a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java
+++ b/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java
@@ -27,6 +27,7 @@
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.api.pathtemplate.PathTemplate;
+import com.google.common.base.Strings;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.GrpcOperationsStub;
import com.google.protobuf.Empty;
@@ -43,6 +44,7 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
+import java.util.UUID;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
@@ -184,6 +186,14 @@ protected GrpcStorageControlStub(
builder.add(request.getParent(), "bucket", CREATE_FOLDER_0_PATH_TEMPLATE);
return builder.build();
})
+ .setRequestMutator(
+ request -> {
+ CreateFolderRequest.Builder requestBuilder = request.toBuilder();
+ if (Strings.isNullOrEmpty(request.getRequestId())) {
+ requestBuilder.setRequestId(UUID.randomUUID().toString());
+ }
+ return requestBuilder.build();
+ })
.build();
GrpcCallSettings
+ *
+ *
*
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
- * Gets the IAM policy for a specified bucket or object.
+ * Gets the IAM policy for a specified bucket.
* The `resource` field in the request should be
- * `projects/_/buckets/{bucket}` for a bucket or
- * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+ * `projects/_/buckets/{bucket}`.
*
*/
default void getIamPolicy(
@@ -1553,10 +1552,9 @@ default void getIamPolicy(
*
*
*
- * Updates an IAM policy for the specified bucket or object.
+ * Updates an IAM policy for the specified bucket.
* The `resource` field in the request should be
- * `projects/_/buckets/{bucket}` for a bucket or
- * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+ * `projects/_/buckets/{bucket}`.
*
*/
default void setIamPolicy(
@@ -2163,10 +2161,9 @@ public void lockBucketRetentionPolicy(
*
*
*
- * Gets the IAM policy for a specified bucket or object.
+ * Gets the IAM policy for a specified bucket.
* The `resource` field in the request should be
- * `projects/_/buckets/{bucket}` for a bucket or
- * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+ * `projects/_/buckets/{bucket}`.
*
*/
public void getIamPolicy(
@@ -2182,10 +2179,9 @@ public void getIamPolicy(
*
*
*
- * Updates an IAM policy for the specified bucket or object.
+ * Updates an IAM policy for the specified bucket.
* The `resource` field in the request should be
- * `projects/_/buckets/{bucket}` for a bucket or
- * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+ * `projects/_/buckets/{bucket}`.
*
*/
public void setIamPolicy(
@@ -2792,10 +2788,9 @@ public com.google.storage.v2.Bucket lockBucketRetentionPolicy(
*
*
*
- * Gets the IAM policy for a specified bucket or object.
+ * Gets the IAM policy for a specified bucket.
* The `resource` field in the request should be
- * `projects/_/buckets/{bucket}` for a bucket or
- * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+ * `projects/_/buckets/{bucket}`.
*
*/
public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) {
@@ -2807,10 +2802,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
*
*
*
- * Updates an IAM policy for the specified bucket or object.
+ * Updates an IAM policy for the specified bucket.
* The `resource` field in the request should be
- * `projects/_/buckets/{bucket}` for a bucket or
- * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+ * `projects/_/buckets/{bucket}`.
*
*/
public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) {
@@ -3253,10 +3247,9 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
*
*
*
- * Gets the IAM policy for a specified bucket or object.
+ * Gets the IAM policy for a specified bucket.
* The `resource` field in the request should be
- * `projects/_/buckets/{bucket}` for a bucket or
- * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+ * `projects/_/buckets/{bucket}`.
*
*/
public com.google.common.util.concurrent.ListenableFuture
- * Updates an IAM policy for the specified bucket or object.
+ * Updates an IAM policy for the specified bucket.
* The `resource` field in the request should be
- * `projects/_/buckets/{bucket}` for a bucket or
- * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+ * `projects/_/buckets/{bucket}`.
*
*/
public com.google.common.util.concurrent.ListenableFuturebool state_lookup = 7;
@@ -458,7 +461,9 @@ public boolean getStateLookup() {
* Persists data written on the stream, up to and including the current
* message, to permanent storage. This option should be used sparingly as it
* may reduce performance. Ongoing writes will periodically be persisted on
- * the server even when `flush` is not set.
+ * the server even when `flush` is not set. This field is ignored if
+ * `finish_write` is set to true since there's no need to checkpoint or flush
+ * if this message completes the write.
*
*
* bool flush = 8;
@@ -508,7 +513,7 @@ public boolean getFinishWrite() {
*/
@java.lang.Override
public boolean hasCommonObjectRequestParams() {
- return commonObjectRequestParams_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -570,7 +575,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (dataCase_ == 4) {
output.writeMessage(4, (com.google.storage.v2.ChecksummedData) data_);
}
- if (objectChecksums_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(6, getObjectChecksums());
}
if (stateLookup_ != false) {
@@ -582,7 +587,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (finishWrite_ != false) {
output.writeBool(9, finishWrite_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(10, getCommonObjectRequestParams());
}
getUnknownFields().writeTo(output);
@@ -610,7 +615,7 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
4, (com.google.storage.v2.ChecksummedData) data_);
}
- if (objectChecksums_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getObjectChecksums());
}
if (stateLookup_ != false) {
@@ -622,7 +627,7 @@ public int getSerializedSize() {
if (finishWrite_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, finishWrite_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
10, getCommonObjectRequestParams());
@@ -851,10 +856,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.BidiWriteObjectRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getObjectChecksumsFieldBuilder();
+ getCommonObjectRequestParamsFieldBuilder();
+ }
}
@java.lang.Override
@@ -925,9 +940,11 @@ private void buildPartial0(com.google.storage.v2.BidiWriteObjectRequest result)
if (((from_bitField0_ & 0x00000004) != 0)) {
result.writeOffset_ = writeOffset_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.objectChecksums_ =
objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.stateLookup_ = stateLookup_;
@@ -943,7 +960,9 @@ private void buildPartial0(com.google.storage.v2.BidiWriteObjectRequest result)
commonObjectRequestParamsBuilder_ == null
? commonObjectRequestParams_
: commonObjectRequestParamsBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
+ result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.storage.v2.BidiWriteObjectRequest result) {
@@ -1960,8 +1979,10 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
} else {
objectChecksumsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000010;
- onChanged();
+ if (objectChecksums_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
return this;
}
/**
@@ -2064,7 +2085,8 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
* covers all the bytes the server has persisted thus far and can be used to
* decide what data is safe for the client to drop. Note that the object's
* current size reported by the BidiWriteObjectResponse may lag behind the
- * number of bytes written by the client.
+ * number of bytes written by the client. This field is ignored if
+ * `finish_write` is set to true.
*
*
* bool state_lookup = 7;
@@ -2085,7 +2107,8 @@ public boolean getStateLookup() {
* covers all the bytes the server has persisted thus far and can be used to
* decide what data is safe for the client to drop. Note that the object's
* current size reported by the BidiWriteObjectResponse may lag behind the
- * number of bytes written by the client.
+ * number of bytes written by the client. This field is ignored if
+ * `finish_write` is set to true.
*
*
* bool state_lookup = 7;
@@ -2110,7 +2133,8 @@ public Builder setStateLookup(boolean value) {
* covers all the bytes the server has persisted thus far and can be used to
* decide what data is safe for the client to drop. Note that the object's
* current size reported by the BidiWriteObjectResponse may lag behind the
- * number of bytes written by the client.
+ * number of bytes written by the client. This field is ignored if
+ * `finish_write` is set to true.
*
*
* bool state_lookup = 7;
@@ -2132,7 +2156,9 @@ public Builder clearStateLookup() {
* Persists data written on the stream, up to and including the current
* message, to permanent storage. This option should be used sparingly as it
* may reduce performance. Ongoing writes will periodically be persisted on
- * the server even when `flush` is not set.
+ * the server even when `flush` is not set. This field is ignored if
+ * `finish_write` is set to true since there's no need to checkpoint or flush
+ * if this message completes the write.
*
*
* bool flush = 8;
@@ -2150,7 +2176,9 @@ public boolean getFlush() {
* Persists data written on the stream, up to and including the current
* message, to permanent storage. This option should be used sparingly as it
* may reduce performance. Ongoing writes will periodically be persisted on
- * the server even when `flush` is not set.
+ * the server even when `flush` is not set. This field is ignored if
+ * `finish_write` is set to true since there's no need to checkpoint or flush
+ * if this message completes the write.
*
*
* bool flush = 8;
@@ -2172,7 +2200,9 @@ public Builder setFlush(boolean value) {
* Persists data written on the stream, up to and including the current
* message, to permanent storage. This option should be used sparingly as it
* may reduce performance. Ongoing writes will periodically be persisted on
- * the server even when `flush` is not set.
+ * the server even when `flush` is not set. This field is ignored if
+ * `finish_write` is set to true since there's no need to checkpoint or flush
+ * if this message completes the write.
*
*
* bool flush = 8;
@@ -2360,8 +2390,10 @@ public Builder mergeCommonObjectRequestParams(
} else {
commonObjectRequestParamsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000100;
- onChanged();
+ if (commonObjectRequestParams_ != null) {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java
index e263f8fcbd..25eb60d126 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface BidiWriteObjectRequestOrBuilder
@@ -218,7 +219,8 @@ public interface BidiWriteObjectRequestOrBuilder
* covers all the bytes the server has persisted thus far and can be used to
* decide what data is safe for the client to drop. Note that the object's
* current size reported by the BidiWriteObjectResponse may lag behind the
- * number of bytes written by the client.
+ * number of bytes written by the client. This field is ignored if
+ * `finish_write` is set to true.
*
*
* bool state_lookup = 7;
@@ -234,7 +236,9 @@ public interface BidiWriteObjectRequestOrBuilder
* Persists data written on the stream, up to and including the current
* message, to permanent storage. This option should be used sparingly as it
* may reduce performance. Ongoing writes will periodically be persisted on
- * the server even when `flush` is not set.
+ * the server even when `flush` is not set. This field is ignored if
+ * `finish_write` is set to true since there's no need to checkpoint or flush
+ * if this message completes the write.
*
*
* bool flush = 8;
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java
index 0959ebc0e8..ecc93d8293 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
index 273df469bc..4677316445 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface BidiWriteObjectResponseOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java
index 5da51239ce..faca15fdac 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -63,7 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@SuppressWarnings({"rawtypes"})
@java.lang.Override
- protected com.google.protobuf.MapField internalGetMapField(int number) {
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
switch (number) {
case 15:
return internalGetLabels();
@@ -3128,6 +3130,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder.class);
}
+ private int bitField0_;
public static final int ENABLED_FIELD_NUMBER = 1;
private boolean enabled_ = false;
/**
@@ -3164,7 +3167,7 @@ public boolean getEnabled() {
*/
@java.lang.Override
public boolean hasLockTime() {
- return lockTime_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -3218,7 +3221,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (enabled_ != false) {
output.writeBool(1, enabled_);
}
- if (lockTime_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getLockTime());
}
getUnknownFields().writeTo(output);
@@ -3233,7 +3236,7 @@ public int getSerializedSize() {
if (enabled_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_);
}
- if (lockTime_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLockTime());
}
size += getUnknownFields().getSerializedSize();
@@ -3410,10 +3413,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
// Construct using
// com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getLockTimeFieldBuilder();
+ }
}
@java.lang.Override
@@ -3468,9 +3480,12 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000001) != 0)) {
result.enabled_ = enabled_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lockTime_ = lockTimeBuilder_ == null ? lockTime_ : lockTimeBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -3757,8 +3772,10 @@ public Builder mergeLockTime(com.google.protobuf.Timestamp value) {
} else {
lockTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+ if (lockTime_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
@@ -3917,6 +3934,7 @@ public com.google.protobuf.Parser
- * The starting offset of the object data.
+ * The starting offset of the object data. This value is inclusive.
*
*
* int64 start = 1;
@@ -84,7 +85,7 @@ public long getStart() {
*
*
*
- * The ending offset of the object data.
+ * The ending offset of the object data. This value is exclusive.
*
*
* int64 end = 2;
@@ -499,7 +500,7 @@ public Builder mergeFrom(
*
*
*
- * The starting offset of the object data.
+ * The starting offset of the object data. This value is inclusive.
*
*
* int64 start = 1;
@@ -514,7 +515,7 @@ public long getStart() {
*
*
*
- * The starting offset of the object data.
+ * The starting offset of the object data. This value is inclusive.
*
*
* int64 start = 1;
@@ -533,7 +534,7 @@ public Builder setStart(long value) {
*
*
*
- * The starting offset of the object data.
+ * The starting offset of the object data. This value is inclusive.
*
*
* int64 start = 1;
@@ -552,7 +553,7 @@ public Builder clearStart() {
*
*
*
- * The ending offset of the object data.
+ * The ending offset of the object data. This value is exclusive.
*
*
* int64 end = 2;
@@ -567,7 +568,7 @@ public long getEnd() {
*
*
*
- * The ending offset of the object data.
+ * The ending offset of the object data. This value is exclusive.
*
*
* int64 end = 2;
@@ -586,7 +587,7 @@ public Builder setEnd(long value) {
*
*
*
- * The ending offset of the object data.
+ * The ending offset of the object data. This value is exclusive.
*
*
* int64 end = 2;
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java
index da81df1ddf..f85ddc28df 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ContentRangeOrBuilder
@@ -27,7 +28,7 @@ public interface ContentRangeOrBuilder
*
*
*
- * The starting offset of the object data.
+ * The starting offset of the object data. This value is inclusive.
*
*
* int64 start = 1;
@@ -40,7 +41,7 @@ public interface ContentRangeOrBuilder
*
*
*
- * The ending offset of the object data.
+ * The ending offset of the object data. This value is exclusive.
*
*
* int64 end = 2;
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java
index cff9843baa..95f1d7555a 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.storage.v2.CreateBucketRequest.Builder.class);
}
+ private int bitField0_;
public static final int PARENT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -141,7 +143,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*/
@java.lang.Override
public boolean hasBucket() {
- return bucket_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -366,7 +368,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
- if (bucket_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getBucket());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketId_)) {
@@ -390,7 +392,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
- if (bucket_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBucket());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketId_)) {
@@ -580,10 +582,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.CreateBucketRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getBucketFieldBuilder();
+ }
}
@java.lang.Override
@@ -638,8 +649,10 @@ private void buildPartial0(com.google.storage.v2.CreateBucketRequest result) {
if (((from_bitField0_ & 0x00000001) != 0)) {
result.parent_ = parent_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.bucketId_ = bucketId_;
@@ -650,6 +663,7 @@ private void buildPartial0(com.google.storage.v2.CreateBucketRequest result) {
if (((from_bitField0_ & 0x00000010) != 0)) {
result.predefinedDefaultObjectAcl_ = predefinedDefaultObjectAcl_;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -1041,8 +1055,10 @@ public Builder mergeBucket(com.google.storage.v2.Bucket value) {
} else {
bucketBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+ if (bucket_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java
index f626f48955..34ac8754dd 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface CreateBucketRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java
index 619a750496..b7fb2a1e4a 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java
index d35e121799..6e190c0126 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface CreateHmacKeyRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java
index d893e943dd..15ecdafe29 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.storage.v2.CreateHmacKeyResponse.Builder.class);
}
+ private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private com.google.storage.v2.HmacKeyMetadata metadata_;
/**
@@ -77,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasMetadata() {
- return metadata_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -145,7 +147,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (metadata_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getMetadata());
}
if (!secretKeyBytes_.isEmpty()) {
@@ -160,7 +162,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (metadata_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata());
}
if (!secretKeyBytes_.isEmpty()) {
@@ -333,10 +335,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.CreateHmacKeyResponse.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getMetadataFieldBuilder();
+ }
}
@java.lang.Override
@@ -385,12 +396,15 @@ public com.google.storage.v2.CreateHmacKeyResponse buildPartial() {
private void buildPartial0(com.google.storage.v2.CreateHmacKeyResponse result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.secretKeyBytes_ = secretKeyBytes_;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -603,8 +617,10 @@ public Builder mergeMetadata(com.google.storage.v2.HmacKeyMetadata value) {
} else {
metadataBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (metadata_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java
index 1dbe0d5467..efa4aa0ba4 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface CreateHmacKeyResponseOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java
index e6258c8719..8d7c5bb8d2 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.storage.v2.CreateNotificationConfigRequest.Builder.class);
}
+ private int bitField0_;
public static final int PARENT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -135,7 +137,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*/
@java.lang.Override
public boolean hasNotificationConfig() {
- return notificationConfig_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -191,7 +193,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
- if (notificationConfig_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getNotificationConfig());
}
getUnknownFields().writeTo(output);
@@ -206,7 +208,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
- if (notificationConfig_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNotificationConfig());
}
size += getUnknownFields().getSerializedSize();
@@ -377,10 +379,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.CreateNotificationConfigRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getNotificationConfigFieldBuilder();
+ }
}
@java.lang.Override
@@ -432,12 +443,15 @@ private void buildPartial0(com.google.storage.v2.CreateNotificationConfigRequest
if (((from_bitField0_ & 0x00000001) != 0)) {
result.parent_ = parent_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.notificationConfig_ =
notificationConfigBuilder_ == null
? notificationConfig_
: notificationConfigBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -782,8 +796,10 @@ public Builder mergeNotificationConfig(com.google.storage.v2.NotificationConfig
} else {
notificationConfigBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+ if (notificationConfig_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java
index 1ef0465349..7b4ec70aaf 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface CreateNotificationConfigRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java
index de15dd6a16..d6f5da1d26 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java
index 4effd943b4..9822f680ac 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface CustomerEncryptionOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java
index 420d964461..d47d6858f1 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java
index fa645400a8..c62cc0d345 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface DeleteBucketRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java
index 7361ab0de8..03efca0bdf 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java
index 184aff6b63..0bcff6a226 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface DeleteHmacKeyRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java
index 1d2062f8b9..b0a1229387 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java
index 1f118d6166..34c0255038 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface DeleteNotificationConfigRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java
index d704ca0794..7a512521b9 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -355,7 +356,7 @@ public long getIfMetagenerationNotMatch() {
*/
@java.lang.Override
public boolean hasCommonObjectRequestParams() {
- return commonObjectRequestParams_ != null;
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -426,7 +427,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(8, ifMetagenerationNotMatch_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(10, getCommonObjectRequestParams());
}
getUnknownFields().writeTo(output);
@@ -459,7 +460,7 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, ifMetagenerationNotMatch_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000010) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
10, getCommonObjectRequestParams());
@@ -671,10 +672,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.DeleteObjectRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getCommonObjectRequestParamsFieldBuilder();
+ }
}
@java.lang.Override
@@ -760,6 +770,7 @@ private void buildPartial0(com.google.storage.v2.DeleteObjectRequest result) {
commonObjectRequestParamsBuilder_ == null
? commonObjectRequestParams_
: commonObjectRequestParamsBuilder_.build();
+ to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@@ -1625,8 +1636,10 @@ public Builder mergeCommonObjectRequestParams(
} else {
commonObjectRequestParamsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000080;
- onChanged();
+ if (commonObjectRequestParams_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java
index f746d4410c..ff1b26eeac 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface DeleteObjectRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java
index 6de2a5ae7d..7c221513b4 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -1049,8 +1050,10 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
} else {
readMaskBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000008;
- onChanged();
+ if (readMask_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java
index 85cdbc5738..322ff10644 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface GetBucketRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
index 2ebd135484..49a48fe993 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java
index 88d37d0e7f..634982db7d 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface GetHmacKeyRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java
index b29323e6d7..f7eddbb181 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java
index 6005568821..5e9802702c 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface GetNotificationConfigRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java
index 99426e44ab..f4efc51529 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -383,7 +384,7 @@ public long getIfMetagenerationNotMatch() {
*/
@java.lang.Override
public boolean hasCommonObjectRequestParams() {
- return commonObjectRequestParams_ != null;
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
*
@@ -437,7 +438,7 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar
*/
@java.lang.Override
public boolean hasReadMask() {
- return ((bitField0_ & 0x00000020) != 0);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
*
@@ -509,10 +510,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(7, ifMetagenerationNotMatch_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(8, getCommonObjectRequestParams());
}
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(10, getReadMask());
}
if (((bitField0_ & 0x00000001) != 0)) {
@@ -548,12 +549,12 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifMetagenerationNotMatch_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
8, getCommonObjectRequestParams());
}
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getReadMask());
}
if (((bitField0_ & 0x00000001) != 0)) {
@@ -889,10 +890,11 @@ private void buildPartial0(com.google.storage.v2.GetObjectRequest result) {
commonObjectRequestParamsBuilder_ == null
? commonObjectRequestParams_
: commonObjectRequestParamsBuilder_.build();
+ to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build();
- to_bitField0_ |= 0x00000020;
+ to_bitField0_ |= 0x00000040;
}
result.bitField0_ |= to_bitField0_;
}
@@ -1834,8 +1836,10 @@ public Builder mergeCommonObjectRequestParams(
} else {
commonObjectRequestParamsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000100;
- onChanged();
+ if (commonObjectRequestParams_ != null) {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
return this;
}
/**
@@ -2032,8 +2036,10 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
} else {
readMaskBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000200;
- onChanged();
+ if (readMask_ != null) {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
index 45b34a2d25..ecf25653e8 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface GetObjectRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
index 14506aa3e4..3819b8d186 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java
index be3deb7152..63891d701f 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface GetServiceAccountRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java
index 49e782f61a..4f6c090d26 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.storage.v2.HmacKeyMetadata.Builder.class);
}
+ private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -352,7 +354,7 @@ public com.google.protobuf.ByteString getStateBytes() {
*/
@java.lang.Override
public boolean hasCreateTime() {
- return createTime_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -401,7 +403,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*/
@java.lang.Override
public boolean hasUpdateTime() {
- return updateTime_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -514,10 +516,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, state_);
}
- if (createTime_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(6, getCreateTime());
}
- if (updateTime_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(7, getUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
@@ -547,10 +549,10 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, state_);
}
- if (createTime_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime());
}
- if (updateTime_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
@@ -744,10 +746,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.HmacKeyMetadata.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getCreateTimeFieldBuilder();
+ getUpdateTimeFieldBuilder();
+ }
}
@java.lang.Override
@@ -821,15 +833,19 @@ private void buildPartial0(com.google.storage.v2.HmacKeyMetadata result) {
if (((from_bitField0_ & 0x00000010) != 0)) {
result.state_ = state_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.etag_ = etag_;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -1683,8 +1699,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
} else {
createTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000020;
- onChanged();
+ if (createTime_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
return this;
}
/**
@@ -1884,8 +1902,10 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
} else {
updateTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000040;
- onChanged();
+ if (updateTime_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java
index 9544912199..0070c3beec 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface HmacKeyMetadataOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java
index fe4c7ff4e9..80ed57b2e8 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -1263,8 +1264,10 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
} else {
readMaskBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000010;
- onChanged();
+ if (readMask_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java
index c51a104f90..e0f513de62 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ListBucketsRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
index ac23896f3c..479d8e5004 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java
index 926e975043..ba54e45019 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ListBucketsResponseOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java
index 0349cec433..4bb92e4bb8 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java
index 820453db94..7b98cab439 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ListHmacKeysRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java
index 1dec8bbaa7..6d7469ac8a 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java
index 39bc3f176f..bb0e3da58b 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ListHmacKeysResponseOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java
index 591c8ac417..191a58ee0b 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java
index 67c71c39aa..6b7b7789d7 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ListNotificationConfigsRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java
index 8f3d92f77d..71040f24c0 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java
index 9c8e9954dd..04a105ca44 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ListNotificationConfigsResponseOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java
index f20e2c5016..043db519fd 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -1973,8 +1974,10 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
} else {
readMaskBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000080;
- onChanged();
+ if (readMask_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java
index 928e8fb2af..34a381657c 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ListObjectsRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java
index 3a75847a8f..0e845ba1dc 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java
index 53bdacfa40..36d17c565d 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ListObjectsResponseOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java
index 8d04f29691..f3a53269d0 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java
index 0d0afef1a8..889ceb8ff6 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface LockBucketRetentionPolicyRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java
index 2199bda4c4..0a0e5a5951 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -59,7 +60,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@SuppressWarnings({"rawtypes"})
@java.lang.Override
- protected com.google.protobuf.MapField internalGetMapField(int number) {
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
switch (number) {
case 4:
return internalGetCustomAttributes();
@@ -771,7 +773,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapField internalGetMapField(int number) {
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
switch (number) {
case 4:
return internalGetCustomAttributes();
@@ -781,7 +784,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
+ int number) {
switch (number) {
case 4:
return internalGetMutableCustomAttributes();
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java
index 7684b36963..8133f4e80e 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface NotificationConfigOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java
index 58d05961d0..7748d8103f 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -63,7 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@SuppressWarnings({"rawtypes"})
@java.lang.Override
- protected com.google.protobuf.MapField internalGetMapField(int number) {
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
switch (number) {
case 22:
return internalGetMetadata();
@@ -681,7 +683,7 @@ public com.google.protobuf.ByteString getContentLanguageBytes() {
*/
@java.lang.Override
public boolean hasDeleteTime() {
- return deleteTime_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -789,7 +791,7 @@ public com.google.protobuf.ByteString getContentTypeBytes() {
*/
@java.lang.Override
public boolean hasCreateTime() {
- return createTime_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -859,7 +861,7 @@ public int getComponentCount() {
*/
@java.lang.Override
public boolean hasChecksums() {
- return checksums_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -921,7 +923,7 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() {
*/
@java.lang.Override
public boolean hasUpdateTime() {
- return updateTime_ != null;
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -1035,7 +1037,7 @@ public com.google.protobuf.ByteString getKmsKeyBytes() {
*/
@java.lang.Override
public boolean hasUpdateStorageClassTime() {
- return updateStorageClassTime_ != null;
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -1119,7 +1121,7 @@ public boolean getTemporaryHold() {
*/
@java.lang.Override
public boolean hasRetentionExpireTime() {
- return retentionExpireTime_ != null;
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
*
@@ -1293,7 +1295,7 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
*/
@java.lang.Override
public boolean hasEventBasedHold() {
- return ((bitField0_ & 0x00000001) != 0);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
*
@@ -1337,7 +1339,7 @@ public boolean getEventBasedHold() {
*/
@java.lang.Override
public boolean hasOwner() {
- return owner_ != null;
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
*
@@ -1386,7 +1388,7 @@ public com.google.storage.v2.OwnerOrBuilder getOwnerOrBuilder() {
*/
@java.lang.Override
public boolean hasCustomerEncryption() {
- return customerEncryption_ != null;
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
*
@@ -1438,7 +1440,7 @@ public com.google.storage.v2.CustomerEncryptionOrBuilder getCustomerEncryptionOr
*/
@java.lang.Override
public boolean hasCustomTime() {
- return customTime_ != null;
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
*
@@ -1516,48 +1518,48 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentLanguage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, contentLanguage_);
}
- if (deleteTime_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(12, getDeleteTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, contentType_);
}
- if (createTime_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(14, getCreateTime());
}
if (componentCount_ != 0) {
output.writeInt32(15, componentCount_);
}
- if (checksums_ != null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(16, getChecksums());
}
- if (updateTime_ != null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(17, getUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, kmsKey_);
}
- if (updateStorageClassTime_ != null) {
+ if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(19, getUpdateStorageClassTime());
}
if (temporaryHold_ != false) {
output.writeBool(20, temporaryHold_);
}
- if (retentionExpireTime_ != null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(21, getRetentionExpireTime());
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 22);
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(23, eventBasedHold_);
}
- if (owner_ != null) {
+ if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(24, getOwner());
}
- if (customerEncryption_ != null) {
+ if (((bitField0_ & 0x00000100) != 0)) {
output.writeMessage(25, getCustomerEncryption());
}
- if (customTime_ != null) {
+ if (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(26, getCustomTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
@@ -1605,35 +1607,35 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentLanguage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, contentLanguage_);
}
- if (deleteTime_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDeleteTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, contentType_);
}
- if (createTime_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCreateTime());
}
if (componentCount_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(15, componentCount_);
}
- if (checksums_ != null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getChecksums());
}
- if (updateTime_ != null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, kmsKey_);
}
- if (updateStorageClassTime_ != null) {
+ if (((bitField0_ & 0x00000010) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(19, getUpdateStorageClassTime());
}
if (temporaryHold_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, temporaryHold_);
}
- if (retentionExpireTime_ != null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(21, getRetentionExpireTime());
}
@@ -1647,16 +1649,16 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, metadata__);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, eventBasedHold_);
}
- if (owner_ != null) {
+ if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getOwner());
}
- if (customerEncryption_ != null) {
+ if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getCustomerEncryption());
}
- if (customTime_ != null) {
+ if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getCustomTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
@@ -1940,7 +1942,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapField internalGetMapField(int number) {
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
switch (number) {
case 22:
return internalGetMetadata();
@@ -1950,7 +1953,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
+ int number) {
switch (number) {
case 22:
return internalGetMutableMetadata();
@@ -1969,10 +1973,28 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
}
// Construct using com.google.storage.v2.Object.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getAclFieldBuilder();
+ getDeleteTimeFieldBuilder();
+ getCreateTimeFieldBuilder();
+ getChecksumsFieldBuilder();
+ getUpdateTimeFieldBuilder();
+ getUpdateStorageClassTimeFieldBuilder();
+ getRetentionExpireTimeFieldBuilder();
+ getOwnerFieldBuilder();
+ getCustomerEncryptionFieldBuilder();
+ getCustomTimeFieldBuilder();
+ }
}
@java.lang.Override
@@ -2128,23 +2150,28 @@ private void buildPartial0(com.google.storage.v2.Object result) {
if (((from_bitField0_ & 0x00000800) != 0)) {
result.contentLanguage_ = contentLanguage_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00001000) != 0)) {
result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.contentType_ = contentType_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.componentCount_ = componentCount_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.checksums_ = checksumsBuilder_ == null ? checksums_ : checksumsBuilder_.build();
+ to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+ to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.kmsKey_ = kmsKey_;
@@ -2154,6 +2181,7 @@ private void buildPartial0(com.google.storage.v2.Object result) {
updateStorageClassTimeBuilder_ == null
? updateStorageClassTime_
: updateStorageClassTimeBuilder_.build();
+ to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.temporaryHold_ = temporaryHold_;
@@ -2163,27 +2191,30 @@ private void buildPartial0(com.google.storage.v2.Object result) {
retentionExpireTimeBuilder_ == null
? retentionExpireTime_
: retentionExpireTimeBuilder_.build();
+ to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00400000) != 0)) {
result.metadata_ = internalGetMetadata();
result.metadata_.makeImmutable();
}
- int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00800000) != 0)) {
result.eventBasedHold_ = eventBasedHold_;
- to_bitField0_ |= 0x00000001;
+ to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x01000000) != 0)) {
result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build();
+ to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x02000000) != 0)) {
result.customerEncryption_ =
customerEncryptionBuilder_ == null
? customerEncryption_
: customerEncryptionBuilder_.build();
+ to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x04000000) != 0)) {
result.customTime_ = customTimeBuilder_ == null ? customTime_ : customTimeBuilder_.build();
+ to_bitField0_ |= 0x00000200;
}
result.bitField0_ |= to_bitField0_;
}
@@ -4188,8 +4219,10 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) {
} else {
deleteTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00001000;
- onChanged();
+ if (deleteTime_ != null) {
+ bitField0_ |= 0x00001000;
+ onChanged();
+ }
return this;
}
/**
@@ -4514,8 +4547,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
} else {
createTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00004000;
- onChanged();
+ if (createTime_ != null) {
+ bitField0_ |= 0x00004000;
+ onChanged();
+ }
return this;
}
/**
@@ -4776,8 +4811,10 @@ public Builder mergeChecksums(com.google.storage.v2.ObjectChecksums value) {
} else {
checksumsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00010000;
- onChanged();
+ if (checksums_ != null) {
+ bitField0_ |= 0x00010000;
+ onChanged();
+ }
return this;
}
/**
@@ -5006,8 +5043,10 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
} else {
updateTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00020000;
- onChanged();
+ if (updateTime_ != null) {
+ bitField0_ |= 0x00020000;
+ onChanged();
+ }
return this;
}
/**
@@ -5344,8 +5383,10 @@ public Builder mergeUpdateStorageClassTime(com.google.protobuf.Timestamp value)
} else {
updateStorageClassTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00080000;
- onChanged();
+ if (updateStorageClassTime_ != null) {
+ bitField0_ |= 0x00080000;
+ onChanged();
+ }
return this;
}
/**
@@ -5634,8 +5675,10 @@ public Builder mergeRetentionExpireTime(com.google.protobuf.Timestamp value) {
} else {
retentionExpireTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00200000;
- onChanged();
+ if (retentionExpireTime_ != null) {
+ bitField0_ |= 0x00200000;
+ onChanged();
+ }
return this;
}
/**
@@ -6121,8 +6164,10 @@ public Builder mergeOwner(com.google.storage.v2.Owner value) {
} else {
ownerBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x01000000;
- onChanged();
+ if (owner_ != null) {
+ bitField0_ |= 0x01000000;
+ onChanged();
+ }
return this;
}
/**
@@ -6317,8 +6362,10 @@ public Builder mergeCustomerEncryption(com.google.storage.v2.CustomerEncryption
} else {
customerEncryptionBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x02000000;
- onChanged();
+ if (customerEncryption_ != null) {
+ bitField0_ |= 0x02000000;
+ onChanged();
+ }
return this;
}
/**
@@ -6504,8 +6551,10 @@ public Builder mergeCustomTime(com.google.protobuf.Timestamp value) {
} else {
customTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x04000000;
- onChanged();
+ if (customTime_ != null) {
+ bitField0_ |= 0x04000000;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java
index e5d8d2dcc8..89f0076a9b 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -69,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.storage.v2.ObjectAccessControl.Builder.class);
}
+ private int bitField0_;
public static final int ROLE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -534,7 +536,7 @@ public com.google.protobuf.ByteString getDomainBytes() {
*/
@java.lang.Override
public boolean hasProjectTeam() {
- return projectTeam_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -601,7 +603,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, domain_);
}
- if (projectTeam_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(7, getProjectTeam());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
@@ -637,7 +639,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_);
}
- if (projectTeam_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getProjectTeam());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
@@ -834,10 +836,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.ObjectAccessControl.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getProjectTeamFieldBuilder();
+ }
}
@java.lang.Override
@@ -917,10 +928,13 @@ private void buildPartial0(com.google.storage.v2.ObjectAccessControl result) {
if (((from_bitField0_ & 0x00000080) != 0)) {
result.domain_ = domain_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000100) != 0)) {
result.projectTeam_ =
projectTeamBuilder_ == null ? projectTeam_ : projectTeamBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -2165,8 +2179,10 @@ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) {
} else {
projectTeamBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000100;
- onChanged();
+ if (projectTeam_ != null) {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java
index ff444643f1..5c9a4196d5 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ObjectAccessControlOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java
index 50e15ab395..b14c58b699 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java
index 81db876211..27c07d87c2 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ObjectChecksumsOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java
index 8bbf7801f3..ce96b444c2 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ObjectOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java
index 96b5a50330..3cf0d0396c 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java
index 0cfbeb1148..60155b5978 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface OwnerOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java
index 327cdef4fd..d7d6fc4372 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java
index bf4ae60213..4fc6b346e6 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ProjectTeamOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java
index 0a16b8cb86..6f3c4cce6f 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.storage.v2.QueryWriteStatusRequest.Builder.class);
}
+ private int bitField0_;
public static final int UPLOAD_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -130,7 +132,7 @@ public com.google.protobuf.ByteString getUploadIdBytes() {
*/
@java.lang.Override
public boolean hasCommonObjectRequestParams() {
- return commonObjectRequestParams_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -183,7 +185,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getCommonObjectRequestParams());
}
getUnknownFields().writeTo(output);
@@ -198,7 +200,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadId_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, getCommonObjectRequestParams());
@@ -371,10 +373,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.QueryWriteStatusRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getCommonObjectRequestParamsFieldBuilder();
+ }
}
@java.lang.Override
@@ -426,12 +437,15 @@ private void buildPartial0(com.google.storage.v2.QueryWriteStatusRequest result)
if (((from_bitField0_ & 0x00000001) != 0)) {
result.uploadId_ = uploadId_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.commonObjectRequestParams_ =
commonObjectRequestParamsBuilder_ == null
? commonObjectRequestParams_
: commonObjectRequestParamsBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -762,8 +776,10 @@ public Builder mergeCommonObjectRequestParams(
} else {
commonObjectRequestParamsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+ if (commonObjectRequestParams_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java
index 9807a260e6..c35bb3baf0 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface QueryWriteStatusRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java
index 6fcbefe3d7..61ee8a83d9 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java
index 31e1b79742..3ba839ad5d 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface QueryWriteStatusResponseOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
index fae2e1c5cc..be84b61983 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -400,7 +401,7 @@ public long getIfMetagenerationNotMatch() {
*/
@java.lang.Override
public boolean hasCommonObjectRequestParams() {
- return commonObjectRequestParams_ != null;
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -455,7 +456,7 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar
*/
@java.lang.Override
public boolean hasReadMask() {
- return ((bitField0_ & 0x00000010) != 0);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
*
@@ -535,10 +536,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(9, ifMetagenerationNotMatch_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(10, getCommonObjectRequestParams());
}
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(12, getReadMask());
}
getUnknownFields().writeTo(output);
@@ -577,12 +578,12 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, ifMetagenerationNotMatch_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000010) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
10, getCommonObjectRequestParams());
}
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getReadMask());
}
size += getUnknownFields().getSerializedSize();
@@ -916,10 +917,11 @@ private void buildPartial0(com.google.storage.v2.ReadObjectRequest result) {
commonObjectRequestParamsBuilder_ == null
? commonObjectRequestParams_
: commonObjectRequestParamsBuilder_.build();
+ to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build();
- to_bitField0_ |= 0x00000010;
+ to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@@ -1950,8 +1952,10 @@ public Builder mergeCommonObjectRequestParams(
} else {
commonObjectRequestParamsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000200;
- onChanged();
+ if (commonObjectRequestParams_ != null) {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
return this;
}
/**
@@ -2153,8 +2157,10 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
} else {
readMaskBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000400;
- onChanged();
+ if (readMask_ != null) {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
index 2ef4fe8a8e..432a4da5d9 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ReadObjectRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java
index 0150ff5e09..8af403a236 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.storage.v2.ReadObjectResponse.Builder.class);
}
+ private int bitField0_;
public static final int CHECKSUMMED_DATA_FIELD_NUMBER = 1;
private com.google.storage.v2.ChecksummedData checksummedData_;
/**
@@ -78,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasChecksummedData() {
- return checksummedData_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -136,7 +138,7 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
*/
@java.lang.Override
public boolean hasObjectChecksums() {
- return objectChecksums_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -192,7 +194,7 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
*/
@java.lang.Override
public boolean hasContentRange() {
- return contentRange_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -247,7 +249,7 @@ public com.google.storage.v2.ContentRangeOrBuilder getContentRangeOrBuilder() {
*/
@java.lang.Override
public boolean hasMetadata() {
- return metadata_ != null;
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -294,16 +296,16 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (checksummedData_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getChecksummedData());
}
- if (objectChecksums_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getObjectChecksums());
}
- if (contentRange_ != null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getContentRange());
}
- if (metadata_ != null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getMetadata());
}
getUnknownFields().writeTo(output);
@@ -315,16 +317,16 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (checksummedData_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getChecksummedData());
}
- if (objectChecksums_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getObjectChecksums());
}
- if (contentRange_ != null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getContentRange());
}
- if (metadata_ != null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata());
}
size += getUnknownFields().getSerializedSize();
@@ -514,10 +516,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.ReadObjectResponse.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getChecksummedDataFieldBuilder();
+ getObjectChecksumsFieldBuilder();
+ getContentRangeFieldBuilder();
+ getMetadataFieldBuilder();
+ }
}
@java.lang.Override
@@ -580,21 +594,27 @@ public com.google.storage.v2.ReadObjectResponse buildPartial() {
private void buildPartial0(com.google.storage.v2.ReadObjectResponse result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.checksummedData_ =
checksummedDataBuilder_ == null ? checksummedData_ : checksummedDataBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.objectChecksums_ =
objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.contentRange_ =
contentRangeBuilder_ == null ? contentRange_ : contentRangeBuilder_.build();
+ to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+ to_bitField0_ |= 0x00000008;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -841,8 +861,10 @@ public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value)
} else {
checksummedDataBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (checksummedData_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
@@ -1047,8 +1069,10 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
} else {
objectChecksumsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+ if (objectChecksums_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
@@ -1248,8 +1272,10 @@ public Builder mergeContentRange(com.google.storage.v2.ContentRange value) {
} else {
contentRangeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000004;
- onChanged();
+ if (contentRange_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
return this;
}
/**
@@ -1442,8 +1468,10 @@ public Builder mergeMetadata(com.google.storage.v2.Object value) {
} else {
metadataBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000008;
- onChanged();
+ if (metadata_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
index 420883d870..1ba816a2f9 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ReadObjectResponseOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
index a3aed70b25..af68901a65 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -387,7 +388,7 @@ public boolean getCopySourceAcl() {
*/
@java.lang.Override
public boolean hasCommonObjectRequestParams() {
- return commonObjectRequestParams_ != null;
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
*
@@ -458,7 +459,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(7, ifMetagenerationNotMatch_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(8, getCommonObjectRequestParams());
}
if (((bitField0_ & 0x00000010) != 0)) {
@@ -494,7 +495,7 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifMetagenerationNotMatch_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
8, getCommonObjectRequestParams());
@@ -717,10 +718,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.RestoreObjectRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getCommonObjectRequestParamsFieldBuilder();
+ }
}
@java.lang.Override
@@ -811,6 +821,7 @@ private void buildPartial0(com.google.storage.v2.RestoreObjectRequest result) {
commonObjectRequestParamsBuilder_ == null
? commonObjectRequestParams_
: commonObjectRequestParamsBuilder_.build();
+ to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@@ -1748,8 +1759,10 @@ public Builder mergeCommonObjectRequestParams(
} else {
commonObjectRequestParamsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000100;
- onChanged();
+ if (commonObjectRequestParams_ != null) {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java
index 6c976e876c..9fcc63edbf 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface RestoreObjectRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java
index 9ad0ba000d..45d3cd237d 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -283,7 +284,7 @@ public com.google.protobuf.ByteString getDestinationKmsKeyBytes() {
*/
@java.lang.Override
public boolean hasDestination() {
- return destination_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -582,7 +583,7 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() {
*/
@java.lang.Override
public boolean hasIfGenerationMatch() {
- return ((bitField0_ & 0x00000001) != 0);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -620,7 +621,7 @@ public long getIfGenerationMatch() {
*/
@java.lang.Override
public boolean hasIfGenerationNotMatch() {
- return ((bitField0_ & 0x00000002) != 0);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -657,7 +658,7 @@ public long getIfGenerationNotMatch() {
*/
@java.lang.Override
public boolean hasIfMetagenerationMatch() {
- return ((bitField0_ & 0x00000004) != 0);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -692,7 +693,7 @@ public long getIfMetagenerationMatch() {
*/
@java.lang.Override
public boolean hasIfMetagenerationNotMatch() {
- return ((bitField0_ & 0x00000008) != 0);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -727,7 +728,7 @@ public long getIfMetagenerationNotMatch() {
*/
@java.lang.Override
public boolean hasIfSourceGenerationMatch() {
- return ((bitField0_ & 0x00000010) != 0);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
*
@@ -762,7 +763,7 @@ public long getIfSourceGenerationMatch() {
*/
@java.lang.Override
public boolean hasIfSourceGenerationNotMatch() {
- return ((bitField0_ & 0x00000020) != 0);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
*
@@ -797,7 +798,7 @@ public long getIfSourceGenerationNotMatch() {
*/
@java.lang.Override
public boolean hasIfSourceMetagenerationMatch() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
*
@@ -832,7 +833,7 @@ public long getIfSourceMetagenerationMatch() {
*/
@java.lang.Override
public boolean hasIfSourceMetagenerationNotMatch() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
*
@@ -986,7 +987,7 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeySha256Bytes() {
*/
@java.lang.Override
public boolean hasCommonObjectRequestParams() {
- return commonObjectRequestParams_ != null;
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
*
@@ -1038,7 +1039,7 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar
*/
@java.lang.Override
public boolean hasObjectChecksums() {
- return objectChecksums_ != null;
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
*
@@ -1089,7 +1090,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (destination_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getDestination());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBucket_)) {
@@ -1104,28 +1105,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewriteToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, rewriteToken_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(7, ifGenerationMatch_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(8, ifGenerationNotMatch_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(9, ifMetagenerationMatch_);
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(10, ifMetagenerationNotMatch_);
}
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(11, ifSourceGenerationMatch_);
}
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(12, ifSourceGenerationNotMatch_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt64(13, ifSourceMetagenerationMatch_);
}
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt64(14, ifSourceMetagenerationNotMatch_);
}
if (maxBytesRewrittenPerCall_ != 0L) {
@@ -1135,7 +1136,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
com.google.protobuf.GeneratedMessageV3.writeString(
output, 16, copySourceEncryptionAlgorithm_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(19, getCommonObjectRequestParams());
}
if (!copySourceEncryptionKeyBytes_.isEmpty()) {
@@ -1156,7 +1157,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationPredefinedAcl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 28, destinationPredefinedAcl_);
}
- if (objectChecksums_ != null) {
+ if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(29, getObjectChecksums());
}
getUnknownFields().writeTo(output);
@@ -1168,7 +1169,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (destination_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDestination());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBucket_)) {
@@ -1183,30 +1184,30 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewriteToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, rewriteToken_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifGenerationMatch_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, ifGenerationNotMatch_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, ifMetagenerationMatch_);
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, ifMetagenerationNotMatch_);
}
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, ifSourceGenerationMatch_);
}
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeInt64Size(12, ifSourceGenerationNotMatch_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000080) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeInt64Size(13, ifSourceMetagenerationMatch_);
}
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (((bitField0_ & 0x00000100) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeInt64Size(
14, ifSourceMetagenerationNotMatch_);
@@ -1219,7 +1220,7 @@ public int getSerializedSize() {
com.google.protobuf.GeneratedMessageV3.computeStringSize(
16, copySourceEncryptionAlgorithm_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000200) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
19, getCommonObjectRequestParams());
@@ -1246,7 +1247,7 @@ public int getSerializedSize() {
size +=
com.google.protobuf.GeneratedMessageV3.computeStringSize(28, destinationPredefinedAcl_);
}
- if (objectChecksums_ != null) {
+ if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getObjectChecksums());
}
size += getUnknownFields().getSerializedSize();
@@ -1543,10 +1544,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.RewriteObjectRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getDestinationFieldBuilder();
+ getCommonObjectRequestParamsFieldBuilder();
+ getObjectChecksumsFieldBuilder();
+ }
}
@java.lang.Override
@@ -1633,9 +1645,11 @@ private void buildPartial0(com.google.storage.v2.RewriteObjectRequest result) {
if (((from_bitField0_ & 0x00000004) != 0)) {
result.destinationKmsKey_ = destinationKmsKey_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.destination_ =
destinationBuilder_ == null ? destination_ : destinationBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.sourceBucket_ = sourceBucket_;
@@ -1652,38 +1666,37 @@ private void buildPartial0(com.google.storage.v2.RewriteObjectRequest result) {
if (((from_bitField0_ & 0x00000100) != 0)) {
result.destinationPredefinedAcl_ = destinationPredefinedAcl_;
}
- int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000200) != 0)) {
result.ifGenerationMatch_ = ifGenerationMatch_;
- to_bitField0_ |= 0x00000001;
+ to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.ifGenerationNotMatch_ = ifGenerationNotMatch_;
- to_bitField0_ |= 0x00000002;
+ to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.ifMetagenerationMatch_ = ifMetagenerationMatch_;
- to_bitField0_ |= 0x00000004;
+ to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.ifMetagenerationNotMatch_ = ifMetagenerationNotMatch_;
- to_bitField0_ |= 0x00000008;
+ to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.ifSourceGenerationMatch_ = ifSourceGenerationMatch_;
- to_bitField0_ |= 0x00000010;
+ to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.ifSourceGenerationNotMatch_ = ifSourceGenerationNotMatch_;
- to_bitField0_ |= 0x00000020;
+ to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.ifSourceMetagenerationMatch_ = ifSourceMetagenerationMatch_;
- to_bitField0_ |= 0x00000040;
+ to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.ifSourceMetagenerationNotMatch_ = ifSourceMetagenerationNotMatch_;
- to_bitField0_ |= 0x00000080;
+ to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.maxBytesRewrittenPerCall_ = maxBytesRewrittenPerCall_;
@@ -1702,10 +1715,12 @@ private void buildPartial0(com.google.storage.v2.RewriteObjectRequest result) {
commonObjectRequestParamsBuilder_ == null
? commonObjectRequestParams_
: commonObjectRequestParamsBuilder_.build();
+ to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00400000) != 0)) {
result.objectChecksums_ =
objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build();
+ to_bitField0_ |= 0x00000400;
}
result.bitField0_ |= to_bitField0_;
}
@@ -2549,8 +2564,10 @@ public Builder mergeDestination(com.google.storage.v2.Object value) {
} else {
destinationBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000008;
- onChanged();
+ if (destination_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
return this;
}
/**
@@ -4178,8 +4195,10 @@ public Builder mergeCommonObjectRequestParams(
} else {
commonObjectRequestParamsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00200000;
- onChanged();
+ if (commonObjectRequestParams_ != null) {
+ bitField0_ |= 0x00200000;
+ onChanged();
+ }
return this;
}
/**
@@ -4369,8 +4388,10 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
} else {
objectChecksumsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00400000;
- onChanged();
+ if (objectChecksums_ != null) {
+ bitField0_ |= 0x00400000;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
index dc5beddfce..923f2eea74 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface RewriteObjectRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java
index ac31614a86..8ffa674ddb 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.storage.v2.RewriteResponse.Builder.class);
}
+ private int bitField0_;
public static final int TOTAL_BYTES_REWRITTEN_FIELD_NUMBER = 1;
private long totalBytesRewritten_ = 0L;
/**
@@ -188,7 +190,7 @@ public com.google.protobuf.ByteString getRewriteTokenBytes() {
*/
@java.lang.Override
public boolean hasResource() {
- return resource_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -247,7 +249,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewriteToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rewriteToken_);
}
- if (resource_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getResource());
}
getUnknownFields().writeTo(output);
@@ -271,7 +273,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewriteToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rewriteToken_);
}
- if (resource_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getResource());
}
size += getUnknownFields().getSerializedSize();
@@ -448,10 +450,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.RewriteResponse.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getResourceFieldBuilder();
+ }
}
@java.lang.Override
@@ -515,9 +526,12 @@ private void buildPartial0(com.google.storage.v2.RewriteResponse result) {
if (((from_bitField0_ & 0x00000008) != 0)) {
result.rewriteToken_ = rewriteToken_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -1041,8 +1055,10 @@ public Builder mergeResource(com.google.storage.v2.Object value) {
} else {
resourceBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000010;
- onChanged();
+ if (resource_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
index b556f3b6c9..b45f32bdd7 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface RewriteResponseOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
index 20742ebc07..b992bbe7a6 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java
index 880c17100e..662e2e777c 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ServiceAccountOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java
index b80de230f6..87cd402171 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java
index 8468f8550d..c187cdb996 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface ServiceConstantsOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java
index 30b9435ea7..88f4236f57 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.storage.v2.StartResumableWriteRequest.Builder.class);
}
+ private int bitField0_;
public static final int WRITE_OBJECT_SPEC_FIELD_NUMBER = 1;
private com.google.storage.v2.WriteObjectSpec writeObjectSpec_;
/**
@@ -78,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasWriteObjectSpec() {
- return writeObjectSpec_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -134,7 +136,7 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
*/
@java.lang.Override
public boolean hasCommonObjectRequestParams() {
- return commonObjectRequestParams_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -188,7 +190,7 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar
*/
@java.lang.Override
public boolean hasObjectChecksums() {
- return objectChecksums_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -243,13 +245,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (writeObjectSpec_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getWriteObjectSpec());
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getCommonObjectRequestParams());
}
- if (objectChecksums_ != null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getObjectChecksums());
}
getUnknownFields().writeTo(output);
@@ -261,15 +263,15 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (writeObjectSpec_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWriteObjectSpec());
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, getCommonObjectRequestParams());
}
- if (objectChecksums_ != null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getObjectChecksums());
}
size += getUnknownFields().getSerializedSize();
@@ -453,10 +455,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.StartResumableWriteRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getWriteObjectSpecFieldBuilder();
+ getCommonObjectRequestParamsFieldBuilder();
+ getObjectChecksumsFieldBuilder();
+ }
}
@java.lang.Override
@@ -514,20 +527,25 @@ public com.google.storage.v2.StartResumableWriteRequest buildPartial() {
private void buildPartial0(com.google.storage.v2.StartResumableWriteRequest result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.writeObjectSpec_ =
writeObjectSpecBuilder_ == null ? writeObjectSpec_ : writeObjectSpecBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.commonObjectRequestParams_ =
commonObjectRequestParamsBuilder_ == null
? commonObjectRequestParams_
: commonObjectRequestParamsBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.objectChecksums_ =
objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build();
+ to_bitField0_ |= 0x00000004;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -767,8 +785,10 @@ public Builder mergeWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value)
} else {
writeObjectSpecBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (writeObjectSpec_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
@@ -966,8 +986,10 @@ public Builder mergeCommonObjectRequestParams(
} else {
commonObjectRequestParamsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+ if (commonObjectRequestParams_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
@@ -1167,8 +1189,10 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
} else {
objectChecksumsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000004;
- onChanged();
+ if (objectChecksums_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java
index edd9a323ab..51cc325add 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface StartResumableWriteRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
index 1d8e46aa1c..d9502fbca9 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java
index decbf93374..3172451eb7 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface StartResumableWriteResponseOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java
index 6bc20d78b8..6d6bbc9bbb 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public final class StorageProto {
@@ -357,590 +358,585 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "/duration.proto\032\033google/protobuf/empty.p"
+ "roto\032 google/protobuf/field_mask.proto\032\037"
+ "google/protobuf/timestamp.proto\032\026google/"
- + "type/date.proto\"\327\001\n\023DeleteBucketRequest\022"
- + "4\n\004name\030\001 \001(\tB&\342A\001\002\372A\037\n\035storage.googleap"
- + "is.com/Bucket\022$\n\027if_metageneration_match"
+ + "type/date.proto\"\326\001\n\023DeleteBucketRequest\022"
+ + "3\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035storage.googleapi"
+ + "s.com/Bucket\022$\n\027if_metageneration_match\030"
+ + "\002 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not_matc"
+ + "h\030\003 \001(\003H\001\210\001\001B\032\n\030_if_metageneration_match"
+ + "B\036\n\034_if_metageneration_not_match\"\225\002\n\020Get"
+ + "BucketRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035sto"
+ + "rage.googleapis.com/Bucket\022$\n\027if_metagen"
+ + "eration_match\030\002 \001(\003H\000\210\001\001\022(\n\033if_metagener"
+ + "ation_not_match\030\003 \001(\003H\001\210\001\001\0222\n\tread_mask\030"
+ + "\005 \001(\0132\032.google.protobuf.FieldMaskH\002\210\001\001B\032"
+ + "\n\030_if_metageneration_matchB\036\n\034_if_metage"
+ + "neration_not_matchB\014\n\n_read_mask\"\316\001\n\023Cre"
+ + "ateBucketRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037"
+ + "\022\035storage.googleapis.com/Bucket\022)\n\006bucke"
+ + "t\030\002 \001(\0132\031.google.storage.v2.Bucket\022\026\n\tbu"
+ + "cket_id\030\003 \001(\tB\003\340A\002\022\026\n\016predefined_acl\030\006 \001"
+ + "(\t\022%\n\035predefined_default_object_acl\030\007 \001("
+ + "\t\"\304\001\n\022ListBucketsRequest\0225\n\006parent\030\001 \001(\t"
+ + "B%\340A\002\372A\037\022\035storage.googleapis.com/Bucket\022"
+ + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016"
+ + "\n\006prefix\030\004 \001(\t\0222\n\tread_mask\030\005 \001(\0132\032.goog"
+ + "le.protobuf.FieldMaskH\000\210\001\001B\014\n\n_read_mask"
+ + "\"Z\n\023ListBucketsResponse\022*\n\007buckets\030\001 \003(\013"
+ + "2\031.google.storage.v2.Bucket\022\027\n\017next_page"
+ + "_token\030\002 \001(\t\"\177\n LockBucketRetentionPolic"
+ + "yRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035storag"
+ + "e.googleapis.com/Bucket\022$\n\027if_metagenera"
+ + "tion_match\030\002 \001(\003B\003\340A\002\"\306\002\n\023UpdateBucketRe"
+ + "quest\022.\n\006bucket\030\001 \001(\0132\031.google.storage.v"
+ + "2.BucketB\003\340A\002\022$\n\027if_metageneration_match"
+ "\030\002 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not_mat"
- + "ch\030\003 \001(\003H\001\210\001\001B\032\n\030_if_metageneration_matc"
- + "hB\036\n\034_if_metageneration_not_match\"\226\002\n\020Ge"
- + "tBucketRequest\0224\n\004name\030\001 \001(\tB&\342A\001\002\372A\037\n\035s"
- + "torage.googleapis.com/Bucket\022$\n\027if_metag"
- + "eneration_match\030\002 \001(\003H\000\210\001\001\022(\n\033if_metagen"
- + "eration_not_match\030\003 \001(\003H\001\210\001\001\0222\n\tread_mas"
- + "k\030\005 \001(\0132\032.google.protobuf.FieldMaskH\002\210\001\001"
- + "B\032\n\030_if_metageneration_matchB\036\n\034_if_meta"
- + "generation_not_matchB\014\n\n_read_mask\"\320\001\n\023C"
- + "reateBucketRequest\0226\n\006parent\030\001 \001(\tB&\342A\001\002"
- + "\372A\037\022\035storage.googleapis.com/Bucket\022)\n\006bu"
- + "cket\030\002 \001(\0132\031.google.storage.v2.Bucket\022\027\n"
- + "\tbucket_id\030\003 \001(\tB\004\342A\001\002\022\026\n\016predefined_acl"
- + "\030\006 \001(\t\022%\n\035predefined_default_object_acl\030"
- + "\007 \001(\t\"\305\001\n\022ListBucketsRequest\0226\n\006parent\030\001"
- + " \001(\tB&\342A\001\002\372A\037\022\035storage.googleapis.com/Bu"
- + "cket\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 "
- + "\001(\t\022\016\n\006prefix\030\004 \001(\t\0222\n\tread_mask\030\005 \001(\0132\032"
- + ".google.protobuf.FieldMaskH\000\210\001\001B\014\n\n_read"
- + "_mask\"Z\n\023ListBucketsResponse\022*\n\007buckets\030"
- + "\001 \003(\0132\031.google.storage.v2.Bucket\022\027\n\017next"
- + "_page_token\030\002 \001(\t\"\201\001\n LockBucketRetentio"
- + "nPolicyRequest\0226\n\006bucket\030\001 \001(\tB&\342A\001\002\372A\037\n"
- + "\035storage.googleapis.com/Bucket\022%\n\027if_met"
- + "ageneration_match\030\002 \001(\003B\004\342A\001\002\"\310\002\n\023Update"
- + "BucketRequest\022/\n\006bucket\030\001 \001(\0132\031.google.s"
- + "torage.v2.BucketB\004\342A\001\002\022$\n\027if_metagenerat"
- + "ion_match\030\002 \001(\003H\000\210\001\001\022(\n\033if_metageneratio"
- + "n_not_match\030\003 \001(\003H\001\210\001\001\022\026\n\016predefined_acl"
- + "\030\010 \001(\t\022%\n\035predefined_default_object_acl\030"
- + "\t \001(\t\0225\n\013update_mask\030\006 \001(\0132\032.google.prot"
- + "obuf.FieldMaskB\004\342A\001\002B\032\n\030_if_metagenerati"
- + "on_matchB\036\n\034_if_metageneration_not_match"
- + "\"c\n\037DeleteNotificationConfigRequest\022@\n\004n"
- + "ame\030\001 \001(\tB2\342A\001\002\372A+\n)storage.googleapis.c"
- + "om/NotificationConfig\"`\n\034GetNotification"
- + "ConfigRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)st"
- + "orage.googleapis.com/NotificationConfig\""
- + "\257\001\n\037CreateNotificationConfigRequest\022B\n\006p"
- + "arent\030\001 \001(\tB2\342A\001\002\372A+\022)storage.googleapis"
- + ".com/NotificationConfig\022H\n\023notification_"
- + "config\030\002 \001(\0132%.google.storage.v2.Notific"
- + "ationConfigB\004\342A\001\002\"\213\001\n\036ListNotificationCo"
- + "nfigsRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\022)s"
- + "torage.googleapis.com/NotificationConfig"
- + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\""
- + "\177\n\037ListNotificationConfigsResponse\022C\n\024no"
- + "tification_configs\030\001 \003(\0132%.google.storag"
- + "e.v2.NotificationConfig\022\027\n\017next_page_tok"
- + "en\030\002 \001(\t\"\367\005\n\024ComposeObjectRequest\0224\n\013des"
- + "tination\030\001 \001(\0132\031.google.storage.v2.Objec"
- + "tB\004\342A\001\002\022L\n\016source_objects\030\002 \003(\01324.google"
- + ".storage.v2.ComposeObjectRequest.SourceO"
- + "bject\022\"\n\032destination_predefined_acl\030\t \001("
- + "\t\022 \n\023if_generation_match\030\004 \001(\003H\000\210\001\001\022$\n\027i"
- + "f_metageneration_match\030\005 \001(\003H\001\210\001\001\0227\n\007kms"
- + "_key\030\006 \001(\tB&\372A#\n!cloudkms.googleapis.com"
- + "/CryptoKey\022R\n\034common_object_request_para"
- + "ms\030\007 \001(\0132,.google.storage.v2.CommonObjec"
- + "tRequestParams\022<\n\020object_checksums\030\n \001(\013"
- + "2\".google.storage.v2.ObjectChecksums\032\357\001\n"
- + "\014SourceObject\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022\022\n\ngen"
- + "eration\030\002 \001(\003\022f\n\024object_preconditions\030\003 "
- + "\001(\0132H.google.storage.v2.ComposeObjectReq"
- + "uest.SourceObject.ObjectPreconditions\032O\n"
- + "\023ObjectPreconditions\022 \n\023if_generation_ma"
- + "tch\030\001 \001(\003H\000\210\001\001B\026\n\024_if_generation_matchB\026"
- + "\n\024_if_generation_matchB\032\n\030_if_metagenera"
- + "tion_match\"\323\003\n\023DeleteObjectRequest\0226\n\006bu"
- + "cket\030\001 \001(\tB&\342A\001\002\372A\037\n\035storage.googleapis."
- + "com/Bucket\022\024\n\006object\030\002 \001(\tB\004\342A\001\002\022\022\n\ngene"
- + "ration\030\004 \001(\003\022 \n\023if_generation_match\030\005 \001("
- + "\003H\000\210\001\001\022$\n\027if_generation_not_match\030\006 \001(\003H"
- + "\001\210\001\001\022$\n\027if_metageneration_match\030\007 \001(\003H\002\210"
- + "\001\001\022(\n\033if_metageneration_not_match\030\010 \001(\003H"
- + "\003\210\001\001\022R\n\034common_object_request_params\030\n \001"
- + "(\0132,.google.storage.v2.CommonObjectReque"
- + "stParamsB\026\n\024_if_generation_matchB\032\n\030_if_"
- + "generation_not_matchB\032\n\030_if_metagenerati"
- + "on_matchB\036\n\034_if_metageneration_not_match"
- + "\"\214\004\n\024RestoreObjectRequest\0226\n\006bucket\030\001 \001("
- + "\tB&\342A\001\002\372A\037\n\035storage.googleapis.com/Bucke"
- + "t\022\024\n\006object\030\002 \001(\tB\004\342A\001\002\022\030\n\ngeneration\030\003 "
- + "\001(\003B\004\342A\001\002\022 \n\023if_generation_match\030\004 \001(\003H\000"
- + "\210\001\001\022$\n\027if_generation_not_match\030\005 \001(\003H\001\210\001"
- + "\001\022$\n\027if_metageneration_match\030\006 \001(\003H\002\210\001\001\022"
- + "(\n\033if_metageneration_not_match\030\007 \001(\003H\003\210\001"
- + "\001\022\034\n\017copy_source_acl\030\t \001(\010H\004\210\001\001\022R\n\034commo"
- + "n_object_request_params\030\010 \001(\0132,.google.s"
- + "torage.v2.CommonObjectRequestParamsB\026\n\024_"
- + "if_generation_matchB\032\n\030_if_generation_no"
- + "t_matchB\032\n\030_if_metageneration_matchB\036\n\034_"
- + "if_metageneration_not_matchB\022\n\020_copy_sou"
- + "rce_acl\"6\n\033CancelResumableWriteRequest\022\027"
- + "\n\tupload_id\030\001 \001(\tB\004\342A\001\002\"\036\n\034CancelResumab"
- + "leWriteResponse\"\274\004\n\021ReadObjectRequest\0226\n"
- + "\006bucket\030\001 \001(\tB&\342A\001\002\372A\037\n\035storage.googleap"
- + "is.com/Bucket\022\024\n\006object\030\002 \001(\tB\004\342A\001\002\022\022\n\ng"
- + "eneration\030\003 \001(\003\022\023\n\013read_offset\030\004 \001(\003\022\022\n\n"
- + "read_limit\030\005 \001(\003\022 \n\023if_generation_match\030"
- + "\006 \001(\003H\000\210\001\001\022$\n\027if_generation_not_match\030\007 "
- + "\001(\003H\001\210\001\001\022$\n\027if_metageneration_match\030\010 \001("
- + "\003H\002\210\001\001\022(\n\033if_metageneration_not_match\030\t "
- + "\001(\003H\003\210\001\001\022R\n\034common_object_request_params"
- + "\030\n \001(\0132,.google.storage.v2.CommonObjectR"
- + "equestParams\0222\n\tread_mask\030\014 \001(\0132\032.google"
- + ".protobuf.FieldMaskH\004\210\001\001B\026\n\024_if_generati"
- + "on_matchB\032\n\030_if_generation_not_matchB\032\n\030"
- + "_if_metageneration_matchB\036\n\034_if_metagene"
- + "ration_not_matchB\014\n\n_read_mask\"\276\004\n\020GetOb"
- + "jectRequest\0226\n\006bucket\030\001 \001(\tB&\342A\001\002\372A\037\n\035st"
- + "orage.googleapis.com/Bucket\022\024\n\006object\030\002 "
- + "\001(\tB\004\342A\001\002\022\022\n\ngeneration\030\003 \001(\003\022\031\n\014soft_de"
- + "leted\030\013 \001(\010H\000\210\001\001\022 \n\023if_generation_match\030"
- + "\004 \001(\003H\001\210\001\001\022$\n\027if_generation_not_match\030\005 "
- + "\001(\003H\002\210\001\001\022$\n\027if_metageneration_match\030\006 \001("
- + "\003H\003\210\001\001\022(\n\033if_metageneration_not_match\030\007 "
- + "\001(\003H\004\210\001\001\022R\n\034common_object_request_params"
- + "\030\010 \001(\0132,.google.storage.v2.CommonObjectR"
- + "equestParams\0222\n\tread_mask\030\n \001(\0132\032.google"
- + ".protobuf.FieldMaskH\005\210\001\001B\017\n\r_soft_delete"
- + "dB\026\n\024_if_generation_matchB\032\n\030_if_generat"
- + "ion_not_matchB\032\n\030_if_metageneration_matc"
- + "hB\036\n\034_if_metageneration_not_matchB\014\n\n_re"
- + "ad_mask\"\365\001\n\022ReadObjectResponse\022<\n\020checks"
- + "ummed_data\030\001 \001(\0132\".google.storage.v2.Che"
- + "cksummedData\022<\n\020object_checksums\030\002 \001(\0132\""
- + ".google.storage.v2.ObjectChecksums\0226\n\rco"
- + "ntent_range\030\003 \001(\0132\037.google.storage.v2.Co"
- + "ntentRange\022+\n\010metadata\030\004 \001(\0132\031.google.st"
- + "orage.v2.Object\"\216\003\n\017WriteObjectSpec\0221\n\010r"
- + "esource\030\001 \001(\0132\031.google.storage.v2.Object"
- + "B\004\342A\001\002\022\026\n\016predefined_acl\030\007 \001(\t\022 \n\023if_gen"
- + "eration_match\030\003 \001(\003H\000\210\001\001\022$\n\027if_generatio"
- + "n_not_match\030\004 \001(\003H\001\210\001\001\022$\n\027if_metagenerat"
- + "ion_match\030\005 \001(\003H\002\210\001\001\022(\n\033if_metageneratio"
- + "n_not_match\030\006 \001(\003H\003\210\001\001\022\030\n\013object_size\030\010 "
- + "\001(\003H\004\210\001\001B\026\n\024_if_generation_matchB\032\n\030_if_"
- + "generation_not_matchB\032\n\030_if_metagenerati"
- + "on_matchB\036\n\034_if_metageneration_not_match"
- + "B\016\n\014_object_size\"\207\003\n\022WriteObjectRequest\022"
- + "\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021write_object_spe"
- + "c\030\002 \001(\0132\".google.storage.v2.WriteObjectS"
- + "pecH\000\022\032\n\014write_offset\030\003 \001(\003B\004\342A\001\002\022>\n\020che"
+ + "ch\030\003 \001(\003H\001\210\001\001\022\026\n\016predefined_acl\030\010 \001(\t\022%\n"
+ + "\035predefined_default_object_acl\030\t \001(\t\0224\n\013"
+ + "update_mask\030\006 \001(\0132\032.google.protobuf.Fiel"
+ + "dMaskB\003\340A\002B\032\n\030_if_metageneration_matchB\036"
+ + "\n\034_if_metageneration_not_match\"b\n\037Delete"
+ + "NotificationConfigRequest\022?\n\004name\030\001 \001(\tB"
+ + "1\340A\002\372A+\n)storage.googleapis.com/Notifica"
+ + "tionConfig\"_\n\034GetNotificationConfigReque"
+ + "st\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)storage.google"
+ + "apis.com/NotificationConfig\"\255\001\n\037CreateNo"
+ + "tificationConfigRequest\022A\n\006parent\030\001 \001(\tB"
+ + "1\340A\002\372A+\022)storage.googleapis.com/Notifica"
+ + "tionConfig\022G\n\023notification_config\030\002 \001(\0132"
+ + "%.google.storage.v2.NotificationConfigB\003"
+ + "\340A\002\"\212\001\n\036ListNotificationConfigsRequest\022A"
+ + "\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)storage.googleap"
+ + "is.com/NotificationConfig\022\021\n\tpage_size\030\002"
+ + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"\177\n\037ListNotifica"
+ + "tionConfigsResponse\022C\n\024notification_conf"
+ + "igs\030\001 \003(\0132%.google.storage.v2.Notificati"
+ + "onConfig\022\027\n\017next_page_token\030\002 \001(\t\"\365\005\n\024Co"
+ + "mposeObjectRequest\0223\n\013destination\030\001 \001(\0132"
+ + "\031.google.storage.v2.ObjectB\003\340A\002\022L\n\016sourc"
+ + "e_objects\030\002 \003(\01324.google.storage.v2.Comp"
+ + "oseObjectRequest.SourceObject\022\"\n\032destina"
+ + "tion_predefined_acl\030\t \001(\t\022 \n\023if_generati"
+ + "on_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_metageneration"
+ + "_match\030\005 \001(\003H\001\210\001\001\0227\n\007kms_key\030\006 \001(\tB&\372A#\n"
+ + "!cloudkms.googleapis.com/CryptoKey\022R\n\034co"
+ + "mmon_object_request_params\030\007 \001(\0132,.googl"
+ + "e.storage.v2.CommonObjectRequestParams\022<"
+ + "\n\020object_checksums\030\n \001(\0132\".google.storag"
+ + "e.v2.ObjectChecksums\032\356\001\n\014SourceObject\022\021\n"
+ + "\004name\030\001 \001(\tB\003\340A\002\022\022\n\ngeneration\030\002 \001(\003\022f\n\024"
+ + "object_preconditions\030\003 \001(\0132H.google.stor"
+ + "age.v2.ComposeObjectRequest.SourceObject"
+ + ".ObjectPreconditions\032O\n\023ObjectPreconditi"
+ + "ons\022 \n\023if_generation_match\030\001 \001(\003H\000\210\001\001B\026\n"
+ + "\024_if_generation_matchB\026\n\024_if_generation_"
+ + "matchB\032\n\030_if_metageneration_match\"\321\003\n\023De"
+ + "leteObjectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A"
+ + "\037\n\035storage.googleapis.com/Bucket\022\023\n\006obje"
+ + "ct\030\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\004 \001(\003\022 \n\023if_"
+ + "generation_match\030\005 \001(\003H\000\210\001\001\022$\n\027if_genera"
+ + "tion_not_match\030\006 \001(\003H\001\210\001\001\022$\n\027if_metagene"
+ + "ration_match\030\007 \001(\003H\002\210\001\001\022(\n\033if_metagenera"
+ + "tion_not_match\030\010 \001(\003H\003\210\001\001\022R\n\034common_obje"
+ + "ct_request_params\030\n \001(\0132,.google.storage"
+ + ".v2.CommonObjectRequestParamsB\026\n\024_if_gen"
+ + "eration_matchB\032\n\030_if_generation_not_matc"
+ + "hB\032\n\030_if_metageneration_matchB\036\n\034_if_met"
+ + "ageneration_not_match\"\211\004\n\024RestoreObjectR"
+ + "equest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035storage."
+ + "googleapis.com/Bucket\022\023\n\006object\030\002 \001(\tB\003\340"
+ + "A\002\022\027\n\ngeneration\030\003 \001(\003B\003\340A\002\022 \n\023if_genera"
+ + "tion_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_generation_n"
+ + "ot_match\030\005 \001(\003H\001\210\001\001\022$\n\027if_metageneration"
+ + "_match\030\006 \001(\003H\002\210\001\001\022(\n\033if_metageneration_n"
+ + "ot_match\030\007 \001(\003H\003\210\001\001\022\034\n\017copy_source_acl\030\t"
+ + " \001(\010H\004\210\001\001\022R\n\034common_object_request_param"
+ + "s\030\010 \001(\0132,.google.storage.v2.CommonObject"
+ + "RequestParamsB\026\n\024_if_generation_matchB\032\n"
+ + "\030_if_generation_not_matchB\032\n\030_if_metagen"
+ + "eration_matchB\036\n\034_if_metageneration_not_"
+ + "matchB\022\n\020_copy_source_acl\"5\n\033CancelResum"
+ + "ableWriteRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002"
+ + "\"\036\n\034CancelResumableWriteResponse\"\272\004\n\021Rea"
+ + "dObjectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035"
+ + "storage.googleapis.com/Bucket\022\023\n\006object\030"
+ + "\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\003 \001(\003\022\023\n\013read_o"
+ + "ffset\030\004 \001(\003\022\022\n\nread_limit\030\005 \001(\003\022 \n\023if_ge"
+ + "neration_match\030\006 \001(\003H\000\210\001\001\022$\n\027if_generati"
+ + "on_not_match\030\007 \001(\003H\001\210\001\001\022$\n\027if_metagenera"
+ + "tion_match\030\010 \001(\003H\002\210\001\001\022(\n\033if_metagenerati"
+ + "on_not_match\030\t \001(\003H\003\210\001\001\022R\n\034common_object"
+ + "_request_params\030\n \001(\0132,.google.storage.v"
+ + "2.CommonObjectRequestParams\0222\n\tread_mask"
+ + "\030\014 \001(\0132\032.google.protobuf.FieldMaskH\004\210\001\001B"
+ + "\026\n\024_if_generation_matchB\032\n\030_if_generatio"
+ + "n_not_matchB\032\n\030_if_metageneration_matchB"
+ + "\036\n\034_if_metageneration_not_matchB\014\n\n_read"
+ + "_mask\"\274\004\n\020GetObjectRequest\0225\n\006bucket\030\001 \001"
+ + "(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Bucke"
+ + "t\022\023\n\006object\030\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\003 \001"
+ + "(\003\022\031\n\014soft_deleted\030\013 \001(\010H\000\210\001\001\022 \n\023if_gene"
+ + "ration_match\030\004 \001(\003H\001\210\001\001\022$\n\027if_generation"
+ + "_not_match\030\005 \001(\003H\002\210\001\001\022$\n\027if_metagenerati"
+ + "on_match\030\006 \001(\003H\003\210\001\001\022(\n\033if_metageneration"
+ + "_not_match\030\007 \001(\003H\004\210\001\001\022R\n\034common_object_r"
+ + "equest_params\030\010 \001(\0132,.google.storage.v2."
+ + "CommonObjectRequestParams\0222\n\tread_mask\030\n"
+ + " \001(\0132\032.google.protobuf.FieldMaskH\005\210\001\001B\017\n"
+ + "\r_soft_deletedB\026\n\024_if_generation_matchB\032"
+ + "\n\030_if_generation_not_matchB\032\n\030_if_metage"
+ + "neration_matchB\036\n\034_if_metageneration_not"
+ + "_matchB\014\n\n_read_mask\"\365\001\n\022ReadObjectRespo"
+ + "nse\022<\n\020checksummed_data\030\001 \001(\0132\".google.s"
+ + "torage.v2.ChecksummedData\022<\n\020object_chec"
+ + "ksums\030\002 \001(\0132\".google.storage.v2.ObjectCh"
+ + "ecksums\0226\n\rcontent_range\030\003 \001(\0132\037.google."
+ + "storage.v2.ContentRange\022+\n\010metadata\030\004 \001("
+ + "\0132\031.google.storage.v2.Object\"\215\003\n\017WriteOb"
+ + "jectSpec\0220\n\010resource\030\001 \001(\0132\031.google.stor"
+ + "age.v2.ObjectB\003\340A\002\022\026\n\016predefined_acl\030\007 \001"
+ + "(\t\022 \n\023if_generation_match\030\003 \001(\003H\000\210\001\001\022$\n\027"
+ + "if_generation_not_match\030\004 \001(\003H\001\210\001\001\022$\n\027if"
+ + "_metageneration_match\030\005 \001(\003H\002\210\001\001\022(\n\033if_m"
+ + "etageneration_not_match\030\006 \001(\003H\003\210\001\001\022\030\n\013ob"
+ + "ject_size\030\010 \001(\003H\004\210\001\001B\026\n\024_if_generation_m"
+ + "atchB\032\n\030_if_generation_not_matchB\032\n\030_if_"
+ + "metageneration_matchB\036\n\034_if_metagenerati"
+ + "on_not_matchB\016\n\014_object_size\"\206\003\n\022WriteOb"
+ + "jectRequest\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021writ"
+ + "e_object_spec\030\002 \001(\0132\".google.storage.v2."
+ + "WriteObjectSpecH\000\022\031\n\014write_offset\030\003 \001(\003B"
+ + "\003\340A\002\022>\n\020checksummed_data\030\004 \001(\0132\".google."
+ + "storage.v2.ChecksummedDataH\001\022<\n\020object_c"
+ + "hecksums\030\006 \001(\0132\".google.storage.v2.Objec"
+ + "tChecksums\022\024\n\014finish_write\030\007 \001(\010\022R\n\034comm"
+ + "on_object_request_params\030\010 \001(\0132,.google."
+ + "storage.v2.CommonObjectRequestParamsB\017\n\r"
+ + "first_messageB\006\n\004data\"n\n\023WriteObjectResp"
+ + "onse\022\030\n\016persisted_size\030\001 \001(\003H\000\022-\n\010resour"
+ + "ce\030\002 \001(\0132\031.google.storage.v2.ObjectH\000B\016\n"
+ + "\014write_status\"\257\003\n\026BidiWriteObjectRequest"
+ + "\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021write_object_sp"
+ + "ec\030\002 \001(\0132\".google.storage.v2.WriteObject"
+ + "SpecH\000\022\031\n\014write_offset\030\003 \001(\003B\003\340A\002\022>\n\020che"
+ "cksummed_data\030\004 \001(\0132\".google.storage.v2."
+ "ChecksummedDataH\001\022<\n\020object_checksums\030\006 "
+ "\001(\0132\".google.storage.v2.ObjectChecksums\022"
- + "\024\n\014finish_write\030\007 \001(\010\022R\n\034common_object_r"
- + "equest_params\030\010 \001(\0132,.google.storage.v2."
- + "CommonObjectRequestParamsB\017\n\rfirst_messa"
- + "geB\006\n\004data\"n\n\023WriteObjectResponse\022\030\n\016per"
- + "sisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\0132\031."
- + "google.storage.v2.ObjectH\000B\016\n\014write_stat"
- + "us\"\260\003\n\026BidiWriteObjectRequest\022\023\n\tupload_"
- + "id\030\001 \001(\tH\000\022?\n\021write_object_spec\030\002 \001(\0132\"."
- + "google.storage.v2.WriteObjectSpecH\000\022\032\n\014w"
- + "rite_offset\030\003 \001(\003B\004\342A\001\002\022>\n\020checksummed_d"
- + "ata\030\004 \001(\0132\".google.storage.v2.Checksumme"
- + "dDataH\001\022<\n\020object_checksums\030\006 \001(\0132\".goog"
- + "le.storage.v2.ObjectChecksums\022\024\n\014state_l"
- + "ookup\030\007 \001(\010\022\r\n\005flush\030\010 \001(\010\022\024\n\014finish_wri"
- + "te\030\t \001(\010\022R\n\034common_object_request_params"
- + "\030\n \001(\0132,.google.storage.v2.CommonObjectR"
- + "equestParamsB\017\n\rfirst_messageB\006\n\004data\"r\n"
- + "\027BidiWriteObjectResponse\022\030\n\016persisted_si"
- + "ze\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\0132\031.google.st"
- + "orage.v2.ObjectH\000B\016\n\014write_status\"\210\003\n\022Li"
- + "stObjectsRequest\0226\n\006parent\030\001 \001(\tB&\342A\001\002\372A"
- + "\037\n\035storage.googleapis.com/Bucket\022\021\n\tpage"
- + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\021\n\tdelim"
- + "iter\030\004 \001(\t\022\"\n\032include_trailing_delimiter"
- + "\030\005 \001(\010\022\016\n\006prefix\030\006 \001(\t\022\020\n\010versions\030\007 \001(\010"
- + "\0222\n\tread_mask\030\010 \001(\0132\032.google.protobuf.Fi"
- + "eldMaskH\000\210\001\001\022!\n\023lexicographic_start\030\n \001("
- + "\tB\004\342A\001\001\022\037\n\021lexicographic_end\030\013 \001(\tB\004\342A\001\001"
- + "\022\032\n\014soft_deleted\030\014 \001(\010B\004\342A\001\001\022\030\n\nmatch_gl"
- + "ob\030\016 \001(\tB\004\342A\001\001B\014\n\n_read_mask\"\206\001\n\027QueryWr"
- + "iteStatusRequest\022\027\n\tupload_id\030\001 \001(\tB\004\342A\001"
- + "\002\022R\n\034common_object_request_params\030\002 \001(\0132"
- + ",.google.storage.v2.CommonObjectRequestP"
- + "arams\"s\n\030QueryWriteStatusResponse\022\030\n\016per"
- + "sisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\0132\031."
- + "google.storage.v2.ObjectH\000B\016\n\014write_stat"
- + "us\"\250\n\n\024RewriteObjectRequest\022\037\n\020destinati"
- + "on_name\030\030 \001(\tB\005\342A\002\002\005\022C\n\022destination_buck"
- + "et\030\031 \001(\tB\'\342A\002\002\005\372A\037\n\035storage.googleapis.c"
- + "om/Bucket\022C\n\023destination_kms_key\030\033 \001(\tB&"
- + "\372A#\n!cloudkms.googleapis.com/CryptoKey\022."
- + "\n\013destination\030\001 \001(\0132\031.google.storage.v2."
- + "Object\022=\n\rsource_bucket\030\002 \001(\tB&\342A\001\002\372A\037\n\035"
- + "storage.googleapis.com/Bucket\022\033\n\rsource_"
- + "object\030\003 \001(\tB\004\342A\001\002\022\031\n\021source_generation\030"
- + "\004 \001(\003\022\025\n\rrewrite_token\030\005 \001(\t\022\"\n\032destinat"
- + "ion_predefined_acl\030\034 \001(\t\022 \n\023if_generatio"
- + "n_match\030\007 \001(\003H\000\210\001\001\022$\n\027if_generation_not_"
- + "match\030\010 \001(\003H\001\210\001\001\022$\n\027if_metageneration_ma"
- + "tch\030\t \001(\003H\002\210\001\001\022(\n\033if_metageneration_not_"
- + "match\030\n \001(\003H\003\210\001\001\022\'\n\032if_source_generation"
- + "_match\030\013 \001(\003H\004\210\001\001\022+\n\036if_source_generatio"
- + "n_not_match\030\014 \001(\003H\005\210\001\001\022+\n\036if_source_meta"
- + "generation_match\030\r \001(\003H\006\210\001\001\022/\n\"if_source"
- + "_metageneration_not_match\030\016 \001(\003H\007\210\001\001\022$\n\034"
- + "max_bytes_rewritten_per_call\030\017 \001(\003\022(\n co"
- + "py_source_encryption_algorithm\030\020 \001(\t\022(\n "
- + "copy_source_encryption_key_bytes\030\025 \001(\014\022/"
- + "\n\'copy_source_encryption_key_sha256_byte"
- + "s\030\026 \001(\014\022R\n\034common_object_request_params\030"
- + "\023 \001(\0132,.google.storage.v2.CommonObjectRe"
- + "questParams\022<\n\020object_checksums\030\035 \001(\0132\"."
- + "google.storage.v2.ObjectChecksumsB\026\n\024_if"
- + "_generation_matchB\032\n\030_if_generation_not_"
- + "matchB\032\n\030_if_metageneration_matchB\036\n\034_if"
- + "_metageneration_not_matchB\035\n\033_if_source_"
- + "generation_matchB!\n\037_if_source_generatio"
- + "n_not_matchB!\n\037_if_source_metageneration"
- + "_matchB%\n#_if_source_metageneration_not_"
- + "match\"\227\001\n\017RewriteResponse\022\035\n\025total_bytes"
- + "_rewritten\030\001 \001(\003\022\023\n\013object_size\030\002 \001(\003\022\014\n"
- + "\004done\030\003 \001(\010\022\025\n\rrewrite_token\030\004 \001(\t\022+\n\010re"
- + "source\030\005 \001(\0132\031.google.storage.v2.Object\""
- + "\363\001\n\032StartResumableWriteRequest\022C\n\021write_"
- + "object_spec\030\001 \001(\0132\".google.storage.v2.Wr"
- + "iteObjectSpecB\004\342A\001\002\022R\n\034common_object_req"
- + "uest_params\030\003 \001(\0132,.google.storage.v2.Co"
- + "mmonObjectRequestParams\022<\n\020object_checks"
- + "ums\030\005 \001(\0132\".google.storage.v2.ObjectChec"
- + "ksums\"0\n\033StartResumableWriteResponse\022\021\n\t"
- + "upload_id\030\001 \001(\t\"\361\003\n\023UpdateObjectRequest\022"
- + "/\n\006object\030\001 \001(\0132\031.google.storage.v2.Obje"
- + "ctB\004\342A\001\002\022 \n\023if_generation_match\030\002 \001(\003H\000\210"
- + "\001\001\022$\n\027if_generation_not_match\030\003 \001(\003H\001\210\001\001"
- + "\022$\n\027if_metageneration_match\030\004 \001(\003H\002\210\001\001\022("
- + "\n\033if_metageneration_not_match\030\005 \001(\003H\003\210\001\001"
- + "\022\026\n\016predefined_acl\030\n \001(\t\0225\n\013update_mask\030"
- + "\007 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\022"
- + "R\n\034common_object_request_params\030\010 \001(\0132,."
- + "google.storage.v2.CommonObjectRequestPar"
- + "amsB\026\n\024_if_generation_matchB\032\n\030_if_gener"
- + "ation_not_matchB\032\n\030_if_metageneration_ma"
- + "tchB\036\n\034_if_metageneration_not_match\"a\n\030G"
- + "etServiceAccountRequest\022E\n\007project\030\001 \001(\t"
- + "B4\342A\001\002\372A-\n+cloudresourcemanager.googleap"
- + "is.com/Project\"\202\001\n\024CreateHmacKeyRequest\022"
- + "E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresource"
- + "manager.googleapis.com/Project\022#\n\025servic"
- + "e_account_email\030\002 \001(\tB\004\342A\001\002\"g\n\025CreateHma"
- + "cKeyResponse\0224\n\010metadata\030\001 \001(\0132\".google."
- + "storage.v2.HmacKeyMetadata\022\030\n\020secret_key"
- + "_bytes\030\003 \001(\014\"v\n\024DeleteHmacKeyRequest\022\027\n\t"
- + "access_id\030\001 \001(\tB\004\342A\001\002\022E\n\007project\030\002 \001(\tB4"
- + "\342A\001\002\372A-\n+cloudresourcemanager.googleapis"
- + ".com/Project\"s\n\021GetHmacKeyRequest\022\027\n\tacc"
- + "ess_id\030\001 \001(\tB\004\342A\001\002\022E\n\007project\030\002 \001(\tB4\342A\001"
- + "\002\372A-\n+cloudresourcemanager.googleapis.co"
- + "m/Project\"\275\001\n\023ListHmacKeysRequest\022E\n\007pro"
- + "ject\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanage"
- + "r.googleapis.com/Project\022\021\n\tpage_size\030\002 "
- + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\035\n\025service_accou"
- + "nt_email\030\004 \001(\t\022\031\n\021show_deleted_keys\030\005 \001("
- + "\010\"f\n\024ListHmacKeysResponse\0225\n\thmac_keys\030\001"
- + " \003(\0132\".google.storage.v2.HmacKeyMetadata"
- + "\022\027\n\017next_page_token\030\002 \001(\t\"\203\001\n\024UpdateHmac"
- + "KeyRequest\022:\n\010hmac_key\030\001 \001(\0132\".google.st"
- + "orage.v2.HmacKeyMetadataB\004\342A\001\002\022/\n\013update"
- + "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\""
- + "|\n\031CommonObjectRequestParams\022\034\n\024encrypti"
- + "on_algorithm\030\001 \001(\t\022\034\n\024encryption_key_byt"
- + "es\030\004 \001(\014\022#\n\033encryption_key_sha256_bytes\030"
- + "\005 \001(\014\"\312\005\n\020ServiceConstants\"\265\005\n\006Values\022\026\n"
- + "\022VALUES_UNSPECIFIED\020\000\022\033\n\024MAX_READ_CHUNK_"
- + "BYTES\020\200\200\200\001\022\034\n\025MAX_WRITE_CHUNK_BYTES\020\200\200\200\001"
- + "\022\031\n\022MAX_OBJECT_SIZE_MB\020\200\200\300\002\022)\n$MAX_CUSTO"
- + "M_METADATA_FIELD_NAME_BYTES\020\200\010\022*\n%MAX_CU"
- + "STOM_METADATA_FIELD_VALUE_BYTES\020\200 \022)\n$MA"
- + "X_CUSTOM_METADATA_TOTAL_SIZE_BYTES\020\200@\022*\n"
- + "$MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES\020\200\240"
- + "\001\022\'\n#MAX_NOTIFICATION_CONFIGS_PER_BUCKET"
- + "\020d\022\"\n\036MAX_LIFECYCLE_RULES_PER_BUCKET\020d\022&"
- + "\n\"MAX_NOTIFICATION_CUSTOM_ATTRIBUTES\020\005\0221"
- + "\n,MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_"
- + "LENGTH\020\200\002\0223\n.MAX_NOTIFICATION_CUSTOM_ATT"
- + "RIBUTE_VALUE_LENGTH\020\200\010\022\034\n\030MAX_LABELS_ENT"
- + "RIES_COUNT\020@\022\037\n\033MAX_LABELS_KEY_VALUE_LEN"
- + "GTH\020?\022\037\n\032MAX_LABELS_KEY_VALUE_BYTES\020\200\001\022."
- + "\n)MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQU"
- + "EST\020\350\007\022\036\n\032SPLIT_TOKEN_MAX_VALID_DAYS\020\016\032\002"
- + "\020\001\"\231\033\n\006Bucket\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\027\n\tbuc"
- + "ket_id\030\002 \001(\tB\004\342A\001\003\022\014\n\004etag\030\035 \001(\t\022E\n\007proj"
- + "ect\030\003 \001(\tB4\342A\001\005\372A-\n+cloudresourcemanager"
- + ".googleapis.com/Project\022\034\n\016metageneratio"
- + "n\030\004 \001(\003B\004\342A\001\003\022\026\n\010location\030\005 \001(\tB\004\342A\001\005\022\033\n"
- + "\rlocation_type\030\006 \001(\tB\004\342A\001\003\022\025\n\rstorage_cl"
- + "ass\030\007 \001(\t\022\013\n\003rpo\030\033 \001(\t\0223\n\003acl\030\010 \003(\0132&.go"
- + "ogle.storage.v2.BucketAccessControl\022B\n\022d"
- + "efault_object_acl\030\t \003(\0132&.google.storage"
- + ".v2.ObjectAccessControl\0226\n\tlifecycle\030\n \001"
- + "(\0132#.google.storage.v2.Bucket.Lifecycle\022"
- + "5\n\013create_time\030\013 \001(\0132\032.google.protobuf.T"
- + "imestampB\004\342A\001\003\022,\n\004cors\030\014 \003(\0132\036.google.st"
- + "orage.v2.Bucket.Cors\0225\n\013update_time\030\r \001("
- + "\0132\032.google.protobuf.TimestampB\004\342A\001\003\022 \n\030d"
- + "efault_event_based_hold\030\016 \001(\010\0225\n\006labels\030"
- + "\017 \003(\0132%.google.storage.v2.Bucket.LabelsE"
- + "ntry\0222\n\007website\030\020 \001(\0132!.google.storage.v"
- + "2.Bucket.Website\0228\n\nversioning\030\021 \001(\0132$.g"
- + "oogle.storage.v2.Bucket.Versioning\0222\n\007lo"
- + "gging\030\022 \001(\0132!.google.storage.v2.Bucket.L"
- + "ogging\022-\n\005owner\030\023 \001(\0132\030.google.storage.v"
- + "2.OwnerB\004\342A\001\003\0228\n\nencryption\030\024 \001(\0132$.goog"
- + "le.storage.v2.Bucket.Encryption\0222\n\007billi"
- + "ng\030\025 \001(\0132!.google.storage.v2.Bucket.Bill"
- + "ing\022C\n\020retention_policy\030\026 \001(\0132).google.s"
- + "torage.v2.Bucket.RetentionPolicy\0227\n\niam_"
- + "config\030\027 \001(\0132#.google.storage.v2.Bucket."
- + "IamConfig\022\025\n\rsatisfies_pzs\030\031 \001(\010\022P\n\027cust"
- + "om_placement_config\030\032 \001(\0132/.google.stora"
- + "ge.v2.Bucket.CustomPlacementConfig\0226\n\tau"
- + "toclass\030\034 \001(\0132#.google.storage.v2.Bucket"
- + ".Autoclass\022L\n\022soft_delete_policy\030\037 \001(\0132*"
- + ".google.storage.v2.Bucket.SoftDeletePoli"
- + "cyB\004\342A\001\001\032!\n\007Billing\022\026\n\016requester_pays\030\001 "
- + "\001(\010\032X\n\004Cors\022\016\n\006origin\030\001 \003(\t\022\016\n\006method\030\002 "
- + "\003(\t\022\027\n\017response_header\030\003 \003(\t\022\027\n\017max_age_"
- + "seconds\030\004 \001(\005\032M\n\nEncryption\022?\n\017default_k"
- + "ms_key\030\001 \001(\tB&\372A#\n!cloudkms.googleapis.c"
- + "om/CryptoKey\032\354\001\n\tIamConfig\022a\n\033uniform_bu"
- + "cket_level_access\030\001 \001(\0132<.google.storage"
- + ".v2.Bucket.IamConfig.UniformBucketLevelA"
- + "ccess\022 \n\030public_access_prevention\030\003 \001(\t\032"
- + "Z\n\030UniformBucketLevelAccess\022\017\n\007enabled\030\001"
- + " \001(\010\022-\n\tlock_time\030\002 \001(\0132\032.google.protobu"
- + "f.Timestamp\032\363\005\n\tLifecycle\0226\n\004rule\030\001 \003(\0132"
- + "(.google.storage.v2.Bucket.Lifecycle.Rul"
- + "e\032\255\005\n\004Rule\022?\n\006action\030\001 \001(\0132/.google.stor"
- + "age.v2.Bucket.Lifecycle.Rule.Action\022E\n\tc"
- + "ondition\030\002 \001(\01322.google.storage.v2.Bucke"
- + "t.Lifecycle.Rule.Condition\032-\n\006Action\022\014\n\004"
- + "type\030\001 \001(\t\022\025\n\rstorage_class\030\002 \001(\t\032\355\003\n\tCo"
- + "ndition\022\025\n\010age_days\030\001 \001(\005H\000\210\001\001\022)\n\016create"
- + "d_before\030\002 \001(\0132\021.google.type.Date\022\024\n\007is_"
- + "live\030\003 \001(\010H\001\210\001\001\022\037\n\022num_newer_versions\030\004 "
- + "\001(\005H\002\210\001\001\022\035\n\025matches_storage_class\030\005 \003(\t\022"
- + "#\n\026days_since_custom_time\030\007 \001(\005H\003\210\001\001\022-\n\022"
- + "custom_time_before\030\010 \001(\0132\021.google.type.D"
- + "ate\022\'\n\032days_since_noncurrent_time\030\t \001(\005H"
- + "\004\210\001\001\0221\n\026noncurrent_time_before\030\n \001(\0132\021.g"
- + "oogle.type.Date\022\026\n\016matches_prefix\030\013 \003(\t\022"
- + "\026\n\016matches_suffix\030\014 \003(\tB\013\n\t_age_daysB\n\n\010"
- + "_is_liveB\025\n\023_num_newer_versionsB\031\n\027_days"
- + "_since_custom_timeB\035\n\033_days_since_noncur"
- + "rent_time\0328\n\007Logging\022\022\n\nlog_bucket\030\001 \001(\t"
- + "\022\031\n\021log_object_prefix\030\002 \001(\t\032\217\001\n\017Retentio"
- + "nPolicy\0222\n\016effective_time\030\001 \001(\0132\032.google"
- + ".protobuf.Timestamp\022\021\n\tis_locked\030\002 \001(\010\0225"
- + "\n\022retention_duration\030\004 \001(\0132\031.google.prot"
- + "obuf.Duration\032\261\001\n\020SoftDeletePolicy\022:\n\022re"
- + "tention_duration\030\001 \001(\0132\031.google.protobuf"
- + ".DurationH\000\210\001\001\0227\n\016effective_time\030\002 \001(\0132\032"
- + ".google.protobuf.TimestampH\001\210\001\001B\025\n\023_rete"
- + "ntion_durationB\021\n\017_effective_time\032\035\n\nVer"
- + "sioning\022\017\n\007enabled\030\001 \001(\010\032;\n\007Website\022\030\n\020m"
- + "ain_page_suffix\030\001 \001(\t\022\026\n\016not_found_page\030"
- + "\002 \001(\t\032/\n\025CustomPlacementConfig\022\026\n\016data_l"
- + "ocations\030\001 \003(\t\032\215\002\n\tAutoclass\022\017\n\007enabled\030"
- + "\001 \001(\010\0225\n\013toggle_time\030\002 \001(\0132\032.google.prot"
- + "obuf.TimestampB\004\342A\001\003\022#\n\026terminal_storage"
- + "_class\030\003 \001(\tH\000\210\001\001\022Q\n\"terminal_storage_cl"
- + "ass_update_time\030\004 \001(\0132\032.google.protobuf."
- + "TimestampB\004\342A\001\003H\001\210\001\001B\031\n\027_terminal_storag"
- + "e_classB%\n#_terminal_storage_class_updat"
- + "e_time\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va"
- + "lue\030\002 \001(\t:\0028\001:G\352AD\n\035storage.googleapis.c"
- + "om/Bucket\022#projects/{project}/buckets/{b"
- + "ucket}\"\317\001\n\023BucketAccessControl\022\014\n\004role\030\001"
- + " \001(\t\022\n\n\002id\030\002 \001(\t\022\016\n\006entity\030\003 \001(\t\022\030\n\nenti"
- + "ty_alt\030\t \001(\tB\004\342A\001\003\022\021\n\tentity_id\030\004 \001(\t\022\014\n"
- + "\004etag\030\010 \001(\t\022\r\n\005email\030\005 \001(\t\022\016\n\006domain\030\006 \001"
- + "(\t\0224\n\014project_team\030\007 \001(\0132\036.google.storag"
- + "e.v2.ProjectTeam\"J\n\017ChecksummedData\022\027\n\007c"
- + "ontent\030\001 \001(\014B\006\010\001\342A\001\001\022\023\n\006crc32c\030\002 \001(\007H\000\210\001"
- + "\001B\t\n\007_crc32c\"C\n\017ObjectChecksums\022\023\n\006crc32"
- + "c\030\001 \001(\007H\000\210\001\001\022\020\n\010md5_hash\030\002 \001(\014B\t\n\007_crc32"
- + "c\"\263\002\n\017HmacKeyMetadata\022\020\n\002id\030\001 \001(\tB\004\342A\001\005\022"
- + "\027\n\taccess_id\030\002 \001(\tB\004\342A\001\005\022E\n\007project\030\003 \001("
- + "\tB4\342A\001\005\372A-\n+cloudresourcemanager.googlea"
- + "pis.com/Project\022#\n\025service_account_email"
- + "\030\004 \001(\tB\004\342A\001\003\022\r\n\005state\030\005 \001(\t\0225\n\013create_ti",
- "me\030\006 \001(\0132\032.google.protobuf.TimestampB\004\342A"
- + "\001\003\0225\n\013update_time\030\007 \001(\0132\032.google.protobu"
- + "f.TimestampB\004\342A\001\003\022\014\n\004etag\030\010 \001(\t\"\252\003\n\022Noti"
- + "ficationConfig\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022\023\n\005to"
- + "pic\030\002 \001(\tB\004\342A\001\002\022\014\n\004etag\030\007 \001(\t\022\023\n\013event_t"
- + "ypes\030\003 \003(\t\022V\n\021custom_attributes\030\004 \003(\0132;."
- + "google.storage.v2.NotificationConfig.Cus"
- + "tomAttributesEntry\022\032\n\022object_name_prefix"
- + "\030\005 \001(\t\022\034\n\016payload_format\030\006 \001(\tB\004\342A\001\002\0327\n\025"
- + "CustomAttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va"
- + "lue\030\002 \001(\t:\0028\001:}\352Az\n)storage.googleapis.c"
- + "om/NotificationConfig\022Mprojects/{project"
- + "}/buckets/{bucket}/notificationConfigs/{"
- + "notification_config}\"L\n\022CustomerEncrypti"
- + "on\022\034\n\024encryption_algorithm\030\001 \001(\t\022\030\n\020key_"
- + "sha256_bytes\030\003 \001(\014\"\216\t\n\006Object\022\022\n\004name\030\001 "
- + "\001(\tB\004\342A\001\005\0226\n\006bucket\030\002 \001(\tB&\342A\001\005\372A\037\n\035stor"
- + "age.googleapis.com/Bucket\022\014\n\004etag\030\033 \001(\t\022"
- + "\030\n\ngeneration\030\003 \001(\003B\004\342A\001\005\022\034\n\016metagenerat"
- + "ion\030\004 \001(\003B\004\342A\001\003\022\025\n\rstorage_class\030\005 \001(\t\022\022"
- + "\n\004size\030\006 \001(\003B\004\342A\001\003\022\030\n\020content_encoding\030\007"
- + " \001(\t\022\033\n\023content_disposition\030\010 \001(\t\022\025\n\rcac"
- + "he_control\030\t \001(\t\0223\n\003acl\030\n \003(\0132&.google.s"
- + "torage.v2.ObjectAccessControl\022\030\n\020content"
- + "_language\030\013 \001(\t\0225\n\013delete_time\030\014 \001(\0132\032.g"
- + "oogle.protobuf.TimestampB\004\342A\001\003\022\024\n\014conten"
- + "t_type\030\r \001(\t\0225\n\013create_time\030\016 \001(\0132\032.goog"
- + "le.protobuf.TimestampB\004\342A\001\003\022\035\n\017component"
- + "_count\030\017 \001(\005B\004\342A\001\003\022;\n\tchecksums\030\020 \001(\0132\"."
- + "google.storage.v2.ObjectChecksumsB\004\342A\001\003\022"
- + "5\n\013update_time\030\021 \001(\0132\032.google.protobuf.T"
- + "imestampB\004\342A\001\003\0227\n\007kms_key\030\022 \001(\tB&\372A#\n!cl"
- + "oudkms.googleapis.com/CryptoKey\022C\n\031updat"
- + "e_storage_class_time\030\023 \001(\0132\032.google.prot"
- + "obuf.TimestampB\004\342A\001\003\022\026\n\016temporary_hold\030\024"
- + " \001(\010\0229\n\025retention_expire_time\030\025 \001(\0132\032.go"
- + "ogle.protobuf.Timestamp\0229\n\010metadata\030\026 \003("
- + "\0132\'.google.storage.v2.Object.MetadataEnt"
- + "ry\022\035\n\020event_based_hold\030\027 \001(\010H\000\210\001\001\022-\n\005own"
- + "er\030\030 \001(\0132\030.google.storage.v2.OwnerB\004\342A\001\003"
- + "\022B\n\023customer_encryption\030\031 \001(\0132%.google.s"
- + "torage.v2.CustomerEncryption\022/\n\013custom_t"
- + "ime\030\032 \001(\0132\032.google.protobuf.Timestamp\032/\n"
- + "\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001"
- + "(\t:\0028\001B\023\n\021_event_based_hold\"\317\001\n\023ObjectAc"
- + "cessControl\022\014\n\004role\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\016\n"
- + "\006entity\030\003 \001(\t\022\030\n\nentity_alt\030\t \001(\tB\004\342A\001\003\022"
- + "\021\n\tentity_id\030\004 \001(\t\022\014\n\004etag\030\010 \001(\t\022\r\n\005emai"
- + "l\030\005 \001(\t\022\016\n\006domain\030\006 \001(\t\0224\n\014project_team\030"
- + "\007 \001(\0132\036.google.storage.v2.ProjectTeam\"l\n"
- + "\023ListObjectsResponse\022*\n\007objects\030\001 \003(\0132\031."
- + "google.storage.v2.Object\022\020\n\010prefixes\030\002 \003"
- + "(\t\022\027\n\017next_page_token\030\003 \001(\t\"3\n\013ProjectTe"
- + "am\022\026\n\016project_number\030\001 \001(\t\022\014\n\004team\030\002 \001(\t"
- + "\"\'\n\016ServiceAccount\022\025\n\remail_address\030\001 \001("
- + "\t\"*\n\005Owner\022\016\n\006entity\030\001 \001(\t\022\021\n\tentity_id\030"
- + "\002 \001(\t\"C\n\014ContentRange\022\r\n\005start\030\001 \001(\003\022\013\n\003"
- + "end\030\002 \001(\003\022\027\n\017complete_length\030\003 \001(\0032\230(\n\007S"
- + "torage\022r\n\014DeleteBucket\022&.google.storage."
- + "v2.DeleteBucketRequest\032\026.google.protobuf"
- + ".Empty\"\"\332A\004name\212\323\344\223\002\025\022\023\n\004name\022\013{bucket=*"
- + "*}\022o\n\tGetBucket\022#.google.storage.v2.GetB"
- + "ucketRequest\032\031.google.storage.v2.Bucket\""
- + "\"\332A\004name\212\323\344\223\002\025\022\023\n\004name\022\013{bucket=**}\022\253\001\n\014"
- + "CreateBucket\022&.google.storage.v2.CreateB"
- + "ucketRequest\032\031.google.storage.v2.Bucket\""
- + "X\332A\027parent,bucket,bucket_id\212\323\344\223\0028\022\026\n\006par"
- + "ent\022\014{project=**}\022\036\n\016bucket.project\022\014{pr"
- + "oject=**}\022\205\001\n\013ListBuckets\022%.google.stora"
- + "ge.v2.ListBucketsRequest\032&.google.storag"
- + "e.v2.ListBucketsResponse\"\'\332A\006parent\212\323\344\223\002"
- + "\030\022\026\n\006parent\022\014{project=**}\022\223\001\n\031LockBucket"
- + "RetentionPolicy\0223.google.storage.v2.Lock"
- + "BucketRetentionPolicyRequest\032\031.google.st"
- + "orage.v2.Bucket\"&\332A\006bucket\212\323\344\223\002\027\022\025\n\006buck"
- + "et\022\013{bucket=**}\022\253\001\n\014GetIamPolicy\022\".googl"
- + "e.iam.v1.GetIamPolicyRequest\032\025.google.ia"
- + "m.v1.Policy\"`\332A\010resource\212\323\344\223\002O\022\027\n\010resour"
- + "ce\022\013{bucket=**}\0224\n\010resource\022({bucket=pro"
- + "jects/*/buckets/*}/objects/**\022\262\001\n\014SetIam"
- + "Policy\022\".google.iam.v1.SetIamPolicyReque"
- + "st\032\025.google.iam.v1.Policy\"g\332A\017resource,p"
- + "olicy\212\323\344\223\002O\022\027\n\010resource\022\013{bucket=**}\0224\n\010"
- + "resource\022({bucket=projects/*/buckets/*}/"
- + "objects/**\022\327\001\n\022TestIamPermissions\022(.goog"
- + "le.iam.v1.TestIamPermissionsRequest\032).go"
- + "ogle.iam.v1.TestIamPermissionsResponse\"l"
- + "\332A\024resource,permissions\212\323\344\223\002O\022\027\n\010resourc"
- + "e\022\013{bucket=**}\0224\n\010resource\022({bucket=proj"
- + "ects/*/buckets/*}/objects/**\022\212\001\n\014UpdateB"
- + "ucket\022&.google.storage.v2.UpdateBucketRe"
- + "quest\032\031.google.storage.v2.Bucket\"7\332A\022buc"
- + "ket,update_mask\212\323\344\223\002\034\022\032\n\013bucket.name\022\013{b"
- + "ucket=**}\022\237\001\n\030DeleteNotificationConfig\0222"
- + ".google.storage.v2.DeleteNotificationCon"
- + "figRequest\032\026.google.protobuf.Empty\"7\332A\004n"
- + "ame\212\323\344\223\002*\022(\n\004name\022 {bucket=projects/*/bu"
- + "ckets/*}/**\022\250\001\n\025GetNotificationConfig\022/."
- + "google.storage.v2.GetNotificationConfigR"
- + "equest\032%.google.storage.v2.NotificationC"
- + "onfig\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=pr"
- + "ojects/*/buckets/*}/**\022\261\001\n\030CreateNotific"
- + "ationConfig\0222.google.storage.v2.CreateNo"
- + "tificationConfigRequest\032%.google.storage"
- + ".v2.NotificationConfig\":\332A\032parent,notifi"
- + "cation_config\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=*"
- + "*}\022\250\001\n\027ListNotificationConfigs\0221.google."
- + "storage.v2.ListNotificationConfigsReques"
- + "t\0322.google.storage.v2.ListNotificationCo"
- + "nfigsResponse\"&\332A\006parent\212\323\344\223\002\027\022\025\n\006parent"
- + "\022\013{bucket=**}\022~\n\rComposeObject\022\'.google."
- + "storage.v2.ComposeObjectRequest\032\031.google"
- + ".storage.v2.Object\")\212\323\344\223\002#\022!\n\022destinatio"
- + "n.bucket\022\013{bucket=**}\022\230\001\n\014DeleteObject\022&"
- + ".google.storage.v2.DeleteObjectRequest\032\026"
- + ".google.protobuf.Empty\"H\332A\rbucket,object"
- + "\332A\030bucket,object,generation\212\323\344\223\002\027\022\025\n\006buc"
- + "ket\022\013{bucket=**}\022\215\001\n\rRestoreObject\022\'.goo"
- + "gle.storage.v2.RestoreObjectRequest\032\031.go"
- + "ogle.storage.v2.Object\"8\332A\030bucket,object"
- + ",generation\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}"
- + "\022\272\001\n\024CancelResumableWrite\022..google.stora"
- + "ge.v2.CancelResumableWriteRequest\032/.goog"
- + "le.storage.v2.CancelResumableWriteRespon"
- + "se\"A\332A\tupload_id\212\323\344\223\002/\022-\n\tupload_id\022 {bu"
- + "cket=projects/*/buckets/*}/**\022\225\001\n\tGetObj"
- + "ect\022#.google.storage.v2.GetObjectRequest"
- + "\032\031.google.storage.v2.Object\"H\332A\rbucket,o"
- + "bject\332A\030bucket,object,generation\212\323\344\223\002\027\022\025"
- + "\n\006bucket\022\013{bucket=**}\022\245\001\n\nReadObject\022$.g"
- + "oogle.storage.v2.ReadObjectRequest\032%.goo"
- + "gle.storage.v2.ReadObjectResponse\"H\332A\rbu"
+ + "\024\n\014state_lookup\030\007 \001(\010\022\r\n\005flush\030\010 \001(\010\022\024\n\014"
+ + "finish_write\030\t \001(\010\022R\n\034common_object_requ"
+ + "est_params\030\n \001(\0132,.google.storage.v2.Com"
+ + "monObjectRequestParamsB\017\n\rfirst_messageB"
+ + "\006\n\004data\"r\n\027BidiWriteObjectResponse\022\030\n\016pe"
+ + "rsisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\0132\031"
+ + ".google.storage.v2.ObjectH\000B\016\n\014write_sta"
+ + "tus\"\203\003\n\022ListObjectsRequest\0225\n\006parent\030\001 \001"
+ + "(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Bucke"
+ + "t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t"
+ + "\022\021\n\tdelimiter\030\004 \001(\t\022\"\n\032include_trailing_"
+ + "delimiter\030\005 \001(\010\022\016\n\006prefix\030\006 \001(\t\022\020\n\010versi"
+ + "ons\030\007 \001(\010\0222\n\tread_mask\030\010 \001(\0132\032.google.pr"
+ + "otobuf.FieldMaskH\000\210\001\001\022 \n\023lexicographic_s"
+ + "tart\030\n \001(\tB\003\340A\001\022\036\n\021lexicographic_end\030\013 \001"
+ + "(\tB\003\340A\001\022\031\n\014soft_deleted\030\014 \001(\010B\003\340A\001\022\027\n\nma"
+ + "tch_glob\030\016 \001(\tB\003\340A\001B\014\n\n_read_mask\"\205\001\n\027Qu"
+ + "eryWriteStatusRequest\022\026\n\tupload_id\030\001 \001(\t"
+ + "B\003\340A\002\022R\n\034common_object_request_params\030\002 "
+ + "\001(\0132,.google.storage.v2.CommonObjectRequ"
+ + "estParams\"s\n\030QueryWriteStatusResponse\022\030\n"
+ + "\016persisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001("
+ + "\0132\031.google.storage.v2.ObjectH\000B\016\n\014write_"
+ + "status\"\250\n\n\024RewriteObjectRequest\022 \n\020desti"
+ + "nation_name\030\030 \001(\tB\006\340A\002\340A\005\022D\n\022destination"
+ + "_bucket\030\031 \001(\tB(\340A\002\340A\005\372A\037\n\035storage.google"
+ + "apis.com/Bucket\022C\n\023destination_kms_key\030\033"
+ + " \001(\tB&\372A#\n!cloudkms.googleapis.com/Crypt"
+ + "oKey\022.\n\013destination\030\001 \001(\0132\031.google.stora"
+ + "ge.v2.Object\022<\n\rsource_bucket\030\002 \001(\tB%\340A\002"
+ + "\372A\037\n\035storage.googleapis.com/Bucket\022\032\n\rso"
+ + "urce_object\030\003 \001(\tB\003\340A\002\022\031\n\021source_generat"
+ + "ion\030\004 \001(\003\022\025\n\rrewrite_token\030\005 \001(\t\022\"\n\032dest"
+ + "ination_predefined_acl\030\034 \001(\t\022 \n\023if_gener"
+ + "ation_match\030\007 \001(\003H\000\210\001\001\022$\n\027if_generation_"
+ + "not_match\030\010 \001(\003H\001\210\001\001\022$\n\027if_metageneratio"
+ + "n_match\030\t \001(\003H\002\210\001\001\022(\n\033if_metageneration_"
+ + "not_match\030\n \001(\003H\003\210\001\001\022\'\n\032if_source_genera"
+ + "tion_match\030\013 \001(\003H\004\210\001\001\022+\n\036if_source_gener"
+ + "ation_not_match\030\014 \001(\003H\005\210\001\001\022+\n\036if_source_"
+ + "metageneration_match\030\r \001(\003H\006\210\001\001\022/\n\"if_so"
+ + "urce_metageneration_not_match\030\016 \001(\003H\007\210\001\001"
+ + "\022$\n\034max_bytes_rewritten_per_call\030\017 \001(\003\022("
+ + "\n copy_source_encryption_algorithm\030\020 \001(\t"
+ + "\022(\n copy_source_encryption_key_bytes\030\025 \001"
+ + "(\014\022/\n\'copy_source_encryption_key_sha256_"
+ + "bytes\030\026 \001(\014\022R\n\034common_object_request_par"
+ + "ams\030\023 \001(\0132,.google.storage.v2.CommonObje"
+ + "ctRequestParams\022<\n\020object_checksums\030\035 \001("
+ + "\0132\".google.storage.v2.ObjectChecksumsB\026\n"
+ + "\024_if_generation_matchB\032\n\030_if_generation_"
+ + "not_matchB\032\n\030_if_metageneration_matchB\036\n"
+ + "\034_if_metageneration_not_matchB\035\n\033_if_sou"
+ + "rce_generation_matchB!\n\037_if_source_gener"
+ + "ation_not_matchB!\n\037_if_source_metagenera"
+ + "tion_matchB%\n#_if_source_metageneration_"
+ + "not_match\"\227\001\n\017RewriteResponse\022\035\n\025total_b"
+ + "ytes_rewritten\030\001 \001(\003\022\023\n\013object_size\030\002 \001("
+ + "\003\022\014\n\004done\030\003 \001(\010\022\025\n\rrewrite_token\030\004 \001(\t\022+"
+ + "\n\010resource\030\005 \001(\0132\031.google.storage.v2.Obj"
+ + "ect\"\362\001\n\032StartResumableWriteRequest\022B\n\021wr"
+ + "ite_object_spec\030\001 \001(\0132\".google.storage.v"
+ + "2.WriteObjectSpecB\003\340A\002\022R\n\034common_object_"
+ + "request_params\030\003 \001(\0132,.google.storage.v2"
+ + ".CommonObjectRequestParams\022<\n\020object_che"
+ + "cksums\030\005 \001(\0132\".google.storage.v2.ObjectC"
+ + "hecksums\"0\n\033StartResumableWriteResponse\022"
+ + "\021\n\tupload_id\030\001 \001(\t\"\357\003\n\023UpdateObjectReque"
+ + "st\022.\n\006object\030\001 \001(\0132\031.google.storage.v2.O"
+ + "bjectB\003\340A\002\022 \n\023if_generation_match\030\002 \001(\003H"
+ + "\000\210\001\001\022$\n\027if_generation_not_match\030\003 \001(\003H\001\210"
+ + "\001\001\022$\n\027if_metageneration_match\030\004 \001(\003H\002\210\001\001"
+ + "\022(\n\033if_metageneration_not_match\030\005 \001(\003H\003\210"
+ + "\001\001\022\026\n\016predefined_acl\030\n \001(\t\0224\n\013update_mas"
+ + "k\030\007 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002"
+ + "\022R\n\034common_object_request_params\030\010 \001(\0132,"
+ + ".google.storage.v2.CommonObjectRequestPa"
+ + "ramsB\026\n\024_if_generation_matchB\032\n\030_if_gene"
+ + "ration_not_matchB\032\n\030_if_metageneration_m"
+ + "atchB\036\n\034_if_metageneration_not_match\"`\n\030"
+ + "GetServiceAccountRequest\022D\n\007project\030\001 \001("
+ + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap"
+ + "is.com/Project\"\200\001\n\024CreateHmacKeyRequest\022"
+ + "D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcem"
+ + "anager.googleapis.com/Project\022\"\n\025service"
+ + "_account_email\030\002 \001(\tB\003\340A\002\"g\n\025CreateHmacK"
+ + "eyResponse\0224\n\010metadata\030\001 \001(\0132\".google.st"
+ + "orage.v2.HmacKeyMetadata\022\030\n\020secret_key_b"
+ + "ytes\030\003 \001(\014\"t\n\024DeleteHmacKeyRequest\022\026\n\tac"
+ + "cess_id\030\001 \001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340A\002"
+ + "\372A-\n+cloudresourcemanager.googleapis.com"
+ + "/Project\"q\n\021GetHmacKeyRequest\022\026\n\taccess_"
+ + "id\030\001 \001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340A\002\372A-\n+"
+ + "cloudresourcemanager.googleapis.com/Proj"
+ + "ect\"\274\001\n\023ListHmacKeysRequest\022D\n\007project\030\001"
+ + " \001(\tB3\340A\002\372A-\n+cloudresourcemanager.googl"
+ + "eapis.com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n"
+ + "page_token\030\003 \001(\t\022\035\n\025service_account_emai"
+ + "l\030\004 \001(\t\022\031\n\021show_deleted_keys\030\005 \001(\010\"f\n\024Li"
+ + "stHmacKeysResponse\0225\n\thmac_keys\030\001 \003(\0132\"."
+ + "google.storage.v2.HmacKeyMetadata\022\027\n\017nex"
+ + "t_page_token\030\002 \001(\t\"\202\001\n\024UpdateHmacKeyRequ"
+ + "est\0229\n\010hmac_key\030\001 \001(\0132\".google.storage.v"
+ + "2.HmacKeyMetadataB\003\340A\002\022/\n\013update_mask\030\003 "
+ + "\001(\0132\032.google.protobuf.FieldMask\"|\n\031Commo"
+ + "nObjectRequestParams\022\034\n\024encryption_algor"
+ + "ithm\030\001 \001(\t\022\034\n\024encryption_key_bytes\030\004 \001(\014"
+ + "\022#\n\033encryption_key_sha256_bytes\030\005 \001(\014\"\312\005"
+ + "\n\020ServiceConstants\"\265\005\n\006Values\022\026\n\022VALUES_"
+ + "UNSPECIFIED\020\000\022\033\n\024MAX_READ_CHUNK_BYTES\020\200\200"
+ + "\200\001\022\034\n\025MAX_WRITE_CHUNK_BYTES\020\200\200\200\001\022\031\n\022MAX_"
+ + "OBJECT_SIZE_MB\020\200\200\300\002\022)\n$MAX_CUSTOM_METADA"
+ + "TA_FIELD_NAME_BYTES\020\200\010\022*\n%MAX_CUSTOM_MET"
+ + "ADATA_FIELD_VALUE_BYTES\020\200 \022)\n$MAX_CUSTOM"
+ + "_METADATA_TOTAL_SIZE_BYTES\020\200@\022*\n$MAX_BUC"
+ + "KET_METADATA_TOTAL_SIZE_BYTES\020\200\240\001\022\'\n#MAX"
+ + "_NOTIFICATION_CONFIGS_PER_BUCKET\020d\022\"\n\036MA"
+ + "X_LIFECYCLE_RULES_PER_BUCKET\020d\022&\n\"MAX_NO"
+ + "TIFICATION_CUSTOM_ATTRIBUTES\020\005\0221\n,MAX_NO"
+ + "TIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH\020\200"
+ + "\002\0223\n.MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_V"
+ + "ALUE_LENGTH\020\200\010\022\034\n\030MAX_LABELS_ENTRIES_COU"
+ + "NT\020@\022\037\n\033MAX_LABELS_KEY_VALUE_LENGTH\020?\022\037\n"
+ + "\032MAX_LABELS_KEY_VALUE_BYTES\020\200\001\022.\n)MAX_OB"
+ + "JECT_IDS_PER_DELETE_OBJECTS_REQUEST\020\350\007\022\036"
+ + "\n\032SPLIT_TOKEN_MAX_VALID_DAYS\020\016\032\002\020\001\"\215\033\n\006B"
+ + "ucket\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\026\n\tbucket_id\030\002 "
+ + "\001(\tB\003\340A\003\022\014\n\004etag\030\035 \001(\t\022D\n\007project\030\003 \001(\tB"
+ + "3\340A\005\372A-\n+cloudresourcemanager.googleapis"
+ + ".com/Project\022\033\n\016metageneration\030\004 \001(\003B\003\340A"
+ + "\003\022\025\n\010location\030\005 \001(\tB\003\340A\005\022\032\n\rlocation_typ"
+ + "e\030\006 \001(\tB\003\340A\003\022\025\n\rstorage_class\030\007 \001(\t\022\013\n\003r"
+ + "po\030\033 \001(\t\0223\n\003acl\030\010 \003(\0132&.google.storage.v"
+ + "2.BucketAccessControl\022B\n\022default_object_"
+ + "acl\030\t \003(\0132&.google.storage.v2.ObjectAcce"
+ + "ssControl\0226\n\tlifecycle\030\n \001(\0132#.google.st"
+ + "orage.v2.Bucket.Lifecycle\0224\n\013create_time"
+ + "\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022"
+ + ",\n\004cors\030\014 \003(\0132\036.google.storage.v2.Bucket"
+ + ".Cors\0224\n\013update_time\030\r \001(\0132\032.google.prot"
+ + "obuf.TimestampB\003\340A\003\022 \n\030default_event_bas"
+ + "ed_hold\030\016 \001(\010\0225\n\006labels\030\017 \003(\0132%.google.s"
+ + "torage.v2.Bucket.LabelsEntry\0222\n\007website\030"
+ + "\020 \001(\0132!.google.storage.v2.Bucket.Website"
+ + "\0228\n\nversioning\030\021 \001(\0132$.google.storage.v2"
+ + ".Bucket.Versioning\0222\n\007logging\030\022 \001(\0132!.go"
+ + "ogle.storage.v2.Bucket.Logging\022,\n\005owner\030"
+ + "\023 \001(\0132\030.google.storage.v2.OwnerB\003\340A\003\0228\n\n"
+ + "encryption\030\024 \001(\0132$.google.storage.v2.Buc"
+ + "ket.Encryption\0222\n\007billing\030\025 \001(\0132!.google"
+ + ".storage.v2.Bucket.Billing\022C\n\020retention_"
+ + "policy\030\026 \001(\0132).google.storage.v2.Bucket."
+ + "RetentionPolicy\0227\n\niam_config\030\027 \001(\0132#.go"
+ + "ogle.storage.v2.Bucket.IamConfig\022\025\n\rsati"
+ + "sfies_pzs\030\031 \001(\010\022P\n\027custom_placement_conf"
+ + "ig\030\032 \001(\0132/.google.storage.v2.Bucket.Cust"
+ + "omPlacementConfig\0226\n\tautoclass\030\034 \001(\0132#.g"
+ + "oogle.storage.v2.Bucket.Autoclass\022K\n\022sof"
+ + "t_delete_policy\030\037 \001(\0132*.google.storage.v"
+ + "2.Bucket.SoftDeletePolicyB\003\340A\001\032!\n\007Billin"
+ + "g\022\026\n\016requester_pays\030\001 \001(\010\032X\n\004Cors\022\016\n\006ori"
+ + "gin\030\001 \003(\t\022\016\n\006method\030\002 \003(\t\022\027\n\017response_he"
+ + "ader\030\003 \003(\t\022\027\n\017max_age_seconds\030\004 \001(\005\032M\n\nE"
+ + "ncryption\022?\n\017default_kms_key\030\001 \001(\tB&\372A#\n"
+ + "!cloudkms.googleapis.com/CryptoKey\032\354\001\n\tI"
+ + "amConfig\022a\n\033uniform_bucket_level_access\030"
+ + "\001 \001(\0132<.google.storage.v2.Bucket.IamConf"
+ + "ig.UniformBucketLevelAccess\022 \n\030public_ac"
+ + "cess_prevention\030\003 \001(\t\032Z\n\030UniformBucketLe"
+ + "velAccess\022\017\n\007enabled\030\001 \001(\010\022-\n\tlock_time\030"
+ + "\002 \001(\0132\032.google.protobuf.Timestamp\032\363\005\n\tLi"
+ + "fecycle\0226\n\004rule\030\001 \003(\0132(.google.storage.v"
+ + "2.Bucket.Lifecycle.Rule\032\255\005\n\004Rule\022?\n\006acti"
+ + "on\030\001 \001(\0132/.google.storage.v2.Bucket.Life"
+ + "cycle.Rule.Action\022E\n\tcondition\030\002 \001(\01322.g"
+ + "oogle.storage.v2.Bucket.Lifecycle.Rule.C"
+ + "ondition\032-\n\006Action\022\014\n\004type\030\001 \001(\t\022\025\n\rstor"
+ + "age_class\030\002 \001(\t\032\355\003\n\tCondition\022\025\n\010age_day"
+ + "s\030\001 \001(\005H\000\210\001\001\022)\n\016created_before\030\002 \001(\0132\021.g"
+ + "oogle.type.Date\022\024\n\007is_live\030\003 \001(\010H\001\210\001\001\022\037\n"
+ + "\022num_newer_versions\030\004 \001(\005H\002\210\001\001\022\035\n\025matche"
+ + "s_storage_class\030\005 \003(\t\022#\n\026days_since_cust"
+ + "om_time\030\007 \001(\005H\003\210\001\001\022-\n\022custom_time_before"
+ + "\030\010 \001(\0132\021.google.type.Date\022\'\n\032days_since_"
+ + "noncurrent_time\030\t \001(\005H\004\210\001\001\0221\n\026noncurrent"
+ + "_time_before\030\n \001(\0132\021.google.type.Date\022\026\n"
+ + "\016matches_prefix\030\013 \003(\t\022\026\n\016matches_suffix\030"
+ + "\014 \003(\tB\013\n\t_age_daysB\n\n\010_is_liveB\025\n\023_num_n"
+ + "ewer_versionsB\031\n\027_days_since_custom_time"
+ + "B\035\n\033_days_since_noncurrent_time\0328\n\007Loggi"
+ + "ng\022\022\n\nlog_bucket\030\001 \001(\t\022\031\n\021log_object_pre"
+ + "fix\030\002 \001(\t\032\217\001\n\017RetentionPolicy\0222\n\016effecti"
+ + "ve_time\030\001 \001(\0132\032.google.protobuf.Timestam"
+ + "p\022\021\n\tis_locked\030\002 \001(\010\0225\n\022retention_durati"
+ + "on\030\004 \001(\0132\031.google.protobuf.Duration\032\261\001\n\020"
+ + "SoftDeletePolicy\022:\n\022retention_duration\030\001"
+ + " \001(\0132\031.google.protobuf.DurationH\000\210\001\001\0227\n\016"
+ + "effective_time\030\002 \001(\0132\032.google.protobuf.T"
+ + "imestampH\001\210\001\001B\025\n\023_retention_durationB\021\n\017"
+ + "_effective_time\032\035\n\nVersioning\022\017\n\007enabled"
+ + "\030\001 \001(\010\032;\n\007Website\022\030\n\020main_page_suffix\030\001 "
+ + "\001(\t\022\026\n\016not_found_page\030\002 \001(\t\032/\n\025CustomPla"
+ + "cementConfig\022\026\n\016data_locations\030\001 \003(\t\032\213\002\n"
+ + "\tAutoclass\022\017\n\007enabled\030\001 \001(\010\0224\n\013toggle_ti"
+ + "me\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A"
+ + "\003\022#\n\026terminal_storage_class\030\003 \001(\tH\000\210\001\001\022P"
+ + "\n\"terminal_storage_class_update_time\030\004 \001"
+ + "(\0132\032.google.protobuf.TimestampB\003\340A\003H\001\210\001\001"
+ + "B\031\n\027_terminal_storage_classB%\n#_terminal"
+ + "_storage_class_update_time\032-\n\013LabelsEntr"
+ + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:G\352AD\n\035"
+ + "storage.googleapis.com/Bucket\022#projects/"
+ + "{project}/buckets/{bucket}\"\316\001\n\023BucketAcc"
+ + "essControl\022\014\n\004role\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\016\n\006"
+ + "entity\030\003 \001(\t\022\027\n\nentity_alt\030\t \001(\tB\003\340A\003\022\021\n"
+ + "\tentity_id\030\004 \001(\t\022\014\n\004etag\030\010 \001(\t\022\r\n\005email\030"
+ + "\005 \001(\t\022\016\n\006domain\030\006 \001(\t\0224\n\014project_team\030\007 "
+ + "\001(\0132\036.google.storage.v2.ProjectTeam\"I\n\017C"
+ + "hecksummedData\022\026\n\007content\030\001 \001(\014B\005\010\001\340A\001\022\023"
+ + "\n\006crc32c\030\002 \001(\007H\000\210\001\001B\t\n\007_crc32c\"C\n\017Object"
+ + "Checksums\022\023\n\006crc32c\030\001 \001(\007H\000\210\001\001\022\020\n\010md5_ha"
+ + "sh\030\002 \001(\014B\t\n\007_crc32c\"\255\002\n\017HmacKeyMetadata\022"
+ + "\017\n\002id\030\001 \001(\tB\003\340A\005\022\026\n\taccess_id\030\002 \001(\tB\003\340A\005"
+ + "\022D\n\007project\030\003 \001(\tB3\340A\005\372A-\n+cloudresource"
+ + "manager.googleapis.com/Project\022\"\n\025servic"
+ + "e_account_email\030\004 \001(\tB\003\340A\003\022\r\n\005state\030\005 \001("
+ + "\t\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf"
+ + ".TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.g",
+ "oogle.protobuf.TimestampB\003\340A\003\022\014\n\004etag\030\010 "
+ + "\001(\t\"\247\003\n\022NotificationConfig\022\021\n\004name\030\001 \001(\t"
+ + "B\003\340A\002\022\022\n\005topic\030\002 \001(\tB\003\340A\002\022\014\n\004etag\030\007 \001(\t\022"
+ + "\023\n\013event_types\030\003 \003(\t\022V\n\021custom_attribute"
+ + "s\030\004 \003(\0132;.google.storage.v2.Notification"
+ + "Config.CustomAttributesEntry\022\032\n\022object_n"
+ + "ame_prefix\030\005 \001(\t\022\033\n\016payload_format\030\006 \001(\t"
+ + "B\003\340A\002\0327\n\025CustomAttributesEntry\022\013\n\003key\030\001 "
+ + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:}\352Az\n)storage.goo"
+ + "gleapis.com/NotificationConfig\022Mprojects"
+ + "/{project}/buckets/{bucket}/notification"
+ + "Configs/{notification_config}\"L\n\022Custome"
+ + "rEncryption\022\034\n\024encryption_algorithm\030\001 \001("
+ + "\t\022\030\n\020key_sha256_bytes\030\003 \001(\014\"\202\t\n\006Object\022\021"
+ + "\n\004name\030\001 \001(\tB\003\340A\005\0225\n\006bucket\030\002 \001(\tB%\340A\005\372A"
+ + "\037\n\035storage.googleapis.com/Bucket\022\014\n\004etag"
+ + "\030\033 \001(\t\022\027\n\ngeneration\030\003 \001(\003B\003\340A\005\022\033\n\016metag"
+ + "eneration\030\004 \001(\003B\003\340A\003\022\025\n\rstorage_class\030\005 "
+ + "\001(\t\022\021\n\004size\030\006 \001(\003B\003\340A\003\022\030\n\020content_encodi"
+ + "ng\030\007 \001(\t\022\033\n\023content_disposition\030\010 \001(\t\022\025\n"
+ + "\rcache_control\030\t \001(\t\0223\n\003acl\030\n \003(\0132&.goog"
+ + "le.storage.v2.ObjectAccessControl\022\030\n\020con"
+ + "tent_language\030\013 \001(\t\0224\n\013delete_time\030\014 \001(\013"
+ + "2\032.google.protobuf.TimestampB\003\340A\003\022\024\n\014con"
+ + "tent_type\030\r \001(\t\0224\n\013create_time\030\016 \001(\0132\032.g"
+ + "oogle.protobuf.TimestampB\003\340A\003\022\034\n\017compone"
+ + "nt_count\030\017 \001(\005B\003\340A\003\022:\n\tchecksums\030\020 \001(\0132\""
+ + ".google.storage.v2.ObjectChecksumsB\003\340A\003\022"
+ + "4\n\013update_time\030\021 \001(\0132\032.google.protobuf.T"
+ + "imestampB\003\340A\003\0227\n\007kms_key\030\022 \001(\tB&\372A#\n!clo"
+ + "udkms.googleapis.com/CryptoKey\022B\n\031update"
+ + "_storage_class_time\030\023 \001(\0132\032.google.proto"
+ + "buf.TimestampB\003\340A\003\022\026\n\016temporary_hold\030\024 \001"
+ + "(\010\0229\n\025retention_expire_time\030\025 \001(\0132\032.goog"
+ + "le.protobuf.Timestamp\0229\n\010metadata\030\026 \003(\0132"
+ + "\'.google.storage.v2.Object.MetadataEntry"
+ + "\022\035\n\020event_based_hold\030\027 \001(\010H\000\210\001\001\022,\n\005owner"
+ + "\030\030 \001(\0132\030.google.storage.v2.OwnerB\003\340A\003\022B\n"
+ + "\023customer_encryption\030\031 \001(\0132%.google.stor"
+ + "age.v2.CustomerEncryption\022/\n\013custom_time"
+ + "\030\032 \001(\0132\032.google.protobuf.Timestamp\032/\n\rMe"
+ + "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:"
+ + "\0028\001B\023\n\021_event_based_hold\"\316\001\n\023ObjectAcces"
+ + "sControl\022\014\n\004role\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\016\n\006en"
+ + "tity\030\003 \001(\t\022\027\n\nentity_alt\030\t \001(\tB\003\340A\003\022\021\n\te"
+ + "ntity_id\030\004 \001(\t\022\014\n\004etag\030\010 \001(\t\022\r\n\005email\030\005 "
+ + "\001(\t\022\016\n\006domain\030\006 \001(\t\0224\n\014project_team\030\007 \001("
+ + "\0132\036.google.storage.v2.ProjectTeam\"l\n\023Lis"
+ + "tObjectsResponse\022*\n\007objects\030\001 \003(\0132\031.goog"
+ + "le.storage.v2.Object\022\020\n\010prefixes\030\002 \003(\t\022\027"
+ + "\n\017next_page_token\030\003 \001(\t\"3\n\013ProjectTeam\022\026"
+ + "\n\016project_number\030\001 \001(\t\022\014\n\004team\030\002 \001(\t\"\'\n\016"
+ + "ServiceAccount\022\025\n\remail_address\030\001 \001(\t\"*\n"
+ + "\005Owner\022\016\n\006entity\030\001 \001(\t\022\021\n\tentity_id\030\002 \001("
+ + "\t\"C\n\014ContentRange\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030"
+ + "\002 \001(\003\022\027\n\017complete_length\030\003 \001(\0032\252\'\n\007Stora"
+ + "ge\022r\n\014DeleteBucket\022&.google.storage.v2.D"
+ + "eleteBucketRequest\032\026.google.protobuf.Emp"
+ + "ty\"\"\332A\004name\212\323\344\223\002\025\022\023\n\004name\022\013{bucket=**}\022o"
+ + "\n\tGetBucket\022#.google.storage.v2.GetBucke"
+ + "tRequest\032\031.google.storage.v2.Bucket\"\"\332A\004"
+ + "name\212\323\344\223\002\025\022\023\n\004name\022\013{bucket=**}\022\253\001\n\014Crea"
+ + "teBucket\022&.google.storage.v2.CreateBucke"
+ + "tRequest\032\031.google.storage.v2.Bucket\"X\332A\027"
+ + "parent,bucket,bucket_id\212\323\344\223\0028\022\026\n\006parent\022"
+ + "\014{project=**}\022\036\n\016bucket.project\022\014{projec"
+ + "t=**}\022\205\001\n\013ListBuckets\022%.google.storage.v"
+ + "2.ListBucketsRequest\032&.google.storage.v2"
+ + ".ListBucketsResponse\"\'\332A\006parent\212\323\344\223\002\030\022\026\n"
+ + "\006parent\022\014{project=**}\022\223\001\n\031LockBucketRete"
+ + "ntionPolicy\0223.google.storage.v2.LockBuck"
+ + "etRetentionPolicyRequest\032\031.google.storag"
+ + "e.v2.Bucket\"&\332A\006bucket\212\323\344\223\002\027\022\025\n\006bucket\022\013"
+ + "{bucket=**}\022u\n\014GetIamPolicy\022\".google.iam"
+ + ".v1.GetIamPolicyRequest\032\025.google.iam.v1."
+ + "Policy\"*\332A\010resource\212\323\344\223\002\031\022\027\n\010resource\022\013{"
+ + "bucket=**}\022|\n\014SetIamPolicy\022\".google.iam."
+ + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P"
+ + "olicy\"1\332A\017resource,policy\212\323\344\223\002\031\022\027\n\010resou"
+ + "rce\022\013{bucket=**}\022\327\001\n\022TestIamPermissions\022"
+ + "(.google.iam.v1.TestIamPermissionsReques"
+ + "t\032).google.iam.v1.TestIamPermissionsResp"
+ + "onse\"l\332A\024resource,permissions\212\323\344\223\002O\022\027\n\010r"
+ + "esource\022\013{bucket=**}\0224\n\010resource\022({bucke"
+ + "t=projects/*/buckets/*}/objects/**\022\212\001\n\014U"
+ + "pdateBucket\022&.google.storage.v2.UpdateBu"
+ + "cketRequest\032\031.google.storage.v2.Bucket\"7"
+ + "\332A\022bucket,update_mask\212\323\344\223\002\034\022\032\n\013bucket.na"
+ + "me\022\013{bucket=**}\022\237\001\n\030DeleteNotificationCo"
+ + "nfig\0222.google.storage.v2.DeleteNotificat"
+ + "ionConfigRequest\032\026.google.protobuf.Empty"
+ + "\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=project"
+ + "s/*/buckets/*}/**\022\250\001\n\025GetNotificationCon"
+ + "fig\022/.google.storage.v2.GetNotificationC"
+ + "onfigRequest\032%.google.storage.v2.Notific"
+ + "ationConfig\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {buc"
+ + "ket=projects/*/buckets/*}/**\022\261\001\n\030CreateN"
+ + "otificationConfig\0222.google.storage.v2.Cr"
+ + "eateNotificationConfigRequest\032%.google.s"
+ + "torage.v2.NotificationConfig\":\332A\032parent,"
+ + "notification_config\212\323\344\223\002\027\022\025\n\006parent\022\013{bu"
+ + "cket=**}\022\250\001\n\027ListNotificationConfigs\0221.g"
+ + "oogle.storage.v2.ListNotificationConfigs"
+ + "Request\0322.google.storage.v2.ListNotifica"
+ + "tionConfigsResponse\"&\332A\006parent\212\323\344\223\002\027\022\025\n\006"
+ + "parent\022\013{bucket=**}\022~\n\rComposeObject\022\'.g"
+ + "oogle.storage.v2.ComposeObjectRequest\032\031."
+ + "google.storage.v2.Object\")\212\323\344\223\002#\022!\n\022dest"
+ + "ination.bucket\022\013{bucket=**}\022\230\001\n\014DeleteOb"
+ + "ject\022&.google.storage.v2.DeleteObjectReq"
+ + "uest\032\026.google.protobuf.Empty\"H\332A\rbucket,"
+ + "object\332A\030bucket,object,generation\212\323\344\223\002\027\022"
+ + "\025\n\006bucket\022\013{bucket=**}\022\215\001\n\rRestoreObject"
+ + "\022\'.google.storage.v2.RestoreObjectReques"
+ + "t\032\031.google.storage.v2.Object\"8\332A\030bucket,"
+ + "object,generation\212\323\344\223\002\027\022\025\n\006bucket\022\013{buck"
+ + "et=**}\022\272\001\n\024CancelResumableWrite\022..google"
+ + ".storage.v2.CancelResumableWriteRequest\032"
+ + "/.google.storage.v2.CancelResumableWrite"
+ + "Response\"A\332A\tupload_id\212\323\344\223\002/\022-\n\tupload_i"
+ + "d\022 {bucket=projects/*/buckets/*}/**\022\225\001\n\t"
+ + "GetObject\022#.google.storage.v2.GetObjectR"
+ + "equest\032\031.google.storage.v2.Object\"H\332A\rbu"
+ "cket,object\332A\030bucket,object,generation\212\323"
- + "\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}0\001\022\214\001\n\014Update"
- + "Object\022&.google.storage.v2.UpdateObjectR"
- + "equest\032\031.google.storage.v2.Object\"9\332A\022ob"
- + "ject,update_mask\212\323\344\223\002\036\022\034\n\robject.bucket\022"
- + "\013{bucket=**}\022`\n\013WriteObject\022%.google.sto"
- + "rage.v2.WriteObjectRequest\032&.google.stor"
- + "age.v2.WriteObjectResponse\"\000(\001\022n\n\017BidiWr"
- + "iteObject\022).google.storage.v2.BidiWriteO"
- + "bjectRequest\032*.google.storage.v2.BidiWri"
- + "teObjectResponse\"\000(\0010\001\022\204\001\n\013ListObjects\022%"
- + ".google.storage.v2.ListObjectsRequest\032&."
- + "google.storage.v2.ListObjectsResponse\"&\332"
- + "A\006parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\230\001"
- + "\n\rRewriteObject\022\'.google.storage.v2.Rewr"
- + "iteObjectRequest\032\".google.storage.v2.Rew"
- + "riteResponse\":\212\323\344\223\0024\022\017\n\rsource_bucket\022!\n"
- + "\022destination_bucket\022\013{bucket=**}\022\256\001\n\023Sta"
- + "rtResumableWrite\022-.google.storage.v2.Sta"
- + "rtResumableWriteRequest\032..google.storage"
- + ".v2.StartResumableWriteResponse\"8\212\323\344\223\0022\022"
- + "0\n!write_object_spec.resource.bucket\022\013{b"
- + "ucket=**}\022\256\001\n\020QueryWriteStatus\022*.google."
- + "storage.v2.QueryWriteStatusRequest\032+.goo"
- + "gle.storage.v2.QueryWriteStatusResponse\""
- + "A\332A\tupload_id\212\323\344\223\002/\022-\n\tupload_id\022 {bucke"
- + "t=projects/*/buckets/*}/**\022\200\001\n\021GetServic"
- + "eAccount\022+.google.storage.v2.GetServiceA"
- + "ccountRequest\032!.google.storage.v2.Servic"
- + "eAccount\"\033\332A\007project\212\323\344\223\002\013\022\t\n\007project\022\225\001"
- + "\n\rCreateHmacKey\022\'.google.storage.v2.Crea"
- + "teHmacKeyRequest\032(.google.storage.v2.Cre"
- + "ateHmacKeyResponse\"1\332A\035project,service_a"
- + "ccount_email\212\323\344\223\002\013\022\t\n\007project\022w\n\rDeleteH"
- + "macKey\022\'.google.storage.v2.DeleteHmacKey"
- + "Request\032\026.google.protobuf.Empty\"%\332A\021acce"
- + "ss_id,project\212\323\344\223\002\013\022\t\n\007project\022}\n\nGetHma"
- + "cKey\022$.google.storage.v2.GetHmacKeyReque"
- + "st\032\".google.storage.v2.HmacKeyMetadata\"%"
- + "\332A\021access_id,project\212\323\344\223\002\013\022\t\n\007project\022|\n"
- + "\014ListHmacKeys\022&.google.storage.v2.ListHm"
- + "acKeysRequest\032\'.google.storage.v2.ListHm"
- + "acKeysResponse\"\033\332A\007project\212\323\344\223\002\013\022\t\n\007proj"
- + "ect\022\235\001\n\rUpdateHmacKey\022\'.google.storage.v"
- + "2.UpdateHmacKeyRequest\032\".google.storage."
- + "v2.HmacKeyMetadata\"?\332A\024hmac_key,update_m"
- + "ask\212\323\344\223\002\"\022 \n\020hmac_key.project\022\014{project="
- + "**}\032\247\002\312A\026storage.googleapis.com\322A\212\002https"
- + "://www.googleapis.com/auth/cloud-platfor"
- + "m,https://www.googleapis.com/auth/cloud-"
- + "platform.read-only,https://www.googleapi"
- + "s.com/auth/devstorage.full_control,https"
- + "://www.googleapis.com/auth/devstorage.re"
- + "ad_only,https://www.googleapis.com/auth/"
- + "devstorage.read_writeB\342\001\n\025com.google.sto"
- + "rage.v2B\014StorageProtoP\001Z>cloud.google.co"
- + "m/go/storage/internal/apiv2/storagepb;st"
- + "oragepb\352Ax\n!cloudkms.googleapis.com/Cryp"
- + "toKey\022Sprojects/{project}/locations/{loc"
- + "ation}/keyRings/{key_ring}/cryptoKeys/{c"
- + "rypto_key}b\006proto3"
+ + "\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\022\245\001\n\nReadObje"
+ + "ct\022$.google.storage.v2.ReadObjectRequest"
+ + "\032%.google.storage.v2.ReadObjectResponse\""
+ + "H\332A\rbucket,object\332A\030bucket,object,genera"
+ + "tion\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}0\001\022\214\001\n\014"
+ + "UpdateObject\022&.google.storage.v2.UpdateO"
+ + "bjectRequest\032\031.google.storage.v2.Object\""
+ + "9\332A\022object,update_mask\212\323\344\223\002\036\022\034\n\robject.b"
+ + "ucket\022\013{bucket=**}\022`\n\013WriteObject\022%.goog"
+ + "le.storage.v2.WriteObjectRequest\032&.googl"
+ + "e.storage.v2.WriteObjectResponse\"\000(\001\022n\n\017"
+ + "BidiWriteObject\022).google.storage.v2.Bidi"
+ + "WriteObjectRequest\032*.google.storage.v2.B"
+ + "idiWriteObjectResponse\"\000(\0010\001\022\204\001\n\013ListObj"
+ + "ects\022%.google.storage.v2.ListObjectsRequ"
+ + "est\032&.google.storage.v2.ListObjectsRespo"
+ + "nse\"&\332A\006parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket="
+ + "**}\022\230\001\n\rRewriteObject\022\'.google.storage.v"
+ + "2.RewriteObjectRequest\032\".google.storage."
+ + "v2.RewriteResponse\":\212\323\344\223\0024\022\017\n\rsource_buc"
+ + "ket\022!\n\022destination_bucket\022\013{bucket=**}\022\256"
+ + "\001\n\023StartResumableWrite\022-.google.storage."
+ + "v2.StartResumableWriteRequest\032..google.s"
+ + "torage.v2.StartResumableWriteResponse\"8\212"
+ + "\323\344\223\0022\0220\n!write_object_spec.resource.buck"
+ + "et\022\013{bucket=**}\022\256\001\n\020QueryWriteStatus\022*.g"
+ + "oogle.storage.v2.QueryWriteStatusRequest"
+ + "\032+.google.storage.v2.QueryWriteStatusRes"
+ + "ponse\"A\332A\tupload_id\212\323\344\223\002/\022-\n\tupload_id\022 "
+ + "{bucket=projects/*/buckets/*}/**\022\200\001\n\021Get"
+ + "ServiceAccount\022+.google.storage.v2.GetSe"
+ + "rviceAccountRequest\032!.google.storage.v2."
+ + "ServiceAccount\"\033\332A\007project\212\323\344\223\002\013\022\t\n\007proj"
+ + "ect\022\225\001\n\rCreateHmacKey\022\'.google.storage.v"
+ + "2.CreateHmacKeyRequest\032(.google.storage."
+ + "v2.CreateHmacKeyResponse\"1\332A\035project,ser"
+ + "vice_account_email\212\323\344\223\002\013\022\t\n\007project\022w\n\rD"
+ + "eleteHmacKey\022\'.google.storage.v2.DeleteH"
+ + "macKeyRequest\032\026.google.protobuf.Empty\"%\332"
+ + "A\021access_id,project\212\323\344\223\002\013\022\t\n\007project\022}\n\n"
+ + "GetHmacKey\022$.google.storage.v2.GetHmacKe"
+ + "yRequest\032\".google.storage.v2.HmacKeyMeta"
+ + "data\"%\332A\021access_id,project\212\323\344\223\002\013\022\t\n\007proj"
+ + "ect\022|\n\014ListHmacKeys\022&.google.storage.v2."
+ + "ListHmacKeysRequest\032\'.google.storage.v2."
+ + "ListHmacKeysResponse\"\033\332A\007project\212\323\344\223\002\013\022\t"
+ + "\n\007project\022\235\001\n\rUpdateHmacKey\022\'.google.sto"
+ + "rage.v2.UpdateHmacKeyRequest\032\".google.st"
+ + "orage.v2.HmacKeyMetadata\"?\332A\024hmac_key,up"
+ + "date_mask\212\323\344\223\002\"\022 \n\020hmac_key.project\022\014{pr"
+ + "oject=**}\032\247\002\312A\026storage.googleapis.com\322A\212"
+ + "\002https://www.googleapis.com/auth/cloud-p"
+ + "latform,https://www.googleapis.com/auth/"
+ + "cloud-platform.read-only,https://www.goo"
+ + "gleapis.com/auth/devstorage.full_control"
+ + ",https://www.googleapis.com/auth/devstor"
+ + "age.read_only,https://www.googleapis.com"
+ + "/auth/devstorage.read_writeB\342\001\n\025com.goog"
+ + "le.storage.v2B\014StorageProtoP\001Z>cloud.goo"
+ + "gle.com/go/storage/internal/apiv2/storag"
+ + "epb;storagepb\352Ax\n!cloudkms.googleapis.co"
+ + "m/CryptoKey\022Sprojects/{project}/location"
+ + "s/{location}/keyRings/{key_ring}/cryptoK"
+ + "eys/{crypto_key}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -964,11 +960,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_storage_v2_DeleteBucketRequest_descriptor,
new java.lang.String[] {
- "Name",
- "IfMetagenerationMatch",
- "IfMetagenerationNotMatch",
- "IfMetagenerationMatch",
- "IfMetagenerationNotMatch",
+ "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch",
});
internal_static_google_storage_v2_GetBucketRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
@@ -976,13 +968,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_storage_v2_GetBucketRequest_descriptor,
new java.lang.String[] {
- "Name",
- "IfMetagenerationMatch",
- "IfMetagenerationNotMatch",
- "ReadMask",
- "IfMetagenerationMatch",
- "IfMetagenerationNotMatch",
- "ReadMask",
+ "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "ReadMask",
});
internal_static_google_storage_v2_CreateBucketRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
@@ -998,7 +984,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_storage_v2_ListBucketsRequest_descriptor,
new java.lang.String[] {
- "Parent", "PageSize", "PageToken", "Prefix", "ReadMask", "ReadMask",
+ "Parent", "PageSize", "PageToken", "Prefix", "ReadMask",
});
internal_static_google_storage_v2_ListBucketsResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
@@ -1028,8 +1014,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"PredefinedAcl",
"PredefinedDefaultObjectAcl",
"UpdateMask",
- "IfMetagenerationMatch",
- "IfMetagenerationNotMatch",
});
internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
@@ -1085,8 +1069,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"KmsKey",
"CommonObjectRequestParams",
"ObjectChecksums",
- "IfGenerationMatch",
- "IfMetagenerationMatch",
});
internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor =
internal_static_google_storage_v2_ComposeObjectRequest_descriptor.getNestedTypes().get(0);
@@ -1104,7 +1086,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor,
new java.lang.String[] {
- "IfGenerationMatch", "IfGenerationMatch",
+ "IfGenerationMatch",
});
internal_static_google_storage_v2_DeleteObjectRequest_descriptor =
getDescriptor().getMessageTypes().get(13);
@@ -1120,10 +1102,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"IfMetagenerationMatch",
"IfMetagenerationNotMatch",
"CommonObjectRequestParams",
- "IfGenerationMatch",
- "IfGenerationNotMatch",
- "IfMetagenerationMatch",
- "IfMetagenerationNotMatch",
});
internal_static_google_storage_v2_RestoreObjectRequest_descriptor =
getDescriptor().getMessageTypes().get(14);
@@ -1140,11 +1118,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"IfMetagenerationNotMatch",
"CopySourceAcl",
"CommonObjectRequestParams",
- "IfGenerationMatch",
- "IfGenerationNotMatch",
- "IfMetagenerationMatch",
- "IfMetagenerationNotMatch",
- "CopySourceAcl",
});
internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor =
getDescriptor().getMessageTypes().get(15);
@@ -1177,11 +1150,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"IfMetagenerationNotMatch",
"CommonObjectRequestParams",
"ReadMask",
- "IfGenerationMatch",
- "IfGenerationNotMatch",
- "IfMetagenerationMatch",
- "IfMetagenerationNotMatch",
- "ReadMask",
});
internal_static_google_storage_v2_GetObjectRequest_descriptor =
getDescriptor().getMessageTypes().get(18);
@@ -1199,12 +1167,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"IfMetagenerationNotMatch",
"CommonObjectRequestParams",
"ReadMask",
- "SoftDeleted",
- "IfGenerationMatch",
- "IfGenerationNotMatch",
- "IfMetagenerationMatch",
- "IfMetagenerationNotMatch",
- "ReadMask",
});
internal_static_google_storage_v2_ReadObjectResponse_descriptor =
getDescriptor().getMessageTypes().get(19);
@@ -1227,11 +1189,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"IfMetagenerationMatch",
"IfMetagenerationNotMatch",
"ObjectSize",
- "IfGenerationMatch",
- "IfGenerationNotMatch",
- "IfMetagenerationMatch",
- "IfMetagenerationNotMatch",
- "ObjectSize",
});
internal_static_google_storage_v2_WriteObjectRequest_descriptor =
getDescriptor().getMessageTypes().get(21);
@@ -1301,7 +1258,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"LexicographicEnd",
"SoftDeleted",
"MatchGlob",
- "ReadMask",
});
internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor =
getDescriptor().getMessageTypes().get(26);
@@ -1348,14 +1304,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"CopySourceEncryptionKeySha256Bytes",
"CommonObjectRequestParams",
"ObjectChecksums",
- "IfGenerationMatch",
- "IfGenerationNotMatch",
- "IfMetagenerationMatch",
- "IfMetagenerationNotMatch",
- "IfSourceGenerationMatch",
- "IfSourceGenerationNotMatch",
- "IfSourceMetagenerationMatch",
- "IfSourceMetagenerationNotMatch",
});
internal_static_google_storage_v2_RewriteResponse_descriptor =
getDescriptor().getMessageTypes().get(29);
@@ -1395,10 +1343,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"PredefinedAcl",
"UpdateMask",
"CommonObjectRequestParams",
- "IfGenerationMatch",
- "IfGenerationNotMatch",
- "IfMetagenerationMatch",
- "IfMetagenerationNotMatch",
});
internal_static_google_storage_v2_GetServiceAccountRequest_descriptor =
getDescriptor().getMessageTypes().get(33);
@@ -1594,11 +1538,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"NoncurrentTimeBefore",
"MatchesPrefix",
"MatchesSuffix",
- "AgeDays",
- "IsLive",
- "NumNewerVersions",
- "DaysSinceCustomTime",
- "DaysSinceNoncurrentTime",
});
internal_static_google_storage_v2_Bucket_Logging_descriptor =
internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(5);
@@ -1622,7 +1561,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor,
new java.lang.String[] {
- "RetentionDuration", "EffectiveTime", "RetentionDuration", "EffectiveTime",
+ "RetentionDuration", "EffectiveTime",
});
internal_static_google_storage_v2_Bucket_Versioning_descriptor =
internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(8);
@@ -1654,12 +1593,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_storage_v2_Bucket_Autoclass_descriptor,
new java.lang.String[] {
- "Enabled",
- "ToggleTime",
- "TerminalStorageClass",
- "TerminalStorageClassUpdateTime",
- "TerminalStorageClass",
- "TerminalStorageClassUpdateTime",
+ "Enabled", "ToggleTime", "TerminalStorageClass", "TerminalStorageClassUpdateTime",
});
internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor =
internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(12);
@@ -1691,7 +1625,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_storage_v2_ChecksummedData_descriptor,
new java.lang.String[] {
- "Content", "Crc32C", "Crc32C",
+ "Content", "Crc32C",
});
internal_static_google_storage_v2_ObjectChecksums_descriptor =
getDescriptor().getMessageTypes().get(46);
@@ -1699,7 +1633,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_storage_v2_ObjectChecksums_descriptor,
new java.lang.String[] {
- "Crc32C", "Md5Hash", "Crc32C",
+ "Crc32C", "Md5Hash",
});
internal_static_google_storage_v2_HmacKeyMetadata_descriptor =
getDescriptor().getMessageTypes().get(47);
@@ -1778,7 +1712,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Owner",
"CustomerEncryption",
"CustomTime",
- "EventBasedHold",
});
internal_static_google_storage_v2_Object_MetadataEntry_descriptor =
internal_static_google_storage_v2_Object_descriptor.getNestedTypes().get(0);
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java
index 4152fc7326..30f7424aa0 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -80,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasBucket() {
- return bucket_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -129,7 +130,7 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
*/
@java.lang.Override
public boolean hasIfMetagenerationMatch() {
- return ((bitField0_ & 0x00000001) != 0);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -164,7 +165,7 @@ public long getIfMetagenerationMatch() {
*/
@java.lang.Override
public boolean hasIfMetagenerationNotMatch() {
- return ((bitField0_ & 0x00000002) != 0);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -316,7 +317,7 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() {
*/
@java.lang.Override
public boolean hasUpdateMask() {
- return updateMask_ != null;
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -377,16 +378,16 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (bucket_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getBucket());
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, ifMetagenerationMatch_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, ifMetagenerationNotMatch_);
}
- if (updateMask_ != null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedAcl_)) {
@@ -404,16 +405,16 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (bucket_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBucket());
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ifMetagenerationMatch_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationNotMatch_);
}
- if (updateMask_ != null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedAcl_)) {
@@ -618,10 +619,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.UpdateBucketRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getBucketFieldBuilder();
+ getUpdateMaskFieldBuilder();
+ }
}
@java.lang.Override
@@ -678,17 +689,18 @@ public com.google.storage.v2.UpdateBucketRequest buildPartial() {
private void buildPartial0(com.google.storage.v2.UpdateBucketRequest result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
- int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.ifMetagenerationMatch_ = ifMetagenerationMatch_;
- to_bitField0_ |= 0x00000001;
+ to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.ifMetagenerationNotMatch_ = ifMetagenerationNotMatch_;
- to_bitField0_ |= 0x00000002;
+ to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.predefinedAcl_ = predefinedAcl_;
@@ -698,6 +710,7 @@ private void buildPartial0(com.google.storage.v2.UpdateBucketRequest result) {
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@@ -955,8 +968,10 @@ public Builder mergeBucket(com.google.storage.v2.Bucket value) {
} else {
bucketBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (bucket_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
@@ -1556,8 +1571,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
} else {
updateMaskBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000020;
- onChanged();
+ if (updateMask_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java
index 5917c1c8ac..67e1b64cbc 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface UpdateBucketRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java
index 37fcd90c0c..cdf494ccd7 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.storage.v2.UpdateHmacKeyRequest.Builder.class);
}
+ private int bitField0_;
public static final int HMAC_KEY_FIELD_NUMBER = 1;
private com.google.storage.v2.HmacKeyMetadata hmacKey_;
/**
@@ -83,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasHmacKey() {
- return hmacKey_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -141,7 +143,7 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() {
*/
@java.lang.Override
public boolean hasUpdateMask() {
- return updateMask_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -190,10 +192,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (hmacKey_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getHmacKey());
}
- if (updateMask_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getUpdateMask());
}
getUnknownFields().writeTo(output);
@@ -205,10 +207,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (hmacKey_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHmacKey());
}
- if (updateMask_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
}
size += getUnknownFields().getSerializedSize();
@@ -386,10 +388,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.UpdateHmacKeyRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getHmacKeyFieldBuilder();
+ getUpdateMaskFieldBuilder();
+ }
}
@java.lang.Override
@@ -442,12 +454,16 @@ public com.google.storage.v2.UpdateHmacKeyRequest buildPartial() {
private void buildPartial0(com.google.storage.v2.UpdateHmacKeyRequest result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hmacKey_ = hmacKeyBuilder_ == null ? hmacKey_ : hmacKeyBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -685,8 +701,10 @@ public Builder mergeHmacKey(com.google.storage.v2.HmacKeyMetadata value) {
} else {
hmacKeyBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (hmacKey_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
@@ -898,8 +916,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
} else {
updateMaskBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+ if (updateMask_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
index f276a58154..7a14645ccf 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface UpdateHmacKeyRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java
index f1fb42789e..fe7c51344a 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -82,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasObject() {
- return object_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -138,7 +139,7 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
*/
@java.lang.Override
public boolean hasIfGenerationMatch() {
- return ((bitField0_ & 0x00000001) != 0);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -176,7 +177,7 @@ public long getIfGenerationMatch() {
*/
@java.lang.Override
public boolean hasIfGenerationNotMatch() {
- return ((bitField0_ & 0x00000002) != 0);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -213,7 +214,7 @@ public long getIfGenerationNotMatch() {
*/
@java.lang.Override
public boolean hasIfMetagenerationMatch() {
- return ((bitField0_ & 0x00000004) != 0);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -248,7 +249,7 @@ public long getIfMetagenerationMatch() {
*/
@java.lang.Override
public boolean hasIfMetagenerationNotMatch() {
- return ((bitField0_ & 0x00000008) != 0);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -345,7 +346,7 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
*/
@java.lang.Override
public boolean hasUpdateMask() {
- return updateMask_ != null;
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
*
@@ -407,7 +408,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
*/
@java.lang.Override
public boolean hasCommonObjectRequestParams() {
- return commonObjectRequestParams_ != null;
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
*
@@ -457,25 +458,25 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (object_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getObject());
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, ifGenerationMatch_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, ifGenerationNotMatch_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(4, ifMetagenerationMatch_);
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(5, ifMetagenerationNotMatch_);
}
- if (updateMask_ != null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(7, getUpdateMask());
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(8, getCommonObjectRequestParams());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedAcl_)) {
@@ -490,25 +491,25 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (object_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getObject());
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ifGenerationMatch_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifGenerationNotMatch_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationMatch_);
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationNotMatch_);
}
- if (updateMask_ != null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateMask());
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000040) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
8, getCommonObjectRequestParams());
@@ -732,10 +733,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.UpdateObjectRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getObjectFieldBuilder();
+ getUpdateMaskFieldBuilder();
+ getCommonObjectRequestParamsFieldBuilder();
+ }
}
@java.lang.Override
@@ -798,37 +810,40 @@ public com.google.storage.v2.UpdateObjectRequest buildPartial() {
private void buildPartial0(com.google.storage.v2.UpdateObjectRequest result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.object_ = objectBuilder_ == null ? object_ : objectBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
- int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.ifGenerationMatch_ = ifGenerationMatch_;
- to_bitField0_ |= 0x00000001;
+ to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.ifGenerationNotMatch_ = ifGenerationNotMatch_;
- to_bitField0_ |= 0x00000002;
+ to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.ifMetagenerationMatch_ = ifMetagenerationMatch_;
- to_bitField0_ |= 0x00000004;
+ to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.ifMetagenerationNotMatch_ = ifMetagenerationNotMatch_;
- to_bitField0_ |= 0x00000008;
+ to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.predefinedAcl_ = predefinedAcl_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.commonObjectRequestParams_ =
commonObjectRequestParamsBuilder_ == null
? commonObjectRequestParams_
: commonObjectRequestParamsBuilder_.build();
+ to_bitField0_ |= 0x00000040;
}
result.bitField0_ |= to_bitField0_;
}
@@ -1118,8 +1133,10 @@ public Builder mergeObject(com.google.storage.v2.Object value) {
} else {
objectBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (object_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
@@ -1771,8 +1788,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
} else {
updateMaskBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000040;
- onChanged();
+ if (updateMask_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
return this;
}
/**
@@ -1990,8 +2009,10 @@ public Builder mergeCommonObjectRequestParams(
} else {
commonObjectRequestParamsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000080;
- onChanged();
+ if (commonObjectRequestParams_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java
index e87e0c1dd9..24446a84b7 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface UpdateObjectRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java
index 51a90b30e6..9071cfe9d9 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.storage.v2.WriteObjectRequest.Builder.class);
}
+ private int bitField0_;
private int firstMessageCase_ = 0;
@SuppressWarnings("serial")
@@ -384,7 +386,7 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
*/
@java.lang.Override
public boolean hasObjectChecksums() {
- return objectChecksums_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -463,7 +465,7 @@ public boolean getFinishWrite() {
*/
@java.lang.Override
public boolean hasCommonObjectRequestParams() {
- return commonObjectRequestParams_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -525,13 +527,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (dataCase_ == 4) {
output.writeMessage(4, (com.google.storage.v2.ChecksummedData) data_);
}
- if (objectChecksums_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(6, getObjectChecksums());
}
if (finishWrite_ != false) {
output.writeBool(7, finishWrite_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(8, getCommonObjectRequestParams());
}
getUnknownFields().writeTo(output);
@@ -559,13 +561,13 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
4, (com.google.storage.v2.ChecksummedData) data_);
}
- if (objectChecksums_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getObjectChecksums());
}
if (finishWrite_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, finishWrite_);
}
- if (commonObjectRequestParams_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
8, getCommonObjectRequestParams());
@@ -787,10 +789,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.WriteObjectRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getObjectChecksumsFieldBuilder();
+ getCommonObjectRequestParamsFieldBuilder();
+ }
}
@java.lang.Override
@@ -859,9 +871,11 @@ private void buildPartial0(com.google.storage.v2.WriteObjectRequest result) {
if (((from_bitField0_ & 0x00000004) != 0)) {
result.writeOffset_ = writeOffset_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.objectChecksums_ =
objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.finishWrite_ = finishWrite_;
@@ -871,7 +885,9 @@ private void buildPartial0(com.google.storage.v2.WriteObjectRequest result) {
commonObjectRequestParamsBuilder_ == null
? commonObjectRequestParams_
: commonObjectRequestParamsBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
+ result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.storage.v2.WriteObjectRequest result) {
@@ -1870,8 +1886,10 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
} else {
objectChecksumsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000010;
- onChanged();
+ if (objectChecksums_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
return this;
}
/**
@@ -2137,8 +2155,10 @@ public Builder mergeCommonObjectRequestParams(
} else {
commonObjectRequestParamsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000040;
- onChanged();
+ if (commonObjectRequestParams_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java
index 3d78815c6d..f0efb8f1ac 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface WriteObjectRequestOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java
index d5f611a4b2..5ae8dc20e6 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
index 1a27b9ac88..55ffac3007 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface WriteObjectResponseOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java
index e01485764e..0aad6e0eb9 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
/**
@@ -78,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasResource() {
- return resource_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -181,7 +182,7 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
*/
@java.lang.Override
public boolean hasIfGenerationMatch() {
- return ((bitField0_ & 0x00000001) != 0);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -219,7 +220,7 @@ public long getIfGenerationMatch() {
*/
@java.lang.Override
public boolean hasIfGenerationNotMatch() {
- return ((bitField0_ & 0x00000002) != 0);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -256,7 +257,7 @@ public long getIfGenerationNotMatch() {
*/
@java.lang.Override
public boolean hasIfMetagenerationMatch() {
- return ((bitField0_ & 0x00000004) != 0);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -291,7 +292,7 @@ public long getIfMetagenerationMatch() {
*/
@java.lang.Override
public boolean hasIfMetagenerationNotMatch() {
- return ((bitField0_ & 0x00000008) != 0);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -331,7 +332,7 @@ public long getIfMetagenerationNotMatch() {
*/
@java.lang.Override
public boolean hasObjectSize() {
- return ((bitField0_ & 0x00000010) != 0);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
*
@@ -369,25 +370,25 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (resource_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getResource());
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(3, ifGenerationMatch_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(4, ifGenerationNotMatch_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(5, ifMetagenerationMatch_);
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(6, ifMetagenerationNotMatch_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedAcl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, predefinedAcl_);
}
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(8, objectSize_);
}
getUnknownFields().writeTo(output);
@@ -399,25 +400,25 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (resource_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResource());
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifGenerationMatch_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifGenerationNotMatch_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationMatch_);
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, ifMetagenerationNotMatch_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedAcl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, predefinedAcl_);
}
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, objectSize_);
}
size += getUnknownFields().getSerializedSize();
@@ -625,10 +626,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.storage.v2.WriteObjectSpec.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getResourceFieldBuilder();
+ }
}
@java.lang.Override
@@ -682,32 +692,33 @@ public com.google.storage.v2.WriteObjectSpec buildPartial() {
private void buildPartial0(com.google.storage.v2.WriteObjectSpec result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.predefinedAcl_ = predefinedAcl_;
}
- int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.ifGenerationMatch_ = ifGenerationMatch_;
- to_bitField0_ |= 0x00000001;
+ to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.ifGenerationNotMatch_ = ifGenerationNotMatch_;
- to_bitField0_ |= 0x00000002;
+ to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.ifMetagenerationMatch_ = ifMetagenerationMatch_;
- to_bitField0_ |= 0x00000004;
+ to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.ifMetagenerationNotMatch_ = ifMetagenerationNotMatch_;
- to_bitField0_ |= 0x00000008;
+ to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.objectSize_ = objectSize_;
- to_bitField0_ |= 0x00000010;
+ to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@@ -972,8 +983,10 @@ public Builder mergeResource(com.google.storage.v2.Object value) {
} else {
resourceBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (resource_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java
index 554af4dfbd..8643b90e81 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
+// Protobuf Java Version: 3.25.2
package com.google.storage.v2;
public interface WriteObjectSpecOrBuilder
diff --git a/proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto b/proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto
index c9f50a15b5..de6e27ea35 100644
--- a/proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto
+++ b/proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto
@@ -112,34 +112,24 @@ service Storage {
option (google.api.method_signature) = "bucket";
}
- // Gets the IAM policy for a specified bucket or object.
+ // Gets the IAM policy for a specified bucket.
// The `resource` field in the request should be
- // `projects/_/buckets/{bucket}` for a bucket or
- // `projects/_/buckets/{bucket}/objects/{object}` for an object.
+ // `projects/_/buckets/{bucket}`.
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
returns (google.iam.v1.Policy) {
option (google.api.routing) = {
routing_parameters { field: "resource" path_template: "{bucket=**}" }
- routing_parameters {
- field: "resource"
- path_template: "{bucket=projects/*/buckets/*}/objects/**"
- }
};
option (google.api.method_signature) = "resource";
}
- // Updates an IAM policy for the specified bucket or object.
+ // Updates an IAM policy for the specified bucket.
// The `resource` field in the request should be
- // `projects/_/buckets/{bucket}` for a bucket or
- // `projects/_/buckets/{bucket}/objects/{object}` for an object.
+ // `projects/_/buckets/{bucket}`.
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest)
returns (google.iam.v1.Policy) {
option (google.api.routing) = {
routing_parameters { field: "resource" path_template: "{bucket=**}" }
- routing_parameters {
- field: "resource"
- path_template: "{bucket=projects/*/buckets/*}/objects/**"
- }
};
option (google.api.method_signature) = "resource,policy";
}
@@ -1158,13 +1148,16 @@ message BidiWriteObjectRequest {
// covers all the bytes the server has persisted thus far and can be used to
// decide what data is safe for the client to drop. Note that the object's
// current size reported by the BidiWriteObjectResponse may lag behind the
- // number of bytes written by the client.
+ // number of bytes written by the client. This field is ignored if
+ // `finish_write` is set to true.
bool state_lookup = 7;
// Persists data written on the stream, up to and including the current
// message, to permanent storage. This option should be used sparingly as it
// may reduce performance. Ongoing writes will periodically be persisted on
- // the server even when `flush` is not set.
+ // the server even when `flush` is not set. This field is ignored if
+ // `finish_write` is set to true since there's no need to checkpoint or flush
+ // if this message completes the write.
bool flush = 8;
// If `true`, this indicates that the write is complete. Sending any
@@ -2560,10 +2553,10 @@ message Owner {
// Specifies a requested range of bytes to download.
message ContentRange {
- // The starting offset of the object data.
+ // The starting offset of the object data. This value is inclusive.
int64 start = 1;
- // The ending offset of the object data.
+ // The ending offset of the object data. This value is exclusive.
int64 end = 2;
// The complete length of the object data.