Class Binding

java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Binding,Binding.Builder>
com.google.iam.v1.Binding
All Implemented Interfaces:
BindingOrBuilder, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder

public final class Binding extends com.google.protobuf.GeneratedMessageLite<Binding,Binding.Builder> implements BindingOrBuilder
 Associates `members`, or principals, with a `role`.
 
Protobuf type google.iam.v1.Binding
  • 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.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    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.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    The condition that is associated with this binding.
    static Binding
     
    getMembers(int index)
    Specifies the principals requesting access for a Google Cloud resource.
    com.google.protobuf.ByteString
    getMembersBytes(int index)
    Specifies the principals requesting access for a Google Cloud resource.
    int
    Specifies the principals requesting access for a Google Cloud resource.
    Specifies the principals requesting access for a Google Cloud resource.
    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.
    boolean
    The condition that is associated with this binding.
     
    newBuilder(Binding prototype)
     
    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>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    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.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

  • Method Details

    • 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 [json_name = "role"];
      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 [json_name = "role"];
      Specified by:
      getRoleBytes in interface BindingOrBuilder
      Returns:
      The bytes for role.
    • getMembersList

      public List<String> getMembersList()
       Specifies the principals requesting access for a Google Cloud 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 [json_name = "members"];
      Specified by:
      getMembersList in interface BindingOrBuilder
      Returns:
      A list containing the members.
    • getMembersCount

      public int getMembersCount()
       Specifies the principals requesting access for a Google Cloud 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 [json_name = "members"];
      Specified by:
      getMembersCount in interface BindingOrBuilder
      Returns:
      The count of members.
    • getMembers

      public String getMembers(int index)
       Specifies the principals requesting access for a Google Cloud 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 [json_name = "members"];
      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 Google Cloud 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 [json_name = "members"];
      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 [json_name = "condition"];
      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 [json_name = "condition"];
      Specified by:
      getCondition in interface BindingOrBuilder
      Returns:
      The condition.
    • 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
    • newBuilder

      public static Binding.Builder newBuilder()
    • newBuilder

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

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Binding,Binding.Builder>
    • getDefaultInstance

      public static Binding getDefaultInstance()
    • parser

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