Class OrgPolicyOverlay.Builder (0.64.0)

public static final class OrgPolicyOverlay.Builder extends GeneratedMessage.Builder<OrgPolicyOverlay.Builder> implements OrgPolicyOverlayOrBuilder

The proposed changes to OrgPolicy.

Protobuf type google.cloud.policysimulator.v1.OrgPolicyOverlay

Static Methods

getDescriptor()

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

Methods

addAllCustomConstraints(Iterable<? extends OrgPolicyOverlay.CustomConstraintOverlay> values)

public OrgPolicyOverlay.Builder addAllCustomConstraints(Iterable<? extends OrgPolicyOverlay.CustomConstraintOverlay> values)

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay>
Returns
Type Description
OrgPolicyOverlay.Builder

addAllPolicies(Iterable<? extends OrgPolicyOverlay.PolicyOverlay> values)

public OrgPolicyOverlay.Builder addAllPolicies(Iterable<? extends OrgPolicyOverlay.PolicyOverlay> values)

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay>
Returns
Type Description
OrgPolicyOverlay.Builder

addCustomConstraints(OrgPolicyOverlay.CustomConstraintOverlay value)

public OrgPolicyOverlay.Builder addCustomConstraints(OrgPolicyOverlay.CustomConstraintOverlay value)

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value OrgPolicyOverlay.CustomConstraintOverlay
Returns
Type Description
OrgPolicyOverlay.Builder

addCustomConstraints(OrgPolicyOverlay.CustomConstraintOverlay.Builder builderForValue)

public OrgPolicyOverlay.Builder addCustomConstraints(OrgPolicyOverlay.CustomConstraintOverlay.Builder builderForValue)

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue OrgPolicyOverlay.CustomConstraintOverlay.Builder
Returns
Type Description
OrgPolicyOverlay.Builder

addCustomConstraints(int index, OrgPolicyOverlay.CustomConstraintOverlay value)

public OrgPolicyOverlay.Builder addCustomConstraints(int index, OrgPolicyOverlay.CustomConstraintOverlay value)

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value OrgPolicyOverlay.CustomConstraintOverlay
Returns
Type Description
OrgPolicyOverlay.Builder

addCustomConstraints(int index, OrgPolicyOverlay.CustomConstraintOverlay.Builder builderForValue)

public OrgPolicyOverlay.Builder addCustomConstraints(int index, OrgPolicyOverlay.CustomConstraintOverlay.Builder builderForValue)

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue OrgPolicyOverlay.CustomConstraintOverlay.Builder
Returns
Type Description
OrgPolicyOverlay.Builder

addCustomConstraintsBuilder()

public OrgPolicyOverlay.CustomConstraintOverlay.Builder addCustomConstraintsBuilder()

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay.Builder

addCustomConstraintsBuilder(int index)

public OrgPolicyOverlay.CustomConstraintOverlay.Builder addCustomConstraintsBuilder(int index)

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay.Builder

addPolicies(OrgPolicyOverlay.PolicyOverlay value)

public OrgPolicyOverlay.Builder addPolicies(OrgPolicyOverlay.PolicyOverlay value)

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value OrgPolicyOverlay.PolicyOverlay
Returns
Type Description
OrgPolicyOverlay.Builder

addPolicies(OrgPolicyOverlay.PolicyOverlay.Builder builderForValue)

public OrgPolicyOverlay.Builder addPolicies(OrgPolicyOverlay.PolicyOverlay.Builder builderForValue)

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue OrgPolicyOverlay.PolicyOverlay.Builder
Returns
Type Description
OrgPolicyOverlay.Builder

addPolicies(int index, OrgPolicyOverlay.PolicyOverlay value)

public OrgPolicyOverlay.Builder addPolicies(int index, OrgPolicyOverlay.PolicyOverlay value)

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value OrgPolicyOverlay.PolicyOverlay
Returns
Type Description
OrgPolicyOverlay.Builder

addPolicies(int index, OrgPolicyOverlay.PolicyOverlay.Builder builderForValue)

public OrgPolicyOverlay.Builder addPolicies(int index, OrgPolicyOverlay.PolicyOverlay.Builder builderForValue)

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue OrgPolicyOverlay.PolicyOverlay.Builder
Returns
Type Description
OrgPolicyOverlay.Builder

addPoliciesBuilder()

public OrgPolicyOverlay.PolicyOverlay.Builder addPoliciesBuilder()

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OrgPolicyOverlay.PolicyOverlay.Builder

addPoliciesBuilder(int index)

public OrgPolicyOverlay.PolicyOverlay.Builder addPoliciesBuilder(int index)

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OrgPolicyOverlay.PolicyOverlay.Builder

build()

public OrgPolicyOverlay build()
Returns
Type Description
OrgPolicyOverlay

buildPartial()

public OrgPolicyOverlay buildPartial()
Returns
Type Description
OrgPolicyOverlay

clear()

public OrgPolicyOverlay.Builder clear()
Returns
Type Description
OrgPolicyOverlay.Builder
Overrides

clearCustomConstraints()

public OrgPolicyOverlay.Builder clearCustomConstraints()

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OrgPolicyOverlay.Builder

clearPolicies()

public OrgPolicyOverlay.Builder clearPolicies()

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OrgPolicyOverlay.Builder

getCustomConstraints(int index)

public OrgPolicyOverlay.CustomConstraintOverlay getCustomConstraints(int index)

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay

getCustomConstraintsBuilder(int index)

public OrgPolicyOverlay.CustomConstraintOverlay.Builder getCustomConstraintsBuilder(int index)

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay.Builder

getCustomConstraintsBuilderList()

public List<OrgPolicyOverlay.CustomConstraintOverlay.Builder> getCustomConstraintsBuilderList()

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getCustomConstraintsCount()

public int getCustomConstraintsCount()

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getCustomConstraintsList()

public List<OrgPolicyOverlay.CustomConstraintOverlay> getCustomConstraintsList()

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<CustomConstraintOverlay>

getCustomConstraintsOrBuilder(int index)

public OrgPolicyOverlay.CustomConstraintOverlayOrBuilder getCustomConstraintsOrBuilder(int index)

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlayOrBuilder

getCustomConstraintsOrBuilderList()

public List<? extends OrgPolicyOverlay.CustomConstraintOverlayOrBuilder> getCustomConstraintsOrBuilderList()

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlayOrBuilder>

getDefaultInstanceForType()

public OrgPolicyOverlay getDefaultInstanceForType()
Returns
Type Description
OrgPolicyOverlay

getDescriptorForType()

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

getPolicies(int index)

public OrgPolicyOverlay.PolicyOverlay getPolicies(int index)

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OrgPolicyOverlay.PolicyOverlay

getPoliciesBuilder(int index)

public OrgPolicyOverlay.PolicyOverlay.Builder getPoliciesBuilder(int index)

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OrgPolicyOverlay.PolicyOverlay.Builder

getPoliciesBuilderList()

public List<OrgPolicyOverlay.PolicyOverlay.Builder> getPoliciesBuilderList()

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getPoliciesCount()

public int getPoliciesCount()

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getPoliciesList()

public List<OrgPolicyOverlay.PolicyOverlay> getPoliciesList()

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<PolicyOverlay>

getPoliciesOrBuilder(int index)

public OrgPolicyOverlay.PolicyOverlayOrBuilder getPoliciesOrBuilder(int index)

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OrgPolicyOverlay.PolicyOverlayOrBuilder

getPoliciesOrBuilderList()

public List<? extends OrgPolicyOverlay.PolicyOverlayOrBuilder> getPoliciesOrBuilderList()

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlayOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OrgPolicyOverlay other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeCustomConstraints(int index)

public OrgPolicyOverlay.Builder removeCustomConstraints(int index)

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OrgPolicyOverlay.Builder

removePolicies(int index)

public OrgPolicyOverlay.Builder removePolicies(int index)

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OrgPolicyOverlay.Builder

setCustomConstraints(int index, OrgPolicyOverlay.CustomConstraintOverlay value)

public OrgPolicyOverlay.Builder setCustomConstraints(int index, OrgPolicyOverlay.CustomConstraintOverlay value)

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value OrgPolicyOverlay.CustomConstraintOverlay
Returns
Type Description
OrgPolicyOverlay.Builder

setCustomConstraints(int index, OrgPolicyOverlay.CustomConstraintOverlay.Builder builderForValue)

public OrgPolicyOverlay.Builder setCustomConstraints(int index, OrgPolicyOverlay.CustomConstraintOverlay.Builder builderForValue)

Optional. The OrgPolicy CustomConstraint changes to preview violations for.

Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.

Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple GenerateOrgPolicyViolationsPreview requests are made, where each request evaluates a single constraint.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay custom_constraints = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue OrgPolicyOverlay.CustomConstraintOverlay.Builder
Returns
Type Description
OrgPolicyOverlay.Builder

setPolicies(int index, OrgPolicyOverlay.PolicyOverlay value)

public OrgPolicyOverlay.Builder setPolicies(int index, OrgPolicyOverlay.PolicyOverlay value)

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value OrgPolicyOverlay.PolicyOverlay
Returns
Type Description
OrgPolicyOverlay.Builder

setPolicies(int index, OrgPolicyOverlay.PolicyOverlay.Builder builderForValue)

public OrgPolicyOverlay.Builder setPolicies(int index, OrgPolicyOverlay.PolicyOverlay.Builder builderForValue)

Optional. The OrgPolicy changes to preview violations for.

Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.

repeated .google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue OrgPolicyOverlay.PolicyOverlay.Builder
Returns
Type Description
OrgPolicyOverlay.Builder