io.envoyproxy.envoy.config.rbac.v2.RBACOrBuilder Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/rbac/v2/rbac.proto
package io.envoyproxy.envoy.config.rbac.v2;
public interface RBACOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.rbac.v2.RBAC)
com.google.protobuf.MessageOrBuilder {
/**
*
* The action to take if a policy matches. The request is allowed if and only if:
* * `action` is "ALLOWED" and at least one policy matches
* * `action` is "DENY" and none of the policies match
*
*
* .envoy.config.rbac.v2.RBAC.Action action = 1;
* @return The enum numeric value on the wire for action.
*/
int getActionValue();
/**
*
* The action to take if a policy matches. The request is allowed if and only if:
* * `action` is "ALLOWED" and at least one policy matches
* * `action` is "DENY" and none of the policies match
*
*
* .envoy.config.rbac.v2.RBAC.Action action = 1;
* @return The action.
*/
io.envoyproxy.envoy.config.rbac.v2.RBAC.Action getAction();
/**
*
* Maps from policy name to policy. A match occurs when at least one policy matches the request.
*
*
* map<string, .envoy.config.rbac.v2.Policy> policies = 2;
*/
int getPoliciesCount();
/**
*
* Maps from policy name to policy. A match occurs when at least one policy matches the request.
*
*
* map<string, .envoy.config.rbac.v2.Policy> policies = 2;
*/
boolean containsPolicies(
java.lang.String key);
/**
* Use {@link #getPoliciesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getPolicies();
/**
*
* Maps from policy name to policy. A match occurs when at least one policy matches the request.
*
*
* map<string, .envoy.config.rbac.v2.Policy> policies = 2;
*/
java.util.Map
getPoliciesMap();
/**
*
* Maps from policy name to policy. A match occurs when at least one policy matches the request.
*
*
* map<string, .envoy.config.rbac.v2.Policy> policies = 2;
*/
/* nullable */
io.envoyproxy.envoy.config.rbac.v2.Policy getPoliciesOrDefault(
java.lang.String key,
/* nullable */
io.envoyproxy.envoy.config.rbac.v2.Policy defaultValue);
/**
*
* Maps from policy name to policy. A match occurs when at least one policy matches the request.
*
*
* map<string, .envoy.config.rbac.v2.Policy> policies = 2;
*/
io.envoyproxy.envoy.config.rbac.v2.Policy getPoliciesOrThrow(
java.lang.String key);
}