Interface ConstraintOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Constraint, Constraint.Builder

@Generated public interface ConstraintOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      String getName()
       Immutable. The resource name of the constraint. Must be in one of
       the following forms:
      
       * `projects/{project_number}/constraints/{constraint_name}`
       * `folders/{folder_id}/constraints/{constraint_name}`
       * `organizations/{organization_id}/constraints/{constraint_name}`
      
       For example, "/projects/123/constraints/compute.disableSerialPortAccess".
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       Immutable. The resource name of the constraint. Must be in one of
       the following forms:
      
       * `projects/{project_number}/constraints/{constraint_name}`
       * `folders/{folder_id}/constraints/{constraint_name}`
       * `organizations/{organization_id}/constraints/{constraint_name}`
      
       For example, "/projects/123/constraints/compute.disableSerialPortAccess".
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      The bytes for name.
    • getDisplayName

      String getDisplayName()
       The human readable name.
      
       Mutable.
       
      string display_name = 2;
      Returns:
      The displayName.
    • getDisplayNameBytes

      com.google.protobuf.ByteString getDisplayNameBytes()
       The human readable name.
      
       Mutable.
       
      string display_name = 2;
      Returns:
      The bytes for displayName.
    • getDescription

      String getDescription()
       Detailed description of what this constraint controls as well as how and
       where it is enforced.
      
       Mutable.
       
      string description = 3;
      Returns:
      The description.
    • getDescriptionBytes

      com.google.protobuf.ByteString getDescriptionBytes()
       Detailed description of what this constraint controls as well as how and
       where it is enforced.
      
       Mutable.
       
      string description = 3;
      Returns:
      The bytes for description.
    • getConstraintDefaultValue

      int getConstraintDefaultValue()
       The evaluation behavior of this constraint in the absence of a policy.
       
      .google.cloud.orgpolicy.v2.Constraint.ConstraintDefault constraint_default = 4;
      Returns:
      The enum numeric value on the wire for constraintDefault.
    • getConstraintDefault

      Constraint.ConstraintDefault getConstraintDefault()
       The evaluation behavior of this constraint in the absence of a policy.
       
      .google.cloud.orgpolicy.v2.Constraint.ConstraintDefault constraint_default = 4;
      Returns:
      The constraintDefault.
    • hasListConstraint

      boolean hasListConstraint()
       Defines this constraint as being a list constraint.
       
      .google.cloud.orgpolicy.v2.Constraint.ListConstraint list_constraint = 5;
      Returns:
      Whether the listConstraint field is set.
    • getListConstraint

      Constraint.ListConstraint getListConstraint()
       Defines this constraint as being a list constraint.
       
      .google.cloud.orgpolicy.v2.Constraint.ListConstraint list_constraint = 5;
      Returns:
      The listConstraint.
    • getListConstraintOrBuilder

      Constraint.ListConstraintOrBuilder getListConstraintOrBuilder()
       Defines this constraint as being a list constraint.
       
      .google.cloud.orgpolicy.v2.Constraint.ListConstraint list_constraint = 5;
    • hasBooleanConstraint

      boolean hasBooleanConstraint()
       Defines this constraint as being a boolean constraint.
       
      .google.cloud.orgpolicy.v2.Constraint.BooleanConstraint boolean_constraint = 6;
      Returns:
      Whether the booleanConstraint field is set.
    • getBooleanConstraint

      Constraint.BooleanConstraint getBooleanConstraint()
       Defines this constraint as being a boolean constraint.
       
      .google.cloud.orgpolicy.v2.Constraint.BooleanConstraint boolean_constraint = 6;
      Returns:
      The booleanConstraint.
    • getBooleanConstraintOrBuilder

      Constraint.BooleanConstraintOrBuilder getBooleanConstraintOrBuilder()
       Defines this constraint as being a boolean constraint.
       
      .google.cloud.orgpolicy.v2.Constraint.BooleanConstraint boolean_constraint = 6;
    • getSupportsDryRun

      boolean getSupportsDryRun()
       Shows if dry run is supported for this constraint or not.
       
      bool supports_dry_run = 7;
      Returns:
      The supportsDryRun.
    • getEquivalentConstraint

      String getEquivalentConstraint()
       Managed constraint and canned constraint sometimes can have
       equivalents. This field is used to store the equivalent constraint name.
       
      string equivalent_constraint = 8;
      Returns:
      The equivalentConstraint.
    • getEquivalentConstraintBytes

      com.google.protobuf.ByteString getEquivalentConstraintBytes()
       Managed constraint and canned constraint sometimes can have
       equivalents. This field is used to store the equivalent constraint name.
       
      string equivalent_constraint = 8;
      Returns:
      The bytes for equivalentConstraint.
    • getSupportsSimulation

      boolean getSupportsSimulation()
       Shows if simulation is supported for this constraint or not.
       
      bool supports_simulation = 9;
      Returns:
      The supportsSimulation.
    • getConstraintTypeCase

      Constraint.ConstraintTypeCase getConstraintTypeCase()