Class Constraint (0.7.0)

public final class Constraint extends GeneratedMessageV3 implements ConstraintOrBuilder

Representation of a Constraint.

Protobuf type google.cloud.securityposture.v1.Constraint

Implements

ConstraintOrBuilder

Static Fields

ORG_POLICY_CONSTRAINT_CUSTOM_FIELD_NUMBER

public static final int ORG_POLICY_CONSTRAINT_CUSTOM_FIELD_NUMBER
Field Value
Type Description
int

ORG_POLICY_CONSTRAINT_FIELD_NUMBER

public static final int ORG_POLICY_CONSTRAINT_FIELD_NUMBER
Field Value
Type Description
int

SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER

public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER
Field Value
Type Description
int

SECURITY_HEALTH_ANALYTICS_MODULE_FIELD_NUMBER

public static final int SECURITY_HEALTH_ANALYTICS_MODULE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Constraint getDefaultInstance()
Returns
Type Description
Constraint

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Constraint.Builder newBuilder()
Returns
Type Description
Constraint.Builder

newBuilder(Constraint prototype)

public static Constraint.Builder newBuilder(Constraint prototype)
Parameter
Name Description
prototype Constraint
Returns
Type Description
Constraint.Builder

parseDelimitedFrom(InputStream input)

public static Constraint parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Constraint
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Constraint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Constraint
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Constraint parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Constraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Constraint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Constraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Constraint parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Constraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Constraint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Constraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Constraint parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Constraint
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Constraint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Constraint
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Constraint parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Constraint
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Constraint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Constraint
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Constraint parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Constraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Constraint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Constraint
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Constraint> parser()
Returns
Type Description
Parser<Constraint>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Constraint getDefaultInstanceForType()
Returns
Type Description
Constraint

getImplementationCase()

public Constraint.ImplementationCase getImplementationCase()
Returns
Type Description
Constraint.ImplementationCase

getOrgPolicyConstraint()

public OrgPolicyConstraint getOrgPolicyConstraint()

Optional. Org Policy builtin constraint.

.google.cloud.securityposture.v1.OrgPolicyConstraint org_policy_constraint = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OrgPolicyConstraint

The orgPolicyConstraint.

getOrgPolicyConstraintCustom()

public OrgPolicyConstraintCustom getOrgPolicyConstraintCustom()

Optional. Org Policy custom constraint.

.google.cloud.securityposture.v1.OrgPolicyConstraintCustom org_policy_constraint_custom = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OrgPolicyConstraintCustom

The orgPolicyConstraintCustom.

getOrgPolicyConstraintCustomOrBuilder()

public OrgPolicyConstraintCustomOrBuilder getOrgPolicyConstraintCustomOrBuilder()

Optional. Org Policy custom constraint.

.google.cloud.securityposture.v1.OrgPolicyConstraintCustom org_policy_constraint_custom = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OrgPolicyConstraintCustomOrBuilder

getOrgPolicyConstraintOrBuilder()

public OrgPolicyConstraintOrBuilder getOrgPolicyConstraintOrBuilder()

Optional. Org Policy builtin constraint.

.google.cloud.securityposture.v1.OrgPolicyConstraint org_policy_constraint = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OrgPolicyConstraintOrBuilder

getParserForType()

public Parser<Constraint> getParserForType()
Returns
Type Description
Parser<Constraint>
Overrides

getSecurityHealthAnalyticsCustomModule()

public SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule()

Optional. SHA custom detector.

.google.cloud.securityposture.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SecurityHealthAnalyticsCustomModule

The securityHealthAnalyticsCustomModule.

getSecurityHealthAnalyticsCustomModuleOrBuilder()

public SecurityHealthAnalyticsCustomModuleOrBuilder getSecurityHealthAnalyticsCustomModuleOrBuilder()

Optional. SHA custom detector.

.google.cloud.securityposture.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SecurityHealthAnalyticsCustomModuleOrBuilder

getSecurityHealthAnalyticsModule()

public SecurityHealthAnalyticsModule getSecurityHealthAnalyticsModule()

Optional. SHA built-in detector.

.google.cloud.securityposture.v1.SecurityHealthAnalyticsModule security_health_analytics_module = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SecurityHealthAnalyticsModule

The securityHealthAnalyticsModule.

getSecurityHealthAnalyticsModuleOrBuilder()

public SecurityHealthAnalyticsModuleOrBuilder getSecurityHealthAnalyticsModuleOrBuilder()

Optional. SHA built-in detector.

.google.cloud.securityposture.v1.SecurityHealthAnalyticsModule security_health_analytics_module = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SecurityHealthAnalyticsModuleOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasOrgPolicyConstraint()

public boolean hasOrgPolicyConstraint()

Optional. Org Policy builtin constraint.

.google.cloud.securityposture.v1.OrgPolicyConstraint org_policy_constraint = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the orgPolicyConstraint field is set.

hasOrgPolicyConstraintCustom()

public boolean hasOrgPolicyConstraintCustom()

Optional. Org Policy custom constraint.

.google.cloud.securityposture.v1.OrgPolicyConstraintCustom org_policy_constraint_custom = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the orgPolicyConstraintCustom field is set.

hasSecurityHealthAnalyticsCustomModule()

public boolean hasSecurityHealthAnalyticsCustomModule()

Optional. SHA custom detector.

.google.cloud.securityposture.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the securityHealthAnalyticsCustomModule field is set.

hasSecurityHealthAnalyticsModule()

public boolean hasSecurityHealthAnalyticsModule()

Optional. SHA built-in detector.

.google.cloud.securityposture.v1.SecurityHealthAnalyticsModule security_health_analytics_module = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the securityHealthAnalyticsModule field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Constraint.Builder newBuilderForType()
Returns
Type Description
Constraint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Constraint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Constraint.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Constraint.Builder toBuilder()
Returns
Type Description
Constraint.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException