code: @BetaApi
    public final Operation patchRuleSecurityPolicy(
        Integer priority,
        ProjectGlobalSecurityPolicyName securityPolicy,
        SecurityPolicyRule securityPolicyRuleResource) {
  
      PatchRuleSecurityPolicyHttpRequest request =
          PatchRuleSecurityPolicyHttpRequest.newBuilder()
              .setPriority(priority)
              .setSecurityPolicy(securityPolicy == null ? null : securityPolicy.toString())
              .setSecurityPolicyRuleResource(securityPolicyRuleResource)
              .build();
      return patchRuleSecurityPolicy(request);
    }
docs: Patches 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 securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build();
  Operation response = securityPolicyClient.patchRuleSecurityPolicy(priority, securityPolicy, securityPolicyRuleResource);
  }
  </code></pre>
  
  @param priority The priority of the rule to patch.
  @param securityPolicy Name of the security policy to update.
  @param securityPolicyRuleResource Represents a rule that describes one or more match conditions
  along with the action to be taken when traffic matches this condition (allow or deny).
  @throws com.google.api.gax.rpc.ApiException if the remote call fails