Class AnalyzerOrgPolicy.Rule.Builder (3.35.0)

public static final class AnalyzerOrgPolicy.Rule.Builder extends GeneratedMessageV3.Builder<AnalyzerOrgPolicy.Rule.Builder> implements AnalyzerOrgPolicy.RuleOrBuilder

This rule message is a customized version of the one defined in the Organization Policy system. In addition to the fields defined in the original organization policy, it contains additional field(s) under specific circumstances to support analysis results.

Protobuf type google.cloud.asset.v1.AnalyzerOrgPolicy.Rule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalyzerOrgPolicy.Rule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder
Overrides

build()

public AnalyzerOrgPolicy.Rule build()
Returns
Type Description
AnalyzerOrgPolicy.Rule

buildPartial()

public AnalyzerOrgPolicy.Rule buildPartial()
Returns
Type Description
AnalyzerOrgPolicy.Rule

clear()

public AnalyzerOrgPolicy.Rule.Builder clear()
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder
Overrides

clearAllowAll()

public AnalyzerOrgPolicy.Rule.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 = 4;

Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

This builder for chaining.

clearCondition()

public AnalyzerOrgPolicy.Rule.Builder clearCondition()

The evaluating condition for this rule.

.google.type.Expr condition = 7;

Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

clearDenyAll()

public AnalyzerOrgPolicy.Rule.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 = 5;

Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

This builder for chaining.

clearEnforce()

public AnalyzerOrgPolicy.Rule.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 = 6;

Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AnalyzerOrgPolicy.Rule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder
Overrides

clearKind()

public AnalyzerOrgPolicy.Rule.Builder clearKind()
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzerOrgPolicy.Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder
Overrides

clearValues()

public AnalyzerOrgPolicy.Rule.Builder clearValues()

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

.google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;

Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

clone()

public AnalyzerOrgPolicy.Rule.Builder clone()
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder
Overrides

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 = 4;

Returns
Type Description
boolean

The allowAll.

getCondition()

public Expr getCondition()

The evaluating condition for this rule.

.google.type.Expr condition = 7;

Returns
Type Description
com.google.type.Expr

The condition.

getConditionBuilder()

public Expr.Builder getConditionBuilder()

The evaluating condition for this rule.

.google.type.Expr condition = 7;

Returns
Type Description
com.google.type.Expr.Builder

getConditionOrBuilder()

public ExprOrBuilder getConditionOrBuilder()

The evaluating condition for this rule.

.google.type.Expr condition = 7;

Returns
Type Description
com.google.type.ExprOrBuilder

getDefaultInstanceForType()

public AnalyzerOrgPolicy.Rule getDefaultInstanceForType()
Returns
Type Description
AnalyzerOrgPolicy.Rule

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 = 5;

Returns
Type Description
boolean

The denyAll.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 = 6;

Returns
Type Description
boolean

The enforce.

getKindCase()

public AnalyzerOrgPolicy.Rule.KindCase getKindCase()
Returns
Type Description
AnalyzerOrgPolicy.Rule.KindCase

getValues()

public AnalyzerOrgPolicy.Rule.StringValues getValues()

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

.google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;

Returns
Type Description
AnalyzerOrgPolicy.Rule.StringValues

The values.

getValuesBuilder()

public AnalyzerOrgPolicy.Rule.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.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;

Returns
Type Description
AnalyzerOrgPolicy.Rule.StringValues.Builder

getValuesOrBuilder()

public AnalyzerOrgPolicy.Rule.StringValuesOrBuilder getValuesOrBuilder()

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

.google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;

Returns
Type Description
AnalyzerOrgPolicy.Rule.StringValuesOrBuilder

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 = 4;

Returns
Type Description
boolean

Whether the allowAll field is set.

hasCondition()

public boolean hasCondition()

The evaluating condition for this rule.

.google.type.Expr condition = 7;

Returns
Type Description
boolean

Whether the condition field is set.

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 = 5;

Returns
Type Description
boolean

Whether the denyAll field is set.

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 = 6;

Returns
Type Description
boolean

Whether the enforce field is set.

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.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;

Returns
Type Description
boolean

Whether the values field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCondition(Expr value)

public AnalyzerOrgPolicy.Rule.Builder mergeCondition(Expr value)

The evaluating condition for this rule.

.google.type.Expr condition = 7;

Parameter
Name Description
value com.google.type.Expr
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

mergeFrom(AnalyzerOrgPolicy.Rule other)

public AnalyzerOrgPolicy.Rule.Builder mergeFrom(AnalyzerOrgPolicy.Rule other)
Parameter
Name Description
other AnalyzerOrgPolicy.Rule
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnalyzerOrgPolicy.Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnalyzerOrgPolicy.Rule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzerOrgPolicy.Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder
Overrides

mergeValues(AnalyzerOrgPolicy.Rule.StringValues value)

public AnalyzerOrgPolicy.Rule.Builder mergeValues(AnalyzerOrgPolicy.Rule.StringValues value)

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

.google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;

Parameter
Name Description
value AnalyzerOrgPolicy.Rule.StringValues
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

setAllowAll(boolean value)

public AnalyzerOrgPolicy.Rule.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 = 4;

Parameter
Name Description
value boolean

The allowAll to set.

Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

This builder for chaining.

setCondition(Expr value)

public AnalyzerOrgPolicy.Rule.Builder setCondition(Expr value)

The evaluating condition for this rule.

.google.type.Expr condition = 7;

Parameter
Name Description
value com.google.type.Expr
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

setCondition(Expr.Builder builderForValue)

public AnalyzerOrgPolicy.Rule.Builder setCondition(Expr.Builder builderForValue)

The evaluating condition for this rule.

.google.type.Expr condition = 7;

Parameter
Name Description
builderForValue com.google.type.Expr.Builder
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

setDenyAll(boolean value)

public AnalyzerOrgPolicy.Rule.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 = 5;

Parameter
Name Description
value boolean

The denyAll to set.

Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

This builder for chaining.

setEnforce(boolean value)

public AnalyzerOrgPolicy.Rule.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 = 6;

Parameter
Name Description
value boolean

The enforce to set.

Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AnalyzerOrgPolicy.Rule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnalyzerOrgPolicy.Rule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzerOrgPolicy.Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder
Overrides

setValues(AnalyzerOrgPolicy.Rule.StringValues value)

public AnalyzerOrgPolicy.Rule.Builder setValues(AnalyzerOrgPolicy.Rule.StringValues value)

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

.google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;

Parameter
Name Description
value AnalyzerOrgPolicy.Rule.StringValues
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder

setValues(AnalyzerOrgPolicy.Rule.StringValues.Builder builderForValue)

public AnalyzerOrgPolicy.Rule.Builder setValues(AnalyzerOrgPolicy.Rule.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.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;

Parameter
Name Description
builderForValue AnalyzerOrgPolicy.Rule.StringValues.Builder
Returns
Type Description
AnalyzerOrgPolicy.Rule.Builder