Class PrincipalAccessBoundaryPolicyRule

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.iam.v3beta.PrincipalAccessBoundaryPolicyRule
All Implemented Interfaces:
PrincipalAccessBoundaryPolicyRuleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class PrincipalAccessBoundaryPolicyRule extends com.google.protobuf.GeneratedMessage implements PrincipalAccessBoundaryPolicyRuleOrBuilder
 Principal access boundary policy rule that defines the resource boundary.
 
Protobuf type google.iam.v3beta.PrincipalAccessBoundaryPolicyRule
See Also:
  • Field Details

  • 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
    • getDescription

      public String getDescription()
       Optional. The description of the principal access boundary policy rule.
       Must be less than or equal to 256 characters.
       
      string description = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. The description of the principal access boundary policy rule.
       Must be less than or equal to 256 characters.
       
      string description = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      Returns:
      The bytes for description.
    • getResourcesList

      public com.google.protobuf.ProtocolStringList getResourcesList()
       Required. A list of Resource Manager resources. If a resource is listed in
       the rule, then the rule applies for that resource and its descendants. The
       number of resources in a policy is limited to 500 across all rules in the
       policy.
      
       The following resource types are supported:
      
       * Organizations, such as
       `//cloudresourcemanager.googleapis.com/organizations/123`.
       * Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`.
       * Projects, such as `//cloudresourcemanager.googleapis.com/projects/123`
       or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
       
      repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourcesList in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      Returns:
      A list containing the resources.
    • getResourcesCount

      public int getResourcesCount()
       Required. A list of Resource Manager resources. If a resource is listed in
       the rule, then the rule applies for that resource and its descendants. The
       number of resources in a policy is limited to 500 across all rules in the
       policy.
      
       The following resource types are supported:
      
       * Organizations, such as
       `//cloudresourcemanager.googleapis.com/organizations/123`.
       * Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`.
       * Projects, such as `//cloudresourcemanager.googleapis.com/projects/123`
       or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
       
      repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourcesCount in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      Returns:
      The count of resources.
    • getResources

      public String getResources(int index)
       Required. A list of Resource Manager resources. If a resource is listed in
       the rule, then the rule applies for that resource and its descendants. The
       number of resources in a policy is limited to 500 across all rules in the
       policy.
      
       The following resource types are supported:
      
       * Organizations, such as
       `//cloudresourcemanager.googleapis.com/organizations/123`.
       * Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`.
       * Projects, such as `//cloudresourcemanager.googleapis.com/projects/123`
       or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
       
      repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResources in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The resources at the given index.
    • getResourcesBytes

      public com.google.protobuf.ByteString getResourcesBytes(int index)
       Required. A list of Resource Manager resources. If a resource is listed in
       the rule, then the rule applies for that resource and its descendants. The
       number of resources in a policy is limited to 500 across all rules in the
       policy.
      
       The following resource types are supported:
      
       * Organizations, such as
       `//cloudresourcemanager.googleapis.com/organizations/123`.
       * Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`.
       * Projects, such as `//cloudresourcemanager.googleapis.com/projects/123`
       or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
       
      repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourcesBytes in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the resources at the given index.
    • getEffectValue

      public int getEffectValue()
       Required. The access relationship of principals to the resources in this
       rule.
       
      .google.iam.v3beta.PrincipalAccessBoundaryPolicyRule.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEffectValue in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      Returns:
      The enum numeric value on the wire for effect.
    • getEffect

       Required. The access relationship of principals to the resources in this
       rule.
       
      .google.iam.v3beta.PrincipalAccessBoundaryPolicyRule.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEffect in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      Returns:
      The effect.
    • 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 PrincipalAccessBoundaryPolicyRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static PrincipalAccessBoundaryPolicyRule.Builder newBuilder()
    • newBuilder

    • toBuilder

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

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

      public static PrincipalAccessBoundaryPolicyRule getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<PrincipalAccessBoundaryPolicyRule> 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 PrincipalAccessBoundaryPolicyRule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder