public interface ConstraintOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getBooleanConstraint()
public abstract Constraint.BooleanConstraint getBooleanConstraint()
Defines this constraint as being a BooleanConstraint.
.google.cloud.orgpolicy.v2.Constraint.BooleanConstraint boolean_constraint = 6;
Type | Description |
Constraint.BooleanConstraint | The booleanConstraint. |
getBooleanConstraintOrBuilder()
public abstract Constraint.BooleanConstraintOrBuilder getBooleanConstraintOrBuilder()
Defines this constraint as being a BooleanConstraint.
.google.cloud.orgpolicy.v2.Constraint.BooleanConstraint boolean_constraint = 6;
Type | Description |
Constraint.BooleanConstraintOrBuilder |
getConstraintDefault()
public abstract Constraint.ConstraintDefault getConstraintDefault()
The evaluation behavior of this constraint in the absence of 'Policy'.
.google.cloud.orgpolicy.v2.Constraint.ConstraintDefault constraint_default = 4;
Type | Description |
Constraint.ConstraintDefault | The constraintDefault. |
getConstraintDefaultValue()
public abstract int getConstraintDefaultValue()
The evaluation behavior of this constraint in the absence of 'Policy'.
.google.cloud.orgpolicy.v2.Constraint.ConstraintDefault constraint_default = 4;
Type | Description |
int | The enum numeric value on the wire for constraintDefault. |
getConstraintTypeCase()
public abstract Constraint.ConstraintTypeCase getConstraintTypeCase()
Type | Description |
Constraint.ConstraintTypeCase |
getDescription()
public abstract String getDescription()
Detailed description of what this Constraint
controls as well as how and
where it is enforced.
Mutable.
string description = 3;
Type | Description |
String | The description. |
getDescriptionBytes()
public abstract ByteString getDescriptionBytes()
Detailed description of what this Constraint
controls as well as how and
where it is enforced.
Mutable.
string description = 3;
Type | Description |
ByteString | The bytes for description. |
getDisplayName()
public abstract String getDisplayName()
The human readable name. Mutable.
string display_name = 2;
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public abstract ByteString getDisplayNameBytes()
The human readable name. Mutable.
string display_name = 2;
Type | Description |
ByteString | The bytes for displayName. |
getListConstraint()
public abstract Constraint.ListConstraint getListConstraint()
Defines this constraint as being a ListConstraint.
.google.cloud.orgpolicy.v2.Constraint.ListConstraint list_constraint = 5;
Type | Description |
Constraint.ListConstraint | The listConstraint. |
getListConstraintOrBuilder()
public abstract Constraint.ListConstraintOrBuilder getListConstraintOrBuilder()
Defines this constraint as being a ListConstraint.
.google.cloud.orgpolicy.v2.Constraint.ListConstraint list_constraint = 5;
Type | Description |
Constraint.ListConstraintOrBuilder |
getName()
public abstract 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];
Type | Description |
String | The name. |
getNameBytes()
public abstract 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];
Type | Description |
ByteString | The bytes for name. |
hasBooleanConstraint()
public abstract boolean hasBooleanConstraint()
Defines this constraint as being a BooleanConstraint.
.google.cloud.orgpolicy.v2.Constraint.BooleanConstraint boolean_constraint = 6;
Type | Description |
boolean | Whether the booleanConstraint field is set. |
hasListConstraint()
public abstract boolean hasListConstraint()
Defines this constraint as being a ListConstraint.
.google.cloud.orgpolicy.v2.Constraint.ListConstraint list_constraint = 5;
Type | Description |
boolean | Whether the listConstraint field is set. |