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 39842b0a0..91808f239 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
@@ -2806,7 +2806,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getDefaultKmsKeyBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultKmsKey_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultKmsKey_);
}
unknownFields.writeTo(output);
@@ -2818,7 +2818,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getDefaultKmsKeyBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultKmsKey_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, defaultKmsKey_);
}
size += unknownFields.getSerializedSize();
@@ -6010,10 +6010,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!getTypeBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
- if (!getStorageClassBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageClass_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, storageClass_);
}
unknownFields.writeTo(output);
@@ -6025,10 +6025,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getTypeBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
- if (!getStorageClassBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageClass_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, storageClass_);
}
size += unknownFields.getSerializedSize();
@@ -6625,7 +6625,7 @@ public interface ConditionOrBuilder
* condition.
*
*
- * int32 age_days = 1;
+ * optional int32 age_days = 1;
*
* @return Whether the ageDays field is set.
*/
@@ -6640,7 +6640,7 @@ public interface ConditionOrBuilder
* condition.
*
*
- * int32 age_days = 1;
+ * optional int32 age_days = 1;
*
* @return The ageDays.
*/
@@ -6693,7 +6693,7 @@ public interface ConditionOrBuilder
* is `false`, it matches archived objects.
*
*
- * bool is_live = 3;
+ * optional bool is_live = 3;
*
* @return Whether the isLive field is set.
*/
@@ -6707,7 +6707,7 @@ public interface ConditionOrBuilder
* is `false`, it matches archived objects.
*
*
- * bool is_live = 3;
+ * optional bool is_live = 3;
*
* @return The isLive.
*/
@@ -6722,7 +6722,7 @@ public interface ConditionOrBuilder
* the live version) newer than this version of the object.
*
*
- * int32 num_newer_versions = 4;
+ * optional int32 num_newer_versions = 4;
*
* @return Whether the numNewerVersions field is set.
*/
@@ -6736,7 +6736,7 @@ public interface ConditionOrBuilder
* the live version) newer than this version of the object.
*
*
- * int32 num_newer_versions = 4;
+ * optional int32 num_newer_versions = 4;
*
* @return The numNewerVersions.
*/
@@ -6814,7 +6814,7 @@ public interface ConditionOrBuilder
* The value of the field must be a nonnegative integer.
*
*
- * int32 days_since_custom_time = 7;
+ * optional int32 days_since_custom_time = 7;
*
* @return Whether the daysSinceCustomTime field is set.
*/
@@ -6828,7 +6828,7 @@ public interface ConditionOrBuilder
* The value of the field must be a nonnegative integer.
*
*
- * int32 days_since_custom_time = 7;
+ * optional int32 days_since_custom_time = 7;
*
* @return The daysSinceCustomTime.
*/
@@ -6883,7 +6883,7 @@ public interface ConditionOrBuilder
* eligible for Lifecycle action as soon as it becomes noncurrent.
*
*
- * int32 days_since_noncurrent_time = 9;
+ * optional int32 days_since_noncurrent_time = 9;
*
* @return Whether the daysSinceNoncurrentTime field is set.
*/
@@ -6899,7 +6899,7 @@ public interface ConditionOrBuilder
* eligible for Lifecycle action as soon as it becomes noncurrent.
*
*
- * int32 days_since_noncurrent_time = 9;
+ * optional int32 days_since_noncurrent_time = 9;
*
* @return The daysSinceNoncurrentTime.
*/
@@ -7135,7 +7135,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* condition.
*
*
- * int32 age_days = 1;
+ * optional int32 age_days = 1;
*
* @return Whether the ageDays field is set.
*/
@@ -7153,7 +7153,7 @@ public boolean hasAgeDays() {
* condition.
*
*
- * int32 age_days = 1;
+ * optional int32 age_days = 1;
*
* @return The ageDays.
*/
@@ -7224,7 +7224,7 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
* is `false`, it matches archived objects.
*
*
- * bool is_live = 3;
+ * optional bool is_live = 3;
*
* @return Whether the isLive field is set.
*/
@@ -7241,7 +7241,7 @@ public boolean hasIsLive() {
* is `false`, it matches archived objects.
*
*
- * bool is_live = 3;
+ * optional bool is_live = 3;
*
* @return The isLive.
*/
@@ -7261,7 +7261,7 @@ public boolean getIsLive() {
* the live version) newer than this version of the object.
*
*
- * int32 num_newer_versions = 4;
+ * optional int32 num_newer_versions = 4;
*
* @return Whether the numNewerVersions field is set.
*/
@@ -7278,7 +7278,7 @@ public boolean hasNumNewerVersions() {
* the live version) newer than this version of the object.
*
*
- * int32 num_newer_versions = 4;
+ * optional int32 num_newer_versions = 4;
*
* @return The numNewerVersions.
*/
@@ -7371,7 +7371,7 @@ public com.google.protobuf.ByteString getMatchesStorageClassBytes(int index) {
* The value of the field must be a nonnegative integer.
*
*
- * int32 days_since_custom_time = 7;
+ * optional int32 days_since_custom_time = 7;
*
* @return Whether the daysSinceCustomTime field is set.
*/
@@ -7388,7 +7388,7 @@ public boolean hasDaysSinceCustomTime() {
* The value of the field must be a nonnegative integer.
*
*
- * int32 days_since_custom_time = 7;
+ * optional int32 days_since_custom_time = 7;
*
* @return The daysSinceCustomTime.
*/
@@ -7461,7 +7461,7 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
* eligible for Lifecycle action as soon as it becomes noncurrent.
*
*
- * int32 days_since_noncurrent_time = 9;
+ * optional int32 days_since_noncurrent_time = 9;
*
* @return Whether the daysSinceNoncurrentTime field is set.
*/
@@ -7480,7 +7480,7 @@ public boolean hasDaysSinceNoncurrentTime() {
* eligible for Lifecycle action as soon as it becomes noncurrent.
*
*
- * int32 days_since_noncurrent_time = 9;
+ * optional int32 days_since_noncurrent_time = 9;
*
* @return The daysSinceNoncurrentTime.
*/
@@ -8106,7 +8106,7 @@ public Builder mergeFrom(
* condition.
*
*
- * int32 age_days = 1;
+ * optional int32 age_days = 1;
*
* @return Whether the ageDays field is set.
*/
@@ -8124,7 +8124,7 @@ public boolean hasAgeDays() {
* condition.
*
*
- * int32 age_days = 1;
+ * optional int32 age_days = 1;
*
* @return The ageDays.
*/
@@ -8142,7 +8142,7 @@ public int getAgeDays() {
* condition.
*
*
- * int32 age_days = 1;
+ * optional int32 age_days = 1;
*
* @param value The ageDays to set.
* @return This builder for chaining.
@@ -8163,7 +8163,7 @@ public Builder setAgeDays(int value) {
* condition.
*
*
- * int32 age_days = 1;
+ * optional int32 age_days = 1;
*
* @return This builder for chaining.
*/
@@ -8372,7 +8372,7 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
* is `false`, it matches archived objects.
*
*
- * bool is_live = 3;
+ * optional bool is_live = 3;
*
* @return Whether the isLive field is set.
*/
@@ -8389,7 +8389,7 @@ public boolean hasIsLive() {
* is `false`, it matches archived objects.
*
*
- * bool is_live = 3;
+ * optional bool is_live = 3;
*
* @return The isLive.
*/
@@ -8406,7 +8406,7 @@ public boolean getIsLive() {
* is `false`, it matches archived objects.
*
*
- * bool is_live = 3;
+ * optional bool is_live = 3;
*
* @param value The isLive to set.
* @return This builder for chaining.
@@ -8426,7 +8426,7 @@ public Builder setIsLive(boolean value) {
* is `false`, it matches archived objects.
*
*
- * bool is_live = 3;
+ * optional bool is_live = 3;
*
* @return This builder for chaining.
*/
@@ -8447,7 +8447,7 @@ public Builder clearIsLive() {
* the live version) newer than this version of the object.
*
*
- * int32 num_newer_versions = 4;
+ * optional int32 num_newer_versions = 4;
*
* @return Whether the numNewerVersions field is set.
*/
@@ -8464,7 +8464,7 @@ public boolean hasNumNewerVersions() {
* the live version) newer than this version of the object.
*
*
- * int32 num_newer_versions = 4;
+ * optional int32 num_newer_versions = 4;
*
* @return The numNewerVersions.
*/
@@ -8481,7 +8481,7 @@ public int getNumNewerVersions() {
* the live version) newer than this version of the object.
*
*
- * int32 num_newer_versions = 4;
+ * optional int32 num_newer_versions = 4;
*
* @param value The numNewerVersions to set.
* @return This builder for chaining.
@@ -8501,7 +8501,7 @@ public Builder setNumNewerVersions(int value) {
* the live version) newer than this version of the object.
*
*
- * int32 num_newer_versions = 4;
+ * optional int32 num_newer_versions = 4;
*
* @return This builder for chaining.
*/
@@ -8718,7 +8718,7 @@ public Builder addMatchesStorageClassBytes(com.google.protobuf.ByteString value)
* The value of the field must be a nonnegative integer.
*
*
- * int32 days_since_custom_time = 7;
+ * optional int32 days_since_custom_time = 7;
*
* @return Whether the daysSinceCustomTime field is set.
*/
@@ -8735,7 +8735,7 @@ public boolean hasDaysSinceCustomTime() {
* The value of the field must be a nonnegative integer.
*
*
- * int32 days_since_custom_time = 7;
+ * optional int32 days_since_custom_time = 7;
*
* @return The daysSinceCustomTime.
*/
@@ -8752,7 +8752,7 @@ public int getDaysSinceCustomTime() {
* The value of the field must be a nonnegative integer.
*
*
- * int32 days_since_custom_time = 7;
+ * optional int32 days_since_custom_time = 7;
*
* @param value The daysSinceCustomTime to set.
* @return This builder for chaining.
@@ -8772,7 +8772,7 @@ public Builder setDaysSinceCustomTime(int value) {
* The value of the field must be a nonnegative integer.
*
*
- * int32 days_since_custom_time = 7;
+ * optional int32 days_since_custom_time = 7;
*
* @return This builder for chaining.
*/
@@ -8985,7 +8985,7 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
* eligible for Lifecycle action as soon as it becomes noncurrent.
*
*
- * int32 days_since_noncurrent_time = 9;
+ * optional int32 days_since_noncurrent_time = 9;
*
* @return Whether the daysSinceNoncurrentTime field is set.
*/
@@ -9004,7 +9004,7 @@ public boolean hasDaysSinceNoncurrentTime() {
* eligible for Lifecycle action as soon as it becomes noncurrent.
*
*
- * int32 days_since_noncurrent_time = 9;
+ * optional int32 days_since_noncurrent_time = 9;
*
* @return The daysSinceNoncurrentTime.
*/
@@ -9023,7 +9023,7 @@ public int getDaysSinceNoncurrentTime() {
* eligible for Lifecycle action as soon as it becomes noncurrent.
*
*
- * int32 days_since_noncurrent_time = 9;
+ * optional int32 days_since_noncurrent_time = 9;
*
* @param value The daysSinceNoncurrentTime to set.
* @return This builder for chaining.
@@ -9045,7 +9045,7 @@ public Builder setDaysSinceNoncurrentTime(int value) {
* eligible for Lifecycle action as soon as it becomes noncurrent.
*
*
- * int32 days_since_noncurrent_time = 9;
+ * optional int32 days_since_noncurrent_time = 9;
*
* @return This builder for chaining.
*/
@@ -11314,10 +11314,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getLogBucketBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logBucket_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logBucket_);
}
- if (!getLogObjectPrefixBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logObjectPrefix_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, logObjectPrefix_);
}
unknownFields.writeTo(output);
@@ -11329,10 +11329,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getLogBucketBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logBucket_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, logBucket_);
}
- if (!getLogObjectPrefixBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logObjectPrefix_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, logObjectPrefix_);
}
size += unknownFields.getSerializedSize();
@@ -13755,10 +13755,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getMainPageSuffixBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainPageSuffix_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainPageSuffix_);
}
- if (!getNotFoundPageBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notFoundPage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, notFoundPage_);
}
unknownFields.writeTo(output);
@@ -13770,10 +13770,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getMainPageSuffixBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainPageSuffix_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainPageSuffix_);
}
- if (!getNotFoundPageBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notFoundPage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, notFoundPage_);
}
size += unknownFields.getSerializedSize();
@@ -15792,25 +15792,25 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
- if (!getBucketIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bucketId_);
}
- if (!getProjectBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, project_);
}
if (metageneration_ != 0L) {
output.writeInt64(4, metageneration_);
}
- if (!getLocationBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, location_);
}
- if (!getLocationTypeBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, locationType_);
}
- if (!getStorageClassBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageClass_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, storageClass_);
}
for (int i = 0; i < acl_.size(); i++) {
@@ -15875,25 +15875,25 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
- if (!getBucketIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bucketId_);
}
- if (!getProjectBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, project_);
}
if (metageneration_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, metageneration_);
}
- if (!getLocationBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, location_);
}
- if (!getLocationTypeBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, locationType_);
}
- if (!getStorageClassBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageClass_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, storageClass_);
}
for (int i = 0; i < acl_.size(); i++) {
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 116695c15..3c6c4a544 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
@@ -550,22 +550,22 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getRoleBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_);
}
- if (!getIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_);
}
- if (!getEntityBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entity_);
}
- if (!getEntityIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, entityId_);
}
- if (!getEmailBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, email_);
}
- if (!getDomainBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, domain_);
}
if (projectTeam_ != null) {
@@ -580,22 +580,22 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getRoleBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_);
}
- if (!getIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
}
- if (!getEntityBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entity_);
}
- if (!getEntityIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, entityId_);
}
- if (!getEmailBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, email_);
}
- if (!getDomainBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_);
}
if (projectTeam_ != null) {
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
index e28d8e7a8..f84e379ef 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
@@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getContent() {
* If set, the CRC32C digest of the content field.
*
*
- * fixed32 crc32c = 2;
+ * optional fixed32 crc32c = 2;
*
* @return Whether the crc32c field is set.
*/
@@ -160,7 +160,7 @@ public boolean hasCrc32C() {
* If set, the CRC32C digest of the content field.
*
*
- * fixed32 crc32c = 2;
+ * optional fixed32 crc32c = 2;
*
* @return The crc32c.
*/
@@ -574,7 +574,7 @@ public Builder clearContent() {
* If set, the CRC32C digest of the content field.
*
*
- * fixed32 crc32c = 2;
+ * optional fixed32 crc32c = 2;
*
* @return Whether the crc32c field is set.
*/
@@ -589,7 +589,7 @@ public boolean hasCrc32C() {
* If set, the CRC32C digest of the content field.
*
*
- * fixed32 crc32c = 2;
+ * optional fixed32 crc32c = 2;
*
* @return The crc32c.
*/
@@ -604,7 +604,7 @@ public int getCrc32C() {
* If set, the CRC32C digest of the content field.
*
*
- * fixed32 crc32c = 2;
+ * optional fixed32 crc32c = 2;
*
* @param value The crc32c to set.
* @return This builder for chaining.
@@ -622,7 +622,7 @@ public Builder setCrc32C(int value) {
* If set, the CRC32C digest of the content field.
*
*
- * fixed32 crc32c = 2;
+ * optional fixed32 crc32c = 2;
*
* @return This builder for chaining.
*/
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java
index 15bded53e..9fe732c82 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java
@@ -43,7 +43,7 @@ public interface ChecksummedDataOrBuilder
* If set, the CRC32C digest of the content field.
*
*
- * fixed32 crc32c = 2;
+ * optional fixed32 crc32c = 2;
*
* @return Whether the crc32c field is set.
*/
@@ -55,7 +55,7 @@ public interface ChecksummedDataOrBuilder
* If set, the CRC32C digest of the content field.
*
*
- * fixed32 crc32c = 2;
+ * optional fixed32 crc32c = 2;
*
* @return The crc32c.
*/
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java
index 6d3978147..3dfad0b8b 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java
@@ -224,7 +224,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getEncryptionAlgorithmBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionAlgorithm_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, encryptionAlgorithm_);
}
if (!encryptionKeyBytes_.isEmpty()) {
@@ -242,7 +242,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getEncryptionAlgorithmBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionAlgorithm_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, encryptionAlgorithm_);
}
if (!encryptionKeyBytes_.isEmpty()) {
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonRequestParams.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonRequestParams.java
index 7fb71c024..70e27fdcd 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonRequestParams.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonRequestParams.java
@@ -180,7 +180,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getUserProjectBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userProject_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userProject_);
}
unknownFields.writeTo(output);
@@ -192,7 +192,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getUserProjectBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userProject_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userProject_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java
index b63778579..9914081c3 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java
@@ -607,7 +607,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getEncryptionAlgorithmBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionAlgorithm_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, encryptionAlgorithm_);
}
if (!keySha256Bytes_.isEmpty()) {
@@ -622,7 +622,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getEncryptionAlgorithmBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionAlgorithm_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, encryptionAlgorithm_);
}
if (!keySha256Bytes_.isEmpty()) {
@@ -2283,7 +2283,7 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
* In a response, this field will always be set to true or false.
*
*
- * bool event_based_hold = 23;
+ * optional bool event_based_hold = 23;
*
* @return Whether the eventBasedHold field is set.
*/
@@ -2307,7 +2307,7 @@ public boolean hasEventBasedHold() {
* In a response, this field will always be set to true or false.
*
*
- * bool event_based_hold = 23;
+ * optional bool event_based_hold = 23;
*
* @return The eventBasedHold.
*/
@@ -2479,10 +2479,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
- if (!getBucketBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bucket_);
}
if (generation_ != 0L) {
@@ -2491,31 +2491,31 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (metageneration_ != 0L) {
output.writeInt64(4, metageneration_);
}
- if (!getStorageClassBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageClass_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, storageClass_);
}
if (size_ != 0L) {
output.writeInt64(6, size_);
}
- if (!getContentEncodingBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentEncoding_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, contentEncoding_);
}
- if (!getContentDispositionBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentDisposition_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, contentDisposition_);
}
- if (!getCacheControlBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cacheControl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, cacheControl_);
}
for (int i = 0; i < acl_.size(); i++) {
output.writeMessage(10, acl_.get(i));
}
- if (!getContentLanguageBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentLanguage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, contentLanguage_);
}
if (deleteTime_ != null) {
output.writeMessage(12, getDeleteTime());
}
- if (!getContentTypeBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, contentType_);
}
if (createTime_ != null) {
@@ -2530,7 +2530,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (updateTime_ != null) {
output.writeMessage(17, getUpdateTime());
}
- if (!getKmsKeyBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, kmsKey_);
}
if (updateStorageClassTime_ != null) {
@@ -2565,10 +2565,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getNameBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
- if (!getBucketBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bucket_);
}
if (generation_ != 0L) {
@@ -2577,31 +2577,31 @@ public int getSerializedSize() {
if (metageneration_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, metageneration_);
}
- if (!getStorageClassBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageClass_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, storageClass_);
}
if (size_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, size_);
}
- if (!getContentEncodingBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentEncoding_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, contentEncoding_);
}
- if (!getContentDispositionBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentDisposition_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, contentDisposition_);
}
- if (!getCacheControlBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cacheControl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, cacheControl_);
}
for (int i = 0; i < acl_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, acl_.get(i));
}
- if (!getContentLanguageBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentLanguage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, contentLanguage_);
}
if (deleteTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDeleteTime());
}
- if (!getContentTypeBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, contentType_);
}
if (createTime_ != null) {
@@ -2616,7 +2616,7 @@ public int getSerializedSize() {
if (updateTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getUpdateTime());
}
- if (!getKmsKeyBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, kmsKey_);
}
if (updateStorageClassTime_ != null) {
@@ -6623,7 +6623,7 @@ public Builder putAllMetadata(java.util.Map
* In a response, this field will always be set to true or false.
*
*
- * bool event_based_hold = 23;
+ * optional bool event_based_hold = 23;
*
* @return Whether the eventBasedHold field is set.
*/
@@ -6647,7 +6647,7 @@ public boolean hasEventBasedHold() {
* In a response, this field will always be set to true or false.
*
*
- * bool event_based_hold = 23;
+ * optional bool event_based_hold = 23;
*
* @return The eventBasedHold.
*/
@@ -6671,7 +6671,7 @@ public boolean getEventBasedHold() {
* In a response, this field will always be set to true or false.
*
*
- * bool event_based_hold = 23;
+ * optional bool event_based_hold = 23;
*
* @param value The eventBasedHold to set.
* @return This builder for chaining.
@@ -6698,7 +6698,7 @@ public Builder setEventBasedHold(boolean value) {
* In a response, this field will always be set to true or false.
*
*
- * bool event_based_hold = 23;
+ * optional bool event_based_hold = 23;
*
* @return This builder for chaining.
*/
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 493188fb5..e7ce2b1bc 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
@@ -550,22 +550,22 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getRoleBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_);
}
- if (!getIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_);
}
- if (!getEntityBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entity_);
}
- if (!getEntityIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, entityId_);
}
- if (!getEmailBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, email_);
}
- if (!getDomainBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, domain_);
}
if (projectTeam_ != null) {
@@ -580,22 +580,22 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getRoleBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_);
}
- if (!getIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
}
- if (!getEntityBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entity_);
}
- if (!getEntityIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, entityId_);
}
- if (!getEmailBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, email_);
}
- if (!getDomainBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_);
}
if (projectTeam_ != null) {
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java
index aac234540..b72dd842f 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java
@@ -129,7 +129,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* object matches this checksum.
*
*
- * fixed32 crc32c = 1;
+ * optional fixed32 crc32c = 1;
*
* @return Whether the crc32c field is set.
*/
@@ -147,7 +147,7 @@ public boolean hasCrc32C() {
* object matches this checksum.
*
*
- * fixed32 crc32c = 1;
+ * optional fixed32 crc32c = 1;
*
* @return The crc32c.
*/
@@ -532,7 +532,7 @@ public Builder mergeFrom(
* object matches this checksum.
*
*
- * fixed32 crc32c = 1;
+ * optional fixed32 crc32c = 1;
*
* @return Whether the crc32c field is set.
*/
@@ -550,7 +550,7 @@ public boolean hasCrc32C() {
* object matches this checksum.
*
*
- * fixed32 crc32c = 1;
+ * optional fixed32 crc32c = 1;
*
* @return The crc32c.
*/
@@ -568,7 +568,7 @@ public int getCrc32C() {
* object matches this checksum.
*
*
- * fixed32 crc32c = 1;
+ * optional fixed32 crc32c = 1;
*
* @param value The crc32c to set.
* @return This builder for chaining.
@@ -589,7 +589,7 @@ public Builder setCrc32C(int value) {
* object matches this checksum.
*
*
- * fixed32 crc32c = 1;
+ * optional fixed32 crc32c = 1;
*
* @return This builder for chaining.
*/
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java
index aaddb7537..f094b2b6f 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java
@@ -33,7 +33,7 @@ public interface ObjectChecksumsOrBuilder
* object matches this checksum.
*
*
- * fixed32 crc32c = 1;
+ * optional fixed32 crc32c = 1;
*
* @return Whether the crc32c field is set.
*/
@@ -48,7 +48,7 @@ public interface ObjectChecksumsOrBuilder
* object matches this checksum.
*
*
- * fixed32 crc32c = 1;
+ * optional fixed32 crc32c = 1;
*
* @return The crc32c.
*/
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java
index 5938f1546..084105197 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java
@@ -782,7 +782,7 @@ public interface ObjectOrBuilder
* In a response, this field will always be set to true or false.
*
*
- * bool event_based_hold = 23;
+ * optional bool event_based_hold = 23;
*
* @return Whether the eventBasedHold field is set.
*/
@@ -803,7 +803,7 @@ public interface ObjectOrBuilder
* In a response, this field will always be set to true or false.
*
*
- * bool event_based_hold = 23;
+ * optional bool event_based_hold = 23;
*
* @return The eventBasedHold.
*/
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java
index e97de6590..c87862b6e 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java
@@ -229,10 +229,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getEntityBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_);
}
- if (!getEntityIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entityId_);
}
unknownFields.writeTo(output);
@@ -244,10 +244,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getEntityBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entity_);
}
- if (!getEntityIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entityId_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java
index 24386ea8a..6d9d30651 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java
@@ -231,10 +231,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getProjectNumberBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectNumber_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectNumber_);
}
- if (!getTeamBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(team_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, team_);
}
unknownFields.writeTo(output);
@@ -246,10 +246,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getProjectNumberBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectNumber_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectNumber_);
}
- if (!getTeamBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(team_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, team_);
}
size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java
index a3d479d6a..027368ff5 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java
@@ -305,7 +305,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getUploadIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_);
}
if (commonObjectRequestParams_ != null) {
@@ -323,7 +323,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getUploadIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadId_);
}
if (commonObjectRequestParams_ != null) {
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 33a6ad3ef..eb93ce9a4 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
@@ -383,7 +383,7 @@ public long getReadLimit() {
* there are no live versions of the object.
*
*
- * int64 if_generation_match = 6;
+ * optional int64 if_generation_match = 6;
*
* @return Whether the ifGenerationMatch field is set.
*/
@@ -400,7 +400,7 @@ public boolean hasIfGenerationMatch() {
* there are no live versions of the object.
*
*
- * int64 if_generation_match = 6;
+ * optional int64 if_generation_match = 6;
*
* @return The ifGenerationMatch.
*/
@@ -421,7 +421,7 @@ public long getIfGenerationMatch() {
* version of the object.
*
*
- * int64 if_generation_not_match = 7;
+ * optional int64 if_generation_not_match = 7;
*
* @return Whether the ifGenerationNotMatch field is set.
*/
@@ -439,7 +439,7 @@ public boolean hasIfGenerationNotMatch() {
* version of the object.
*
*
- * int64 if_generation_not_match = 7;
+ * optional int64 if_generation_not_match = 7;
*
* @return The ifGenerationNotMatch.
*/
@@ -458,7 +458,7 @@ public long getIfGenerationNotMatch() {
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 8;
+ * optional int64 if_metageneration_match = 8;
*
* @return Whether the ifMetagenerationMatch field is set.
*/
@@ -474,7 +474,7 @@ public boolean hasIfMetagenerationMatch() {
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 8;
+ * optional int64 if_metageneration_match = 8;
*
* @return The ifMetagenerationMatch.
*/
@@ -493,7 +493,7 @@ public long getIfMetagenerationMatch() {
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 9;
+ * optional int64 if_metageneration_not_match = 9;
*
* @return Whether the ifMetagenerationNotMatch field is set.
*/
@@ -509,7 +509,7 @@ public boolean hasIfMetagenerationNotMatch() {
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 9;
+ * optional int64 if_metageneration_not_match = 9;
*
* @return The ifMetagenerationNotMatch.
*/
@@ -628,7 +628,7 @@ public com.google.storage.v2.CommonRequestParamsOrBuilder getCommonRequestParams
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*
* @return Whether the readMask field is set.
*/
@@ -647,7 +647,7 @@ public boolean hasReadMask() {
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*
* @return The readMask.
*/
@@ -666,7 +666,7 @@ public com.google.protobuf.FieldMask getReadMask() {
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
@@ -687,10 +687,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getBucketBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_);
}
- if (!getObjectBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, object_);
}
if (generation_ != 0L) {
@@ -732,10 +732,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getBucketBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_);
}
- if (!getObjectBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_);
}
if (generation_ != 0L) {
@@ -1656,7 +1656,7 @@ public Builder clearReadLimit() {
* there are no live versions of the object.
*
*
- * int64 if_generation_match = 6;
+ * optional int64 if_generation_match = 6;
*
* @return Whether the ifGenerationMatch field is set.
*/
@@ -1673,7 +1673,7 @@ public boolean hasIfGenerationMatch() {
* there are no live versions of the object.
*
*
- * int64 if_generation_match = 6;
+ * optional int64 if_generation_match = 6;
*
* @return The ifGenerationMatch.
*/
@@ -1690,7 +1690,7 @@ public long getIfGenerationMatch() {
* there are no live versions of the object.
*
*
- * int64 if_generation_match = 6;
+ * optional int64 if_generation_match = 6;
*
* @param value The ifGenerationMatch to set.
* @return This builder for chaining.
@@ -1710,7 +1710,7 @@ public Builder setIfGenerationMatch(long value) {
* there are no live versions of the object.
*
*
- * int64 if_generation_match = 6;
+ * optional int64 if_generation_match = 6;
*
* @return This builder for chaining.
*/
@@ -1732,7 +1732,7 @@ public Builder clearIfGenerationMatch() {
* version of the object.
*
*
- * int64 if_generation_not_match = 7;
+ * optional int64 if_generation_not_match = 7;
*
* @return Whether the ifGenerationNotMatch field is set.
*/
@@ -1750,7 +1750,7 @@ public boolean hasIfGenerationNotMatch() {
* version of the object.
*
*
- * int64 if_generation_not_match = 7;
+ * optional int64 if_generation_not_match = 7;
*
* @return The ifGenerationNotMatch.
*/
@@ -1768,7 +1768,7 @@ public long getIfGenerationNotMatch() {
* version of the object.
*
*
- * int64 if_generation_not_match = 7;
+ * optional int64 if_generation_not_match = 7;
*
* @param value The ifGenerationNotMatch to set.
* @return This builder for chaining.
@@ -1789,7 +1789,7 @@ public Builder setIfGenerationNotMatch(long value) {
* version of the object.
*
*
- * int64 if_generation_not_match = 7;
+ * optional int64 if_generation_not_match = 7;
*
* @return This builder for chaining.
*/
@@ -1809,7 +1809,7 @@ public Builder clearIfGenerationNotMatch() {
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 8;
+ * optional int64 if_metageneration_match = 8;
*
* @return Whether the ifMetagenerationMatch field is set.
*/
@@ -1825,7 +1825,7 @@ public boolean hasIfMetagenerationMatch() {
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 8;
+ * optional int64 if_metageneration_match = 8;
*
* @return The ifMetagenerationMatch.
*/
@@ -1841,7 +1841,7 @@ public long getIfMetagenerationMatch() {
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 8;
+ * optional int64 if_metageneration_match = 8;
*
* @param value The ifMetagenerationMatch to set.
* @return This builder for chaining.
@@ -1860,7 +1860,7 @@ public Builder setIfMetagenerationMatch(long value) {
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 8;
+ * optional int64 if_metageneration_match = 8;
*
* @return This builder for chaining.
*/
@@ -1880,7 +1880,7 @@ public Builder clearIfMetagenerationMatch() {
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 9;
+ * optional int64 if_metageneration_not_match = 9;
*
* @return Whether the ifMetagenerationNotMatch field is set.
*/
@@ -1896,7 +1896,7 @@ public boolean hasIfMetagenerationNotMatch() {
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 9;
+ * optional int64 if_metageneration_not_match = 9;
*
* @return The ifMetagenerationNotMatch.
*/
@@ -1912,7 +1912,7 @@ public long getIfMetagenerationNotMatch() {
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 9;
+ * optional int64 if_metageneration_not_match = 9;
*
* @param value The ifMetagenerationNotMatch to set.
* @return This builder for chaining.
@@ -1931,7 +1931,7 @@ public Builder setIfMetagenerationNotMatch(long value) {
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 9;
+ * optional int64 if_metageneration_not_match = 9;
*
* @return This builder for chaining.
*/
@@ -2335,7 +2335,7 @@ public com.google.storage.v2.CommonRequestParamsOrBuilder getCommonRequestParams
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*
* @return Whether the readMask field is set.
*/
@@ -2353,7 +2353,7 @@ public boolean hasReadMask() {
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*
* @return The readMask.
*/
@@ -2375,7 +2375,7 @@ public com.google.protobuf.FieldMask getReadMask() {
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*/
public Builder setReadMask(com.google.protobuf.FieldMask value) {
if (readMaskBuilder_ == null) {
@@ -2401,7 +2401,7 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*/
public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (readMaskBuilder_ == null) {
@@ -2424,7 +2424,7 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*/
public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
if (readMaskBuilder_ == null) {
@@ -2454,7 +2454,7 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*/
public Builder clearReadMask() {
if (readMaskBuilder_ == null) {
@@ -2477,7 +2477,7 @@ public Builder clearReadMask() {
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*/
public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() {
bitField0_ |= 0x00000010;
@@ -2495,7 +2495,7 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() {
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*/
public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
if (readMaskBuilder_ != null) {
@@ -2515,7 +2515,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask,
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 bf9a68066..23a835ab7 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
@@ -134,7 +134,7 @@ public interface ReadObjectRequestOrBuilder
* there are no live versions of the object.
*
*
- * int64 if_generation_match = 6;
+ * optional int64 if_generation_match = 6;
*
* @return Whether the ifGenerationMatch field is set.
*/
@@ -148,7 +148,7 @@ public interface ReadObjectRequestOrBuilder
* there are no live versions of the object.
*
*
- * int64 if_generation_match = 6;
+ * optional int64 if_generation_match = 6;
*
* @return The ifGenerationMatch.
*/
@@ -164,7 +164,7 @@ public interface ReadObjectRequestOrBuilder
* version of the object.
*
*
- * int64 if_generation_not_match = 7;
+ * optional int64 if_generation_not_match = 7;
*
* @return Whether the ifGenerationNotMatch field is set.
*/
@@ -179,7 +179,7 @@ public interface ReadObjectRequestOrBuilder
* version of the object.
*
*
- * int64 if_generation_not_match = 7;
+ * optional int64 if_generation_not_match = 7;
*
* @return The ifGenerationNotMatch.
*/
@@ -193,7 +193,7 @@ public interface ReadObjectRequestOrBuilder
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 8;
+ * optional int64 if_metageneration_match = 8;
*
* @return Whether the ifMetagenerationMatch field is set.
*/
@@ -206,7 +206,7 @@ public interface ReadObjectRequestOrBuilder
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 8;
+ * optional int64 if_metageneration_match = 8;
*
* @return The ifMetagenerationMatch.
*/
@@ -220,7 +220,7 @@ public interface ReadObjectRequestOrBuilder
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 9;
+ * optional int64 if_metageneration_not_match = 9;
*
* @return Whether the ifMetagenerationNotMatch field is set.
*/
@@ -233,7 +233,7 @@ public interface ReadObjectRequestOrBuilder
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 9;
+ * optional int64 if_metageneration_not_match = 9;
*
* @return The ifMetagenerationNotMatch.
*/
@@ -320,7 +320,7 @@ public interface ReadObjectRequestOrBuilder
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*
* @return Whether the readMask field is set.
*/
@@ -336,7 +336,7 @@ public interface ReadObjectRequestOrBuilder
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*
* @return The readMask.
*/
@@ -352,7 +352,7 @@ public interface ReadObjectRequestOrBuilder
* * may be used to mean "all fields".
*
*
- * .google.protobuf.FieldMask read_mask = 12;
+ * optional .google.protobuf.FieldMask read_mask = 12;
*/
com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder();
}
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
index 48f6f14e3..98440f0e6 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
@@ -176,7 +176,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getUploadIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_);
}
unknownFields.writeTo(output);
@@ -188,7 +188,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getUploadIdBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadId_);
}
size += unknownFields.getSerializedSize();
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 8aa73d381..d1ef0a7a6 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
@@ -245,7 +245,7 @@ public com.google.storage.v2.PredefinedObjectAcl getPredefinedAcl() {
* succeed only if there are no live versions of the object.
*
*
- * int64 if_generation_match = 3;
+ * optional int64 if_generation_match = 3;
*
* @return Whether the ifGenerationMatch field is set.
*/
@@ -262,7 +262,7 @@ public boolean hasIfGenerationMatch() {
* succeed only if there are no live versions of the object.
*
*
- * int64 if_generation_match = 3;
+ * optional int64 if_generation_match = 3;
*
* @return The ifGenerationMatch.
*/
@@ -283,7 +283,7 @@ public long getIfGenerationMatch() {
* there is a live version of the object.
*
*
- * int64 if_generation_not_match = 4;
+ * optional int64 if_generation_not_match = 4;
*
* @return Whether the ifGenerationNotMatch field is set.
*/
@@ -301,7 +301,7 @@ public boolean hasIfGenerationNotMatch() {
* there is a live version of the object.
*
*
- * int64 if_generation_not_match = 4;
+ * optional int64 if_generation_not_match = 4;
*
* @return The ifGenerationNotMatch.
*/
@@ -320,7 +320,7 @@ public long getIfGenerationNotMatch() {
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 5;
+ * optional int64 if_metageneration_match = 5;
*
* @return Whether the ifMetagenerationMatch field is set.
*/
@@ -336,7 +336,7 @@ public boolean hasIfMetagenerationMatch() {
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 5;
+ * optional int64 if_metageneration_match = 5;
*
* @return The ifMetagenerationMatch.
*/
@@ -355,7 +355,7 @@ public long getIfMetagenerationMatch() {
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 6;
+ * optional int64 if_metageneration_not_match = 6;
*
* @return Whether the ifMetagenerationNotMatch field is set.
*/
@@ -371,7 +371,7 @@ public boolean hasIfMetagenerationNotMatch() {
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 6;
+ * optional int64 if_metageneration_not_match = 6;
*
* @return The ifMetagenerationNotMatch.
*/
@@ -1102,7 +1102,7 @@ public Builder clearPredefinedAcl() {
* succeed only if there are no live versions of the object.
*
*
- * int64 if_generation_match = 3;
+ * optional int64 if_generation_match = 3;
*
* @return Whether the ifGenerationMatch field is set.
*/
@@ -1119,7 +1119,7 @@ public boolean hasIfGenerationMatch() {
* succeed only if there are no live versions of the object.
*
*
- * int64 if_generation_match = 3;
+ * optional int64 if_generation_match = 3;
*
* @return The ifGenerationMatch.
*/
@@ -1136,7 +1136,7 @@ public long getIfGenerationMatch() {
* succeed only if there are no live versions of the object.
*
*
- * int64 if_generation_match = 3;
+ * optional int64 if_generation_match = 3;
*
* @param value The ifGenerationMatch to set.
* @return This builder for chaining.
@@ -1156,7 +1156,7 @@ public Builder setIfGenerationMatch(long value) {
* succeed only if there are no live versions of the object.
*
*
- * int64 if_generation_match = 3;
+ * optional int64 if_generation_match = 3;
*
* @return This builder for chaining.
*/
@@ -1178,7 +1178,7 @@ public Builder clearIfGenerationMatch() {
* there is a live version of the object.
*
*
- * int64 if_generation_not_match = 4;
+ * optional int64 if_generation_not_match = 4;
*
* @return Whether the ifGenerationNotMatch field is set.
*/
@@ -1196,7 +1196,7 @@ public boolean hasIfGenerationNotMatch() {
* there is a live version of the object.
*
*
- * int64 if_generation_not_match = 4;
+ * optional int64 if_generation_not_match = 4;
*
* @return The ifGenerationNotMatch.
*/
@@ -1214,7 +1214,7 @@ public long getIfGenerationNotMatch() {
* there is a live version of the object.
*
*
- * int64 if_generation_not_match = 4;
+ * optional int64 if_generation_not_match = 4;
*
* @param value The ifGenerationNotMatch to set.
* @return This builder for chaining.
@@ -1235,7 +1235,7 @@ public Builder setIfGenerationNotMatch(long value) {
* there is a live version of the object.
*
*
- * int64 if_generation_not_match = 4;
+ * optional int64 if_generation_not_match = 4;
*
* @return This builder for chaining.
*/
@@ -1255,7 +1255,7 @@ public Builder clearIfGenerationNotMatch() {
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 5;
+ * optional int64 if_metageneration_match = 5;
*
* @return Whether the ifMetagenerationMatch field is set.
*/
@@ -1271,7 +1271,7 @@ public boolean hasIfMetagenerationMatch() {
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 5;
+ * optional int64 if_metageneration_match = 5;
*
* @return The ifMetagenerationMatch.
*/
@@ -1287,7 +1287,7 @@ public long getIfMetagenerationMatch() {
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 5;
+ * optional int64 if_metageneration_match = 5;
*
* @param value The ifMetagenerationMatch to set.
* @return This builder for chaining.
@@ -1306,7 +1306,7 @@ public Builder setIfMetagenerationMatch(long value) {
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 5;
+ * optional int64 if_metageneration_match = 5;
*
* @return This builder for chaining.
*/
@@ -1326,7 +1326,7 @@ public Builder clearIfMetagenerationMatch() {
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 6;
+ * optional int64 if_metageneration_not_match = 6;
*
* @return Whether the ifMetagenerationNotMatch field is set.
*/
@@ -1342,7 +1342,7 @@ public boolean hasIfMetagenerationNotMatch() {
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 6;
+ * optional int64 if_metageneration_not_match = 6;
*
* @return The ifMetagenerationNotMatch.
*/
@@ -1358,7 +1358,7 @@ public long getIfMetagenerationNotMatch() {
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 6;
+ * optional int64 if_metageneration_not_match = 6;
*
* @param value The ifMetagenerationNotMatch to set.
* @return This builder for chaining.
@@ -1377,7 +1377,7 @@ public Builder setIfMetagenerationNotMatch(long value) {
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 6;
+ * optional int64 if_metageneration_not_match = 6;
*
* @return This builder for chaining.
*/
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 61c4426ad..459b4e9c3 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
@@ -92,7 +92,7 @@ public interface WriteObjectSpecOrBuilder
* succeed only if there are no live versions of the object.
*
*
- * int64 if_generation_match = 3;
+ * optional int64 if_generation_match = 3;
*
* @return Whether the ifGenerationMatch field is set.
*/
@@ -106,7 +106,7 @@ public interface WriteObjectSpecOrBuilder
* succeed only if there are no live versions of the object.
*
*
- * int64 if_generation_match = 3;
+ * optional int64 if_generation_match = 3;
*
* @return The ifGenerationMatch.
*/
@@ -122,7 +122,7 @@ public interface WriteObjectSpecOrBuilder
* there is a live version of the object.
*
*
- * int64 if_generation_not_match = 4;
+ * optional int64 if_generation_not_match = 4;
*
* @return Whether the ifGenerationNotMatch field is set.
*/
@@ -137,7 +137,7 @@ public interface WriteObjectSpecOrBuilder
* there is a live version of the object.
*
*
- * int64 if_generation_not_match = 4;
+ * optional int64 if_generation_not_match = 4;
*
* @return The ifGenerationNotMatch.
*/
@@ -151,7 +151,7 @@ public interface WriteObjectSpecOrBuilder
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 5;
+ * optional int64 if_metageneration_match = 5;
*
* @return Whether the ifMetagenerationMatch field is set.
*/
@@ -164,7 +164,7 @@ public interface WriteObjectSpecOrBuilder
* metageneration matches the given value.
*
*
- * int64 if_metageneration_match = 5;
+ * optional int64 if_metageneration_match = 5;
*
* @return The ifMetagenerationMatch.
*/
@@ -178,7 +178,7 @@ public interface WriteObjectSpecOrBuilder
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 6;
+ * optional int64 if_metageneration_not_match = 6;
*
* @return Whether the ifMetagenerationNotMatch field is set.
*/
@@ -191,7 +191,7 @@ public interface WriteObjectSpecOrBuilder
* metageneration does not match the given value.
*
*
- * int64 if_metageneration_not_match = 6;
+ * optional int64 if_metageneration_not_match = 6;
*
* @return The ifMetagenerationNotMatch.
*/
diff --git a/synth.metadata b/synth.metadata
index 962316f57..e0cf8bf0f 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-storage.git",
- "sha": "cdb86dcca17636ff7be59208361f8d42ab0858ba"
+ "sha": "0f5b3cb55b70944475003457278086d69e7c53e3"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "877d3d9d02591ad612a2c8654b42c37ba09ff9ec",
- "internalRef": "402986756"
+ "sha": "d2977af9e9f1fc0c9dc8368352daa032471f3c63",
+ "internalRef": "403132955"
}
},
{