Class Constraint.Builder (0.10.0)

public static final class Constraint.Builder extends GeneratedMessageV3.Builder<Constraint.Builder> implements ConstraintOrBuilder

Representation of a Constraint.

Protobuf type google.cloud.securityposture.v1.Constraint

Implements

ConstraintOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Constraint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Constraint.Builder
Overrides

build()

public Constraint build()
Returns
Type Description
Constraint

buildPartial()

public Constraint buildPartial()
Returns
Type Description
Constraint

clear()

public Constraint.Builder clear()
Returns
Type Description
Constraint.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Constraint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Constraint.Builder
Overrides

clearImplementation()

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Constraint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Constraint.Builder
Overrides

clearOrgPolicyConstraint()

public Constraint.Builder clearOrgPolicyConstraint()

Optional. Org Policy builtin constraint.

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

Returns
Type Description
Constraint.Builder

clearOrgPolicyConstraintCustom()

public Constraint.Builder clearOrgPolicyConstraintCustom()

Optional. Org Policy custom constraint.

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

Returns
Type Description
Constraint.Builder

clearSecurityHealthAnalyticsCustomModule()

public Constraint.Builder clearSecurityHealthAnalyticsCustomModule()

Optional. SHA custom detector.

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

Returns
Type Description
Constraint.Builder

clearSecurityHealthAnalyticsModule()

public Constraint.Builder clearSecurityHealthAnalyticsModule()

Optional. SHA built-in detector.

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

Returns
Type Description
Constraint.Builder

clone()

public Constraint.Builder clone()
Returns
Type Description
Constraint.Builder
Overrides

getDefaultInstanceForType()

public Constraint getDefaultInstanceForType()
Returns
Type Description
Constraint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getOrgPolicyConstraintBuilder()

public OrgPolicyConstraint.Builder getOrgPolicyConstraintBuilder()

Optional. Org Policy builtin constraint.

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

Returns
Type Description
OrgPolicyConstraint.Builder

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.

getOrgPolicyConstraintCustomBuilder()

public OrgPolicyConstraintCustom.Builder getOrgPolicyConstraintCustomBuilder()

Optional. Org Policy custom constraint.

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

Returns
Type Description
OrgPolicyConstraintCustom.Builder

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

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.

getSecurityHealthAnalyticsCustomModuleBuilder()

public SecurityHealthAnalyticsCustomModule.Builder getSecurityHealthAnalyticsCustomModuleBuilder()

Optional. SHA custom detector.

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

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

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.

getSecurityHealthAnalyticsModuleBuilder()

public SecurityHealthAnalyticsModule.Builder getSecurityHealthAnalyticsModuleBuilder()

Optional. SHA built-in detector.

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

Returns
Type Description
SecurityHealthAnalyticsModule.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Constraint other)

public Constraint.Builder mergeFrom(Constraint other)
Parameter
Name Description
other Constraint
Returns
Type Description
Constraint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Constraint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Constraint.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Constraint.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Constraint.Builder
Overrides

mergeOrgPolicyConstraint(OrgPolicyConstraint value)

public Constraint.Builder mergeOrgPolicyConstraint(OrgPolicyConstraint value)

Optional. Org Policy builtin constraint.

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

Parameter
Name Description
value OrgPolicyConstraint
Returns
Type Description
Constraint.Builder

mergeOrgPolicyConstraintCustom(OrgPolicyConstraintCustom value)

public Constraint.Builder mergeOrgPolicyConstraintCustom(OrgPolicyConstraintCustom value)

Optional. Org Policy custom constraint.

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

Parameter
Name Description
value OrgPolicyConstraintCustom
Returns
Type Description
Constraint.Builder

mergeSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModule value)

public Constraint.Builder mergeSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModule value)

Optional. SHA custom detector.

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

Parameter
Name Description
value SecurityHealthAnalyticsCustomModule
Returns
Type Description
Constraint.Builder

mergeSecurityHealthAnalyticsModule(SecurityHealthAnalyticsModule value)

public Constraint.Builder mergeSecurityHealthAnalyticsModule(SecurityHealthAnalyticsModule value)

Optional. SHA built-in detector.

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

Parameter
Name Description
value SecurityHealthAnalyticsModule
Returns
Type Description
Constraint.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Constraint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Constraint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Constraint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Constraint.Builder
Overrides

setOrgPolicyConstraint(OrgPolicyConstraint value)

public Constraint.Builder setOrgPolicyConstraint(OrgPolicyConstraint value)

Optional. Org Policy builtin constraint.

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

Parameter
Name Description
value OrgPolicyConstraint
Returns
Type Description
Constraint.Builder

setOrgPolicyConstraint(OrgPolicyConstraint.Builder builderForValue)

public Constraint.Builder setOrgPolicyConstraint(OrgPolicyConstraint.Builder builderForValue)

Optional. Org Policy builtin constraint.

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

Parameter
Name Description
builderForValue OrgPolicyConstraint.Builder
Returns
Type Description
Constraint.Builder

setOrgPolicyConstraintCustom(OrgPolicyConstraintCustom value)

public Constraint.Builder setOrgPolicyConstraintCustom(OrgPolicyConstraintCustom value)

Optional. Org Policy custom constraint.

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

Parameter
Name Description
value OrgPolicyConstraintCustom
Returns
Type Description
Constraint.Builder

setOrgPolicyConstraintCustom(OrgPolicyConstraintCustom.Builder builderForValue)

public Constraint.Builder setOrgPolicyConstraintCustom(OrgPolicyConstraintCustom.Builder builderForValue)

Optional. Org Policy custom constraint.

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

Parameter
Name Description
builderForValue OrgPolicyConstraintCustom.Builder
Returns
Type Description
Constraint.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Constraint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Constraint.Builder
Overrides

setSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModule value)

public Constraint.Builder setSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModule value)

Optional. SHA custom detector.

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

Parameter
Name Description
value SecurityHealthAnalyticsCustomModule
Returns
Type Description
Constraint.Builder

setSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModule.Builder builderForValue)

public Constraint.Builder setSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModule.Builder builderForValue)

Optional. SHA custom detector.

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

Parameter
Name Description
builderForValue SecurityHealthAnalyticsCustomModule.Builder
Returns
Type Description
Constraint.Builder

setSecurityHealthAnalyticsModule(SecurityHealthAnalyticsModule value)

public Constraint.Builder setSecurityHealthAnalyticsModule(SecurityHealthAnalyticsModule value)

Optional. SHA built-in detector.

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

Parameter
Name Description
value SecurityHealthAnalyticsModule
Returns
Type Description
Constraint.Builder

setSecurityHealthAnalyticsModule(SecurityHealthAnalyticsModule.Builder builderForValue)

public Constraint.Builder setSecurityHealthAnalyticsModule(SecurityHealthAnalyticsModule.Builder builderForValue)

Optional. SHA built-in detector.

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

Parameter
Name Description
builderForValue SecurityHealthAnalyticsModule.Builder
Returns
Type Description
Constraint.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Constraint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Constraint.Builder
Overrides