All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.topicus.jdbc.shaded.com.google.iam.v1.Policy Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/iam/v1/policy.proto

package nl.topicus.jdbc.shaded.com.google.iam.v1;

/**
 * 
 * Defines an Identity and Access Management (IAM) policy. It is used to
 * specify access control policies for Cloud Platform resources.
 * A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
 * `members` to a `role`, where the members can be user accounts, Google groups,
 * Google domains, and service accounts. A `role` is a named list of permissions
 * defined by IAM.
 * **Example**
 *     {
 *       "bindings": [
 *         {
 *           "role": "roles/owner",
 *           "members": [
 *             "user:mike@example.com",
 *             "group:admins@example.com",
 *             "domain:google.com",
 *             "serviceAccount:my-other-app@appspot.gserviceaccount.com",
 *           ]
 *         },
 *         {
 *           "role": "roles/viewer",
 *           "members": ["user:sean@example.com"]
 *         }
 *       ]
 *     }
 * For a description of IAM and its features, see the
 * [IAM developer's guide](https://cloud.google.com/iam).
 * 
* * Protobuf type {@code google.iam.v1.Policy} */ public final class Policy extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.Policy) PolicyOrBuilder { private static final long serialVersionUID = 0L; // Use Policy.newBuilder() to construct. private Policy(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Policy() { version_ = 0; bindings_ = java.util.Collections.emptyList(); etag_ = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Policy( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { version_ = input.readInt32(); break; } case 26: { etag_ = input.readBytes(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { bindings_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } bindings_.add( input.readMessage(nl.topicus.jdbc.shaded.com.google.iam.v1.Binding.parser(), extensionRegistry)); break; } } } } catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { bindings_ = java.util.Collections.unmodifiableList(bindings_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor; } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.iam.v1.Policy.class, nl.topicus.jdbc.shaded.com.google.iam.v1.Policy.Builder.class); } private int bitField0_; public static final int VERSION_FIELD_NUMBER = 1; private int version_; /** *
   * Version of the `Policy`. The default version is 0.
   * 
* * int32 version = 1; */ public int getVersion() { return version_; } public static final int BINDINGS_FIELD_NUMBER = 4; private java.util.List bindings_; /** *
   * Associates a list of `members` to a `role`.
   * Multiple `bindings` must not be specified for the same `role`.
   * `bindings` with no members will result in an error.
   * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public java.util.List getBindingsList() { return bindings_; } /** *
   * Associates a list of `members` to a `role`.
   * Multiple `bindings` must not be specified for the same `role`.
   * `bindings` with no members will result in an error.
   * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public java.util.List getBindingsOrBuilderList() { return bindings_; } /** *
   * Associates a list of `members` to a `role`.
   * Multiple `bindings` must not be specified for the same `role`.
   * `bindings` with no members will result in an error.
   * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public int getBindingsCount() { return bindings_.size(); } /** *
   * Associates a list of `members` to a `role`.
   * Multiple `bindings` must not be specified for the same `role`.
   * `bindings` with no members will result in an error.
   * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public nl.topicus.jdbc.shaded.com.google.iam.v1.Binding getBindings(int index) { return bindings_.get(index); } /** *
   * Associates a list of `members` to a `role`.
   * Multiple `bindings` must not be specified for the same `role`.
   * `bindings` with no members will result in an error.
   * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public nl.topicus.jdbc.shaded.com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder( int index) { return bindings_.get(index); } public static final int ETAG_FIELD_NUMBER = 3; private nl.topicus.jdbc.shaded.com.google.protobuf.ByteString etag_; /** *
   * `etag` is used for optimistic concurrency control as a way to help
   * prevent simultaneous updates of a policy from overwriting each other.
   * It is strongly suggested that systems make use of the `etag` in the
   * read-modify-write cycle to perform policy updates in order to avoid race
   * conditions: An `etag` is returned in the response to `getIamPolicy`, and
   * systems are expected to put that etag in the request to `setIamPolicy` to
   * ensure that their change will be applied to the same version of the policy.
   * If no `etag` is provided in the call to `setIamPolicy`, then the existing
   * policy is overwritten blindly.
   * 
* * bytes etag = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getEtag() { return etag_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != 0) { output.writeInt32(1, version_); } if (!etag_.isEmpty()) { output.writeBytes(3, etag_); } for (int i = 0; i < bindings_.size(); i++) { output.writeMessage(4, bindings_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (version_ != 0) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .computeInt32Size(1, version_); } if (!etag_.isEmpty()) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .computeBytesSize(3, etag_); } for (int i = 0; i < bindings_.size(); i++) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .computeMessageSize(4, bindings_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof nl.topicus.jdbc.shaded.com.google.iam.v1.Policy)) { return super.equals(obj); } nl.topicus.jdbc.shaded.com.google.iam.v1.Policy other = (nl.topicus.jdbc.shaded.com.google.iam.v1.Policy) obj; boolean result = true; result = result && (getVersion() == other.getVersion()); result = result && getBindingsList() .equals(other.getBindingsList()); result = result && getEtag() .equals(other.getEtag()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); if (getBindingsCount() > 0) { hash = (37 * hash) + BINDINGS_FIELD_NUMBER; hash = (53 * hash) + getBindingsList().hashCode(); } hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static nl.topicus.jdbc.shaded.com.google.iam.v1.Policy parseFrom( java.nio.ByteBuffer data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.iam.v1.Policy parseFrom( java.nio.ByteBuffer data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.iam.v1.Policy parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.iam.v1.Policy parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.iam.v1.Policy parseFrom(byte[] data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.iam.v1.Policy parseFrom( byte[] data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.iam.v1.Policy parseFrom(java.io.InputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.iam.v1.Policy parseFrom( java.io.InputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.iam.v1.Policy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.iam.v1.Policy parseDelimitedFrom( java.io.InputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.iam.v1.Policy parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.iam.v1.Policy parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(nl.topicus.jdbc.shaded.com.google.iam.v1.Policy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Defines an Identity and Access Management (IAM) policy. It is used to
   * specify access control policies for Cloud Platform resources.
   * A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
   * `members` to a `role`, where the members can be user accounts, Google groups,
   * Google domains, and service accounts. A `role` is a named list of permissions
   * defined by IAM.
   * **Example**
   *     {
   *       "bindings": [
   *         {
   *           "role": "roles/owner",
   *           "members": [
   *             "user:mike@example.com",
   *             "group:admins@example.com",
   *             "domain:google.com",
   *             "serviceAccount:my-other-app@appspot.gserviceaccount.com",
   *           ]
   *         },
   *         {
   *           "role": "roles/viewer",
   *           "members": ["user:sean@example.com"]
   *         }
   *       ]
   *     }
   * For a description of IAM and its features, see the
   * [IAM developer's guide](https://cloud.google.com/iam).
   * 
* * Protobuf type {@code google.iam.v1.Policy} */ public static final class Builder extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.iam.v1.Policy) nl.topicus.jdbc.shaded.com.google.iam.v1.PolicyOrBuilder { public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor; } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.iam.v1.Policy.class, nl.topicus.jdbc.shaded.com.google.iam.v1.Policy.Builder.class); } // Construct using nl.topicus.jdbc.shaded.com.google.iam.v1.Policy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBindingsFieldBuilder(); } } public Builder clear() { super.clear(); version_ = 0; if (bindingsBuilder_ == null) { bindings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { bindingsBuilder_.clear(); } etag_ = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY; return this; } public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return nl.topicus.jdbc.shaded.com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor; } public nl.topicus.jdbc.shaded.com.google.iam.v1.Policy getDefaultInstanceForType() { return nl.topicus.jdbc.shaded.com.google.iam.v1.Policy.getDefaultInstance(); } public nl.topicus.jdbc.shaded.com.google.iam.v1.Policy build() { nl.topicus.jdbc.shaded.com.google.iam.v1.Policy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public nl.topicus.jdbc.shaded.com.google.iam.v1.Policy buildPartial() { nl.topicus.jdbc.shaded.com.google.iam.v1.Policy result = new nl.topicus.jdbc.shaded.com.google.iam.v1.Policy(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.version_ = version_; if (bindingsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { bindings_ = java.util.Collections.unmodifiableList(bindings_); bitField0_ = (bitField0_ & ~0x00000002); } result.bindings_ = bindings_; } else { result.bindings_ = bindingsBuilder_.build(); } result.etag_ = etag_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.protobuf.Message other) { if (other instanceof nl.topicus.jdbc.shaded.com.google.iam.v1.Policy) { return mergeFrom((nl.topicus.jdbc.shaded.com.google.iam.v1.Policy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.iam.v1.Policy other) { if (other == nl.topicus.jdbc.shaded.com.google.iam.v1.Policy.getDefaultInstance()) return this; if (other.getVersion() != 0) { setVersion(other.getVersion()); } if (bindingsBuilder_ == null) { if (!other.bindings_.isEmpty()) { if (bindings_.isEmpty()) { bindings_ = other.bindings_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureBindingsIsMutable(); bindings_.addAll(other.bindings_); } onChanged(); } } else { if (!other.bindings_.isEmpty()) { if (bindingsBuilder_.isEmpty()) { bindingsBuilder_.dispose(); bindingsBuilder_ = null; bindings_ = other.bindings_; bitField0_ = (bitField0_ & ~0x00000002); bindingsBuilder_ = nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBindingsFieldBuilder() : null; } else { bindingsBuilder_.addAllMessages(other.bindings_); } } } if (other.getEtag() != nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY) { setEtag(other.getEtag()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { nl.topicus.jdbc.shaded.com.google.iam.v1.Policy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (nl.topicus.jdbc.shaded.com.google.iam.v1.Policy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int version_ ; /** *
     * Version of the `Policy`. The default version is 0.
     * 
* * int32 version = 1; */ public int getVersion() { return version_; } /** *
     * Version of the `Policy`. The default version is 0.
     * 
* * int32 version = 1; */ public Builder setVersion(int value) { version_ = value; onChanged(); return this; } /** *
     * Version of the `Policy`. The default version is 0.
     * 
* * int32 version = 1; */ public Builder clearVersion() { version_ = 0; onChanged(); return this; } private java.util.List bindings_ = java.util.Collections.emptyList(); private void ensureBindingsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { bindings_ = new java.util.ArrayList(bindings_); bitField0_ |= 0x00000002; } } private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.iam.v1.Binding, nl.topicus.jdbc.shaded.com.google.iam.v1.Binding.Builder, nl.topicus.jdbc.shaded.com.google.iam.v1.BindingOrBuilder> bindingsBuilder_; /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public java.util.List getBindingsList() { if (bindingsBuilder_ == null) { return java.util.Collections.unmodifiableList(bindings_); } else { return bindingsBuilder_.getMessageList(); } } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public int getBindingsCount() { if (bindingsBuilder_ == null) { return bindings_.size(); } else { return bindingsBuilder_.getCount(); } } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public nl.topicus.jdbc.shaded.com.google.iam.v1.Binding getBindings(int index) { if (bindingsBuilder_ == null) { return bindings_.get(index); } else { return bindingsBuilder_.getMessage(index); } } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public Builder setBindings( int index, nl.topicus.jdbc.shaded.com.google.iam.v1.Binding value) { if (bindingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBindingsIsMutable(); bindings_.set(index, value); onChanged(); } else { bindingsBuilder_.setMessage(index, value); } return this; } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public Builder setBindings( int index, nl.topicus.jdbc.shaded.com.google.iam.v1.Binding.Builder builderForValue) { if (bindingsBuilder_ == null) { ensureBindingsIsMutable(); bindings_.set(index, builderForValue.build()); onChanged(); } else { bindingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public Builder addBindings(nl.topicus.jdbc.shaded.com.google.iam.v1.Binding value) { if (bindingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBindingsIsMutable(); bindings_.add(value); onChanged(); } else { bindingsBuilder_.addMessage(value); } return this; } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public Builder addBindings( int index, nl.topicus.jdbc.shaded.com.google.iam.v1.Binding value) { if (bindingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBindingsIsMutable(); bindings_.add(index, value); onChanged(); } else { bindingsBuilder_.addMessage(index, value); } return this; } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public Builder addBindings( nl.topicus.jdbc.shaded.com.google.iam.v1.Binding.Builder builderForValue) { if (bindingsBuilder_ == null) { ensureBindingsIsMutable(); bindings_.add(builderForValue.build()); onChanged(); } else { bindingsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public Builder addBindings( int index, nl.topicus.jdbc.shaded.com.google.iam.v1.Binding.Builder builderForValue) { if (bindingsBuilder_ == null) { ensureBindingsIsMutable(); bindings_.add(index, builderForValue.build()); onChanged(); } else { bindingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public Builder addAllBindings( java.lang.Iterable values) { if (bindingsBuilder_ == null) { ensureBindingsIsMutable(); nl.topicus.jdbc.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll( values, bindings_); onChanged(); } else { bindingsBuilder_.addAllMessages(values); } return this; } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public Builder clearBindings() { if (bindingsBuilder_ == null) { bindings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { bindingsBuilder_.clear(); } return this; } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public Builder removeBindings(int index) { if (bindingsBuilder_ == null) { ensureBindingsIsMutable(); bindings_.remove(index); onChanged(); } else { bindingsBuilder_.remove(index); } return this; } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public nl.topicus.jdbc.shaded.com.google.iam.v1.Binding.Builder getBindingsBuilder( int index) { return getBindingsFieldBuilder().getBuilder(index); } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public nl.topicus.jdbc.shaded.com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder( int index) { if (bindingsBuilder_ == null) { return bindings_.get(index); } else { return bindingsBuilder_.getMessageOrBuilder(index); } } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public java.util.List getBindingsOrBuilderList() { if (bindingsBuilder_ != null) { return bindingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(bindings_); } } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public nl.topicus.jdbc.shaded.com.google.iam.v1.Binding.Builder addBindingsBuilder() { return getBindingsFieldBuilder().addBuilder( nl.topicus.jdbc.shaded.com.google.iam.v1.Binding.getDefaultInstance()); } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public nl.topicus.jdbc.shaded.com.google.iam.v1.Binding.Builder addBindingsBuilder( int index) { return getBindingsFieldBuilder().addBuilder( index, nl.topicus.jdbc.shaded.com.google.iam.v1.Binding.getDefaultInstance()); } /** *
     * Associates a list of `members` to a `role`.
     * Multiple `bindings` must not be specified for the same `role`.
     * `bindings` with no members will result in an error.
     * 
* * repeated .google.iam.v1.Binding bindings = 4; */ public java.util.List getBindingsBuilderList() { return getBindingsFieldBuilder().getBuilderList(); } private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.iam.v1.Binding, nl.topicus.jdbc.shaded.com.google.iam.v1.Binding.Builder, nl.topicus.jdbc.shaded.com.google.iam.v1.BindingOrBuilder> getBindingsFieldBuilder() { if (bindingsBuilder_ == null) { bindingsBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.iam.v1.Binding, nl.topicus.jdbc.shaded.com.google.iam.v1.Binding.Builder, nl.topicus.jdbc.shaded.com.google.iam.v1.BindingOrBuilder>( bindings_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); bindings_ = null; } return bindingsBuilder_; } private nl.topicus.jdbc.shaded.com.google.protobuf.ByteString etag_ = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY; /** *
     * `etag` is used for optimistic concurrency control as a way to help
     * prevent simultaneous updates of a policy from overwriting each other.
     * It is strongly suggested that systems make use of the `etag` in the
     * read-modify-write cycle to perform policy updates in order to avoid race
     * conditions: An `etag` is returned in the response to `getIamPolicy`, and
     * systems are expected to put that etag in the request to `setIamPolicy` to
     * ensure that their change will be applied to the same version of the policy.
     * If no `etag` is provided in the call to `setIamPolicy`, then the existing
     * policy is overwritten blindly.
     * 
* * bytes etag = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getEtag() { return etag_; } /** *
     * `etag` is used for optimistic concurrency control as a way to help
     * prevent simultaneous updates of a policy from overwriting each other.
     * It is strongly suggested that systems make use of the `etag` in the
     * read-modify-write cycle to perform policy updates in order to avoid race
     * conditions: An `etag` is returned in the response to `getIamPolicy`, and
     * systems are expected to put that etag in the request to `setIamPolicy` to
     * ensure that their change will be applied to the same version of the policy.
     * If no `etag` is provided in the call to `setIamPolicy`, then the existing
     * policy is overwritten blindly.
     * 
* * bytes etag = 3; */ public Builder setEtag(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } etag_ = value; onChanged(); return this; } /** *
     * `etag` is used for optimistic concurrency control as a way to help
     * prevent simultaneous updates of a policy from overwriting each other.
     * It is strongly suggested that systems make use of the `etag` in the
     * read-modify-write cycle to perform policy updates in order to avoid race
     * conditions: An `etag` is returned in the response to `getIamPolicy`, and
     * systems are expected to put that etag in the request to `setIamPolicy` to
     * ensure that their change will be applied to the same version of the policy.
     * If no `etag` is provided in the call to `setIamPolicy`, then the existing
     * policy is overwritten blindly.
     * 
* * bytes etag = 3; */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } public final Builder setUnknownFields( final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.iam.v1.Policy) } // @@protoc_insertion_point(class_scope:google.iam.v1.Policy) private static final nl.topicus.jdbc.shaded.com.google.iam.v1.Policy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.iam.v1.Policy(); } public static nl.topicus.jdbc.shaded.com.google.iam.v1.Policy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final nl.topicus.jdbc.shaded.com.google.protobuf.Parser PARSER = new nl.topicus.jdbc.shaded.com.google.protobuf.AbstractParser() { public Policy parsePartialFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return new Policy(input, extensionRegistry); } }; public static nl.topicus.jdbc.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public nl.topicus.jdbc.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } public nl.topicus.jdbc.shaded.com.google.iam.v1.Policy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy