Class Policy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<Policy.Builder>
-
- io.envoyproxy.envoy.config.rbac.v3.Policy.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,PolicyOrBuilder
,java.lang.Cloneable
- Enclosing class:
- Policy
public static final class Policy.Builder extends com.google.protobuf.GeneratedMessage.Builder<Policy.Builder> implements PolicyOrBuilder
Policy specifies a role and the principals that are assigned/denied the role. A policy matches if and only if at least one of its permissions match the action taking place AND at least one of its principals match the downstream AND the condition is true if specified.
Protobuf typeenvoy.config.rbac.v3.Policy
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private CheckedExpr
checkedCondition_
private com.google.protobuf.SingleFieldBuilder<CheckedExpr,CheckedExpr.Builder,CheckedExprOrBuilder>
checkedConditionBuilder_
private Expr
condition_
private com.google.protobuf.SingleFieldBuilder<Expr,Expr.Builder,ExprOrBuilder>
conditionBuilder_
private java.util.List<Permission>
permissions_
private com.google.protobuf.RepeatedFieldBuilder<Permission,Permission.Builder,PermissionOrBuilder>
permissionsBuilder_
private java.util.List<Principal>
principals_
private com.google.protobuf.RepeatedFieldBuilder<Principal,Principal.Builder,PrincipalOrBuilder>
principalsBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Policy.Builder
addAllPermissions(java.lang.Iterable<? extends Permission> values)
Required.Policy.Builder
addAllPrincipals(java.lang.Iterable<? extends Principal> values)
Required.Policy.Builder
addPermissions(int index, Permission value)
Required.Policy.Builder
addPermissions(int index, Permission.Builder builderForValue)
Required.Policy.Builder
addPermissions(Permission value)
Required.Policy.Builder
addPermissions(Permission.Builder builderForValue)
Required.Permission.Builder
addPermissionsBuilder()
Required.Permission.Builder
addPermissionsBuilder(int index)
Required.Policy.Builder
addPrincipals(int index, Principal value)
Required.Policy.Builder
addPrincipals(int index, Principal.Builder builderForValue)
Required.Policy.Builder
addPrincipals(Principal value)
Required.Policy.Builder
addPrincipals(Principal.Builder builderForValue)
Required.Principal.Builder
addPrincipalsBuilder()
Required.Principal.Builder
addPrincipalsBuilder(int index)
Required.Policy
build()
Policy
buildPartial()
private void
buildPartial0(Policy result)
private void
buildPartialRepeatedFields(Policy result)
Policy.Builder
clear()
Policy.Builder
clearCheckedCondition()
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked.Policy.Builder
clearCondition()
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.Policy.Builder
clearPermissions()
Required.Policy.Builder
clearPrincipals()
Required.private void
ensurePermissionsIsMutable()
private void
ensurePrincipalsIsMutable()
CheckedExpr
getCheckedCondition()
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked.CheckedExpr.Builder
getCheckedConditionBuilder()
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked.private com.google.protobuf.SingleFieldBuilder<CheckedExpr,CheckedExpr.Builder,CheckedExprOrBuilder>
getCheckedConditionFieldBuilder()
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked.CheckedExprOrBuilder
getCheckedConditionOrBuilder()
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked.Expr
getCondition()
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.Expr.Builder
getConditionBuilder()
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.private com.google.protobuf.SingleFieldBuilder<Expr,Expr.Builder,ExprOrBuilder>
getConditionFieldBuilder()
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.ExprOrBuilder
getConditionOrBuilder()
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.Policy
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Permission
getPermissions(int index)
Required.Permission.Builder
getPermissionsBuilder(int index)
Required.java.util.List<Permission.Builder>
getPermissionsBuilderList()
Required.int
getPermissionsCount()
Required.private com.google.protobuf.RepeatedFieldBuilder<Permission,Permission.Builder,PermissionOrBuilder>
getPermissionsFieldBuilder()
java.util.List<Permission>
getPermissionsList()
Required.PermissionOrBuilder
getPermissionsOrBuilder(int index)
Required.java.util.List<? extends PermissionOrBuilder>
getPermissionsOrBuilderList()
Required.Principal
getPrincipals(int index)
Required.Principal.Builder
getPrincipalsBuilder(int index)
Required.java.util.List<Principal.Builder>
getPrincipalsBuilderList()
Required.int
getPrincipalsCount()
Required.private com.google.protobuf.RepeatedFieldBuilder<Principal,Principal.Builder,PrincipalOrBuilder>
getPrincipalsFieldBuilder()
java.util.List<Principal>
getPrincipalsList()
Required.PrincipalOrBuilder
getPrincipalsOrBuilder(int index)
Required.java.util.List<? extends PrincipalOrBuilder>
getPrincipalsOrBuilderList()
Required.boolean
hasCheckedCondition()
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked.boolean
hasCondition()
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
Policy.Builder
mergeCheckedCondition(CheckedExpr value)
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked.Policy.Builder
mergeCondition(Expr value)
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.Policy.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Policy.Builder
mergeFrom(com.google.protobuf.Message other)
Policy.Builder
mergeFrom(Policy other)
Policy.Builder
removePermissions(int index)
Required.Policy.Builder
removePrincipals(int index)
Required.Policy.Builder
setCheckedCondition(CheckedExpr value)
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked.Policy.Builder
setCheckedCondition(CheckedExpr.Builder builderForValue)
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked.Policy.Builder
setCondition(Expr value)
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.Policy.Builder
setCondition(Expr.Builder builderForValue)
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.Policy.Builder
setPermissions(int index, Permission value)
Required.Policy.Builder
setPermissions(int index, Permission.Builder builderForValue)
Required.Policy.Builder
setPrincipals(int index, Principal value)
Required.Policy.Builder
setPrincipals(int index, Principal.Builder builderForValue)
Required.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
permissions_
private java.util.List<Permission> permissions_
-
permissionsBuilder_
private com.google.protobuf.RepeatedFieldBuilder<Permission,Permission.Builder,PermissionOrBuilder> permissionsBuilder_
-
principals_
private java.util.List<Principal> principals_
-
principalsBuilder_
private com.google.protobuf.RepeatedFieldBuilder<Principal,Principal.Builder,PrincipalOrBuilder> principalsBuilder_
-
condition_
private Expr condition_
-
conditionBuilder_
private com.google.protobuf.SingleFieldBuilder<Expr,Expr.Builder,ExprOrBuilder> conditionBuilder_
-
checkedCondition_
private CheckedExpr checkedCondition_
-
checkedConditionBuilder_
private com.google.protobuf.SingleFieldBuilder<CheckedExpr,CheckedExpr.Builder,CheckedExprOrBuilder> checkedConditionBuilder_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Policy.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public Policy.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Policy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Policy.Builder>
-
getDefaultInstanceForType
public Policy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Policy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Policy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(Policy result)
-
buildPartial0
private void buildPartial0(Policy result)
-
mergeFrom
public Policy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Policy.Builder>
-
mergeFrom
public Policy.Builder mergeFrom(Policy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Policy.Builder>
-
mergeFrom
public Policy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Policy.Builder>
- Throws:
java.io.IOException
-
ensurePermissionsIsMutable
private void ensurePermissionsIsMutable()
-
getPermissionsList
public java.util.List<Permission> getPermissionsList()
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
- Specified by:
getPermissionsList
in interfacePolicyOrBuilder
-
getPermissionsCount
public int getPermissionsCount()
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
- Specified by:
getPermissionsCount
in interfacePolicyOrBuilder
-
getPermissions
public Permission getPermissions(int index)
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
- Specified by:
getPermissions
in interfacePolicyOrBuilder
-
setPermissions
public Policy.Builder setPermissions(int index, Permission value)
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
-
setPermissions
public Policy.Builder setPermissions(int index, Permission.Builder builderForValue)
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
-
addPermissions
public Policy.Builder addPermissions(Permission value)
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
-
addPermissions
public Policy.Builder addPermissions(int index, Permission value)
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
-
addPermissions
public Policy.Builder addPermissions(Permission.Builder builderForValue)
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
-
addPermissions
public Policy.Builder addPermissions(int index, Permission.Builder builderForValue)
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
-
addAllPermissions
public Policy.Builder addAllPermissions(java.lang.Iterable<? extends Permission> values)
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
-
clearPermissions
public Policy.Builder clearPermissions()
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
-
removePermissions
public Policy.Builder removePermissions(int index)
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
-
getPermissionsBuilder
public Permission.Builder getPermissionsBuilder(int index)
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
-
getPermissionsOrBuilder
public PermissionOrBuilder getPermissionsOrBuilder(int index)
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
- Specified by:
getPermissionsOrBuilder
in interfacePolicyOrBuilder
-
getPermissionsOrBuilderList
public java.util.List<? extends PermissionOrBuilder> getPermissionsOrBuilderList()
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
- Specified by:
getPermissionsOrBuilderList
in interfacePolicyOrBuilder
-
addPermissionsBuilder
public Permission.Builder addPermissionsBuilder()
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
-
addPermissionsBuilder
public Permission.Builder addPermissionsBuilder(int index)
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
-
getPermissionsBuilderList
public java.util.List<Permission.Builder> getPermissionsBuilderList()
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Permission permissions = 1 [(.validate.rules) = { ... }
-
getPermissionsFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<Permission,Permission.Builder,PermissionOrBuilder> getPermissionsFieldBuilder()
-
ensurePrincipalsIsMutable
private void ensurePrincipalsIsMutable()
-
getPrincipalsList
public java.util.List<Principal> getPrincipalsList()
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
- Specified by:
getPrincipalsList
in interfacePolicyOrBuilder
-
getPrincipalsCount
public int getPrincipalsCount()
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
- Specified by:
getPrincipalsCount
in interfacePolicyOrBuilder
-
getPrincipals
public Principal getPrincipals(int index)
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
- Specified by:
getPrincipals
in interfacePolicyOrBuilder
-
setPrincipals
public Policy.Builder setPrincipals(int index, Principal value)
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
-
setPrincipals
public Policy.Builder setPrincipals(int index, Principal.Builder builderForValue)
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
-
addPrincipals
public Policy.Builder addPrincipals(Principal value)
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
-
addPrincipals
public Policy.Builder addPrincipals(int index, Principal value)
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
-
addPrincipals
public Policy.Builder addPrincipals(Principal.Builder builderForValue)
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
-
addPrincipals
public Policy.Builder addPrincipals(int index, Principal.Builder builderForValue)
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
-
addAllPrincipals
public Policy.Builder addAllPrincipals(java.lang.Iterable<? extends Principal> values)
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
-
clearPrincipals
public Policy.Builder clearPrincipals()
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
-
removePrincipals
public Policy.Builder removePrincipals(int index)
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
-
getPrincipalsBuilder
public Principal.Builder getPrincipalsBuilder(int index)
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
-
getPrincipalsOrBuilder
public PrincipalOrBuilder getPrincipalsOrBuilder(int index)
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
- Specified by:
getPrincipalsOrBuilder
in interfacePolicyOrBuilder
-
getPrincipalsOrBuilderList
public java.util.List<? extends PrincipalOrBuilder> getPrincipalsOrBuilderList()
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
- Specified by:
getPrincipalsOrBuilderList
in interfacePolicyOrBuilder
-
addPrincipalsBuilder
public Principal.Builder addPrincipalsBuilder()
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
-
addPrincipalsBuilder
public Principal.Builder addPrincipalsBuilder(int index)
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
-
getPrincipalsBuilderList
public java.util.List<Principal.Builder> getPrincipalsBuilderList()
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the ``any`` field set to true should be used.
repeated .envoy.config.rbac.v3.Principal principals = 2 [(.validate.rules) = { ... }
-
getPrincipalsFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<Principal,Principal.Builder,PrincipalOrBuilder> getPrincipalsFieldBuilder()
-
hasCondition
public boolean hasCondition()
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`. The condition is combined with the permissions and the principals as a clause with AND semantics. Only be used when checked_condition is not used.
.google.api.expr.v1alpha1.Expr condition = 3 [(.udpa.annotations.field_migrate) = { ... }
- Specified by:
hasCondition
in interfacePolicyOrBuilder
- Returns:
- Whether the condition field is set.
-
getCondition
public Expr getCondition()
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`. The condition is combined with the permissions and the principals as a clause with AND semantics. Only be used when checked_condition is not used.
.google.api.expr.v1alpha1.Expr condition = 3 [(.udpa.annotations.field_migrate) = { ... }
- Specified by:
getCondition
in interfacePolicyOrBuilder
- Returns:
- The condition.
-
setCondition
public Policy.Builder setCondition(Expr value)
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`. The condition is combined with the permissions and the principals as a clause with AND semantics. Only be used when checked_condition is not used.
.google.api.expr.v1alpha1.Expr condition = 3 [(.udpa.annotations.field_migrate) = { ... }
-
setCondition
public Policy.Builder setCondition(Expr.Builder builderForValue)
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`. The condition is combined with the permissions and the principals as a clause with AND semantics. Only be used when checked_condition is not used.
.google.api.expr.v1alpha1.Expr condition = 3 [(.udpa.annotations.field_migrate) = { ... }
-
mergeCondition
public Policy.Builder mergeCondition(Expr value)
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`. The condition is combined with the permissions and the principals as a clause with AND semantics. Only be used when checked_condition is not used.
.google.api.expr.v1alpha1.Expr condition = 3 [(.udpa.annotations.field_migrate) = { ... }
-
clearCondition
public Policy.Builder clearCondition()
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`. The condition is combined with the permissions and the principals as a clause with AND semantics. Only be used when checked_condition is not used.
.google.api.expr.v1alpha1.Expr condition = 3 [(.udpa.annotations.field_migrate) = { ... }
-
getConditionBuilder
public Expr.Builder getConditionBuilder()
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`. The condition is combined with the permissions and the principals as a clause with AND semantics. Only be used when checked_condition is not used.
.google.api.expr.v1alpha1.Expr condition = 3 [(.udpa.annotations.field_migrate) = { ... }
-
getConditionOrBuilder
public ExprOrBuilder getConditionOrBuilder()
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`. The condition is combined with the permissions and the principals as a clause with AND semantics. Only be used when checked_condition is not used.
.google.api.expr.v1alpha1.Expr condition = 3 [(.udpa.annotations.field_migrate) = { ... }
- Specified by:
getConditionOrBuilder
in interfacePolicyOrBuilder
-
getConditionFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Expr,Expr.Builder,ExprOrBuilder> getConditionFieldBuilder()
An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`. The condition is combined with the permissions and the principals as a clause with AND semantics. Only be used when checked_condition is not used.
.google.api.expr.v1alpha1.Expr condition = 3 [(.udpa.annotations.field_migrate) = { ... }
-
hasCheckedCondition
public boolean hasCheckedCondition()
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked. Only be used when condition is not used.
.google.api.expr.v1alpha1.CheckedExpr checked_condition = 4 [(.udpa.annotations.field_migrate) = { ... }
- Specified by:
hasCheckedCondition
in interfacePolicyOrBuilder
- Returns:
- Whether the checkedCondition field is set.
-
getCheckedCondition
public CheckedExpr getCheckedCondition()
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked. Only be used when condition is not used.
.google.api.expr.v1alpha1.CheckedExpr checked_condition = 4 [(.udpa.annotations.field_migrate) = { ... }
- Specified by:
getCheckedCondition
in interfacePolicyOrBuilder
- Returns:
- The checkedCondition.
-
setCheckedCondition
public Policy.Builder setCheckedCondition(CheckedExpr value)
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked. Only be used when condition is not used.
.google.api.expr.v1alpha1.CheckedExpr checked_condition = 4 [(.udpa.annotations.field_migrate) = { ... }
-
setCheckedCondition
public Policy.Builder setCheckedCondition(CheckedExpr.Builder builderForValue)
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked. Only be used when condition is not used.
.google.api.expr.v1alpha1.CheckedExpr checked_condition = 4 [(.udpa.annotations.field_migrate) = { ... }
-
mergeCheckedCondition
public Policy.Builder mergeCheckedCondition(CheckedExpr value)
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked. Only be used when condition is not used.
.google.api.expr.v1alpha1.CheckedExpr checked_condition = 4 [(.udpa.annotations.field_migrate) = { ... }
-
clearCheckedCondition
public Policy.Builder clearCheckedCondition()
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked. Only be used when condition is not used.
.google.api.expr.v1alpha1.CheckedExpr checked_condition = 4 [(.udpa.annotations.field_migrate) = { ... }
-
getCheckedConditionBuilder
public CheckedExpr.Builder getCheckedConditionBuilder()
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked. Only be used when condition is not used.
.google.api.expr.v1alpha1.CheckedExpr checked_condition = 4 [(.udpa.annotations.field_migrate) = { ... }
-
getCheckedConditionOrBuilder
public CheckedExprOrBuilder getCheckedConditionOrBuilder()
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked. Only be used when condition is not used.
.google.api.expr.v1alpha1.CheckedExpr checked_condition = 4 [(.udpa.annotations.field_migrate) = { ... }
- Specified by:
getCheckedConditionOrBuilder
in interfacePolicyOrBuilder
-
getCheckedConditionFieldBuilder
private com.google.protobuf.SingleFieldBuilder<CheckedExpr,CheckedExpr.Builder,CheckedExprOrBuilder> getCheckedConditionFieldBuilder()
[#not-implemented-hide:] An optional symbolic expression that has been successfully type checked. Only be used when condition is not used.
.google.api.expr.v1alpha1.CheckedExpr checked_condition = 4 [(.udpa.annotations.field_migrate) = { ... }
-
-