Class Constraint (0.5.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
TypeDescription
int

ORG_POLICY_CONSTRAINT_FIELD_NUMBER

public static final int ORG_POLICY_CONSTRAINT_FIELD_NUMBER
Field Value
TypeDescription
int

SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER

public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER
Field Value
TypeDescription
int

SECURITY_HEALTH_ANALYTICS_MODULE_FIELD_NUMBER

public static final int SECURITY_HEALTH_ANALYTICS_MODULE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Constraint getDefaultInstance()
Returns
TypeDescription
Constraint

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Constraint.Builder newBuilder()
Returns
TypeDescription
Constraint.Builder

newBuilder(Constraint prototype)

public static Constraint.Builder newBuilder(Constraint prototype)
Parameter
NameDescription
prototypeConstraint
Returns
TypeDescription
Constraint.Builder

parseDelimitedFrom(InputStream input)

public static Constraint parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Constraint
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Constraint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Constraint
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Constraint parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Constraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Constraint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Constraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Constraint parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Constraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Constraint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Constraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Constraint parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Constraint
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Constraint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Constraint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Constraint parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Constraint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Constraint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Constraint
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Constraint parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Constraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Constraint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Constraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Constraint> parser()
Returns
TypeDescription
Parser<Constraint>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Constraint getDefaultInstanceForType()
Returns
TypeDescription
Constraint

getImplementationCase()

public Constraint.ImplementationCase getImplementationCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
OrgPolicyConstraintOrBuilder

getParserForType()

public Parser<Constraint> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SecurityHealthAnalyticsModuleOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the securityHealthAnalyticsModule field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Constraint.Builder newBuilderForType()
Returns
TypeDescription
Constraint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Constraint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Constraint.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Constraint.Builder toBuilder()
Returns
TypeDescription
Constraint.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException