Package dev.cerbos.api.v1.policy
Interface PolicyOuterClass.ResourceRuleOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PolicyOuterClass.ResourceRule,PolicyOuterClass.ResourceRule.Builder
- Enclosing class:
- PolicyOuterClass
public static interface PolicyOuterClass.ResourceRuleOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetActions(int index)repeated string actions = 1 [(.buf.validate.field) = { ...com.google.protobuf.ByteStringgetActionsBytes(int index)repeated string actions = 1 [(.buf.validate.field) = { ...intgetActionsCount()repeated string actions = 1 [(.buf.validate.field) = { ...java.util.List<java.lang.String>getActionsList()repeated string actions = 1 [(.buf.validate.field) = { ...PolicyOuterClass.ConditiongetCondition().cerbos.policy.v1.Condition condition = 4;PolicyOuterClass.ConditionOrBuildergetConditionOrBuilder().cerbos.policy.v1.Condition condition = 4;java.lang.StringgetDerivedRoles(int index)repeated string derived_roles = 2 [(.buf.validate.field) = { ...com.google.protobuf.ByteStringgetDerivedRolesBytes(int index)repeated string derived_roles = 2 [(.buf.validate.field) = { ...intgetDerivedRolesCount()repeated string derived_roles = 2 [(.buf.validate.field) = { ...java.util.List<java.lang.String>getDerivedRolesList()repeated string derived_roles = 2 [(.buf.validate.field) = { ...EffectOuterClass.EffectgetEffect().cerbos.effect.v1.Effect effect = 5 [(.buf.validate.field) = { ...intgetEffectValue().cerbos.effect.v1.Effect effect = 5 [(.buf.validate.field) = { ...java.lang.StringgetName()string name = 6 [(.buf.validate.field) = { ...com.google.protobuf.ByteStringgetNameBytes()string name = 6 [(.buf.validate.field) = { ...PolicyOuterClass.OutputgetOutput().cerbos.policy.v1.Output output = 7;PolicyOuterClass.OutputOrBuildergetOutputOrBuilder().cerbos.policy.v1.Output output = 7;java.lang.StringgetRoles(int index)repeated string roles = 3 [(.buf.validate.field) = { ...com.google.protobuf.ByteStringgetRolesBytes(int index)repeated string roles = 3 [(.buf.validate.field) = { ...intgetRolesCount()repeated string roles = 3 [(.buf.validate.field) = { ...java.util.List<java.lang.String>getRolesList()repeated string roles = 3 [(.buf.validate.field) = { ...booleanhasCondition().cerbos.policy.v1.Condition condition = 4;booleanhasOutput().cerbos.policy.v1.Output output = 7;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getActionsList
java.util.List<java.lang.String> getActionsList()
repeated string actions = 1 [(.buf.validate.field) = { ... }- Returns:
- A list containing the actions.
-
getActionsCount
int getActionsCount()
repeated string actions = 1 [(.buf.validate.field) = { ... }- Returns:
- The count of actions.
-
getActions
java.lang.String getActions(int index)
repeated string actions = 1 [(.buf.validate.field) = { ... }- Parameters:
index- The index of the element to return.- Returns:
- The actions at the given index.
-
getActionsBytes
com.google.protobuf.ByteString getActionsBytes(int index)
repeated string actions = 1 [(.buf.validate.field) = { ... }- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the actions at the given index.
-
getDerivedRolesList
java.util.List<java.lang.String> getDerivedRolesList()
repeated string derived_roles = 2 [(.buf.validate.field) = { ... }- Returns:
- A list containing the derivedRoles.
-
getDerivedRolesCount
int getDerivedRolesCount()
repeated string derived_roles = 2 [(.buf.validate.field) = { ... }- Returns:
- The count of derivedRoles.
-
getDerivedRoles
java.lang.String getDerivedRoles(int index)
repeated string derived_roles = 2 [(.buf.validate.field) = { ... }- Parameters:
index- The index of the element to return.- Returns:
- The derivedRoles at the given index.
-
getDerivedRolesBytes
com.google.protobuf.ByteString getDerivedRolesBytes(int index)
repeated string derived_roles = 2 [(.buf.validate.field) = { ... }- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the derivedRoles at the given index.
-
getRolesList
java.util.List<java.lang.String> getRolesList()
repeated string roles = 3 [(.buf.validate.field) = { ... }- Returns:
- A list containing the roles.
-
getRolesCount
int getRolesCount()
repeated string roles = 3 [(.buf.validate.field) = { ... }- Returns:
- The count of roles.
-
getRoles
java.lang.String getRoles(int index)
repeated string roles = 3 [(.buf.validate.field) = { ... }- Parameters:
index- The index of the element to return.- Returns:
- The roles at the given index.
-
getRolesBytes
com.google.protobuf.ByteString getRolesBytes(int index)
repeated string roles = 3 [(.buf.validate.field) = { ... }- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the roles at the given index.
-
hasCondition
boolean hasCondition()
.cerbos.policy.v1.Condition condition = 4;- Returns:
- Whether the condition field is set.
-
getCondition
PolicyOuterClass.Condition getCondition()
.cerbos.policy.v1.Condition condition = 4;- Returns:
- The condition.
-
getConditionOrBuilder
PolicyOuterClass.ConditionOrBuilder getConditionOrBuilder()
.cerbos.policy.v1.Condition condition = 4;
-
getEffectValue
int getEffectValue()
.cerbos.effect.v1.Effect effect = 5 [(.buf.validate.field) = { ... }- Returns:
- The enum numeric value on the wire for effect.
-
getEffect
EffectOuterClass.Effect getEffect()
.cerbos.effect.v1.Effect effect = 5 [(.buf.validate.field) = { ... }- Returns:
- The effect.
-
getName
java.lang.String getName()
string name = 6 [(.buf.validate.field) = { ... }- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
string name = 6 [(.buf.validate.field) = { ... }- Returns:
- The bytes for name.
-
hasOutput
boolean hasOutput()
.cerbos.policy.v1.Output output = 7;- Returns:
- Whether the output field is set.
-
getOutput
PolicyOuterClass.Output getOutput()
.cerbos.policy.v1.Output output = 7;- Returns:
- The output.
-
getOutputOrBuilder
PolicyOuterClass.OutputOrBuilder getOutputOrBuilder()
.cerbos.policy.v1.Output output = 7;
-
-