Class AuthorizationPolicy.Rule.Source

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source
All Implemented Interfaces:
AuthorizationPolicy.Rule.SourceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
AuthorizationPolicy.Rule

public static final class AuthorizationPolicy.Rule.Source extends com.google.protobuf.GeneratedMessage implements AuthorizationPolicy.Rule.SourceOrBuilder
 Specification of traffic source attributes.
 
Protobuf type google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source
See Also:
  • Field Details

    • PRINCIPALS_FIELD_NUMBER

      public static final int PRINCIPALS_FIELD_NUMBER
      See Also:
    • IP_BLOCKS_FIELD_NUMBER

      public static final int IP_BLOCKS_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
    • getPrincipalsList

      public com.google.protobuf.ProtocolStringList getPrincipalsList()
       Optional. List of peer identities to match for authorization. At least
       one principal should match. Each peer can be an exact match, or a
       prefix match (example, "namespace/*") or a suffix match (example,
       "*/service-account") or a presence match "*". Authorization based on
       the principal name without certificate validation (configured by
       ServerTlsPolicy resource) is considered insecure.
       
      repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPrincipalsList in interface AuthorizationPolicy.Rule.SourceOrBuilder
      Returns:
      A list containing the principals.
    • getPrincipalsCount

      public int getPrincipalsCount()
       Optional. List of peer identities to match for authorization. At least
       one principal should match. Each peer can be an exact match, or a
       prefix match (example, "namespace/*") or a suffix match (example,
       "*/service-account") or a presence match "*". Authorization based on
       the principal name without certificate validation (configured by
       ServerTlsPolicy resource) is considered insecure.
       
      repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPrincipalsCount in interface AuthorizationPolicy.Rule.SourceOrBuilder
      Returns:
      The count of principals.
    • getPrincipals

      public String getPrincipals(int index)
       Optional. List of peer identities to match for authorization. At least
       one principal should match. Each peer can be an exact match, or a
       prefix match (example, "namespace/*") or a suffix match (example,
       "*/service-account") or a presence match "*". Authorization based on
       the principal name without certificate validation (configured by
       ServerTlsPolicy resource) is considered insecure.
       
      repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPrincipals in interface AuthorizationPolicy.Rule.SourceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The principals at the given index.
    • getPrincipalsBytes

      public com.google.protobuf.ByteString getPrincipalsBytes(int index)
       Optional. List of peer identities to match for authorization. At least
       one principal should match. Each peer can be an exact match, or a
       prefix match (example, "namespace/*") or a suffix match (example,
       "*/service-account") or a presence match "*". Authorization based on
       the principal name without certificate validation (configured by
       ServerTlsPolicy resource) is considered insecure.
       
      repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPrincipalsBytes in interface AuthorizationPolicy.Rule.SourceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the principals at the given index.
    • getIpBlocksList

      public com.google.protobuf.ProtocolStringList getIpBlocksList()
       Optional. List of CIDR ranges to match based on source IP address. At
       least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
       (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
       alone should be avoided. The IP addresses of any load balancers or
       proxies should be considered untrusted.
       
      repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpBlocksList in interface AuthorizationPolicy.Rule.SourceOrBuilder
      Returns:
      A list containing the ipBlocks.
    • getIpBlocksCount

      public int getIpBlocksCount()
       Optional. List of CIDR ranges to match based on source IP address. At
       least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
       (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
       alone should be avoided. The IP addresses of any load balancers or
       proxies should be considered untrusted.
       
      repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpBlocksCount in interface AuthorizationPolicy.Rule.SourceOrBuilder
      Returns:
      The count of ipBlocks.
    • getIpBlocks

      public String getIpBlocks(int index)
       Optional. List of CIDR ranges to match based on source IP address. At
       least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
       (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
       alone should be avoided. The IP addresses of any load balancers or
       proxies should be considered untrusted.
       
      repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpBlocks in interface AuthorizationPolicy.Rule.SourceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ipBlocks at the given index.
    • getIpBlocksBytes

      public com.google.protobuf.ByteString getIpBlocksBytes(int index)
       Optional. List of CIDR ranges to match based on source IP address. At
       least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
       (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
       alone should be avoided. The IP addresses of any load balancers or
       proxies should be considered untrusted.
       
      repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpBlocksBytes in interface AuthorizationPolicy.Rule.SourceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ipBlocks at the given index.
    • 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 AuthorizationPolicy.Rule.Source parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static AuthorizationPolicy.Rule.Source parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static AuthorizationPolicy.Rule.Source parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static AuthorizationPolicy.Rule.Source.Builder newBuilder()
    • newBuilder

    • toBuilder

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

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

      public static AuthorizationPolicy.Rule.Source getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AuthorizationPolicy.Rule.Source> parser()
    • getParserForType

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