Class AuthzPolicy.AuthzRule.From.RequestSource

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource
All Implemented Interfaces:
AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
AuthzPolicy.AuthzRule.From

public static final class AuthzPolicy.AuthzRule.From.RequestSource extends com.google.protobuf.GeneratedMessage implements AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
 Describes the properties of a single source.
 
Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource
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:
    • RESOURCES_FIELD_NUMBER

      public static final int RESOURCES_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 List<AuthzPolicy.AuthzRule.Principal> getPrincipalsList()
       Optional. A list of identities derived from the client's certificate.
       This field will not match on a request unless frontend mutual TLS is
       enabled for the forwarding rule or Gateway and the client certificate
       has been successfully validated by mTLS.
       Each identity is a string whose value is matched against a list of
       URI SANs, DNS Name SANs, or the common name in the client's
       certificate. A match happens when any principal matches with the
       rule. Limited to 50 principals per Authorization Policy for regional
       internal Application Load Balancers, regional external Application
       Load Balancers, cross-region internal Application Load Balancers, and
       Cloud Service Mesh. This field is not supported for global external
       Application Load Balancers.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPrincipalsList in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • getPrincipalsOrBuilderList

      public List<? extends AuthzPolicy.AuthzRule.PrincipalOrBuilder> getPrincipalsOrBuilderList()
       Optional. A list of identities derived from the client's certificate.
       This field will not match on a request unless frontend mutual TLS is
       enabled for the forwarding rule or Gateway and the client certificate
       has been successfully validated by mTLS.
       Each identity is a string whose value is matched against a list of
       URI SANs, DNS Name SANs, or the common name in the client's
       certificate. A match happens when any principal matches with the
       rule. Limited to 50 principals per Authorization Policy for regional
       internal Application Load Balancers, regional external Application
       Load Balancers, cross-region internal Application Load Balancers, and
       Cloud Service Mesh. This field is not supported for global external
       Application Load Balancers.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPrincipalsOrBuilderList in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • getPrincipalsCount

      public int getPrincipalsCount()
       Optional. A list of identities derived from the client's certificate.
       This field will not match on a request unless frontend mutual TLS is
       enabled for the forwarding rule or Gateway and the client certificate
       has been successfully validated by mTLS.
       Each identity is a string whose value is matched against a list of
       URI SANs, DNS Name SANs, or the common name in the client's
       certificate. A match happens when any principal matches with the
       rule. Limited to 50 principals per Authorization Policy for regional
       internal Application Load Balancers, regional external Application
       Load Balancers, cross-region internal Application Load Balancers, and
       Cloud Service Mesh. This field is not supported for global external
       Application Load Balancers.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPrincipalsCount in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • getPrincipals

      public AuthzPolicy.AuthzRule.Principal getPrincipals(int index)
       Optional. A list of identities derived from the client's certificate.
       This field will not match on a request unless frontend mutual TLS is
       enabled for the forwarding rule or Gateway and the client certificate
       has been successfully validated by mTLS.
       Each identity is a string whose value is matched against a list of
       URI SANs, DNS Name SANs, or the common name in the client's
       certificate. A match happens when any principal matches with the
       rule. Limited to 50 principals per Authorization Policy for regional
       internal Application Load Balancers, regional external Application
       Load Balancers, cross-region internal Application Load Balancers, and
       Cloud Service Mesh. This field is not supported for global external
       Application Load Balancers.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPrincipals in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • getPrincipalsOrBuilder

      public AuthzPolicy.AuthzRule.PrincipalOrBuilder getPrincipalsOrBuilder(int index)
       Optional. A list of identities derived from the client's certificate.
       This field will not match on a request unless frontend mutual TLS is
       enabled for the forwarding rule or Gateway and the client certificate
       has been successfully validated by mTLS.
       Each identity is a string whose value is matched against a list of
       URI SANs, DNS Name SANs, or the common name in the client's
       certificate. A match happens when any principal matches with the
       rule. Limited to 50 principals per Authorization Policy for regional
       internal Application Load Balancers, regional external Application
       Load Balancers, cross-region internal Application Load Balancers, and
       Cloud Service Mesh. This field is not supported for global external
       Application Load Balancers.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPrincipalsOrBuilder in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • getIpBlocksList

      public List<AuthzPolicy.AuthzRule.IpBlock> getIpBlocksList()
       Optional. A list of IP addresses or IP address ranges to match
       against the source IP address of the request. Limited to 10 ip_blocks
       per Authorization Policy
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpBlocksList in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • getIpBlocksOrBuilderList

      public List<? extends AuthzPolicy.AuthzRule.IpBlockOrBuilder> getIpBlocksOrBuilderList()
       Optional. A list of IP addresses or IP address ranges to match
       against the source IP address of the request. Limited to 10 ip_blocks
       per Authorization Policy
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpBlocksOrBuilderList in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • getIpBlocksCount

      public int getIpBlocksCount()
       Optional. A list of IP addresses or IP address ranges to match
       against the source IP address of the request. Limited to 10 ip_blocks
       per Authorization Policy
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpBlocksCount in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • getIpBlocks

      public AuthzPolicy.AuthzRule.IpBlock getIpBlocks(int index)
       Optional. A list of IP addresses or IP address ranges to match
       against the source IP address of the request. Limited to 10 ip_blocks
       per Authorization Policy
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpBlocks in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • getIpBlocksOrBuilder

      public AuthzPolicy.AuthzRule.IpBlockOrBuilder getIpBlocksOrBuilder(int index)
       Optional. A list of IP addresses or IP address ranges to match
       against the source IP address of the request. Limited to 10 ip_blocks
       per Authorization Policy
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpBlocksOrBuilder in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • getResourcesList

      public List<AuthzPolicy.AuthzRule.RequestResource> getResourcesList()
       Optional. A list of resources to match against the resource of the
       source VM of a request. Limited to 10 resources per Authorization
       Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResourcesList in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • getResourcesOrBuilderList

      public List<? extends AuthzPolicy.AuthzRule.RequestResourceOrBuilder> getResourcesOrBuilderList()
       Optional. A list of resources to match against the resource of the
       source VM of a request. Limited to 10 resources per Authorization
       Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResourcesOrBuilderList in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • getResourcesCount

      public int getResourcesCount()
       Optional. A list of resources to match against the resource of the
       source VM of a request. Limited to 10 resources per Authorization
       Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResourcesCount in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • getResources

      public AuthzPolicy.AuthzRule.RequestResource getResources(int index)
       Optional. A list of resources to match against the resource of the
       source VM of a request. Limited to 10 resources per Authorization
       Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResources in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • getResourcesOrBuilder

      public AuthzPolicy.AuthzRule.RequestResourceOrBuilder getResourcesOrBuilder(int index)
       Optional. A list of resources to match against the resource of the
       source VM of a request. Limited to 10 resources per Authorization
       Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResourcesOrBuilder in interface AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder
    • 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 AuthzPolicy.AuthzRule.From.RequestSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.From.RequestSource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.From.RequestSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.From.RequestSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.From.RequestSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

      public static AuthzPolicy.AuthzRule.From.RequestSource parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static AuthzPolicy.AuthzRule.From.RequestSource parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static AuthzPolicy.AuthzRule.From.RequestSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

    • newBuilder

    • toBuilder

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

      protected AuthzPolicy.AuthzRule.From.RequestSource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AuthzPolicy.AuthzRule.From.RequestSource getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AuthzPolicy.AuthzRule.From.RequestSource> parser()
    • getParserForType

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