code: @BetaApi
    public final SecurityPolicyRule getRuleSecurityPolicy(Integer priority, String securityPolicy) {
  
      GetRuleSecurityPolicyHttpRequest request =
          GetRuleSecurityPolicyHttpRequest.newBuilder()
              .setPriority(priority)
              .setSecurityPolicy(securityPolicy)
              .build();
      return getRuleSecurityPolicy(request);
    }
docs: Gets a rule at the specified priority.
  
  <p>Sample code:
  
  <pre><code>
  try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) {
  Integer priority = 0;
  ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
  SecurityPolicyRule response = securityPolicyClient.getRuleSecurityPolicy(priority, securityPolicy.toString());
  }
  </code></pre>
  
  @param priority The priority of the rule to get from the security policy.
  @param securityPolicy Name of the security policy to which the queried rule belongs.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails