Package com.google.cloud.orgpolicy.v2
Interface ConstraintOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Constraint,Constraint.Builder
public interface ConstraintOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Constraint.BooleanConstraintgetBooleanConstraint()Defines this constraint as being a BooleanConstraint.Constraint.BooleanConstraintOrBuildergetBooleanConstraintOrBuilder()Defines this constraint as being a BooleanConstraint.Constraint.ConstraintDefaultgetConstraintDefault()The evaluation behavior of this constraint in the absence of 'Policy'.intgetConstraintDefaultValue()The evaluation behavior of this constraint in the absence of 'Policy'.Constraint.ConstraintTypeCasegetConstraintTypeCase()StringgetDescription()Detailed description of what this `Constraint` controls as well as how and where it is enforced.com.google.protobuf.ByteStringgetDescriptionBytes()Detailed description of what this `Constraint` controls as well as how and where it is enforced.StringgetDisplayName()The human readable name.com.google.protobuf.ByteStringgetDisplayNameBytes()The human readable name.Constraint.ListConstraintgetListConstraint()Defines this constraint as being a ListConstraint.Constraint.ListConstraintOrBuildergetListConstraintOrBuilder()Defines this constraint as being a ListConstraint.StringgetName()Immutable.com.google.protobuf.ByteStringgetNameBytes()Immutable.booleanhasBooleanConstraint()Defines this constraint as being a BooleanConstraint.booleanhasListConstraint()Defines this constraint as being a ListConstraint.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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 '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 'Policy'.
.google.cloud.orgpolicy.v2.Constraint.ConstraintDefault constraint_default = 4;- Returns:
- The constraintDefault.
-
hasListConstraint
boolean hasListConstraint()
Defines this constraint as being a ListConstraint.
.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 ListConstraint.
.google.cloud.orgpolicy.v2.Constraint.ListConstraint list_constraint = 5;- Returns:
- The listConstraint.
-
getListConstraintOrBuilder
Constraint.ListConstraintOrBuilder getListConstraintOrBuilder()
Defines this constraint as being a ListConstraint.
.google.cloud.orgpolicy.v2.Constraint.ListConstraint list_constraint = 5;
-
hasBooleanConstraint
boolean hasBooleanConstraint()
Defines this constraint as being a BooleanConstraint.
.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 BooleanConstraint.
.google.cloud.orgpolicy.v2.Constraint.BooleanConstraint boolean_constraint = 6;- Returns:
- The booleanConstraint.
-
getBooleanConstraintOrBuilder
Constraint.BooleanConstraintOrBuilder getBooleanConstraintOrBuilder()
Defines this constraint as being a BooleanConstraint.
.google.cloud.orgpolicy.v2.Constraint.BooleanConstraint boolean_constraint = 6;
-
getConstraintTypeCase
Constraint.ConstraintTypeCase getConstraintTypeCase()
-
-