public static final class AnalyzerOrgPolicyConstraint.Constraint extends GeneratedMessageV3 implements AnalyzerOrgPolicyConstraint.ConstraintOrBuilder
The definition of a constraint.
Protobuf type google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint
Static Fields
BOOLEAN_CONSTRAINT_FIELD_NUMBER
public static final int BOOLEAN_CONSTRAINT_FIELD_NUMBER
Field Value
CONSTRAINT_DEFAULT_FIELD_NUMBER
public static final int CONSTRAINT_DEFAULT_FIELD_NUMBER
Field Value
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
LIST_CONSTRAINT_FIELD_NUMBER
public static final int LIST_CONSTRAINT_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AnalyzerOrgPolicyConstraint.Constraint getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AnalyzerOrgPolicyConstraint.Constraint.Builder newBuilder()
Returns
newBuilder(AnalyzerOrgPolicyConstraint.Constraint prototype)
public static AnalyzerOrgPolicyConstraint.Constraint.Builder newBuilder(AnalyzerOrgPolicyConstraint.Constraint prototype)
Parameter
Returns
public static AnalyzerOrgPolicyConstraint.Constraint parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnalyzerOrgPolicyConstraint.Constraint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AnalyzerOrgPolicyConstraint.Constraint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AnalyzerOrgPolicyConstraint.Constraint> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getBooleanConstraint()
public AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint getBooleanConstraint()
Defines this constraint as being a BooleanConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
Returns
getBooleanConstraintOrBuilder()
public AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraintOrBuilder getBooleanConstraintOrBuilder()
Defines this constraint as being a BooleanConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
Returns
getConstraintDefault()
public AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault getConstraintDefault()
The evaluation behavior of this constraint in the absence of 'Policy'.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;
Returns
getConstraintDefaultValue()
public int getConstraintDefaultValue()
The evaluation behavior of this constraint in the absence of 'Policy'.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;
Returns
Type |
Description |
int |
The enum numeric value on the wire for constraintDefault.
|
getConstraintTypeCase()
public AnalyzerOrgPolicyConstraint.Constraint.ConstraintTypeCase getConstraintTypeCase()
Returns
getDefaultInstanceForType()
public AnalyzerOrgPolicyConstraint.Constraint getDefaultInstanceForType()
Returns
getDescription()
public String getDescription()
Detailed description of what this Constraint
controls as well as how
and where it is enforced.
string description = 3;
Returns
Type |
Description |
String |
The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
Detailed description of what this Constraint
controls as well as how
and where it is enforced.
string description = 3;
Returns
Type |
Description |
ByteString |
The bytes for description.
|
getDisplayName()
public String getDisplayName()
The human readable name of the constraint.
string display_name = 2;
Returns
Type |
Description |
String |
The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
The human readable name of the constraint.
string display_name = 2;
Returns
Type |
Description |
ByteString |
The bytes for displayName.
|
getListConstraint()
public AnalyzerOrgPolicyConstraint.Constraint.ListConstraint getListConstraint()
Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
Returns
getListConstraintOrBuilder()
public AnalyzerOrgPolicyConstraint.Constraint.ListConstraintOrBuilder getListConstraintOrBuilder()
Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
Returns
getName()
The unique name of the constraint. Format of the name should be
constraints/{constraint_name}
For example, constraints/compute.disableSerialPortAccess
.
string name = 1;
Returns
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
The unique name of the constraint. Format of the name should be
constraints/{constraint_name}
For example, constraints/compute.disableSerialPortAccess
.
string name = 1;
Returns
getParserForType()
public Parser<AnalyzerOrgPolicyConstraint.Constraint> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasBooleanConstraint()
public boolean hasBooleanConstraint()
Defines this constraint as being a BooleanConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;
Returns
Type |
Description |
boolean |
Whether the booleanConstraint field is set.
|
hasListConstraint()
public boolean hasListConstraint()
Defines this constraint as being a ListConstraint.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;
Returns
Type |
Description |
boolean |
Whether the listConstraint field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AnalyzerOrgPolicyConstraint.Constraint.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AnalyzerOrgPolicyConstraint.Constraint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AnalyzerOrgPolicyConstraint.Constraint.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions