Class OrgPolicyOverlay (0.49.0)

public final class OrgPolicyOverlay extends GeneratedMessageV3 implements OrgPolicyOverlayOrBuilder

The proposed changes to OrgPolicy.

Protobuf type google.cloud.policysimulator.v1.OrgPolicyOverlay

Static Fields

CUSTOM_CONSTRAINTS_FIELD_NUMBER

public static final int CUSTOM_CONSTRAINTS_FIELD_NUMBER
Field Value
Type Description
int

POLICIES_FIELD_NUMBER

public static final int POLICIES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OrgPolicyOverlay getDefaultInstance()
Returns
Type Description
OrgPolicyOverlay

getDescriptor()

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

newBuilder()

public static OrgPolicyOverlay.Builder newBuilder()
Returns
Type Description
OrgPolicyOverlay.Builder

newBuilder(OrgPolicyOverlay prototype)

public static OrgPolicyOverlay.Builder newBuilder(OrgPolicyOverlay prototype)
Parameter
Name Description
prototype OrgPolicyOverlay
Returns
Type Description
OrgPolicyOverlay.Builder

parseDelimitedFrom(InputStream input)

public static OrgPolicyOverlay parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OrgPolicyOverlay
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyOverlay parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrgPolicyOverlay
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static OrgPolicyOverlay parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
OrgPolicyOverlay
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyOverlay parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrgPolicyOverlay
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OrgPolicyOverlay parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
OrgPolicyOverlay
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyOverlay parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrgPolicyOverlay
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OrgPolicyOverlay parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OrgPolicyOverlay
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyOverlay parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrgPolicyOverlay
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static OrgPolicyOverlay parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OrgPolicyOverlay
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyOverlay parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrgPolicyOverlay
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static OrgPolicyOverlay parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OrgPolicyOverlay
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OrgPolicyOverlay parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrgPolicyOverlay
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<OrgPolicyOverlay> parser()
Returns
Type Description
Parser<OrgPolicyOverlay>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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

getParserForType()

public Parser<OrgPolicyOverlay> getParserForType()
Returns
Type Description
Parser<OrgPolicyOverlay>
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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public OrgPolicyOverlay.Builder newBuilderForType()
Returns
Type Description
OrgPolicyOverlay.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OrgPolicyOverlay.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
OrgPolicyOverlay.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public OrgPolicyOverlay.Builder toBuilder()
Returns
Type Description
OrgPolicyOverlay.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException