16
16
// Generated by the protocol buffer compiler. DO NOT EDIT!
17
17
// source: google/iam/v1/iam_policy.proto
18
18
19
+ // Protobuf Java Version: 3.25.2
19
20
package com .google .iam .v1 ;
20
21
21
22
/**
@@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
62
63
com .google .iam .v1 .GetIamPolicyRequest .Builder .class );
63
64
}
64
65
66
+ private int bitField0_ ;
65
67
public static final int RESOURCE_FIELD_NUMBER = 1 ;
66
68
67
69
@ SuppressWarnings ("serial" )
@@ -135,7 +137,7 @@ public com.google.protobuf.ByteString getResourceBytes() {
135
137
*/
136
138
@ java .lang .Override
137
139
public boolean hasOptions () {
138
- return options_ != null ;
140
+ return (( bitField0_ & 0x00000001 ) != 0 ) ;
139
141
}
140
142
/**
141
143
*
@@ -185,7 +187,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
185
187
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (resource_ )) {
186
188
com .google .protobuf .GeneratedMessageV3 .writeString (output , 1 , resource_ );
187
189
}
188
- if (options_ != null ) {
190
+ if ((( bitField0_ & 0x00000001 ) != 0 ) ) {
189
191
output .writeMessage (2 , getOptions ());
190
192
}
191
193
getUnknownFields ().writeTo (output );
@@ -200,7 +202,7 @@ public int getSerializedSize() {
200
202
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (resource_ )) {
201
203
size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (1 , resource_ );
202
204
}
203
- if (options_ != null ) {
205
+ if ((( bitField0_ & 0x00000001 ) != 0 ) ) {
204
206
size += com .google .protobuf .CodedOutputStream .computeMessageSize (2 , getOptions ());
205
207
}
206
208
size += getUnknownFields ().getSerializedSize ();
@@ -368,10 +370,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
368
370
}
369
371
370
372
// Construct using com.google.iam.v1.GetIamPolicyRequest.newBuilder()
371
- private Builder () {}
373
+ private Builder () {
374
+ maybeForceBuilderInitialization ();
375
+ }
372
376
373
377
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
374
378
super (parent );
379
+ maybeForceBuilderInitialization ();
380
+ }
381
+
382
+ private void maybeForceBuilderInitialization () {
383
+ if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {
384
+ getOptionsFieldBuilder ();
385
+ }
375
386
}
376
387
377
388
@ java .lang .Override
@@ -423,9 +434,12 @@ private void buildPartial0(com.google.iam.v1.GetIamPolicyRequest result) {
423
434
if (((from_bitField0_ & 0x00000001 ) != 0 )) {
424
435
result .resource_ = resource_ ;
425
436
}
437
+ int to_bitField0_ = 0 ;
426
438
if (((from_bitField0_ & 0x00000002 ) != 0 )) {
427
439
result .options_ = optionsBuilder_ == null ? options_ : optionsBuilder_ .build ();
440
+ to_bitField0_ |= 0x00000001 ;
428
441
}
442
+ result .bitField0_ |= to_bitField0_ ;
429
443
}
430
444
431
445
@ java .lang .Override
@@ -766,8 +780,10 @@ public Builder mergeOptions(com.google.iam.v1.GetPolicyOptions value) {
766
780
} else {
767
781
optionsBuilder_ .mergeFrom (value );
768
782
}
769
- bitField0_ |= 0x00000002 ;
770
- onChanged ();
783
+ if (options_ != null ) {
784
+ bitField0_ |= 0x00000002 ;
785
+ onChanged ();
786
+ }
771
787
return this ;
772
788
}
773
789
/**
0 commit comments