diff --git a/cab-token-generator/java/com/google/auth/credentialaccessboundary/ClientSideCredentialAccessBoundaryFactory.java b/cab-token-generator/java/com/google/auth/credentialaccessboundary/ClientSideCredentialAccessBoundaryFactory.java index 5b40442b5..cb1e1caa8 100644 --- a/cab-token-generator/java/com/google/auth/credentialaccessboundary/ClientSideCredentialAccessBoundaryFactory.java +++ b/cab-token-generator/java/com/google/auth/credentialaccessboundary/ClientSideCredentialAccessBoundaryFactory.java @@ -37,8 +37,8 @@ import com.google.api.client.util.Clock; import com.google.auth.Credentials; -import com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto.ClientSideAccessBoundary; -import com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto.ClientSideAccessBoundaryRule; +import com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary; +import com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule; import com.google.auth.http.HttpTransportFactory; import com.google.auth.oauth2.AccessToken; import com.google.auth.oauth2.CredentialAccessBoundary; diff --git a/cab-token-generator/java/com/google/auth/credentialaccessboundary/protobuf/ClientSideAccessBoundary.java b/cab-token-generator/java/com/google/auth/credentialaccessboundary/protobuf/ClientSideAccessBoundary.java new file mode 100644 index 000000000..afaa011d1 --- /dev/null +++ b/cab-token-generator/java/com/google/auth/credentialaccessboundary/protobuf/ClientSideAccessBoundary.java @@ -0,0 +1,1103 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: client_side_access_boundary.proto +// Protobuf Java Version: 4.33.0 + +package com.google.auth.credentialaccessboundary.protobuf; + +/** + * + * + *
+ * An access boundary defines the upper bound of what a principal may access. It + * includes a list of client-side access boundary rules that each defines the + * resource that may be allowed as well as permissions that may be used on those + * resources. + *+ * + * Protobuf type {@code cloud.identity.unifiedauth.proto.ClientSideAccessBoundary} + */ +@com.google.protobuf.Generated +public final class ClientSideAccessBoundary extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:cloud.identity.unifiedauth.proto.ClientSideAccessBoundary) + ClientSideAccessBoundaryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 0, + /* suffix= */ "", + "ClientSideAccessBoundary"); + } + + // Use ClientSideAccessBoundary.newBuilder() to construct. + private ClientSideAccessBoundary(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ClientSideAccessBoundary() { + accessBoundaryRules_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto + .internal_static_cloud_identity_unifiedauth_proto_ClientSideAccessBoundary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto + .internal_static_cloud_identity_unifiedauth_proto_ClientSideAccessBoundary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary.class, + com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary.Builder + .class); + } + + public static final int ACCESS_BOUNDARY_RULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule> + accessBoundaryRules_; + + /** + * + * + *
+ * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule>
+ getAccessBoundaryRulesList() {
+ return accessBoundaryRules_;
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends
+ com.google.auth.credentialaccessboundary.protobuf
+ .ClientSideAccessBoundaryRuleOrBuilder>
+ getAccessBoundaryRulesOrBuilderList() {
+ return accessBoundaryRules_;
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ @java.lang.Override
+ public int getAccessBoundaryRulesCount() {
+ return accessBoundaryRules_.size();
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ getAccessBoundaryRules(int index) {
+ return accessBoundaryRules_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRuleOrBuilder
+ getAccessBoundaryRulesOrBuilder(int index) {
+ return accessBoundaryRules_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < accessBoundaryRules_.size(); i++) {
+ output.writeMessage(1, accessBoundaryRules_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < accessBoundaryRules_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, accessBoundaryRules_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary)) {
+ return super.equals(obj);
+ }
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary other =
+ (com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary) obj;
+
+ if (!getAccessBoundaryRulesList().equals(other.getAccessBoundaryRulesList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getAccessBoundaryRulesCount() > 0) {
+ hash = (37 * hash) + ACCESS_BOUNDARY_RULES_FIELD_NUMBER;
+ hash = (53 * hash) + getAccessBoundaryRulesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * An access boundary defines the upper bound of what a principal may access. It + * includes a list of client-side access boundary rules that each defines the + * resource that may be allowed as well as permissions that may be used on those + * resources. + *+ * + * Protobuf type {@code cloud.identity.unifiedauth.proto.ClientSideAccessBoundary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public java.util.List<
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule>
+ getAccessBoundaryRulesList() {
+ if (accessBoundaryRulesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(accessBoundaryRules_);
+ } else {
+ return accessBoundaryRulesBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public int getAccessBoundaryRulesCount() {
+ if (accessBoundaryRulesBuilder_ == null) {
+ return accessBoundaryRules_.size();
+ } else {
+ return accessBoundaryRulesBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ getAccessBoundaryRules(int index) {
+ if (accessBoundaryRulesBuilder_ == null) {
+ return accessBoundaryRules_.get(index);
+ } else {
+ return accessBoundaryRulesBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public Builder setAccessBoundaryRules(
+ int index,
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule value) {
+ if (accessBoundaryRulesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAccessBoundaryRulesIsMutable();
+ accessBoundaryRules_.set(index, value);
+ onChanged();
+ } else {
+ accessBoundaryRulesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public Builder setAccessBoundaryRules(
+ int index,
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule.Builder
+ builderForValue) {
+ if (accessBoundaryRulesBuilder_ == null) {
+ ensureAccessBoundaryRulesIsMutable();
+ accessBoundaryRules_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ accessBoundaryRulesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public Builder addAccessBoundaryRules(
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule value) {
+ if (accessBoundaryRulesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAccessBoundaryRulesIsMutable();
+ accessBoundaryRules_.add(value);
+ onChanged();
+ } else {
+ accessBoundaryRulesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public Builder addAccessBoundaryRules(
+ int index,
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule value) {
+ if (accessBoundaryRulesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAccessBoundaryRulesIsMutable();
+ accessBoundaryRules_.add(index, value);
+ onChanged();
+ } else {
+ accessBoundaryRulesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public Builder addAccessBoundaryRules(
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule.Builder
+ builderForValue) {
+ if (accessBoundaryRulesBuilder_ == null) {
+ ensureAccessBoundaryRulesIsMutable();
+ accessBoundaryRules_.add(builderForValue.build());
+ onChanged();
+ } else {
+ accessBoundaryRulesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public Builder addAccessBoundaryRules(
+ int index,
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule.Builder
+ builderForValue) {
+ if (accessBoundaryRulesBuilder_ == null) {
+ ensureAccessBoundaryRulesIsMutable();
+ accessBoundaryRules_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ accessBoundaryRulesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public Builder addAllAccessBoundaryRules(
+ java.lang.Iterable<
+ ? extends
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule>
+ values) {
+ if (accessBoundaryRulesBuilder_ == null) {
+ ensureAccessBoundaryRulesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessBoundaryRules_);
+ onChanged();
+ } else {
+ accessBoundaryRulesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public Builder clearAccessBoundaryRules() {
+ if (accessBoundaryRulesBuilder_ == null) {
+ accessBoundaryRules_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ accessBoundaryRulesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public Builder removeAccessBoundaryRules(int index) {
+ if (accessBoundaryRulesBuilder_ == null) {
+ ensureAccessBoundaryRulesIsMutable();
+ accessBoundaryRules_.remove(index);
+ onChanged();
+ } else {
+ accessBoundaryRulesBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule.Builder
+ getAccessBoundaryRulesBuilder(int index) {
+ return internalGetAccessBoundaryRulesFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRuleOrBuilder
+ getAccessBoundaryRulesOrBuilder(int index) {
+ if (accessBoundaryRulesBuilder_ == null) {
+ return accessBoundaryRules_.get(index);
+ } else {
+ return accessBoundaryRulesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.auth.credentialaccessboundary.protobuf
+ .ClientSideAccessBoundaryRuleOrBuilder>
+ getAccessBoundaryRulesOrBuilderList() {
+ if (accessBoundaryRulesBuilder_ != null) {
+ return accessBoundaryRulesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(accessBoundaryRules_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule.Builder
+ addAccessBoundaryRulesBuilder() {
+ return internalGetAccessBoundaryRulesFieldBuilder()
+ .addBuilder(
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule.Builder
+ addAccessBoundaryRulesBuilder(int index) {
+ return internalGetAccessBoundaryRulesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ public java.util.List<
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule.Builder>
+ getAccessBoundaryRulesBuilderList() {
+ return internalGetAccessBoundaryRulesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule,
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule.Builder,
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRuleOrBuilder>
+ internalGetAccessBoundaryRulesFieldBuilder() {
+ if (accessBoundaryRulesBuilder_ == null) {
+ accessBoundaryRulesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule,
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ .Builder,
+ com.google.auth.credentialaccessboundary.protobuf
+ .ClientSideAccessBoundaryRuleOrBuilder>(
+ accessBoundaryRules_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ accessBoundaryRules_ = null;
+ }
+ return accessBoundaryRulesBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:cloud.identity.unifiedauth.proto.ClientSideAccessBoundary)
+ }
+
+ // @@protoc_insertion_point(class_scope:cloud.identity.unifiedauth.proto.ClientSideAccessBoundary)
+ private static final com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary();
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ java.util.List+ * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ getAccessBoundaryRules(int index);
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ int getAccessBoundaryRulesCount();
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.auth.credentialaccessboundary.protobuf
+ .ClientSideAccessBoundaryRuleOrBuilder>
+ getAccessBoundaryRulesOrBuilderList();
+
+ /**
+ *
+ *
+ * + * A list of client-side access boundary rules which defines the upper bound + * of the permission a principal may carry. If multiple rules are specified, + * the effective access boundary is the union of all the access boundary rules + * attached. + *+ * + *
+ * repeated .cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
+ *
+ */
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRuleOrBuilder
+ getAccessBoundaryRulesOrBuilder(int index);
+}
diff --git a/cab-token-generator/java/com/google/auth/credentialaccessboundary/protobuf/ClientSideAccessBoundaryProto.java b/cab-token-generator/java/com/google/auth/credentialaccessboundary/protobuf/ClientSideAccessBoundaryProto.java
index 307f8bde9..2e35de87f 100644
--- a/cab-token-generator/java/com/google/auth/credentialaccessboundary/protobuf/ClientSideAccessBoundaryProto.java
+++ b/cab-token-generator/java/com/google/auth/credentialaccessboundary/protobuf/ClientSideAccessBoundaryProto.java
@@ -1,2197 +1,38 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
// source: client_side_access_boundary.proto
+// Protobuf Java Version: 4.33.0
-// Protobuf Java Version: 3.25.5
package com.google.auth.credentialaccessboundary.protobuf;
-public final class ClientSideAccessBoundaryProto {
+@com.google.protobuf.Generated
+public final class ClientSideAccessBoundaryProto extends com.google.protobuf.GeneratedFile {
private ClientSideAccessBoundaryProto() {}
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 0,
+ /* suffix= */ "",
+ "ClientSideAccessBoundaryProto");
+ }
+
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
}
- public interface ClientSideAccessBoundaryRuleOrBuilder
- extends
- // @@protoc_insertion_point(interface_extends:com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * string available_resource = 1;
- *
- * @return The availableResource.
- */
- java.lang.String getAvailableResource();
-
- /**
- * string available_resource = 1;
- *
- * @return The bytes for availableResource.
- */
- com.google.protobuf.ByteString getAvailableResourceBytes();
-
- /**
- * repeated string available_permissions = 2;
- *
- * @return A list containing the availablePermissions.
- */
- java.util.Listrepeated string available_permissions = 2;
- *
- * @return The count of availablePermissions.
- */
- int getAvailablePermissionsCount();
-
- /**
- * repeated string available_permissions = 2;
- *
- * @param index The index of the element to return.
- * @return The availablePermissions at the given index.
- */
- java.lang.String getAvailablePermissions(int index);
-
- /**
- * repeated string available_permissions = 2;
- *
- * @param index The index of the value to return.
- * @return The bytes of the availablePermissions at the given index.
- */
- com.google.protobuf.ByteString getAvailablePermissionsBytes(int index);
-
- /**
- * .cel.expr.Expr compiled_availability_condition = 4;
- *
- * @return Whether the compiledAvailabilityCondition field is set.
- */
- boolean hasCompiledAvailabilityCondition();
-
- /**
- * .cel.expr.Expr compiled_availability_condition = 4;
- *
- * @return The compiledAvailabilityCondition.
- */
- dev.cel.expr.Expr getCompiledAvailabilityCondition();
-
- /** .cel.expr.Expr compiled_availability_condition = 4; */
- dev.cel.expr.ExprOrBuilder getCompiledAvailabilityConditionOrBuilder();
- }
-
- /**
- * Protobuf type {@code
- * com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule}
- */
- public static final class ClientSideAccessBoundaryRule
- extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule)
- ClientSideAccessBoundaryRuleOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use ClientSideAccessBoundaryRule.newBuilder() to construct.
- private ClientSideAccessBoundaryRule(
- com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private ClientSideAccessBoundaryRule() {
- availableResource_ = "";
- availablePermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
- return new ClientSideAccessBoundaryRule();
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .internal_static_com_google_auth_credentialaccessboundary_proto_ClientSideAccessBoundaryRule_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .internal_static_com_google_auth_credentialaccessboundary_proto_ClientSideAccessBoundaryRule_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule.class,
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule.Builder.class);
- }
-
- private int bitField0_;
- public static final int AVAILABLE_RESOURCE_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object availableResource_ = "";
-
- /**
- * string available_resource = 1;
- *
- * @return The availableResource.
- */
- @java.lang.Override
- public java.lang.String getAvailableResource() {
- java.lang.Object ref = availableResource_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- availableResource_ = s;
- return s;
- }
- }
-
- /**
- * string available_resource = 1;
- *
- * @return The bytes for availableResource.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getAvailableResourceBytes() {
- java.lang.Object ref = availableResource_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- availableResource_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int AVAILABLE_PERMISSIONS_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList availablePermissions_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
-
- /**
- * repeated string available_permissions = 2;
- *
- * @return A list containing the availablePermissions.
- */
- public com.google.protobuf.ProtocolStringList getAvailablePermissionsList() {
- return availablePermissions_;
- }
-
- /**
- * repeated string available_permissions = 2;
- *
- * @return The count of availablePermissions.
- */
- public int getAvailablePermissionsCount() {
- return availablePermissions_.size();
- }
-
- /**
- * repeated string available_permissions = 2;
- *
- * @param index The index of the element to return.
- * @return The availablePermissions at the given index.
- */
- public java.lang.String getAvailablePermissions(int index) {
- return availablePermissions_.get(index);
- }
-
- /**
- * repeated string available_permissions = 2;
- *
- * @param index The index of the value to return.
- * @return The bytes of the availablePermissions at the given index.
- */
- public com.google.protobuf.ByteString getAvailablePermissionsBytes(int index) {
- return availablePermissions_.getByteString(index);
- }
-
- public static final int COMPILED_AVAILABILITY_CONDITION_FIELD_NUMBER = 4;
- private dev.cel.expr.Expr compiledAvailabilityCondition_;
-
- /**
- * .cel.expr.Expr compiled_availability_condition = 4;
- *
- * @return Whether the compiledAvailabilityCondition field is set.
- */
- @java.lang.Override
- public boolean hasCompiledAvailabilityCondition() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * .cel.expr.Expr compiled_availability_condition = 4;
- *
- * @return The compiledAvailabilityCondition.
- */
- @java.lang.Override
- public dev.cel.expr.Expr getCompiledAvailabilityCondition() {
- return compiledAvailabilityCondition_ == null
- ? dev.cel.expr.Expr.getDefaultInstance()
- : compiledAvailabilityCondition_;
- }
-
- /** .cel.expr.Expr compiled_availability_condition = 4; */
- @java.lang.Override
- public dev.cel.expr.ExprOrBuilder getCompiledAvailabilityConditionOrBuilder() {
- return compiledAvailabilityCondition_ == null
- ? dev.cel.expr.Expr.getDefaultInstance()
- : compiledAvailabilityCondition_;
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableResource_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, availableResource_);
- }
- for (int i = 0; i < availablePermissions_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(
- output, 2, availablePermissions_.getRaw(i));
- }
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(4, getCompiledAvailabilityCondition());
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableResource_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, availableResource_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < availablePermissions_.size(); i++) {
- dataSize += computeStringSizeNoTag(availablePermissions_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getAvailablePermissionsList().size();
- }
- if (((bitField0_ & 0x00000001) != 0)) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 4, getCompiledAvailabilityCondition());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj
- instanceof
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule)) {
- return super.equals(obj);
- }
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- other =
- (com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule)
- obj;
-
- if (!getAvailableResource().equals(other.getAvailableResource())) return false;
- if (!getAvailablePermissionsList().equals(other.getAvailablePermissionsList())) return false;
- if (hasCompiledAvailabilityCondition() != other.hasCompiledAvailabilityCondition())
- return false;
- if (hasCompiledAvailabilityCondition()) {
- if (!getCompiledAvailabilityCondition().equals(other.getCompiledAvailabilityCondition()))
- return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + AVAILABLE_RESOURCE_FIELD_NUMBER;
- hash = (53 * hash) + getAvailableResource().hashCode();
- if (getAvailablePermissionsCount() > 0) {
- hash = (37 * hash) + AVAILABLE_PERMISSIONS_FIELD_NUMBER;
- hash = (53 * hash) + getAvailablePermissionsList().hashCode();
- }
- if (hasCompiledAvailabilityCondition()) {
- hash = (37 * hash) + COMPILED_AVAILABILITY_CONDITION_FIELD_NUMBER;
- hash = (53 * hash) + getCompiledAvailabilityCondition().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- parseFrom(java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- parseFrom(com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- parseFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- * Protobuf type {@code
- * com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule}
- */
- public static final class Builder
- extends com.google.protobuf.GeneratedMessageV3.Builderstring available_resource = 1;
- *
- * @return The availableResource.
- */
- public java.lang.String getAvailableResource() {
- java.lang.Object ref = availableResource_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- availableResource_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
- /**
- * string available_resource = 1;
- *
- * @return The bytes for availableResource.
- */
- public com.google.protobuf.ByteString getAvailableResourceBytes() {
- java.lang.Object ref = availableResource_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- availableResource_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- /**
- * string available_resource = 1;
- *
- * @param value The availableResource to set.
- * @return This builder for chaining.
- */
- public Builder setAvailableResource(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- availableResource_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
- /**
- * string available_resource = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearAvailableResource() {
- availableResource_ = getDefaultInstance().getAvailableResource();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- return this;
- }
-
- /**
- * string available_resource = 1;
- *
- * @param value The bytes for availableResource to set.
- * @return This builder for chaining.
- */
- public Builder setAvailableResourceBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- availableResource_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringArrayList availablePermissions_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
-
- private void ensureAvailablePermissionsIsMutable() {
- if (!availablePermissions_.isModifiable()) {
- availablePermissions_ =
- new com.google.protobuf.LazyStringArrayList(availablePermissions_);
- }
- bitField0_ |= 0x00000002;
- }
-
- /**
- * repeated string available_permissions = 2;
- *
- * @return A list containing the availablePermissions.
- */
- public com.google.protobuf.ProtocolStringList getAvailablePermissionsList() {
- availablePermissions_.makeImmutable();
- return availablePermissions_;
- }
-
- /**
- * repeated string available_permissions = 2;
- *
- * @return The count of availablePermissions.
- */
- public int getAvailablePermissionsCount() {
- return availablePermissions_.size();
- }
-
- /**
- * repeated string available_permissions = 2;
- *
- * @param index The index of the element to return.
- * @return The availablePermissions at the given index.
- */
- public java.lang.String getAvailablePermissions(int index) {
- return availablePermissions_.get(index);
- }
-
- /**
- * repeated string available_permissions = 2;
- *
- * @param index The index of the value to return.
- * @return The bytes of the availablePermissions at the given index.
- */
- public com.google.protobuf.ByteString getAvailablePermissionsBytes(int index) {
- return availablePermissions_.getByteString(index);
- }
-
- /**
- * repeated string available_permissions = 2;
- *
- * @param index The index to set the value at.
- * @param value The availablePermissions to set.
- * @return This builder for chaining.
- */
- public Builder setAvailablePermissions(int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAvailablePermissionsIsMutable();
- availablePermissions_.set(index, value);
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
- /**
- * repeated string available_permissions = 2;
- *
- * @param value The availablePermissions to add.
- * @return This builder for chaining.
- */
- public Builder addAvailablePermissions(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAvailablePermissionsIsMutable();
- availablePermissions_.add(value);
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
- /**
- * repeated string available_permissions = 2;
- *
- * @param values The availablePermissions to add.
- * @return This builder for chaining.
- */
- public Builder addAllAvailablePermissions(java.lang.Iterablerepeated string available_permissions = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearAvailablePermissions() {
- availablePermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- ;
- onChanged();
- return this;
- }
-
- /**
- * repeated string available_permissions = 2;
- *
- * @param value The bytes of the availablePermissions to add.
- * @return This builder for chaining.
- */
- public Builder addAvailablePermissionsBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- ensureAvailablePermissionsIsMutable();
- availablePermissions_.add(value);
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
- private dev.cel.expr.Expr compiledAvailabilityCondition_;
- private com.google.protobuf.SingleFieldBuilderV3<
- dev.cel.expr.Expr, dev.cel.expr.Expr.Builder, dev.cel.expr.ExprOrBuilder>
- compiledAvailabilityConditionBuilder_;
-
- /**
- * .cel.expr.Expr compiled_availability_condition = 4;
- *
- * @return Whether the compiledAvailabilityCondition field is set.
- */
- public boolean hasCompiledAvailabilityCondition() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- * .cel.expr.Expr compiled_availability_condition = 4;
- *
- * @return The compiledAvailabilityCondition.
- */
- public dev.cel.expr.Expr getCompiledAvailabilityCondition() {
- if (compiledAvailabilityConditionBuilder_ == null) {
- return compiledAvailabilityCondition_ == null
- ? dev.cel.expr.Expr.getDefaultInstance()
- : compiledAvailabilityCondition_;
- } else {
- return compiledAvailabilityConditionBuilder_.getMessage();
- }
- }
-
- /** .cel.expr.Expr compiled_availability_condition = 4; */
- public Builder setCompiledAvailabilityCondition(dev.cel.expr.Expr value) {
- if (compiledAvailabilityConditionBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- compiledAvailabilityCondition_ = value;
- } else {
- compiledAvailabilityConditionBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
-
- /** .cel.expr.Expr compiled_availability_condition = 4; */
- public Builder setCompiledAvailabilityCondition(dev.cel.expr.Expr.Builder builderForValue) {
- if (compiledAvailabilityConditionBuilder_ == null) {
- compiledAvailabilityCondition_ = builderForValue.build();
- } else {
- compiledAvailabilityConditionBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
-
- /** .cel.expr.Expr compiled_availability_condition = 4; */
- public Builder mergeCompiledAvailabilityCondition(dev.cel.expr.Expr value) {
- if (compiledAvailabilityConditionBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)
- && compiledAvailabilityCondition_ != null
- && compiledAvailabilityCondition_ != dev.cel.expr.Expr.getDefaultInstance()) {
- getCompiledAvailabilityConditionBuilder().mergeFrom(value);
- } else {
- compiledAvailabilityCondition_ = value;
- }
- } else {
- compiledAvailabilityConditionBuilder_.mergeFrom(value);
- }
- if (compiledAvailabilityCondition_ != null) {
- bitField0_ |= 0x00000004;
- onChanged();
- }
- return this;
- }
-
- /** .cel.expr.Expr compiled_availability_condition = 4; */
- public Builder clearCompiledAvailabilityCondition() {
- bitField0_ = (bitField0_ & ~0x00000004);
- compiledAvailabilityCondition_ = null;
- if (compiledAvailabilityConditionBuilder_ != null) {
- compiledAvailabilityConditionBuilder_.dispose();
- compiledAvailabilityConditionBuilder_ = null;
- }
- onChanged();
- return this;
- }
-
- /** .cel.expr.Expr compiled_availability_condition = 4; */
- public dev.cel.expr.Expr.Builder getCompiledAvailabilityConditionBuilder() {
- bitField0_ |= 0x00000004;
- onChanged();
- return getCompiledAvailabilityConditionFieldBuilder().getBuilder();
- }
-
- /** .cel.expr.Expr compiled_availability_condition = 4; */
- public dev.cel.expr.ExprOrBuilder getCompiledAvailabilityConditionOrBuilder() {
- if (compiledAvailabilityConditionBuilder_ != null) {
- return compiledAvailabilityConditionBuilder_.getMessageOrBuilder();
- } else {
- return compiledAvailabilityCondition_ == null
- ? dev.cel.expr.Expr.getDefaultInstance()
- : compiledAvailabilityCondition_;
- }
- }
-
- /** .cel.expr.Expr compiled_availability_condition = 4; */
- private com.google.protobuf.SingleFieldBuilderV3<
- dev.cel.expr.Expr, dev.cel.expr.Expr.Builder, dev.cel.expr.ExprOrBuilder>
- getCompiledAvailabilityConditionFieldBuilder() {
- if (compiledAvailabilityConditionBuilder_ == null) {
- compiledAvailabilityConditionBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- dev.cel.expr.Expr, dev.cel.expr.Expr.Builder, dev.cel.expr.ExprOrBuilder>(
- getCompiledAvailabilityCondition(), getParentForChildren(), isClean());
- compiledAvailabilityCondition_ = null;
- }
- return compiledAvailabilityConditionBuilder_;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
- // @@protoc_insertion_point(builder_scope:com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule)
- }
-
- // @@protoc_insertion_point(class_scope:com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule)
- private static final com.google.auth.credentialaccessboundary.protobuf
- .ClientSideAccessBoundaryProto.ClientSideAccessBoundaryRule
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE =
- new com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule();
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- java.util.List<
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule>
- getAccessBoundaryRulesList();
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- getAccessBoundaryRules(int index);
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- int getAccessBoundaryRulesCount();
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- java.util.List<
- ? extends
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRuleOrBuilder>
- getAccessBoundaryRulesOrBuilderList();
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRuleOrBuilder
- getAccessBoundaryRulesOrBuilder(int index);
- }
-
- /**
- * Protobuf type {@code com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundary}
- */
- public static final class ClientSideAccessBoundary extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundary)
- ClientSideAccessBoundaryOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use ClientSideAccessBoundary.newBuilder() to construct.
- private ClientSideAccessBoundary(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private ClientSideAccessBoundary() {
- accessBoundaryRules_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
- return new ClientSideAccessBoundary();
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .internal_static_com_google_auth_credentialaccessboundary_proto_ClientSideAccessBoundary_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .internal_static_com_google_auth_credentialaccessboundary_proto_ClientSideAccessBoundary_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary.class,
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary.Builder.class);
- }
-
- public static final int ACCESS_BOUNDARY_RULES_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private java.util.List<
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule>
- accessBoundaryRules_;
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- @java.lang.Override
- public java.util.List<
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule>
- getAccessBoundaryRulesList() {
- return accessBoundaryRules_;
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- @java.lang.Override
- public java.util.List<
- ? extends
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRuleOrBuilder>
- getAccessBoundaryRulesOrBuilderList() {
- return accessBoundaryRules_;
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- @java.lang.Override
- public int getAccessBoundaryRulesCount() {
- return accessBoundaryRules_.size();
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- @java.lang.Override
- public com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- getAccessBoundaryRules(int index) {
- return accessBoundaryRules_.get(index);
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- @java.lang.Override
- public com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRuleOrBuilder
- getAccessBoundaryRulesOrBuilder(int index) {
- return accessBoundaryRules_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- for (int i = 0; i < accessBoundaryRules_.size(); i++) {
- output.writeMessage(1, accessBoundaryRules_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- for (int i = 0; i < accessBoundaryRules_.size(); i++) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 1, accessBoundaryRules_.get(i));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj
- instanceof
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary)) {
- return super.equals(obj);
- }
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- other =
- (com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary)
- obj;
-
- if (!getAccessBoundaryRulesList().equals(other.getAccessBoundaryRulesList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getAccessBoundaryRulesCount() > 0) {
- hash = (37 * hash) + ACCESS_BOUNDARY_RULES_FIELD_NUMBER;
- hash = (53 * hash) + getAccessBoundaryRulesList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- parseFrom(java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- parseFrom(com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- parseFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- * Protobuf type {@code com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundary}
- */
- public static final class Builder
- extends com.google.protobuf.GeneratedMessageV3.Builder
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public java.util.List<
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule>
- getAccessBoundaryRulesList() {
- if (accessBoundaryRulesBuilder_ == null) {
- return java.util.Collections.unmodifiableList(accessBoundaryRules_);
- } else {
- return accessBoundaryRulesBuilder_.getMessageList();
- }
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public int getAccessBoundaryRulesCount() {
- if (accessBoundaryRulesBuilder_ == null) {
- return accessBoundaryRules_.size();
- } else {
- return accessBoundaryRulesBuilder_.getCount();
- }
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- getAccessBoundaryRules(int index) {
- if (accessBoundaryRulesBuilder_ == null) {
- return accessBoundaryRules_.get(index);
- } else {
- return accessBoundaryRulesBuilder_.getMessage(index);
- }
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public Builder setAccessBoundaryRules(
- int index,
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- value) {
- if (accessBoundaryRulesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAccessBoundaryRulesIsMutable();
- accessBoundaryRules_.set(index, value);
- onChanged();
- } else {
- accessBoundaryRulesBuilder_.setMessage(index, value);
- }
- return this;
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public Builder setAccessBoundaryRules(
- int index,
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule.Builder
- builderForValue) {
- if (accessBoundaryRulesBuilder_ == null) {
- ensureAccessBoundaryRulesIsMutable();
- accessBoundaryRules_.set(index, builderForValue.build());
- onChanged();
- } else {
- accessBoundaryRulesBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public Builder addAccessBoundaryRules(
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- value) {
- if (accessBoundaryRulesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAccessBoundaryRulesIsMutable();
- accessBoundaryRules_.add(value);
- onChanged();
- } else {
- accessBoundaryRulesBuilder_.addMessage(value);
- }
- return this;
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public Builder addAccessBoundaryRules(
- int index,
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule
- value) {
- if (accessBoundaryRulesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAccessBoundaryRulesIsMutable();
- accessBoundaryRules_.add(index, value);
- onChanged();
- } else {
- accessBoundaryRulesBuilder_.addMessage(index, value);
- }
- return this;
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public Builder addAccessBoundaryRules(
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule.Builder
- builderForValue) {
- if (accessBoundaryRulesBuilder_ == null) {
- ensureAccessBoundaryRulesIsMutable();
- accessBoundaryRules_.add(builderForValue.build());
- onChanged();
- } else {
- accessBoundaryRulesBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public Builder addAccessBoundaryRules(
- int index,
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule.Builder
- builderForValue) {
- if (accessBoundaryRulesBuilder_ == null) {
- ensureAccessBoundaryRulesIsMutable();
- accessBoundaryRules_.add(index, builderForValue.build());
- onChanged();
- } else {
- accessBoundaryRulesBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public Builder addAllAccessBoundaryRules(
- java.lang.Iterable<
- ? extends
- com.google.auth.credentialaccessboundary.protobuf
- .ClientSideAccessBoundaryProto.ClientSideAccessBoundaryRule>
- values) {
- if (accessBoundaryRulesBuilder_ == null) {
- ensureAccessBoundaryRulesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessBoundaryRules_);
- onChanged();
- } else {
- accessBoundaryRulesBuilder_.addAllMessages(values);
- }
- return this;
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public Builder clearAccessBoundaryRules() {
- if (accessBoundaryRulesBuilder_ == null) {
- accessBoundaryRules_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- accessBoundaryRulesBuilder_.clear();
- }
- return this;
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public Builder removeAccessBoundaryRules(int index) {
- if (accessBoundaryRulesBuilder_ == null) {
- ensureAccessBoundaryRulesIsMutable();
- accessBoundaryRules_.remove(index);
- onChanged();
- } else {
- accessBoundaryRulesBuilder_.remove(index);
- }
- return this;
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule.Builder
- getAccessBoundaryRulesBuilder(int index) {
- return getAccessBoundaryRulesFieldBuilder().getBuilder(index);
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRuleOrBuilder
- getAccessBoundaryRulesOrBuilder(int index) {
- if (accessBoundaryRulesBuilder_ == null) {
- return accessBoundaryRules_.get(index);
- } else {
- return accessBoundaryRulesBuilder_.getMessageOrBuilder(index);
- }
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public java.util.List<
- ? extends
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRuleOrBuilder>
- getAccessBoundaryRulesOrBuilderList() {
- if (accessBoundaryRulesBuilder_ != null) {
- return accessBoundaryRulesBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(accessBoundaryRules_);
- }
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule.Builder
- addAccessBoundaryRulesBuilder() {
- return getAccessBoundaryRulesFieldBuilder()
- .addBuilder(
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule.getDefaultInstance());
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule.Builder
- addAccessBoundaryRulesBuilder(int index) {
- return getAccessBoundaryRulesFieldBuilder()
- .addBuilder(
- index,
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule.getDefaultInstance());
- }
-
- /**
- *
- * repeated .com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundaryRule access_boundary_rules = 1;
- *
- */
- public java.util.List<
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule.Builder>
- getAccessBoundaryRulesBuilderList() {
- return getAccessBoundaryRulesFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule,
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule.Builder,
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRuleOrBuilder>
- getAccessBoundaryRulesFieldBuilder() {
- if (accessBoundaryRulesBuilder_ == null) {
- accessBoundaryRulesBuilder_ =
- new com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule,
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRule.Builder,
- com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundaryRuleOrBuilder>(
- accessBoundaryRules_,
- ((bitField0_ & 0x00000001) != 0),
- getParentForChildren(),
- isClean());
- accessBoundaryRules_ = null;
- }
- return accessBoundaryRulesBuilder_;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
- // @@protoc_insertion_point(builder_scope:com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundary)
- }
-
- // @@protoc_insertion_point(class_scope:com.google.auth.credentialaccessboundary.proto.ClientSideAccessBoundary)
- private static final com.google.auth.credentialaccessboundary.protobuf
- .ClientSideAccessBoundaryProto.ClientSideAccessBoundary
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE =
- new com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary();
- }
-
- public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto
- .ClientSideAccessBoundary
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser+ * An access boundary rule that defines an upper bound of IAM + * permissions on a single resource. This proto has a compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto). It is used to + * format the access boundary restriction in the Client-Side CAB access token. + *+ * + * Protobuf type {@code cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule} + */ +@com.google.protobuf.Generated +public final class ClientSideAccessBoundaryRule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule) + ClientSideAccessBoundaryRuleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 0, + /* suffix= */ "", + "ClientSideAccessBoundaryRule"); + } + + // Use ClientSideAccessBoundaryRule.newBuilder() to construct. + private ClientSideAccessBoundaryRule(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ClientSideAccessBoundaryRule() { + availableResource_ = ""; + availablePermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto + .internal_static_cloud_identity_unifiedauth_proto_ClientSideAccessBoundaryRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto + .internal_static_cloud_identity_unifiedauth_proto_ClientSideAccessBoundaryRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule.class, + com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule.Builder + .class); + } + + private int bitField0_; + public static final int AVAILABLE_RESOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object availableResource_ = ""; + + /** + * + * + *
+ * The full resource name of a Google Cloud resource entity. + * The format definition is at + * https://cloud.google.com/apis/design/resource_names. + * + * Example value: `//cloudresourcemanager.googleapis.com/projects/my-project`. + *+ * + *
string available_resource = 1 [features = { ... }
+ *
+ * @return The availableResource.
+ */
+ @java.lang.Override
+ public java.lang.String getAvailableResource() {
+ java.lang.Object ref = availableResource_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ availableResource_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The full resource name of a Google Cloud resource entity. + * The format definition is at + * https://cloud.google.com/apis/design/resource_names. + * + * Example value: `//cloudresourcemanager.googleapis.com/projects/my-project`. + *+ * + *
string available_resource = 1 [features = { ... }
+ *
+ * @return The bytes for availableResource.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAvailableResourceBytes() {
+ java.lang.Object ref = availableResource_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ availableResource_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AVAILABLE_PERMISSIONS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList availablePermissions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @return A list containing the availablePermissions.
+ */
+ public com.google.protobuf.ProtocolStringList getAvailablePermissionsList() {
+ return availablePermissions_;
+ }
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @return The count of availablePermissions.
+ */
+ public int getAvailablePermissionsCount() {
+ return availablePermissions_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The availablePermissions at the given index.
+ */
+ public java.lang.String getAvailablePermissions(int index) {
+ return availablePermissions_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the availablePermissions at the given index.
+ */
+ public com.google.protobuf.ByteString getAvailablePermissionsBytes(int index) {
+ return availablePermissions_.getByteString(index);
+ }
+
+ public static final int COMPILED_AVAILABILITY_CONDITION_FIELD_NUMBER = 4;
+ private dev.cel.expr.Expr compiledAvailabilityCondition_;
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ *
+ * @return Whether the compiledAvailabilityCondition field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompiledAvailabilityCondition() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ *
+ * @return The compiledAvailabilityCondition.
+ */
+ @java.lang.Override
+ public dev.cel.expr.Expr getCompiledAvailabilityCondition() {
+ return compiledAvailabilityCondition_ == null
+ ? dev.cel.expr.Expr.getDefaultInstance()
+ : compiledAvailabilityCondition_;
+ }
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ */
+ @java.lang.Override
+ public dev.cel.expr.ExprOrBuilder getCompiledAvailabilityConditionOrBuilder() {
+ return compiledAvailabilityCondition_ == null
+ ? dev.cel.expr.Expr.getDefaultInstance()
+ : compiledAvailabilityCondition_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(availableResource_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, availableResource_);
+ }
+ for (int i = 0; i < availablePermissions_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, availablePermissions_.getRaw(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(4, getCompiledAvailabilityCondition());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(availableResource_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, availableResource_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < availablePermissions_.size(); i++) {
+ dataSize += computeStringSizeNoTag(availablePermissions_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getAvailablePermissionsList().size();
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, getCompiledAvailabilityCondition());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule)) {
+ return super.equals(obj);
+ }
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule other =
+ (com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule) obj;
+
+ if (!getAvailableResource().equals(other.getAvailableResource())) return false;
+ if (!getAvailablePermissionsList().equals(other.getAvailablePermissionsList())) return false;
+ if (hasCompiledAvailabilityCondition() != other.hasCompiledAvailabilityCondition())
+ return false;
+ if (hasCompiledAvailabilityCondition()) {
+ if (!getCompiledAvailabilityCondition().equals(other.getCompiledAvailabilityCondition()))
+ return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + AVAILABLE_RESOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getAvailableResource().hashCode();
+ if (getAvailablePermissionsCount() > 0) {
+ hash = (37 * hash) + AVAILABLE_PERMISSIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getAvailablePermissionsList().hashCode();
+ }
+ if (hasCompiledAvailabilityCondition()) {
+ hash = (37 * hash) + COMPILED_AVAILABILITY_CONDITION_FIELD_NUMBER;
+ hash = (53 * hash) + getCompiledAvailabilityCondition().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * An access boundary rule that defines an upper bound of IAM + * permissions on a single resource. This proto has a compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto). It is used to + * format the access boundary restriction in the Client-Side CAB access token. + *+ * + * Protobuf type {@code cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The full resource name of a Google Cloud resource entity. + * The format definition is at + * https://cloud.google.com/apis/design/resource_names. + * + * Example value: `//cloudresourcemanager.googleapis.com/projects/my-project`. + *+ * + *
string available_resource = 1 [features = { ... }
+ *
+ * @return The availableResource.
+ */
+ public java.lang.String getAvailableResource() {
+ java.lang.Object ref = availableResource_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ availableResource_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The full resource name of a Google Cloud resource entity. + * The format definition is at + * https://cloud.google.com/apis/design/resource_names. + * + * Example value: `//cloudresourcemanager.googleapis.com/projects/my-project`. + *+ * + *
string available_resource = 1 [features = { ... }
+ *
+ * @return The bytes for availableResource.
+ */
+ public com.google.protobuf.ByteString getAvailableResourceBytes() {
+ java.lang.Object ref = availableResource_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ availableResource_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The full resource name of a Google Cloud resource entity. + * The format definition is at + * https://cloud.google.com/apis/design/resource_names. + * + * Example value: `//cloudresourcemanager.googleapis.com/projects/my-project`. + *+ * + *
string available_resource = 1 [features = { ... }
+ *
+ * @param value The availableResource to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAvailableResource(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ availableResource_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The full resource name of a Google Cloud resource entity. + * The format definition is at + * https://cloud.google.com/apis/design/resource_names. + * + * Example value: `//cloudresourcemanager.googleapis.com/projects/my-project`. + *+ * + *
string available_resource = 1 [features = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAvailableResource() {
+ availableResource_ = getDefaultInstance().getAvailableResource();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The full resource name of a Google Cloud resource entity. + * The format definition is at + * https://cloud.google.com/apis/design/resource_names. + * + * Example value: `//cloudresourcemanager.googleapis.com/projects/my-project`. + *+ * + *
string available_resource = 1 [features = { ... }
+ *
+ * @param value The bytes for availableResource to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAvailableResourceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ availableResource_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList availablePermissions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureAvailablePermissionsIsMutable() {
+ if (!availablePermissions_.isModifiable()) {
+ availablePermissions_ = new com.google.protobuf.LazyStringArrayList(availablePermissions_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @return A list containing the availablePermissions.
+ */
+ public com.google.protobuf.ProtocolStringList getAvailablePermissionsList() {
+ availablePermissions_.makeImmutable();
+ return availablePermissions_;
+ }
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @return The count of availablePermissions.
+ */
+ public int getAvailablePermissionsCount() {
+ return availablePermissions_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The availablePermissions at the given index.
+ */
+ public java.lang.String getAvailablePermissions(int index) {
+ return availablePermissions_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the availablePermissions at the given index.
+ */
+ public com.google.protobuf.ByteString getAvailablePermissionsBytes(int index) {
+ return availablePermissions_.getByteString(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @param index The index to set the value at.
+ * @param value The availablePermissions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAvailablePermissions(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAvailablePermissionsIsMutable();
+ availablePermissions_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @param value The availablePermissions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAvailablePermissions(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAvailablePermissionsIsMutable();
+ availablePermissions_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @param values The availablePermissions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllAvailablePermissions(java.lang.Iterable
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAvailablePermissions() {
+ availablePermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @param value The bytes of the availablePermissions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAvailablePermissionsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureAvailablePermissionsIsMutable();
+ availablePermissions_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private dev.cel.expr.Expr compiledAvailabilityCondition_;
+ private com.google.protobuf.SingleFieldBuilder<
+ dev.cel.expr.Expr, dev.cel.expr.Expr.Builder, dev.cel.expr.ExprOrBuilder>
+ compiledAvailabilityConditionBuilder_;
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ *
+ * @return Whether the compiledAvailabilityCondition field is set.
+ */
+ public boolean hasCompiledAvailabilityCondition() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ *
+ * @return The compiledAvailabilityCondition.
+ */
+ public dev.cel.expr.Expr getCompiledAvailabilityCondition() {
+ if (compiledAvailabilityConditionBuilder_ == null) {
+ return compiledAvailabilityCondition_ == null
+ ? dev.cel.expr.Expr.getDefaultInstance()
+ : compiledAvailabilityCondition_;
+ } else {
+ return compiledAvailabilityConditionBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ */
+ public Builder setCompiledAvailabilityCondition(dev.cel.expr.Expr value) {
+ if (compiledAvailabilityConditionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ compiledAvailabilityCondition_ = value;
+ } else {
+ compiledAvailabilityConditionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ */
+ public Builder setCompiledAvailabilityCondition(dev.cel.expr.Expr.Builder builderForValue) {
+ if (compiledAvailabilityConditionBuilder_ == null) {
+ compiledAvailabilityCondition_ = builderForValue.build();
+ } else {
+ compiledAvailabilityConditionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ */
+ public Builder mergeCompiledAvailabilityCondition(dev.cel.expr.Expr value) {
+ if (compiledAvailabilityConditionBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && compiledAvailabilityCondition_ != null
+ && compiledAvailabilityCondition_ != dev.cel.expr.Expr.getDefaultInstance()) {
+ getCompiledAvailabilityConditionBuilder().mergeFrom(value);
+ } else {
+ compiledAvailabilityCondition_ = value;
+ }
+ } else {
+ compiledAvailabilityConditionBuilder_.mergeFrom(value);
+ }
+ if (compiledAvailabilityCondition_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ */
+ public Builder clearCompiledAvailabilityCondition() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ compiledAvailabilityCondition_ = null;
+ if (compiledAvailabilityConditionBuilder_ != null) {
+ compiledAvailabilityConditionBuilder_.dispose();
+ compiledAvailabilityConditionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ */
+ public dev.cel.expr.Expr.Builder getCompiledAvailabilityConditionBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return internalGetCompiledAvailabilityConditionFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ */
+ public dev.cel.expr.ExprOrBuilder getCompiledAvailabilityConditionOrBuilder() {
+ if (compiledAvailabilityConditionBuilder_ != null) {
+ return compiledAvailabilityConditionBuilder_.getMessageOrBuilder();
+ } else {
+ return compiledAvailabilityCondition_ == null
+ ? dev.cel.expr.Expr.getDefaultInstance()
+ : compiledAvailabilityCondition_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ dev.cel.expr.Expr, dev.cel.expr.Expr.Builder, dev.cel.expr.ExprOrBuilder>
+ internalGetCompiledAvailabilityConditionFieldBuilder() {
+ if (compiledAvailabilityConditionBuilder_ == null) {
+ compiledAvailabilityConditionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ dev.cel.expr.Expr, dev.cel.expr.Expr.Builder, dev.cel.expr.ExprOrBuilder>(
+ getCompiledAvailabilityCondition(), getParentForChildren(), isClean());
+ compiledAvailabilityCondition_ = null;
+ }
+ return compiledAvailabilityConditionBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule)
+ }
+
+ // @@protoc_insertion_point(class_scope:cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule)
+ private static final com.google.auth.credentialaccessboundary.protobuf
+ .ClientSideAccessBoundaryRule
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule();
+ }
+
+ public static com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The full resource name of a Google Cloud resource entity. + * The format definition is at + * https://cloud.google.com/apis/design/resource_names. + * + * Example value: `//cloudresourcemanager.googleapis.com/projects/my-project`. + *+ * + *
string available_resource = 1 [features = { ... }
+ *
+ * @return The availableResource.
+ */
+ java.lang.String getAvailableResource();
+
+ /**
+ *
+ *
+ * + * The full resource name of a Google Cloud resource entity. + * The format definition is at + * https://cloud.google.com/apis/design/resource_names. + * + * Example value: `//cloudresourcemanager.googleapis.com/projects/my-project`. + *+ * + *
string available_resource = 1 [features = { ... }
+ *
+ * @return The bytes for availableResource.
+ */
+ com.google.protobuf.ByteString getAvailableResourceBytes();
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @return A list containing the availablePermissions.
+ */
+ java.util.List
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @return The count of availablePermissions.
+ */
+ int getAvailablePermissionsCount();
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The availablePermissions at the given index.
+ */
+ java.lang.String getAvailablePermissions(int index);
+
+ /**
+ *
+ *
+ *
+ * A list of permissions that may be allowed for use on the specified
+ * resource.
+ *
+ * The only supported values in the list are IAM roles, following the format
+ * of [google.iam.v1.Binding.role][].
+ *
+ * Example value: `inRole:roles/logging.viewer` for predefined roles and
+ * `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom
+ * roles.
+ *
+ *
+ * repeated string available_permissions = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the availablePermissions at the given index.
+ */
+ com.google.protobuf.ByteString getAvailablePermissionsBytes(int index);
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ *
+ * @return Whether the compiledAvailabilityCondition field is set.
+ */
+ boolean hasCompiledAvailabilityCondition();
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ *
+ * @return The compiledAvailabilityCondition.
+ */
+ dev.cel.expr.Expr getCompiledAvailabilityCondition();
+
+ /**
+ *
+ *
+ * + * The compiled version of the + * availability_condition in the STS API AccessBoundaryRule + * (google3/google/identity/sts/v1/access_boundary.proto) with limited + * function support. + *+ * + *
.google.api.expr.Expr compiled_availability_condition = 4;
+ */
+ dev.cel.expr.ExprOrBuilder getCompiledAvailabilityConditionOrBuilder();
+}
diff --git a/cab-token-generator/javatests/com/google/auth/credentialaccessboundary/ClientSideCredentialAccessBoundaryFactoryTest.java b/cab-token-generator/javatests/com/google/auth/credentialaccessboundary/ClientSideCredentialAccessBoundaryFactoryTest.java
index 3f353db37..0ba9cbcf4 100644
--- a/cab-token-generator/javatests/com/google/auth/credentialaccessboundary/ClientSideCredentialAccessBoundaryFactoryTest.java
+++ b/cab-token-generator/javatests/com/google/auth/credentialaccessboundary/ClientSideCredentialAccessBoundaryFactoryTest.java
@@ -45,8 +45,8 @@
import com.google.auth.TestUtils;
import com.google.auth.credentialaccessboundary.ClientSideCredentialAccessBoundaryFactory.IntermediateCredentials;
import com.google.auth.credentialaccessboundary.ClientSideCredentialAccessBoundaryFactory.RefreshType;
-import com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto.ClientSideAccessBoundary;
-import com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryProto.ClientSideAccessBoundaryRule;
+import com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundary;
+import com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule;
import com.google.auth.http.HttpTransportFactory;
import com.google.auth.oauth2.AccessToken;
import com.google.auth.oauth2.CredentialAccessBoundary;
diff --git a/pom.xml b/pom.xml
index b4c466511..4dac9b316 100644
--- a/pom.xml
+++ b/pom.xml
@@ -74,19 +74,20 @@