Class AuthorizationPolicy.Rule.Source

    • 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
      • 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.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.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
      • 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
      • toBuilder

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

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