Class AuthorizationPolicy.Rule

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

public static final class AuthorizationPolicy.Rule extends com.google.protobuf.GeneratedMessage implements AuthorizationPolicy.RuleOrBuilder
 Specification of rules.
 
Protobuf type google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule
See Also:
  • Field Details

    • SOURCES_FIELD_NUMBER

      public static final int SOURCES_FIELD_NUMBER
      See Also:
    • DESTINATIONS_FIELD_NUMBER

      public static final int DESTINATIONS_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
    • getSourcesList

      public List<AuthorizationPolicy.Rule.Source> getSourcesList()
       Optional. List of attributes for the traffic source. All of the sources
       must match. A source is a match if both principals and ip_blocks match.
       If not set, the action specified in the 'action' field will be applied
       without any rule checks for the source.
       
      repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourcesList in interface AuthorizationPolicy.RuleOrBuilder
    • getSourcesOrBuilderList

      public List<? extends AuthorizationPolicy.Rule.SourceOrBuilder> getSourcesOrBuilderList()
       Optional. List of attributes for the traffic source. All of the sources
       must match. A source is a match if both principals and ip_blocks match.
       If not set, the action specified in the 'action' field will be applied
       without any rule checks for the source.
       
      repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourcesOrBuilderList in interface AuthorizationPolicy.RuleOrBuilder
    • getSourcesCount

      public int getSourcesCount()
       Optional. List of attributes for the traffic source. All of the sources
       must match. A source is a match if both principals and ip_blocks match.
       If not set, the action specified in the 'action' field will be applied
       without any rule checks for the source.
       
      repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourcesCount in interface AuthorizationPolicy.RuleOrBuilder
    • getSources

      public AuthorizationPolicy.Rule.Source getSources(int index)
       Optional. List of attributes for the traffic source. All of the sources
       must match. A source is a match if both principals and ip_blocks match.
       If not set, the action specified in the 'action' field will be applied
       without any rule checks for the source.
       
      repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSources in interface AuthorizationPolicy.RuleOrBuilder
    • getSourcesOrBuilder

      public AuthorizationPolicy.Rule.SourceOrBuilder getSourcesOrBuilder(int index)
       Optional. List of attributes for the traffic source. All of the sources
       must match. A source is a match if both principals and ip_blocks match.
       If not set, the action specified in the 'action' field will be applied
       without any rule checks for the source.
       
      repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourcesOrBuilder in interface AuthorizationPolicy.RuleOrBuilder
    • getDestinationsList

      public List<AuthorizationPolicy.Rule.Destination> getDestinationsList()
       Optional. List of attributes for the traffic destination. All of the
       destinations must match. A destination is a match if a request matches
       all the specified hosts, ports, methods and headers. If not set, the
       action specified in the 'action' field will be applied without any rule
       checks for the destination.
       
      repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationsList in interface AuthorizationPolicy.RuleOrBuilder
    • getDestinationsOrBuilderList

      public List<? extends AuthorizationPolicy.Rule.DestinationOrBuilder> getDestinationsOrBuilderList()
       Optional. List of attributes for the traffic destination. All of the
       destinations must match. A destination is a match if a request matches
       all the specified hosts, ports, methods and headers. If not set, the
       action specified in the 'action' field will be applied without any rule
       checks for the destination.
       
      repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationsOrBuilderList in interface AuthorizationPolicy.RuleOrBuilder
    • getDestinationsCount

      public int getDestinationsCount()
       Optional. List of attributes for the traffic destination. All of the
       destinations must match. A destination is a match if a request matches
       all the specified hosts, ports, methods and headers. If not set, the
       action specified in the 'action' field will be applied without any rule
       checks for the destination.
       
      repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationsCount in interface AuthorizationPolicy.RuleOrBuilder
    • getDestinations

      public AuthorizationPolicy.Rule.Destination getDestinations(int index)
       Optional. List of attributes for the traffic destination. All of the
       destinations must match. A destination is a match if a request matches
       all the specified hosts, ports, methods and headers. If not set, the
       action specified in the 'action' field will be applied without any rule
       checks for the destination.
       
      repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinations in interface AuthorizationPolicy.RuleOrBuilder
    • getDestinationsOrBuilder

      public AuthorizationPolicy.Rule.DestinationOrBuilder getDestinationsOrBuilder(int index)
       Optional. List of attributes for the traffic destination. All of the
       destinations must match. A destination is a match if a request matches
       all the specified hosts, ports, methods and headers. If not set, the
       action specified in the 'action' field will be applied without any rule
       checks for the destination.
       
      repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationsOrBuilder in interface AuthorizationPolicy.RuleOrBuilder
    • 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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static AuthorizationPolicy.Rule 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

      public AuthorizationPolicy.Rule.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.Builder newBuilder()
    • newBuilder

      public static AuthorizationPolicy.Rule.Builder newBuilder(AuthorizationPolicy.Rule prototype)
    • toBuilder

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

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

      public static AuthorizationPolicy.Rule getDefaultInstance()
    • parser

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

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