Package com.google.cloud.orgpolicy.v2
Class PolicySpec.PolicyRule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
-
- com.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.Builder
-
- All Implemented Interfaces:
PolicySpec.PolicyRuleOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- PolicySpec.PolicyRule
public static final class PolicySpec.PolicyRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder> implements PolicySpec.PolicyRuleOrBuilder
A rule used to express this policy.
Protobuf typegoogle.cloud.orgpolicy.v2.PolicySpec.PolicyRule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicySpec.PolicyRule.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PolicySpec.PolicyRule
build()
PolicySpec.PolicyRule
buildPartial()
PolicySpec.PolicyRule.Builder
clear()
PolicySpec.PolicyRule.Builder
clearAllowAll()
Setting this to true means that all values are allowed.PolicySpec.PolicyRule.Builder
clearCondition()
A condition which determines whether this rule is used in the evaluation of the policy.PolicySpec.PolicyRule.Builder
clearDenyAll()
Setting this to true means that all values are denied.PolicySpec.PolicyRule.Builder
clearEnforce()
If `true`, then the `Policy` is enforced.PolicySpec.PolicyRule.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PolicySpec.PolicyRule.Builder
clearKind()
PolicySpec.PolicyRule.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PolicySpec.PolicyRule.Builder
clearValues()
List of values to be used for this PolicyRule.PolicySpec.PolicyRule.Builder
clone()
boolean
getAllowAll()
Setting this to true means that all values are allowed.com.google.type.Expr
getCondition()
A condition which determines whether this rule is used in the evaluation of the policy.com.google.type.Expr.Builder
getConditionBuilder()
A condition which determines whether this rule is used in the evaluation of the policy.com.google.type.ExprOrBuilder
getConditionOrBuilder()
A condition which determines whether this rule is used in the evaluation of the policy.PolicySpec.PolicyRule
getDefaultInstanceForType()
boolean
getDenyAll()
Setting this to true means that all values are denied.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getEnforce()
If `true`, then the `Policy` is enforced.PolicySpec.PolicyRule.KindCase
getKindCase()
PolicySpec.PolicyRule.StringValues
getValues()
List of values to be used for this PolicyRule.PolicySpec.PolicyRule.StringValues.Builder
getValuesBuilder()
List of values to be used for this PolicyRule.PolicySpec.PolicyRule.StringValuesOrBuilder
getValuesOrBuilder()
List of values to be used for this PolicyRule.boolean
hasAllowAll()
Setting this to true means that all values are allowed.boolean
hasCondition()
A condition which determines whether this rule is used in the evaluation of the policy.boolean
hasDenyAll()
Setting this to true means that all values are denied.boolean
hasEnforce()
If `true`, then the `Policy` is enforced.boolean
hasValues()
List of values to be used for this PolicyRule.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
PolicySpec.PolicyRule.Builder
mergeCondition(com.google.type.Expr value)
A condition which determines whether this rule is used in the evaluation of the policy.PolicySpec.PolicyRule.Builder
mergeFrom(PolicySpec.PolicyRule other)
PolicySpec.PolicyRule.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PolicySpec.PolicyRule.Builder
mergeFrom(com.google.protobuf.Message other)
PolicySpec.PolicyRule.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PolicySpec.PolicyRule.Builder
mergeValues(PolicySpec.PolicyRule.StringValues value)
List of values to be used for this PolicyRule.PolicySpec.PolicyRule.Builder
setAllowAll(boolean value)
Setting this to true means that all values are allowed.PolicySpec.PolicyRule.Builder
setCondition(com.google.type.Expr value)
A condition which determines whether this rule is used in the evaluation of the policy.PolicySpec.PolicyRule.Builder
setCondition(com.google.type.Expr.Builder builderForValue)
A condition which determines whether this rule is used in the evaluation of the policy.PolicySpec.PolicyRule.Builder
setDenyAll(boolean value)
Setting this to true means that all values are denied.PolicySpec.PolicyRule.Builder
setEnforce(boolean value)
If `true`, then the `Policy` is enforced.PolicySpec.PolicyRule.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PolicySpec.PolicyRule.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
PolicySpec.PolicyRule.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PolicySpec.PolicyRule.Builder
setValues(PolicySpec.PolicyRule.StringValues value)
List of values to be used for this PolicyRule.PolicySpec.PolicyRule.Builder
setValues(PolicySpec.PolicyRule.StringValues.Builder builderForValue)
List of values to be used for this PolicyRule.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
-
clear
public PolicySpec.PolicyRule.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.GeneratedMessageV3.Builder<PolicySpec.PolicyRule.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.GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
-
getDefaultInstanceForType
public PolicySpec.PolicyRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PolicySpec.PolicyRule build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PolicySpec.PolicyRule buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PolicySpec.PolicyRule.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
-
setField
public PolicySpec.PolicyRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
-
clearField
public PolicySpec.PolicyRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
-
clearOneof
public PolicySpec.PolicyRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
-
setRepeatedField
public PolicySpec.PolicyRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
-
addRepeatedField
public PolicySpec.PolicyRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
-
mergeFrom
public PolicySpec.PolicyRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PolicySpec.PolicyRule.Builder>
-
mergeFrom
public PolicySpec.PolicyRule.Builder mergeFrom(PolicySpec.PolicyRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
-
mergeFrom
public PolicySpec.PolicyRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<PolicySpec.PolicyRule.Builder>
- Throws:
IOException
-
getKindCase
public PolicySpec.PolicyRule.KindCase getKindCase()
- Specified by:
getKindCase
in interfacePolicySpec.PolicyRuleOrBuilder
-
clearKind
public PolicySpec.PolicyRule.Builder clearKind()
-
hasValues
public boolean hasValues()
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
- Specified by:
hasValues
in interfacePolicySpec.PolicyRuleOrBuilder
- Returns:
- Whether the values field is set.
-
getValues
public PolicySpec.PolicyRule.StringValues getValues()
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
- Specified by:
getValues
in interfacePolicySpec.PolicyRuleOrBuilder
- Returns:
- The values.
-
setValues
public PolicySpec.PolicyRule.Builder setValues(PolicySpec.PolicyRule.StringValues value)
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
-
setValues
public PolicySpec.PolicyRule.Builder setValues(PolicySpec.PolicyRule.StringValues.Builder builderForValue)
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
-
mergeValues
public PolicySpec.PolicyRule.Builder mergeValues(PolicySpec.PolicyRule.StringValues value)
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
-
clearValues
public PolicySpec.PolicyRule.Builder clearValues()
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
-
getValuesBuilder
public PolicySpec.PolicyRule.StringValues.Builder getValuesBuilder()
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
-
getValuesOrBuilder
public PolicySpec.PolicyRule.StringValuesOrBuilder getValuesOrBuilder()
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
- Specified by:
getValuesOrBuilder
in interfacePolicySpec.PolicyRuleOrBuilder
-
hasAllowAll
public boolean hasAllowAll()
Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.
bool allow_all = 2;
- Specified by:
hasAllowAll
in interfacePolicySpec.PolicyRuleOrBuilder
- Returns:
- Whether the allowAll field is set.
-
getAllowAll
public boolean getAllowAll()
Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.
bool allow_all = 2;
- Specified by:
getAllowAll
in interfacePolicySpec.PolicyRuleOrBuilder
- Returns:
- The allowAll.
-
setAllowAll
public PolicySpec.PolicyRule.Builder setAllowAll(boolean value)
Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.
bool allow_all = 2;
- Parameters:
value
- The allowAll to set.- Returns:
- This builder for chaining.
-
clearAllowAll
public PolicySpec.PolicyRule.Builder clearAllowAll()
Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.
bool allow_all = 2;
- Returns:
- This builder for chaining.
-
hasDenyAll
public boolean hasDenyAll()
Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.
bool deny_all = 3;
- Specified by:
hasDenyAll
in interfacePolicySpec.PolicyRuleOrBuilder
- Returns:
- Whether the denyAll field is set.
-
getDenyAll
public boolean getDenyAll()
Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.
bool deny_all = 3;
- Specified by:
getDenyAll
in interfacePolicySpec.PolicyRuleOrBuilder
- Returns:
- The denyAll.
-
setDenyAll
public PolicySpec.PolicyRule.Builder setDenyAll(boolean value)
Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.
bool deny_all = 3;
- Parameters:
value
- The denyAll to set.- Returns:
- This builder for chaining.
-
clearDenyAll
public PolicySpec.PolicyRule.Builder clearDenyAll()
Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.
bool deny_all = 3;
- Returns:
- This builder for chaining.
-
hasEnforce
public boolean hasEnforce()
If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.
bool enforce = 4;
- Specified by:
hasEnforce
in interfacePolicySpec.PolicyRuleOrBuilder
- Returns:
- Whether the enforce field is set.
-
getEnforce
public boolean getEnforce()
If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.
bool enforce = 4;
- Specified by:
getEnforce
in interfacePolicySpec.PolicyRuleOrBuilder
- Returns:
- The enforce.
-
setEnforce
public PolicySpec.PolicyRule.Builder setEnforce(boolean value)
If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.
bool enforce = 4;
- Parameters:
value
- The enforce to set.- Returns:
- This builder for chaining.
-
clearEnforce
public PolicySpec.PolicyRule.Builder clearEnforce()
If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.
bool enforce = 4;
- Returns:
- This builder for chaining.
-
hasCondition
public boolean hasCondition()
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('<ORG_ID>/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".
.google.type.Expr condition = 5;
- Specified by:
hasCondition
in interfacePolicySpec.PolicyRuleOrBuilder
- Returns:
- Whether the condition field is set.
-
getCondition
public com.google.type.Expr getCondition()
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('<ORG_ID>/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".
.google.type.Expr condition = 5;
- Specified by:
getCondition
in interfacePolicySpec.PolicyRuleOrBuilder
- Returns:
- The condition.
-
setCondition
public PolicySpec.PolicyRule.Builder setCondition(com.google.type.Expr value)
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('<ORG_ID>/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".
.google.type.Expr condition = 5;
-
setCondition
public PolicySpec.PolicyRule.Builder setCondition(com.google.type.Expr.Builder builderForValue)
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('<ORG_ID>/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".
.google.type.Expr condition = 5;
-
mergeCondition
public PolicySpec.PolicyRule.Builder mergeCondition(com.google.type.Expr value)
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('<ORG_ID>/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".
.google.type.Expr condition = 5;
-
clearCondition
public PolicySpec.PolicyRule.Builder clearCondition()
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('<ORG_ID>/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".
.google.type.Expr condition = 5;
-
getConditionBuilder
public com.google.type.Expr.Builder getConditionBuilder()
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('<ORG_ID>/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".
.google.type.Expr condition = 5;
-
getConditionOrBuilder
public com.google.type.ExprOrBuilder getConditionOrBuilder()
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('<ORG_ID>/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".
.google.type.Expr condition = 5;
- Specified by:
getConditionOrBuilder
in interfacePolicySpec.PolicyRuleOrBuilder
-
setUnknownFields
public final PolicySpec.PolicyRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
-
mergeUnknownFields
public final PolicySpec.PolicyRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
-
-