Class AuthorizationPolicy.Rule

    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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
      • newBuilderForType

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

        public AuthorizationPolicy.Rule.Builder 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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