Class Binding

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.iam.v1.Binding
All Implemented Interfaces:
BindingOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class Binding extends com.google.protobuf.GeneratedMessageV3 implements BindingOrBuilder
 Associates `members`, or principals, with a `role`.
 
Protobuf type google.iam.v1.Binding
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Associates `members`, or principals, with a `role`.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    The condition that is associated with this binding.
    The condition that is associated with this binding.
    static Binding
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    getMembers(int index)
    Specifies the principals requesting access for a Cloud Platform resource.
    com.google.protobuf.ByteString
    getMembersBytes(int index)
    Specifies the principals requesting access for a Cloud Platform resource.
    int
    Specifies the principals requesting access for a Cloud Platform resource.
    com.google.protobuf.ProtocolStringList
    Specifies the principals requesting access for a Cloud Platform resource.
    com.google.protobuf.Parser<Binding>
     
    Role that is assigned to the list of `members`, or principals.
    com.google.protobuf.ByteString
    Role that is assigned to the list of `members`, or principals.
    int
     
    boolean
    The condition that is associated with this binding.
    int
     
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Binding prototype)
     
     
    protected Binding.Builder
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static Binding
     
    static Binding
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Binding
    parseFrom(byte[] data)
     
    static Binding
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Binding
    parseFrom(com.google.protobuf.ByteString data)
     
    static Binding
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Binding
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Binding
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Binding
     
    static Binding
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Binding
     
    static Binding
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Binding>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getRole

      public String getRole()
       Role that is assigned to the list of `members`, or principals.
       For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
       
      string role = 1;
      Specified by:
      getRole in interface BindingOrBuilder
      Returns:
      The role.
    • getRoleBytes

      public com.google.protobuf.ByteString getRoleBytes()
       Role that is assigned to the list of `members`, or principals.
       For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
       
      string role = 1;
      Specified by:
      getRoleBytes in interface BindingOrBuilder
      Returns:
      The bytes for role.
    • getMembersList

      public com.google.protobuf.ProtocolStringList getMembersList()
       Specifies the principals requesting access for a Cloud Platform resource.
       `members` can have the following values:
      
       * `allUsers`: A special identifier that represents anyone who is
          on the internet; with or without a Google account.
      
       * `allAuthenticatedUsers`: A special identifier that represents anyone
          who is authenticated with a Google account or a service account.
      
       * `user:{emailid}`: An email address that represents a specific Google
          account. For example, `alice@example.com` .
      
      
       * `serviceAccount:{emailid}`: An email address that represents a service
          account. For example, `my-other-app@appspot.gserviceaccount.com`.
      
       * `group:{emailid}`: An email address that represents a Google group.
          For example, `admins@example.com`.
      
       * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
          identifier) representing a user that has been recently deleted. For
          example, `alice@example.com?uid=123456789012345678901`. If the user is
          recovered, this value reverts to `user:{emailid}` and the recovered user
          retains the role in the binding.
      
       * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
          unique identifier) representing a service account that has been recently
          deleted. For example,
          `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
          If the service account is undeleted, this value reverts to
          `serviceAccount:{emailid}` and the undeleted service account retains the
          role in the binding.
      
       * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
          identifier) representing a Google group that has been recently
          deleted. For example, `admins@example.com?uid=123456789012345678901`. If
          the group is recovered, this value reverts to `group:{emailid}` and the
          recovered group retains the role in the binding.
      
      
       * `domain:{domain}`: The G Suite domain (primary) that represents all the
          users of that domain. For example, `google.com` or `example.com`.
       
      repeated string members = 2;
      Specified by:
      getMembersList in interface BindingOrBuilder
      Returns:
      A list containing the members.
    • getMembersCount

      public int getMembersCount()
       Specifies the principals requesting access for a Cloud Platform resource.
       `members` can have the following values:
      
       * `allUsers`: A special identifier that represents anyone who is
          on the internet; with or without a Google account.
      
       * `allAuthenticatedUsers`: A special identifier that represents anyone
          who is authenticated with a Google account or a service account.
      
       * `user:{emailid}`: An email address that represents a specific Google
          account. For example, `alice@example.com` .
      
      
       * `serviceAccount:{emailid}`: An email address that represents a service
          account. For example, `my-other-app@appspot.gserviceaccount.com`.
      
       * `group:{emailid}`: An email address that represents a Google group.
          For example, `admins@example.com`.
      
       * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
          identifier) representing a user that has been recently deleted. For
          example, `alice@example.com?uid=123456789012345678901`. If the user is
          recovered, this value reverts to `user:{emailid}` and the recovered user
          retains the role in the binding.
      
       * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
          unique identifier) representing a service account that has been recently
          deleted. For example,
          `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
          If the service account is undeleted, this value reverts to
          `serviceAccount:{emailid}` and the undeleted service account retains the
          role in the binding.
      
       * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
          identifier) representing a Google group that has been recently
          deleted. For example, `admins@example.com?uid=123456789012345678901`. If
          the group is recovered, this value reverts to `group:{emailid}` and the
          recovered group retains the role in the binding.
      
      
       * `domain:{domain}`: The G Suite domain (primary) that represents all the
          users of that domain. For example, `google.com` or `example.com`.
       
      repeated string members = 2;
      Specified by:
      getMembersCount in interface BindingOrBuilder
      Returns:
      The count of members.
    • getMembers

      public String getMembers(int index)
       Specifies the principals requesting access for a Cloud Platform resource.
       `members` can have the following values:
      
       * `allUsers`: A special identifier that represents anyone who is
          on the internet; with or without a Google account.
      
       * `allAuthenticatedUsers`: A special identifier that represents anyone
          who is authenticated with a Google account or a service account.
      
       * `user:{emailid}`: An email address that represents a specific Google
          account. For example, `alice@example.com` .
      
      
       * `serviceAccount:{emailid}`: An email address that represents a service
          account. For example, `my-other-app@appspot.gserviceaccount.com`.
      
       * `group:{emailid}`: An email address that represents a Google group.
          For example, `admins@example.com`.
      
       * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
          identifier) representing a user that has been recently deleted. For
          example, `alice@example.com?uid=123456789012345678901`. If the user is
          recovered, this value reverts to `user:{emailid}` and the recovered user
          retains the role in the binding.
      
       * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
          unique identifier) representing a service account that has been recently
          deleted. For example,
          `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
          If the service account is undeleted, this value reverts to
          `serviceAccount:{emailid}` and the undeleted service account retains the
          role in the binding.
      
       * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
          identifier) representing a Google group that has been recently
          deleted. For example, `admins@example.com?uid=123456789012345678901`. If
          the group is recovered, this value reverts to `group:{emailid}` and the
          recovered group retains the role in the binding.
      
      
       * `domain:{domain}`: The G Suite domain (primary) that represents all the
          users of that domain. For example, `google.com` or `example.com`.
       
      repeated string members = 2;
      Specified by:
      getMembers in interface BindingOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The members at the given index.
    • getMembersBytes

      public com.google.protobuf.ByteString getMembersBytes(int index)
       Specifies the principals requesting access for a Cloud Platform resource.
       `members` can have the following values:
      
       * `allUsers`: A special identifier that represents anyone who is
          on the internet; with or without a Google account.
      
       * `allAuthenticatedUsers`: A special identifier that represents anyone
          who is authenticated with a Google account or a service account.
      
       * `user:{emailid}`: An email address that represents a specific Google
          account. For example, `alice@example.com` .
      
      
       * `serviceAccount:{emailid}`: An email address that represents a service
          account. For example, `my-other-app@appspot.gserviceaccount.com`.
      
       * `group:{emailid}`: An email address that represents a Google group.
          For example, `admins@example.com`.
      
       * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
          identifier) representing a user that has been recently deleted. For
          example, `alice@example.com?uid=123456789012345678901`. If the user is
          recovered, this value reverts to `user:{emailid}` and the recovered user
          retains the role in the binding.
      
       * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
          unique identifier) representing a service account that has been recently
          deleted. For example,
          `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
          If the service account is undeleted, this value reverts to
          `serviceAccount:{emailid}` and the undeleted service account retains the
          role in the binding.
      
       * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
          identifier) representing a Google group that has been recently
          deleted. For example, `admins@example.com?uid=123456789012345678901`. If
          the group is recovered, this value reverts to `group:{emailid}` and the
          recovered group retains the role in the binding.
      
      
       * `domain:{domain}`: The G Suite domain (primary) that represents all the
          users of that domain. For example, `google.com` or `example.com`.
       
      repeated string members = 2;
      Specified by:
      getMembersBytes in interface BindingOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the members at the given index.
    • hasCondition

      public boolean hasCondition()
       The condition that is associated with this binding.
      
       If the condition evaluates to `true`, then this binding applies to the
       current request.
      
       If the condition evaluates to `false`, then this binding does not apply to
       the current request. However, a different role binding might grant the same
       role to one or more of the principals in this binding.
      
       To learn which resources support conditions in their IAM policies, see the
       [IAM
       documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
       
      .google.type.Expr condition = 3;
      Specified by:
      hasCondition in interface BindingOrBuilder
      Returns:
      Whether the condition field is set.
    • getCondition

      public Expr getCondition()
       The condition that is associated with this binding.
      
       If the condition evaluates to `true`, then this binding applies to the
       current request.
      
       If the condition evaluates to `false`, then this binding does not apply to
       the current request. However, a different role binding might grant the same
       role to one or more of the principals in this binding.
      
       To learn which resources support conditions in their IAM policies, see the
       [IAM
       documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
       
      .google.type.Expr condition = 3;
      Specified by:
      getCondition in interface BindingOrBuilder
      Returns:
      The condition.
    • getConditionOrBuilder

      public ExprOrBuilder getConditionOrBuilder()
       The condition that is associated with this binding.
      
       If the condition evaluates to `true`, then this binding applies to the
       current request.
      
       If the condition evaluates to `false`, then this binding does not apply to
       the current request. However, a different role binding might grant the same
       role to one or more of the principals in this binding.
      
       To learn which resources support conditions in their IAM policies, see the
       [IAM
       documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
       
      .google.type.Expr condition = 3;
      Specified by:
      getConditionOrBuilder in interface BindingOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Binding parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Binding parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Binding parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Binding parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Binding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Binding parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Binding parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Binding parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Binding parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Binding parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Binding parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Binding parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Binding.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Binding.Builder newBuilder()
    • newBuilder

      public static Binding.Builder newBuilder(Binding prototype)
    • toBuilder

      public Binding.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Binding.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Binding getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Binding> parser()
    • getParserForType

      public com.google.protobuf.Parser<Binding> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Binding getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder