Package com.google.cloud.orgpolicy.v2
Interface Constraint.CustomConstraintDefinition.ParameterOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Constraint.CustomConstraintDefinition.Parameter,Constraint.CustomConstraintDefinition.Parameter.Builder
- Enclosing class:
- Constraint.CustomConstraintDefinition
public static interface Constraint.CustomConstraintDefinition.ParameterOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ValueSets the value of the parameter in an assignment if no value is given.com.google.protobuf.ValueOrBuilderSets the value of the parameter in an assignment if no value is given.getItem()Determines the parameter's value structure.intDetermines the parameter's value structure.Defines subproperties primarily used by the UI to display user-friendly information.Defines subproperties primarily used by the UI to display user-friendly information.getType()Type of the parameter.intType of the parameter.Provides a CEL expression to specify the acceptable parameter values during assignment.com.google.protobuf.ByteStringProvides a CEL expression to specify the acceptable parameter values during assignment.booleanSets the value of the parameter in an assignment if no value is given.booleanDefines subproperties primarily used by the UI to display user-friendly information.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
-
getTypeValue
int getTypeValue()Type of the parameter.
.google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter.Type type = 1;- Returns:
- The enum numeric value on the wire for type.
-
getType
Type of the parameter.
.google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter.Type type = 1;- Returns:
- The type.
-
hasDefaultValue
boolean hasDefaultValue()Sets the value of the parameter in an assignment if no value is given.
.google.protobuf.Value default_value = 2;- Returns:
- Whether the defaultValue field is set.
-
getDefaultValue
com.google.protobuf.Value getDefaultValue()Sets the value of the parameter in an assignment if no value is given.
.google.protobuf.Value default_value = 2;- Returns:
- The defaultValue.
-
getDefaultValueOrBuilder
com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder()Sets the value of the parameter in an assignment if no value is given.
.google.protobuf.Value default_value = 2; -
getValidValuesExpr
String getValidValuesExpr()Provides a CEL expression to specify the acceptable parameter values during assignment. For example, parameterName in ("parameterValue1", "parameterValue2")string valid_values_expr = 3;- Returns:
- The validValuesExpr.
-
getValidValuesExprBytes
com.google.protobuf.ByteString getValidValuesExprBytes()Provides a CEL expression to specify the acceptable parameter values during assignment. For example, parameterName in ("parameterValue1", "parameterValue2")string valid_values_expr = 3;- Returns:
- The bytes for validValuesExpr.
-
hasMetadata
boolean hasMetadata()Defines subproperties primarily used by the UI to display user-friendly information.
.google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter.Metadata metadata = 4;- Returns:
- Whether the metadata field is set.
-
getMetadata
Constraint.CustomConstraintDefinition.Parameter.Metadata getMetadata()Defines subproperties primarily used by the UI to display user-friendly information.
.google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter.Metadata metadata = 4;- Returns:
- The metadata.
-
getMetadataOrBuilder
Constraint.CustomConstraintDefinition.Parameter.MetadataOrBuilder getMetadataOrBuilder()Defines subproperties primarily used by the UI to display user-friendly information.
.google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter.Metadata metadata = 4; -
getItemValue
int getItemValue()Determines the parameter's value structure. For example, `LIST<STRING>` can be specified by defining `type: LIST`, and `item: STRING`.
.google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter.Type item = 5;- Returns:
- The enum numeric value on the wire for item.
-
getItem
Determines the parameter's value structure. For example, `LIST<STRING>` can be specified by defining `type: LIST`, and `item: STRING`.
.google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter.Type item = 5;- Returns:
- The item.
-