Class ClientSideAccessBoundaryRule

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.auth.credentialaccessboundary.protobuf.ClientSideAccessBoundaryRule
All Implemented Interfaces:
ClientSideAccessBoundaryRuleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ClientSideAccessBoundaryRule extends com.google.protobuf.GeneratedMessage implements ClientSideAccessBoundaryRuleOrBuilder
 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 cloud.identity.unifiedauth.proto.ClientSideAccessBoundaryRule
See Also:
  • Field Details

    • AVAILABLE_RESOURCE_FIELD_NUMBER

      public static final int AVAILABLE_RESOURCE_FIELD_NUMBER
      See Also:
    • AVAILABLE_PERMISSIONS_FIELD_NUMBER

      public static final int AVAILABLE_PERMISSIONS_FIELD_NUMBER
      See Also:
    • COMPILED_AVAILABILITY_CONDITION_FIELD_NUMBER

      public static final int COMPILED_AVAILABILITY_CONDITION_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getAvailableResource

      public 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 = { ... }
      Specified by:
      getAvailableResource in interface ClientSideAccessBoundaryRuleOrBuilder
      Returns:
      The availableResource.
    • getAvailableResourceBytes

      public com.google.protobuf.ByteString getAvailableResourceBytes()
       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 = { ... }
      Specified by:
      getAvailableResourceBytes in interface ClientSideAccessBoundaryRuleOrBuilder
      Returns:
      The bytes for availableResource.
    • getAvailablePermissionsList

      public com.google.protobuf.ProtocolStringList getAvailablePermissionsList()
       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;
      Specified by:
      getAvailablePermissionsList in interface ClientSideAccessBoundaryRuleOrBuilder
      Returns:
      A list containing the availablePermissions.
    • getAvailablePermissionsCount

      public 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;
      Specified by:
      getAvailablePermissionsCount in interface ClientSideAccessBoundaryRuleOrBuilder
      Returns:
      The count of availablePermissions.
    • getAvailablePermissions

      public 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;
      Specified by:
      getAvailablePermissions in interface ClientSideAccessBoundaryRuleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The availablePermissions at the given index.
    • getAvailablePermissionsBytes

      public com.google.protobuf.ByteString getAvailablePermissionsBytes(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;
      Specified by:
      getAvailablePermissionsBytes in interface ClientSideAccessBoundaryRuleOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the availablePermissions at the given index.
    • hasCompiledAvailabilityCondition

      public 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;
      Specified by:
      hasCompiledAvailabilityCondition in interface ClientSideAccessBoundaryRuleOrBuilder
      Returns:
      Whether the compiledAvailabilityCondition field is set.
    • getCompiledAvailabilityCondition

      public 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;
      Specified by:
      getCompiledAvailabilityCondition in interface ClientSideAccessBoundaryRuleOrBuilder
      Returns:
      The compiledAvailabilityCondition.
    • getCompiledAvailabilityConditionOrBuilder

      public dev.cel.expr.ExprOrBuilder getCompiledAvailabilityConditionOrBuilder()
       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;
      Specified by:
      getCompiledAvailabilityConditionOrBuilder in interface ClientSideAccessBoundaryRuleOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 ClientSideAccessBoundaryRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static ClientSideAccessBoundaryRule.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ClientSideAccessBoundaryRule.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ClientSideAccessBoundaryRule getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<ClientSideAccessBoundaryRule> 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.GeneratedMessage
    • getDefaultInstanceForType

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