Send feedback
Class Constraint.CustomConstraintDefinition.Parameter (2.62.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class Constraint . CustomConstraintDefinition . Parameter extends GeneratedMessageV3 implements Constraint . CustomConstraintDefinition . ParameterOrBuilder
Defines a parameter structure.
Protobuf type
google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DEFAULT_VALUE_FIELD_NUMBER
public static final int DEFAULT_VALUE_FIELD_NUMBER
Field Value
Type
Description
int
ITEM_FIELD_NUMBER
public static final int ITEM_FIELD_NUMBER
Field Value
Type
Description
int
public static final int METADATA_FIELD_NUMBER
Field Value
Type
Description
int
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value
Type
Description
int
VALID_VALUES_EXPR_FIELD_NUMBER
public static final int VALID_VALUES_EXPR_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Constraint . CustomConstraintDefinition . Parameter getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Constraint . CustomConstraintDefinition . Parameter . Builder newBuilder ()
newBuilder(Constraint.CustomConstraintDefinition.Parameter prototype)
public static Constraint . CustomConstraintDefinition . Parameter . Builder newBuilder ( Constraint . CustomConstraintDefinition . Parameter prototype )
public static Constraint . CustomConstraintDefinition . Parameter parseDelimitedFrom ( InputStream input )
public static Constraint . CustomConstraintDefinition . Parameter parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Constraint . CustomConstraintDefinition . Parameter parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Constraint . CustomConstraintDefinition . Parameter parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Constraint . CustomConstraintDefinition . Parameter parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Constraint . CustomConstraintDefinition . Parameter parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Constraint . CustomConstraintDefinition . Parameter parseFrom ( CodedInputStream input )
public static Constraint . CustomConstraintDefinition . Parameter parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Constraint . CustomConstraintDefinition . Parameter parseFrom ( InputStream input )
public static Constraint . CustomConstraintDefinition . Parameter parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Constraint . CustomConstraintDefinition . Parameter parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Constraint . CustomConstraintDefinition . Parameter parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Constraint . CustomConstraintDefinition . Parameter > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public Constraint . CustomConstraintDefinition . Parameter getDefaultInstanceForType ()
getDefaultValue()
public Value getDefaultValue ()
Sets the value of the parameter in an assignment if no value is given.
.google.protobuf.Value default_value = 2;
Returns
Type
Description
Value
The defaultValue.
getDefaultValueOrBuilder()
public ValueOrBuilder getDefaultValueOrBuilder ()
Sets the value of the parameter in an assignment if no value is given.
.google.protobuf.Value default_value = 2;
getItem()
public Constraint . CustomConstraintDefinition . Parameter . Type 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;
getItemValue()
public 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
Type
Description
int
The enum numeric value on the wire for item.
public 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;
public 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;
getParserForType()
public Parser<Constraint . CustomConstraintDefinition . Parameter > getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getType()
public Constraint . CustomConstraintDefinition . Parameter . Type getType ()
Type of the parameter.
.google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter.Type type = 1;
getTypeValue()
public int getTypeValue ()
Type of the parameter.
.google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter.Type type = 1;
Returns
Type
Description
int
The enum numeric value on the wire for type.
getValidValuesExpr()
public 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
Type
Description
String
The validValuesExpr.
getValidValuesExprBytes()
public 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
Type
Description
ByteString
The bytes for validValuesExpr.
hasDefaultValue()
public boolean hasDefaultValue ()
Sets the value of the parameter in an assignment if no value is given.
.google.protobuf.Value default_value = 2;
Returns
Type
Description
boolean
Whether the defaultValue field is set.
public 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
Type
Description
boolean
Whether the metadata field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Constraint . CustomConstraintDefinition . Parameter . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Constraint . CustomConstraintDefinition . Parameter . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Constraint . CustomConstraintDefinition . Parameter . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[]]