Interface AuthorizationPolicy.Rule.DestinationOrBuilder

    • Method Detail

      • getHostsList

        List<String> getHostsList()
         Required. List of host names to match. Matched against the ":authority"
         header in http requests. At least one host should match. Each host can
         be an exact match, or a prefix match (example "mydomain.*") or a suffix
         match (example "*.myorg.com") or a presence (any) match "*".
         
        repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        A list containing the hosts.
      • getHostsCount

        int getHostsCount()
         Required. List of host names to match. Matched against the ":authority"
         header in http requests. At least one host should match. Each host can
         be an exact match, or a prefix match (example "mydomain.*") or a suffix
         match (example "*.myorg.com") or a presence (any) match "*".
         
        repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The count of hosts.
      • getHosts

        String getHosts​(int index)
         Required. List of host names to match. Matched against the ":authority"
         header in http requests. At least one host should match. Each host can
         be an exact match, or a prefix match (example "mydomain.*") or a suffix
         match (example "*.myorg.com") or a presence (any) match "*".
         
        repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        index - The index of the element to return.
        Returns:
        The hosts at the given index.
      • getHostsBytes

        com.google.protobuf.ByteString getHostsBytes​(int index)
         Required. List of host names to match. Matched against the ":authority"
         header in http requests. At least one host should match. Each host can
         be an exact match, or a prefix match (example "mydomain.*") or a suffix
         match (example "*.myorg.com") or a presence (any) match "*".
         
        repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the hosts at the given index.
      • getPortsList

        List<Integer> getPortsList()
         Required. List of destination ports to match. At least one port should
         match.
         
        repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        A list containing the ports.
      • getPortsCount

        int getPortsCount()
         Required. List of destination ports to match. At least one port should
         match.
         
        repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The count of ports.
      • getPorts

        int getPorts​(int index)
         Required. List of destination ports to match. At least one port should
         match.
         
        repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        index - The index of the element to return.
        Returns:
        The ports at the given index.
      • getMethodsList

        List<String> getMethodsList()
         Optional. A list of HTTP methods to match. At least one method should
         match. Should not be set for gRPC services.
         
        repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        A list containing the methods.
      • getMethodsCount

        int getMethodsCount()
         Optional. A list of HTTP methods to match. At least one method should
         match. Should not be set for gRPC services.
         
        repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The count of methods.
      • getMethods

        String getMethods​(int index)
         Optional. A list of HTTP methods to match. At least one method should
         match. Should not be set for gRPC services.
         
        repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index of the element to return.
        Returns:
        The methods at the given index.
      • getMethodsBytes

        com.google.protobuf.ByteString getMethodsBytes​(int index)
         Optional. A list of HTTP methods to match. At least one method should
         match. Should not be set for gRPC services.
         
        repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the methods at the given index.
      • hasHttpHeaderMatch

        boolean hasHttpHeaderMatch()
         Optional. Match against key:value pair in http header. Provides a
         flexible match based on HTTP headers, for potentially advanced use
         cases. At least one header should match. Avoid using header matches to
         make authorization decisions unless there is a strong guarantee that
         requests arrive through a trusted client or proxy.
         
        .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        Whether the httpHeaderMatch field is set.
      • getHttpHeaderMatch

        AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getHttpHeaderMatch()
         Optional. Match against key:value pair in http header. Provides a
         flexible match based on HTTP headers, for potentially advanced use
         cases. At least one header should match. Avoid using header matches to
         make authorization decisions unless there is a strong guarantee that
         requests arrive through a trusted client or proxy.
         
        .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The httpHeaderMatch.
      • getHttpHeaderMatchOrBuilder

        AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder getHttpHeaderMatchOrBuilder()
         Optional. Match against key:value pair in http header. Provides a
         flexible match based on HTTP headers, for potentially advanced use
         cases. At least one header should match. Avoid using header matches to
         make authorization decisions unless there is a strong guarantee that
         requests arrive through a trusted client or proxy.
         
        .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];