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 efea61363..250ebe6a1 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 @@ -442,9 +442,9 @@ public final UnaryCallable getBucketCallable() { * } * * @param parent Required. The project to which this bucket will belong. - * @param bucket Required. Properties of the new bucket being inserted. The project and name of - * the bucket are specified in the parent and bucket_id fields, respectively. Populating those - * fields in `bucket` will result in an error. + * @param bucket Properties of the new bucket being inserted. The project and name of the bucket + * are specified in the parent and bucket_id fields, respectively. Populating those fields in + * `bucket` will result in an error. * @param bucketId Required. The ID to use for this bucket, which will become the final component * of the bucket's resource name. For example, the value `foo` might result in a bucket with * the name `projects/123456/buckets/foo`. @@ -481,9 +481,9 @@ public final Bucket createBucket(ProjectName parent, Bucket bucket, String bucke * } * * @param parent Required. The project to which this bucket will belong. - * @param bucket Required. Properties of the new bucket being inserted. The project and name of - * the bucket are specified in the parent and bucket_id fields, respectively. Populating those - * fields in `bucket` will result in an error. + * @param bucket Properties of the new bucket being inserted. The project and name of the bucket + * are specified in the parent and bucket_id fields, respectively. Populating those fields in + * `bucket` will result in an error. * @param bucketId Required. The ID to use for this bucket, which will become the final component * of the bucket's resource name. For example, the value `foo` might result in a bucket with * the name `projects/123456/buckets/foo`. @@ -1256,9 +1256,9 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * } * } * - * @param bucket The bucket to update. The bucket's `name` field will be used to identify the - * bucket. - * @param updateMask List of fields to be updated. + * @param bucket Required. The bucket to update. The bucket's `name` field will be used to + * identify the bucket. + * @param updateMask Required. List of fields to be updated. *

To specify ALL fields, equivalent to the JSON API's "update" function, specify a single * field with the value `*`. Note: not recommended. If a new field is introduced at a * later time, an older client updating with the `*` may accidentally reset the new @@ -2338,11 +2338,11 @@ public final ServerStreamingCallable read * } * } * - * @param object The object to update. The object's bucket and name fields are used to identify - * the object to update. If present, the object's generation field selects a specific revision - * of this object whose metadata should be updated. Otherwise, assumes the live version of the - * object. - * @param updateMask List of fields to be updated. + * @param object Required. The object to update. The object's bucket and name fields are used to + * identify the object to update. If present, the object's generation field selects a specific + * revision of this object whose metadata should be updated. Otherwise, assumes the live + * version of the object. + * @param updateMask Required. List of fields to be updated. *

To specify ALL fields, equivalent to the JSON API's "update" function, specify a single * field with the value `*`. Note: not recommended. If a new field is introduced at a * later time, an older client updating with the `*` may accidentally reset the new 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 403ce80f3..cd33ebcaf 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 @@ -432,6 +432,10 @@ public class GrpcStorageStub extends StorageStub { private static final PathTemplate DELETE_BUCKET_0_PATH_TEMPLATE = PathTemplate.create("{bucket=**}"); private static final PathTemplate GET_BUCKET_0_PATH_TEMPLATE = PathTemplate.create("{bucket=**}"); + private static final PathTemplate CREATE_BUCKET_0_PATH_TEMPLATE = + PathTemplate.create("{project=**}"); + private static final PathTemplate LIST_BUCKETS_0_PATH_TEMPLATE = + PathTemplate.create("{project=**}"); private static final PathTemplate LOCK_BUCKET_RETENTION_POLICY_0_PATH_TEMPLATE = PathTemplate.create("{bucket=**}"); private static final PathTemplate GET_IAM_POLICY_0_PATH_TEMPLATE = @@ -481,6 +485,18 @@ public class GrpcStorageStub extends StorageStub { PathTemplate.create("{bucket=**}"); private static final PathTemplate QUERY_WRITE_STATUS_0_PATH_TEMPLATE = PathTemplate.create("{bucket=projects/*/buckets/*}/**"); + private static final PathTemplate GET_SERVICE_ACCOUNT_0_PATH_TEMPLATE = + PathTemplate.create("{project=**}"); + private static final PathTemplate CREATE_HMAC_KEY_0_PATH_TEMPLATE = + PathTemplate.create("{project=**}"); + private static final PathTemplate DELETE_HMAC_KEY_0_PATH_TEMPLATE = + PathTemplate.create("{project=**}"); + private static final PathTemplate GET_HMAC_KEY_0_PATH_TEMPLATE = + PathTemplate.create("{project=**}"); + private static final PathTemplate LIST_HMAC_KEYS_0_PATH_TEMPLATE = + PathTemplate.create("{project=**}"); + private static final PathTemplate UPDATE_HMAC_KEY_0_PATH_TEMPLATE = + PathTemplate.create("{project=**}"); public static final GrpcStorageStub create(StorageStubSettings settings) throws IOException { return new GrpcStorageStub(settings, ClientContext.create(settings)); @@ -540,10 +556,22 @@ protected GrpcStorageStub( GrpcCallSettings createBucketTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createBucketMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add(request.getParent(), "project", CREATE_BUCKET_0_PATH_TEMPLATE); + return builder.build(); + }) .build(); GrpcCallSettings listBucketsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listBucketsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add(request.getParent(), "project", LIST_BUCKETS_0_PATH_TEMPLATE); + return builder.build(); + }) .build(); GrpcCallSettings lockBucketRetentionPolicyTransportSettings = @@ -792,26 +820,67 @@ protected GrpcStorageStub( GrpcCallSettings getServiceAccountTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getServiceAccountMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add(request.getProject(), "project", GET_SERVICE_ACCOUNT_0_PATH_TEMPLATE); + return builder.build(); + }) .build(); GrpcCallSettings createHmacKeyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createHmacKeyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add(request.getProject(), "project", CREATE_HMAC_KEY_0_PATH_TEMPLATE); + return builder.build(); + }) .build(); GrpcCallSettings deleteHmacKeyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteHmacKeyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add(request.getProject(), "project", DELETE_HMAC_KEY_0_PATH_TEMPLATE); + return builder.build(); + }) .build(); GrpcCallSettings getHmacKeyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getHmacKeyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add(request.getProject(), "project", GET_HMAC_KEY_0_PATH_TEMPLATE); + return builder.build(); + }) .build(); GrpcCallSettings listHmacKeysTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listHmacKeysMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add(request.getProject(), "project", LIST_HMAC_KEYS_0_PATH_TEMPLATE); + return builder.build(); + }) .build(); GrpcCallSettings updateHmacKeyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateHmacKeyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + if (request.getHmacKey() != null) { + builder.add( + request.getHmacKey().getProject(), + "project", + UPDATE_HMAC_KEY_0_PATH_TEMPLATE); + } + return builder.build(); + }) .build(); this.deleteBucketCallable = diff --git a/proto-google-cloud-storage-v2/clirr-ignored-differences.xml b/proto-google-cloud-storage-v2/clirr-ignored-differences.xml index 01216f0bd..3b4182d73 100644 --- a/proto-google-cloud-storage-v2/clirr-ignored-differences.xml +++ b/proto-google-cloud-storage-v2/clirr-ignored-differences.xml @@ -20,4 +20,23 @@ * *ObjectSize() + + + 7012 + com/google/storage/v2/BucketAccessControlOrBuilder + * *EntityAlt*() + + + 7012 + com/google/storage/v2/ObjectAccessControlOrBuilder + * *EntityAlt*() + + + + + 7012 + com/google/storage/v2/Bucket$RetentionPolicyOrBuilder + boolean hasRetentionPeriod() + + 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 d6551a6fe..aa31ffa03 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 @@ -12546,7 +12546,22 @@ public interface RetentionPolicyOrBuilder * periods should only be used for testing purposes. * * - * int64 retention_period = 3; + * optional int64 retention_period = 3; + * + * @return Whether the retentionPeriod field is set. + */ + boolean hasRetentionPeriod(); + /** + * + * + *

+     * The duration in seconds that objects need to be retained. Retention
+     * duration must be greater than zero and less than 100 years. Note that
+     * enforcement of retention periods less than a day is not guaranteed. Such
+     * periods should only be used for testing purposes.
+     * 
+ * + * optional int64 retention_period = 3; * * @return The retentionPeriod. */ @@ -12592,6 +12607,7 @@ private RetentionPolicy( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -12624,6 +12640,7 @@ private RetentionPolicy( } case 24: { + bitField0_ |= 0x00000001; retentionPeriod_ = input.readInt64(); break; } @@ -12663,6 +12680,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.storage.v2.Bucket.RetentionPolicy.Builder.class); } + private int bitField0_; public static final int EFFECTIVE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp effectiveTime_; /** @@ -12744,7 +12762,25 @@ public boolean getIsLocked() { * periods should only be used for testing purposes. * * - * int64 retention_period = 3; + * optional int64 retention_period = 3; + * + * @return Whether the retentionPeriod field is set. + */ + @java.lang.Override + public boolean hasRetentionPeriod() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The duration in seconds that objects need to be retained. Retention
+     * duration must be greater than zero and less than 100 years. Note that
+     * enforcement of retention periods less than a day is not guaranteed. Such
+     * periods should only be used for testing purposes.
+     * 
+ * + * optional int64 retention_period = 3; * * @return The retentionPeriod. */ @@ -12773,7 +12809,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (isLocked_ != false) { output.writeBool(2, isLocked_); } - if (retentionPeriod_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(3, retentionPeriod_); } unknownFields.writeTo(output); @@ -12791,7 +12827,7 @@ public int getSerializedSize() { if (isLocked_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isLocked_); } - if (retentionPeriod_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, retentionPeriod_); } size += unknownFields.getSerializedSize(); @@ -12815,7 +12851,10 @@ public boolean equals(final java.lang.Object obj) { if (!getEffectiveTime().equals(other.getEffectiveTime())) return false; } if (getIsLocked() != other.getIsLocked()) return false; - if (getRetentionPeriod() != other.getRetentionPeriod()) return false; + if (hasRetentionPeriod() != other.hasRetentionPeriod()) return false; + if (hasRetentionPeriod()) { + if (getRetentionPeriod() != other.getRetentionPeriod()) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -12833,8 +12872,10 @@ public int hashCode() { } hash = (37 * hash) + IS_LOCKED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsLocked()); - hash = (37 * hash) + RETENTION_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRetentionPeriod()); + if (hasRetentionPeriod()) { + hash = (37 * hash) + RETENTION_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRetentionPeriod()); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -12991,7 +13032,7 @@ public Builder clear() { isLocked_ = false; retentionPeriod_ = 0L; - + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -13019,13 +13060,19 @@ public com.google.storage.v2.Bucket.RetentionPolicy build() { public com.google.storage.v2.Bucket.RetentionPolicy buildPartial() { com.google.storage.v2.Bucket.RetentionPolicy result = new com.google.storage.v2.Bucket.RetentionPolicy(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (effectiveTimeBuilder_ == null) { result.effectiveTime_ = effectiveTime_; } else { result.effectiveTime_ = effectiveTimeBuilder_.build(); } result.isLocked_ = isLocked_; - result.retentionPeriod_ = retentionPeriod_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.retentionPeriod_ = retentionPeriod_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -13083,7 +13130,7 @@ public Builder mergeFrom(com.google.storage.v2.Bucket.RetentionPolicy other) { if (other.getIsLocked() != false) { setIsLocked(other.getIsLocked()); } - if (other.getRetentionPeriod() != 0L) { + if (other.hasRetentionPeriod()) { setRetentionPeriod(other.getRetentionPeriod()); } this.mergeUnknownFields(other.unknownFields); @@ -13115,6 +13162,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Timestamp effectiveTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -13372,7 +13421,25 @@ public Builder clearIsLocked() { * periods should only be used for testing purposes. * * - * int64 retention_period = 3; + * optional int64 retention_period = 3; + * + * @return Whether the retentionPeriod field is set. + */ + @java.lang.Override + public boolean hasRetentionPeriod() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * The duration in seconds that objects need to be retained. Retention
+       * duration must be greater than zero and less than 100 years. Note that
+       * enforcement of retention periods less than a day is not guaranteed. Such
+       * periods should only be used for testing purposes.
+       * 
+ * + * optional int64 retention_period = 3; * * @return The retentionPeriod. */ @@ -13390,13 +13457,13 @@ public long getRetentionPeriod() { * periods should only be used for testing purposes. * * - * int64 retention_period = 3; + * optional int64 retention_period = 3; * * @param value The retentionPeriod to set. * @return This builder for chaining. */ public Builder setRetentionPeriod(long value) { - + bitField0_ |= 0x00000001; retentionPeriod_ = value; onChanged(); return this; @@ -13411,12 +13478,12 @@ public Builder setRetentionPeriod(long value) { * periods should only be used for testing purposes. * * - * int64 retention_period = 3; + * optional int64 retention_period = 3; * * @return This builder for chaining. */ public Builder clearRetentionPeriod() { - + bitField0_ = (bitField0_ & ~0x00000001); retentionPeriod_ = 0L; onChanged(); return this; @@ -18084,8 +18151,8 @@ public boolean getSatisfiesPzs() { * * *
-   * Configuration that, if present, specifies the data placement for a Custom
-   * Dual Region.
+   * Configuration that, if present, specifies the data placement for a
+   * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
    * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; @@ -18100,8 +18167,8 @@ public boolean hasCustomPlacementConfig() { * * *
-   * Configuration that, if present, specifies the data placement for a Custom
-   * Dual Region.
+   * Configuration that, if present, specifies the data placement for a
+   * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
    * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; @@ -18118,8 +18185,8 @@ public com.google.storage.v2.Bucket.CustomPlacementConfig getCustomPlacementConf * * *
-   * Configuration that, if present, specifies the data placement for a Custom
-   * Dual Region.
+   * Configuration that, if present, specifies the data placement for a
+   * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
    * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; @@ -23915,8 +23982,8 @@ public Builder clearSatisfiesPzs() { * * *
-     * Configuration that, if present, specifies the data placement for a Custom
-     * Dual Region.
+     * Configuration that, if present, specifies the data placement for a
+     * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
      * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; @@ -23930,8 +23997,8 @@ public boolean hasCustomPlacementConfig() { * * *
-     * Configuration that, if present, specifies the data placement for a Custom
-     * Dual Region.
+     * Configuration that, if present, specifies the data placement for a
+     * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
      * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; @@ -23951,8 +24018,8 @@ public com.google.storage.v2.Bucket.CustomPlacementConfig getCustomPlacementConf * * *
-     * Configuration that, if present, specifies the data placement for a Custom
-     * Dual Region.
+     * Configuration that, if present, specifies the data placement for a
+     * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
      * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; @@ -23975,8 +24042,8 @@ public Builder setCustomPlacementConfig( * * *
-     * Configuration that, if present, specifies the data placement for a Custom
-     * Dual Region.
+     * Configuration that, if present, specifies the data placement for a
+     * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
      * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; @@ -23996,8 +24063,8 @@ public Builder setCustomPlacementConfig( * * *
-     * Configuration that, if present, specifies the data placement for a Custom
-     * Dual Region.
+     * Configuration that, if present, specifies the data placement for a
+     * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
      * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; @@ -24024,8 +24091,8 @@ public Builder mergeCustomPlacementConfig( * * *
-     * Configuration that, if present, specifies the data placement for a Custom
-     * Dual Region.
+     * Configuration that, if present, specifies the data placement for a
+     * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
      * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; @@ -24045,8 +24112,8 @@ public Builder clearCustomPlacementConfig() { * * *
-     * Configuration that, if present, specifies the data placement for a Custom
-     * Dual Region.
+     * Configuration that, if present, specifies the data placement for a
+     * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
      * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; @@ -24061,8 +24128,8 @@ public Builder clearCustomPlacementConfig() { * * *
-     * Configuration that, if present, specifies the data placement for a Custom
-     * Dual Region.
+     * Configuration that, if present, specifies the data placement for a
+     * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
      * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; @@ -24081,8 +24148,8 @@ public Builder clearCustomPlacementConfig() { * * *
-     * Configuration that, if present, specifies the data placement for a Custom
-     * Dual Region.
+     * Configuration that, if present, specifies the data placement for a
+     * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
      * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java index 53dda1ffc..d30291edf 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java @@ -41,6 +41,7 @@ private BucketAccessControl() { role_ = ""; id_ = ""; entity_ = ""; + entityAlt_ = ""; entityId_ = ""; etag_ = ""; email_ = ""; @@ -140,6 +141,13 @@ private BucketAccessControl( etag_ = s; break; } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + entityAlt_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -286,7 +294,8 @@ public com.google.protobuf.ByteString getIdBytes() { * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -295,6 +304,8 @@ public com.google.protobuf.ByteString getIdBytes() { * `group-example@googlegroups.com` * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com` + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -323,7 +334,8 @@ public java.lang.String getEntity() { * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -332,6 +344,8 @@ public java.lang.String getEntity() { * `group-example@googlegroups.com` * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com` + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -351,6 +365,57 @@ public com.google.protobuf.ByteString getEntityBytes() { } } + public static final int ENTITY_ALT_FIELD_NUMBER = 9; + private volatile java.lang.Object entityAlt_; + /** + * + * + *
+   * Output only. The alternative entity format, if exists. For project entities,
+   * `project-{team}-{projectid}` format will be returned on response.
+   * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entityAlt. + */ + @java.lang.Override + public java.lang.String getEntityAlt() { + java.lang.Object ref = entityAlt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityAlt_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The alternative entity format, if exists. For project entities,
+   * `project-{team}-{projectid}` format will be returned on response.
+   * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entityAlt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityAltBytes() { + java.lang.Object ref = entityAlt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityAlt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ENTITY_ID_FIELD_NUMBER = 4; private volatile java.lang.Object entityId_; /** @@ -639,6 +704,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, etag_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityAlt_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, entityAlt_); + } unknownFields.writeTo(output); } @@ -672,6 +740,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityAlt_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, entityAlt_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -691,6 +762,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRole().equals(other.getRole())) return false; if (!getId().equals(other.getId())) return false; if (!getEntity().equals(other.getEntity())) return false; + if (!getEntityAlt().equals(other.getEntityAlt())) return false; if (!getEntityId().equals(other.getEntityId())) return false; if (!getEtag().equals(other.getEtag())) return false; if (!getEmail().equals(other.getEmail())) return false; @@ -716,6 +788,8 @@ public int hashCode() { hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + ENTITY_FIELD_NUMBER; hash = (53 * hash) + getEntity().hashCode(); + hash = (37 * hash) + ENTITY_ALT_FIELD_NUMBER; + hash = (53 * hash) + getEntityAlt().hashCode(); hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + getEntityId().hashCode(); hash = (37 * hash) + ETAG_FIELD_NUMBER; @@ -879,6 +953,8 @@ public Builder clear() { entity_ = ""; + entityAlt_ = ""; + entityId_ = ""; etag_ = ""; @@ -923,6 +999,7 @@ public com.google.storage.v2.BucketAccessControl buildPartial() { result.role_ = role_; result.id_ = id_; result.entity_ = entity_; + result.entityAlt_ = entityAlt_; result.entityId_ = entityId_; result.etag_ = etag_; result.email_ = email_; @@ -993,6 +1070,10 @@ public Builder mergeFrom(com.google.storage.v2.BucketAccessControl other) { entity_ = other.entity_; onChanged(); } + if (!other.getEntityAlt().isEmpty()) { + entityAlt_ = other.entityAlt_; + onChanged(); + } if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; onChanged(); @@ -1264,7 +1345,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -1273,6 +1355,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * `group-example@googlegroups.com` * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com` + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -1300,7 +1384,8 @@ public java.lang.String getEntity() { * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -1309,6 +1394,8 @@ public java.lang.String getEntity() { * `group-example@googlegroups.com` * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com` + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -1336,7 +1423,8 @@ public com.google.protobuf.ByteString getEntityBytes() { * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -1345,6 +1433,8 @@ public com.google.protobuf.ByteString getEntityBytes() { * `group-example@googlegroups.com` * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com` + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -1371,7 +1461,8 @@ public Builder setEntity(java.lang.String value) { * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -1380,6 +1471,8 @@ public Builder setEntity(java.lang.String value) { * `group-example@googlegroups.com` * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com` + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -1402,7 +1495,8 @@ public Builder clearEntity() { * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -1411,6 +1505,8 @@ public Builder clearEntity() { * `group-example@googlegroups.com` * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com` + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -1429,6 +1525,117 @@ public Builder setEntityBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object entityAlt_ = ""; + /** + * + * + *
+     * Output only. The alternative entity format, if exists. For project entities,
+     * `project-{team}-{projectid}` format will be returned on response.
+     * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entityAlt. + */ + public java.lang.String getEntityAlt() { + java.lang.Object ref = entityAlt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityAlt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The alternative entity format, if exists. For project entities,
+     * `project-{team}-{projectid}` format will be returned on response.
+     * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entityAlt. + */ + public com.google.protobuf.ByteString getEntityAltBytes() { + java.lang.Object ref = entityAlt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityAlt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The alternative entity format, if exists. For project entities,
+     * `project-{team}-{projectid}` format will be returned on response.
+     * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The entityAlt to set. + * @return This builder for chaining. + */ + public Builder setEntityAlt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityAlt_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The alternative entity format, if exists. For project entities,
+     * `project-{team}-{projectid}` format will be returned on response.
+     * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEntityAlt() { + + entityAlt_ = getDefaultInstance().getEntityAlt(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The alternative entity format, if exists. For project entities,
+     * `project-{team}-{projectid}` format will be returned on response.
+     * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for entityAlt to set. + * @return This builder for chaining. + */ + public Builder setEntityAltBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityAlt_ = value; + onChanged(); + return this; + } + private java.lang.Object entityId_ = ""; /** * diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java index 04451af6d..2ba5df902 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java @@ -83,7 +83,8 @@ public interface BucketAccessControlOrBuilder * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -92,6 +93,8 @@ public interface BucketAccessControlOrBuilder * `group-example@googlegroups.com` * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com` + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -109,7 +112,8 @@ public interface BucketAccessControlOrBuilder * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -118,6 +122,8 @@ public interface BucketAccessControlOrBuilder * `group-example@googlegroups.com` * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com` + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -126,6 +132,33 @@ public interface BucketAccessControlOrBuilder */ com.google.protobuf.ByteString getEntityBytes(); + /** + * + * + *
+   * Output only. The alternative entity format, if exists. For project entities,
+   * `project-{team}-{projectid}` format will be returned on response.
+   * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entityAlt. + */ + java.lang.String getEntityAlt(); + /** + * + * + *
+   * Output only. The alternative entity format, if exists. For project entities,
+   * `project-{team}-{projectid}` format will be returned on response.
+   * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entityAlt. + */ + com.google.protobuf.ByteString getEntityAltBytes(); + /** * * diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java index 26d659353..91b60db26 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java @@ -1008,8 +1008,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Configuration that, if present, specifies the data placement for a Custom
-   * Dual Region.
+   * Configuration that, if present, specifies the data placement for a
+   * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
    * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; @@ -1021,8 +1021,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Configuration that, if present, specifies the data placement for a Custom
-   * Dual Region.
+   * Configuration that, if present, specifies the data placement for a
+   * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
    * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; @@ -1034,8 +1034,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Configuration that, if present, specifies the data placement for a Custom
-   * Dual Region.
+   * Configuration that, if present, specifies the data placement for a
+   * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
    * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; 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 818ccc329..4d1b776b1 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 @@ -210,13 +210,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Required. Properties of the new bucket being inserted.
+   * Properties of the new bucket being inserted.
    * The project and name of the bucket are specified in the parent and
    * bucket_id fields, respectively. Populating those fields in `bucket` will
    * result in an error.
    * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; * * @return Whether the bucket field is set. */ @@ -228,13 +228,13 @@ public boolean hasBucket() { * * *
-   * Required. Properties of the new bucket being inserted.
+   * Properties of the new bucket being inserted.
    * The project and name of the bucket are specified in the parent and
    * bucket_id fields, respectively. Populating those fields in `bucket` will
    * result in an error.
    * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; * * @return The bucket. */ @@ -246,13 +246,13 @@ public com.google.storage.v2.Bucket getBucket() { * * *
-   * Required. Properties of the new bucket being inserted.
+   * Properties of the new bucket being inserted.
    * The project and name of the bucket are specified in the parent and
    * bucket_id fields, respectively. Populating those fields in `bucket` will
    * result in an error.
    * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; */ @java.lang.Override public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() { @@ -938,13 +938,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Properties of the new bucket being inserted.
+     * Properties of the new bucket being inserted.
      * The project and name of the bucket are specified in the parent and
      * bucket_id fields, respectively. Populating those fields in `bucket` will
      * result in an error.
      * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; * * @return Whether the bucket field is set. */ @@ -955,13 +955,13 @@ public boolean hasBucket() { * * *
-     * Required. Properties of the new bucket being inserted.
+     * Properties of the new bucket being inserted.
      * The project and name of the bucket are specified in the parent and
      * bucket_id fields, respectively. Populating those fields in `bucket` will
      * result in an error.
      * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; * * @return The bucket. */ @@ -976,13 +976,13 @@ public com.google.storage.v2.Bucket getBucket() { * * *
-     * Required. Properties of the new bucket being inserted.
+     * Properties of the new bucket being inserted.
      * The project and name of the bucket are specified in the parent and
      * bucket_id fields, respectively. Populating those fields in `bucket` will
      * result in an error.
      * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; */ public Builder setBucket(com.google.storage.v2.Bucket value) { if (bucketBuilder_ == null) { @@ -1001,13 +1001,13 @@ public Builder setBucket(com.google.storage.v2.Bucket value) { * * *
-     * Required. Properties of the new bucket being inserted.
+     * Properties of the new bucket being inserted.
      * The project and name of the bucket are specified in the parent and
      * bucket_id fields, respectively. Populating those fields in `bucket` will
      * result in an error.
      * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; */ public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) { if (bucketBuilder_ == null) { @@ -1023,13 +1023,13 @@ public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) { * * *
-     * Required. Properties of the new bucket being inserted.
+     * Properties of the new bucket being inserted.
      * The project and name of the bucket are specified in the parent and
      * bucket_id fields, respectively. Populating those fields in `bucket` will
      * result in an error.
      * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; */ public Builder mergeBucket(com.google.storage.v2.Bucket value) { if (bucketBuilder_ == null) { @@ -1050,13 +1050,13 @@ public Builder mergeBucket(com.google.storage.v2.Bucket value) { * * *
-     * Required. Properties of the new bucket being inserted.
+     * Properties of the new bucket being inserted.
      * The project and name of the bucket are specified in the parent and
      * bucket_id fields, respectively. Populating those fields in `bucket` will
      * result in an error.
      * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; */ public Builder clearBucket() { if (bucketBuilder_ == null) { @@ -1073,13 +1073,13 @@ public Builder clearBucket() { * * *
-     * Required. Properties of the new bucket being inserted.
+     * Properties of the new bucket being inserted.
      * The project and name of the bucket are specified in the parent and
      * bucket_id fields, respectively. Populating those fields in `bucket` will
      * result in an error.
      * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; */ public com.google.storage.v2.Bucket.Builder getBucketBuilder() { @@ -1090,13 +1090,13 @@ public com.google.storage.v2.Bucket.Builder getBucketBuilder() { * * *
-     * Required. Properties of the new bucket being inserted.
+     * Properties of the new bucket being inserted.
      * The project and name of the bucket are specified in the parent and
      * bucket_id fields, respectively. Populating those fields in `bucket` will
      * result in an error.
      * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; */ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() { if (bucketBuilder_ != null) { @@ -1109,13 +1109,13 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() { * * *
-     * Required. Properties of the new bucket being inserted.
+     * Properties of the new bucket being inserted.
      * The project and name of the bucket are specified in the parent and
      * bucket_id fields, respectively. Populating those fields in `bucket` will
      * result in an error.
      * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.Bucket, 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 2865d7e94..1dd1bc522 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 @@ -56,13 +56,13 @@ public interface CreateBucketRequestOrBuilder * * *
-   * Required. Properties of the new bucket being inserted.
+   * Properties of the new bucket being inserted.
    * The project and name of the bucket are specified in the parent and
    * bucket_id fields, respectively. Populating those fields in `bucket` will
    * result in an error.
    * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; * * @return Whether the bucket field is set. */ @@ -71,13 +71,13 @@ public interface CreateBucketRequestOrBuilder * * *
-   * Required. Properties of the new bucket being inserted.
+   * Properties of the new bucket being inserted.
    * The project and name of the bucket are specified in the parent and
    * bucket_id fields, respectively. Populating those fields in `bucket` will
    * result in an error.
    * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; * * @return The bucket. */ @@ -86,13 +86,13 @@ public interface CreateBucketRequestOrBuilder * * *
-   * Required. Properties of the new bucket being inserted.
+   * Properties of the new bucket being inserted.
    * The project and name of the bucket are specified in the parent and
    * bucket_id fields, respectively. Populating those fields in `bucket` will
    * result in an error.
    * 
* - * .google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.v2.Bucket bucket = 2; */ com.google.storage.v2.BucketOrBuilder getBucketOrBuilder(); 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 a812b6e9e..4d283a3d3 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 @@ -202,10 +202,10 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
-   * Optional. The maximum number of keys to return.
+   * The maximum number of keys to return.
    * 
* - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 page_size = 2; * * @return The pageSize. */ @@ -220,10 +220,10 @@ public int getPageSize() { * * *
-   * Optional. A previously returned token from ListHmacKeysResponse to get the next page.
+   * A previously returned token from ListHmacKeysResponse to get the next page.
    * 
* - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3; * * @return The pageToken. */ @@ -243,10 +243,10 @@ public java.lang.String getPageToken() { * * *
-   * Optional. A previously returned token from ListHmacKeysResponse to get the next page.
+   * A previously returned token from ListHmacKeysResponse to get the next page.
    * 
* - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3; * * @return The bytes for pageToken. */ @@ -269,10 +269,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-   * Optional. If set, filters to only return HMAC keys for specified service account.
+   * If set, filters to only return HMAC keys for specified service account.
    * 
* - * string service_account_email = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string service_account_email = 4; * * @return The serviceAccountEmail. */ @@ -292,10 +292,10 @@ public java.lang.String getServiceAccountEmail() { * * *
-   * Optional. If set, filters to only return HMAC keys for specified service account.
+   * If set, filters to only return HMAC keys for specified service account.
    * 
* - * string service_account_email = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string service_account_email = 4; * * @return The bytes for serviceAccountEmail. */ @@ -318,10 +318,10 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { * * *
-   * Optional. If set, return deleted keys that have not yet been wiped out.
+   * If set, return deleted keys that have not yet been wiped out.
    * 
* - * bool show_deleted_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool show_deleted_keys = 5; * * @return The showDeletedKeys. */ @@ -839,10 +839,10 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The maximum number of keys to return.
+     * The maximum number of keys to return.
      * 
* - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 page_size = 2; * * @return The pageSize. */ @@ -854,10 +854,10 @@ public int getPageSize() { * * *
-     * Optional. The maximum number of keys to return.
+     * The maximum number of keys to return.
      * 
* - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 page_size = 2; * * @param value The pageSize to set. * @return This builder for chaining. @@ -872,10 +872,10 @@ public Builder setPageSize(int value) { * * *
-     * Optional. The maximum number of keys to return.
+     * The maximum number of keys to return.
      * 
* - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 page_size = 2; * * @return This builder for chaining. */ @@ -891,10 +891,10 @@ public Builder clearPageSize() { * * *
-     * Optional. A previously returned token from ListHmacKeysResponse to get the next page.
+     * A previously returned token from ListHmacKeysResponse to get the next page.
      * 
* - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3; * * @return The pageToken. */ @@ -913,10 +913,10 @@ public java.lang.String getPageToken() { * * *
-     * Optional. A previously returned token from ListHmacKeysResponse to get the next page.
+     * A previously returned token from ListHmacKeysResponse to get the next page.
      * 
* - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3; * * @return The bytes for pageToken. */ @@ -935,10 +935,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. A previously returned token from ListHmacKeysResponse to get the next page.
+     * A previously returned token from ListHmacKeysResponse to get the next page.
      * 
* - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3; * * @param value The pageToken to set. * @return This builder for chaining. @@ -956,10 +956,10 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. A previously returned token from ListHmacKeysResponse to get the next page.
+     * A previously returned token from ListHmacKeysResponse to get the next page.
      * 
* - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3; * * @return This builder for chaining. */ @@ -973,10 +973,10 @@ public Builder clearPageToken() { * * *
-     * Optional. A previously returned token from ListHmacKeysResponse to get the next page.
+     * A previously returned token from ListHmacKeysResponse to get the next page.
      * 
* - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3; * * @param value The bytes for pageToken to set. * @return This builder for chaining. @@ -997,10 +997,10 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. If set, filters to only return HMAC keys for specified service account.
+     * If set, filters to only return HMAC keys for specified service account.
      * 
* - * string service_account_email = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string service_account_email = 4; * * @return The serviceAccountEmail. */ @@ -1019,10 +1019,10 @@ public java.lang.String getServiceAccountEmail() { * * *
-     * Optional. If set, filters to only return HMAC keys for specified service account.
+     * If set, filters to only return HMAC keys for specified service account.
      * 
* - * string service_account_email = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string service_account_email = 4; * * @return The bytes for serviceAccountEmail. */ @@ -1041,10 +1041,10 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { * * *
-     * Optional. If set, filters to only return HMAC keys for specified service account.
+     * If set, filters to only return HMAC keys for specified service account.
      * 
* - * string service_account_email = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string service_account_email = 4; * * @param value The serviceAccountEmail to set. * @return This builder for chaining. @@ -1062,10 +1062,10 @@ public Builder setServiceAccountEmail(java.lang.String value) { * * *
-     * Optional. If set, filters to only return HMAC keys for specified service account.
+     * If set, filters to only return HMAC keys for specified service account.
      * 
* - * string service_account_email = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string service_account_email = 4; * * @return This builder for chaining. */ @@ -1079,10 +1079,10 @@ public Builder clearServiceAccountEmail() { * * *
-     * Optional. If set, filters to only return HMAC keys for specified service account.
+     * If set, filters to only return HMAC keys for specified service account.
      * 
* - * string service_account_email = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string service_account_email = 4; * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. @@ -1103,10 +1103,10 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) * * *
-     * Optional. If set, return deleted keys that have not yet been wiped out.
+     * If set, return deleted keys that have not yet been wiped out.
      * 
* - * bool show_deleted_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool show_deleted_keys = 5; * * @return The showDeletedKeys. */ @@ -1118,10 +1118,10 @@ public boolean getShowDeletedKeys() { * * *
-     * Optional. If set, return deleted keys that have not yet been wiped out.
+     * If set, return deleted keys that have not yet been wiped out.
      * 
* - * bool show_deleted_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool show_deleted_keys = 5; * * @param value The showDeletedKeys to set. * @return This builder for chaining. @@ -1136,10 +1136,10 @@ public Builder setShowDeletedKeys(boolean value) { * * *
-     * Optional. If set, return deleted keys that have not yet been wiped out.
+     * If set, return deleted keys that have not yet been wiped out.
      * 
* - * bool show_deleted_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool show_deleted_keys = 5; * * @return This builder for chaining. */ 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 0f4bdd317..efab34381 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 @@ -60,10 +60,10 @@ public interface ListHmacKeysRequestOrBuilder * * *
-   * Optional. The maximum number of keys to return.
+   * The maximum number of keys to return.
    * 
* - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 page_size = 2; * * @return The pageSize. */ @@ -73,10 +73,10 @@ public interface ListHmacKeysRequestOrBuilder * * *
-   * Optional. A previously returned token from ListHmacKeysResponse to get the next page.
+   * A previously returned token from ListHmacKeysResponse to get the next page.
    * 
* - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3; * * @return The pageToken. */ @@ -85,10 +85,10 @@ public interface ListHmacKeysRequestOrBuilder * * *
-   * Optional. A previously returned token from ListHmacKeysResponse to get the next page.
+   * A previously returned token from ListHmacKeysResponse to get the next page.
    * 
* - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3; * * @return The bytes for pageToken. */ @@ -98,10 +98,10 @@ public interface ListHmacKeysRequestOrBuilder * * *
-   * Optional. If set, filters to only return HMAC keys for specified service account.
+   * If set, filters to only return HMAC keys for specified service account.
    * 
* - * string service_account_email = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string service_account_email = 4; * * @return The serviceAccountEmail. */ @@ -110,10 +110,10 @@ public interface ListHmacKeysRequestOrBuilder * * *
-   * Optional. If set, filters to only return HMAC keys for specified service account.
+   * If set, filters to only return HMAC keys for specified service account.
    * 
* - * string service_account_email = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string service_account_email = 4; * * @return The bytes for serviceAccountEmail. */ @@ -123,10 +123,10 @@ public interface ListHmacKeysRequestOrBuilder * * *
-   * Optional. If set, return deleted keys that have not yet been wiped out.
+   * If set, return deleted keys that have not yet been wiped out.
    * 
* - * bool show_deleted_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool show_deleted_keys = 5; * * @return The showDeletedKeys. */ 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 857925d72..55cff6f87 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 @@ -178,11 +178,11 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
-   * Makes the operation conditional on whether bucket's current metageneration
+   * Required. Makes the operation conditional on whether bucket's current metageneration
    * matches the given value. Must be positive.
    * 
* - * int64 if_metageneration_match = 2; + * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The ifMetagenerationMatch. */ @@ -646,11 +646,11 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { * * *
-     * Makes the operation conditional on whether bucket's current metageneration
+     * Required. Makes the operation conditional on whether bucket's current metageneration
      * matches the given value. Must be positive.
      * 
* - * int64 if_metageneration_match = 2; + * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The ifMetagenerationMatch. */ @@ -662,11 +662,11 @@ public long getIfMetagenerationMatch() { * * *
-     * Makes the operation conditional on whether bucket's current metageneration
+     * Required. Makes the operation conditional on whether bucket's current metageneration
      * matches the given value. Must be positive.
      * 
* - * int64 if_metageneration_match = 2; + * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. @@ -681,11 +681,11 @@ public Builder setIfMetagenerationMatch(long value) { * * *
-     * Makes the operation conditional on whether bucket's current metageneration
+     * Required. Makes the operation conditional on whether bucket's current metageneration
      * matches the given value. Must be positive.
      * 
* - * int64 if_metageneration_match = 2; + * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ 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 ea69b054a..f266938e2 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 @@ -56,11 +56,11 @@ public interface LockBucketRetentionPolicyRequestOrBuilder * * *
-   * Makes the operation conditional on whether bucket's current metageneration
+   * Required. Makes the operation conditional on whether bucket's current metageneration
    * matches the given value. Must be positive.
    * 
* - * int64 if_metageneration_match = 2; + * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The ifMetagenerationMatch. */ diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Notification.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Notification.java index 00632e30a..285e47905 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Notification.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Notification.java @@ -353,11 +353,11 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-   * Optional. If present, only send notifications about listed event types. If empty,
+   * If present, only send notifications about listed event types. If empty,
    * sent notifications for all event types.
    * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @return A list containing the eventTypes. */ @@ -368,11 +368,11 @@ public com.google.protobuf.ProtocolStringList getEventTypesList() { * * *
-   * Optional. If present, only send notifications about listed event types. If empty,
+   * If present, only send notifications about listed event types. If empty,
    * sent notifications for all event types.
    * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @return The count of eventTypes. */ @@ -383,11 +383,11 @@ public int getEventTypesCount() { * * *
-   * Optional. If present, only send notifications about listed event types. If empty,
+   * If present, only send notifications about listed event types. If empty,
    * sent notifications for all event types.
    * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @param index The index of the element to return. * @return The eventTypes at the given index. @@ -399,11 +399,11 @@ public java.lang.String getEventTypes(int index) { * * *
-   * Optional. If present, only send notifications about listed event types. If empty,
+   * If present, only send notifications about listed event types. If empty,
    * sent notifications for all event types.
    * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @param index The index of the value to return. * @return The bytes of the eventTypes at the given index. @@ -443,13 +443,11 @@ public int getCustomAttributesCount() { * * *
-   * Optional. An optional list of additional attributes to attach to each Pub/Sub
+   * A list of additional attributes to attach to each Pub/Sub
    * message published for this notification subscription.
    * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ @java.lang.Override public boolean containsCustomAttributes(java.lang.String key) { @@ -468,13 +466,11 @@ public java.util.Map getCustomAttributes() { * * *
-   * Optional. An optional list of additional attributes to attach to each Pub/Sub
+   * A list of additional attributes to attach to each Pub/Sub
    * message published for this notification subscription.
    * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ @java.lang.Override public java.util.Map getCustomAttributesMap() { @@ -484,13 +480,11 @@ public java.util.Map getCustomAttributesMap( * * *
-   * Optional. An optional list of additional attributes to attach to each Pub/Sub
+   * A list of additional attributes to attach to each Pub/Sub
    * message published for this notification subscription.
    * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ @java.lang.Override public java.lang.String getCustomAttributesOrDefault( @@ -505,13 +499,11 @@ public java.lang.String getCustomAttributesOrDefault( * * *
-   * Optional. An optional list of additional attributes to attach to each Pub/Sub
+   * A list of additional attributes to attach to each Pub/Sub
    * message published for this notification subscription.
    * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ @java.lang.Override public java.lang.String getCustomAttributesOrThrow(java.lang.String key) { @@ -531,11 +523,11 @@ public java.lang.String getCustomAttributesOrThrow(java.lang.String key) { * * *
-   * Optional. If present, only apply this notification config to object names that
+   * If present, only apply this notification config to object names that
    * begin with this prefix.
    * 
* - * string object_name_prefix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string object_name_prefix = 5; * * @return The objectNamePrefix. */ @@ -555,11 +547,11 @@ public java.lang.String getObjectNamePrefix() { * * *
-   * Optional. If present, only apply this notification config to object names that
+   * If present, only apply this notification config to object names that
    * begin with this prefix.
    * 
* - * string object_name_prefix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string object_name_prefix = 5; * * @return The bytes for objectNamePrefix. */ @@ -1440,11 +1432,11 @@ private void ensureEventTypesIsMutable() { * * *
-     * Optional. If present, only send notifications about listed event types. If empty,
+     * If present, only send notifications about listed event types. If empty,
      * sent notifications for all event types.
      * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @return A list containing the eventTypes. */ @@ -1455,11 +1447,11 @@ public com.google.protobuf.ProtocolStringList getEventTypesList() { * * *
-     * Optional. If present, only send notifications about listed event types. If empty,
+     * If present, only send notifications about listed event types. If empty,
      * sent notifications for all event types.
      * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @return The count of eventTypes. */ @@ -1470,11 +1462,11 @@ public int getEventTypesCount() { * * *
-     * Optional. If present, only send notifications about listed event types. If empty,
+     * If present, only send notifications about listed event types. If empty,
      * sent notifications for all event types.
      * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @param index The index of the element to return. * @return The eventTypes at the given index. @@ -1486,11 +1478,11 @@ public java.lang.String getEventTypes(int index) { * * *
-     * Optional. If present, only send notifications about listed event types. If empty,
+     * If present, only send notifications about listed event types. If empty,
      * sent notifications for all event types.
      * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @param index The index of the value to return. * @return The bytes of the eventTypes at the given index. @@ -1502,11 +1494,11 @@ public com.google.protobuf.ByteString getEventTypesBytes(int index) { * * *
-     * Optional. If present, only send notifications about listed event types. If empty,
+     * If present, only send notifications about listed event types. If empty,
      * sent notifications for all event types.
      * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @param index The index to set the value at. * @param value The eventTypes to set. @@ -1525,11 +1517,11 @@ public Builder setEventTypes(int index, java.lang.String value) { * * *
-     * Optional. If present, only send notifications about listed event types. If empty,
+     * If present, only send notifications about listed event types. If empty,
      * sent notifications for all event types.
      * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @param value The eventTypes to add. * @return This builder for chaining. @@ -1547,11 +1539,11 @@ public Builder addEventTypes(java.lang.String value) { * * *
-     * Optional. If present, only send notifications about listed event types. If empty,
+     * If present, only send notifications about listed event types. If empty,
      * sent notifications for all event types.
      * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @param values The eventTypes to add. * @return This builder for chaining. @@ -1566,11 +1558,11 @@ public Builder addAllEventTypes(java.lang.Iterable values) { * * *
-     * Optional. If present, only send notifications about listed event types. If empty,
+     * If present, only send notifications about listed event types. If empty,
      * sent notifications for all event types.
      * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @return This builder for chaining. */ @@ -1584,11 +1576,11 @@ public Builder clearEventTypes() { * * *
-     * Optional. If present, only send notifications about listed event types. If empty,
+     * If present, only send notifications about listed event types. If empty,
      * sent notifications for all event types.
      * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @param value The bytes of the eventTypes to add. * @return This builder for chaining. @@ -1637,13 +1629,11 @@ public int getCustomAttributesCount() { * * *
-     * Optional. An optional list of additional attributes to attach to each Pub/Sub
+     * A list of additional attributes to attach to each Pub/Sub
      * message published for this notification subscription.
      * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ @java.lang.Override public boolean containsCustomAttributes(java.lang.String key) { @@ -1662,13 +1652,11 @@ public java.util.Map getCustomAttributes() { * * *
-     * Optional. An optional list of additional attributes to attach to each Pub/Sub
+     * A list of additional attributes to attach to each Pub/Sub
      * message published for this notification subscription.
      * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ @java.lang.Override public java.util.Map getCustomAttributesMap() { @@ -1678,13 +1666,11 @@ public java.util.Map getCustomAttributesMap( * * *
-     * Optional. An optional list of additional attributes to attach to each Pub/Sub
+     * A list of additional attributes to attach to each Pub/Sub
      * message published for this notification subscription.
      * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ @java.lang.Override public java.lang.String getCustomAttributesOrDefault( @@ -1700,13 +1686,11 @@ public java.lang.String getCustomAttributesOrDefault( * * *
-     * Optional. An optional list of additional attributes to attach to each Pub/Sub
+     * A list of additional attributes to attach to each Pub/Sub
      * message published for this notification subscription.
      * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ @java.lang.Override public java.lang.String getCustomAttributesOrThrow(java.lang.String key) { @@ -1729,13 +1713,11 @@ public Builder clearCustomAttributes() { * * *
-     * Optional. An optional list of additional attributes to attach to each Pub/Sub
+     * A list of additional attributes to attach to each Pub/Sub
      * message published for this notification subscription.
      * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ public Builder removeCustomAttributes(java.lang.String key) { if (key == null) { @@ -1753,13 +1735,11 @@ public java.util.Map getMutableCustomAttribu * * *
-     * Optional. An optional list of additional attributes to attach to each Pub/Sub
+     * A list of additional attributes to attach to each Pub/Sub
      * message published for this notification subscription.
      * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ public Builder putCustomAttributes(java.lang.String key, java.lang.String value) { if (key == null) { @@ -1776,13 +1756,11 @@ public Builder putCustomAttributes(java.lang.String key, java.lang.String value) * * *
-     * Optional. An optional list of additional attributes to attach to each Pub/Sub
+     * A list of additional attributes to attach to each Pub/Sub
      * message published for this notification subscription.
      * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ public Builder putAllCustomAttributes( java.util.Map values) { @@ -1795,11 +1773,11 @@ public Builder putAllCustomAttributes( * * *
-     * Optional. If present, only apply this notification config to object names that
+     * If present, only apply this notification config to object names that
      * begin with this prefix.
      * 
* - * string object_name_prefix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string object_name_prefix = 5; * * @return The objectNamePrefix. */ @@ -1818,11 +1796,11 @@ public java.lang.String getObjectNamePrefix() { * * *
-     * Optional. If present, only apply this notification config to object names that
+     * If present, only apply this notification config to object names that
      * begin with this prefix.
      * 
* - * string object_name_prefix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string object_name_prefix = 5; * * @return The bytes for objectNamePrefix. */ @@ -1841,11 +1819,11 @@ public com.google.protobuf.ByteString getObjectNamePrefixBytes() { * * *
-     * Optional. If present, only apply this notification config to object names that
+     * If present, only apply this notification config to object names that
      * begin with this prefix.
      * 
* - * string object_name_prefix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string object_name_prefix = 5; * * @param value The objectNamePrefix to set. * @return This builder for chaining. @@ -1863,11 +1841,11 @@ public Builder setObjectNamePrefix(java.lang.String value) { * * *
-     * Optional. If present, only apply this notification config to object names that
+     * If present, only apply this notification config to object names that
      * begin with this prefix.
      * 
* - * string object_name_prefix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string object_name_prefix = 5; * * @return This builder for chaining. */ @@ -1881,11 +1859,11 @@ public Builder clearObjectNamePrefix() { * * *
-     * Optional. If present, only apply this notification config to object names that
+     * If present, only apply this notification config to object names that
      * begin with this prefix.
      * 
* - * string object_name_prefix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string object_name_prefix = 5; * * @param value The bytes for objectNamePrefix to set. * @return This builder for chaining. diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationOrBuilder.java index 5031676f5..367f1e408 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationOrBuilder.java @@ -114,11 +114,11 @@ public interface NotificationOrBuilder * * *
-   * Optional. If present, only send notifications about listed event types. If empty,
+   * If present, only send notifications about listed event types. If empty,
    * sent notifications for all event types.
    * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @return A list containing the eventTypes. */ @@ -127,11 +127,11 @@ public interface NotificationOrBuilder * * *
-   * Optional. If present, only send notifications about listed event types. If empty,
+   * If present, only send notifications about listed event types. If empty,
    * sent notifications for all event types.
    * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @return The count of eventTypes. */ @@ -140,11 +140,11 @@ public interface NotificationOrBuilder * * *
-   * Optional. If present, only send notifications about listed event types. If empty,
+   * If present, only send notifications about listed event types. If empty,
    * sent notifications for all event types.
    * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @param index The index of the element to return. * @return The eventTypes at the given index. @@ -154,11 +154,11 @@ public interface NotificationOrBuilder * * *
-   * Optional. If present, only send notifications about listed event types. If empty,
+   * If present, only send notifications about listed event types. If empty,
    * sent notifications for all event types.
    * 
* - * repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string event_types = 3; * * @param index The index of the value to return. * @return The bytes of the eventTypes at the given index. @@ -169,26 +169,22 @@ public interface NotificationOrBuilder * * *
-   * Optional. An optional list of additional attributes to attach to each Pub/Sub
+   * A list of additional attributes to attach to each Pub/Sub
    * message published for this notification subscription.
    * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ int getCustomAttributesCount(); /** * * *
-   * Optional. An optional list of additional attributes to attach to each Pub/Sub
+   * A list of additional attributes to attach to each Pub/Sub
    * message published for this notification subscription.
    * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ boolean containsCustomAttributes(java.lang.String key); /** Use {@link #getCustomAttributesMap()} instead. */ @@ -198,26 +194,22 @@ public interface NotificationOrBuilder * * *
-   * Optional. An optional list of additional attributes to attach to each Pub/Sub
+   * A list of additional attributes to attach to each Pub/Sub
    * message published for this notification subscription.
    * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ java.util.Map getCustomAttributesMap(); /** * * *
-   * Optional. An optional list of additional attributes to attach to each Pub/Sub
+   * A list of additional attributes to attach to each Pub/Sub
    * message published for this notification subscription.
    * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ /* nullable */ @@ -229,13 +221,11 @@ java.lang.String getCustomAttributesOrDefault( * * *
-   * Optional. An optional list of additional attributes to attach to each Pub/Sub
+   * A list of additional attributes to attach to each Pub/Sub
    * message published for this notification subscription.
    * 
* - * - * map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> custom_attributes = 4; */ java.lang.String getCustomAttributesOrThrow(java.lang.String key); @@ -243,11 +233,11 @@ java.lang.String getCustomAttributesOrDefault( * * *
-   * Optional. If present, only apply this notification config to object names that
+   * If present, only apply this notification config to object names that
    * begin with this prefix.
    * 
* - * string object_name_prefix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string object_name_prefix = 5; * * @return The objectNamePrefix. */ @@ -256,11 +246,11 @@ java.lang.String getCustomAttributesOrDefault( * * *
-   * Optional. If present, only apply this notification config to object names that
+   * If present, only apply this notification config to object names that
    * begin with this prefix.
    * 
* - * string object_name_prefix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string object_name_prefix = 5; * * @return The bytes for objectNamePrefix. */ 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 33f3d9b97..2c9ccbfbd 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 @@ -41,6 +41,7 @@ private ObjectAccessControl() { role_ = ""; id_ = ""; entity_ = ""; + entityAlt_ = ""; entityId_ = ""; etag_ = ""; email_ = ""; @@ -140,6 +141,13 @@ private ObjectAccessControl( etag_ = s; break; } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + entityAlt_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -286,7 +294,8 @@ public com.google.protobuf.ByteString getIdBytes() { * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -295,6 +304,8 @@ public com.google.protobuf.ByteString getIdBytes() { * `group-example@googlegroups.com`. * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com`. + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -323,7 +334,8 @@ public java.lang.String getEntity() { * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -332,6 +344,8 @@ public java.lang.String getEntity() { * `group-example@googlegroups.com`. * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com`. + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -351,6 +365,57 @@ public com.google.protobuf.ByteString getEntityBytes() { } } + public static final int ENTITY_ALT_FIELD_NUMBER = 9; + private volatile java.lang.Object entityAlt_; + /** + * + * + *
+   * Output only. The alternative entity format, if exists. For project entities,
+   * `project-{team}-{projectid}` format will be returned on response.
+   * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entityAlt. + */ + @java.lang.Override + public java.lang.String getEntityAlt() { + java.lang.Object ref = entityAlt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityAlt_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The alternative entity format, if exists. For project entities,
+   * `project-{team}-{projectid}` format will be returned on response.
+   * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entityAlt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityAltBytes() { + java.lang.Object ref = entityAlt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityAlt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ENTITY_ID_FIELD_NUMBER = 4; private volatile java.lang.Object entityId_; /** @@ -639,6 +704,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, etag_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityAlt_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, entityAlt_); + } unknownFields.writeTo(output); } @@ -672,6 +740,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityAlt_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, entityAlt_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -691,6 +762,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRole().equals(other.getRole())) return false; if (!getId().equals(other.getId())) return false; if (!getEntity().equals(other.getEntity())) return false; + if (!getEntityAlt().equals(other.getEntityAlt())) return false; if (!getEntityId().equals(other.getEntityId())) return false; if (!getEtag().equals(other.getEtag())) return false; if (!getEmail().equals(other.getEmail())) return false; @@ -716,6 +788,8 @@ public int hashCode() { hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + ENTITY_FIELD_NUMBER; hash = (53 * hash) + getEntity().hashCode(); + hash = (37 * hash) + ENTITY_ALT_FIELD_NUMBER; + hash = (53 * hash) + getEntityAlt().hashCode(); hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + getEntityId().hashCode(); hash = (37 * hash) + ETAG_FIELD_NUMBER; @@ -879,6 +953,8 @@ public Builder clear() { entity_ = ""; + entityAlt_ = ""; + entityId_ = ""; etag_ = ""; @@ -923,6 +999,7 @@ public com.google.storage.v2.ObjectAccessControl buildPartial() { result.role_ = role_; result.id_ = id_; result.entity_ = entity_; + result.entityAlt_ = entityAlt_; result.entityId_ = entityId_; result.etag_ = etag_; result.email_ = email_; @@ -993,6 +1070,10 @@ public Builder mergeFrom(com.google.storage.v2.ObjectAccessControl other) { entity_ = other.entity_; onChanged(); } + if (!other.getEntityAlt().isEmpty()) { + entityAlt_ = other.entityAlt_; + onChanged(); + } if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; onChanged(); @@ -1264,7 +1345,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -1273,6 +1355,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * `group-example@googlegroups.com`. * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com`. + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -1300,7 +1384,8 @@ public java.lang.String getEntity() { * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -1309,6 +1394,8 @@ public java.lang.String getEntity() { * `group-example@googlegroups.com`. * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com`. + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -1336,7 +1423,8 @@ public com.google.protobuf.ByteString getEntityBytes() { * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -1345,6 +1433,8 @@ public com.google.protobuf.ByteString getEntityBytes() { * `group-example@googlegroups.com`. * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com`. + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -1371,7 +1461,8 @@ public Builder setEntity(java.lang.String value) { * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -1380,6 +1471,8 @@ public Builder setEntity(java.lang.String value) { * `group-example@googlegroups.com`. * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com`. + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -1402,7 +1495,8 @@ public Builder clearEntity() { * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -1411,6 +1505,8 @@ public Builder clearEntity() { * `group-example@googlegroups.com`. * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com`. + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -1429,6 +1525,117 @@ public Builder setEntityBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object entityAlt_ = ""; + /** + * + * + *
+     * Output only. The alternative entity format, if exists. For project entities,
+     * `project-{team}-{projectid}` format will be returned on response.
+     * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entityAlt. + */ + public java.lang.String getEntityAlt() { + java.lang.Object ref = entityAlt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityAlt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The alternative entity format, if exists. For project entities,
+     * `project-{team}-{projectid}` format will be returned on response.
+     * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entityAlt. + */ + public com.google.protobuf.ByteString getEntityAltBytes() { + java.lang.Object ref = entityAlt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityAlt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The alternative entity format, if exists. For project entities,
+     * `project-{team}-{projectid}` format will be returned on response.
+     * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The entityAlt to set. + * @return This builder for chaining. + */ + public Builder setEntityAlt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityAlt_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The alternative entity format, if exists. For project entities,
+     * `project-{team}-{projectid}` format will be returned on response.
+     * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEntityAlt() { + + entityAlt_ = getDefaultInstance().getEntityAlt(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The alternative entity format, if exists. For project entities,
+     * `project-{team}-{projectid}` format will be returned on response.
+     * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for entityAlt to set. + * @return This builder for chaining. + */ + public Builder setEntityAltBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityAlt_ = value; + onChanged(); + return this; + } + private java.lang.Object entityId_ = ""; /** * 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 21e493d79..f5be8ac45 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 @@ -83,7 +83,8 @@ public interface ObjectAccessControlOrBuilder * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -92,6 +93,8 @@ public interface ObjectAccessControlOrBuilder * `group-example@googlegroups.com`. * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com`. + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -109,7 +112,8 @@ public interface ObjectAccessControlOrBuilder * * `group-{groupid}` * * `group-{email}` * * `domain-{domain}` - * * `project-{team-projectid}` + * * `project-{team}-{projectnumber}` + * * `project-{team}-{projectid}` * * `allUsers` * * `allAuthenticatedUsers` * Examples: @@ -118,6 +122,8 @@ public interface ObjectAccessControlOrBuilder * `group-example@googlegroups.com`. * * All members of the Google Apps for Business domain `example.com` would be * `domain-example.com`. + * For project entities, `project-{team}-{projectnumber}` format will be + * returned on response. * * * string entity = 3; @@ -126,6 +132,33 @@ public interface ObjectAccessControlOrBuilder */ com.google.protobuf.ByteString getEntityBytes(); + /** + * + * + *
+   * Output only. The alternative entity format, if exists. For project entities,
+   * `project-{team}-{projectid}` format will be returned on response.
+   * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entityAlt. + */ + java.lang.String getEntityAlt(); + /** + * + * + *
+   * Output only. The alternative entity format, if exists. For project entities,
+   * `project-{team}-{projectid}` format will be returned on response.
+   * 
+ * + * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entityAlt. + */ + com.google.protobuf.ByteString getEntityAltBytes(); + /** * * 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 13c5b08a4..2f6de525e 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 @@ -199,10 +199,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The name of the bucket containing the object to read.
+   * Required. The name of the bucket containing the object to read.
    * 
* - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bucket. */ @@ -222,10 +222,10 @@ public java.lang.String getBucket() { * * *
-   * The name of the bucket containing the object to read.
+   * Required. The name of the bucket containing the object to read.
    * 
* - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for bucket. */ @@ -248,10 +248,10 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
-   * The name of the object to read.
+   * Required. The name of the object to read.
    * 
* - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The object. */ @@ -271,10 +271,10 @@ public java.lang.String getObject() { * * *
-   * The name of the object to read.
+   * Required. The name of the object to read.
    * 
* - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for object. */ @@ -1153,10 +1153,10 @@ public Builder mergeFrom( * * *
-     * The name of the bucket containing the object to read.
+     * Required. The name of the bucket containing the object to read.
      * 
* - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bucket. */ @@ -1175,10 +1175,10 @@ public java.lang.String getBucket() { * * *
-     * The name of the bucket containing the object to read.
+     * Required. The name of the bucket containing the object to read.
      * 
* - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for bucket. */ @@ -1197,10 +1197,10 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
-     * The name of the bucket containing the object to read.
+     * Required. The name of the bucket containing the object to read.
      * 
* - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bucket to set. * @return This builder for chaining. @@ -1218,10 +1218,10 @@ public Builder setBucket(java.lang.String value) { * * *
-     * The name of the bucket containing the object to read.
+     * Required. The name of the bucket containing the object to read.
      * 
* - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1235,10 +1235,10 @@ public Builder clearBucket() { * * *
-     * The name of the bucket containing the object to read.
+     * Required. The name of the bucket containing the object to read.
      * 
* - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for bucket to set. * @return This builder for chaining. @@ -1259,10 +1259,10 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { * * *
-     * The name of the object to read.
+     * Required. The name of the object to read.
      * 
* - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The object. */ @@ -1281,10 +1281,10 @@ public java.lang.String getObject() { * * *
-     * The name of the object to read.
+     * Required. The name of the object to read.
      * 
* - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for object. */ @@ -1303,10 +1303,10 @@ public com.google.protobuf.ByteString getObjectBytes() { * * *
-     * The name of the object to read.
+     * Required. The name of the object to read.
      * 
* - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The object to set. * @return This builder for chaining. @@ -1324,10 +1324,10 @@ public Builder setObject(java.lang.String value) { * * *
-     * The name of the object to read.
+     * Required. The name of the object to read.
      * 
* - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1341,10 +1341,10 @@ public Builder clearObject() { * * *
-     * The name of the object to read.
+     * Required. The name of the object to read.
      * 
* - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for object to set. * @return This builder for chaining. 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 5a1661cdf..c81247c4c 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 @@ -27,10 +27,10 @@ public interface ReadObjectRequestOrBuilder * * *
-   * The name of the bucket containing the object to read.
+   * Required. The name of the bucket containing the object to read.
    * 
* - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bucket. */ @@ -39,10 +39,10 @@ public interface ReadObjectRequestOrBuilder * * *
-   * The name of the bucket containing the object to read.
+   * Required. The name of the bucket containing the object to read.
    * 
* - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for bucket. */ @@ -52,10 +52,10 @@ public interface ReadObjectRequestOrBuilder * * *
-   * The name of the object to read.
+   * Required. The name of the object to read.
    * 
* - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The object. */ @@ -64,10 +64,10 @@ public interface ReadObjectRequestOrBuilder * * *
-   * The name of the object to read.
+   * Required. The name of the object to read.
    * 
* - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for object. */ 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 507dc4d72..07ba871c8 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 @@ -285,7 +285,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Immutable. The name of the destination object.
+   * Required. Immutable. The name of the destination object.
    * See the
    * [Naming Guidelines](https://cloud.google.com/storage/docs/naming-objects).
    * Example: `test.txt`
@@ -294,7 +294,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * (bucket, object, generation).
    * 
* - * string destination_name = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The destinationName. */ @@ -314,7 +316,7 @@ public java.lang.String getDestinationName() { * * *
-   * Immutable. The name of the destination object.
+   * Required. Immutable. The name of the destination object.
    * See the
    * [Naming Guidelines](https://cloud.google.com/storage/docs/naming-objects).
    * Example: `test.txt`
@@ -323,7 +325,9 @@ public java.lang.String getDestinationName() {
    * (bucket, object, generation).
    * 
* - * string destination_name = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The bytes for destinationName. */ @@ -346,11 +350,11 @@ public com.google.protobuf.ByteString getDestinationNameBytes() { * * *
-   * Immutable. The name of the bucket containing the destination object.
+   * Required. Immutable. The name of the bucket containing the destination object.
    * 
* * - * string destination_bucket = 25 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The destinationBucket. @@ -371,11 +375,11 @@ public java.lang.String getDestinationBucket() { * * *
-   * Immutable. The name of the bucket containing the destination object.
+   * Required. Immutable. The name of the bucket containing the destination object.
    * 
* * - * string destination_bucket = 25 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The bytes for destinationBucket. @@ -1957,7 +1961,7 @@ public Builder mergeFrom( * * *
-     * Immutable. The name of the destination object.
+     * Required. Immutable. The name of the destination object.
      * See the
      * [Naming Guidelines](https://cloud.google.com/storage/docs/naming-objects).
      * Example: `test.txt`
@@ -1966,7 +1970,9 @@ public Builder mergeFrom(
      * (bucket, object, generation).
      * 
* - * string destination_name = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The destinationName. */ @@ -1985,7 +1991,7 @@ public java.lang.String getDestinationName() { * * *
-     * Immutable. The name of the destination object.
+     * Required. Immutable. The name of the destination object.
      * See the
      * [Naming Guidelines](https://cloud.google.com/storage/docs/naming-objects).
      * Example: `test.txt`
@@ -1994,7 +2000,9 @@ public java.lang.String getDestinationName() {
      * (bucket, object, generation).
      * 
* - * string destination_name = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The bytes for destinationName. */ @@ -2013,7 +2021,7 @@ public com.google.protobuf.ByteString getDestinationNameBytes() { * * *
-     * Immutable. The name of the destination object.
+     * Required. Immutable. The name of the destination object.
      * See the
      * [Naming Guidelines](https://cloud.google.com/storage/docs/naming-objects).
      * Example: `test.txt`
@@ -2022,7 +2030,9 @@ public com.google.protobuf.ByteString getDestinationNameBytes() {
      * (bucket, object, generation).
      * 
* - * string destination_name = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @param value The destinationName to set. * @return This builder for chaining. @@ -2040,7 +2050,7 @@ public Builder setDestinationName(java.lang.String value) { * * *
-     * Immutable. The name of the destination object.
+     * Required. Immutable. The name of the destination object.
      * See the
      * [Naming Guidelines](https://cloud.google.com/storage/docs/naming-objects).
      * Example: `test.txt`
@@ -2049,7 +2059,9 @@ public Builder setDestinationName(java.lang.String value) {
      * (bucket, object, generation).
      * 
* - * string destination_name = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return This builder for chaining. */ @@ -2063,7 +2075,7 @@ public Builder clearDestinationName() { * * *
-     * Immutable. The name of the destination object.
+     * Required. Immutable. The name of the destination object.
      * See the
      * [Naming Guidelines](https://cloud.google.com/storage/docs/naming-objects).
      * Example: `test.txt`
@@ -2072,7 +2084,9 @@ public Builder clearDestinationName() {
      * (bucket, object, generation).
      * 
* - * string destination_name = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @param value The bytes for destinationName to set. * @return This builder for chaining. @@ -2093,11 +2107,11 @@ public Builder setDestinationNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Immutable. The name of the bucket containing the destination object.
+     * Required. Immutable. The name of the bucket containing the destination object.
      * 
* * - * string destination_bucket = 25 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The destinationBucket. @@ -2117,11 +2131,11 @@ public java.lang.String getDestinationBucket() { * * *
-     * Immutable. The name of the bucket containing the destination object.
+     * Required. Immutable. The name of the bucket containing the destination object.
      * 
* * - * string destination_bucket = 25 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The bytes for destinationBucket. @@ -2141,11 +2155,11 @@ public com.google.protobuf.ByteString getDestinationBucketBytes() { * * *
-     * Immutable. The name of the bucket containing the destination object.
+     * Required. Immutable. The name of the bucket containing the destination object.
      * 
* * - * string destination_bucket = 25 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @param value The destinationBucket to set. @@ -2164,11 +2178,11 @@ public Builder setDestinationBucket(java.lang.String value) { * * *
-     * Immutable. The name of the bucket containing the destination object.
+     * Required. Immutable. The name of the bucket containing the destination object.
      * 
* * - * string destination_bucket = 25 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -2183,11 +2197,11 @@ public Builder clearDestinationBucket() { * * *
-     * Immutable. The name of the bucket containing the destination object.
+     * Required. Immutable. The name of the bucket containing the destination object.
      * 
* * - * string destination_bucket = 25 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @param value The bytes for destinationBucket to set. 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 cd22bb5a1..459e00eed 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 @@ -27,7 +27,7 @@ public interface RewriteObjectRequestOrBuilder * * *
-   * Immutable. The name of the destination object.
+   * Required. Immutable. The name of the destination object.
    * See the
    * [Naming Guidelines](https://cloud.google.com/storage/docs/naming-objects).
    * Example: `test.txt`
@@ -36,7 +36,9 @@ public interface RewriteObjectRequestOrBuilder
    * (bucket, object, generation).
    * 
* - * string destination_name = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The destinationName. */ @@ -45,7 +47,7 @@ public interface RewriteObjectRequestOrBuilder * * *
-   * Immutable. The name of the destination object.
+   * Required. Immutable. The name of the destination object.
    * See the
    * [Naming Guidelines](https://cloud.google.com/storage/docs/naming-objects).
    * Example: `test.txt`
@@ -54,7 +56,9 @@ public interface RewriteObjectRequestOrBuilder
    * (bucket, object, generation).
    * 
* - * string destination_name = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The bytes for destinationName. */ @@ -64,11 +68,11 @@ public interface RewriteObjectRequestOrBuilder * * *
-   * Immutable. The name of the bucket containing the destination object.
+   * Required. Immutable. The name of the bucket containing the destination object.
    * 
* * - * string destination_bucket = 25 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The destinationBucket. @@ -78,11 +82,11 @@ public interface RewriteObjectRequestOrBuilder * * *
-   * Immutable. The name of the bucket containing the destination object.
+   * Required. Immutable. The name of the bucket containing the destination object.
    * 
* * - * string destination_bucket = 25 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The bytes for destinationBucket. 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 d0a3a5398..dfedd58a1 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 @@ -142,10 +142,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The destination bucket, object, and metadata, as well as any preconditions.
+   * Required. The destination bucket, object, and metadata, as well as any preconditions.
    * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the writeObjectSpec field is set. */ @@ -157,10 +159,12 @@ public boolean hasWriteObjectSpec() { * * *
-   * The destination bucket, object, and metadata, as well as any preconditions.
+   * Required. The destination bucket, object, and metadata, as well as any preconditions.
    * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The writeObjectSpec. */ @@ -174,10 +178,12 @@ public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() { * * *
-   * The destination bucket, object, and metadata, as well as any preconditions.
+   * Required. The destination bucket, object, and metadata, as well as any preconditions.
    * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder() { @@ -603,10 +609,12 @@ public Builder mergeFrom( * * *
-     * The destination bucket, object, and metadata, as well as any preconditions.
+     * Required. The destination bucket, object, and metadata, as well as any preconditions.
      * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the writeObjectSpec field is set. */ @@ -617,10 +625,12 @@ public boolean hasWriteObjectSpec() { * * *
-     * The destination bucket, object, and metadata, as well as any preconditions.
+     * Required. The destination bucket, object, and metadata, as well as any preconditions.
      * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The writeObjectSpec. */ @@ -637,10 +647,12 @@ public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() { * * *
-     * The destination bucket, object, and metadata, as well as any preconditions.
+     * Required. The destination bucket, object, and metadata, as well as any preconditions.
      * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) { if (writeObjectSpecBuilder_ == null) { @@ -659,10 +671,12 @@ public Builder setWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) { * * *
-     * The destination bucket, object, and metadata, as well as any preconditions.
+     * Required. The destination bucket, object, and metadata, as well as any preconditions.
      * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWriteObjectSpec( com.google.storage.v2.WriteObjectSpec.Builder builderForValue) { @@ -679,10 +693,12 @@ public Builder setWriteObjectSpec( * * *
-     * The destination bucket, object, and metadata, as well as any preconditions.
+     * Required. The destination bucket, object, and metadata, as well as any preconditions.
      * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) { if (writeObjectSpecBuilder_ == null) { @@ -705,10 +721,12 @@ public Builder mergeWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) * * *
-     * The destination bucket, object, and metadata, as well as any preconditions.
+     * Required. The destination bucket, object, and metadata, as well as any preconditions.
      * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWriteObjectSpec() { if (writeObjectSpecBuilder_ == null) { @@ -725,10 +743,12 @@ public Builder clearWriteObjectSpec() { * * *
-     * The destination bucket, object, and metadata, as well as any preconditions.
+     * Required. The destination bucket, object, and metadata, as well as any preconditions.
      * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.storage.v2.WriteObjectSpec.Builder getWriteObjectSpecBuilder() { @@ -739,10 +759,12 @@ public com.google.storage.v2.WriteObjectSpec.Builder getWriteObjectSpecBuilder() * * *
-     * The destination bucket, object, and metadata, as well as any preconditions.
+     * Required. The destination bucket, object, and metadata, as well as any preconditions.
      * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder() { if (writeObjectSpecBuilder_ != null) { @@ -757,10 +779,12 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde * * *
-     * The destination bucket, object, and metadata, as well as any preconditions.
+     * Required. The destination bucket, object, and metadata, as well as any preconditions.
      * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.WriteObjectSpec, 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 0106de2ba..a628130b1 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 @@ -27,10 +27,12 @@ public interface StartResumableWriteRequestOrBuilder * * *
-   * The destination bucket, object, and metadata, as well as any preconditions.
+   * Required. The destination bucket, object, and metadata, as well as any preconditions.
    * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the writeObjectSpec field is set. */ @@ -39,10 +41,12 @@ public interface StartResumableWriteRequestOrBuilder * * *
-   * The destination bucket, object, and metadata, as well as any preconditions.
+   * Required. The destination bucket, object, and metadata, as well as any preconditions.
    * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The writeObjectSpec. */ @@ -51,10 +55,12 @@ public interface StartResumableWriteRequestOrBuilder * * *
-   * The destination bucket, object, and metadata, as well as any preconditions.
+   * Required. The destination bucket, object, and metadata, as well as any preconditions.
    * 
* - * .google.storage.v2.WriteObjectSpec write_object_spec = 1; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder(); 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 109ea1da5..03b1ddf5b 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 @@ -353,510 +353,517 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ad_mask\030\005 \001(\0132\032.google.protobuf.FieldMas" + "kH\002\210\001\001B\032\n\030_if_metageneration_matchB\036\n\034_i" + "f_metageneration_not_matchB\014\n\n_read_mask" - + "\"\341\001\n\023CreateBucketRequest\022C\n\006parent\030\001 \001(\t" + + "\"\334\001\n\023CreateBucketRequest\022C\n\006parent\030\001 \001(\t" + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" - + "s.com/Project\022.\n\006bucket\030\002 \001(\0132\031.google.s" - + "torage.v2.BucketB\003\340A\002\022\026\n\tbucket_id\030\003 \001(\t" - + "B\003\340A\002\022\026\n\016predefined_acl\030\006 \001(\t\022%\n\035predefi" - + "ned_default_object_acl\030\007 \001(\t\"\322\001\n\022ListBuc" - + "ketsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+clo" - + "udresourcemanager.googleapis.com/Project" - + "\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.goo" - + "gle.protobuf.FieldMaskH\000\210\001\001B\014\n\n_read_mas" - + "k\"Z\n\023ListBucketsResponse\022*\n\007buckets\030\001 \003(" - + "\0132\031.google.storage.v2.Bucket\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"z\n LockBucketRetentionPoli" - + "cyRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035stora" - + "ge.googleapis.com/Bucket\022\037\n\027if_metagener" - + "ation_match\030\002 \001(\003\"\274\002\n\023UpdateBucketReques" - + "t\022)\n\006bucket\030\001 \001(\0132\031.google.storage.v2.Bu" - + "cket\022$\n\027if_metageneration_match\030\002 \001(\003H\000\210" - + "\001\001\022(\n\033if_metageneration_not_match\030\003 \001(\003H" - + "\001\210\001\001\022\026\n\016predefined_acl\030\010 \001(\t\022%\n\035predefin" - + "ed_default_object_acl\030\t \001(\t\022/\n\013update_ma" - + "sk\030\006 \001(\0132\032.google.protobuf.FieldMaskB\032\n\030" - + "_if_metageneration_matchB\036\n\034_if_metagene" - + "ration_not_match\"V\n\031DeleteNotificationRe" - + "quest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#storage.goo" - + "gleapis.com/Notification\"M\n\026GetNotificat" - + "ionRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035storag" - + "e.googleapis.com/Bucket\"\216\001\n\031CreateNotifi" - + "cationRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035s" - + "torage.googleapis.com/Bucket\022:\n\014notifica" - + "tion\030\002 \001(\0132\037.google.storage.v2.Notificat" - + "ionB\003\340A\002\"x\n\030ListNotificationsRequest\0225\n\006" - + "parent\030\001 \001(\tB%\340A\002\372A\037\022\035storage.googleapis" - + ".com/Bucket\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"l\n\031ListNotificationsResponse\022" - + "6\n\rnotifications\030\001 \003(\0132\037.google.storage." - + "v2.Notification\022\027\n\017next_page_token\030\002 \001(\t" - + "\"\267\005\n\024ComposeObjectRequest\0223\n\013destination" - + "\030\001 \001(\0132\031.google.storage.v2.ObjectB\003\340A\002\022L" - + "\n\016source_objects\030\002 \003(\01324.google.storage." - + "v2.ComposeObjectRequest.SourceObject\022\"\n\032" - + "destination_predefined_acl\030\t \001(\t\022 \n\023if_g" - + "eneration_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_metagen" - + "eration_match\030\005 \001(\003H\001\210\001\001\0227\n\007kms_key\030\006 \001(" - + "\tB&\372A#\n!cloudkms.googleapis.com/CryptoKe" - + "y\022R\n\034common_object_request_params\030\007 \001(\0132" - + ",.google.storage.v2.CommonObjectRequestP" - + "arams\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\024object_precondi" - + "tions\030\003 \001(\0132H.google.storage.v2.ComposeO" - + "bjectRequest.SourceObject.ObjectPrecondi" - + "tions\032O\n\023ObjectPreconditions\022 \n\023if_gener" - + "ation_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_me" - + "tageneration_match\"\257\003\n\023DeleteObjectReque" - + "st\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\023\n\006object\030\002 \001(\tB" - + "\003\340A\002\022\022\n\ngeneration\030\004 \001(\003\022 \n\023if_generatio" - + "n_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_ma" - + "tch\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_reques" - + "t_params\030\n \001(\0132,.google.storage.v2.Commo" - + "nObjectRequestParamsB\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_match\"5\n\033CancelResumableWriteRequ" - + "est\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002\"\036\n\034CancelRes" - + "umableWriteResponse\"\216\004\n\021ReadObjectReques" - + "t\022\016\n\006bucket\030\001 \001(\t\022\016\n\006object\030\002 \001(\t\022\022\n\ngen" - + "eration\030\003 \001(\003\022\023\n\013read_offset\030\004 \001(\003\022\022\n\nre" - + "ad_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.CommonObjectReq" - + "uestParams\0222\n\tread_mask\030\014 \001(\0132\032.google.p" - + "rotobuf.FieldMaskH\004\210\001\001B\026\n\024_if_generation" - + "_matchB\032\n\030_if_generation_not_matchB\032\n\030_i" - + "f_metageneration_matchB\036\n\034_if_metagenera" - + "tion_not_matchB\014\n\n_read_mask\"\356\003\n\020GetObje" - + "ctRequest\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\023\n\006object" - + "\030\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\003 \001(\003\022 \n\023if_ge" - + "neration_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_generati" - + "on_not_match\030\005 \001(\003H\001\210\001\001\022$\n\027if_metagenera" - + "tion_match\030\006 \001(\003H\002\210\001\001\022(\n\033if_metagenerati" - + "on_not_match\030\007 \001(\003H\003\210\001\001\022R\n\034common_object" - + "_request_params\030\010 \001(\0132,.google.storage.v" - + "2.CommonObjectRequestParams\0222\n\tread_mask" - + "\030\n \001(\0132\032.google.protobuf.FieldMaskH\004\210\001\001B" + + "s.com/Project\022)\n\006bucket\030\002 \001(\0132\031.google.s" + + "torage.v2.Bucket\022\026\n\tbucket_id\030\003 \001(\tB\003\340A\002" + + "\022\026\n\016predefined_acl\030\006 \001(\t\022%\n\035predefined_d" + + "efault_object_acl\030\007 \001(\t\"\322\001\n\022ListBucketsR" + + "equest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudres" + + "ourcemanager.googleapis.com/Project\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006pr" + + "efix\030\004 \001(\t\0222\n\tread_mask\030\005 \001(\0132\032.google.p" + + "rotobuf.FieldMaskH\000\210\001\001B\014\n\n_read_mask\"Z\n\023" + + "ListBucketsResponse\022*\n\007buckets\030\001 \003(\0132\031.g" + + "oogle.storage.v2.Bucket\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\177\n LockBucketRetentionPolicyReq" + + "uest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035storage.go" + + "ogleapis.com/Bucket\022$\n\027if_metageneration" + + "_match\030\002 \001(\003B\003\340A\002\"\306\002\n\023UpdateBucketReques" + + "t\022.\n\006bucket\030\001 \001(\0132\031.google.storage.v2.Bu" + + "cketB\003\340A\002\022$\n\027if_metageneration_match\030\002 \001" + + "(\003H\000\210\001\001\022(\n\033if_metageneration_not_match\030\003" + + " \001(\003H\001\210\001\001\022\026\n\016predefined_acl\030\010 \001(\t\022%\n\035pre" + + "defined_default_object_acl\030\t \001(\t\0224\n\013upda" + + "te_mask\030\006 \001(\0132\032.google.protobuf.FieldMas" + + "kB\003\340A\002B\032\n\030_if_metageneration_matchB\036\n\034_i" + + "f_metageneration_not_match\"V\n\031DeleteNoti" + + "ficationRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#s" + + "torage.googleapis.com/Notification\"M\n\026Ge" + + "tNotificationRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372" + + "A\037\n\035storage.googleapis.com/Bucket\"\216\001\n\031Cr" + + "eateNotificationRequest\0225\n\006parent\030\001 \001(\tB" + + "%\340A\002\372A\037\022\035storage.googleapis.com/Bucket\022:" + + "\n\014notification\030\002 \001(\0132\037.google.storage.v2" + + ".NotificationB\003\340A\002\"x\n\030ListNotificationsR" + + "equest\0225\n\006parent\030\001 \001(\tB%\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\"l\n\031ListNotification" + + "sResponse\0226\n\rnotifications\030\001 \003(\0132\037.googl" + + "e.storage.v2.Notification\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\267\005\n\024ComposeObjectRequest\0223\n\013d" + + "estination\030\001 \001(\0132\031.google.storage.v2.Obj" + + "ectB\003\340A\002\022L\n\016source_objects\030\002 \003(\01324.googl" + + "e.storage.v2.ComposeObjectRequest.Source" + + "Object\022\"\n\032destination_predefined_acl\030\t \001" + + "(\t\022 \n\023if_generation_match\030\004 \001(\003H\000\210\001\001\022$\n\027" + + "if_metageneration_match\030\005 \001(\003H\001\210\001\001\0227\n\007km" + + "s_key\030\006 \001(\tB&\372A#\n!cloudkms.googleapis.co" + + "m/CryptoKey\022R\n\034common_object_request_par" + + "ams\030\007 \001(\0132,.google.storage.v2.CommonObje" + + "ctRequestParams\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\024objec" + + "t_preconditions\030\003 \001(\0132H.google.storage.v" + + "2.ComposeObjectRequest.SourceObject.Obje" + + "ctPreconditions\032O\n\023ObjectPreconditions\022 " + + "\n\023if_generation_match\030\001 \001(\003H\000\210\001\001B\026\n\024_if_" + + "generation_matchB\026\n\024_if_generation_match" + + "B\032\n\030_if_metageneration_match\"\257\003\n\023DeleteO" + + "bjectRequest\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\023\n\006obj" + + "ect\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_gener" + + "ation_not_match\030\006 \001(\003H\001\210\001\001\022$\n\027if_metagen" + + "eration_match\030\007 \001(\003H\002\210\001\001\022(\n\033if_metagener" + + "ation_not_match\030\010 \001(\003H\003\210\001\001\022R\n\034common_obj" + + "ect_request_params\030\n \001(\0132,.google.storag" + + "e.v2.CommonObjectRequestParamsB\026\n\024_if_ge" + + "neration_matchB\032\n\030_if_generation_not_mat" + + "chB\032\n\030_if_metageneration_matchB\036\n\034_if_me" + + "tageneration_not_match\"5\n\033CancelResumabl" + + "eWriteRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002\"\036\n" + + "\034CancelResumableWriteResponse\"\230\004\n\021ReadOb" + + "jectRequest\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\023\n\006obje" + + "ct\030\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\003 \001(\003\022\023\n\013rea" + + "d_offset\030\004 \001(\003\022\022\n\nread_limit\030\005 \001(\003\022 \n\023if" + + "_generation_match\030\006 \001(\003H\000\210\001\001\022$\n\027if_gener" + + "ation_not_match\030\007 \001(\003H\001\210\001\001\022$\n\027if_metagen" + + "eration_match\030\010 \001(\003H\002\210\001\001\022(\n\033if_metagener" + + "ation_not_match\030\t \001(\003H\003\210\001\001\022R\n\034common_obj" + + "ect_request_params\030\n \001(\0132,.google.storag" + + "e.v2.CommonObjectRequestParams\0222\n\tread_m" + + "ask\030\014 \001(\0132\032.google.protobuf.FieldMaskH\004\210" + + "\001\001B\026\n\024_if_generation_matchB\032\n\030_if_genera" + + "tion_not_matchB\032\n\030_if_metageneration_mat" + + "chB\036\n\034_if_metageneration_not_matchB\014\n\n_r" + + "ead_mask\"\356\003\n\020GetObjectRequest\022\023\n\006bucket\030" + + "\001 \001(\tB\003\340A\002\022\023\n\006object\030\002 \001(\tB\003\340A\002\022\022\n\ngener" + + "ation\030\003 \001(\003\022 \n\023if_generation_match\030\004 \001(\003" + + "H\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\022R\n\034common_object_request_params\030\010 \001(" + + "\0132,.google.storage.v2.CommonObjectReques" + + "tParams\0222\n\tread_mask\030\n \001(\0132\032.google.prot" + + "obuf.FieldMaskH\004\210\001\001B\026\n\024_if_generation_ma" + + "tchB\032\n\030_if_generation_not_matchB\032\n\030_if_m" + + "etageneration_matchB\036\n\034_if_metageneratio" + + "n_not_matchB\014\n\n_read_mask\"\365\001\n\022ReadObject" + + "Response\022<\n\020checksummed_data\030\001 \001(\0132\".goo" + + "gle.storage.v2.ChecksummedData\022<\n\020object" + + "_checksums\030\002 \001(\0132\".google.storage.v2.Obj" + + "ectChecksums\0226\n\rcontent_range\030\003 \001(\0132\037.go" + + "ogle.storage.v2.ContentRange\022+\n\010metadata" + + "\030\004 \001(\0132\031.google.storage.v2.Object\"\215\003\n\017Wr" + + "iteObjectSpec\0220\n\010resource\030\001 \001(\0132\031.google" + + ".storage.v2.ObjectB\003\340A\002\022\026\n\016predefined_ac" + + "l\030\007 \001(\t\022 \n\023if_generation_match\030\003 \001(\003H\000\210\001" + + "\001\022$\n\027if_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_metageneration_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_generat" + + "ion_matchB\032\n\030_if_generation_not_matchB\032\n" + + "\030_if_metageneration_matchB\036\n\034_if_metagen" + + "eration_not_matchB\016\n\014_object_size\"\206\003\n\022Wr" + + "iteObjectRequest\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n" + + "\021write_object_spec\030\002 \001(\0132\".google.storag" + + "e.v2.WriteObjectSpecH\000\022\031\n\014write_offset\030\003" + + " \001(\003B\003\340A\002\022>\n\020checksummed_data\030\004 \001(\0132\".go" + + "ogle.storage.v2.ChecksummedDataH\001\022<\n\020obj" + + "ect_checksums\030\006 \001(\0132\".google.storage.v2." + + "ObjectChecksums\022\024\n\014finish_write\030\007 \001(\010\022R\n" + + "\034common_object_request_params\030\010 \001(\0132,.go" + + "ogle.storage.v2.CommonObjectRequestParam" + + "sB\017\n\rfirst_messageB\006\n\004data\"n\n\023WriteObjec" + + "tResponse\022\030\n\016persisted_size\030\001 \001(\003H\000\022-\n\010r" + + "esource\030\002 \001(\0132\031.google.storage.v2.Object" + + "H\000B\016\n\014write_status\"\305\002\n\022ListObjectsReques" + + "t\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035storage.googl" + + "eapis.com/Bucket\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\022\021\n\tdelimiter\030\004 \001(\t\022\"\n\032in" + + "clude_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.FieldMaskH\000\210\001\001\022\033\n\023" + + "lexicographic_start\030\n \001(\t\022\031\n\021lexicograph" + + "ic_end\030\013 \001(\tB\014\n\n_read_mask\"\205\001\n\027QueryWrit" + + "eStatusRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002\022R" + + "\n\034common_object_request_params\030\002 \001(\0132,.g" + + "oogle.storage.v2.CommonObjectRequestPara" + + "ms\"s\n\030QueryWriteStatusResponse\022\030\n\016persis" + + "ted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\0132\031.goo" + + "gle.storage.v2.ObjectH\000B\016\n\014write_status\"" + + "\310\t\n\024RewriteObjectRequest\022 \n\020destination_" + + "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.googleapis.co" + + "m/Bucket\022C\n\023destination_kms_key\030\033 \001(\tB&\372" + + "A#\n!cloudkms.googleapis.com/CryptoKey\022.\n" + + "\013destination\030\001 \001(\0132\031.google.storage.v2.O" + + "bject\022\032\n\rsource_bucket\030\002 \001(\tB\003\340A\002\022\032\n\rsou" + + "rce_object\030\003 \001(\tB\003\340A\002\022\031\n\021source_generati" + + "on\030\004 \001(\003\022\025\n\rrewrite_token\030\005 \001(\t\022\"\n\032desti" + + "nation_predefined_acl\030\034 \001(\t\022 \n\023if_genera" + + "tion_match\030\007 \001(\003H\000\210\001\001\022$\n\027if_generation_n" + + "ot_match\030\010 \001(\003H\001\210\001\001\022$\n\027if_metageneration" + + "_match\030\t \001(\003H\002\210\001\001\022(\n\033if_metageneration_n" + + "ot_match\030\n \001(\003H\003\210\001\001\022\'\n\032if_source_generat" + + "ion_match\030\013 \001(\003H\004\210\001\001\022+\n\036if_source_genera" + + "tion_not_match\030\014 \001(\003H\005\210\001\001\022+\n\036if_source_m" + + "etageneration_match\030\r \001(\003H\006\210\001\001\022/\n\"if_sou" + + "rce_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_b" + + "ytes\030\026 \001(\014\022R\n\034common_object_request_para" + + "ms\030\023 \001(\0132,.google.storage.v2.CommonObjec" + + "tRequestParamsB\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\035\n\033_if_source_generation_matchB!\n" + + "\037_if_source_generation_not_matchB!\n\037_if_" + + "source_metageneration_matchB%\n#_if_sourc" + + "e_metageneration_not_match\"\227\001\n\017RewriteRe" + + "sponse\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\rrewr" + + "ite_token\030\004 \001(\t\022+\n\010resource\030\005 \001(\0132\031.goog" + + "le.storage.v2.Object\"\264\001\n\032StartResumableW" + + "riteRequest\022B\n\021write_object_spec\030\001 \001(\0132\"" + + ".google.storage.v2.WriteObjectSpecB\003\340A\002\022" + + "R\n\034common_object_request_params\030\003 \001(\0132,." + + "google.storage.v2.CommonObjectRequestPar" + + "ams\"0\n\033StartResumableWriteResponse\022\021\n\tup" + + "load_id\030\001 \001(\t\"\357\003\n\023UpdateObjectRequest\022.\n" + + "\006object\030\001 \001(\0132\031.google.storage.v2.Object" + + "B\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\033i" + + "f_metageneration_not_match\030\005 \001(\003H\003\210\001\001\022\026\n" + + "\016predefined_acl\030\n \001(\t\0224\n\013update_mask\030\007 \001" + + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022R\n\034c" + + "ommon_object_request_params\030\010 \001(\0132,.goog" + + "le.storage.v2.CommonObjectRequestParamsB" + "\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\"\365\001\n\022ReadObjectResponse\022<\n\020checksum" - + "med_data\030\001 \001(\0132\".google.storage.v2.Check" - + "summedData\022<\n\020object_checksums\030\002 \001(\0132\".g" - + "oogle.storage.v2.ObjectChecksums\0226\n\rcont" - + "ent_range\030\003 \001(\0132\037.google.storage.v2.Cont" - + "entRange\022+\n\010metadata\030\004 \001(\0132\031.google.stor" - + "age.v2.Object\"\210\003\n\017WriteObjectSpec\022+\n\010res" - + "ource\030\001 \001(\0132\031.google.storage.v2.Object\022\026" - + "\n\016predefined_acl\030\007 \001(\t\022 \n\023if_generation_" - + "match\030\003 \001(\003H\000\210\001\001\022$\n\027if_generation_not_ma" - + "tch\030\004 \001(\003H\001\210\001\001\022$\n\027if_metageneration_matc" - + "h\030\005 \001(\003H\002\210\001\001\022(\n\033if_metageneration_not_ma" - + "tch\030\006 \001(\003H\003\210\001\001\022\030\n\013object_size\030\010 \001(\003H\004\210\001\001" - + "B\026\n\024_if_generation_matchB\032\n\030_if_generati" - + "on_not_matchB\032\n\030_if_metageneration_match" - + "B\036\n\034_if_metageneration_not_matchB\016\n\014_obj" - + "ect_size\"\206\003\n\022WriteObjectRequest\022\023\n\tuploa" - + "d_id\030\001 \001(\tH\000\022?\n\021write_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.Checksumm" - + "edDataH\001\022<\n\020object_checksums\030\006 \001(\0132\".goo" - + "gle.storage.v2.ObjectChecksums\022\024\n\014finish" - + "_write\030\007 \001(\010\022R\n\034common_object_request_pa" - + "rams\030\010 \001(\0132,.google.storage.v2.CommonObj" - + "ectRequestParamsB\017\n\rfirst_messageB\006\n\004dat" - + "a\"n\n\023WriteObjectResponse\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\"\305\002\n\022Li" - + "stObjectsRequest\0225\n\006parent\030\001 \001(\tB%\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\021\n\tdelimi" - + "ter\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\022" - + "2\n\tread_mask\030\010 \001(\0132\032.google.protobuf.Fie" - + "ldMaskH\000\210\001\001\022\033\n\023lexicographic_start\030\n \001(\t" - + "\022\031\n\021lexicographic_end\030\013 \001(\tB\014\n\n_read_mas" - + "k\"\205\001\n\027QueryWriteStatusRequest\022\026\n\tupload_" - + "id\030\001 \001(\tB\003\340A\002\022R\n\034common_object_request_p" - + "arams\030\002 \001(\0132,.google.storage.v2.CommonOb" - + "jectRequestParams\"s\n\030QueryWriteStatusRes" - + "ponse\022\030\n\016persisted_size\030\001 \001(\003H\000\022-\n\010resou" - + "rce\030\002 \001(\0132\031.google.storage.v2.ObjectH\000B\016" - + "\n\014write_status\"\302\t\n\024RewriteObjectRequest\022" - + "\035\n\020destination_name\030\030 \001(\tB\003\340A\005\022A\n\022destin" - + "ation_bucket\030\031 \001(\tB%\340A\005\372A\037\n\035storage.goog" - + "leapis.com/Bucket\022C\n\023destination_kms_key" - + "\030\033 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cry" - + "ptoKey\022.\n\013destination\030\001 \001(\0132\031.google.sto" - + "rage.v2.Object\022\032\n\rsource_bucket\030\002 \001(\tB\003\340" - + "A\002\022\032\n\rsource_object\030\003 \001(\tB\003\340A\002\022\031\n\021source" - + "_generation\030\004 \001(\003\022\025\n\rrewrite_token\030\005 \001(\t" - + "\022\"\n\032destination_predefined_acl\030\034 \001(\t\022 \n\023" - + "if_generation_match\030\007 \001(\003H\000\210\001\001\022$\n\027if_gen" - + "eration_not_match\030\010 \001(\003H\001\210\001\001\022$\n\027if_metag" - + "eneration_match\030\t \001(\003H\002\210\001\001\022(\n\033if_metagen" - + "eration_not_match\030\n \001(\003H\003\210\001\001\022\'\n\032if_sourc" - + "e_generation_match\030\013 \001(\003H\004\210\001\001\022+\n\036if_sour" - + "ce_generation_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_source_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_algorit" - + "hm\030\020 \001(\t\022(\n copy_source_encryption_key_b" - + "ytes\030\025 \001(\014\022/\n\'copy_source_encryption_key" - + "_sha256_bytes\030\026 \001(\014\022R\n\034common_object_req" - + "uest_params\030\023 \001(\0132,.google.storage.v2.Co" - + "mmonObjectRequestParamsB\026\n\024_if_generatio" - + "n_matchB\032\n\030_if_generation_not_matchB\032\n\030_" - + "if_metageneration_matchB\036\n\034_if_metagener" - + "ation_not_matchB\035\n\033_if_source_generation" - + "_matchB!\n\037_if_source_generation_not_matc" - + "hB!\n\037_if_source_metageneration_matchB%\n#" - + "_if_source_metageneration_not_match\"\227\001\n\017" - + "RewriteResponse\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\010resource\030\005 \001" - + "(\0132\031.google.storage.v2.Object\"\257\001\n\032StartR" - + "esumableWriteRequest\022=\n\021write_object_spe" - + "c\030\001 \001(\0132\".google.storage.v2.WriteObjectS" - + "pec\022R\n\034common_object_request_params\030\003 \001(" - + "\0132,.google.storage.v2.CommonObjectReques" - + "tParams\"0\n\033StartResumableWriteResponse\022\021" - + "\n\tupload_id\030\001 \001(\t\"\345\003\n\023UpdateObjectReques" - + "t\022)\n\006object\030\001 \001(\0132\031.google.storage.v2.Ob" - + "ject\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\027" - + "if_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\016" - + "predefined_acl\030\n \001(\t\022/\n\013update_mask\030\007 \001(" - + "\0132\032.google.protobuf.FieldMask\022R\n\034common_" - + "object_request_params\030\010 \001(\0132,.google.sto" - + "rage.v2.CommonObjectRequestParamsB\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_match\"`\n\030GetServiceA" - + "ccountRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+" + + "\036\n\034_if_metageneration_not_match\"`\n\030GetSe" + + "rviceAccountRequest\022D\n\007project\030\001 \001(\tB3\340A" + + "\002\372A-\n+cloudresourcemanager.googleapis.co" + + "m/Project\"\200\001\n\024CreateHmacKeyRequest\022D\n\007pr" + + "oject\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanage" + + "r.googleapis.com/Project\022\"\n\025service_acco" + + "unt_email\030\002 \001(\tB\003\340A\002\"g\n\025CreateHmacKeyRes" + + "ponse\0224\n\010metadata\030\001 \001(\0132\".google.storage" + + ".v2.HmacKeyMetadata\022\030\n\020secret_key_bytes\030" + + "\003 \001(\014\"t\n\024DeleteHmacKeyRequest\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\"\200\001\n\024CreateHmacKeyRequest\022D\n\007project\030" - + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" - + "leapis.com/Project\022\"\n\025service_account_em" - + "ail\030\002 \001(\tB\003\340A\002\"g\n\025CreateHmacKeyResponse\022" - + "4\n\010metadata\030\001 \001(\0132\".google.storage.v2.Hm" - + "acKeyMetadata\022\030\n\020secret_key_bytes\030\003 \001(\014\"" - + "t\n\024DeleteHmacKeyRequest\022\026\n\taccess_id\030\001 \001" - + "(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340A\002\372A-\n+cloudr" - + "esourcemanager.googleapis.com/Project\"q\n" - + "\021GetHmacKeyRequest\022\026\n\taccess_id\030\001 \001(\tB\003\340" - + "A\002\022D\n\007project\030\002 \001(\tB3\340A\002\372A-\n+cloudresour" - + "cemanager.googleapis.com/Project\"\320\001\n\023Lis" - + "tHmacKeysRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A" - + "-\n+cloudresourcemanager.googleapis.com/P" - + "roject\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_t" - + "oken\030\003 \001(\tB\003\340A\001\022\"\n\025service_account_email" - + "\030\004 \001(\tB\003\340A\001\022\036\n\021show_deleted_keys\030\005 \001(\010B\003" - + "\340A\001\"f\n\024ListHmacKeysResponse\0225\n\thmac_keys" - + "\030\001 \003(\0132\".google.storage.v2.HmacKeyMetada" - + "ta\022\027\n\017next_page_token\030\002 \001(\t\"\202\001\n\024UpdateHm" - + "acKeyRequest\0229\n\010hmac_key\030\001 \001(\0132\".google." - + "storage.v2.HmacKeyMetadataB\003\340A\002\022/\n\013updat" - + "e_mask\030\003 \001(\0132\032.google.protobuf.FieldMask" - + "\"|\n\031CommonObjectRequestParams\022\034\n\024encrypt" - + "ion_algorithm\030\001 \001(\t\022\034\n\024encryption_key_by" - + "tes\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_CUST" - + "OM_METADATA_FIELD_NAME_BYTES\020\200\010\022*\n%MAX_C" - + "USTOM_METADATA_FIELD_VALUE_BYTES\020\200 \022)\n$M" - + "AX_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_BUCKE" - + "T\020d\022\"\n\036MAX_LIFECYCLE_RULES_PER_BUCKET\020d\022" - + "&\n\"MAX_NOTIFICATION_CUSTOM_ATTRIBUTES\020\005\022" - + "1\n,MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY" - + "_LENGTH\020\200\002\0223\n.MAX_NOTIFICATION_CUSTOM_AT" - + "TRIBUTE_VALUE_LENGTH\020\200\010\022\034\n\030MAX_LABELS_EN" - + "TRIES_COUNT\020@\022\037\n\033MAX_LABELS_KEY_VALUE_LE" - + "NGTH\020?\022\037\n\032MAX_LABELS_KEY_VALUE_BYTES\020\200\001\022" - + ".\n)MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQ" - + "UEST\020\350\007\022\036\n\032SPLIT_TOKEN_MAX_VALID_DAYS\020\016\032" - + "\002\020\001\"\264\027\n\006Bucket\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\026\n\tbuc" - + "ket_id\030\002 \001(\tB\003\340A\003\022\014\n\004etag\030\035 \001(\t\022D\n\007proje" - + "ct\030\003 \001(\tB3\340A\005\372A-\n+cloudresourcemanager.g" - + "oogleapis.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\rloc" - + "ation_type\030\006 \001(\tB\003\340A\003\022\025\n\rstorage_class\030\007" - + " \001(\t\022\013\n\003rpo\030\033 \001(\t\0223\n\003acl\030\010 \003(\0132&.google." - + "storage.v2.BucketAccessControl\022B\n\022defaul" - + "t_object_acl\030\t \003(\0132&.google.storage.v2.O" - + "bjectAccessControl\0226\n\tlifecycle\030\n \001(\0132#." - + "google.storage.v2.Bucket.Lifecycle\0224\n\013cr" - + "eate_time\030\013 \001(\0132\032.google.protobuf.Timest" - + "ampB\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.go" - + "ogle.protobuf.TimestampB\003\340A\003\022 \n\030default_" - + "event_based_hold\030\016 \001(\010\0225\n\006labels\030\017 \003(\0132%" - + ".google.storage.v2.Bucket.LabelsEntry\0222\n" - + "\007website\030\020 \001(\0132!.google.storage.v2.Bucke" - + "t.Website\0228\n\nversioning\030\021 \001(\0132$.google.s" - + "torage.v2.Bucket.Versioning\0222\n\007logging\030\022" - + " \001(\0132!.google.storage.v2.Bucket.Logging\022" - + ",\n\005owner\030\023 \001(\0132\030.google.storage.v2.Owner" - + "B\003\340A\003\0228\n\nencryption\030\024 \001(\0132$.google.stora" - + "ge.v2.Bucket.Encryption\0222\n\007billing\030\025 \001(\013" - + "2!.google.storage.v2.Bucket.Billing\022C\n\020r" - + "etention_policy\030\026 \001(\0132).google.storage.v" - + "2.Bucket.RetentionPolicy\0227\n\niam_config\030\027" - + " \001(\0132#.google.storage.v2.Bucket.IamConfi" - + "g\022\025\n\rsatisfies_pzs\030\031 \001(\010\022P\n\027custom_place" - + "ment_config\030\032 \001(\0132/.google.storage.v2.Bu" - + "cket.CustomPlacementConfig\0226\n\tautoclass\030" - + "\034 \001(\0132#.google.storage.v2.Bucket.Autocla" - + "ss\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_second" - + "s\030\004 \001(\005\032M\n\nEncryption\022?\n\017default_kms_key" - + "\030\001 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cry" - + "ptoKey\032\354\001\n\tIamConfig\022a\n\033uniform_bucket_l" - + "evel_access\030\001 \001(\0132<.google.storage.v2.Bu" - + "cket.IamConfig.UniformBucketLevelAccess\022" - + " \n\030public_access_prevention\030\003 \001(\t\032Z\n\030Uni" - + "formBucketLevelAccess\022\017\n\007enabled\030\001 \001(\010\022-" - + "\n\tlock_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp\032\363\005\n\tLifecycle\0226\n\004rule\030\001 \003(\0132(.goog" - + "le.storage.v2.Bucket.Lifecycle.Rule\032\255\005\n\004" - + "Rule\022?\n\006action\030\001 \001(\0132/.google.storage.v2" - + ".Bucket.Lifecycle.Rule.Action\022E\n\tconditi" - + "on\030\002 \001(\01322.google.storage.v2.Bucket.Life" - + "cycle.Rule.Condition\032-\n\006Action\022\014\n\004type\030\001" - + " \001(\t\022\025\n\rstorage_class\030\002 \001(\t\032\355\003\n\tConditio" - + "n\022\025\n\010age_days\030\001 \001(\005H\000\210\001\001\022)\n\016created_befo" - + "re\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\026day" - + "s_since_custom_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\016mat" - + "ches_suffix\030\014 \003(\tB\013\n\t_age_daysB\n\n\010_is_li" - + "veB\025\n\023_num_newer_versionsB\031\n\027_days_since" - + "_custom_timeB\035\n\033_days_since_noncurrent_t" - + "ime\0328\n\007Logging\022\022\n\nlog_bucket\030\001 \001(\t\022\031\n\021lo" - + "g_object_prefix\030\002 \001(\t\032r\n\017RetentionPolicy" - + "\0222\n\016effective_time\030\001 \001(\0132\032.google.protob" - + "uf.Timestamp\022\021\n\tis_locked\030\002 \001(\010\022\030\n\020reten" - + "tion_period\030\003 \001(\003\032\035\n\nVersioning\022\017\n\007enabl" - + "ed\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\025CustomP" - + "lacementConfig\022\026\n\016data_locations\030\001 \003(\t\032R" - + "\n\tAutoclass\022\017\n\007enabled\030\001 \001(\010\0224\n\013toggle_t" - + "ime\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001:G\352AD\n\035storage.googleapis.com/B" - + "ucket\022#projects/{project}/buckets/{bucke" - + "t}\"\265\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\021\n\tentity_i" - + "d\030\004 \001(\t\022\014\n\004etag\030\010 \001(\t\022\r\n\005email\030\005 \001(\t\022\016\n\006" - + "domain\030\006 \001(\t\0224\n\014project_team\030\007 \001(\0132\036.goo" - + "gle.storage.v2.ProjectTeam\"B\n\017Checksumme" - + "dData\022\017\n\007content\030\001 \001(\014\022\023\n\006crc32c\030\002 \001(\007H\000" - + "\210\001\001B\t\n\007_crc32c\"C\n\017ObjectChecksums\022\023\n\006crc" - + "32c\030\001 \001(\007H\000\210\001\001\022\020\n\010md5_hash\030\002 \001(\014B\t\n\007_crc" - + "32c\"\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+cloudresourcemanager.googleap" - + "is.com/Project\022\"\n\025service_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\022" - + "4\n\013update_time\030\007 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\022\014\n\004etag\030\010 \001(\t\"\235\003\n\014Notifica" - + "tion\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\022\n\005topic\030\002 \001(\tB\003" - + "\340A\002\022\014\n\004etag\030\007 \001(\t\022\030\n\013event_types\030\003 \003(\tB\003" - + "\340A\001\022U\n\021custom_attributes\030\004 \003(\01325.google." - + "storage.v2.Notification.CustomAttributes" - + "EntryB\003\340A\001\022\037\n\022object_name_prefix\030\005 \001(\tB\003" - + "\340A\001\022\033\n\016payload_format\030\006 \001(\tB\003\340A\002\0327\n\025Cust" - + "omAttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001:p\352Am\n#storage.googleapis.com/N" - + "otification\022Fprojects/{project}/buckets/" - + "{bucket}/notificationConfigs/{notificati" - + "on}\"L\n\022CustomerEncryption\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\006bucke" - + "t\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(\003" - + "B\003\340A\005\022\033\n\016metageneration\030\004 \001(\003B\003\340A\003\022\025\n\rst" - + "orage_class\030\005 \001(\t\022\021\n\004size\030\006 \001(\003B\003\340A\003\022\030\n\020" - + "content_encoding\030\007 \001(\t\022\033\n\023content_dispos" - + "ition\030\010 \001(\t\022\025\n\rcache_control\030\t \001(\t\0223\n\003ac" - + "l\030\n \003(\0132&.google.storage.v2.ObjectAccess" - + "Control\022\030\n\020content_language\030\013 \001(\t\0224\n\013del" - + "ete_time\030\014 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\022\024\n\014content_type\030\r \001(\t\0224\n\013create_" - + "time\030\016 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\022\034\n\017component_count\030\017 \001(\005B\003\340A\003\022:\n\tche" - + "cksums\030\020 \001(\0132\".google.storage.v2.ObjectC" - + "hecksumsB\003\340A\003\0224\n\013update_time\030\021 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0227\n\007kms_key\030\022" - + " \001(\tB&\372A#\n!cloudkms.googleapis.com/Crypt" - + "oKey\022B\n\031update_storage_class_time\030\023 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\022\026\n\016temp" - + "orary_hold\030\024 \001(\010\0229\n\025retention_expire_tim" - + "e\030\025 \001(\0132\032.google.protobuf.Timestamp\0229\n\010m" - + "etadata\030\026 \003(\0132\'.google.storage.v2.Object" - + ".MetadataEntry\022\035\n\020event_based_hold\030\027 \001(\010" - + "H\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(\013" - + "2%.google.storage.v2.CustomerEncryption\022" - + "/\n\013custom_time\030\032 \001(\0132\032.google.protobuf.T" - + "imestamp\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\"\265" - + "\001\n\023ObjectAccessControl\022\014\n\004role\030\001 \001(\t\022\n\n\002" - + "id\030\002 \001(\t\022\016\n\006entity\030\003 \001(\t\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\006doma" - + "in\030\006 \001(\t\0224\n\014project_team\030\007 \001(\0132\036.google." - + "storage.v2.ProjectTeam\"l\n\023ListObjectsRes" - + "ponse\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\013ProjectTeam\022\026\n\016project_n" - + "umber\030\001 \001(\t\022\014\n\004team\030\002 \001(\t\"\'\n\016ServiceAcco" - + "unt\022\025\n\remail_address\030\001 \001(\t\"*\n\005Owner\022\016\n\006e" - + "ntity\030\001 \001(\t\022\021\n\tentity_id\030\002 \001(\t\"C\n\014Conten", - "tRange\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\022\027\n\017co" - + "mplete_length\030\003 \001(\0032\332$\n\007Storage\022r\n\014Delet" - + "eBucket\022&.google.storage.v2.DeleteBucket" - + "Request\032\026.google.protobuf.Empty\"\"\212\323\344\223\002\025\022" - + "\023\n\004name\022\013{bucket=**}\332A\004name\022o\n\tGetBucket" - + "\022#.google.storage.v2.GetBucketRequest\032\031." - + "google.storage.v2.Bucket\"\"\212\323\344\223\002\025\022\023\n\004name" - + "\022\013{bucket=**}\332A\004name\022m\n\014CreateBucket\022&.g" - + "oogle.storage.v2.CreateBucketRequest\032\031.g" - + "oogle.storage.v2.Bucket\"\032\332A\027parent,bucke" - + "t,bucket_id\022g\n\013ListBuckets\022%.google.stor" + + "ect\"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+cloud" + + "resourcemanager.googleapis.com/Project\"\274" + + "\001\n\023ListHmacKeysRequest\022D\n\007project\030\001 \001(\tB" + + "3\340A\002\372A-\n+cloudresourcemanager.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_account_email\030\004 \001" + + "(\t\022\031\n\021show_deleted_keys\030\005 \001(\010\"f\n\024ListHma" + + "cKeysResponse\0225\n\thmac_keys\030\001 \003(\0132\".googl" + + "e.storage.v2.HmacKeyMetadata\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\202\001\n\024UpdateHmacKeyRequest\0229" + + "\n\010hmac_key\030\001 \001(\0132\".google.storage.v2.Hma" + + "cKeyMetadataB\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032" + + ".google.protobuf.FieldMask\"|\n\031CommonObje" + + "ctRequestParams\022\034\n\024encryption_algorithm\030" + + "\001 \001(\t\022\034\n\024encryption_key_bytes\030\004 \001(\014\022#\n\033e" + + "ncryption_key_sha256_bytes\030\005 \001(\014\"\312\005\n\020Ser" + + "viceConstants\"\265\005\n\006Values\022\026\n\022VALUES_UNSPE" + + "CIFIED\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_OBJEC" + + "T_SIZE_MB\020\200\200\300\002\022)\n$MAX_CUSTOM_METADATA_FI" + + "ELD_NAME_BYTES\020\200\010\022*\n%MAX_CUSTOM_METADATA" + + "_FIELD_VALUE_BYTES\020\200 \022)\n$MAX_CUSTOM_META" + + "DATA_TOTAL_SIZE_BYTES\020\200@\022*\n$MAX_BUCKET_M" + + "ETADATA_TOTAL_SIZE_BYTES\020\200\240\001\022\'\n#MAX_NOTI" + + "FICATION_CONFIGS_PER_BUCKET\020d\022\"\n\036MAX_LIF" + + "ECYCLE_RULES_PER_BUCKET\020d\022&\n\"MAX_NOTIFIC" + + "ATION_CUSTOM_ATTRIBUTES\020\005\0221\n,MAX_NOTIFIC" + + "ATION_CUSTOM_ATTRIBUTE_KEY_LENGTH\020\200\002\0223\n." + + "MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_" + + "LENGTH\020\200\010\022\034\n\030MAX_LABELS_ENTRIES_COUNT\020@\022" + + "\037\n\033MAX_LABELS_KEY_VALUE_LENGTH\020?\022\037\n\032MAX_" + + "LABELS_KEY_VALUE_BYTES\020\200\001\022.\n)MAX_OBJECT_" + + "IDS_PER_DELETE_OBJECTS_REQUEST\020\350\007\022\036\n\032SPL" + + "IT_TOKEN_MAX_VALID_DAYS\020\016\032\002\020\001\"\317\027\n\006Bucket" + + "\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(\tB3\340A\005\372" + + "A-\n+cloudresourcemanager.googleapis.com/" + + "Project\022\033\n\016metageneration\030\004 \001(\003B\003\340A\003\022\025\n\010" + + "location\030\005 \001(\tB\003\340A\005\022\032\n\rlocation_type\030\006 \001" + + "(\tB\003\340A\003\022\025\n\rstorage_class\030\007 \001(\t\022\013\n\003rpo\030\033 " + + "\001(\t\0223\n\003acl\030\010 \003(\0132&.google.storage.v2.Buc" + + "ketAccessControl\022B\n\022default_object_acl\030\t" + + " \003(\0132&.google.storage.v2.ObjectAccessCon" + + "trol\0226\n\tlifecycle\030\n \001(\0132#.google.storage" + + ".v2.Bucket.Lifecycle\0224\n\013create_time\030\013 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022,\n\004co" + + "rs\030\014 \003(\0132\036.google.storage.v2.Bucket.Cors" + + "\0224\n\013update_time\030\r \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022 \n\030default_event_based_ho" + + "ld\030\016 \001(\010\0225\n\006labels\030\017 \003(\0132%.google.storag" + + "e.v2.Bucket.LabelsEntry\0222\n\007website\030\020 \001(\013" + + "2!.google.storage.v2.Bucket.Website\0228\n\nv" + + "ersioning\030\021 \001(\0132$.google.storage.v2.Buck" + + "et.Versioning\0222\n\007logging\030\022 \001(\0132!.google." + + "storage.v2.Bucket.Logging\022,\n\005owner\030\023 \001(\013" + + "2\030.google.storage.v2.OwnerB\003\340A\003\0228\n\nencry" + + "ption\030\024 \001(\0132$.google.storage.v2.Bucket.E" + + "ncryption\0222\n\007billing\030\025 \001(\0132!.google.stor" + + "age.v2.Bucket.Billing\022C\n\020retention_polic" + + "y\030\026 \001(\0132).google.storage.v2.Bucket.Reten" + + "tionPolicy\0227\n\niam_config\030\027 \001(\0132#.google." + + "storage.v2.Bucket.IamConfig\022\025\n\rsatisfies" + + "_pzs\030\031 \001(\010\022P\n\027custom_placement_config\030\032 " + + "\001(\0132/.google.storage.v2.Bucket.CustomPla" + + "cementConfig\0226\n\tautoclass\030\034 \001(\0132#.google" + + ".storage.v2.Bucket.Autoclass\032!\n\007Billing\022" + + "\026\n\016requester_pays\030\001 \001(\010\032X\n\004Cors\022\016\n\006origi" + + "n\030\001 \003(\t\022\016\n\006method\030\002 \003(\t\022\027\n\017response_head" + + "er\030\003 \003(\t\022\027\n\017max_age_seconds\030\004 \001(\005\032M\n\nEnc" + + "ryption\022?\n\017default_kms_key\030\001 \001(\tB&\372A#\n!c" + + "loudkms.googleapis.com/CryptoKey\032\354\001\n\tIam" + + "Config\022a\n\033uniform_bucket_level_access\030\001 " + + "\001(\0132<.google.storage.v2.Bucket.IamConfig" + + ".UniformBucketLevelAccess\022 \n\030public_acce" + + "ss_prevention\030\003 \001(\t\032Z\n\030UniformBucketLeve" + + "lAccess\022\017\n\007enabled\030\001 \001(\010\022-\n\tlock_time\030\002 " + + "\001(\0132\032.google.protobuf.Timestamp\032\363\005\n\tLife" + + "cycle\0226\n\004rule\030\001 \003(\0132(.google.storage.v2." + + "Bucket.Lifecycle.Rule\032\255\005\n\004Rule\022?\n\006action" + + "\030\001 \001(\0132/.google.storage.v2.Bucket.Lifecy" + + "cle.Rule.Action\022E\n\tcondition\030\002 \001(\01322.goo" + + "gle.storage.v2.Bucket.Lifecycle.Rule.Con" + + "dition\032-\n\006Action\022\014\n\004type\030\001 \001(\t\022\025\n\rstorag" + + "e_class\030\002 \001(\t\032\355\003\n\tCondition\022\025\n\010age_days\030" + + "\001 \001(\005H\000\210\001\001\022)\n\016created_before\030\002 \001(\0132\021.goo" + + "gle.type.Date\022\024\n\007is_live\030\003 \001(\010H\001\210\001\001\022\037\n\022n" + + "um_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\022custom_time_before\030\010" + + " \001(\0132\021.google.type.Date\022\'\n\032days_since_no" + + "ncurrent_time\030\t \001(\005H\004\210\001\001\0221\n\026noncurrent_t" + + "ime_before\030\n \001(\0132\021.google.type.Date\022\026\n\016m" + + "atches_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_new" + + "er_versionsB\031\n\027_days_since_custom_timeB\035" + + "\n\033_days_since_noncurrent_time\0328\n\007Logging" + + "\022\022\n\nlog_bucket\030\001 \001(\t\022\031\n\021log_object_prefi" + + "x\030\002 \001(\t\032\214\001\n\017RetentionPolicy\0222\n\016effective" + + "_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022" + + "\021\n\tis_locked\030\002 \001(\010\022\035\n\020retention_period\030\003" + + " \001(\003H\000\210\001\001B\023\n\021_retention_period\032\035\n\nVersio" + + "ning\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\025CustomPlacementConfig\022\026\n\016data_loca" + + "tions\030\001 \003(\t\032R\n\tAutoclass\022\017\n\007enabled\030\001 \001(" + + "\010\0224\n\013toggle_time\030\002 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:G\352AD\n\035storage.goo" + + "gleapis.com/Bucket\022#projects/{project}/b" + + "uckets/{bucket}\"\316\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\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\006do" + + "main\030\006 \001(\t\0224\n\014project_team\030\007 \001(\0132\036.googl" + + "e.storage.v2.ProjectTeam\"B\n\017ChecksummedD" + + "ata\022\017\n\007content\030\001 \001(\014\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\"\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(\tB" + + "3\340A\005\372A-\n+cloudresourcemanager.googleapis" + + ".com/Project\022\"\n\025service_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.google.protobuf.Tim" + + "estampB\003\340A\003\022\014\n\004etag\030\010 \001(\t\"\216\003\n\014Notificati" + + "on\022\021\n\004name\030\001 \001(\tB\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\022P\n\021" + + "custom_attributes\030\004 \003(\01325.google.storage" + + ".v2.Notification.CustomAttributesEntry\022\032" + + "\n\022object_name_prefix\030\005 \001(\t\022\033\n\016payload_fo" + + "rmat\030\006 \001(\tB\003\340A\002\0327\n\025CustomAttributesEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:p\352Am\n#s" + + "torage.googleapis.com/Notification\022Fproj" + + "ects/{project}/buckets/{bucket}/notifica" + + "tionConfigs/{notification}\"L\n\022CustomerEn" + + "cryption\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\004n" + + "ame\030\001 \001(\tB\003\340A\005\0225\n\006bucket\030\002 \001(\tB%\340A\005\372A\037\n\035" + + "storage.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\016metagene" + + "ration\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_encoding\030" + + "\007 \001(\t\022\033\n\023content_disposition\030\010 \001(\t\022\025\n\rca" + + "che_control\030\t \001(\t\0223\n\003acl\030\n \003(\0132&.google." + + "storage.v2.ObjectAccessControl\022\030\n\020conten" + + "t_language\030\013 \001(\t\0224\n\013delete_time\030\014 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022\024\n\014conten" + + "t_type\030\r \001(\t\0224\n\013create_time\030\016 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022\034\n\017component_" + + "count\030\017 \001(\005B\003\340A\003\022:\n\tchecksums\030\020 \001(\0132\".go" + + "ogle.storage.v2.ObjectChecksumsB\003\340A\003\0224\n\013" + + "update_time\030\021 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0227\n\007kms_key\030\022 \001(\tB&\372A#\n!cloudk" + + "ms.googleapis.com/CryptoKey\022B\n\031update_st" + + "orage_class_time\030\023 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022\026\n\016temporary_hold\030\024 \001(\010\022" + + "9\n\025retention_expire_time\030\025 \001(\0132\032.google." + + "protobuf.Timestamp\0229\n\010metadata\030\026 \003(\0132\'.g" + + "oogle.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\023cu" + + "stomer_encryption\030\031 \001(\0132%.google.storage" + + ".v2.CustomerEncryption\022/\n\013custom_time\030\032 " + + "\001(\0132\032.google.protobuf.Timestamp\032/\n\rMetad" + + "ataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "B\023\n\021_event_based_hold\"\316\001\n\023ObjectAccessCo" + + "ntrol\022\014\n\004role\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\016\n\006entit" + + "y\030\003 \001(\t\022\027\n\nentity_alt\030\t \001(\tB\003\340A\003\022\021\n\tenti" + + "ty_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\023ListOb" + + "jectsResponse\022*\n\007objects\030\001 \003(\0132\031.google." + + "storage.v2.Object\022\020\n\010prefixes\030\002 \003(\t\022\027\n\017n" + + "ext_page_token\030\003 \001(\t\"3\n\013ProjectTeam\022\026\n\016p" + + "roject_number\030\001 \001(\t\022\014\n\004team\030\002 \001(\t\"\'\n\016Ser", + "viceAccount\022\025\n\remail_address\030\001 \001(\t\"*\n\005Ow" + + "ner\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\227&\n\007Storage\022" + + "r\n\014DeleteBucket\022&.google.storage.v2.Dele" + + "teBucketRequest\032\026.google.protobuf.Empty\"" + + "\"\212\323\344\223\002\025\022\023\n\004name\022\013{bucket=**}\332A\004name\022o\n\tG" + + "etBucket\022#.google.storage.v2.GetBucketRe" + + "quest\032\031.google.storage.v2.Bucket\"\"\212\323\344\223\002\025" + + "\022\023\n\004name\022\013{bucket=**}\332A\004name\022\213\001\n\014CreateB" + + "ucket\022&.google.storage.v2.CreateBucketRe" + + "quest\032\031.google.storage.v2.Bucket\"8\212\323\344\223\002\030" + + "\022\026\n\006parent\022\014{project=**}\332A\027parent,bucket" + + ",bucket_id\022\205\001\n\013ListBuckets\022%.google.stor" + "age.v2.ListBucketsRequest\032&.google.stora" - + "ge.v2.ListBucketsResponse\"\t\332A\006parent\022\223\001\n" - + "\031LockBucketRetentionPolicy\0223.google.stor" - + "age.v2.LockBucketRetentionPolicyRequest\032" - + "\031.google.storage.v2.Bucket\"&\212\323\344\223\002\027\022\025\n\006bu" - + "cket\022\013{bucket=**}\332A\006bucket\022\253\001\n\014GetIamPol" - + "icy\022\".google.iam.v1.GetIamPolicyRequest\032" - + "\025.google.iam.v1.Policy\"`\212\323\344\223\002O\022\027\n\010resour" - + "ce\022\013{bucket=**}\0224\n\010resource\022({bucket=pro" - + "jects/*/buckets/*}/objects/**\332A\010resource" - + "\022\262\001\n\014SetIamPolicy\022\".google.iam.v1.SetIam" - + "PolicyRequest\032\025.google.iam.v1.Policy\"g\212\323" - + "\344\223\002O\022\027\n\010resource\022\013{bucket=**}\0224\n\010resourc" - + "e\022({bucket=projects/*/buckets/*}/objects" - + "/**\332A\017resource,policy\022\327\001\n\022TestIamPermiss" - + "ions\022(.google.iam.v1.TestIamPermissionsR" - + "equest\032).google.iam.v1.TestIamPermission" - + "sResponse\"l\212\323\344\223\002O\022\027\n\010resource\022\013{bucket=*" - + "*}\0224\n\010resource\022({bucket=projects/*/bucke" - + "ts/*}/objects/**\332A\024resource,permissions\022" - + "\212\001\n\014UpdateBucket\022&.google.storage.v2.Upd" - + "ateBucketRequest\032\031.google.storage.v2.Buc" - + "ket\"7\212\323\344\223\002\034\022\032\n\013bucket.name\022\013{bucket=**}\332" - + "A\022bucket,update_mask\022\223\001\n\022DeleteNotificat" - + "ion\022,.google.storage.v2.DeleteNotificati" - + "onRequest\032\026.google.protobuf.Empty\"7\212\323\344\223\002" - + "*\022(\n\004name\022 {bucket=projects/*/buckets/*}" - + "/**\332A\004name\022\226\001\n\017GetNotification\022).google." - + "storage.v2.GetNotificationRequest\032\037.goog" - + "le.storage.v2.Notification\"7\212\323\344\223\002*\022(\n\004na" - + "me\022 {bucket=projects/*/buckets/*}/**\332A\004n" - + "ame\022\230\001\n\022CreateNotification\022,.google.stor" - + "age.v2.CreateNotificationRequest\032\037.googl" - + "e.storage.v2.Notification\"3\212\323\344\223\002\027\022\025\n\006par" - + "ent\022\013{bucket=**}\332A\023parent,notification\022\226" - + "\001\n\021ListNotifications\022+.google.storage.v2" - + ".ListNotificationsRequest\032,.google.stora" - + "ge.v2.ListNotificationsResponse\"&\212\323\344\223\002\027\022" - + "\025\n\006parent\022\013{bucket=**}\332A\006parent\022~\n\rCompo" - + "seObject\022\'.google.storage.v2.ComposeObje" - + "ctRequest\032\031.google.storage.v2.Object\")\212\323" - + "\344\223\002#\022!\n\022destination.bucket\022\013{bucket=**}\022" - + "\230\001\n\014DeleteObject\022&.google.storage.v2.Del" - + "eteObjectRequest\032\026.google.protobuf.Empty" - + "\"H\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\332A\rbucket" - + ",object\332A\030bucket,object,generation\022\272\001\n\024C" - + "ancelResumableWrite\022..google.storage.v2." - + "CancelResumableWriteRequest\032/.google.sto" - + "rage.v2.CancelResumableWriteResponse\"A\212\323" - + "\344\223\002/\022-\n\tupload_id\022 {bucket=projects/*/bu" - + "ckets/*}/**\332A\tupload_id\022\225\001\n\tGetObject\022#." - + "google.storage.v2.GetObjectRequest\032\031.goo" - + "gle.storage.v2.Object\"H\212\323\344\223\002\027\022\025\n\006bucket\022" - + "\013{bucket=**}\332A\rbucket,object\332A\030bucket,ob" - + "ject,generation\022\245\001\n\nReadObject\022$.google." - + "storage.v2.ReadObjectRequest\032%.google.st" - + "orage.v2.ReadObjectResponse\"H\212\323\344\223\002\027\022\025\n\006b" - + "ucket\022\013{bucket=**}\332A\rbucket,object\332A\030buc" - + "ket,object,generation0\001\022\214\001\n\014UpdateObject" - + "\022&.google.storage.v2.UpdateObjectRequest" - + "\032\031.google.storage.v2.Object\"9\212\323\344\223\002\036\022\034\n\ro" - + "bject.bucket\022\013{bucket=**}\332A\022object,updat" - + "e_mask\022\307\001\n\013WriteObject\022%.google.storage." - + "v2.WriteObjectRequest\032&.google.storage.v" - + "2.WriteObjectResponse\"g\212\323\344\223\002a\0220\n!write_o" - + "bject_spec.resource.bucket\022\013{bucket=**}\022" - + "-\n\tupload_id\022 {bucket=projects/*/buckets" - + "/*}/**(\001\022\204\001\n\013ListObjects\022%.google.storag" - + "e.v2.ListObjectsRequest\032&.google.storage" - + ".v2.ListObjectsResponse\"&\212\323\344\223\002\027\022\025\n\006paren" - + "t\022\013{bucket=**}\332A\006parent\022\230\001\n\rRewriteObjec" - + "t\022\'.google.storage.v2.RewriteObjectReque" - + "st\032\".google.storage.v2.RewriteResponse\":" - + "\212\323\344\223\0024\022\017\n\rsource_bucket\022!\n\022destination_b" - + "ucket\022\013{bucket=**}\022\256\001\n\023StartResumableWri" - + "te\022-.google.storage.v2.StartResumableWri" - + "teRequest\032..google.storage.v2.StartResum" - + "ableWriteResponse\"8\212\323\344\223\0022\0220\n!write_objec" - + "t_spec.resource.bucket\022\013{bucket=**}\022\256\001\n\020" - + "QueryWriteStatus\022*.google.storage.v2.Que" - + "ryWriteStatusRequest\032+.google.storage.v2" - + ".QueryWriteStatusResponse\"A\212\323\344\223\002/\022-\n\tupl" - + "oad_id\022 {bucket=projects/*/buckets/*}/**" - + "\332A\tupload_id\022o\n\021GetServiceAccount\022+.goog" - + "le.storage.v2.GetServiceAccountRequest\032!" - + ".google.storage.v2.ServiceAccount\"\n\332A\007pr" - + "oject\022\204\001\n\rCreateHmacKey\022\'.google.storage" - + ".v2.CreateHmacKeyRequest\032(.google.storag" - + "e.v2.CreateHmacKeyResponse\" \332A\035project,s" - + "ervice_account_email\022f\n\rDeleteHmacKey\022\'." - + "google.storage.v2.DeleteHmacKeyRequest\032\026" - + ".google.protobuf.Empty\"\024\332A\021access_id,pro" - + "ject\022l\n\nGetHmacKey\022$.google.storage.v2.G" - + "etHmacKeyRequest\032\".google.storage.v2.Hma" - + "cKeyMetadata\"\024\332A\021access_id,project\022k\n\014Li" - + "stHmacKeys\022&.google.storage.v2.ListHmacK" - + "eysRequest\032\'.google.storage.v2.ListHmacK" - + "eysResponse\"\n\332A\007project\022u\n\rUpdateHmacKey" - + "\022\'.google.storage.v2.UpdateHmacKeyReques" - + "t\032\".google.storage.v2.HmacKeyMetadata\"\027\332" - + "A\024hmac_key,update_mask\032\247\002\312A\026storage.goog" - + "leapis.com\322A\212\002https://www.googleapis.com" - + "/auth/cloud-platform,https://www.googlea" - + "pis.com/auth/cloud-platform.read-only,ht" - + "tps://www.googleapis.com/auth/devstorage" - + ".full_control,https://www.googleapis.com" - + "/auth/devstorage.read_only,https://www.g" - + "oogleapis.com/auth/devstorage.read_write" - + "B\334\001\n\025com.google.storage.v2B\014StorageProto" - + "P\001Z8google.golang.org/genproto/googleapi" - + "s/storage/v2;storage\352Ax\n!cloudkms.google" - + "apis.com/CryptoKey\022Sprojects/{project}/l" - + "ocations/{location}/keyRings/{key_ring}/" - + "cryptoKeys/{crypto_key}b\006proto3" + + "ge.v2.ListBucketsResponse\"\'\212\323\344\223\002\030\022\026\n\006par" + + "ent\022\014{project=**}\332A\006parent\022\223\001\n\031LockBucke" + + "tRetentionPolicy\0223.google.storage.v2.Loc" + + "kBucketRetentionPolicyRequest\032\031.google.s" + + "torage.v2.Bucket\"&\212\323\344\223\002\027\022\025\n\006bucket\022\013{buc" + + "ket=**}\332A\006bucket\022\253\001\n\014GetIamPolicy\022\".goog" + + "le.iam.v1.GetIamPolicyRequest\032\025.google.i" + + "am.v1.Policy\"`\212\323\344\223\002O\022\027\n\010resource\022\013{bucke" + + "t=**}\0224\n\010resource\022({bucket=projects/*/bu" + + "ckets/*}/objects/**\332A\010resource\022\262\001\n\014SetIa" + + "mPolicy\022\".google.iam.v1.SetIamPolicyRequ" + + "est\032\025.google.iam.v1.Policy\"g\212\323\344\223\002O\022\027\n\010re" + + "source\022\013{bucket=**}\0224\n\010resource\022({bucket" + + "=projects/*/buckets/*}/objects/**\332A\017reso" + + "urce,policy\022\327\001\n\022TestIamPermissions\022(.goo" + + "gle.iam.v1.TestIamPermissionsRequest\032).g" + + "oogle.iam.v1.TestIamPermissionsResponse\"" + + "l\212\323\344\223\002O\022\027\n\010resource\022\013{bucket=**}\0224\n\010reso" + + "urce\022({bucket=projects/*/buckets/*}/obje" + + "cts/**\332A\024resource,permissions\022\212\001\n\014Update" + + "Bucket\022&.google.storage.v2.UpdateBucketR" + + "equest\032\031.google.storage.v2.Bucket\"7\212\323\344\223\002" + + "\034\022\032\n\013bucket.name\022\013{bucket=**}\332A\022bucket,u" + + "pdate_mask\022\223\001\n\022DeleteNotification\022,.goog" + + "le.storage.v2.DeleteNotificationRequest\032" + + "\026.google.protobuf.Empty\"7\212\323\344\223\002*\022(\n\004name\022" + + " {bucket=projects/*/buckets/*}/**\332A\004name" + + "\022\226\001\n\017GetNotification\022).google.storage.v2" + + ".GetNotificationRequest\032\037.google.storage" + + ".v2.Notification\"7\212\323\344\223\002*\022(\n\004name\022 {bucke" + + "t=projects/*/buckets/*}/**\332A\004name\022\230\001\n\022Cr" + + "eateNotification\022,.google.storage.v2.Cre" + + "ateNotificationRequest\032\037.google.storage." + + "v2.Notification\"3\212\323\344\223\002\027\022\025\n\006parent\022\013{buck" + + "et=**}\332A\023parent,notification\022\226\001\n\021ListNot" + + "ifications\022+.google.storage.v2.ListNotif" + + "icationsRequest\032,.google.storage.v2.List" + + "NotificationsResponse\"&\212\323\344\223\002\027\022\025\n\006parent\022" + + "\013{bucket=**}\332A\006parent\022~\n\rComposeObject\022\'" + + ".google.storage.v2.ComposeObjectRequest\032" + + "\031.google.storage.v2.Object\")\212\323\344\223\002#\022!\n\022de" + + "stination.bucket\022\013{bucket=**}\022\230\001\n\014Delete" + + "Object\022&.google.storage.v2.DeleteObjectR" + + "equest\032\026.google.protobuf.Empty\"H\212\323\344\223\002\027\022\025" + + "\n\006bucket\022\013{bucket=**}\332A\rbucket,object\332A\030" + + "bucket,object,generation\022\272\001\n\024CancelResum" + + "ableWrite\022..google.storage.v2.CancelResu" + + "mableWriteRequest\032/.google.storage.v2.Ca" + + "ncelResumableWriteResponse\"A\212\323\344\223\002/\022-\n\tup" + + "load_id\022 {bucket=projects/*/buckets/*}/*" + + "*\332A\tupload_id\022\225\001\n\tGetObject\022#.google.sto" + + "rage.v2.GetObjectRequest\032\031.google.storag" + + "e.v2.Object\"H\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=*" + + "*}\332A\rbucket,object\332A\030bucket,object,gener" + + "ation\022\245\001\n\nReadObject\022$.google.storage.v2" + + ".ReadObjectRequest\032%.google.storage.v2.R" + + "eadObjectResponse\"H\212\323\344\223\002\027\022\025\n\006bucket\022\013{bu" + + "cket=**}\332A\rbucket,object\332A\030bucket,object" + + ",generation0\001\022\214\001\n\014UpdateObject\022&.google." + + "storage.v2.UpdateObjectRequest\032\031.google." + + "storage.v2.Object\"9\212\323\344\223\002\036\022\034\n\robject.buck" + + "et\022\013{bucket=**}\332A\022object,update_mask\022\307\001\n" + + "\013WriteObject\022%.google.storage.v2.WriteOb" + + "jectRequest\032&.google.storage.v2.WriteObj" + + "ectResponse\"g\212\323\344\223\002a\0220\n!write_object_spec" + + ".resource.bucket\022\013{bucket=**}\022-\n\tupload_" + + "id\022 {bucket=projects/*/buckets/*}/**(\001\022\204" + + "\001\n\013ListObjects\022%.google.storage.v2.ListO" + + "bjectsRequest\032&.google.storage.v2.ListOb" + + "jectsResponse\"&\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket" + + "=**}\332A\006parent\022\230\001\n\rRewriteObject\022\'.google" + + ".storage.v2.RewriteObjectRequest\032\".googl" + + "e.storage.v2.RewriteResponse\":\212\323\344\223\0024\022\017\n\r" + + "source_bucket\022!\n\022destination_bucket\022\013{bu" + + "cket=**}\022\256\001\n\023StartResumableWrite\022-.googl" + + "e.storage.v2.StartResumableWriteRequest\032" + + "..google.storage.v2.StartResumableWriteR" + + "esponse\"8\212\323\344\223\0022\0220\n!write_object_spec.res" + + "ource.bucket\022\013{bucket=**}\022\256\001\n\020QueryWrite" + + "Status\022*.google.storage.v2.QueryWriteSta" + + "tusRequest\032+.google.storage.v2.QueryWrit" + + "eStatusResponse\"A\212\323\344\223\002/\022-\n\tupload_id\022 {b" + + "ucket=projects/*/buckets/*}/**\332A\tupload_" + + "id\022\200\001\n\021GetServiceAccount\022+.google.storag" + + "e.v2.GetServiceAccountRequest\032!.google.s" + + "torage.v2.ServiceAccount\"\033\212\323\344\223\002\013\022\t\n\007proj" + + "ect\332A\007project\022\225\001\n\rCreateHmacKey\022\'.google" + + ".storage.v2.CreateHmacKeyRequest\032(.googl" + + "e.storage.v2.CreateHmacKeyResponse\"1\212\323\344\223" + + "\002\013\022\t\n\007project\332A\035project,service_account_" + + "email\022w\n\rDeleteHmacKey\022\'.google.storage." + + "v2.DeleteHmacKeyRequest\032\026.google.protobu" + + "f.Empty\"%\212\323\344\223\002\013\022\t\n\007project\332A\021access_id,p" + + "roject\022}\n\nGetHmacKey\022$.google.storage.v2" + + ".GetHmacKeyRequest\032\".google.storage.v2.H" + + "macKeyMetadata\"%\212\323\344\223\002\013\022\t\n\007project\332A\021acce" + + "ss_id,project\022|\n\014ListHmacKeys\022&.google.s" + + "torage.v2.ListHmacKeysRequest\032\'.google.s" + + "torage.v2.ListHmacKeysResponse\"\033\212\323\344\223\002\013\022\t" + + "\n\007project\332A\007project\022\235\001\n\rUpdateHmacKey\022\'." + + "google.storage.v2.UpdateHmacKeyRequest\032\"" + + ".google.storage.v2.HmacKeyMetadata\"?\212\323\344\223" + + "\002\"\022 \n\020hmac_key.project\022\014{project=**}\332A\024h" + + "mac_key,update_mask\032\247\002\312A\026storage.googlea" + + "pis.com\322A\212\002https://www.googleapis.com/au" + + "th/cloud-platform,https://www.googleapis" + + ".com/auth/cloud-platform.read-only,https" + + "://www.googleapis.com/auth/devstorage.fu" + + "ll_control,https://www.googleapis.com/au" + + "th/devstorage.read_only,https://www.goog" + + "leapis.com/auth/devstorage.read_writeB\334\001" + + "\n\025com.google.storage.v2B\014StorageProtoP\001Z" + + "8google.golang.org/genproto/googleapis/s" + + "torage/v2;storage\352Ax\n!cloudkms.googleapi" + + "s.com/CryptoKey\022Sprojects/{project}/loca" + + "tions/{location}/keyRings/{key_ring}/cry" + + "ptoKeys/{crypto_key}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1475,7 +1482,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor, new java.lang.String[] { - "EffectiveTime", "IsLocked", "RetentionPeriod", + "EffectiveTime", "IsLocked", "RetentionPeriod", "RetentionPeriod", }); internal_static_google_storage_v2_Bucket_Versioning_descriptor = internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(7); @@ -1523,7 +1530,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_storage_v2_BucketAccessControl_descriptor, new java.lang.String[] { - "Role", "Id", "Entity", "EntityId", "Etag", "Email", "Domain", "ProjectTeam", + "Role", + "Id", + "Entity", + "EntityAlt", + "EntityId", + "Etag", + "Email", + "Domain", + "ProjectTeam", }); internal_static_google_storage_v2_ChecksummedData_descriptor = getDescriptor().getMessageTypes().get(42); @@ -1634,7 +1649,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_storage_v2_ObjectAccessControl_descriptor, new java.lang.String[] { - "Role", "Id", "Entity", "EntityId", "Etag", "Email", "Domain", "ProjectTeam", + "Role", + "Id", + "Entity", + "EntityAlt", + "EntityId", + "Etag", + "Email", + "Domain", + "ProjectTeam", }); internal_static_google_storage_v2_ListObjectsResponse_descriptor = getDescriptor().getMessageTypes().get(49); 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 7fda3e40b..454bc19c7 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 @@ -170,11 +170,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The bucket to update.
+   * Required. The bucket to update.
    * The bucket's `name` field will be used to identify the bucket.
    * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the bucket field is set. */ @@ -186,11 +186,11 @@ public boolean hasBucket() { * * *
-   * The bucket to update.
+   * Required. The bucket to update.
    * The bucket's `name` field will be used to identify the bucket.
    * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bucket. */ @@ -202,11 +202,11 @@ public com.google.storage.v2.Bucket getBucket() { * * *
-   * The bucket to update.
+   * Required. The bucket to update.
    * The bucket's `name` field will be used to identify the bucket.
    * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() { @@ -395,7 +395,7 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { * * *
-   * List of fields to be updated.
+   * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
    * specify a single field with the value `*`. Note: not recommended. If a new
    * field is introduced at a later time, an older client updating with the `*`
@@ -405,7 +405,8 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() {
    * an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -417,7 +418,7 @@ public boolean hasUpdateMask() { * * *
-   * List of fields to be updated.
+   * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
    * specify a single field with the value `*`. Note: not recommended. If a new
    * field is introduced at a later time, an older client updating with the `*`
@@ -427,7 +428,8 @@ public boolean hasUpdateMask() {
    * an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -439,7 +441,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * List of fields to be updated.
+   * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
    * specify a single field with the value `*`. Note: not recommended. If a new
    * field is introduced at a later time, an older client updating with the `*`
@@ -449,7 +451,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -907,11 +910,11 @@ public Builder mergeFrom( * * *
-     * The bucket to update.
+     * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
      * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the bucket field is set. */ @@ -922,11 +925,11 @@ public boolean hasBucket() { * * *
-     * The bucket to update.
+     * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
      * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bucket. */ @@ -941,11 +944,11 @@ public com.google.storage.v2.Bucket getBucket() { * * *
-     * The bucket to update.
+     * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
      * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBucket(com.google.storage.v2.Bucket value) { if (bucketBuilder_ == null) { @@ -964,11 +967,11 @@ public Builder setBucket(com.google.storage.v2.Bucket value) { * * *
-     * The bucket to update.
+     * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
      * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) { if (bucketBuilder_ == null) { @@ -984,11 +987,11 @@ public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) { * * *
-     * The bucket to update.
+     * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
      * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBucket(com.google.storage.v2.Bucket value) { if (bucketBuilder_ == null) { @@ -1009,11 +1012,11 @@ public Builder mergeBucket(com.google.storage.v2.Bucket value) { * * *
-     * The bucket to update.
+     * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
      * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBucket() { if (bucketBuilder_ == null) { @@ -1030,11 +1033,11 @@ public Builder clearBucket() { * * *
-     * The bucket to update.
+     * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
      * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.Bucket.Builder getBucketBuilder() { @@ -1045,11 +1048,11 @@ public com.google.storage.v2.Bucket.Builder getBucketBuilder() { * * *
-     * The bucket to update.
+     * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
      * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() { if (bucketBuilder_ != null) { @@ -1062,11 +1065,11 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() { * * *
-     * The bucket to update.
+     * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
      * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.Bucket, @@ -1469,7 +1472,7 @@ public Builder setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1479,7 +1482,8 @@ public Builder setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -1490,7 +1494,7 @@ public boolean hasUpdateMask() { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1500,7 +1504,8 @@ public boolean hasUpdateMask() {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -1517,7 +1522,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1527,7 +1532,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1546,7 +1552,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1556,7 +1562,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -1572,7 +1579,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1582,7 +1589,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1603,7 +1611,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1613,7 +1621,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1630,7 +1639,7 @@ public Builder clearUpdateMask() { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1640,7 +1649,8 @@ public Builder clearUpdateMask() {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -1651,7 +1661,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1661,7 +1671,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -1676,7 +1687,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1686,7 +1697,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, 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 9f3e9c397..b4b06d4e4 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 @@ -27,11 +27,11 @@ public interface UpdateBucketRequestOrBuilder * * *
-   * The bucket to update.
+   * Required. The bucket to update.
    * The bucket's `name` field will be used to identify the bucket.
    * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the bucket field is set. */ @@ -40,11 +40,11 @@ public interface UpdateBucketRequestOrBuilder * * *
-   * The bucket to update.
+   * Required. The bucket to update.
    * The bucket's `name` field will be used to identify the bucket.
    * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bucket. */ @@ -53,11 +53,11 @@ public interface UpdateBucketRequestOrBuilder * * *
-   * The bucket to update.
+   * Required. The bucket to update.
    * The bucket's `name` field will be used to identify the bucket.
    * 
* - * .google.storage.v2.Bucket bucket = 1; + * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.storage.v2.BucketOrBuilder getBucketOrBuilder(); @@ -177,7 +177,7 @@ public interface UpdateBucketRequestOrBuilder * * *
-   * List of fields to be updated.
+   * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
    * specify a single field with the value `*`. Note: not recommended. If a new
    * field is introduced at a later time, an older client updating with the `*`
@@ -187,7 +187,8 @@ public interface UpdateBucketRequestOrBuilder
    * an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -196,7 +197,7 @@ public interface UpdateBucketRequestOrBuilder * * *
-   * List of fields to be updated.
+   * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
    * specify a single field with the value `*`. Note: not recommended. If a new
    * field is introduced at a later time, an older client updating with the `*`
@@ -206,7 +207,8 @@ public interface UpdateBucketRequestOrBuilder
    * an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -215,7 +217,7 @@ public interface UpdateBucketRequestOrBuilder * * *
-   * List of fields to be updated.
+   * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
    * specify a single field with the value `*`. Note: not recommended. If a new
    * field is introduced at a later time, an older client updating with the `*`
@@ -225,7 +227,8 @@ public interface UpdateBucketRequestOrBuilder
    * an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 6; + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } 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 2c9b05ce5..9d8846f7b 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 @@ -190,14 +190,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The object to update.
+   * Required. The object to update.
    * The object's bucket and name fields are used to identify the object to
    * update. If present, the object's generation field selects a specific
    * revision of this object whose metadata should be updated. Otherwise,
    * assumes the live version of the object.
    * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the object field is set. */ @@ -209,14 +209,14 @@ public boolean hasObject() { * * *
-   * The object to update.
+   * Required. The object to update.
    * The object's bucket and name fields are used to identify the object to
    * update. If present, the object's generation field selects a specific
    * revision of this object whose metadata should be updated. Otherwise,
    * assumes the live version of the object.
    * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The object. */ @@ -228,14 +228,14 @@ public com.google.storage.v2.Object getObject() { * * *
-   * The object to update.
+   * Required. The object to update.
    * The object's bucket and name fields are used to identify the object to
    * update. If present, the object's generation field selects a specific
    * revision of this object whose metadata should be updated. Otherwise,
    * assumes the live version of the object.
    * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() { @@ -447,7 +447,7 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { * * *
-   * List of fields to be updated.
+   * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
    * specify a single field with the value `*`. Note: not recommended. If a new
    * field is introduced at a later time, an older client updating with the `*`
@@ -457,7 +457,8 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
    * an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -469,7 +470,7 @@ public boolean hasUpdateMask() { * * *
-   * List of fields to be updated.
+   * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
    * specify a single field with the value `*`. Note: not recommended. If a new
    * field is introduced at a later time, an older client updating with the `*`
@@ -479,7 +480,8 @@ public boolean hasUpdateMask() {
    * an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -491,7 +493,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * List of fields to be updated.
+   * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
    * specify a single field with the value `*`. Note: not recommended. If a new
    * field is introduced at a later time, an older client updating with the `*`
@@ -501,7 +503,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -1067,14 +1070,14 @@ public Builder mergeFrom( * * *
-     * The object to update.
+     * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
      * update. If present, the object's generation field selects a specific
      * revision of this object whose metadata should be updated. Otherwise,
      * assumes the live version of the object.
      * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the object field is set. */ @@ -1085,14 +1088,14 @@ public boolean hasObject() { * * *
-     * The object to update.
+     * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
      * update. If present, the object's generation field selects a specific
      * revision of this object whose metadata should be updated. Otherwise,
      * assumes the live version of the object.
      * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The object. */ @@ -1107,14 +1110,14 @@ public com.google.storage.v2.Object getObject() { * * *
-     * The object to update.
+     * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
      * update. If present, the object's generation field selects a specific
      * revision of this object whose metadata should be updated. Otherwise,
      * assumes the live version of the object.
      * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setObject(com.google.storage.v2.Object value) { if (objectBuilder_ == null) { @@ -1133,14 +1136,14 @@ public Builder setObject(com.google.storage.v2.Object value) { * * *
-     * The object to update.
+     * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
      * update. If present, the object's generation field selects a specific
      * revision of this object whose metadata should be updated. Otherwise,
      * assumes the live version of the object.
      * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setObject(com.google.storage.v2.Object.Builder builderForValue) { if (objectBuilder_ == null) { @@ -1156,14 +1159,14 @@ public Builder setObject(com.google.storage.v2.Object.Builder builderForValue) { * * *
-     * The object to update.
+     * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
      * update. If present, the object's generation field selects a specific
      * revision of this object whose metadata should be updated. Otherwise,
      * assumes the live version of the object.
      * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeObject(com.google.storage.v2.Object value) { if (objectBuilder_ == null) { @@ -1184,14 +1187,14 @@ public Builder mergeObject(com.google.storage.v2.Object value) { * * *
-     * The object to update.
+     * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
      * update. If present, the object's generation field selects a specific
      * revision of this object whose metadata should be updated. Otherwise,
      * assumes the live version of the object.
      * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearObject() { if (objectBuilder_ == null) { @@ -1208,14 +1211,14 @@ public Builder clearObject() { * * *
-     * The object to update.
+     * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
      * update. If present, the object's generation field selects a specific
      * revision of this object whose metadata should be updated. Otherwise,
      * assumes the live version of the object.
      * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.Object.Builder getObjectBuilder() { @@ -1226,14 +1229,14 @@ public com.google.storage.v2.Object.Builder getObjectBuilder() { * * *
-     * The object to update.
+     * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
      * update. If present, the object's generation field selects a specific
      * revision of this object whose metadata should be updated. Otherwise,
      * assumes the live version of the object.
      * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() { if (objectBuilder_ != null) { @@ -1246,14 +1249,14 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() { * * *
-     * The object to update.
+     * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
      * update. If present, the object's generation field selects a specific
      * revision of this object whose metadata should be updated. Otherwise,
      * assumes the live version of the object.
      * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.Object, @@ -1694,7 +1697,7 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1704,7 +1707,8 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -1715,7 +1719,7 @@ public boolean hasUpdateMask() { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1725,7 +1729,8 @@ public boolean hasUpdateMask() {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -1742,7 +1747,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1752,7 +1757,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1771,7 +1777,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1781,7 +1787,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -1797,7 +1804,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1807,7 +1814,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1828,7 +1836,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1838,7 +1846,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1855,7 +1864,7 @@ public Builder clearUpdateMask() { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1865,7 +1874,8 @@ public Builder clearUpdateMask() {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -1876,7 +1886,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1886,7 +1896,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -1901,7 +1912,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * List of fields to be updated.
+     * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
      * specify a single field with the value `*`. Note: not recommended. If a new
      * field is introduced at a later time, an older client updating with the `*`
@@ -1911,7 +1922,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, 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 2c599632d..dea9fcf13 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 @@ -27,14 +27,14 @@ public interface UpdateObjectRequestOrBuilder * * *
-   * The object to update.
+   * Required. The object to update.
    * The object's bucket and name fields are used to identify the object to
    * update. If present, the object's generation field selects a specific
    * revision of this object whose metadata should be updated. Otherwise,
    * assumes the live version of the object.
    * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the object field is set. */ @@ -43,14 +43,14 @@ public interface UpdateObjectRequestOrBuilder * * *
-   * The object to update.
+   * Required. The object to update.
    * The object's bucket and name fields are used to identify the object to
    * update. If present, the object's generation field selects a specific
    * revision of this object whose metadata should be updated. Otherwise,
    * assumes the live version of the object.
    * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The object. */ @@ -59,14 +59,14 @@ public interface UpdateObjectRequestOrBuilder * * *
-   * The object to update.
+   * Required. The object to update.
    * The object's bucket and name fields are used to identify the object to
    * update. If present, the object's generation field selects a specific
    * revision of this object whose metadata should be updated. Otherwise,
    * assumes the live version of the object.
    * 
* - * .google.storage.v2.Object object = 1; + * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder(); @@ -217,7 +217,7 @@ public interface UpdateObjectRequestOrBuilder * * *
-   * List of fields to be updated.
+   * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
    * specify a single field with the value `*`. Note: not recommended. If a new
    * field is introduced at a later time, an older client updating with the `*`
@@ -227,7 +227,8 @@ public interface UpdateObjectRequestOrBuilder
    * an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -236,7 +237,7 @@ public interface UpdateObjectRequestOrBuilder * * *
-   * List of fields to be updated.
+   * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
    * specify a single field with the value `*`. Note: not recommended. If a new
    * field is introduced at a later time, an older client updating with the `*`
@@ -246,7 +247,8 @@ public interface UpdateObjectRequestOrBuilder
    * an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -255,7 +257,7 @@ public interface UpdateObjectRequestOrBuilder * * *
-   * List of fields to be updated.
+   * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
    * specify a single field with the value `*`. Note: not recommended. If a new
    * field is introduced at a later time, an older client updating with the `*`
@@ -265,7 +267,8 @@ public interface UpdateObjectRequestOrBuilder
    * an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 7; + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); 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 18916a0f6..091386a30 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 @@ -166,10 +166,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Destination object, including its name and its metadata.
+   * Required. Destination object, including its name and its metadata.
    * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the resource field is set. */ @@ -181,10 +181,10 @@ public boolean hasResource() { * * *
-   * Destination object, including its name and its metadata.
+   * Required. Destination object, including its name and its metadata.
    * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The resource. */ @@ -196,10 +196,10 @@ public com.google.storage.v2.Object getResource() { * * *
-   * Destination object, including its name and its metadata.
+   * Required. Destination object, including its name and its metadata.
    * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() { @@ -922,10 +922,11 @@ public Builder mergeFrom( * * *
-     * Destination object, including its name and its metadata.
+     * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the resource field is set. */ @@ -936,10 +937,11 @@ public boolean hasResource() { * * *
-     * Destination object, including its name and its metadata.
+     * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The resource. */ @@ -954,10 +956,11 @@ public com.google.storage.v2.Object getResource() { * * *
-     * Destination object, including its name and its metadata.
+     * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResource(com.google.storage.v2.Object value) { if (resourceBuilder_ == null) { @@ -976,10 +979,11 @@ public Builder setResource(com.google.storage.v2.Object value) { * * *
-     * Destination object, including its name and its metadata.
+     * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue) { if (resourceBuilder_ == null) { @@ -995,10 +999,11 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue) * * *
-     * Destination object, including its name and its metadata.
+     * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeResource(com.google.storage.v2.Object value) { if (resourceBuilder_ == null) { @@ -1019,10 +1024,11 @@ public Builder mergeResource(com.google.storage.v2.Object value) { * * *
-     * Destination object, including its name and its metadata.
+     * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -1039,10 +1045,11 @@ public Builder clearResource() { * * *
-     * Destination object, including its name and its metadata.
+     * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.storage.v2.Object.Builder getResourceBuilder() { @@ -1053,10 +1060,11 @@ public com.google.storage.v2.Object.Builder getResourceBuilder() { * * *
-     * Destination object, including its name and its metadata.
+     * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { @@ -1069,10 +1077,11 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() { * * *
-     * Destination object, including its name and its metadata.
+     * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.Object, 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 dd6376acc..63ddc9749 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 @@ -27,10 +27,10 @@ public interface WriteObjectSpecOrBuilder * * *
-   * Destination object, including its name and its metadata.
+   * Required. Destination object, including its name and its metadata.
    * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the resource field is set. */ @@ -39,10 +39,10 @@ public interface WriteObjectSpecOrBuilder * * *
-   * Destination object, including its name and its metadata.
+   * Required. Destination object, including its name and its metadata.
    * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The resource. */ @@ -51,10 +51,10 @@ public interface WriteObjectSpecOrBuilder * * *
-   * Destination object, including its name and its metadata.
+   * Required. Destination object, including its name and its metadata.
    * 
* - * .google.storage.v2.Object resource = 1; + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder(); 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 577463db5..f6b522a30 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 @@ -90,11 +90,23 @@ service Storage { // Creates a new bucket. rpc CreateBucket(CreateBucketRequest) returns (Bucket) { + option (google.api.routing) = { + routing_parameters { + field: "parent" + path_template: "{project=**}" + } + }; option (google.api.method_signature) = "parent,bucket,bucket_id"; } // Retrieves a list of buckets for a given project. rpc ListBuckets(ListBucketsRequest) returns (ListBucketsResponse) { + option (google.api.routing) = { + routing_parameters { + field: "parent" + path_template: "{project=**}" + } + }; option (google.api.method_signature) = "parent"; } @@ -411,31 +423,62 @@ service Storage { // Retrieves the name of a project's Google Cloud Storage service account. rpc GetServiceAccount(GetServiceAccountRequest) returns (ServiceAccount) { + option (google.api.routing) = { + routing_parameters { + field: "project" + } + }; option (google.api.method_signature) = "project"; } // Creates a new HMAC key for the given service account. rpc CreateHmacKey(CreateHmacKeyRequest) returns (CreateHmacKeyResponse) { + option (google.api.routing) = { + routing_parameters { + field: "project" + } + }; option (google.api.method_signature) = "project,service_account_email"; } // Deletes a given HMAC key. Key must be in an INACTIVE state. rpc DeleteHmacKey(DeleteHmacKeyRequest) returns (google.protobuf.Empty) { + option (google.api.routing) = { + routing_parameters { + field: "project" + } + }; option (google.api.method_signature) = "access_id,project"; } // Gets an existing HMAC key metadata for the given id. rpc GetHmacKey(GetHmacKeyRequest) returns (HmacKeyMetadata) { + option (google.api.routing) = { + routing_parameters { + field: "project" + } + }; option (google.api.method_signature) = "access_id,project"; } // Lists HMAC keys under a given project with the additional filters provided. rpc ListHmacKeys(ListHmacKeysRequest) returns (ListHmacKeysResponse) { + option (google.api.routing) = { + routing_parameters { + field: "project" + } + }; option (google.api.method_signature) = "project"; } // Updates a given HMAC key state between ACTIVE and INACTIVE. rpc UpdateHmacKey(UpdateHmacKeyRequest) returns (HmacKeyMetadata) { + option (google.api.routing) = { + routing_parameters { + field: "hmac_key.project" + path_template: "{project=**}" + } + }; option (google.api.method_signature) = "hmac_key,update_mask"; } } @@ -492,11 +535,11 @@ message CreateBucketRequest { } ]; - // Required. Properties of the new bucket being inserted. + // Properties of the new bucket being inserted. // The project and name of the bucket are specified in the parent and // bucket_id fields, respectively. Populating those fields in `bucket` will // result in an error. - Bucket bucket = 2 [(google.api.field_behavior) = REQUIRED]; + Bucket bucket = 2; // Required. The ID to use for this bucket, which will become the final component of // the bucket's resource name. For example, the value `foo` might result in @@ -564,16 +607,16 @@ message LockBucketRetentionPolicyRequest { } ]; - // Makes the operation conditional on whether bucket's current metageneration + // Required. Makes the operation conditional on whether bucket's current metageneration // matches the given value. Must be positive. - int64 if_metageneration_match = 2; + int64 if_metageneration_match = 2 [(google.api.field_behavior) = REQUIRED]; } // Request for UpdateBucket method. message UpdateBucketRequest { - // The bucket to update. + // Required. The bucket to update. // The bucket's `name` field will be used to identify the bucket. - Bucket bucket = 1; + Bucket bucket = 1 [(google.api.field_behavior) = REQUIRED]; // If set, will only modify the bucket if its metageneration matches this // value. @@ -593,7 +636,7 @@ message UpdateBucketRequest { // "bucketOwnerRead", "private", "projectPrivate", or "publicRead". string predefined_default_object_acl = 9; - // List of fields to be updated. + // Required. List of fields to be updated. // // To specify ALL fields, equivalent to the JSON API's "update" function, // specify a single field with the value `*`. Note: not recommended. If a new @@ -603,7 +646,7 @@ message UpdateBucketRequest { // Not specifying any fields is an error. // Not specifying a field while setting that field to a non-default value is // an error. - google.protobuf.FieldMask update_mask = 6; + google.protobuf.FieldMask update_mask = 6 [(google.api.field_behavior) = REQUIRED]; } // Request message for DeleteNotification. @@ -785,11 +828,11 @@ message CancelResumableWriteResponse { // Request message for ReadObject. message ReadObjectRequest { - // The name of the bucket containing the object to read. - string bucket = 1; + // Required. The name of the bucket containing the object to read. + string bucket = 1 [(google.api.field_behavior) = REQUIRED]; - // The name of the object to read. - string object = 2; + // Required. The name of the object to read. + string object = 2 [(google.api.field_behavior) = REQUIRED]; // If present, selects a specific revision of this object (as opposed // to the latest version, the default). @@ -911,8 +954,8 @@ message ReadObjectResponse { // Describes an attempt to insert an object, possibly over multiple requests. message WriteObjectSpec { - // Destination object, including its name and its metadata. - Object resource = 1; + // Required. Destination object, including its name and its metadata. + Object resource = 1 [(google.api.field_behavior) = REQUIRED]; // Apply a predefined set of access controls to this object. // Valid values are "authenticatedRead", "bucketOwnerFullControl", @@ -1113,17 +1156,21 @@ message QueryWriteStatusResponse { // encryption_key_sha256_bytes fields of the // common_object_request_params.customer_encryption field. message RewriteObjectRequest { - // Immutable. The name of the destination object. + // Required. Immutable. The name of the destination object. // See the // [Naming Guidelines](https://cloud.google.com/storage/docs/naming-objects). // Example: `test.txt` // The `name` field by itself does not uniquely identify a Cloud Storage // object. A Cloud Storage object is uniquely identified by the tuple of // (bucket, object, generation). - string destination_name = 24 [(google.api.field_behavior) = IMMUTABLE]; + string destination_name = 24 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; - // Immutable. The name of the bucket containing the destination object. + // Required. Immutable. The name of the bucket containing the destination object. string destination_bucket = 25 [ + (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" @@ -1258,8 +1305,8 @@ message RewriteResponse { // Request message StartResumableWrite. message StartResumableWriteRequest { - // The destination bucket, object, and metadata, as well as any preconditions. - WriteObjectSpec write_object_spec = 1; + // Required. The destination bucket, object, and metadata, as well as any preconditions. + WriteObjectSpec write_object_spec = 1 [(google.api.field_behavior) = REQUIRED]; // A set of parameters common to Storage API requests concerning an object. CommonObjectRequestParams common_object_request_params = 3; @@ -1274,12 +1321,12 @@ message StartResumableWriteResponse { // Request message for UpdateObject. message UpdateObjectRequest { - // The object to update. + // Required. The object to update. // The object's bucket and name fields are used to identify the object to // update. If present, the object's generation field selects a specific // revision of this object whose metadata should be updated. Otherwise, // assumes the live version of the object. - Object object = 1; + Object object = 1 [(google.api.field_behavior) = REQUIRED]; // Makes the operation conditional on whether the object's current generation // matches the given value. Setting to 0 makes the operation succeed only if @@ -1305,7 +1352,7 @@ message UpdateObjectRequest { // "bucketOwnerRead", "private", "projectPrivate", or "publicRead". string predefined_acl = 10; - // List of fields to be updated. + // Required. List of fields to be updated. // // To specify ALL fields, equivalent to the JSON API's "update" function, // specify a single field with the value `*`. Note: not recommended. If a new @@ -1315,7 +1362,7 @@ message UpdateObjectRequest { // Not specifying any fields is an error. // Not specifying a field while setting that field to a non-default value is // an error. - google.protobuf.FieldMask update_mask = 7; + google.protobuf.FieldMask update_mask = 7 [(google.api.field_behavior) = REQUIRED]; // A set of parameters common to Storage API requests concerning an object. CommonObjectRequestParams common_object_request_params = 8; @@ -1403,17 +1450,17 @@ message ListHmacKeysRequest { } ]; - // Optional. The maximum number of keys to return. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + // The maximum number of keys to return. + int32 page_size = 2; - // Optional. A previously returned token from ListHmacKeysResponse to get the next page. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + // A previously returned token from ListHmacKeysResponse to get the next page. + string page_token = 3; - // Optional. If set, filters to only return HMAC keys for specified service account. - string service_account_email = 4 [(google.api.field_behavior) = OPTIONAL]; + // If set, filters to only return HMAC keys for specified service account. + string service_account_email = 4; - // Optional. If set, return deleted keys that have not yet been wiped out. - bool show_deleted_keys = 5 [(google.api.field_behavior) = OPTIONAL]; + // If set, return deleted keys that have not yet been wiped out. + bool show_deleted_keys = 5; } // Hmac key list response with next page information. @@ -1723,7 +1770,7 @@ message Bucket { // duration must be greater than zero and less than 100 years. Note that // enforcement of retention periods less than a day is not guaranteed. Such // periods should only be used for testing purposes. - int64 retention_period = 3; + optional int64 retention_period = 3; } // Properties of a bucket related to versioning. @@ -1912,8 +1959,8 @@ message Bucket { // Reserved for future use. bool satisfies_pzs = 25; - // Configuration that, if present, specifies the data placement for a Custom - // Dual Region. + // Configuration that, if present, specifies the data placement for a + // [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region]. CustomPlacementConfig custom_placement_config = 26; // The bucket's Autoclass configuration. If there is no configuration, the @@ -1935,7 +1982,8 @@ message BucketAccessControl { // * `group-{groupid}` // * `group-{email}` // * `domain-{domain}` - // * `project-{team-projectid}` + // * `project-{team}-{projectnumber}` + // * `project-{team}-{projectid}` // * `allUsers` // * `allAuthenticatedUsers` // Examples: @@ -1944,8 +1992,14 @@ message BucketAccessControl { // `group-example@googlegroups.com` // * All members of the Google Apps for Business domain `example.com` would be // `domain-example.com` + // For project entities, `project-{team}-{projectnumber}` format will be + // returned on response. string entity = 3; + // Output only. The alternative entity format, if exists. For project entities, + // `project-{team}-{projectid}` format will be returned on response. + string entity_alt = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + // The ID for the entity, if any. string entity_id = 4; @@ -2052,17 +2106,17 @@ message Notification { // only be performed if the etag matches that of the Notification. string etag = 7; - // Optional. If present, only send notifications about listed event types. If empty, + // If present, only send notifications about listed event types. If empty, // sent notifications for all event types. - repeated string event_types = 3 [(google.api.field_behavior) = OPTIONAL]; + repeated string event_types = 3; - // Optional. An optional list of additional attributes to attach to each Pub/Sub + // A list of additional attributes to attach to each Pub/Sub // message published for this notification subscription. - map custom_attributes = 4 [(google.api.field_behavior) = OPTIONAL]; + map custom_attributes = 4; - // Optional. If present, only apply this notification config to object names that + // If present, only apply this notification config to object names that // begin with this prefix. - string object_name_prefix = 5 [(google.api.field_behavior) = OPTIONAL]; + string object_name_prefix = 5; // Required. The desired content of the Payload. string payload_format = 6 [(google.api.field_behavior) = REQUIRED]; @@ -2256,7 +2310,8 @@ message ObjectAccessControl { // * `group-{groupid}` // * `group-{email}` // * `domain-{domain}` - // * `project-{team-projectid}` + // * `project-{team}-{projectnumber}` + // * `project-{team}-{projectid}` // * `allUsers` // * `allAuthenticatedUsers` // Examples: @@ -2265,8 +2320,14 @@ message ObjectAccessControl { // `group-example@googlegroups.com`. // * All members of the Google Apps for Business domain `example.com` would be // `domain-example.com`. + // For project entities, `project-{team}-{projectnumber}` format will be + // returned on response. string entity = 3; + // Output only. The alternative entity format, if exists. For project entities, + // `project-{team}-{projectid}` format will be returned on response. + string entity_alt = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + // The ID for the entity, if any. string entity_id = 4;