diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java index fac6f574fe..b0b0aaca1e 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java index 440dab63d8..69e1164bd4 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java index e1bea6c244..f9aeb38635 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface AuditConfigDeltaOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java index 06911aaf2b..9a6b3b15b5 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface AuditConfigOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java index 1e5f85f7a9..236a141e97 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java index 4025472975..c313f23210 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface AuditLogConfigOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java index 778f23ff58..17e69c5ff0 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v1.Binding.class, com.google.iam.v1.Binding.Builder.class); } + private int bitField0_; public static final int ROLE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -367,7 +369,7 @@ public com.google.protobuf.ByteString getMembersBytes(int index) { */ @java.lang.Override public boolean hasCondition() { - return condition_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -440,7 +442,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < members_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, members_.getRaw(i)); } - if (condition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getCondition()); } getUnknownFields().writeTo(output); @@ -463,7 +465,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getMembersList().size(); } - if (condition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCondition()); } size += getUnknownFields().getSerializedSize(); @@ -633,10 +635,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v1.Binding.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConditionFieldBuilder(); + } } @java.lang.Override @@ -691,9 +702,12 @@ private void buildPartial0(com.google.iam.v1.Binding result) { members_.makeImmutable(); result.members_ = members_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1630,8 +1644,10 @@ public Builder mergeCondition(com.google.type.Expr value) { } else { conditionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (condition_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java index 3474c4b814..1c93c13bfb 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** @@ -220,6 +221,7 @@ private Action(int value) { // @@protoc_insertion_point(enum_scope:google.iam.v1.BindingDelta.Action) } + private int bitField0_; public static final int ACTION_FIELD_NUMBER = 1; private int action_ = 0; /** @@ -382,7 +384,7 @@ public com.google.protobuf.ByteString getMemberBytes() { */ @java.lang.Override public boolean hasCondition() { - return condition_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -436,7 +438,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(member_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, member_); } - if (condition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getCondition()); } getUnknownFields().writeTo(output); @@ -457,7 +459,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(member_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, member_); } - if (condition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCondition()); } size += getUnknownFields().getSerializedSize(); @@ -630,10 +632,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v1.BindingDelta.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConditionFieldBuilder(); + } } @java.lang.Override @@ -691,9 +702,12 @@ private void buildPartial0(com.google.iam.v1.BindingDelta result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.member_ = member_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1251,8 +1265,10 @@ public Builder mergeCondition(com.google.type.Expr value) { } else { conditionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (condition_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java index 19c3c51200..b76744913f 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface BindingDeltaOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java index 3210a84fa6..c6f2fafbef 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface BindingOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java index 0de2f70543..1c94f5957b 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v1.GetIamPolicyRequest.Builder.class); } + private int bitField0_; public static final int RESOURCE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -135,7 +137,7 @@ public com.google.protobuf.ByteString getResourceBytes() { */ @java.lang.Override public boolean hasOptions() { - return options_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -185,7 +187,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } - if (options_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getOptions()); } getUnknownFields().writeTo(output); @@ -200,7 +202,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); } - if (options_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOptions()); } size += getUnknownFields().getSerializedSize(); @@ -368,10 +370,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v1.GetIamPolicyRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOptionsFieldBuilder(); + } } @java.lang.Override @@ -423,9 +434,12 @@ private void buildPartial0(com.google.iam.v1.GetIamPolicyRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.resource_ = resource_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -766,8 +780,10 @@ public Builder mergeOptions(com.google.iam.v1.GetPolicyOptions value) { } else { optionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (options_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java index 5f90592d42..efa95ef76d 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface GetIamPolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java index e35ffbc58c..8e8e71c9b5 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/options.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java index e93425ad57..b7dcd6b3cd 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/options.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface GetPolicyOptionsOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java index a61d0e275d..29b08f3bb0 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public final class IamPolicyProto { @@ -58,31 +59,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_behavior.proto\032\031google/api/resource.pro" + "to\032\033google/iam/v1/options.proto\032\032google/" + "iam/v1/policy.proto\032 google/protobuf/fie" - + "ld_mask.proto\"\221\001\n\023SetIamPolicyRequest\022\034\n" - + "\010resource\030\001 \001(\tB\n\342A\001\002\372A\003\n\001*\022+\n\006policy\030\002 " - + "\001(\0132\025.google.iam.v1.PolicyB\004\342A\001\002\022/\n\013upda" - + "te_mask\030\003 \001(\0132\032.google.protobuf.FieldMas" - + "k\"e\n\023GetIamPolicyRequest\022\034\n\010resource\030\001 \001" - + "(\tB\n\342A\001\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google" - + ".iam.v1.GetPolicyOptions\"T\n\031TestIamPermi" - + "ssionsRequest\022\034\n\010resource\030\001 \001(\tB\n\342A\001\002\372A\003" - + "\n\001*\022\031\n\013permissions\030\002 \003(\tB\004\342A\001\002\"1\n\032TestIa" - + "mPermissionsResponse\022\023\n\013permissions\030\001 \003(" - + "\t2\264\003\n\tIAMPolicy\022t\n\014SetIamPolicy\022\".google" - + ".iam.v1.SetIamPolicyRequest\032\025.google.iam" - + ".v1.Policy\")\202\323\344\223\002#\"\036/v1/{resource=**}:se" - + "tIamPolicy:\001*\022t\n\014GetIamPolicy\022\".google.i" - + "am.v1.GetIamPolicyRequest\032\025.google.iam.v" - + "1.Policy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getI" - + "amPolicy:\001*\022\232\001\n\022TestIamPermissions\022(.goo" - + "gle.iam.v1.TestIamPermissionsRequest\032).g" - + "oogle.iam.v1.TestIamPermissionsResponse\"" - + "/\202\323\344\223\002)\"$/v1/{resource=**}:testIamPermis" - + "sions:\001*\032\036\312A\033iam-meta-api.googleapis.com" - + "B\177\n\021com.google.iam.v1B\016IamPolicyProtoP\001Z" - + ")cloud.google.com/go/iam/apiv1/iampb;iam" - + "pb\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Clo" - + "ud\\Iam\\V1b\006proto3" + + "ld_mask.proto\"\217\001\n\023SetIamPolicyRequest\022\033\n" + + "\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022*\n\006policy\030\002 \001" + + "(\0132\025.google.iam.v1.PolicyB\003\340A\002\022/\n\013update" + + "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"" + + "d\n\023GetIamPolicyRequest\022\033\n\010resource\030\001 \001(\t" + + "B\t\340A\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google.ia" + + "m.v1.GetPolicyOptions\"R\n\031TestIamPermissi" + + "onsRequest\022\033\n\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022" + + "\030\n\013permissions\030\002 \003(\tB\003\340A\002\"1\n\032TestIamPerm" + + "issionsResponse\022\023\n\013permissions\030\001 \003(\t2\264\003\n" + + "\tIAMPolicy\022t\n\014SetIamPolicy\022\".google.iam." + + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" + + "olicy\")\202\323\344\223\002#\"\036/v1/{resource=**}:setIamP" + + "olicy:\001*\022t\n\014GetIamPolicy\022\".google.iam.v1" + + ".GetIamPolicyRequest\032\025.google.iam.v1.Pol" + + "icy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getIamPol" + + "icy:\001*\022\232\001\n\022TestIamPermissions\022(.google.i" + + "am.v1.TestIamPermissionsRequest\032).google" + + ".iam.v1.TestIamPermissionsResponse\"/\202\323\344\223" + + "\002)\"$/v1/{resource=**}:testIamPermissions" + + ":\001*\032\036\312A\033iam-meta-api.googleapis.comB\177\n\021c" + + "om.google.iam.v1B\016IamPolicyProtoP\001Z)clou" + + "d.google.com/go/iam/apiv1/iampb;iampb\370\001\001" + + "\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud\\Ia" + + "m\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java index 9f6acfc563..7d66e302b2 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/options.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public final class OptionsProto { diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java index f083596f44..e6525d22c3 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java index 0bb05d202a..67b9e25988 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java index fd3e1c0ddc..2682ceaa9b 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface PolicyDeltaOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java index 2039d3792a..ab84de9cd6 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface PolicyOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java index 13ad10267e..1b5726937d 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public final class PolicyProto { diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java index 791d082320..d5d97a66e1 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v1.SetIamPolicyRequest.Builder.class); } + private int bitField0_; public static final int RESOURCE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -137,7 +139,7 @@ public com.google.protobuf.ByteString getResourceBytes() { */ @java.lang.Override public boolean hasPolicy() { - return policy_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -193,7 +195,7 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -249,10 +251,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPolicy()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getUpdateMask()); } getUnknownFields().writeTo(output); @@ -267,10 +269,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); } - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); @@ -446,10 +448,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v1.SetIamPolicyRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPolicyFieldBuilder(); + getUpdateMaskFieldBuilder(); + } } @java.lang.Override @@ -506,12 +518,16 @@ private void buildPartial0(com.google.iam.v1.SetIamPolicyRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.resource_ = resource_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -869,8 +885,10 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { } else { policyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (policy_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1081,8 +1099,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (updateMask_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java index b7c42c8855..2d3c2734e0 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface SetIamPolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java index 6f976b91d9..692d4dd982 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java index 53b56f2781..3a5236284c 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface TestIamPermissionsRequestOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java index 5aa85996b5..93d6e4c9c5 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java index da677cbe54..27a9066426 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface TestIamPermissionsResponseOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java index aebfd03e94..30828b2591 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2.CreatePolicyRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -149,7 +151,7 @@ public com.google.protobuf.ByteString getParentBytes() { */ @java.lang.Override public boolean hasPolicy() { - return policy_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -254,7 +256,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyId_)) { @@ -272,7 +274,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyId_)) { @@ -446,10 +448,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2.CreatePolicyRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPolicyFieldBuilder(); + } } @java.lang.Override @@ -502,12 +513,15 @@ private void buildPartial0(com.google.iam.v2.CreatePolicyRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.policyId_ = policyId_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -887,8 +901,10 @@ public Builder mergePolicy(com.google.iam.v2.Policy value) { } else { policyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (policy_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java index 750931920c..d0f692435f 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface CreatePolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java index da614d7f5d..93d838121e 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java index 16a7afe664..c69dd95e58 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface DeletePolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java index b2c67c6e00..e24a4c0f15 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/deny.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2.DenyRule.class, com.google.iam.v2.DenyRule.Builder.class); } + private int bitField0_; public static final int DENIED_PRINCIPALS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -563,7 +565,7 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { */ @java.lang.Override public boolean hasDenialCondition() { - return denialCondition_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -641,7 +643,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString( output, 4, exceptionPermissions_.getRaw(i)); } - if (denialCondition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getDenialCondition()); } getUnknownFields().writeTo(output); @@ -685,7 +687,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getExceptionPermissionsList().size(); } - if (denialCondition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDenialCondition()); } size += getUnknownFields().getSerializedSize(); @@ -868,10 +870,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2.DenyRule.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDenialConditionFieldBuilder(); + } } @java.lang.Override @@ -937,10 +948,13 @@ private void buildPartial0(com.google.iam.v2.DenyRule result) { exceptionPermissions_.makeImmutable(); result.exceptionPermissions_ = exceptionPermissions_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.denialCondition_ = denialConditionBuilder_ == null ? denialCondition_ : denialConditionBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2451,8 +2465,10 @@ public Builder mergeDenialCondition(com.google.type.Expr value) { } else { denialConditionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (denialCondition_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java index cb8dd9758c..e2551f3e75 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/deny.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface DenyRuleOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java index fbe8dc3714..4b9b73d966 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/deny.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public final class DenyRuleProto { diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java index 77cc07fc1b..eab2ddc328 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java index 4756f85ed0..739fa7f84e 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface GetPolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java index c73842ac23..5c9d450d59 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java index 45bde87af8..5b466283af 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface ListPoliciesRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java index 12b0194f2a..f8b752043d 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java index 1faeb31cfb..b737d57d25 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface ListPoliciesResponseOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java index 050d80fdb2..d5a747ef61 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** @@ -59,7 +60,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 5: return internalGetAnnotations(); @@ -76,6 +78,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.iam.v2.Policy.class, com.google.iam.v2.Policy.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -490,7 +493,7 @@ public com.google.protobuf.ByteString getEtagBytes() { */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -539,7 +542,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return updateTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -588,7 +591,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { */ @java.lang.Override public boolean hasDeleteTime() { - return deleteTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -780,13 +783,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getCreateTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getUpdateTime()); } - if (deleteTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(9, getDeleteTime()); } for (int i = 0; i < rules_.size(); i++) { @@ -829,13 +832,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } - if (deleteTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDeleteTime()); } for (int i = 0; i < rules_.size(); i++) { @@ -1039,7 +1042,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 5: return internalGetAnnotations(); @@ -1049,7 +1053,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 5: return internalGetMutableAnnotations(); @@ -1067,10 +1072,22 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.iam.v2.Policy.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getDeleteTimeFieldBuilder(); + getRulesFieldBuilder(); + } } @java.lang.Override @@ -1172,18 +1189,23 @@ private void buildPartial0(com.google.iam.v2.Policy result) { if (((from_bitField0_ & 0x00000020) != 0)) { result.etag_ = etag_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000040) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000080) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000400) != 0)) { result.managingAuthority_ = managingAuthority_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2327,8 +2349,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** @@ -2528,8 +2552,10 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** @@ -2729,8 +2755,10 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { } else { deleteTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (deleteTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java index 1c91456cb8..11275b2b49 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2.PolicyOperationMetadata.Builder.class); } + private int bitField0_; public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** @@ -75,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -120,7 +122,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCreateTime()); } getUnknownFields().writeTo(output); @@ -132,7 +134,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } size += getUnknownFields().getSerializedSize(); @@ -299,10 +301,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2.PolicyOperationMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } } @java.lang.Override @@ -350,9 +361,12 @@ public com.google.iam.v2.PolicyOperationMetadata buildPartial() { private void buildPartial0(com.google.iam.v2.PolicyOperationMetadata result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -556,8 +570,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java index 902e8200cd..ebd4fddf0c 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface PolicyOperationMetadataOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java index 8e87db6374..a2d006d147 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface PolicyOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java index e8933f1a0c..2d6d2304aa 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public final class PolicyProto { @@ -81,59 +82,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e/api/client.proto\032\037google/api/field_beh" + "avior.proto\032\030google/iam/v2/deny.proto\032#g" + "oogle/longrunning/operations.proto\032\037goog" - + "le/protobuf/timestamp.proto\"\311\003\n\006Policy\022\022" - + "\n\004name\030\001 \001(\tB\004\342A\001\005\022\021\n\003uid\030\002 \001(\tB\004\342A\001\005\022\022\n" - + "\004kind\030\003 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\004 \001(\t\022" - + ";\n\013annotations\030\005 \003(\0132&.google.iam.v2.Pol" - + "icy.AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0225\n\013cr" - + "eate_time\030\007 \001(\0132\032.google.protobuf.Timest" - + "ampB\004\342A\001\003\0225\n\013update_time\030\010 \001(\0132\032.google." - + "protobuf.TimestampB\004\342A\001\003\0225\n\013delete_time\030" - + "\t \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" - + "(\n\005rules\030\n \003(\0132\031.google.iam.v2.PolicyRul" - + "e\022 \n\022managing_authority\030\013 \001(\tB\004\342A\001\005\0322\n\020A" - + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\"W\n\nPolicyRule\022,\n\tdeny_rule\030\002 \001(\013" - + "2\027.google.iam.v2.DenyRuleH\000\022\023\n\013descripti" - + "on\030\001 \001(\tB\006\n\004kind\"R\n\023ListPoliciesRequest\022" - + "\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005" - + "\022\022\n\npage_token\030\003 \001(\t\"X\n\024ListPoliciesResp" - + "onse\022\'\n\010policies\030\001 \003(\0132\025.google.iam.v2.P" - + "olicy\022\027\n\017next_page_token\030\002 \001(\t\"&\n\020GetPol" - + "icyRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"k\n\023Create" - + "PolicyRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022+\n\006p" - + "olicy\030\002 \001(\0132\025.google.iam.v2.PolicyB\004\342A\001\002" - + "\022\021\n\tpolicy_id\030\003 \001(\t\"B\n\023UpdatePolicyReque" - + "st\022+\n\006policy\030\001 \001(\0132\025.google.iam.v2.Polic" - + "yB\004\342A\001\002\"=\n\023DeletePolicyRequest\022\022\n\004name\030\001" - + " \001(\tB\004\342A\001\002\022\022\n\004etag\030\002 \001(\tB\004\342A\001\001\"J\n\027Policy" - + "OperationMetadata\022/\n\013create_time\030\001 \001(\0132\032" - + ".google.protobuf.Timestamp2\320\006\n\010Policies\022" - + "\203\001\n\014ListPolicies\022\".google.iam.v2.ListPol" - + "iciesRequest\032#.google.iam.v2.ListPolicie" - + "sResponse\"*\332A\006parent\202\323\344\223\002\033\022\031/v2/{parent=" - + "policies/*/*}\022m\n\tGetPolicy\022\037.google.iam." - + "v2.GetPolicyRequest\032\025.google.iam.v2.Poli" - + "cy\"(\332A\004name\202\323\344\223\002\033\022\031/v2/{name=policies/*/" - + "*/*}\022\272\001\n\014CreatePolicy\022\".google.iam.v2.Cr" - + "eatePolicyRequest\032\035.google.longrunning.O" - + "peration\"g\312A!\n\006Policy\022\027PolicyOperationMe" - + "tadata\332A\027parent,policy,policy_id\202\323\344\223\002#\"\031" - + "/v2/{parent=policies/*/*}:\006policy\022\247\001\n\014Up" - + "datePolicy\022\".google.iam.v2.UpdatePolicyR" - + "equest\032\035.google.longrunning.Operation\"T\312" - + "A!\n\006Policy\022\027PolicyOperationMetadata\202\323\344\223\002" - + "*\032 /v2/{policy.name=policies/*/*/*}:\006pol" - + "icy\022\237\001\n\014DeletePolicy\022\".google.iam.v2.Del" - + "etePolicyRequest\032\035.google.longrunning.Op" - + "eration\"L\312A!\n\006Policy\022\027PolicyOperationMet" - + "adata\332A\004name\202\323\344\223\002\033*\031/v2/{name=policies/*" - + "/*/*}\032F\312A\022iam.googleapis.com\322A.https://w" - + "ww.googleapis.com/auth/cloud-platformBy\n" - + "\021com.google.iam.v2B\013PolicyProtoP\001Z)cloud" - + ".google.com/go/iam/apiv2/iampb;iampb\252\002\023G" - + "oogle.Cloud.Iam.V2\312\002\023Google\\Cloud\\Iam\\V2" - + "b\006proto3" + + "le/protobuf/timestamp.proto\"\302\003\n\006Policy\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001(\tB\003\340A\005\022\021\n\004k" + + "ind\030\003 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(\t\022;\n\013" + + "annotations\030\005 \003(\0132&.google.iam.v2.Policy" + + ".AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0224\n\013creat" + + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022(\n\005rul" + + "es\030\n \003(\0132\031.google.iam.v2.PolicyRule\022\037\n\022m" + + "anaging_authority\030\013 \001(\tB\003\340A\005\0322\n\020Annotati" + + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"W\n\nPolicyRule\022,\n\tdeny_rule\030\002 \001(\0132\027.goog" + + "le.iam.v2.DenyRuleH\000\022\023\n\013description\030\001 \001(" + + "\tB\006\n\004kind\"Q\n\023ListPoliciesRequest\022\023\n\006pare" + + "nt\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\"X\n\024ListPoliciesResponse\022\'\n\010" + + "policies\030\001 \003(\0132\025.google.iam.v2.Policy\022\027\n" + + "\017next_page_token\030\002 \001(\t\"%\n\020GetPolicyReque" + + "st\022\021\n\004name\030\001 \001(\tB\003\340A\002\"i\n\023CreatePolicyReq" + + "uest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022*\n\006policy\030\002 \001(" + + "\0132\025.google.iam.v2.PolicyB\003\340A\002\022\021\n\tpolicy_" + + "id\030\003 \001(\t\"A\n\023UpdatePolicyRequest\022*\n\006polic" + + "y\030\001 \001(\0132\025.google.iam.v2.PolicyB\003\340A\002\";\n\023D" + + "eletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMetad" + + "ata\022/\n\013create_time\030\001 \001(\0132\032.google.protob" + + "uf.Timestamp2\320\006\n\010Policies\022\203\001\n\014ListPolici" + + "es\022\".google.iam.v2.ListPoliciesRequest\032#" + + ".google.iam.v2.ListPoliciesResponse\"*\332A\006" + + "parent\202\323\344\223\002\033\022\031/v2/{parent=policies/*/*}\022" + + "m\n\tGetPolicy\022\037.google.iam.v2.GetPolicyRe" + + "quest\032\025.google.iam.v2.Policy\"(\332A\004name\202\323\344" + + "\223\002\033\022\031/v2/{name=policies/*/*/*}\022\272\001\n\014Creat" + + "ePolicy\022\".google.iam.v2.CreatePolicyRequ" + + "est\032\035.google.longrunning.Operation\"g\312A!\n" + + "\006Policy\022\027PolicyOperationMetadata\332A\027paren" + + "t,policy,policy_id\202\323\344\223\002#\"\031/v2/{parent=po" + + "licies/*/*}:\006policy\022\247\001\n\014UpdatePolicy\022\".g" + + "oogle.iam.v2.UpdatePolicyRequest\032\035.googl" + + "e.longrunning.Operation\"T\312A!\n\006Policy\022\027Po" + + "licyOperationMetadata\202\323\344\223\002*\032 /v2/{policy" + + ".name=policies/*/*/*}:\006policy\022\237\001\n\014Delete" + + "Policy\022\".google.iam.v2.DeletePolicyReque" + + "st\032\035.google.longrunning.Operation\"L\312A!\n\006" + + "Policy\022\027PolicyOperationMetadata\332A\004name\202\323" + + "\344\223\002\033*\031/v2/{name=policies/*/*/*}\032F\312A\022iam." + + "googleapis.com\322A.https://www.googleapis." + + "com/auth/cloud-platformBy\n\021com.google.ia" + + "m.v2B\013PolicyProtoP\001Z)cloud.google.com/go" + + "/iam/apiv2/iampb;iampb\252\002\023Google.Cloud.Ia" + + "m.V2\312\002\023Google\\Cloud\\Iam\\V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java index da2a6fce90..df1565d49f 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java index d3c32e76c7..8b45ef22c6 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface PolicyRuleOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java index c4de3e992b..a6f0e0dd23 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2.UpdatePolicyRequest.Builder.class); } + private int bitField0_; public static final int POLICY_FIELD_NUMBER = 1; private com.google.iam.v2.Policy policy_; /** @@ -79,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasPolicy() { - return policy_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -132,7 +134,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getPolicy()); } getUnknownFields().writeTo(output); @@ -144,7 +146,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy()); } size += getUnknownFields().getSerializedSize(); @@ -309,10 +311,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2.UpdatePolicyRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPolicyFieldBuilder(); + } } @java.lang.Override @@ -360,9 +371,12 @@ public com.google.iam.v2.UpdatePolicyRequest buildPartial() { private void buildPartial0(com.google.iam.v2.UpdatePolicyRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -584,8 +598,10 @@ public Builder mergePolicy(com.google.iam.v2.Policy value) { } else { policyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (policy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java index 3a26ee64ee..a101f37edc 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface UpdatePolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java index 8bfee5bdb3..2087ddaf05 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2beta.CreatePolicyRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -149,7 +151,7 @@ public com.google.protobuf.ByteString getParentBytes() { */ @java.lang.Override public boolean hasPolicy() { - return policy_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -254,7 +256,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyId_)) { @@ -272,7 +274,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyId_)) { @@ -448,10 +450,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2beta.CreatePolicyRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPolicyFieldBuilder(); + } } @java.lang.Override @@ -504,12 +515,15 @@ private void buildPartial0(com.google.iam.v2beta.CreatePolicyRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.policyId_ = policyId_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -889,8 +903,10 @@ public Builder mergePolicy(com.google.iam.v2beta.Policy value) { } else { policyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (policy_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java index 51a7e57106..5ef58e0d02 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface CreatePolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java index 45c3eece78..b03d51c0e2 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java index 101572706d..787b6b080b 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface DeletePolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java index c3e7ce1587..86eef3e734 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/deny.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2beta.DenyRule.class, com.google.iam.v2beta.DenyRule.Builder.class); } + private int bitField0_; public static final int DENIED_PRINCIPALS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -565,7 +567,7 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { */ @java.lang.Override public boolean hasDenialCondition() { - return denialCondition_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -643,7 +645,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString( output, 4, exceptionPermissions_.getRaw(i)); } - if (denialCondition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getDenialCondition()); } getUnknownFields().writeTo(output); @@ -687,7 +689,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getExceptionPermissionsList().size(); } - if (denialCondition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDenialCondition()); } size += getUnknownFields().getSerializedSize(); @@ -871,10 +873,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2beta.DenyRule.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDenialConditionFieldBuilder(); + } } @java.lang.Override @@ -941,10 +952,13 @@ private void buildPartial0(com.google.iam.v2beta.DenyRule result) { exceptionPermissions_.makeImmutable(); result.exceptionPermissions_ = exceptionPermissions_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.denialCondition_ = denialConditionBuilder_ == null ? denialCondition_ : denialConditionBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2455,8 +2469,10 @@ public Builder mergeDenialCondition(com.google.type.Expr value) { } else { denialConditionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (denialCondition_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java index 28e0b45b8f..2edcce635d 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/deny.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface DenyRuleOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java index 2f14e35670..d470f81c1f 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/deny.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public final class DenyRuleProto { diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java index dcf3497554..b261fd4dbc 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java index 589313315d..725c4a18b9 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface GetPolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java index d1e880b733..b82547064e 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java index 1370a31505..5f413fb349 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface ListPoliciesRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java index 7510ee8933..aa5abb4b96 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java index 51d88d35e0..e725ce5d8f 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface ListPoliciesResponseOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java index 2d50b0fedc..c08798b136 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** @@ -58,7 +59,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 5: return internalGetAnnotations(); @@ -76,6 +78,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.iam.v2beta.Policy.class, com.google.iam.v2beta.Policy.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -490,7 +493,7 @@ public com.google.protobuf.ByteString getEtagBytes() { */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -539,7 +542,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return updateTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -588,7 +591,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { */ @java.lang.Override public boolean hasDeleteTime() { - return deleteTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -728,13 +731,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getCreateTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getUpdateTime()); } - if (deleteTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(9, getDeleteTime()); } for (int i = 0; i < rules_.size(); i++) { @@ -774,13 +777,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } - if (deleteTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDeleteTime()); } for (int i = 0; i < rules_.size(); i++) { @@ -978,7 +981,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 5: return internalGetAnnotations(); @@ -988,7 +992,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 5: return internalGetMutableAnnotations(); @@ -1007,10 +1012,22 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.iam.v2beta.Policy.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getDeleteTimeFieldBuilder(); + getRulesFieldBuilder(); + } } @java.lang.Override @@ -1111,15 +1128,20 @@ private void buildPartial0(com.google.iam.v2beta.Policy result) { if (((from_bitField0_ & 0x00000020) != 0)) { result.etag_ = etag_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000040) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000080) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2252,8 +2274,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** @@ -2453,8 +2477,10 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** @@ -2654,8 +2680,10 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { } else { deleteTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (deleteTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java index aec75b94e9..2d63d51cf6 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2beta.PolicyOperationMetadata.Builder.class); } + private int bitField0_; public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** @@ -75,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -120,7 +122,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCreateTime()); } getUnknownFields().writeTo(output); @@ -132,7 +134,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } size += getUnknownFields().getSerializedSize(); @@ -299,10 +301,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2beta.PolicyOperationMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } } @java.lang.Override @@ -350,9 +361,12 @@ public com.google.iam.v2beta.PolicyOperationMetadata buildPartial() { private void buildPartial0(com.google.iam.v2beta.PolicyOperationMetadata result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -556,8 +570,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java index 11fc1dca82..c1e6ecfffa 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface PolicyOperationMetadataOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java index 2c6929cd7e..b3eb63526f 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface PolicyOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java index fab21840a2..3de619c15d 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public final class PolicyProto { @@ -82,59 +83,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ield_behavior.proto\032\034google/iam/v2beta/d" + "eny.proto\032#google/longrunning/operations" + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\257\003\n\006Policy\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\021\n\003uid\030\002 " - + "\001(\tB\004\342A\001\005\022\022\n\004kind\030\003 \001(\tB\004\342A\001\003\022\024\n\014display" - + "_name\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.googl" - + "e.iam.v2beta.Policy.AnnotationsEntry\022\014\n\004" - + "etag\030\006 \001(\t\0225\n\013create_time\030\007 \001(\0132\032.google" - + ".protobuf.TimestampB\004\342A\001\003\0225\n\013update_time" - + "\030\010 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" - + "\0225\n\013delete_time\030\t \001(\0132\032.google.protobuf." - + "TimestampB\004\342A\001\003\022,\n\005rules\030\n \003(\0132\035.google." - + "iam.v2beta.PolicyRule\0322\n\020AnnotationsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPol" - + "icyRule\0220\n\tdeny_rule\030\002 \001(\0132\033.google.iam." - + "v2beta.DenyRuleH\000\022\023\n\013description\030\001 \001(\tB\006" - + "\n\004kind\"R\n\023ListPoliciesRequest\022\024\n\006parent\030" - + "\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"\\\n\024ListPoliciesResponse\022+\n\010po" - + "licies\030\001 \003(\0132\031.google.iam.v2beta.Policy\022" - + "\027\n\017next_page_token\030\002 \001(\t\"&\n\020GetPolicyReq" - + "uest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"o\n\023CreatePolicy" - + "Request\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022/\n\006policy\030" - + "\002 \001(\0132\031.google.iam.v2beta.PolicyB\004\342A\001\002\022\021" - + "\n\tpolicy_id\030\003 \001(\t\"F\n\023UpdatePolicyRequest" - + "\022/\n\006policy\030\001 \001(\0132\031.google.iam.v2beta.Pol" - + "icyB\004\342A\001\002\"=\n\023DeletePolicyRequest\022\022\n\004name" - + "\030\001 \001(\tB\004\342A\001\002\022\022\n\004etag\030\002 \001(\tB\004\342A\001\001\"J\n\027Poli" - + "cyOperationMetadata\022/\n\013create_time\030\001 \001(\013" - + "2\032.google.protobuf.Timestamp2\200\007\n\010Policie" - + "s\022\217\001\n\014ListPolicies\022&.google.iam.v2beta.L" - + "istPoliciesRequest\032\'.google.iam.v2beta.L" - + "istPoliciesResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v" - + "2beta/{parent=policies/*/*}\022y\n\tGetPolicy" - + "\022#.google.iam.v2beta.GetPolicyRequest\032\031." - + "google.iam.v2beta.Policy\",\332A\004name\202\323\344\223\002\037\022" - + "\035/v2beta/{name=policies/*/*/*}\022\302\001\n\014Creat" - + "ePolicy\022&.google.iam.v2beta.CreatePolicy" - + "Request\032\035.google.longrunning.Operation\"k" - + "\312A!\n\006Policy\022\027PolicyOperationMetadata\332A\027p" - + "arent,policy,policy_id\202\323\344\223\002\'\"\035/v2beta/{p" - + "arent=policies/*/*}:\006policy\022\257\001\n\014UpdatePo" - + "licy\022&.google.iam.v2beta.UpdatePolicyReq" - + "uest\032\035.google.longrunning.Operation\"X\312A!" - + "\n\006Policy\022\027PolicyOperationMetadata\202\323\344\223\002.\032" - + "$/v2beta/{policy.name=policies/*/*/*}:\006p" - + "olicy\022\247\001\n\014DeletePolicy\022&.google.iam.v2be" - + "ta.DeletePolicyRequest\032\035.google.longrunn" - + "ing.Operation\"P\312A!\n\006Policy\022\027PolicyOperat" - + "ionMetadata\332A\004name\202\323\344\223\002\037*\035/v2beta/{name=" - + "policies/*/*/*}\032F\312A\022iam.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-p" - + "latformB\211\001\n\025com.google.iam.v2betaB\013Polic" - + "yProtoP\001Z-cloud.google.com/go/iam/apiv2b" - + "eta/iampb;iampb\252\002\027Google.Cloud.Iam.V2Bet" - + "a\312\002\027Google\\Cloud\\Iam\\V2betab\006proto3" + + "\251\003\n\006Policy\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001" + + "(\tB\003\340A\005\022\021\n\004kind\030\003 \001(\tB\003\340A\003\022\024\n\014display_na" + + "me\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.google.i" + + "am.v2beta.Policy.AnnotationsEntry\022\014\n\004eta" + + "g\030\006 \001(\t\0224\n\013create_time\030\007 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\010 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013d" + + "elete_time\030\t \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022,\n\005rules\030\n \003(\0132\035.google.iam.v2" + + "beta.PolicyRule\0322\n\020AnnotationsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPolicyRul" + + "e\0220\n\tdeny_rule\030\002 \001(\0132\033.google.iam.v2beta" + + ".DenyRuleH\000\022\023\n\013description\030\001 \001(\tB\006\n\004kind" + + "\"Q\n\023ListPoliciesRequest\022\023\n\006parent\030\001 \001(\tB" + + "\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"\\\n\024ListPoliciesResponse\022+\n\010policies\030" + + "\001 \003(\0132\031.google.iam.v2beta.Policy\022\027\n\017next" + + "_page_token\030\002 \001(\t\"%\n\020GetPolicyRequest\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\"m\n\023CreatePolicyRequest\022" + + "\023\n\006parent\030\001 \001(\tB\003\340A\002\022.\n\006policy\030\002 \001(\0132\031.g" + + "oogle.iam.v2beta.PolicyB\003\340A\002\022\021\n\tpolicy_i" + + "d\030\003 \001(\t\"E\n\023UpdatePolicyRequest\022.\n\006policy" + + "\030\001 \001(\0132\031.google.iam.v2beta.PolicyB\003\340A\002\";" + + "\n\023DeletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002" + + "\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMe" + + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" + + "tobuf.Timestamp2\200\007\n\010Policies\022\217\001\n\014ListPol" + + "icies\022&.google.iam.v2beta.ListPoliciesRe" + + "quest\032\'.google.iam.v2beta.ListPoliciesRe" + + "sponse\".\332A\006parent\202\323\344\223\002\037\022\035/v2beta/{parent" + + "=policies/*/*}\022y\n\tGetPolicy\022#.google.iam" + + ".v2beta.GetPolicyRequest\032\031.google.iam.v2" + + "beta.Policy\",\332A\004name\202\323\344\223\002\037\022\035/v2beta/{nam" + + "e=policies/*/*/*}\022\302\001\n\014CreatePolicy\022&.goo" + + "gle.iam.v2beta.CreatePolicyRequest\032\035.goo" + + "gle.longrunning.Operation\"k\312A!\n\006Policy\022\027" + + "PolicyOperationMetadata\332A\027parent,policy," + + "policy_id\202\323\344\223\002\'\"\035/v2beta/{parent=policie" + + "s/*/*}:\006policy\022\257\001\n\014UpdatePolicy\022&.google" + + ".iam.v2beta.UpdatePolicyRequest\032\035.google" + + ".longrunning.Operation\"X\312A!\n\006Policy\022\027Pol" + + "icyOperationMetadata\202\323\344\223\002.\032$/v2beta/{pol" + + "icy.name=policies/*/*/*}:\006policy\022\247\001\n\014Del" + + "etePolicy\022&.google.iam.v2beta.DeletePoli" + + "cyRequest\032\035.google.longrunning.Operation" + + "\"P\312A!\n\006Policy\022\027PolicyOperationMetadata\332A" + + "\004name\202\323\344\223\002\037*\035/v2beta/{name=policies/*/*/" + + "*}\032F\312A\022iam.googleapis.com\322A.https://www." + + "googleapis.com/auth/cloud-platformB\211\001\n\025c" + + "om.google.iam.v2betaB\013PolicyProtoP\001Z-clo" + + "ud.google.com/go/iam/apiv2beta/iampb;iam" + + "pb\252\002\027Google.Cloud.Iam.V2Beta\312\002\027Google\\Cl" + + "oud\\Iam\\V2betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java index 1f68e133bc..9862026d77 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java index f6463abdbb..210e966b1e 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface PolicyRuleOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java index f7b368d981..9a72bea366 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2beta.UpdatePolicyRequest.Builder.class); } + private int bitField0_; public static final int POLICY_FIELD_NUMBER = 1; private com.google.iam.v2beta.Policy policy_; /** @@ -79,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasPolicy() { - return policy_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -132,7 +134,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getPolicy()); } getUnknownFields().writeTo(output); @@ -144,7 +146,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy()); } size += getUnknownFields().getSerializedSize(); @@ -311,10 +313,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2beta.UpdatePolicyRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPolicyFieldBuilder(); + } } @java.lang.Override @@ -362,9 +373,12 @@ public com.google.iam.v2beta.UpdatePolicyRequest buildPartial() { private void buildPartial0(com.google.iam.v2beta.UpdatePolicyRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -586,8 +600,10 @@ public Builder mergePolicy(com.google.iam.v2beta.Policy value) { } else { policyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (policy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java index 231607713a..eace2e41e1 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface UpdatePolicyRequestOrBuilder