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