Skip to content

Commit 053b454

Browse files
chore: [iam,iam] set packed = false on field_behavior extension (#2435)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 604675854 Source-Link: googleapis/googleapis@42c04fe Source-Link: https://github.com/googleapis/googleapis-gen/commit/a1ed8a97a00d02fe456f6ebd4160c5b2b000ad75 Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6ImExZWQ4YTk3YTAwZDAyZmU0NTZmNmViZDQxNjBjNWIyYjAwMGFkNzUifQ== chore: set packed = false on field_behavior extension PiperOrigin-RevId: 604675854 Source-Link: googleapis/googleapis@42c04fe Source-Link: https://github.com/googleapis/googleapis-gen/commit/a1ed8a97a00d02fe456f6ebd4160c5b2b000ad75 Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6ImExZWQ4YTk3YTAwZDAyZmU0NTZmNmViZDQxNjBjNWIyYjAwMGFkNzUifQ== build: Update protobuf to 25.2 in WORKSPACE build: Update grpc to 1.60.0 in WORKSPACE build: Remove pin for boringssl in WORKSPACE build: Update bazel to 6.3.0 in .bazeliskrc PiperOrigin-RevId: 603226138 Source-Link: googleapis/googleapis@2aec9e1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e9a5c2ef37b4d69c93e39141d87aae0b193c00b1 Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6ImU5YTVjMmVmMzdiNGQ2OWM5M2UzOTE0MWQ4N2FhZTBiMTkzYzAwYjEifQ== build: Update protobuf to 25.2 in WORKSPACE build: Update grpc to 1.60.0 in WORKSPACE build: Remove pin for boringssl in WORKSPACE build: Update bazel to 6.3.0 in .bazeliskrc PiperOrigin-RevId: 603226138 Source-Link: googleapis/googleapis@2aec9e1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e9a5c2ef37b4d69c93e39141d87aae0b193c00b1 Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6ImU5YTVjMmVmMzdiNGQ2OWM5M2UzOTE0MWQ4N2FhZTBiMTkzYzAwYjEifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Alice <[email protected]>
1 parent 349a5d3 commit 053b454

File tree

71 files changed

+554
-246
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+554
-246
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/iam/v1/policy.proto
1818

19+
// Protobuf Java Version: 3.25.2
1920
package com.google.iam.v1;
2021

2122
/**

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

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/iam/v1/policy.proto
1818

19+
// Protobuf Java Version: 3.25.2
1920
package com.google.iam.v1;
2021

2122
/**

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

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/iam/v1/policy.proto
1818

19+
// Protobuf Java Version: 3.25.2
1920
package com.google.iam.v1;
2021

2122
public interface AuditConfigDeltaOrBuilder

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

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/iam/v1/policy.proto
1818

19+
// Protobuf Java Version: 3.25.2
1920
package com.google.iam.v1;
2021

2122
public interface AuditConfigOrBuilder

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

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/iam/v1/policy.proto
1818

19+
// Protobuf Java Version: 3.25.2
1920
package com.google.iam.v1;
2021

2122
/**

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

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/iam/v1/policy.proto
1818

19+
// Protobuf Java Version: 3.25.2
1920
package com.google.iam.v1;
2021

2122
public interface AuditLogConfigOrBuilder

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

+22-6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/iam/v1/policy.proto
1818

19+
// Protobuf Java Version: 3.25.2
1920
package com.google.iam.v1;
2021

2122
/**
@@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
6061
com.google.iam.v1.Binding.class, com.google.iam.v1.Binding.Builder.class);
6162
}
6263

64+
private int bitField0_;
6365
public static final int ROLE_FIELD_NUMBER = 1;
6466

6567
@SuppressWarnings("serial")
@@ -367,7 +369,7 @@ public com.google.protobuf.ByteString getMembersBytes(int index) {
367369
*/
368370
@java.lang.Override
369371
public boolean hasCondition() {
370-
return condition_ != null;
372+
return ((bitField0_ & 0x00000001) != 0);
371373
}
372374
/**
373375
*
@@ -440,7 +442,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
440442
for (int i = 0; i < members_.size(); i++) {
441443
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, members_.getRaw(i));
442444
}
443-
if (condition_ != null) {
445+
if (((bitField0_ & 0x00000001) != 0)) {
444446
output.writeMessage(3, getCondition());
445447
}
446448
getUnknownFields().writeTo(output);
@@ -463,7 +465,7 @@ public int getSerializedSize() {
463465
size += dataSize;
464466
size += 1 * getMembersList().size();
465467
}
466-
if (condition_ != null) {
468+
if (((bitField0_ & 0x00000001) != 0)) {
467469
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCondition());
468470
}
469471
size += getUnknownFields().getSerializedSize();
@@ -633,10 +635,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
633635
}
634636

635637
// Construct using com.google.iam.v1.Binding.newBuilder()
636-
private Builder() {}
638+
private Builder() {
639+
maybeForceBuilderInitialization();
640+
}
637641

638642
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
639643
super(parent);
644+
maybeForceBuilderInitialization();
645+
}
646+
647+
private void maybeForceBuilderInitialization() {
648+
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
649+
getConditionFieldBuilder();
650+
}
640651
}
641652

642653
@java.lang.Override
@@ -691,9 +702,12 @@ private void buildPartial0(com.google.iam.v1.Binding result) {
691702
members_.makeImmutable();
692703
result.members_ = members_;
693704
}
705+
int to_bitField0_ = 0;
694706
if (((from_bitField0_ & 0x00000004) != 0)) {
695707
result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build();
708+
to_bitField0_ |= 0x00000001;
696709
}
710+
result.bitField0_ |= to_bitField0_;
697711
}
698712

699713
@java.lang.Override
@@ -1630,8 +1644,10 @@ public Builder mergeCondition(com.google.type.Expr value) {
16301644
} else {
16311645
conditionBuilder_.mergeFrom(value);
16321646
}
1633-
bitField0_ |= 0x00000004;
1634-
onChanged();
1647+
if (condition_ != null) {
1648+
bitField0_ |= 0x00000004;
1649+
onChanged();
1650+
}
16351651
return this;
16361652
}
16371653
/**

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

+22-6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/iam/v1/policy.proto
1818

19+
// Protobuf Java Version: 3.25.2
1920
package com.google.iam.v1;
2021

2122
/**
@@ -220,6 +221,7 @@ private Action(int value) {
220221
// @@protoc_insertion_point(enum_scope:google.iam.v1.BindingDelta.Action)
221222
}
222223

224+
private int bitField0_;
223225
public static final int ACTION_FIELD_NUMBER = 1;
224226
private int action_ = 0;
225227
/**
@@ -382,7 +384,7 @@ public com.google.protobuf.ByteString getMemberBytes() {
382384
*/
383385
@java.lang.Override
384386
public boolean hasCondition() {
385-
return condition_ != null;
387+
return ((bitField0_ & 0x00000001) != 0);
386388
}
387389
/**
388390
*
@@ -436,7 +438,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
436438
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(member_)) {
437439
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, member_);
438440
}
439-
if (condition_ != null) {
441+
if (((bitField0_ & 0x00000001) != 0)) {
440442
output.writeMessage(4, getCondition());
441443
}
442444
getUnknownFields().writeTo(output);
@@ -457,7 +459,7 @@ public int getSerializedSize() {
457459
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(member_)) {
458460
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, member_);
459461
}
460-
if (condition_ != null) {
462+
if (((bitField0_ & 0x00000001) != 0)) {
461463
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCondition());
462464
}
463465
size += getUnknownFields().getSerializedSize();
@@ -630,10 +632,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
630632
}
631633

632634
// Construct using com.google.iam.v1.BindingDelta.newBuilder()
633-
private Builder() {}
635+
private Builder() {
636+
maybeForceBuilderInitialization();
637+
}
634638

635639
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
636640
super(parent);
641+
maybeForceBuilderInitialization();
642+
}
643+
644+
private void maybeForceBuilderInitialization() {
645+
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
646+
getConditionFieldBuilder();
647+
}
637648
}
638649

639650
@java.lang.Override
@@ -691,9 +702,12 @@ private void buildPartial0(com.google.iam.v1.BindingDelta result) {
691702
if (((from_bitField0_ & 0x00000004) != 0)) {
692703
result.member_ = member_;
693704
}
705+
int to_bitField0_ = 0;
694706
if (((from_bitField0_ & 0x00000008) != 0)) {
695707
result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build();
708+
to_bitField0_ |= 0x00000001;
696709
}
710+
result.bitField0_ |= to_bitField0_;
697711
}
698712

699713
@java.lang.Override
@@ -1251,8 +1265,10 @@ public Builder mergeCondition(com.google.type.Expr value) {
12511265
} else {
12521266
conditionBuilder_.mergeFrom(value);
12531267
}
1254-
bitField0_ |= 0x00000008;
1255-
onChanged();
1268+
if (condition_ != null) {
1269+
bitField0_ |= 0x00000008;
1270+
onChanged();
1271+
}
12561272
return this;
12571273
}
12581274
/**

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

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/iam/v1/policy.proto
1818

19+
// Protobuf Java Version: 3.25.2
1920
package com.google.iam.v1;
2021

2122
public interface BindingDeltaOrBuilder

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

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/iam/v1/policy.proto
1818

19+
// Protobuf Java Version: 3.25.2
1920
package com.google.iam.v1;
2021

2122
public interface BindingOrBuilder

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

+22-6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/iam/v1/iam_policy.proto
1818

19+
// Protobuf Java Version: 3.25.2
1920
package com.google.iam.v1;
2021

2122
/**
@@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
6263
com.google.iam.v1.GetIamPolicyRequest.Builder.class);
6364
}
6465

66+
private int bitField0_;
6567
public static final int RESOURCE_FIELD_NUMBER = 1;
6668

6769
@SuppressWarnings("serial")
@@ -135,7 +137,7 @@ public com.google.protobuf.ByteString getResourceBytes() {
135137
*/
136138
@java.lang.Override
137139
public boolean hasOptions() {
138-
return options_ != null;
140+
return ((bitField0_ & 0x00000001) != 0);
139141
}
140142
/**
141143
*
@@ -185,7 +187,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
185187
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) {
186188
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
187189
}
188-
if (options_ != null) {
190+
if (((bitField0_ & 0x00000001) != 0)) {
189191
output.writeMessage(2, getOptions());
190192
}
191193
getUnknownFields().writeTo(output);
@@ -200,7 +202,7 @@ public int getSerializedSize() {
200202
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) {
201203
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_);
202204
}
203-
if (options_ != null) {
205+
if (((bitField0_ & 0x00000001) != 0)) {
204206
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOptions());
205207
}
206208
size += getUnknownFields().getSerializedSize();
@@ -368,10 +370,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
368370
}
369371

370372
// Construct using com.google.iam.v1.GetIamPolicyRequest.newBuilder()
371-
private Builder() {}
373+
private Builder() {
374+
maybeForceBuilderInitialization();
375+
}
372376

373377
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
374378
super(parent);
379+
maybeForceBuilderInitialization();
380+
}
381+
382+
private void maybeForceBuilderInitialization() {
383+
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
384+
getOptionsFieldBuilder();
385+
}
375386
}
376387

377388
@java.lang.Override
@@ -423,9 +434,12 @@ private void buildPartial0(com.google.iam.v1.GetIamPolicyRequest result) {
423434
if (((from_bitField0_ & 0x00000001) != 0)) {
424435
result.resource_ = resource_;
425436
}
437+
int to_bitField0_ = 0;
426438
if (((from_bitField0_ & 0x00000002) != 0)) {
427439
result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.build();
440+
to_bitField0_ |= 0x00000001;
428441
}
442+
result.bitField0_ |= to_bitField0_;
429443
}
430444

431445
@java.lang.Override
@@ -766,8 +780,10 @@ public Builder mergeOptions(com.google.iam.v1.GetPolicyOptions value) {
766780
} else {
767781
optionsBuilder_.mergeFrom(value);
768782
}
769-
bitField0_ |= 0x00000002;
770-
onChanged();
783+
if (options_ != null) {
784+
bitField0_ |= 0x00000002;
785+
onChanged();
786+
}
771787
return this;
772788
}
773789
/**

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

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/iam/v1/iam_policy.proto
1818

19+
// Protobuf Java Version: 3.25.2
1920
package com.google.iam.v1;
2021

2122
public interface GetIamPolicyRequestOrBuilder

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

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/iam/v1/options.proto
1818

19+
// Protobuf Java Version: 3.25.2
1920
package com.google.iam.v1;
2021

2122
/**

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

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/iam/v1/options.proto
1818

19+
// Protobuf Java Version: 3.25.2
1920
package com.google.iam.v1;
2021

2122
public interface GetPolicyOptionsOrBuilder

0 commit comments

Comments
 (0)