Skip to content

Commit a79c14e

Browse files
chore(bazel): [iam] update protobuf to v3.21.12 (#1262)
* chore(bazel): update protobuf to v3.21.12 PiperOrigin-RevId: 503267695 Source-Link: googleapis/googleapis@c790590 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b98230b9e68a3828cf138296e9a20e03749ae0a0 Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6ImI5ODIzMGI5ZTY4YTM4MjhjZjEzODI5NmU5YTIwZTAzNzQ5YWUwYTAifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Diego Alonso Marquez Palacios <[email protected]>
1 parent 66ea2d7 commit a79c14e

34 files changed

+1495
-988
lines changed

java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java

+36-19
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
113113
}
114114

115115
public static final int SERVICE_FIELD_NUMBER = 1;
116-
private volatile java.lang.Object service_;
116+
117+
@SuppressWarnings("serial")
118+
private volatile java.lang.Object service_ = "";
117119
/**
118120
*
119121
*
@@ -166,6 +168,8 @@ public com.google.protobuf.ByteString getServiceBytes() {
166168
}
167169

168170
public static final int AUDIT_LOG_CONFIGS_FIELD_NUMBER = 3;
171+
172+
@SuppressWarnings("serial")
169173
private java.util.List<com.google.iam.v1.AuditLogConfig> auditLogConfigs_;
170174
/**
171175
*
@@ -484,15 +488,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
484488
@java.lang.Override
485489
public Builder clear() {
486490
super.clear();
491+
bitField0_ = 0;
487492
service_ = "";
488-
489493
if (auditLogConfigsBuilder_ == null) {
490494
auditLogConfigs_ = java.util.Collections.emptyList();
491495
} else {
492496
auditLogConfigs_ = null;
493497
auditLogConfigsBuilder_.clear();
494498
}
495-
bitField0_ = (bitField0_ & ~0x00000001);
499+
bitField0_ = (bitField0_ & ~0x00000002);
496500
return this;
497501
}
498502

@@ -518,19 +522,31 @@ public com.google.iam.v1.AuditConfig build() {
518522
@java.lang.Override
519523
public com.google.iam.v1.AuditConfig buildPartial() {
520524
com.google.iam.v1.AuditConfig result = new com.google.iam.v1.AuditConfig(this);
521-
int from_bitField0_ = bitField0_;
522-
result.service_ = service_;
525+
buildPartialRepeatedFields(result);
526+
if (bitField0_ != 0) {
527+
buildPartial0(result);
528+
}
529+
onBuilt();
530+
return result;
531+
}
532+
533+
private void buildPartialRepeatedFields(com.google.iam.v1.AuditConfig result) {
523534
if (auditLogConfigsBuilder_ == null) {
524-
if (((bitField0_ & 0x00000001) != 0)) {
535+
if (((bitField0_ & 0x00000002) != 0)) {
525536
auditLogConfigs_ = java.util.Collections.unmodifiableList(auditLogConfigs_);
526-
bitField0_ = (bitField0_ & ~0x00000001);
537+
bitField0_ = (bitField0_ & ~0x00000002);
527538
}
528539
result.auditLogConfigs_ = auditLogConfigs_;
529540
} else {
530541
result.auditLogConfigs_ = auditLogConfigsBuilder_.build();
531542
}
532-
onBuilt();
533-
return result;
543+
}
544+
545+
private void buildPartial0(com.google.iam.v1.AuditConfig result) {
546+
int from_bitField0_ = bitField0_;
547+
if (((from_bitField0_ & 0x00000001) != 0)) {
548+
result.service_ = service_;
549+
}
534550
}
535551

536552
@java.lang.Override
@@ -580,13 +596,14 @@ public Builder mergeFrom(com.google.iam.v1.AuditConfig other) {
580596
if (other == com.google.iam.v1.AuditConfig.getDefaultInstance()) return this;
581597
if (!other.getService().isEmpty()) {
582598
service_ = other.service_;
599+
bitField0_ |= 0x00000001;
583600
onChanged();
584601
}
585602
if (auditLogConfigsBuilder_ == null) {
586603
if (!other.auditLogConfigs_.isEmpty()) {
587604
if (auditLogConfigs_.isEmpty()) {
588605
auditLogConfigs_ = other.auditLogConfigs_;
589-
bitField0_ = (bitField0_ & ~0x00000001);
606+
bitField0_ = (bitField0_ & ~0x00000002);
590607
} else {
591608
ensureAuditLogConfigsIsMutable();
592609
auditLogConfigs_.addAll(other.auditLogConfigs_);
@@ -599,7 +616,7 @@ public Builder mergeFrom(com.google.iam.v1.AuditConfig other) {
599616
auditLogConfigsBuilder_.dispose();
600617
auditLogConfigsBuilder_ = null;
601618
auditLogConfigs_ = other.auditLogConfigs_;
602-
bitField0_ = (bitField0_ & ~0x00000001);
619+
bitField0_ = (bitField0_ & ~0x00000002);
603620
auditLogConfigsBuilder_ =
604621
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
605622
? getAuditLogConfigsFieldBuilder()
@@ -638,7 +655,7 @@ public Builder mergeFrom(
638655
case 10:
639656
{
640657
service_ = input.readStringRequireUtf8();
641-
658+
bitField0_ |= 0x00000001;
642659
break;
643660
} // case 10
644661
case 26:
@@ -739,8 +756,8 @@ public Builder setService(java.lang.String value) {
739756
if (value == null) {
740757
throw new NullPointerException();
741758
}
742-
743759
service_ = value;
760+
bitField0_ |= 0x00000001;
744761
onChanged();
745762
return this;
746763
}
@@ -758,8 +775,8 @@ public Builder setService(java.lang.String value) {
758775
* @return This builder for chaining.
759776
*/
760777
public Builder clearService() {
761-
762778
service_ = getDefaultInstance().getService();
779+
bitField0_ = (bitField0_ & ~0x00000001);
763780
onChanged();
764781
return this;
765782
}
@@ -782,8 +799,8 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) {
782799
throw new NullPointerException();
783800
}
784801
checkByteStringIsUtf8(value);
785-
786802
service_ = value;
803+
bitField0_ |= 0x00000001;
787804
onChanged();
788805
return this;
789806
}
@@ -792,10 +809,10 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) {
792809
java.util.Collections.emptyList();
793810

794811
private void ensureAuditLogConfigsIsMutable() {
795-
if (!((bitField0_ & 0x00000001) != 0)) {
812+
if (!((bitField0_ & 0x00000002) != 0)) {
796813
auditLogConfigs_ =
797814
new java.util.ArrayList<com.google.iam.v1.AuditLogConfig>(auditLogConfigs_);
798-
bitField0_ |= 0x00000001;
815+
bitField0_ |= 0x00000002;
799816
}
800817
}
801818

@@ -1010,7 +1027,7 @@ public Builder addAllAuditLogConfigs(
10101027
public Builder clearAuditLogConfigs() {
10111028
if (auditLogConfigsBuilder_ == null) {
10121029
auditLogConfigs_ = java.util.Collections.emptyList();
1013-
bitField0_ = (bitField0_ & ~0x00000001);
1030+
bitField0_ = (bitField0_ & ~0x00000002);
10141031
onChanged();
10151032
} else {
10161033
auditLogConfigsBuilder_.clear();
@@ -1133,7 +1150,7 @@ public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder(int in
11331150
com.google.iam.v1.AuditLogConfig.Builder,
11341151
com.google.iam.v1.AuditLogConfigOrBuilder>(
11351152
auditLogConfigs_,
1136-
((bitField0_ & 0x00000001) != 0),
1153+
((bitField0_ & 0x00000002) != 0),
11371154
getParentForChildren(),
11381155
isClean());
11391156
auditLogConfigs_ = null;

0 commit comments

Comments
 (0)