- 3.59.0 (latest)
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.2-SNAPSHOT
- 3.6.0
- 3.4.1
- 3.3.1
- 3.2.17
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnalyzerOrgPolicy.Rule.BuilderImplements
AnalyzerOrgPolicy.RuleOrBuilderStatic 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 |
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 |
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 |
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 |
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 |
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 |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzerOrgPolicy.Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AnalyzerOrgPolicy.Rule.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzerOrgPolicy.Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AnalyzerOrgPolicy.Rule.Builder |
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 |