Interface OrgPolicyViolationOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
OrgPolicyViolation,OrgPolicyViolation.Builder
@Generated
public interface OrgPolicyViolationOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe custom constraint being violated.The custom constraint being violated.getError()Any error encountered during the evaluation.Any error encountered during the evaluation.getName()The name of the `OrgPolicyViolation`.com.google.protobuf.ByteStringThe name of the `OrgPolicyViolation`.The resource violating the constraint.The resource violating the constraint.booleanThe custom constraint being violated.booleanhasError()Any error encountered during the evaluation.booleanThe resource violating the constraint.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()The name of the `OrgPolicyViolation`. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The name of the `OrgPolicyViolation`. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`
string name = 1;- Returns:
- The bytes for name.
-
hasResource
boolean hasResource()The resource violating the constraint.
.google.cloud.policysimulator.v1.ResourceContext resource = 2;- Returns:
- Whether the resource field is set.
-
getResource
ResourceContext getResource()The resource violating the constraint.
.google.cloud.policysimulator.v1.ResourceContext resource = 2;- Returns:
- The resource.
-
getResourceOrBuilder
ResourceContextOrBuilder getResourceOrBuilder()The resource violating the constraint.
.google.cloud.policysimulator.v1.ResourceContext resource = 2; -
hasCustomConstraint
boolean hasCustomConstraint()The custom constraint being violated.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 3;- Returns:
- Whether the customConstraint field is set.
-
getCustomConstraint
CustomConstraint getCustomConstraint()The custom constraint being violated.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 3;- Returns:
- The customConstraint.
-
getCustomConstraintOrBuilder
CustomConstraintOrBuilder getCustomConstraintOrBuilder()The custom constraint being violated.
.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 3; -
hasError
boolean hasError()Any error encountered during the evaluation.
.google.rpc.Status error = 4;- Returns:
- Whether the error field is set.
-
getError
Status getError()Any error encountered during the evaluation.
.google.rpc.Status error = 4;- Returns:
- The error.
-
getErrorOrBuilder
StatusOrBuilder getErrorOrBuilder()Any error encountered during the evaluation.
.google.rpc.Status error = 4;
-