Class Policy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
- io.envoyproxy.envoy.config.rbac.v2.Policy.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,PolicyOrBuilder,Cloneable
- Enclosing class:
- Policy
public static final class Policy.Builder extends com.google.protobuf.GeneratedMessageV3.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.v2.Policy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Policy.BuilderaddAllPermissions(Iterable<? extends Permission> values)Required.Policy.BuilderaddAllPrincipals(Iterable<? extends Principal> values)Required.Policy.BuilderaddPermissions(int index, Permission value)Required.Policy.BuilderaddPermissions(int index, Permission.Builder builderForValue)Required.Policy.BuilderaddPermissions(Permission value)Required.Policy.BuilderaddPermissions(Permission.Builder builderForValue)Required.Permission.BuilderaddPermissionsBuilder()Required.Permission.BuilderaddPermissionsBuilder(int index)Required.Policy.BuilderaddPrincipals(int index, Principal value)Required.Policy.BuilderaddPrincipals(int index, Principal.Builder builderForValue)Required.Policy.BuilderaddPrincipals(Principal value)Required.Policy.BuilderaddPrincipals(Principal.Builder builderForValue)Required.Principal.BuilderaddPrincipalsBuilder()Required.Principal.BuilderaddPrincipalsBuilder(int index)Required.Policy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Policybuild()PolicybuildPartial()Policy.Builderclear()Policy.BuilderclearCondition()An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.Policy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Policy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Policy.BuilderclearPermissions()Required.Policy.BuilderclearPrincipals()Required.Policy.Builderclone()ExprgetCondition()An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.Expr.BuildergetConditionBuilder()An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.ExprOrBuildergetConditionOrBuilder()An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.PolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()PermissiongetPermissions(int index)Required.Permission.BuildergetPermissionsBuilder(int index)Required.List<Permission.Builder>getPermissionsBuilderList()Required.intgetPermissionsCount()Required.List<Permission>getPermissionsList()Required.PermissionOrBuildergetPermissionsOrBuilder(int index)Required.List<? extends PermissionOrBuilder>getPermissionsOrBuilderList()Required.PrincipalgetPrincipals(int index)Required.Principal.BuildergetPrincipalsBuilder(int index)Required.List<Principal.Builder>getPrincipalsBuilderList()Required.intgetPrincipalsCount()Required.List<Principal>getPrincipalsList()Required.PrincipalOrBuildergetPrincipalsOrBuilder(int index)Required.List<? extends PrincipalOrBuilder>getPrincipalsOrBuilderList()Required.booleanhasCondition()An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Policy.BuildermergeCondition(Expr value)An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.Policy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Policy.BuildermergeFrom(com.google.protobuf.Message other)Policy.BuildermergeFrom(Policy other)Policy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Policy.BuilderremovePermissions(int index)Required.Policy.BuilderremovePrincipals(int index)Required.Policy.BuildersetCondition(Expr value)An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.Policy.BuildersetCondition(Expr.Builder builderForValue)An optional symbolic expression specifying an access control :ref:`condition <arch_overview_condition>`.Policy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Policy.BuildersetPermissions(int index, Permission value)Required.Policy.BuildersetPermissions(int index, Permission.Builder builderForValue)Required.Policy.BuildersetPrincipals(int index, Principal value)Required.Policy.BuildersetPrincipals(int index, Principal.Builder builderForValue)Required.Policy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Policy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
clear
public Policy.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
getDefaultInstanceForType
public Policy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Policy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Policy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Policy.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
setField
public Policy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
clearField
public Policy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
clearOneof
public Policy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
setRepeatedField
public Policy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
addRepeatedField
public Policy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
mergeFrom
public Policy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Policy.Builder>
-
mergeFrom
public Policy.Builder mergeFrom(Policy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
mergeFrom
public Policy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Policy.Builder>- Throws:
IOException
-
getPermissionsList
public 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.v2.Permission permissions = 1 [(.validate.rules) = { ... }- Specified by:
getPermissionsListin 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.v2.Permission permissions = 1 [(.validate.rules) = { ... }- Specified by:
getPermissionsCountin 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.v2.Permission permissions = 1 [(.validate.rules) = { ... }- Specified by:
getPermissionsin 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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.Permission permissions = 1 [(.validate.rules) = { ... }
-
addAllPermissions
public Policy.Builder addAllPermissions(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.v2.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.v2.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.v2.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.v2.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.v2.Permission permissions = 1 [(.validate.rules) = { ... }- Specified by:
getPermissionsOrBuilderin interfacePolicyOrBuilder
-
getPermissionsOrBuilderList
public 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.v2.Permission permissions = 1 [(.validate.rules) = { ... }- Specified by:
getPermissionsOrBuilderListin 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.v2.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.v2.Permission permissions = 1 [(.validate.rules) = { ... }
-
getPermissionsBuilderList
public 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.v2.Permission permissions = 1 [(.validate.rules) = { ... }
-
getPrincipalsList
public 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.v2.Principal principals = 2 [(.validate.rules) = { ... }- Specified by:
getPrincipalsListin 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.v2.Principal principals = 2 [(.validate.rules) = { ... }- Specified by:
getPrincipalsCountin 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.v2.Principal principals = 2 [(.validate.rules) = { ... }- Specified by:
getPrincipalsin 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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.Principal principals = 2 [(.validate.rules) = { ... }
-
addAllPrincipals
public Policy.Builder addAllPrincipals(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.v2.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.v2.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.v2.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.v2.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.v2.Principal principals = 2 [(.validate.rules) = { ... }- Specified by:
getPrincipalsOrBuilderin interfacePolicyOrBuilder
-
getPrincipalsOrBuilderList
public 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.v2.Principal principals = 2 [(.validate.rules) = { ... }- Specified by:
getPrincipalsOrBuilderListin 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.v2.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.v2.Principal principals = 2 [(.validate.rules) = { ... }
-
getPrincipalsBuilderList
public 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.v2.Principal principals = 2 [(.validate.rules) = { ... }
-
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.
.google.api.expr.v1alpha1.Expr condition = 3;- Specified by:
hasConditionin 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.
.google.api.expr.v1alpha1.Expr condition = 3;- Specified by:
getConditionin 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.
.google.api.expr.v1alpha1.Expr condition = 3;
-
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.
.google.api.expr.v1alpha1.Expr condition = 3;
-
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.
.google.api.expr.v1alpha1.Expr condition = 3;
-
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.
.google.api.expr.v1alpha1.Expr condition = 3;
-
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.
.google.api.expr.v1alpha1.Expr condition = 3;
-
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.
.google.api.expr.v1alpha1.Expr condition = 3;- Specified by:
getConditionOrBuilderin interfacePolicyOrBuilder
-
setUnknownFields
public final Policy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
mergeUnknownFields
public final Policy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Policy.Builder>
-
-